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

Socket ssh_connection_sharing_init(char *host,int port,Conf *conf,Ssh ssh,void **state)

{
  Socket ppsVar1;
  char *logtext;
  char *ds_err;
  char *us_err;
  Socket sock;
  
  ppsVar1 = (Socket)(*(code *)PTR_conf_get_int_000b0214)(conf,0xaa);
  return ppsVar1;
}



int ssh_connection_sharing_init
              (undefined4 *param_1,undefined4 param_2,int param_3,undefined *param_4,
              undefined4 *param_5)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  undefined *puVar4;
  undefined *puVar5;
  undefined *puVar6;
  undefined4 uVar7;
  bool bVar8;
  code *pcVar9;
  undefined4 local_3c;
  undefined *local_38;
  undefined4 local_34;
  int local_30;
  int local_2c;
  
  puVar1 = PTR___stack_chk_guard_000b0c9c;
  local_2c = *(int *)PTR___stack_chk_guard_000b0c9c;
  puVar5 = param_4;
  iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xaa);
  if (iVar2 != 0) {
    iVar2 = *(int *)PTR_share_can_be_downstream_000b09d0;
    if (*(int *)PTR_share_can_be_upstream_000b09cc != 0) {
      iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab);
      if (iVar3 != 0) {
        pcVar9 = (code *)PTR_conf_get_int_000b0214;
        if (iVar2 != 0) goto LAB_0007a6f8;
        uVar7 = 1;
        bVar8 = false;
        goto LAB_0007a528;
      }
    }
    if (iVar2 != 0) {
      iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac);
      if (iVar2 != 0) {
        uVar7 = 0;
        bVar8 = true;
        goto LAB_0007a528;
      }
    }
  }
  param_3 = 0;
LAB_0007a4a8:
  do {
    if (local_2c == *(int *)puVar1) {
      return param_3;
    }
    (*(code *)PTR___stack_chk_fail_000b0c70)();
    do {
      pcVar9 = (code *)PTR___assert_fail_000b0ac0;
      (*(code *)PTR___assert_fail_000b0ac0)
                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);
LAB_0007a6f8:
      uVar7 = 1;
      iVar2 = (*pcVar9)(param_3,0xac);
      bVar8 = iVar2 != 0;
LAB_0007a528:
      param_2 = ssh_share_sockname(param_1,param_2,param_3);
      param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);
      param_1[2] = 0;
      *param_1 = PTR_DAT_000b0178 + -0x23c;
      local_30 = 0;
      local_34 = 0;
      local_38 = (undefined *)0x0;
      local_3c = 0;
      iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,
                                 &local_34,uVar7,bVar8);
      puVar5 = local_38;
      (*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);
      (*(code *)PTR_safefree_000b01b0)(local_3c);
      (*(code *)PTR_safefree_000b01b0)(local_38);
      (*(code *)PTR_safefree_000b01b0)(local_34);
      iVar2 = local_30;
      puVar6 = PTR_DAT_000b01d0;
      puVar4 = PTR_safefree_000b01b0;
      if (iVar3 == 1) {
        *param_5 = 0;
        (*(code *)puVar4)(param_1);
        (*(code *)PTR_safefree_000b01b0)(param_2);
        param_3 = local_30;
        goto LAB_0007a4a8;
      }
      if (iVar3 == 2) {
        puVar4 = PTR_LAB_000b08e8 + 0x6640;
        *param_5 = param_1;
        param_1[2] = local_30;
        uVar7 = newtree234(puVar4);
        param_1[3] = uVar7;
        param_1[5] = param_4;
        param_1[6] = 0;
        param_1[1] = param_2;
        param_1[4] = 1;
        param_3 = 0;
        goto LAB_0007a4a8;
      }
      param_3 = 0;
      if (iVar3 != 0) goto LAB_0007a4a8;
      puVar5 = PTR_DAT_000b01d0;
      param_3 = local_30;
    } while (local_30 != 0);
    *param_5 = 0;
    (*(code *)puVar4)(param_1);
    (*(code *)PTR_safefree_000b01b0)(param_2);
    puVar5 = puVar6;
    param_3 = iVar2;
  } while( true );
}


lui gp,0x4
addiu gp,gp,-0x22c4
addu gp,gp,t9
addiu sp,sp,-0x70
lw t9,-0x7f3c(gp)
sw s2,0x54(sp)
lw s2,-0x74b4(gp)
sw s4,0x5c(sp)
or s4,a1,zero
li a1,0xaa
sw gp,0x28(sp)
sw s5,0x60(sp)
sw s3,0x58(sp)
or s3,a3,zero
sw s1,0x50(sp)
or s1,a2,zero
sw s0,0x4c(sp)
or s0,a0,zero
sw ra,0x6c(sp)
or a0,a2,zero
sw s7,0x68(sp)
sw s6,0x64(sp)
lw v0,0x0(s2)
lw s5,0x80(sp)
sw v0,0x44(sp)
jalr t9
_nop
beq v0,zero,0x0007a4a4
_lw gp,0x28(sp)
lw v0,-0x7784(gp)
lw v1,-0x7780(gp)
lw v0,0x0(v0)
bne v0,zero,0x0007a504
_lw s7,0x0(v1)
bne s7,zero,0x0007a4e4
_lw t9,-0x7f3c(gp)
or s1,zero,zero
lw a0,0x44(sp)
or v0,s1,zero
lw v1,0x0(s2)
bne a0,v1,0x0007a6cc
_lw ra,0x6c(sp)
lw s7,0x68(sp)
lw s6,0x64(sp)
lw s5,0x60(sp)
lw s4,0x5c(sp)
lw s3,0x58(sp)
lw s2,0x54(sp)
lw s1,0x50(sp)
lw s0,0x4c(sp)
jr ra
_addiu sp,sp,0x70
li a1,0xac
jalr t9
_or a0,s1,zero
beq v0,zero,0x0007a4a4
_lw gp,0x28(sp)
or s6,zero,zero
b 0x0007a528
_li s7,0x1
lw t9,-0x7f3c(gp)
li a1,0xab
jalr t9
_or a0,s1,zero
beq v0,zero,0x0007a49c
_lw gp,0x28(sp)
bne s7,zero,0x0007a6f8
_lw t9,-0x7f3c(gp)
li s6,0x1
lw t9,-0x778c(gp)
or a2,s1,zero
or a1,s4,zero
bal 0x0007a178
_or a0,s0,zero
li a1,0x1c
lw gp,0x28(sp)
li a0,0x1
lw t9,-0x7f68(gp)
jalr t9
_or s4,v0,zero
or a1,s1,zero
lw gp,0x28(sp)
or s0,v0,zero
sw zero,0x8(v0)
or a3,s0,zero
or a2,s3,zero
or a0,s4,zero
lw v0,-0x7fd8(gp)
lw t9,-0x7788(gp)
addiu v0,v0,-0x23c
sw v0,0x0(s0)
addiu v0,sp,0x3c
sw s6,0x20(sp)
li s6,0x1
sw v0,0x1c(sp)
addiu v0,sp,0x38
sw s7,0x24(sp)
sw v0,0x18(sp)
addiu v0,sp,0x34
sw zero,0x40(sp)
sw v0,0x14(sp)
addiu v0,sp,0x40
sw zero,0x3c(sp)
sw v0,0x10(sp)
sw zero,0x38(sp)
bal 0x000878c8
_sw zero,0x34(sp)
or a0,s3,zero
lw gp,0x28(sp)
or a1,v0,zero
or s1,v0,zero
lw v0,0x3c(sp)
lw a3,0x38(sp)
lw a2,0x34(sp)
lw t9,-0x777c(gp)
jalr t9
_sw v0,0x10(sp)
lw gp,0x28(sp)
lw t9,-0x7fa0(gp)
jalr t9
_lw a0,0x34(sp)
lw gp,0x28(sp)
lw t9,-0x7fa0(gp)
jalr t9
_lw a0,0x38(sp)
lw gp,0x28(sp)
lw t9,-0x7fa0(gp)
jalr t9
_lw a0,0x3c(sp)
beq s1,s6,0x0007a6a0
_lw gp,0x28(sp)
li v0,0x2
beq s1,v0,0x0007a668
_lw t9,-0x7eb4(gp)
bne s1,zero,0x0007a4a8
_or s1,zero,zero
lw s1,0x40(sp)
bne s1,zero,0x0007a6d8
_lw a3,-0x7f80(gp)
lw t9,-0x7fa0(gp)
or a0,s0,zero
jalr t9
_sw zero,0x0(s5)
lw gp,0x28(sp)
lw t9,-0x7fa0(gp)
jalr t9
_or a0,s4,zero
b 0x0007a4a8
_lw gp,0x28(sp)
lw a0,-0x7868(gp)
or s1,zero,zero
lw v0,0x40(sp)
addiu a0,a0,0x6640
sw s0,0x0(s5)
bal 0x0007def8
_sw v0,0x8(s0)
lw gp,0x28(sp)
sw v0,0xc(s0)
sw s3,0x14(s0)
sw zero,0x18(s0)
sw s4,0x4(s0)
b 0x0007a4a8
_sw s6,0x10(s0)
lw t9,-0x7fa0(gp)
or a0,s0,zero
jalr t9
_sw zero,0x0(s5)
lw gp,0x28(sp)
lw t9,-0x7fa0(gp)
jalr t9
_or a0,s4,zero
lw gp,0x28(sp)
b 0x0007a4a8
_lw s1,0x40(sp)
lw t9,-0x74e0(gp)
jalr t9
_nop
li a2,0x873
lw a1,-0x7f80(gp)
lw a0,-0x7f80(gp)
lw t9,-0x7690(gp)
addiu a3,a3,-0x3dc8
addiu a1,a1,-0x42c4
jalr t9
_addiu a0,a0,-0x3eb4
li a1,0xac
or a0,s1,zero
jalr t9
_li s6,0x1
lw gp,0x28(sp)
b 0x0007a528
_sltu s7,zero,v0
(translation_unit "int ssh_connection_sharing_init\n              (undefined4 *param_1,undefined4 param_2,int param_3,undefined *param_4,\n              undefined4 *param_5)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  undefined4 uVar7;\n  bool bVar8;\n  code *pcVar9;\n  undefined4 local_3c;\n  undefined *local_38;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_000b0c9c;\n  local_2c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  puVar5 = param_4;\n  iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xaa);\n  if (iVar2 != 0) {\n    iVar2 = *(int *)PTR_share_can_be_downstream_000b09d0;\n    if (*(int *)PTR_share_can_be_upstream_000b09cc != 0) {\n      iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab);\n      if (iVar3 != 0) {\n        pcVar9 = (code *)PTR_conf_get_int_000b0214;\n        if (iVar2 != 0) goto LAB_0007a6f8;\n        uVar7 = 1;\n        bVar8 = false;\n        goto LAB_0007a528;\n      }\n    }\n    if (iVar2 != 0) {\n      iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac);\n      if (iVar2 != 0) {\n        uVar7 = 0;\n        bVar8 = true;\n        goto LAB_0007a528;\n      }\n    }\n  }\n  param_3 = 0;\nLAB_0007a4a8:\n  do {\n    if (local_2c == *(int *)puVar1) {\n      return param_3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    do {\n      pcVar9 = (code *)PTR___assert_fail_000b0ac0;\n      (*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);\nLAB_0007a6f8:\n      uVar7 = 1;\n      iVar2 = (*pcVar9)(param_3,0xac);\n      bVar8 = iVar2 != 0;\nLAB_0007a528:\n      param_2 = ssh_share_sockname(param_1,param_2,param_3);\n      param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);\n      param_1[2] = 0;\n      *param_1 = PTR_DAT_000b0178 + -0x23c;\n      local_30 = 0;\n      local_34 = 0;\n      local_38 = (undefined *)0x0;\n      local_3c = 0;\n      iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8);\n      puVar5 = local_38;\n      (*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);\n      (*(code *)PTR_safefree_000b01b0)(local_3c);\n      (*(code *)PTR_safefree_000b01b0)(local_38);\n      (*(code *)PTR_safefree_000b01b0)(local_34);\n      iVar2 = local_30;\n      puVar6 = PTR_DAT_000b01d0;\n      puVar4 = PTR_safefree_000b01b0;\n      if (iVar3 == 1) {\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }\n      if (iVar3 == 2) {\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }\n      param_3 = 0;\n      if (iVar3 != 0) goto LAB_0007a4a8;\n      puVar5 = PTR_DAT_000b01d0;\n      param_3 = local_30;\n    } while (local_30 != 0);\n    *param_5 = 0;\n    (*(code *)puVar4)(param_1);\n    (*(code *)PTR_safefree_000b01b0)(param_2);\n    puVar5 = puVar6;\n    param_3 = iVar2;\n  } while( true );\n}\n\n" (function_definition "int ssh_connection_sharing_init\n              (undefined4 *param_1,undefined4 param_2,int param_3,undefined *param_4,\n              undefined4 *param_5)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  undefined4 uVar7;\n  bool bVar8;\n  code *pcVar9;\n  undefined4 local_3c;\n  undefined *local_38;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_000b0c9c;\n  local_2c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  puVar5 = param_4;\n  iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xaa);\n  if (iVar2 != 0) {\n    iVar2 = *(int *)PTR_share_can_be_downstream_000b09d0;\n    if (*(int *)PTR_share_can_be_upstream_000b09cc != 0) {\n      iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab);\n      if (iVar3 != 0) {\n        pcVar9 = (code *)PTR_conf_get_int_000b0214;\n        if (iVar2 != 0) goto LAB_0007a6f8;\n        uVar7 = 1;\n        bVar8 = false;\n        goto LAB_0007a528;\n      }\n    }\n    if (iVar2 != 0) {\n      iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac);\n      if (iVar2 != 0) {\n        uVar7 = 0;\n        bVar8 = true;\n        goto LAB_0007a528;\n      }\n    }\n  }\n  param_3 = 0;\nLAB_0007a4a8:\n  do {\n    if (local_2c == *(int *)puVar1) {\n      return param_3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    do {\n      pcVar9 = (code *)PTR___assert_fail_000b0ac0;\n      (*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);\nLAB_0007a6f8:\n      uVar7 = 1;\n      iVar2 = (*pcVar9)(param_3,0xac);\n      bVar8 = iVar2 != 0;\nLAB_0007a528:\n      param_2 = ssh_share_sockname(param_1,param_2,param_3);\n      param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);\n      param_1[2] = 0;\n      *param_1 = PTR_DAT_000b0178 + -0x23c;\n      local_30 = 0;\n      local_34 = 0;\n      local_38 = (undefined *)0x0;\n      local_3c = 0;\n      iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8);\n      puVar5 = local_38;\n      (*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);\n      (*(code *)PTR_safefree_000b01b0)(local_3c);\n      (*(code *)PTR_safefree_000b01b0)(local_38);\n      (*(code *)PTR_safefree_000b01b0)(local_34);\n      iVar2 = local_30;\n      puVar6 = PTR_DAT_000b01d0;\n      puVar4 = PTR_safefree_000b01b0;\n      if (iVar3 == 1) {\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }\n      if (iVar3 == 2) {\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }\n      param_3 = 0;\n      if (iVar3 != 0) goto LAB_0007a4a8;\n      puVar5 = PTR_DAT_000b01d0;\n      param_3 = local_30;\n    } while (local_30 != 0);\n    *param_5 = 0;\n    (*(code *)puVar4)(param_1);\n    (*(code *)PTR_safefree_000b01b0)(param_2);\n    puVar5 = puVar6;\n    param_3 = iVar2;\n  } while( true );\n}" primitive_type (function_declarator "ssh_connection_sharing_init\n              (undefined4 *param_1,undefined4 param_2,int param_3,undefined *param_4,\n              undefined4 *param_5)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,int param_3,undefined *param_4,\n              undefined4 *param_5)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  undefined4 uVar7;\n  bool bVar8;\n  code *pcVar9;\n  undefined4 local_3c;\n  undefined *local_38;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_000b0c9c;\n  local_2c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  puVar5 = param_4;\n  iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xaa);\n  if (iVar2 != 0) {\n    iVar2 = *(int *)PTR_share_can_be_downstream_000b09d0;\n    if (*(int *)PTR_share_can_be_upstream_000b09cc != 0) {\n      iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab);\n      if (iVar3 != 0) {\n        pcVar9 = (code *)PTR_conf_get_int_000b0214;\n        if (iVar2 != 0) goto LAB_0007a6f8;\n        uVar7 = 1;\n        bVar8 = false;\n        goto LAB_0007a528;\n      }\n    }\n    if (iVar2 != 0) {\n      iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac);\n      if (iVar2 != 0) {\n        uVar7 = 0;\n        bVar8 = true;\n        goto LAB_0007a528;\n      }\n    }\n  }\n  param_3 = 0;\nLAB_0007a4a8:\n  do {\n    if (local_2c == *(int *)puVar1) {\n      return param_3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    do {\n      pcVar9 = (code *)PTR___assert_fail_000b0ac0;\n      (*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);\nLAB_0007a6f8:\n      uVar7 = 1;\n      iVar2 = (*pcVar9)(param_3,0xac);\n      bVar8 = iVar2 != 0;\nLAB_0007a528:\n      param_2 = ssh_share_sockname(param_1,param_2,param_3);\n      param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);\n      param_1[2] = 0;\n      *param_1 = PTR_DAT_000b0178 + -0x23c;\n      local_30 = 0;\n      local_34 = 0;\n      local_38 = (undefined *)0x0;\n      local_3c = 0;\n      iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8);\n      puVar5 = local_38;\n      (*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);\n      (*(code *)PTR_safefree_000b01b0)(local_3c);\n      (*(code *)PTR_safefree_000b01b0)(local_38);\n      (*(code *)PTR_safefree_000b01b0)(local_34);\n      iVar2 = local_30;\n      puVar6 = PTR_DAT_000b01d0;\n      puVar4 = PTR_safefree_000b01b0;\n      if (iVar3 == 1) {\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }\n      if (iVar3 == 2) {\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }\n      param_3 = 0;\n      if (iVar3 != 0) goto LAB_0007a4a8;\n      puVar5 = PTR_DAT_000b01d0;\n      param_3 = local_30;\n    } while (local_30 != 0);\n    *param_5 = 0;\n    (*(code *)puVar4)(param_1);\n    (*(code *)PTR_safefree_000b01b0)(param_2);\n    puVar5 = puVar6;\n    param_3 = iVar2;\n  } while( true );\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "code *pcVar9;" type_identifier (pointer_declarator "*pcVar9" * identifier) ;) (declaration "undefined4 local_3c;" type_identifier identifier ;) (declaration "undefined *local_38;" type_identifier (pointer_declarator "*local_38" * identifier) ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000b0c9c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000b0c9c" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000b0c9c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000b0c9c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b0c9c" * (cast_expression "(int *)PTR___stack_chk_guard_000b0c9c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar5 = param_4;" (assignment_expression "puVar5 = param_4" identifier = identifier) ;) (expression_statement "iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xaa);" (assignment_expression "iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xaa)" identifier = (call_expression "(*(code *)PTR_conf_get_int_000b0214)(param_3,0xaa)" (parenthesized_expression "(*(code *)PTR_conf_get_int_000b0214)" ( (pointer_expression "*(code *)PTR_conf_get_int_000b0214" * (cast_expression "(code *)PTR_conf_get_int_000b0214" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,0xaa)" ( identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n    iVar2 = *(int *)PTR_share_can_be_downstream_000b09d0;\n    if (*(int *)PTR_share_can_be_upstream_000b09cc != 0) {\n      iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab);\n      if (iVar3 != 0) {\n        pcVar9 = (code *)PTR_conf_get_int_000b0214;\n        if (iVar2 != 0) goto LAB_0007a6f8;\n        uVar7 = 1;\n        bVar8 = false;\n        goto LAB_0007a528;\n      }\n    }\n    if (iVar2 != 0) {\n      iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac);\n      if (iVar2 != 0) {\n        uVar7 = 0;\n        bVar8 = true;\n        goto LAB_0007a528;\n      }\n    }\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = *(int *)PTR_share_can_be_downstream_000b09d0;\n    if (*(int *)PTR_share_can_be_upstream_000b09cc != 0) {\n      iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab);\n      if (iVar3 != 0) {\n        pcVar9 = (code *)PTR_conf_get_int_000b0214;\n        if (iVar2 != 0) goto LAB_0007a6f8;\n        uVar7 = 1;\n        bVar8 = false;\n        goto LAB_0007a528;\n      }\n    }\n    if (iVar2 != 0) {\n      iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac);\n      if (iVar2 != 0) {\n        uVar7 = 0;\n        bVar8 = true;\n        goto LAB_0007a528;\n      }\n    }\n  }" { (expression_statement "iVar2 = *(int *)PTR_share_can_be_downstream_000b09d0;" (assignment_expression "iVar2 = *(int *)PTR_share_can_be_downstream_000b09d0" identifier = (pointer_expression "*(int *)PTR_share_can_be_downstream_000b09d0" * (cast_expression "(int *)PTR_share_can_be_downstream_000b09d0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (*(int *)PTR_share_can_be_upstream_000b09cc != 0) {\n      iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab);\n      if (iVar3 != 0) {\n        pcVar9 = (code *)PTR_conf_get_int_000b0214;\n        if (iVar2 != 0) goto LAB_0007a6f8;\n        uVar7 = 1;\n        bVar8 = false;\n        goto LAB_0007a528;\n      }\n    }" if (parenthesized_expression "(*(int *)PTR_share_can_be_upstream_000b09cc != 0)" ( (binary_expression "*(int *)PTR_share_can_be_upstream_000b09cc != 0" (pointer_expression "*(int *)PTR_share_can_be_upstream_000b09cc" * (cast_expression "(int *)PTR_share_can_be_upstream_000b09cc" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n      iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab);\n      if (iVar3 != 0) {\n        pcVar9 = (code *)PTR_conf_get_int_000b0214;\n        if (iVar2 != 0) goto LAB_0007a6f8;\n        uVar7 = 1;\n        bVar8 = false;\n        goto LAB_0007a528;\n      }\n    }" { (expression_statement "iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab);" (assignment_expression "iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab)" identifier = (call_expression "(*(code *)PTR_conf_get_int_000b0214)(param_3,0xab)" (parenthesized_expression "(*(code *)PTR_conf_get_int_000b0214)" ( (pointer_expression "*(code *)PTR_conf_get_int_000b0214" * (cast_expression "(code *)PTR_conf_get_int_000b0214" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,0xab)" ( identifier , number_literal )))) ;) (if_statement "if (iVar3 != 0) {\n        pcVar9 = (code *)PTR_conf_get_int_000b0214;\n        if (iVar2 != 0) goto LAB_0007a6f8;\n        uVar7 = 1;\n        bVar8 = false;\n        goto LAB_0007a528;\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        pcVar9 = (code *)PTR_conf_get_int_000b0214;\n        if (iVar2 != 0) goto LAB_0007a6f8;\n        uVar7 = 1;\n        bVar8 = false;\n        goto LAB_0007a528;\n      }" { (expression_statement "pcVar9 = (code *)PTR_conf_get_int_000b0214;" (assignment_expression "pcVar9 = (code *)PTR_conf_get_int_000b0214" identifier = (cast_expression "(code *)PTR_conf_get_int_000b0214" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (iVar2 != 0) goto LAB_0007a6f8;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0007a6f8;" goto statement_identifier ;)) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" identifier = false) ;) (goto_statement "goto LAB_0007a528;" goto statement_identifier ;) })) })) (if_statement "if (iVar2 != 0) {\n      iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac);\n      if (iVar2 != 0) {\n        uVar7 = 0;\n        bVar8 = true;\n        goto LAB_0007a528;\n      }\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac);\n      if (iVar2 != 0) {\n        uVar7 = 0;\n        bVar8 = true;\n        goto LAB_0007a528;\n      }\n    }" { (expression_statement "iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac);" (assignment_expression "iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac)" identifier = (call_expression "(*(code *)PTR_conf_get_int_000b0214)(param_3,0xac)" (parenthesized_expression "(*(code *)PTR_conf_get_int_000b0214)" ( (pointer_expression "*(code *)PTR_conf_get_int_000b0214" * (cast_expression "(code *)PTR_conf_get_int_000b0214" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,0xac)" ( identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n        uVar7 = 0;\n        bVar8 = true;\n        goto LAB_0007a528;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar7 = 0;\n        bVar8 = true;\n        goto LAB_0007a528;\n      }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "bVar8 = true;" (assignment_expression "bVar8 = true" identifier = true) ;) (goto_statement "goto LAB_0007a528;" goto statement_identifier ;) })) })) })) (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0007a4a8:\n  do {\n    if (local_2c == *(int *)puVar1) {\n      return param_3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    do {\n      pcVar9 = (code *)PTR___assert_fail_000b0ac0;\n      (*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);\nLAB_0007a6f8:\n      uVar7 = 1;\n      iVar2 = (*pcVar9)(param_3,0xac);\n      bVar8 = iVar2 != 0;\nLAB_0007a528:\n      param_2 = ssh_share_sockname(param_1,param_2,param_3);\n      param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);\n      param_1[2] = 0;\n      *param_1 = PTR_DAT_000b0178 + -0x23c;\n      local_30 = 0;\n      local_34 = 0;\n      local_38 = (undefined *)0x0;\n      local_3c = 0;\n      iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8);\n      puVar5 = local_38;\n      (*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);\n      (*(code *)PTR_safefree_000b01b0)(local_3c);\n      (*(code *)PTR_safefree_000b01b0)(local_38);\n      (*(code *)PTR_safefree_000b01b0)(local_34);\n      iVar2 = local_30;\n      puVar6 = PTR_DAT_000b01d0;\n      puVar4 = PTR_safefree_000b01b0;\n      if (iVar3 == 1) {\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }\n      if (iVar3 == 2) {\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }\n      param_3 = 0;\n      if (iVar3 != 0) goto LAB_0007a4a8;\n      puVar5 = PTR_DAT_000b01d0;\n      param_3 = local_30;\n    } while (local_30 != 0);\n    *param_5 = 0;\n    (*(code *)puVar4)(param_1);\n    (*(code *)PTR_safefree_000b01b0)(param_2);\n    puVar5 = puVar6;\n    param_3 = iVar2;\n  } while( true );" statement_identifier : (do_statement "do {\n    if (local_2c == *(int *)puVar1) {\n      return param_3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    do {\n      pcVar9 = (code *)PTR___assert_fail_000b0ac0;\n      (*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);\nLAB_0007a6f8:\n      uVar7 = 1;\n      iVar2 = (*pcVar9)(param_3,0xac);\n      bVar8 = iVar2 != 0;\nLAB_0007a528:\n      param_2 = ssh_share_sockname(param_1,param_2,param_3);\n      param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);\n      param_1[2] = 0;\n      *param_1 = PTR_DAT_000b0178 + -0x23c;\n      local_30 = 0;\n      local_34 = 0;\n      local_38 = (undefined *)0x0;\n      local_3c = 0;\n      iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8);\n      puVar5 = local_38;\n      (*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);\n      (*(code *)PTR_safefree_000b01b0)(local_3c);\n      (*(code *)PTR_safefree_000b01b0)(local_38);\n      (*(code *)PTR_safefree_000b01b0)(local_34);\n      iVar2 = local_30;\n      puVar6 = PTR_DAT_000b01d0;\n      puVar4 = PTR_safefree_000b01b0;\n      if (iVar3 == 1) {\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }\n      if (iVar3 == 2) {\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }\n      param_3 = 0;\n      if (iVar3 != 0) goto LAB_0007a4a8;\n      puVar5 = PTR_DAT_000b01d0;\n      param_3 = local_30;\n    } while (local_30 != 0);\n    *param_5 = 0;\n    (*(code *)puVar4)(param_1);\n    (*(code *)PTR_safefree_000b01b0)(param_2);\n    puVar5 = puVar6;\n    param_3 = iVar2;\n  } while( true );" do (compound_statement "{\n    if (local_2c == *(int *)puVar1) {\n      return param_3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    do {\n      pcVar9 = (code *)PTR___assert_fail_000b0ac0;\n      (*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);\nLAB_0007a6f8:\n      uVar7 = 1;\n      iVar2 = (*pcVar9)(param_3,0xac);\n      bVar8 = iVar2 != 0;\nLAB_0007a528:\n      param_2 = ssh_share_sockname(param_1,param_2,param_3);\n      param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);\n      param_1[2] = 0;\n      *param_1 = PTR_DAT_000b0178 + -0x23c;\n      local_30 = 0;\n      local_34 = 0;\n      local_38 = (undefined *)0x0;\n      local_3c = 0;\n      iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8);\n      puVar5 = local_38;\n      (*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);\n      (*(code *)PTR_safefree_000b01b0)(local_3c);\n      (*(code *)PTR_safefree_000b01b0)(local_38);\n      (*(code *)PTR_safefree_000b01b0)(local_34);\n      iVar2 = local_30;\n      puVar6 = PTR_DAT_000b01d0;\n      puVar4 = PTR_safefree_000b01b0;\n      if (iVar3 == 1) {\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }\n      if (iVar3 == 2) {\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }\n      param_3 = 0;\n      if (iVar3 != 0) goto LAB_0007a4a8;\n      puVar5 = PTR_DAT_000b01d0;\n      param_3 = local_30;\n    } while (local_30 != 0);\n    *param_5 = 0;\n    (*(code *)puVar4)(param_1);\n    (*(code *)PTR_safefree_000b01b0)(param_2);\n    puVar5 = puVar6;\n    param_3 = iVar2;\n  }" { (if_statement "if (local_2c == *(int *)puVar1) {\n      return param_3;\n    }" if (parenthesized_expression "(local_2c == *(int *)puVar1)" ( (binary_expression "local_2c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n      return param_3;\n    }" { (return_statement "return param_3;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000b0c70)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b0c70)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b0c70)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b0c70" * (cast_expression "(code *)PTR___stack_chk_fail_000b0c70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (do_statement "do {\n      pcVar9 = (code *)PTR___assert_fail_000b0ac0;\n      (*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);\nLAB_0007a6f8:\n      uVar7 = 1;\n      iVar2 = (*pcVar9)(param_3,0xac);\n      bVar8 = iVar2 != 0;\nLAB_0007a528:\n      param_2 = ssh_share_sockname(param_1,param_2,param_3);\n      param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);\n      param_1[2] = 0;\n      *param_1 = PTR_DAT_000b0178 + -0x23c;\n      local_30 = 0;\n      local_34 = 0;\n      local_38 = (undefined *)0x0;\n      local_3c = 0;\n      iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8);\n      puVar5 = local_38;\n      (*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);\n      (*(code *)PTR_safefree_000b01b0)(local_3c);\n      (*(code *)PTR_safefree_000b01b0)(local_38);\n      (*(code *)PTR_safefree_000b01b0)(local_34);\n      iVar2 = local_30;\n      puVar6 = PTR_DAT_000b01d0;\n      puVar4 = PTR_safefree_000b01b0;\n      if (iVar3 == 1) {\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }\n      if (iVar3 == 2) {\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }\n      param_3 = 0;\n      if (iVar3 != 0) goto LAB_0007a4a8;\n      puVar5 = PTR_DAT_000b01d0;\n      param_3 = local_30;\n    } while (local_30 != 0);" do (compound_statement "{\n      pcVar9 = (code *)PTR___assert_fail_000b0ac0;\n      (*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);\nLAB_0007a6f8:\n      uVar7 = 1;\n      iVar2 = (*pcVar9)(param_3,0xac);\n      bVar8 = iVar2 != 0;\nLAB_0007a528:\n      param_2 = ssh_share_sockname(param_1,param_2,param_3);\n      param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);\n      param_1[2] = 0;\n      *param_1 = PTR_DAT_000b0178 + -0x23c;\n      local_30 = 0;\n      local_34 = 0;\n      local_38 = (undefined *)0x0;\n      local_3c = 0;\n      iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8);\n      puVar5 = local_38;\n      (*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);\n      (*(code *)PTR_safefree_000b01b0)(local_3c);\n      (*(code *)PTR_safefree_000b01b0)(local_38);\n      (*(code *)PTR_safefree_000b01b0)(local_34);\n      iVar2 = local_30;\n      puVar6 = PTR_DAT_000b01d0;\n      puVar4 = PTR_safefree_000b01b0;\n      if (iVar3 == 1) {\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }\n      if (iVar3 == 2) {\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }\n      param_3 = 0;\n      if (iVar3 != 0) goto LAB_0007a4a8;\n      puVar5 = PTR_DAT_000b01d0;\n      param_3 = local_30;\n    }" { (expression_statement "pcVar9 = (code *)PTR___assert_fail_000b0ac0;" (assignment_expression "pcVar9 = (code *)PTR___assert_fail_000b0ac0" identifier = (cast_expression "(code *)PTR___assert_fail_000b0ac0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "(*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);" (call_expression "(*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b0ac0)" ( (pointer_expression "*(code *)PTR___assert_fail_000b0ac0" * (cast_expression "(code *)PTR___assert_fail_000b0ac0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8)" ( (binary_expression "PTR_DAT_000b01d0 + -0x3eb4" identifier + number_literal) , (binary_expression "PTR_DAT_000b01d0 + -0x42c4" identifier + number_literal) , number_literal , (binary_expression "puVar5 + -0x3dc8" identifier + number_literal) ))) ;) (labeled_statement "LAB_0007a6f8:\n      uVar7 = 1;" statement_identifier : (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;)) (expression_statement "iVar2 = (*pcVar9)(param_3,0xac);" (assignment_expression "iVar2 = (*pcVar9)(param_3,0xac)" identifier = (call_expression "(*pcVar9)(param_3,0xac)" (parenthesized_expression "(*pcVar9)" ( (pointer_expression "*pcVar9" * identifier) )) (argument_list "(param_3,0xac)" ( identifier , number_literal )))) ;) (expression_statement "bVar8 = iVar2 != 0;" (assignment_expression "bVar8 = iVar2 != 0" identifier = (binary_expression "iVar2 != 0" identifier != number_literal)) ;) (labeled_statement "LAB_0007a528:\n      param_2 = ssh_share_sockname(param_1,param_2,param_3);" statement_identifier : (expression_statement "param_2 = ssh_share_sockname(param_1,param_2,param_3);" (assignment_expression "param_2 = ssh_share_sockname(param_1,param_2,param_3)" identifier = (call_expression "ssh_share_sockname(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier )))) ;)) (expression_statement "param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);" (assignment_expression "param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000b01e8)(1,0x1c)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b01e8)" ( (pointer_expression "*(code *)PTR_safemalloc_000b01e8" * (cast_expression "(code *)PTR_safemalloc_000b01e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x1c)" ( number_literal , number_literal ))))) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = PTR_DAT_000b0178 + -0x23c;" (assignment_expression "*param_1 = PTR_DAT_000b0178 + -0x23c" (pointer_expression "*param_1" * identifier) = (binary_expression "PTR_DAT_000b0178 + -0x23c" identifier + number_literal)) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "local_38 = (undefined *)0x0;" (assignment_expression "local_38 = (undefined *)0x0" identifier = (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8);" (assignment_expression "iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8)" identifier = (call_expression "platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8)" identifier (argument_list "(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8)" ( identifier , identifier , identifier , identifier , (pointer_expression "&local_30" & identifier) , (pointer_expression "&local_3c" & identifier) , (pointer_expression "&local_38" & identifier) , (pointer_expression "&local_34" & identifier) , identifier , identifier )))) ;) (expression_statement "puVar5 = local_38;" (assignment_expression "puVar5 = local_38" identifier = identifier) ;) (expression_statement "(*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);" (call_expression "(*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34)" (parenthesized_expression "(*(code *)PTR_ssh_connshare_log_000b09d4)" ( (pointer_expression "*(code *)PTR_ssh_connshare_log_000b09d4" * (cast_expression "(code *)PTR_ssh_connshare_log_000b09d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_4,iVar3,local_3c,local_38,local_34)" ( identifier , identifier , identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000b01b0)(local_3c);" (call_expression "(*(code *)PTR_safefree_000b01b0)(local_3c)" (parenthesized_expression "(*(code *)PTR_safefree_000b01b0)" ( (pointer_expression "*(code *)PTR_safefree_000b01b0" * (cast_expression "(code *)PTR_safefree_000b01b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_3c)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000b01b0)(local_38);" (call_expression "(*(code *)PTR_safefree_000b01b0)(local_38)" (parenthesized_expression "(*(code *)PTR_safefree_000b01b0)" ( (pointer_expression "*(code *)PTR_safefree_000b01b0" * (cast_expression "(code *)PTR_safefree_000b01b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_38)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000b01b0)(local_34);" (call_expression "(*(code *)PTR_safefree_000b01b0)(local_34)" (parenthesized_expression "(*(code *)PTR_safefree_000b01b0)" ( (pointer_expression "*(code *)PTR_safefree_000b01b0" * (cast_expression "(code *)PTR_safefree_000b01b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_34)" ( identifier ))) ;) (expression_statement "iVar2 = local_30;" (assignment_expression "iVar2 = local_30" identifier = identifier) ;) (expression_statement "puVar6 = PTR_DAT_000b01d0;" (assignment_expression "puVar6 = PTR_DAT_000b01d0" identifier = identifier) ;) (expression_statement "puVar4 = PTR_safefree_000b01b0;" (assignment_expression "puVar4 = PTR_safefree_000b01b0" identifier = identifier) ;) (if_statement "if (iVar3 == 1) {\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }" { (expression_statement "*param_5 = 0;" (assignment_expression "*param_5 = 0" (pointer_expression "*param_5" * identifier) = number_literal) ;) (expression_statement "(*(code *)puVar4)(param_1);" (call_expression "(*(code *)puVar4)(param_1)" (parenthesized_expression "(*(code *)puVar4)" ( (pointer_expression "*(code *)puVar4" * (cast_expression "(code *)puVar4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000b01b0)(param_2);" (call_expression "(*(code *)PTR_safefree_000b01b0)(param_2)" (parenthesized_expression "(*(code *)PTR_safefree_000b01b0)" ( (pointer_expression "*(code *)PTR_safefree_000b01b0" * (cast_expression "(code *)PTR_safefree_000b01b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier ))) ;) (expression_statement "param_3 = local_30;" (assignment_expression "param_3 = local_30" identifier = identifier) ;) (goto_statement "goto LAB_0007a4a8;" goto statement_identifier ;) })) (if_statement "if (iVar3 == 2) {\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }" if (parenthesized_expression "(iVar3 == 2)" ( (binary_expression "iVar3 == 2" identifier == number_literal) )) (compound_statement "{\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }" { (expression_statement "puVar4 = PTR_LAB_000b08e8 + 0x6640;" (assignment_expression "puVar4 = PTR_LAB_000b08e8 + 0x6640" identifier = (binary_expression "PTR_LAB_000b08e8 + 0x6640" identifier + number_literal)) ;) (expression_statement "*param_5 = param_1;" (assignment_expression "*param_5 = param_1" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "param_1[2] = local_30;" (assignment_expression "param_1[2] = local_30" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar7 = newtree234(puVar4);" (assignment_expression "uVar7 = newtree234(puVar4)" identifier = (call_expression "newtree234(puVar4)" identifier (argument_list "(puVar4)" ( identifier )))) ;) (expression_statement "param_1[3] = uVar7;" (assignment_expression "param_1[3] = uVar7" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[5] = param_4;" (assignment_expression "param_1[5] = param_4" (subscript_expression "param_1[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = param_2;" (assignment_expression "param_1[1] = param_2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[4] = 1;" (assignment_expression "param_1[4] = 1" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_0007a4a8;" goto statement_identifier ;) })) (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" identifier = number_literal) ;) (if_statement "if (iVar3 != 0) goto LAB_0007a4a8;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0007a4a8;" goto statement_identifier ;)) (expression_statement "puVar5 = PTR_DAT_000b01d0;" (assignment_expression "puVar5 = PTR_DAT_000b01d0" identifier = identifier) ;) (expression_statement "param_3 = local_30;" (assignment_expression "param_3 = local_30" identifier = identifier) ;) }) while (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) ;) (expression_statement "*param_5 = 0;" (assignment_expression "*param_5 = 0" (pointer_expression "*param_5" * identifier) = number_literal) ;) (expression_statement "(*(code *)puVar4)(param_1);" (call_expression "(*(code *)puVar4)(param_1)" (parenthesized_expression "(*(code *)puVar4)" ( (pointer_expression "*(code *)puVar4" * (cast_expression "(code *)puVar4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000b01b0)(param_2);" (call_expression "(*(code *)PTR_safefree_000b01b0)(param_2)" (parenthesized_expression "(*(code *)PTR_safefree_000b01b0)" ( (pointer_expression "*(code *)PTR_safefree_000b01b0" * (cast_expression "(code *)PTR_safefree_000b01b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier ))) ;) (expression_statement "puVar5 = puVar6;" (assignment_expression "puVar5 = puVar6" identifier = identifier) ;) (expression_statement "param_3 = iVar2;" (assignment_expression "param_3 = iVar2" identifier = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;)) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nSocket ssh_connection_sharing_init(char *host,int port,Conf *conf,Ssh ssh,void **state)\n\n{\n  Socket ppsVar1;\n  char *logtext;\n  char *ds_err;\n  char *us_err;\n  Socket sock;\n  \n  ppsVar1 = (Socket)(*(code *)PTR_conf_get_int_000b0214)(conf,0xaa);\n  return ppsVar1;\n}\n\n" comment (function_definition "Socket ssh_connection_sharing_init(char *host,int port,Conf *conf,Ssh ssh,void **state)\n\n{\n  Socket ppsVar1;\n  char *logtext;\n  char *ds_err;\n  char *us_err;\n  Socket sock;\n  \n  ppsVar1 = (Socket)(*(code *)PTR_conf_get_int_000b0214)(conf,0xaa);\n  return ppsVar1;\n}" type_identifier (function_declarator "ssh_connection_sharing_init(char *host,int port,Conf *conf,Ssh ssh,void **state)" identifier (parameter_list "(char *host,int port,Conf *conf,Ssh ssh,void **state)" ( (parameter_declaration "char *host" primitive_type (pointer_declarator "*host" * identifier)) , (parameter_declaration "int port" primitive_type identifier) , (parameter_declaration "Conf *conf" type_identifier (pointer_declarator "*conf" * identifier)) , (parameter_declaration "Ssh ssh" type_identifier identifier) , (parameter_declaration "void **state" primitive_type (pointer_declarator "**state" * (pointer_declarator "*state" * identifier))) ))) (compound_statement "{\n  Socket ppsVar1;\n  char *logtext;\n  char *ds_err;\n  char *us_err;\n  Socket sock;\n  \n  ppsVar1 = (Socket)(*(code *)PTR_conf_get_int_000b0214)(conf,0xaa);\n  return ppsVar1;\n}" { (declaration "Socket ppsVar1;" type_identifier identifier ;) (declaration "char *logtext;" primitive_type (pointer_declarator "*logtext" * identifier) ;) (declaration "char *ds_err;" primitive_type (pointer_declarator "*ds_err" * identifier) ;) (declaration "char *us_err;" primitive_type (pointer_declarator "*us_err" * identifier) ;) (declaration "Socket sock;" type_identifier identifier ;) (expression_statement "ppsVar1 = (Socket)(*(code *)PTR_conf_get_int_000b0214)(conf,0xaa);" (assignment_expression "ppsVar1 = (Socket)(*(code *)PTR_conf_get_int_000b0214)(conf,0xaa)" identifier = (call_expression "(Socket)(*(code *)PTR_conf_get_int_000b0214)(conf,0xaa)" (call_expression "(Socket)(*(code *)PTR_conf_get_int_000b0214)" (parenthesized_expression "(Socket)" ( identifier )) (argument_list "(*(code *)PTR_conf_get_int_000b0214)" ( (pointer_expression "*(code *)PTR_conf_get_int_000b0214" * (cast_expression "(code *)PTR_conf_get_int_000b0214" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) (argument_list "(conf,0xaa)" ( identifier , number_literal )))) ;) (return_statement "return ppsVar1;" return identifier ;) })))
(translation_unit "int ssh_connection_sharing_init\n              (undefined4 *param_1,undefined4 param_2,int param_3,undefined *param_4,\n              undefined4 *param_5)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  undefined4 uVar7;\n  bool bVar8;\n  code *pcVar9;\n  undefined4 local_3c;\n  undefined *local_38;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_000b0c9c;\n  local_2c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  puVar5 = param_4;\n  iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xaa);\n  if (iVar2 != 0) {\n    iVar2 = *(int *)PTR_share_can_be_downstream_000b09d0;\n    if (*(int *)PTR_share_can_be_upstream_000b09cc != 0) {\n      iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab);\n      if (iVar3 != 0) {\n        pcVar9 = (code *)PTR_conf_get_int_000b0214;\n        if (iVar2 != 0) goto LAB_0007a6f8;\n        uVar7 = 1;\n        bVar8 = false;\n        goto LAB_0007a528;\n      }\n    }\n    if (iVar2 != 0) {\n      iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac);\n      if (iVar2 != 0) {\n        uVar7 = 0;\n        bVar8 = true;\n        goto LAB_0007a528;\n      }\n    }\n  }\n  param_3 = 0;\nLAB_0007a4a8:\n  do {\n    if (local_2c == *(int *)puVar1) {\n      return param_3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    do {\n      pcVar9 = (code *)PTR___assert_fail_000b0ac0;\n      (*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);\nLAB_0007a6f8:\n      uVar7 = 1;\n      iVar2 = (*pcVar9)(param_3,0xac);\n      bVar8 = iVar2 != 0;\nLAB_0007a528:\n      param_2 = ssh_share_sockname(param_1,param_2,param_3);\n      param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);\n      param_1[2] = 0;\n      *param_1 = PTR_DAT_000b0178 + -0x23c;\n      local_30 = 0;\n      local_34 = 0;\n      local_38 = (undefined *)0x0;\n      local_3c = 0;\n      iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8);\n      puVar5 = local_38;\n      (*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);\n      (*(code *)PTR_safefree_000b01b0)(local_3c);\n      (*(code *)PTR_safefree_000b01b0)(local_38);\n      (*(code *)PTR_safefree_000b01b0)(local_34);\n      iVar2 = local_30;\n      puVar6 = PTR_DAT_000b01d0;\n      puVar4 = PTR_safefree_000b01b0;\n      if (iVar3 == 1) {\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }\n      if (iVar3 == 2) {\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }\n      param_3 = 0;\n      if (iVar3 != 0) goto LAB_0007a4a8;\n      puVar5 = PTR_DAT_000b01d0;\n      param_3 = local_30;\n    } while (local_30 != 0);\n    *param_5 = 0;\n    (*(code *)puVar4)(param_1);\n    (*(code *)PTR_safefree_000b01b0)(param_2);\n    puVar5 = puVar6;\n    param_3 = iVar2;\n  } while( true );\n}\n\n" (function_definition "int ssh_connection_sharing_init\n              (undefined4 *param_1,undefined4 param_2,int param_3,undefined *param_4,\n              undefined4 *param_5)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  undefined4 uVar7;\n  bool bVar8;\n  code *pcVar9;\n  undefined4 local_3c;\n  undefined *local_38;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_000b0c9c;\n  local_2c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  puVar5 = param_4;\n  iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xaa);\n  if (iVar2 != 0) {\n    iVar2 = *(int *)PTR_share_can_be_downstream_000b09d0;\n    if (*(int *)PTR_share_can_be_upstream_000b09cc != 0) {\n      iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab);\n      if (iVar3 != 0) {\n        pcVar9 = (code *)PTR_conf_get_int_000b0214;\n        if (iVar2 != 0) goto LAB_0007a6f8;\n        uVar7 = 1;\n        bVar8 = false;\n        goto LAB_0007a528;\n      }\n    }\n    if (iVar2 != 0) {\n      iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac);\n      if (iVar2 != 0) {\n        uVar7 = 0;\n        bVar8 = true;\n        goto LAB_0007a528;\n      }\n    }\n  }\n  param_3 = 0;\nLAB_0007a4a8:\n  do {\n    if (local_2c == *(int *)puVar1) {\n      return param_3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    do {\n      pcVar9 = (code *)PTR___assert_fail_000b0ac0;\n      (*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);\nLAB_0007a6f8:\n      uVar7 = 1;\n      iVar2 = (*pcVar9)(param_3,0xac);\n      bVar8 = iVar2 != 0;\nLAB_0007a528:\n      param_2 = ssh_share_sockname(param_1,param_2,param_3);\n      param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);\n      param_1[2] = 0;\n      *param_1 = PTR_DAT_000b0178 + -0x23c;\n      local_30 = 0;\n      local_34 = 0;\n      local_38 = (undefined *)0x0;\n      local_3c = 0;\n      iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8);\n      puVar5 = local_38;\n      (*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);\n      (*(code *)PTR_safefree_000b01b0)(local_3c);\n      (*(code *)PTR_safefree_000b01b0)(local_38);\n      (*(code *)PTR_safefree_000b01b0)(local_34);\n      iVar2 = local_30;\n      puVar6 = PTR_DAT_000b01d0;\n      puVar4 = PTR_safefree_000b01b0;\n      if (iVar3 == 1) {\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }\n      if (iVar3 == 2) {\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }\n      param_3 = 0;\n      if (iVar3 != 0) goto LAB_0007a4a8;\n      puVar5 = PTR_DAT_000b01d0;\n      param_3 = local_30;\n    } while (local_30 != 0);\n    *param_5 = 0;\n    (*(code *)puVar4)(param_1);\n    (*(code *)PTR_safefree_000b01b0)(param_2);\n    puVar5 = puVar6;\n    param_3 = iVar2;\n  } while( true );\n}" primitive_type (function_declarator "ssh_connection_sharing_init\n              (undefined4 *param_1,undefined4 param_2,int param_3,undefined *param_4,\n              undefined4 *param_5)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,int param_3,undefined *param_4,\n              undefined4 *param_5)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  undefined4 uVar7;\n  bool bVar8;\n  code *pcVar9;\n  undefined4 local_3c;\n  undefined *local_38;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_000b0c9c;\n  local_2c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  puVar5 = param_4;\n  iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xaa);\n  if (iVar2 != 0) {\n    iVar2 = *(int *)PTR_share_can_be_downstream_000b09d0;\n    if (*(int *)PTR_share_can_be_upstream_000b09cc != 0) {\n      iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab);\n      if (iVar3 != 0) {\n        pcVar9 = (code *)PTR_conf_get_int_000b0214;\n        if (iVar2 != 0) goto LAB_0007a6f8;\n        uVar7 = 1;\n        bVar8 = false;\n        goto LAB_0007a528;\n      }\n    }\n    if (iVar2 != 0) {\n      iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac);\n      if (iVar2 != 0) {\n        uVar7 = 0;\n        bVar8 = true;\n        goto LAB_0007a528;\n      }\n    }\n  }\n  param_3 = 0;\nLAB_0007a4a8:\n  do {\n    if (local_2c == *(int *)puVar1) {\n      return param_3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    do {\n      pcVar9 = (code *)PTR___assert_fail_000b0ac0;\n      (*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);\nLAB_0007a6f8:\n      uVar7 = 1;\n      iVar2 = (*pcVar9)(param_3,0xac);\n      bVar8 = iVar2 != 0;\nLAB_0007a528:\n      param_2 = ssh_share_sockname(param_1,param_2,param_3);\n      param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);\n      param_1[2] = 0;\n      *param_1 = PTR_DAT_000b0178 + -0x23c;\n      local_30 = 0;\n      local_34 = 0;\n      local_38 = (undefined *)0x0;\n      local_3c = 0;\n      iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8);\n      puVar5 = local_38;\n      (*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);\n      (*(code *)PTR_safefree_000b01b0)(local_3c);\n      (*(code *)PTR_safefree_000b01b0)(local_38);\n      (*(code *)PTR_safefree_000b01b0)(local_34);\n      iVar2 = local_30;\n      puVar6 = PTR_DAT_000b01d0;\n      puVar4 = PTR_safefree_000b01b0;\n      if (iVar3 == 1) {\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }\n      if (iVar3 == 2) {\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }\n      param_3 = 0;\n      if (iVar3 != 0) goto LAB_0007a4a8;\n      puVar5 = PTR_DAT_000b01d0;\n      param_3 = local_30;\n    } while (local_30 != 0);\n    *param_5 = 0;\n    (*(code *)puVar4)(param_1);\n    (*(code *)PTR_safefree_000b01b0)(param_2);\n    puVar5 = puVar6;\n    param_3 = iVar2;\n  } while( true );\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "code *pcVar9;" type_identifier (pointer_declarator "*pcVar9" * identifier) ;) (declaration "undefined4 local_3c;" type_identifier identifier ;) (declaration "undefined *local_38;" type_identifier (pointer_declarator "*local_38" * identifier) ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000b0c9c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000b0c9c" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000b0c9c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000b0c9c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b0c9c" * (cast_expression "(int *)PTR___stack_chk_guard_000b0c9c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "puVar5 = param_4;" (assignment_expression "puVar5 = param_4" identifier = identifier) ;) (expression_statement "iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xaa);" (assignment_expression "iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xaa)" identifier = (call_expression "(*(code *)PTR_conf_get_int_000b0214)(param_3,0xaa)" (parenthesized_expression "(*(code *)PTR_conf_get_int_000b0214)" ( (pointer_expression "*(code *)PTR_conf_get_int_000b0214" * (cast_expression "(code *)PTR_conf_get_int_000b0214" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,0xaa)" ( identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n    iVar2 = *(int *)PTR_share_can_be_downstream_000b09d0;\n    if (*(int *)PTR_share_can_be_upstream_000b09cc != 0) {\n      iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab);\n      if (iVar3 != 0) {\n        pcVar9 = (code *)PTR_conf_get_int_000b0214;\n        if (iVar2 != 0) goto LAB_0007a6f8;\n        uVar7 = 1;\n        bVar8 = false;\n        goto LAB_0007a528;\n      }\n    }\n    if (iVar2 != 0) {\n      iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac);\n      if (iVar2 != 0) {\n        uVar7 = 0;\n        bVar8 = true;\n        goto LAB_0007a528;\n      }\n    }\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar2 = *(int *)PTR_share_can_be_downstream_000b09d0;\n    if (*(int *)PTR_share_can_be_upstream_000b09cc != 0) {\n      iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab);\n      if (iVar3 != 0) {\n        pcVar9 = (code *)PTR_conf_get_int_000b0214;\n        if (iVar2 != 0) goto LAB_0007a6f8;\n        uVar7 = 1;\n        bVar8 = false;\n        goto LAB_0007a528;\n      }\n    }\n    if (iVar2 != 0) {\n      iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac);\n      if (iVar2 != 0) {\n        uVar7 = 0;\n        bVar8 = true;\n        goto LAB_0007a528;\n      }\n    }\n  }" { (expression_statement "iVar2 = *(int *)PTR_share_can_be_downstream_000b09d0;" (assignment_expression "iVar2 = *(int *)PTR_share_can_be_downstream_000b09d0" identifier = (pointer_expression "*(int *)PTR_share_can_be_downstream_000b09d0" * (cast_expression "(int *)PTR_share_can_be_downstream_000b09d0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (*(int *)PTR_share_can_be_upstream_000b09cc != 0) {\n      iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab);\n      if (iVar3 != 0) {\n        pcVar9 = (code *)PTR_conf_get_int_000b0214;\n        if (iVar2 != 0) goto LAB_0007a6f8;\n        uVar7 = 1;\n        bVar8 = false;\n        goto LAB_0007a528;\n      }\n    }" if (parenthesized_expression "(*(int *)PTR_share_can_be_upstream_000b09cc != 0)" ( (binary_expression "*(int *)PTR_share_can_be_upstream_000b09cc != 0" (pointer_expression "*(int *)PTR_share_can_be_upstream_000b09cc" * (cast_expression "(int *)PTR_share_can_be_upstream_000b09cc" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) )) (compound_statement "{\n      iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab);\n      if (iVar3 != 0) {\n        pcVar9 = (code *)PTR_conf_get_int_000b0214;\n        if (iVar2 != 0) goto LAB_0007a6f8;\n        uVar7 = 1;\n        bVar8 = false;\n        goto LAB_0007a528;\n      }\n    }" { (expression_statement "iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab);" (assignment_expression "iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab)" identifier = (call_expression "(*(code *)PTR_conf_get_int_000b0214)(param_3,0xab)" (parenthesized_expression "(*(code *)PTR_conf_get_int_000b0214)" ( (pointer_expression "*(code *)PTR_conf_get_int_000b0214" * (cast_expression "(code *)PTR_conf_get_int_000b0214" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,0xab)" ( identifier , number_literal )))) ;) (if_statement "if (iVar3 != 0) {\n        pcVar9 = (code *)PTR_conf_get_int_000b0214;\n        if (iVar2 != 0) goto LAB_0007a6f8;\n        uVar7 = 1;\n        bVar8 = false;\n        goto LAB_0007a528;\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        pcVar9 = (code *)PTR_conf_get_int_000b0214;\n        if (iVar2 != 0) goto LAB_0007a6f8;\n        uVar7 = 1;\n        bVar8 = false;\n        goto LAB_0007a528;\n      }" { (expression_statement "pcVar9 = (code *)PTR_conf_get_int_000b0214;" (assignment_expression "pcVar9 = (code *)PTR_conf_get_int_000b0214" identifier = (cast_expression "(code *)PTR_conf_get_int_000b0214" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (iVar2 != 0) goto LAB_0007a6f8;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0007a6f8;" goto statement_identifier ;)) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" identifier = false) ;) (goto_statement "goto LAB_0007a528;" goto statement_identifier ;) })) })) (if_statement "if (iVar2 != 0) {\n      iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac);\n      if (iVar2 != 0) {\n        uVar7 = 0;\n        bVar8 = true;\n        goto LAB_0007a528;\n      }\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac);\n      if (iVar2 != 0) {\n        uVar7 = 0;\n        bVar8 = true;\n        goto LAB_0007a528;\n      }\n    }" { (expression_statement "iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac);" (assignment_expression "iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac)" identifier = (call_expression "(*(code *)PTR_conf_get_int_000b0214)(param_3,0xac)" (parenthesized_expression "(*(code *)PTR_conf_get_int_000b0214)" ( (pointer_expression "*(code *)PTR_conf_get_int_000b0214" * (cast_expression "(code *)PTR_conf_get_int_000b0214" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,0xac)" ( identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n        uVar7 = 0;\n        bVar8 = true;\n        goto LAB_0007a528;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar7 = 0;\n        bVar8 = true;\n        goto LAB_0007a528;\n      }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "bVar8 = true;" (assignment_expression "bVar8 = true" identifier = true) ;) (goto_statement "goto LAB_0007a528;" goto statement_identifier ;) })) })) })) (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0007a4a8:\n  do {\n    if (local_2c == *(int *)puVar1) {\n      return param_3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    do {\n      pcVar9 = (code *)PTR___assert_fail_000b0ac0;\n      (*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);\nLAB_0007a6f8:\n      uVar7 = 1;\n      iVar2 = (*pcVar9)(param_3,0xac);\n      bVar8 = iVar2 != 0;\nLAB_0007a528:\n      param_2 = ssh_share_sockname(param_1,param_2,param_3);\n      param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);\n      param_1[2] = 0;\n      *param_1 = PTR_DAT_000b0178 + -0x23c;\n      local_30 = 0;\n      local_34 = 0;\n      local_38 = (undefined *)0x0;\n      local_3c = 0;\n      iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8);\n      puVar5 = local_38;\n      (*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);\n      (*(code *)PTR_safefree_000b01b0)(local_3c);\n      (*(code *)PTR_safefree_000b01b0)(local_38);\n      (*(code *)PTR_safefree_000b01b0)(local_34);\n      iVar2 = local_30;\n      puVar6 = PTR_DAT_000b01d0;\n      puVar4 = PTR_safefree_000b01b0;\n      if (iVar3 == 1) {\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }\n      if (iVar3 == 2) {\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }\n      param_3 = 0;\n      if (iVar3 != 0) goto LAB_0007a4a8;\n      puVar5 = PTR_DAT_000b01d0;\n      param_3 = local_30;\n    } while (local_30 != 0);\n    *param_5 = 0;\n    (*(code *)puVar4)(param_1);\n    (*(code *)PTR_safefree_000b01b0)(param_2);\n    puVar5 = puVar6;\n    param_3 = iVar2;\n  } while( true );" statement_identifier : (do_statement "do {\n    if (local_2c == *(int *)puVar1) {\n      return param_3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    do {\n      pcVar9 = (code *)PTR___assert_fail_000b0ac0;\n      (*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);\nLAB_0007a6f8:\n      uVar7 = 1;\n      iVar2 = (*pcVar9)(param_3,0xac);\n      bVar8 = iVar2 != 0;\nLAB_0007a528:\n      param_2 = ssh_share_sockname(param_1,param_2,param_3);\n      param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);\n      param_1[2] = 0;\n      *param_1 = PTR_DAT_000b0178 + -0x23c;\n      local_30 = 0;\n      local_34 = 0;\n      local_38 = (undefined *)0x0;\n      local_3c = 0;\n      iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8);\n      puVar5 = local_38;\n      (*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);\n      (*(code *)PTR_safefree_000b01b0)(local_3c);\n      (*(code *)PTR_safefree_000b01b0)(local_38);\n      (*(code *)PTR_safefree_000b01b0)(local_34);\n      iVar2 = local_30;\n      puVar6 = PTR_DAT_000b01d0;\n      puVar4 = PTR_safefree_000b01b0;\n      if (iVar3 == 1) {\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }\n      if (iVar3 == 2) {\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }\n      param_3 = 0;\n      if (iVar3 != 0) goto LAB_0007a4a8;\n      puVar5 = PTR_DAT_000b01d0;\n      param_3 = local_30;\n    } while (local_30 != 0);\n    *param_5 = 0;\n    (*(code *)puVar4)(param_1);\n    (*(code *)PTR_safefree_000b01b0)(param_2);\n    puVar5 = puVar6;\n    param_3 = iVar2;\n  } while( true );" do (compound_statement "{\n    if (local_2c == *(int *)puVar1) {\n      return param_3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    do {\n      pcVar9 = (code *)PTR___assert_fail_000b0ac0;\n      (*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);\nLAB_0007a6f8:\n      uVar7 = 1;\n      iVar2 = (*pcVar9)(param_3,0xac);\n      bVar8 = iVar2 != 0;\nLAB_0007a528:\n      param_2 = ssh_share_sockname(param_1,param_2,param_3);\n      param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);\n      param_1[2] = 0;\n      *param_1 = PTR_DAT_000b0178 + -0x23c;\n      local_30 = 0;\n      local_34 = 0;\n      local_38 = (undefined *)0x0;\n      local_3c = 0;\n      iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8);\n      puVar5 = local_38;\n      (*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);\n      (*(code *)PTR_safefree_000b01b0)(local_3c);\n      (*(code *)PTR_safefree_000b01b0)(local_38);\n      (*(code *)PTR_safefree_000b01b0)(local_34);\n      iVar2 = local_30;\n      puVar6 = PTR_DAT_000b01d0;\n      puVar4 = PTR_safefree_000b01b0;\n      if (iVar3 == 1) {\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }\n      if (iVar3 == 2) {\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }\n      param_3 = 0;\n      if (iVar3 != 0) goto LAB_0007a4a8;\n      puVar5 = PTR_DAT_000b01d0;\n      param_3 = local_30;\n    } while (local_30 != 0);\n    *param_5 = 0;\n    (*(code *)puVar4)(param_1);\n    (*(code *)PTR_safefree_000b01b0)(param_2);\n    puVar5 = puVar6;\n    param_3 = iVar2;\n  }" { (if_statement "if (local_2c == *(int *)puVar1) {\n      return param_3;\n    }" if (parenthesized_expression "(local_2c == *(int *)puVar1)" ( (binary_expression "local_2c == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n      return param_3;\n    }" { (return_statement "return param_3;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000b0c70)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b0c70)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b0c70)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b0c70" * (cast_expression "(code *)PTR___stack_chk_fail_000b0c70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (do_statement "do {\n      pcVar9 = (code *)PTR___assert_fail_000b0ac0;\n      (*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);\nLAB_0007a6f8:\n      uVar7 = 1;\n      iVar2 = (*pcVar9)(param_3,0xac);\n      bVar8 = iVar2 != 0;\nLAB_0007a528:\n      param_2 = ssh_share_sockname(param_1,param_2,param_3);\n      param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);\n      param_1[2] = 0;\n      *param_1 = PTR_DAT_000b0178 + -0x23c;\n      local_30 = 0;\n      local_34 = 0;\n      local_38 = (undefined *)0x0;\n      local_3c = 0;\n      iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8);\n      puVar5 = local_38;\n      (*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);\n      (*(code *)PTR_safefree_000b01b0)(local_3c);\n      (*(code *)PTR_safefree_000b01b0)(local_38);\n      (*(code *)PTR_safefree_000b01b0)(local_34);\n      iVar2 = local_30;\n      puVar6 = PTR_DAT_000b01d0;\n      puVar4 = PTR_safefree_000b01b0;\n      if (iVar3 == 1) {\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }\n      if (iVar3 == 2) {\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }\n      param_3 = 0;\n      if (iVar3 != 0) goto LAB_0007a4a8;\n      puVar5 = PTR_DAT_000b01d0;\n      param_3 = local_30;\n    } while (local_30 != 0);" do (compound_statement "{\n      pcVar9 = (code *)PTR___assert_fail_000b0ac0;\n      (*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);\nLAB_0007a6f8:\n      uVar7 = 1;\n      iVar2 = (*pcVar9)(param_3,0xac);\n      bVar8 = iVar2 != 0;\nLAB_0007a528:\n      param_2 = ssh_share_sockname(param_1,param_2,param_3);\n      param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);\n      param_1[2] = 0;\n      *param_1 = PTR_DAT_000b0178 + -0x23c;\n      local_30 = 0;\n      local_34 = 0;\n      local_38 = (undefined *)0x0;\n      local_3c = 0;\n      iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8);\n      puVar5 = local_38;\n      (*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);\n      (*(code *)PTR_safefree_000b01b0)(local_3c);\n      (*(code *)PTR_safefree_000b01b0)(local_38);\n      (*(code *)PTR_safefree_000b01b0)(local_34);\n      iVar2 = local_30;\n      puVar6 = PTR_DAT_000b01d0;\n      puVar4 = PTR_safefree_000b01b0;\n      if (iVar3 == 1) {\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }\n      if (iVar3 == 2) {\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }\n      param_3 = 0;\n      if (iVar3 != 0) goto LAB_0007a4a8;\n      puVar5 = PTR_DAT_000b01d0;\n      param_3 = local_30;\n    }" { (expression_statement "pcVar9 = (code *)PTR___assert_fail_000b0ac0;" (assignment_expression "pcVar9 = (code *)PTR___assert_fail_000b0ac0" identifier = (cast_expression "(code *)PTR___assert_fail_000b0ac0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "(*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);" (call_expression "(*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b0ac0)" ( (pointer_expression "*(code *)PTR___assert_fail_000b0ac0" * (cast_expression "(code *)PTR___assert_fail_000b0ac0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8)" ( (binary_expression "PTR_DAT_000b01d0 + -0x3eb4" identifier + number_literal) , (binary_expression "PTR_DAT_000b01d0 + -0x42c4" identifier + number_literal) , number_literal , (binary_expression "puVar5 + -0x3dc8" identifier + number_literal) ))) ;) (labeled_statement "LAB_0007a6f8:\n      uVar7 = 1;" statement_identifier : (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;)) (expression_statement "iVar2 = (*pcVar9)(param_3,0xac);" (assignment_expression "iVar2 = (*pcVar9)(param_3,0xac)" identifier = (call_expression "(*pcVar9)(param_3,0xac)" (parenthesized_expression "(*pcVar9)" ( (pointer_expression "*pcVar9" * identifier) )) (argument_list "(param_3,0xac)" ( identifier , number_literal )))) ;) (expression_statement "bVar8 = iVar2 != 0;" (assignment_expression "bVar8 = iVar2 != 0" identifier = (binary_expression "iVar2 != 0" identifier != number_literal)) ;) (labeled_statement "LAB_0007a528:\n      param_2 = ssh_share_sockname(param_1,param_2,param_3);" statement_identifier : (expression_statement "param_2 = ssh_share_sockname(param_1,param_2,param_3);" (assignment_expression "param_2 = ssh_share_sockname(param_1,param_2,param_3)" identifier = (call_expression "ssh_share_sockname(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier )))) ;)) (expression_statement "param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);" (assignment_expression "param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000b01e8)(1,0x1c)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b01e8)" ( (pointer_expression "*(code *)PTR_safemalloc_000b01e8" * (cast_expression "(code *)PTR_safemalloc_000b01e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x1c)" ( number_literal , number_literal ))))) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = PTR_DAT_000b0178 + -0x23c;" (assignment_expression "*param_1 = PTR_DAT_000b0178 + -0x23c" (pointer_expression "*param_1" * identifier) = (binary_expression "PTR_DAT_000b0178 + -0x23c" identifier + number_literal)) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "local_38 = (undefined *)0x0;" (assignment_expression "local_38 = (undefined *)0x0" identifier = (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8);" (assignment_expression "iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8)" identifier = (call_expression "platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8)" identifier (argument_list "(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8)" ( identifier , identifier , identifier , identifier , (pointer_expression "&local_30" & identifier) , (pointer_expression "&local_3c" & identifier) , (pointer_expression "&local_38" & identifier) , (pointer_expression "&local_34" & identifier) , identifier , identifier )))) ;) (expression_statement "puVar5 = local_38;" (assignment_expression "puVar5 = local_38" identifier = identifier) ;) (expression_statement "(*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);" (call_expression "(*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34)" (parenthesized_expression "(*(code *)PTR_ssh_connshare_log_000b09d4)" ( (pointer_expression "*(code *)PTR_ssh_connshare_log_000b09d4" * (cast_expression "(code *)PTR_ssh_connshare_log_000b09d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_4,iVar3,local_3c,local_38,local_34)" ( identifier , identifier , identifier , identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000b01b0)(local_3c);" (call_expression "(*(code *)PTR_safefree_000b01b0)(local_3c)" (parenthesized_expression "(*(code *)PTR_safefree_000b01b0)" ( (pointer_expression "*(code *)PTR_safefree_000b01b0" * (cast_expression "(code *)PTR_safefree_000b01b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_3c)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000b01b0)(local_38);" (call_expression "(*(code *)PTR_safefree_000b01b0)(local_38)" (parenthesized_expression "(*(code *)PTR_safefree_000b01b0)" ( (pointer_expression "*(code *)PTR_safefree_000b01b0" * (cast_expression "(code *)PTR_safefree_000b01b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_38)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000b01b0)(local_34);" (call_expression "(*(code *)PTR_safefree_000b01b0)(local_34)" (parenthesized_expression "(*(code *)PTR_safefree_000b01b0)" ( (pointer_expression "*(code *)PTR_safefree_000b01b0" * (cast_expression "(code *)PTR_safefree_000b01b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_34)" ( identifier ))) ;) (expression_statement "iVar2 = local_30;" (assignment_expression "iVar2 = local_30" identifier = identifier) ;) (expression_statement "puVar6 = PTR_DAT_000b01d0;" (assignment_expression "puVar6 = PTR_DAT_000b01d0" identifier = identifier) ;) (expression_statement "puVar4 = PTR_safefree_000b01b0;" (assignment_expression "puVar4 = PTR_safefree_000b01b0" identifier = identifier) ;) (if_statement "if (iVar3 == 1) {\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }" { (expression_statement "*param_5 = 0;" (assignment_expression "*param_5 = 0" (pointer_expression "*param_5" * identifier) = number_literal) ;) (expression_statement "(*(code *)puVar4)(param_1);" (call_expression "(*(code *)puVar4)(param_1)" (parenthesized_expression "(*(code *)puVar4)" ( (pointer_expression "*(code *)puVar4" * (cast_expression "(code *)puVar4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000b01b0)(param_2);" (call_expression "(*(code *)PTR_safefree_000b01b0)(param_2)" (parenthesized_expression "(*(code *)PTR_safefree_000b01b0)" ( (pointer_expression "*(code *)PTR_safefree_000b01b0" * (cast_expression "(code *)PTR_safefree_000b01b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier ))) ;) (expression_statement "param_3 = local_30;" (assignment_expression "param_3 = local_30" identifier = identifier) ;) (goto_statement "goto LAB_0007a4a8;" goto statement_identifier ;) })) (if_statement "if (iVar3 == 2) {\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }" if (parenthesized_expression "(iVar3 == 2)" ( (binary_expression "iVar3 == 2" identifier == number_literal) )) (compound_statement "{\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }" { (expression_statement "puVar4 = PTR_LAB_000b08e8 + 0x6640;" (assignment_expression "puVar4 = PTR_LAB_000b08e8 + 0x6640" identifier = (binary_expression "PTR_LAB_000b08e8 + 0x6640" identifier + number_literal)) ;) (expression_statement "*param_5 = param_1;" (assignment_expression "*param_5 = param_1" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "param_1[2] = local_30;" (assignment_expression "param_1[2] = local_30" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar7 = newtree234(puVar4);" (assignment_expression "uVar7 = newtree234(puVar4)" identifier = (call_expression "newtree234(puVar4)" identifier (argument_list "(puVar4)" ( identifier )))) ;) (expression_statement "param_1[3] = uVar7;" (assignment_expression "param_1[3] = uVar7" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[5] = param_4;" (assignment_expression "param_1[5] = param_4" (subscript_expression "param_1[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = param_2;" (assignment_expression "param_1[1] = param_2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[4] = 1;" (assignment_expression "param_1[4] = 1" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_0007a4a8;" goto statement_identifier ;) })) (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" identifier = number_literal) ;) (if_statement "if (iVar3 != 0) goto LAB_0007a4a8;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0007a4a8;" goto statement_identifier ;)) (expression_statement "puVar5 = PTR_DAT_000b01d0;" (assignment_expression "puVar5 = PTR_DAT_000b01d0" identifier = identifier) ;) (expression_statement "param_3 = local_30;" (assignment_expression "param_3 = local_30" identifier = identifier) ;) }) while (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) ;) (expression_statement "*param_5 = 0;" (assignment_expression "*param_5 = 0" (pointer_expression "*param_5" * identifier) = number_literal) ;) (expression_statement "(*(code *)puVar4)(param_1);" (call_expression "(*(code *)puVar4)(param_1)" (parenthesized_expression "(*(code *)puVar4)" ( (pointer_expression "*(code *)puVar4" * (cast_expression "(code *)puVar4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000b01b0)(param_2);" (call_expression "(*(code *)PTR_safefree_000b01b0)(param_2)" (parenthesized_expression "(*(code *)PTR_safefree_000b01b0)" ( (pointer_expression "*(code *)PTR_safefree_000b01b0" * (cast_expression "(code *)PTR_safefree_000b01b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier ))) ;) (expression_statement "puVar5 = puVar6;" (assignment_expression "puVar5 = puVar6" identifier = identifier) ;) (expression_statement "param_3 = iVar2;" (assignment_expression "param_3 = iVar2" identifier = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;)) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (goto_statement goto statement_identifier ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (goto_statement goto statement_identifier ;) })) })) })) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT != LIT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , (pointer_expression & IDENT) , (pointer_expression & IDENT) , (pointer_expression & IDENT) , (pointer_expression & IDENT) , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( BOOL )) ;)) })))
(function_definition "int ssh_connection_sharing_init\n              (undefined4 *param_1,undefined4 param_2,int param_3,undefined *param_4,\n              undefined4 *param_5)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  undefined4 uVar7;\n  bool bVar8;\n  code *pcVar9;\n  undefined4 local_3c;\n  undefined *local_38;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_000b0c9c;\n  local_2c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  puVar5 = param_4;\n  iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xaa);\n  if (iVar2 != 0) {\n    iVar2 = *(int *)PTR_share_can_be_downstream_000b09d0;\n    if (*(int *)PTR_share_can_be_upstream_000b09cc != 0) {\n      iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab);\n      if (iVar3 != 0) {\n        pcVar9 = (code *)PTR_conf_get_int_000b0214;\n        if (iVar2 != 0) goto LAB_0007a6f8;\n        uVar7 = 1;\n        bVar8 = false;\n        goto LAB_0007a528;\n      }\n    }\n    if (iVar2 != 0) {\n      iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac);\n      if (iVar2 != 0) {\n        uVar7 = 0;\n        bVar8 = true;\n        goto LAB_0007a528;\n      }\n    }\n  }\n  param_3 = 0;\nLAB_0007a4a8:\n  do {\n    if (local_2c == *(int *)puVar1) {\n      return param_3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    do {\n      pcVar9 = (code *)PTR___assert_fail_000b0ac0;\n      (*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);\nLAB_0007a6f8:\n      uVar7 = 1;\n      iVar2 = (*pcVar9)(param_3,0xac);\n      bVar8 = iVar2 != 0;\nLAB_0007a528:\n      param_2 = ssh_share_sockname(param_1,param_2,param_3);\n      param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);\n      param_1[2] = 0;\n      *param_1 = PTR_DAT_000b0178 + -0x23c;\n      local_30 = 0;\n      local_34 = 0;\n      local_38 = (undefined *)0x0;\n      local_3c = 0;\n      iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8);\n      puVar5 = local_38;\n      (*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);\n      (*(code *)PTR_safefree_000b01b0)(local_3c);\n      (*(code *)PTR_safefree_000b01b0)(local_38);\n      (*(code *)PTR_safefree_000b01b0)(local_34);\n      iVar2 = local_30;\n      puVar6 = PTR_DAT_000b01d0;\n      puVar4 = PTR_safefree_000b01b0;\n      if (iVar3 == 1) {\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }\n      if (iVar3 == 2) {\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }\n      param_3 = 0;\n      if (iVar3 != 0) goto LAB_0007a4a8;\n      puVar5 = PTR_DAT_000b01d0;\n      param_3 = local_30;\n    } while (local_30 != 0);\n    *param_5 = 0;\n    (*(code *)puVar4)(param_1);\n    (*(code *)PTR_safefree_000b01b0)(param_2);\n    puVar5 = puVar6;\n    param_3 = iVar2;\n  } while( true );\n}" (primitive_type "int") (function_declarator "ssh_connection_sharing_init\n              (undefined4 *param_1,undefined4 param_2,int param_3,undefined *param_4,\n              undefined4 *param_5)" (identifier "ssh_connection_sharing_init") (parameter_list "(undefined4 *param_1,undefined4 param_2,int param_3,undefined *param_4,\n              undefined4 *param_5)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined *param_4" (type_identifier "undefined") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "undefined4 *param_5" (type_identifier "undefined4") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined *puVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  undefined4 uVar7;\n  bool bVar8;\n  code *pcVar9;\n  undefined4 local_3c;\n  undefined *local_38;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_000b0c9c;\n  local_2c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  puVar5 = param_4;\n  iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xaa);\n  if (iVar2 != 0) {\n    iVar2 = *(int *)PTR_share_can_be_downstream_000b09d0;\n    if (*(int *)PTR_share_can_be_upstream_000b09cc != 0) {\n      iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab);\n      if (iVar3 != 0) {\n        pcVar9 = (code *)PTR_conf_get_int_000b0214;\n        if (iVar2 != 0) goto LAB_0007a6f8;\n        uVar7 = 1;\n        bVar8 = false;\n        goto LAB_0007a528;\n      }\n    }\n    if (iVar2 != 0) {\n      iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac);\n      if (iVar2 != 0) {\n        uVar7 = 0;\n        bVar8 = true;\n        goto LAB_0007a528;\n      }\n    }\n  }\n  param_3 = 0;\nLAB_0007a4a8:\n  do {\n    if (local_2c == *(int *)puVar1) {\n      return param_3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    do {\n      pcVar9 = (code *)PTR___assert_fail_000b0ac0;\n      (*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);\nLAB_0007a6f8:\n      uVar7 = 1;\n      iVar2 = (*pcVar9)(param_3,0xac);\n      bVar8 = iVar2 != 0;\nLAB_0007a528:\n      param_2 = ssh_share_sockname(param_1,param_2,param_3);\n      param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);\n      param_1[2] = 0;\n      *param_1 = PTR_DAT_000b0178 + -0x23c;\n      local_30 = 0;\n      local_34 = 0;\n      local_38 = (undefined *)0x0;\n      local_3c = 0;\n      iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8);\n      puVar5 = local_38;\n      (*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);\n      (*(code *)PTR_safefree_000b01b0)(local_3c);\n      (*(code *)PTR_safefree_000b01b0)(local_38);\n      (*(code *)PTR_safefree_000b01b0)(local_34);\n      iVar2 = local_30;\n      puVar6 = PTR_DAT_000b01d0;\n      puVar4 = PTR_safefree_000b01b0;\n      if (iVar3 == 1) {\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }\n      if (iVar3 == 2) {\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }\n      param_3 = 0;\n      if (iVar3 != 0) goto LAB_0007a4a8;\n      puVar5 = PTR_DAT_000b01d0;\n      param_3 = local_30;\n    } while (local_30 != 0);\n    *param_5 = 0;\n    (*(code *)puVar4)(param_1);\n    (*(code *)PTR_safefree_000b01b0)(param_2);\n    puVar5 = puVar6;\n    param_3 = iVar2;\n  } while( true );\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined *puVar6;" (type_identifier "undefined") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "bool bVar8;" (primitive_type "bool") (identifier "bVar8") (; ";")) (declaration "code *pcVar9;" (type_identifier "code") (pointer_declarator "*pcVar9" (* "*") (identifier "pcVar9")) (; ";")) (declaration "undefined4 local_3c;" (type_identifier "undefined4") (identifier "local_3c") (; ";")) (declaration "undefined *local_38;" (type_identifier "undefined") (pointer_declarator "*local_38" (* "*") (identifier "local_38")) (; ";")) (declaration "undefined4 local_34;" (type_identifier "undefined4") (identifier "local_34") (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar1 = PTR___stack_chk_guard_000b0c9c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000b0c9c" (identifier "puVar1") (= "=") (identifier "PTR___stack_chk_guard_000b0c9c")) (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000b0c9c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000b0c9c" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000b0c9c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000b0c9c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000b0c9c")))) (; ";")) (expression_statement "puVar5 = param_4;" (assignment_expression "puVar5 = param_4" (identifier "puVar5") (= "=") (identifier "param_4")) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xaa);" (assignment_expression "iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xaa)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_conf_get_int_000b0214)(param_3,0xaa)" (parenthesized_expression "(*(code *)PTR_conf_get_int_000b0214)" (( "(") (pointer_expression "*(code *)PTR_conf_get_int_000b0214" (* "*") (cast_expression "(code *)PTR_conf_get_int_000b0214" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_conf_get_int_000b0214"))) () ")")) (argument_list "(param_3,0xaa)" (( "(") (identifier "param_3") (, ",") (number_literal "0xaa") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    iVar2 = *(int *)PTR_share_can_be_downstream_000b09d0;\n    if (*(int *)PTR_share_can_be_upstream_000b09cc != 0) {\n      iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab);\n      if (iVar3 != 0) {\n        pcVar9 = (code *)PTR_conf_get_int_000b0214;\n        if (iVar2 != 0) goto LAB_0007a6f8;\n        uVar7 = 1;\n        bVar8 = false;\n        goto LAB_0007a528;\n      }\n    }\n    if (iVar2 != 0) {\n      iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac);\n      if (iVar2 != 0) {\n        uVar7 = 0;\n        bVar8 = true;\n        goto LAB_0007a528;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = *(int *)PTR_share_can_be_downstream_000b09d0;\n    if (*(int *)PTR_share_can_be_upstream_000b09cc != 0) {\n      iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab);\n      if (iVar3 != 0) {\n        pcVar9 = (code *)PTR_conf_get_int_000b0214;\n        if (iVar2 != 0) goto LAB_0007a6f8;\n        uVar7 = 1;\n        bVar8 = false;\n        goto LAB_0007a528;\n      }\n    }\n    if (iVar2 != 0) {\n      iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac);\n      if (iVar2 != 0) {\n        uVar7 = 0;\n        bVar8 = true;\n        goto LAB_0007a528;\n      }\n    }\n  }" ({ "{") (expression_statement "iVar2 = *(int *)PTR_share_can_be_downstream_000b09d0;" (assignment_expression "iVar2 = *(int *)PTR_share_can_be_downstream_000b09d0" (identifier "iVar2") (= "=") (pointer_expression "*(int *)PTR_share_can_be_downstream_000b09d0" (* "*") (cast_expression "(int *)PTR_share_can_be_downstream_000b09d0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_share_can_be_downstream_000b09d0")))) (; ";")) (if_statement "if (*(int *)PTR_share_can_be_upstream_000b09cc != 0) {\n      iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab);\n      if (iVar3 != 0) {\n        pcVar9 = (code *)PTR_conf_get_int_000b0214;\n        if (iVar2 != 0) goto LAB_0007a6f8;\n        uVar7 = 1;\n        bVar8 = false;\n        goto LAB_0007a528;\n      }\n    }" (if "if") (parenthesized_expression "(*(int *)PTR_share_can_be_upstream_000b09cc != 0)" (( "(") (binary_expression "*(int *)PTR_share_can_be_upstream_000b09cc != 0" (pointer_expression "*(int *)PTR_share_can_be_upstream_000b09cc" (* "*") (cast_expression "(int *)PTR_share_can_be_upstream_000b09cc" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_share_can_be_upstream_000b09cc"))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab);\n      if (iVar3 != 0) {\n        pcVar9 = (code *)PTR_conf_get_int_000b0214;\n        if (iVar2 != 0) goto LAB_0007a6f8;\n        uVar7 = 1;\n        bVar8 = false;\n        goto LAB_0007a528;\n      }\n    }" ({ "{") (expression_statement "iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab);" (assignment_expression "iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_conf_get_int_000b0214)(param_3,0xab)" (parenthesized_expression "(*(code *)PTR_conf_get_int_000b0214)" (( "(") (pointer_expression "*(code *)PTR_conf_get_int_000b0214" (* "*") (cast_expression "(code *)PTR_conf_get_int_000b0214" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_conf_get_int_000b0214"))) () ")")) (argument_list "(param_3,0xab)" (( "(") (identifier "param_3") (, ",") (number_literal "0xab") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n        pcVar9 = (code *)PTR_conf_get_int_000b0214;\n        if (iVar2 != 0) goto LAB_0007a6f8;\n        uVar7 = 1;\n        bVar8 = false;\n        goto LAB_0007a528;\n      }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        pcVar9 = (code *)PTR_conf_get_int_000b0214;\n        if (iVar2 != 0) goto LAB_0007a6f8;\n        uVar7 = 1;\n        bVar8 = false;\n        goto LAB_0007a528;\n      }" ({ "{") (expression_statement "pcVar9 = (code *)PTR_conf_get_int_000b0214;" (assignment_expression "pcVar9 = (code *)PTR_conf_get_int_000b0214" (identifier "pcVar9") (= "=") (cast_expression "(code *)PTR_conf_get_int_000b0214" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_conf_get_int_000b0214"))) (; ";")) (if_statement "if (iVar2 != 0) goto LAB_0007a6f8;" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0007a6f8;" (goto "goto") (statement_identifier "LAB_0007a6f8") (; ";"))) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" (identifier "uVar7") (= "=") (number_literal "1")) (; ";")) (expression_statement "bVar8 = false;" (assignment_expression "bVar8 = false" (identifier "bVar8") (= "=") (false "false")) (; ";")) (goto_statement "goto LAB_0007a528;" (goto "goto") (statement_identifier "LAB_0007a528") (; ";")) (} "}"))) (} "}"))) (if_statement "if (iVar2 != 0) {\n      iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac);\n      if (iVar2 != 0) {\n        uVar7 = 0;\n        bVar8 = true;\n        goto LAB_0007a528;\n      }\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac);\n      if (iVar2 != 0) {\n        uVar7 = 0;\n        bVar8 = true;\n        goto LAB_0007a528;\n      }\n    }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac);" (assignment_expression "iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_conf_get_int_000b0214)(param_3,0xac)" (parenthesized_expression "(*(code *)PTR_conf_get_int_000b0214)" (( "(") (pointer_expression "*(code *)PTR_conf_get_int_000b0214" (* "*") (cast_expression "(code *)PTR_conf_get_int_000b0214" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_conf_get_int_000b0214"))) () ")")) (argument_list "(param_3,0xac)" (( "(") (identifier "param_3") (, ",") (number_literal "0xac") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n        uVar7 = 0;\n        bVar8 = true;\n        goto LAB_0007a528;\n      }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        uVar7 = 0;\n        bVar8 = true;\n        goto LAB_0007a528;\n      }" ({ "{") (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "bVar8 = true;" (assignment_expression "bVar8 = true" (identifier "bVar8") (= "=") (true "true")) (; ";")) (goto_statement "goto LAB_0007a528;" (goto "goto") (statement_identifier "LAB_0007a528") (; ";")) (} "}"))) (} "}"))) (} "}"))) (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" (identifier "param_3") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_0007a4a8:\n  do {\n    if (local_2c == *(int *)puVar1) {\n      return param_3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    do {\n      pcVar9 = (code *)PTR___assert_fail_000b0ac0;\n      (*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);\nLAB_0007a6f8:\n      uVar7 = 1;\n      iVar2 = (*pcVar9)(param_3,0xac);\n      bVar8 = iVar2 != 0;\nLAB_0007a528:\n      param_2 = ssh_share_sockname(param_1,param_2,param_3);\n      param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);\n      param_1[2] = 0;\n      *param_1 = PTR_DAT_000b0178 + -0x23c;\n      local_30 = 0;\n      local_34 = 0;\n      local_38 = (undefined *)0x0;\n      local_3c = 0;\n      iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8);\n      puVar5 = local_38;\n      (*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);\n      (*(code *)PTR_safefree_000b01b0)(local_3c);\n      (*(code *)PTR_safefree_000b01b0)(local_38);\n      (*(code *)PTR_safefree_000b01b0)(local_34);\n      iVar2 = local_30;\n      puVar6 = PTR_DAT_000b01d0;\n      puVar4 = PTR_safefree_000b01b0;\n      if (iVar3 == 1) {\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }\n      if (iVar3 == 2) {\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }\n      param_3 = 0;\n      if (iVar3 != 0) goto LAB_0007a4a8;\n      puVar5 = PTR_DAT_000b01d0;\n      param_3 = local_30;\n    } while (local_30 != 0);\n    *param_5 = 0;\n    (*(code *)puVar4)(param_1);\n    (*(code *)PTR_safefree_000b01b0)(param_2);\n    puVar5 = puVar6;\n    param_3 = iVar2;\n  } while( true );" (statement_identifier "LAB_0007a4a8") (: ":") (do_statement "do {\n    if (local_2c == *(int *)puVar1) {\n      return param_3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    do {\n      pcVar9 = (code *)PTR___assert_fail_000b0ac0;\n      (*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);\nLAB_0007a6f8:\n      uVar7 = 1;\n      iVar2 = (*pcVar9)(param_3,0xac);\n      bVar8 = iVar2 != 0;\nLAB_0007a528:\n      param_2 = ssh_share_sockname(param_1,param_2,param_3);\n      param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);\n      param_1[2] = 0;\n      *param_1 = PTR_DAT_000b0178 + -0x23c;\n      local_30 = 0;\n      local_34 = 0;\n      local_38 = (undefined *)0x0;\n      local_3c = 0;\n      iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8);\n      puVar5 = local_38;\n      (*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);\n      (*(code *)PTR_safefree_000b01b0)(local_3c);\n      (*(code *)PTR_safefree_000b01b0)(local_38);\n      (*(code *)PTR_safefree_000b01b0)(local_34);\n      iVar2 = local_30;\n      puVar6 = PTR_DAT_000b01d0;\n      puVar4 = PTR_safefree_000b01b0;\n      if (iVar3 == 1) {\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }\n      if (iVar3 == 2) {\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }\n      param_3 = 0;\n      if (iVar3 != 0) goto LAB_0007a4a8;\n      puVar5 = PTR_DAT_000b01d0;\n      param_3 = local_30;\n    } while (local_30 != 0);\n    *param_5 = 0;\n    (*(code *)puVar4)(param_1);\n    (*(code *)PTR_safefree_000b01b0)(param_2);\n    puVar5 = puVar6;\n    param_3 = iVar2;\n  } while( true );" (do "do") (compound_statement "{\n    if (local_2c == *(int *)puVar1) {\n      return param_3;\n    }\n    (*(code *)PTR___stack_chk_fail_000b0c70)();\n    do {\n      pcVar9 = (code *)PTR___assert_fail_000b0ac0;\n      (*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);\nLAB_0007a6f8:\n      uVar7 = 1;\n      iVar2 = (*pcVar9)(param_3,0xac);\n      bVar8 = iVar2 != 0;\nLAB_0007a528:\n      param_2 = ssh_share_sockname(param_1,param_2,param_3);\n      param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);\n      param_1[2] = 0;\n      *param_1 = PTR_DAT_000b0178 + -0x23c;\n      local_30 = 0;\n      local_34 = 0;\n      local_38 = (undefined *)0x0;\n      local_3c = 0;\n      iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8);\n      puVar5 = local_38;\n      (*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);\n      (*(code *)PTR_safefree_000b01b0)(local_3c);\n      (*(code *)PTR_safefree_000b01b0)(local_38);\n      (*(code *)PTR_safefree_000b01b0)(local_34);\n      iVar2 = local_30;\n      puVar6 = PTR_DAT_000b01d0;\n      puVar4 = PTR_safefree_000b01b0;\n      if (iVar3 == 1) {\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }\n      if (iVar3 == 2) {\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }\n      param_3 = 0;\n      if (iVar3 != 0) goto LAB_0007a4a8;\n      puVar5 = PTR_DAT_000b01d0;\n      param_3 = local_30;\n    } while (local_30 != 0);\n    *param_5 = 0;\n    (*(code *)puVar4)(param_1);\n    (*(code *)PTR_safefree_000b01b0)(param_2);\n    puVar5 = puVar6;\n    param_3 = iVar2;\n  }" ({ "{") (if_statement "if (local_2c == *(int *)puVar1) {\n      return param_3;\n    }" (if "if") (parenthesized_expression "(local_2c == *(int *)puVar1)" (( "(") (binary_expression "local_2c == *(int *)puVar1" (identifier "local_2c") (== "==") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) () ")")) (compound_statement "{\n      return param_3;\n    }" ({ "{") (return_statement "return param_3;" (return "return") (identifier "param_3") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR___stack_chk_fail_000b0c70)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b0c70)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b0c70)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000b0c70" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000b0c70" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000b0c70"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (do_statement "do {\n      pcVar9 = (code *)PTR___assert_fail_000b0ac0;\n      (*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);\nLAB_0007a6f8:\n      uVar7 = 1;\n      iVar2 = (*pcVar9)(param_3,0xac);\n      bVar8 = iVar2 != 0;\nLAB_0007a528:\n      param_2 = ssh_share_sockname(param_1,param_2,param_3);\n      param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);\n      param_1[2] = 0;\n      *param_1 = PTR_DAT_000b0178 + -0x23c;\n      local_30 = 0;\n      local_34 = 0;\n      local_38 = (undefined *)0x0;\n      local_3c = 0;\n      iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8);\n      puVar5 = local_38;\n      (*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);\n      (*(code *)PTR_safefree_000b01b0)(local_3c);\n      (*(code *)PTR_safefree_000b01b0)(local_38);\n      (*(code *)PTR_safefree_000b01b0)(local_34);\n      iVar2 = local_30;\n      puVar6 = PTR_DAT_000b01d0;\n      puVar4 = PTR_safefree_000b01b0;\n      if (iVar3 == 1) {\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }\n      if (iVar3 == 2) {\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }\n      param_3 = 0;\n      if (iVar3 != 0) goto LAB_0007a4a8;\n      puVar5 = PTR_DAT_000b01d0;\n      param_3 = local_30;\n    } while (local_30 != 0);" (do "do") (compound_statement "{\n      pcVar9 = (code *)PTR___assert_fail_000b0ac0;\n      (*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);\nLAB_0007a6f8:\n      uVar7 = 1;\n      iVar2 = (*pcVar9)(param_3,0xac);\n      bVar8 = iVar2 != 0;\nLAB_0007a528:\n      param_2 = ssh_share_sockname(param_1,param_2,param_3);\n      param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);\n      param_1[2] = 0;\n      *param_1 = PTR_DAT_000b0178 + -0x23c;\n      local_30 = 0;\n      local_34 = 0;\n      local_38 = (undefined *)0x0;\n      local_3c = 0;\n      iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8);\n      puVar5 = local_38;\n      (*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);\n      (*(code *)PTR_safefree_000b01b0)(local_3c);\n      (*(code *)PTR_safefree_000b01b0)(local_38);\n      (*(code *)PTR_safefree_000b01b0)(local_34);\n      iVar2 = local_30;\n      puVar6 = PTR_DAT_000b01d0;\n      puVar4 = PTR_safefree_000b01b0;\n      if (iVar3 == 1) {\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }\n      if (iVar3 == 2) {\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }\n      param_3 = 0;\n      if (iVar3 != 0) goto LAB_0007a4a8;\n      puVar5 = PTR_DAT_000b01d0;\n      param_3 = local_30;\n    }" ({ "{") (expression_statement "pcVar9 = (code *)PTR___assert_fail_000b0ac0;" (assignment_expression "pcVar9 = (code *)PTR___assert_fail_000b0ac0" (identifier "pcVar9") (= "=") (cast_expression "(code *)PTR___assert_fail_000b0ac0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000b0ac0"))) (; ";")) (expression_statement "(*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);" (call_expression "(*(code *)PTR___assert_fail_000b0ac0)\n                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8)" (parenthesized_expression "(*(code *)PTR___assert_fail_000b0ac0)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_000b0ac0" (* "*") (cast_expression "(code *)PTR___assert_fail_000b0ac0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_000b0ac0"))) () ")")) (argument_list "(PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8)" (( "(") (binary_expression "PTR_DAT_000b01d0 + -0x3eb4" (identifier "PTR_DAT_000b01d0") (+ "+") (number_literal "-0x3eb4")) (, ",") (binary_expression "PTR_DAT_000b01d0 + -0x42c4" (identifier "PTR_DAT_000b01d0") (+ "+") (number_literal "-0x42c4")) (, ",") (number_literal "0x873") (, ",") (binary_expression "puVar5 + -0x3dc8" (identifier "puVar5") (+ "+") (number_literal "-0x3dc8")) () ")"))) (; ";")) (labeled_statement "LAB_0007a6f8:\n      uVar7 = 1;" (statement_identifier "LAB_0007a6f8") (: ":") (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" (identifier "uVar7") (= "=") (number_literal "1")) (; ";"))) (expression_statement "iVar2 = (*pcVar9)(param_3,0xac);" (assignment_expression "iVar2 = (*pcVar9)(param_3,0xac)" (identifier "iVar2") (= "=") (call_expression "(*pcVar9)(param_3,0xac)" (parenthesized_expression "(*pcVar9)" (( "(") (pointer_expression "*pcVar9" (* "*") (identifier "pcVar9")) () ")")) (argument_list "(param_3,0xac)" (( "(") (identifier "param_3") (, ",") (number_literal "0xac") () ")")))) (; ";")) (expression_statement "bVar8 = iVar2 != 0;" (assignment_expression "bVar8 = iVar2 != 0" (identifier "bVar8") (= "=") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) (; ";")) (labeled_statement "LAB_0007a528:\n      param_2 = ssh_share_sockname(param_1,param_2,param_3);" (statement_identifier "LAB_0007a528") (: ":") (expression_statement "param_2 = ssh_share_sockname(param_1,param_2,param_3);" (assignment_expression "param_2 = ssh_share_sockname(param_1,param_2,param_3)" (identifier "param_2") (= "=") (call_expression "ssh_share_sockname(param_1,param_2,param_3)" (identifier "ssh_share_sockname") (argument_list "(param_1,param_2,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";"))) (expression_statement "param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);" (assignment_expression "param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c)" (identifier "param_1") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_safemalloc_000b01e8)(1,0x1c)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b01e8)" (( "(") (pointer_expression "*(code *)PTR_safemalloc_000b01e8" (* "*") (cast_expression "(code *)PTR_safemalloc_000b01e8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safemalloc_000b01e8"))) () ")")) (argument_list "(1,0x1c)" (( "(") (number_literal "1") (, ",") (number_literal "0x1c") () ")"))))) (; ";")) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_1 = PTR_DAT_000b0178 + -0x23c;" (assignment_expression "*param_1 = PTR_DAT_000b0178 + -0x23c" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "PTR_DAT_000b0178 + -0x23c" (identifier "PTR_DAT_000b0178") (+ "+") (number_literal "-0x23c"))) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" (identifier "local_34") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_38 = (undefined *)0x0;" (assignment_expression "local_38 = (undefined *)0x0" (identifier "local_38") (= "=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" (identifier "local_3c") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8);" (assignment_expression "iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8)" (identifier "iVar3") (= "=") (call_expression "platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8)" (identifier "platform_ssh_share") (argument_list "(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,\n                                 &local_34,uVar7,bVar8)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_1") (, ",") (pointer_expression "&local_30" (& "&") (identifier "local_30")) (, ",") (pointer_expression "&local_3c" (& "&") (identifier "local_3c")) (, ",") (pointer_expression "&local_38" (& "&") (identifier "local_38")) (, ",") (pointer_expression "&local_34" (& "&") (identifier "local_34")) (, ",") (identifier "uVar7") (, ",") (identifier "bVar8") () ")")))) (; ";")) (expression_statement "puVar5 = local_38;" (assignment_expression "puVar5 = local_38" (identifier "puVar5") (= "=") (identifier "local_38")) (; ";")) (expression_statement "(*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);" (call_expression "(*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34)" (parenthesized_expression "(*(code *)PTR_ssh_connshare_log_000b09d4)" (( "(") (pointer_expression "*(code *)PTR_ssh_connshare_log_000b09d4" (* "*") (cast_expression "(code *)PTR_ssh_connshare_log_000b09d4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ssh_connshare_log_000b09d4"))) () ")")) (argument_list "(param_4,iVar3,local_3c,local_38,local_34)" (( "(") (identifier "param_4") (, ",") (identifier "iVar3") (, ",") (identifier "local_3c") (, ",") (identifier "local_38") (, ",") (identifier "local_34") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_000b01b0)(local_3c);" (call_expression "(*(code *)PTR_safefree_000b01b0)(local_3c)" (parenthesized_expression "(*(code *)PTR_safefree_000b01b0)" (( "(") (pointer_expression "*(code *)PTR_safefree_000b01b0" (* "*") (cast_expression "(code *)PTR_safefree_000b01b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000b01b0"))) () ")")) (argument_list "(local_3c)" (( "(") (identifier "local_3c") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_000b01b0)(local_38);" (call_expression "(*(code *)PTR_safefree_000b01b0)(local_38)" (parenthesized_expression "(*(code *)PTR_safefree_000b01b0)" (( "(") (pointer_expression "*(code *)PTR_safefree_000b01b0" (* "*") (cast_expression "(code *)PTR_safefree_000b01b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000b01b0"))) () ")")) (argument_list "(local_38)" (( "(") (identifier "local_38") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_000b01b0)(local_34);" (call_expression "(*(code *)PTR_safefree_000b01b0)(local_34)" (parenthesized_expression "(*(code *)PTR_safefree_000b01b0)" (( "(") (pointer_expression "*(code *)PTR_safefree_000b01b0" (* "*") (cast_expression "(code *)PTR_safefree_000b01b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000b01b0"))) () ")")) (argument_list "(local_34)" (( "(") (identifier "local_34") () ")"))) (; ";")) (expression_statement "iVar2 = local_30;" (assignment_expression "iVar2 = local_30" (identifier "iVar2") (= "=") (identifier "local_30")) (; ";")) (expression_statement "puVar6 = PTR_DAT_000b01d0;" (assignment_expression "puVar6 = PTR_DAT_000b01d0" (identifier "puVar6") (= "=") (identifier "PTR_DAT_000b01d0")) (; ";")) (expression_statement "puVar4 = PTR_safefree_000b01b0;" (assignment_expression "puVar4 = PTR_safefree_000b01b0" (identifier "puVar4") (= "=") (identifier "PTR_safefree_000b01b0")) (; ";")) (if_statement "if (iVar3 == 1) {\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }" (if "if") (parenthesized_expression "(iVar3 == 1)" (( "(") (binary_expression "iVar3 == 1" (identifier "iVar3") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        *param_5 = 0;\n        (*(code *)puVar4)(param_1);\n        (*(code *)PTR_safefree_000b01b0)(param_2);\n        param_3 = local_30;\n        goto LAB_0007a4a8;\n      }" ({ "{") (expression_statement "*param_5 = 0;" (assignment_expression "*param_5 = 0" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)puVar4)(param_1);" (call_expression "(*(code *)puVar4)(param_1)" (parenthesized_expression "(*(code *)puVar4)" (( "(") (pointer_expression "*(code *)puVar4" (* "*") (cast_expression "(code *)puVar4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_000b01b0)(param_2);" (call_expression "(*(code *)PTR_safefree_000b01b0)(param_2)" (parenthesized_expression "(*(code *)PTR_safefree_000b01b0)" (( "(") (pointer_expression "*(code *)PTR_safefree_000b01b0" (* "*") (cast_expression "(code *)PTR_safefree_000b01b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000b01b0"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (expression_statement "param_3 = local_30;" (assignment_expression "param_3 = local_30" (identifier "param_3") (= "=") (identifier "local_30")) (; ";")) (goto_statement "goto LAB_0007a4a8;" (goto "goto") (statement_identifier "LAB_0007a4a8") (; ";")) (} "}"))) (if_statement "if (iVar3 == 2) {\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }" (if "if") (parenthesized_expression "(iVar3 == 2)" (( "(") (binary_expression "iVar3 == 2" (identifier "iVar3") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n        puVar4 = PTR_LAB_000b08e8 + 0x6640;\n        *param_5 = param_1;\n        param_1[2] = local_30;\n        uVar7 = newtree234(puVar4);\n        param_1[3] = uVar7;\n        param_1[5] = param_4;\n        param_1[6] = 0;\n        param_1[1] = param_2;\n        param_1[4] = 1;\n        param_3 = 0;\n        goto LAB_0007a4a8;\n      }" ({ "{") (expression_statement "puVar4 = PTR_LAB_000b08e8 + 0x6640;" (assignment_expression "puVar4 = PTR_LAB_000b08e8 + 0x6640" (identifier "puVar4") (= "=") (binary_expression "PTR_LAB_000b08e8 + 0x6640" (identifier "PTR_LAB_000b08e8") (+ "+") (number_literal "0x6640"))) (; ";")) (expression_statement "*param_5 = param_1;" (assignment_expression "*param_5 = param_1" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "param_1[2] = local_30;" (assignment_expression "param_1[2] = local_30" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "local_30")) (; ";")) (expression_statement "uVar7 = newtree234(puVar4);" (assignment_expression "uVar7 = newtree234(puVar4)" (identifier "uVar7") (= "=") (call_expression "newtree234(puVar4)" (identifier "newtree234") (argument_list "(puVar4)" (( "(") (identifier "puVar4") () ")")))) (; ";")) (expression_statement "param_1[3] = uVar7;" (assignment_expression "param_1[3] = uVar7" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "param_1[5] = param_4;" (assignment_expression "param_1[5] = param_4" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[1] = param_2;" (assignment_expression "param_1[1] = param_2" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "param_1[4] = 1;" (assignment_expression "param_1[4] = 1" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" (identifier "param_3") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_0007a4a8;" (goto "goto") (statement_identifier "LAB_0007a4a8") (; ";")) (} "}"))) (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" (identifier "param_3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar3 != 0) goto LAB_0007a4a8;" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0007a4a8;" (goto "goto") (statement_identifier "LAB_0007a4a8") (; ";"))) (expression_statement "puVar5 = PTR_DAT_000b01d0;" (assignment_expression "puVar5 = PTR_DAT_000b01d0" (identifier "puVar5") (= "=") (identifier "PTR_DAT_000b01d0")) (; ";")) (expression_statement "param_3 = local_30;" (assignment_expression "param_3 = local_30" (identifier "param_3") (= "=") (identifier "local_30")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(local_30 != 0)" (( "(") (binary_expression "local_30 != 0" (identifier "local_30") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "*param_5 = 0;" (assignment_expression "*param_5 = 0" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)puVar4)(param_1);" (call_expression "(*(code *)puVar4)(param_1)" (parenthesized_expression "(*(code *)puVar4)" (( "(") (pointer_expression "*(code *)puVar4" (* "*") (cast_expression "(code *)puVar4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_000b01b0)(param_2);" (call_expression "(*(code *)PTR_safefree_000b01b0)(param_2)" (parenthesized_expression "(*(code *)PTR_safefree_000b01b0)" (( "(") (pointer_expression "*(code *)PTR_safefree_000b01b0" (* "*") (cast_expression "(code *)PTR_safefree_000b01b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000b01b0"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (expression_statement "puVar5 = puVar6;" (assignment_expression "puVar5 = puVar6" (identifier "puVar5") (= "=") (identifier "puVar6")) (; ";")) (expression_statement "param_3 = iVar2;" (assignment_expression "param_3 = iVar2" (identifier "param_3") (= "=") (identifier "iVar2")) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";"))) (} "}")))

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

type_1 function_1(char *host,int port,type_2 *conf,type_3 ssh,void **state)

{
  type_1 ppsVar1;
  char *logtext;
  char *ds_err;
  char *us_err;
  type_1 sock;
  
  ppsVar1 = (type_1)(*(type_4 *)PTR_conf_get_int_000b0214)(conf,0xaa);
  return ppsVar1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (false))) (goto_statement label: (statement_identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (true))) (goto_statement label: (statement_identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal) (binary_expression left: (identifier) right: (number_literal))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier)) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (true)))))))

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

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  undefined *puVar4;
  undefined *puVar5;
  undefined *puVar6;
  undefined4 uVar7;
  bool bVar8;
  code *pcVar9;
  undefined4 local_3c;
  undefined *local_38;
  undefined4 local_34;
  int local_30;
  int local_2c;
  
  puVar1 = PTR___stack_chk_guard_000b0c9c;
  local_2c = *(int *)PTR___stack_chk_guard_000b0c9c;
  puVar5 = param_4;
  iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xaa);
  if (iVar2 != 0) {
    iVar2 = *(int *)PTR_share_can_be_downstream_000b09d0;
    if (*(int *)PTR_share_can_be_upstream_000b09cc != 0) {
      iVar3 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xab);
      if (iVar3 != 0) {
        pcVar9 = (code *)PTR_conf_get_int_000b0214;
        if (iVar2 != 0) goto LAB_0007a6f8;
        uVar7 = 1;
        bVar8 = false;
        goto LAB_0007a528;
      }
    }
    if (iVar2 != 0) {
      iVar2 = (*(code *)PTR_conf_get_int_000b0214)(param_3,0xac);
      if (iVar2 != 0) {
        uVar7 = 0;
        bVar8 = true;
        goto LAB_0007a528;
      }
    }
  }
  param_3 = 0;
LAB_0007a4a8:
  do {
    if (local_2c == *(int *)puVar1) {
      return param_3;
    }
    (*(code *)PTR___stack_chk_fail_000b0c70)();
    do {
      pcVar9 = (code *)PTR___assert_fail_000b0ac0;
      (*(code *)PTR___assert_fail_000b0ac0)
                (PTR_DAT_000b01d0 + -0x3eb4,PTR_DAT_000b01d0 + -0x42c4,0x873,puVar5 + -0x3dc8);
LAB_0007a6f8:
      uVar7 = 1;
      iVar2 = (*pcVar9)(param_3,0xac);
      bVar8 = iVar2 != 0;
LAB_0007a528:
      param_2 = ssh_share_sockname(param_1,param_2,param_3);
      param_1 = (undefined4 *)(*(code *)PTR_safemalloc_000b01e8)(1,0x1c);
      param_1[2] = 0;
      *param_1 = PTR_DAT_000b0178 + -0x23c;
      local_30 = 0;
      local_34 = 0;
      local_38 = (undefined *)0x0;
      local_3c = 0;
      iVar3 = platform_ssh_share(param_2,param_3,param_4,param_1,&local_30,&local_3c,&local_38,
                                 &local_34,uVar7,bVar8);
      puVar5 = local_38;
      (*(code *)PTR_ssh_connshare_log_000b09d4)(param_4,iVar3,local_3c,local_38,local_34);
      (*(code *)PTR_safefree_000b01b0)(local_3c);
      (*(code *)PTR_safefree_000b01b0)(local_38);
      (*(code *)PTR_safefree_000b01b0)(local_34);
      iVar2 = local_30;
      puVar6 = PTR_DAT_000b01d0;
      puVar4 = PTR_safefree_000b01b0;
      if (iVar3 == 1) {
        *param_5 = 0;
        (*(code *)puVar4)(param_1);
        (*(code *)PTR_safefree_000b01b0)(param_2);
        param_3 = local_30;
        goto LAB_0007a4a8;
      }
      if (iVar3 == 2) {
        puVar4 = PTR_LAB_000b08e8 + 0x6640;
        *param_5 = param_1;
        param_1[2] = local_30;
        uVar7 = newtree234(puVar4);
        param_1[3] = uVar7;
        param_1[5] = param_4;
        param_1[6] = 0;
        param_1[1] = param_2;
        param_1[4] = 1;
        param_3 = 0;
        goto LAB_0007a4a8;
      }
      param_3 = 0;
      if (iVar3 != 0) goto LAB_0007a4a8;
      puVar5 = PTR_DAT_000b01d0;
      param_3 = local_30;
    } while (local_30 != 0);
    *param_5 = 0;
    (*(code *)puVar4)(param_1);
    (*(code *)PTR_safefree_000b01b0)(param_2);
    puVar5 = puVar6;
    param_3 = iVar2;
  } while( true );
}

