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

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

{
  Socket ppsVar1;
  int iVar2;
  int iVar3;
  Socket ppsVar4;
  plug_function_table *pi_name;
  Plug upplug;
  plug_function_table *ppVar5;
  uint can_downstream;
  int in_GS_OFFSET;
  int local_40;
  char *logtext;
  char *ds_err;
  char *us_err;
  Socket sock;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x6e969;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = conf_get_int(conf,0xaa);
  iVar3 = share_can_be_downstream;
  if (iVar2 != 0) {
    if ((share_can_be_upstream == 0) || (iVar2 = conf_get_int(conf,0xab), iVar2 == 0)) {
      if ((iVar3 == 0) || (iVar3 = conf_get_int(conf,0xac), iVar3 == 0)) goto LAB_0006e9d8;
      can_downstream = 1;
      local_40 = 0;
    }
    else if (iVar3 == 0) {
      local_40 = 1;
      can_downstream = 0;
    }
    else {
      iVar3 = conf_get_int(conf,0xac);
      local_40 = 1;
      can_downstream = (uint)(iVar3 != 0);
    }
    pi_name = (plug_function_table *)ssh_share_sockname(host,port,conf);
    upplug = (Plug)safemalloc(1,0x1c);
    *upplug = &ssh_connection_sharing_init::listen_fn_table;
    upplug[2] = (plug_function_table *)0x0;
    logtext = (char *)0x0;
    sock = (Socket)0x0;
    us_err = (char *)0x0;
    ds_err = (char *)0x0;
    iVar3 = platform_ssh_share((char *)pi_name,conf,&ssh->fn,upplug,&sock,&logtext,&ds_err,&us_err,
                               local_40,can_downstream);
    ssh_connshare_log(ssh,iVar3,logtext,ds_err,us_err);
    safefree(logtext);
    safefree(ds_err);
    safefree(us_err);
    ppsVar1 = sock;
    if (iVar3 == 1) {
      *state = (void *)0x0;
      safefree(upplug);
      safefree(pi_name);
      ppsVar4 = sock;
      goto LAB_0006e9da;
    }
    if (iVar3 != 2) {
      ppsVar4 = (Socket)0x0;
      if (iVar3 == 0) {
        if (sock != (Socket)0x0) {
                    /* WARNING: Subroutine does not return */
          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");
        }
        *state = (void *)0x0;
        safefree(upplug);
        safefree(pi_name);
        ppsVar4 = ppsVar1;
      }
      goto LAB_0006e9da;
    }
    *state = upplug;
    upplug[2] = (plug_function_table *)sock;
    ppVar5 = (plug_function_table *)newtree234(share_connstate_cmp);
    upplug[3] = ppVar5;
    upplug[5] = (plug_function_table *)ssh;
    upplug[6] = (plug_function_table *)0x0;
    upplug[1] = pi_name;
    upplug[4] = (plug_function_table *)0x1;
  }
LAB_0006e9d8:
  ppsVar4 = (Socket)0x0;
LAB_0006e9da:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return ppsVar4;
}



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

int FUN_0006e960(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                undefined4 *param_5)

{
  int iVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  undefined4 uVar6;
  int in_GS_OFFSET;
  bool bVar7;
  undefined4 local_40;
  undefined4 local_30;
  undefined4 local_2c;
  undefined4 local_28;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x6e969;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = FUN_0001fb70(param_3,0xaa);
  iVar2 = DAT_000cdef0;
  if (iVar1 != 0) {
    if ((DAT_000cdeec == 0) || (iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0)) {
      if ((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)) goto LAB_0006e9d8;
      bVar7 = true;
      local_40 = 0;
    }
    else if (iVar2 == 0) {
      local_40 = 1;
      bVar7 = false;
    }
    else {
      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);
      bVar7 = iVar2 != 0;
      local_40 = 1;
    }
    uVar4 = FUN_0006e760(param_1,param_2,param_3);
    puVar5 = (undefined4 *)FUN_0002e780(1,0x1c);
    *puVar5 = &DAT_0010f888;
    puVar5[2] = 0;
    local_30 = 0;
    local_24 = 0;
    local_28 = 0;
    local_2c = 0;
    iVar1 = FUN_0009ede0(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,
                         local_40,bVar7);
    FUN_0003efc0(param_4,iVar1,local_30,local_2c,local_28);
    FUN_0002f010(local_30);
    FUN_0002f010(local_2c);
    FUN_0002f010(local_28);
    iVar2 = local_24;
    if (iVar1 == 1) {
      *param_5 = 0;
      FUN_0002f010(puVar5);
      FUN_0002f010(uVar4);
      iVar3 = local_24;
      goto LAB_0006e9da;
    }
    if (iVar1 != 2) {
      iVar3 = 0;
      if (iVar1 == 0) {
        if (local_24 != 0) {
                    /* WARNING: Subroutine does not return */
          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");
        }
        *param_5 = 0;
        FUN_0002f010(puVar5);
        FUN_0002f010(uVar4);
        iVar3 = iVar2;
      }
      goto LAB_0006e9da;
    }
    *param_5 = puVar5;
    puVar5[2] = local_24;
    uVar6 = FUN_000814b0(FUN_0006ba00);
    puVar5[3] = uVar6;
    puVar5[5] = param_4;
    puVar5[6] = 0;
    puVar5[1] = uVar4;
    puVar5[4] = 1;
  }
LAB_0006e9d8:
  iVar3 = 0;
LAB_0006e9da:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_000a39d0();
  }
  return iVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001c4f0
ADD EBX,0xa1de7
SUB ESP,0x44
MOV EAX,dword ptr [ESP + 0x68]
MOV ESI,dword ptr [ESP + 0x60]
MOV EBP,dword ptr [ESP + 0x58]
MOV EDI,dword ptr [ESP + 0x64]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x34],EAX
XOR EAX,EAX
PUSH 0xaa
PUSH ESI
CALL 0x0001fb70
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0006e9d8
LEA EAX,[EBX + 0xfffbd7a0]
MOV ECX,dword ptr [EAX]
LEA EAX,[EBX + 0xfffbd79c]
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JNZ 0x0006e9f8
TEST ECX,ECX
JZ 0x0006e9d8
SUB ESP,0x8
PUSH 0xac
PUSH ESI
CALL 0x0001fb70
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0006eb30
LEA ESI,[ESI]
XOR EAX,EAX
MOV EDI,dword ptr [ESP + 0x2c]
XOR EDI,dword ptr GS:[0x14]
JNZ 0x0006ebb7
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x8],ECX
SUB ESP,0x8
PUSH 0xab
PUSH ESI
CALL 0x0001fb70
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x8]
TEST EAX,EAX
JZ 0x0006e9b8
TEST ECX,ECX
JNZ 0x0006ebdb
MOV dword ptr [ESP + 0xc],0x1
MOV dword ptr [ESP + 0x8],ECX
SUB ESP,0x4
PUSH ESI
PUSH dword ptr [ESP + 0x5c]
PUSH EBP
CALL 0x0006e760
MOV EBP,EAX
POP EAX
POP EDX
PUSH 0x1c
PUSH 0x1
CALL 0x0002e780
MOV EDX,EAX
LEA EAX,[EBX + 0xfffff138]
MOV dword ptr [EDX],EAX
MOV dword ptr [EDX + 0x8],0x0
MOV dword ptr [ESP + 0x2c],0x0
MOV dword ptr [ESP + 0x38],0x0
MOV dword ptr [ESP + 0x34],0x0
MOV dword ptr [ESP + 0x30],0x0
POP ECX
POP EAX
MOV ECX,dword ptr [ESP + 0x10]
PUSH ECX
PUSH dword ptr [ESP + 0x18]
LEA EAX,[ESP + 0x34]
PUSH EAX
LEA EAX,[ESP + 0x34]
PUSH EAX
LEA EAX,[ESP + 0x34]
PUSH EAX
LEA EAX,[ESP + 0x44]
PUSH EAX
PUSH EDX
MOV dword ptr [ESP + 0x2c],EDX
PUSH EDI
PUSH ESI
PUSH EBP
CALL 0x0009ede0
ADD ESP,0x24
PUSH dword ptr [ESP + 0x30]
MOV ESI,EAX
PUSH dword ptr [ESP + 0x30]
PUSH dword ptr [ESP + 0x30]
PUSH EAX
PUSH EDI
CALL 0x0003efc0
ADD ESP,0x14
PUSH dword ptr [ESP + 0x28]
CALL 0x0002f010
POP EAX
PUSH dword ptr [ESP + 0x2c]
CALL 0x0002f010
POP EAX
PUSH dword ptr [ESP + 0x30]
CALL 0x0002f010
ADD ESP,0x10
CMP ESI,0x1
MOV EDX,dword ptr [ESP + 0x8]
JZ 0x0006eb90
CMP ESI,0x2
JZ 0x0006eb48
XOR EAX,EAX
TEST ESI,ESI
JNZ 0x0006e9da
MOV EAX,dword ptr [ESP + 0x28]
TEST EAX,EAX
JNZ 0x0006ebbc
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [ESP + 0x4]
SUB ESP,0xc
MOV dword ptr [EAX],0x0
PUSH EDX
CALL 0x0002f010
MOV dword ptr [ESP],EBP
CALL 0x0002f010
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x8]
JMP 0x0006e9da
MOV ECX,0x1
MOV dword ptr [ESP + 0xc],0x0
JMP 0x0006ea25
MOV EAX,dword ptr [ESP + 0x4]
MOV dword ptr [ESP + 0x4],EDX
SUB ESP,0xc
MOV dword ptr [EAX],EDX
MOV EAX,dword ptr [ESP + 0x34]
MOV dword ptr [EDX + 0x8],EAX
LEA EAX,[EBX + 0xfff5b2b0]
PUSH EAX
CALL 0x000814b0
MOV EDX,dword ptr [ESP + 0x14]
ADD ESP,0x10
MOV dword ptr [EDX + 0xc],EAX
MOV dword ptr [EDX + 0x14],EDI
MOV dword ptr [EDX + 0x18],0x0
MOV dword ptr [EDX + 0x4],EBP
MOV dword ptr [EDX + 0x10],0x1
JMP 0x0006e9d8
MOV EAX,dword ptr [ESP + 0x4]
SUB ESP,0xc
MOV dword ptr [EAX],0x0
PUSH EDX
CALL 0x0002f010
MOV dword ptr [ESP],EBP
CALL 0x0002f010
MOV EAX,dword ptr [ESP + 0x38]
ADD ESP,0x10
JMP 0x0006e9da
CALL 0x000a39d0
LEA EAX,[EBX + 0xfffb82b8]
PUSH EAX
LEA EAX,[EBX + 0xfffb7d7e]
PUSH 0x873
PUSH EAX
LEA EAX,[EBX + 0xfffb7e5a]
PUSH EAX
CALL 0x0001c000
PUSH EAX
PUSH EAX
PUSH 0xac
PUSH ESI
CALL 0x0001fb70
ADD ESP,0x10
XOR ECX,ECX
TEST EAX,EAX
MOV dword ptr [ESP + 0xc],0x1
SETNZ CL
JMP 0x0006ea25
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0006e960(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int in_GS_OFFSET;\n  bool bVar7;\n  undefined4 local_40;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x6e969;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0001fb70(param_3,0xaa);\n  iVar2 = DAT_000cdef0;\n  if (iVar1 != 0) {\n    if ((DAT_000cdeec == 0) || (iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0)) {\n      if ((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)) goto LAB_0006e9d8;\n      bVar7 = true;\n      local_40 = 0;\n    }\n    else if (iVar2 == 0) {\n      local_40 = 1;\n      bVar7 = false;\n    }\n    else {\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }\n    uVar4 = FUN_0006e760(param_1,param_2,param_3);\n    puVar5 = (undefined4 *)FUN_0002e780(1,0x1c);\n    *puVar5 = &DAT_0010f888;\n    puVar5[2] = 0;\n    local_30 = 0;\n    local_24 = 0;\n    local_28 = 0;\n    local_2c = 0;\n    iVar1 = FUN_0009ede0(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,\n                         local_40,bVar7);\n    FUN_0003efc0(param_4,iVar1,local_30,local_2c,local_28);\n    FUN_0002f010(local_30);\n    FUN_0002f010(local_2c);\n    FUN_0002f010(local_28);\n    iVar2 = local_24;\n    if (iVar1 == 1) {\n      *param_5 = 0;\n      FUN_0002f010(puVar5);\n      FUN_0002f010(uVar4);\n      iVar3 = local_24;\n      goto LAB_0006e9da;\n    }\n    if (iVar1 != 2) {\n      iVar3 = 0;\n      if (iVar1 == 0) {\n        if (local_24 != 0) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *param_5 = 0;\n        FUN_0002f010(puVar5);\n        FUN_0002f010(uVar4);\n        iVar3 = iVar2;\n      }\n      goto LAB_0006e9da;\n    }\n    *param_5 = puVar5;\n    puVar5[2] = local_24;\n    uVar6 = FUN_000814b0(FUN_0006ba00);\n    puVar5[3] = uVar6;\n    puVar5[5] = param_4;\n    puVar5[6] = 0;\n    puVar5[1] = uVar4;\n    puVar5[4] = 1;\n  }\nLAB_0006e9d8:\n  iVar3 = 0;\nLAB_0006e9da:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000a39d0();\n  }\n  return iVar3;\n}\n\n" comment (function_definition "int FUN_0006e960(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int in_GS_OFFSET;\n  bool bVar7;\n  undefined4 local_40;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x6e969;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0001fb70(param_3,0xaa);\n  iVar2 = DAT_000cdef0;\n  if (iVar1 != 0) {\n    if ((DAT_000cdeec == 0) || (iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0)) {\n      if ((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)) goto LAB_0006e9d8;\n      bVar7 = true;\n      local_40 = 0;\n    }\n    else if (iVar2 == 0) {\n      local_40 = 1;\n      bVar7 = false;\n    }\n    else {\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }\n    uVar4 = FUN_0006e760(param_1,param_2,param_3);\n    puVar5 = (undefined4 *)FUN_0002e780(1,0x1c);\n    *puVar5 = &DAT_0010f888;\n    puVar5[2] = 0;\n    local_30 = 0;\n    local_24 = 0;\n    local_28 = 0;\n    local_2c = 0;\n    iVar1 = FUN_0009ede0(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,\n                         local_40,bVar7);\n    FUN_0003efc0(param_4,iVar1,local_30,local_2c,local_28);\n    FUN_0002f010(local_30);\n    FUN_0002f010(local_2c);\n    FUN_0002f010(local_28);\n    iVar2 = local_24;\n    if (iVar1 == 1) {\n      *param_5 = 0;\n      FUN_0002f010(puVar5);\n      FUN_0002f010(uVar4);\n      iVar3 = local_24;\n      goto LAB_0006e9da;\n    }\n    if (iVar1 != 2) {\n      iVar3 = 0;\n      if (iVar1 == 0) {\n        if (local_24 != 0) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *param_5 = 0;\n        FUN_0002f010(puVar5);\n        FUN_0002f010(uVar4);\n        iVar3 = iVar2;\n      }\n      goto LAB_0006e9da;\n    }\n    *param_5 = puVar5;\n    puVar5[2] = local_24;\n    uVar6 = FUN_000814b0(FUN_0006ba00);\n    puVar5[3] = uVar6;\n    puVar5[5] = param_4;\n    puVar5[6] = 0;\n    puVar5[1] = uVar4;\n    puVar5[4] = 1;\n  }\nLAB_0006e9d8:\n  iVar3 = 0;\nLAB_0006e9da:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000a39d0();\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_0006e960(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 *param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 *param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int in_GS_OFFSET;\n  bool bVar7;\n  undefined4 local_40;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x6e969;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0001fb70(param_3,0xaa);\n  iVar2 = DAT_000cdef0;\n  if (iVar1 != 0) {\n    if ((DAT_000cdeec == 0) || (iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0)) {\n      if ((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)) goto LAB_0006e9d8;\n      bVar7 = true;\n      local_40 = 0;\n    }\n    else if (iVar2 == 0) {\n      local_40 = 1;\n      bVar7 = false;\n    }\n    else {\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }\n    uVar4 = FUN_0006e760(param_1,param_2,param_3);\n    puVar5 = (undefined4 *)FUN_0002e780(1,0x1c);\n    *puVar5 = &DAT_0010f888;\n    puVar5[2] = 0;\n    local_30 = 0;\n    local_24 = 0;\n    local_28 = 0;\n    local_2c = 0;\n    iVar1 = FUN_0009ede0(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,\n                         local_40,bVar7);\n    FUN_0003efc0(param_4,iVar1,local_30,local_2c,local_28);\n    FUN_0002f010(local_30);\n    FUN_0002f010(local_2c);\n    FUN_0002f010(local_28);\n    iVar2 = local_24;\n    if (iVar1 == 1) {\n      *param_5 = 0;\n      FUN_0002f010(puVar5);\n      FUN_0002f010(uVar4);\n      iVar3 = local_24;\n      goto LAB_0006e9da;\n    }\n    if (iVar1 != 2) {\n      iVar3 = 0;\n      if (iVar1 == 0) {\n        if (local_24 != 0) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *param_5 = 0;\n        FUN_0002f010(puVar5);\n        FUN_0002f010(uVar4);\n        iVar3 = iVar2;\n      }\n      goto LAB_0006e9da;\n    }\n    *param_5 = puVar5;\n    puVar5[2] = local_24;\n    uVar6 = FUN_000814b0(FUN_0006ba00);\n    puVar5[3] = uVar6;\n    puVar5[5] = param_4;\n    puVar5[6] = 0;\n    puVar5[1] = uVar4;\n    puVar5[4] = 1;\n  }\nLAB_0006e9d8:\n  iVar3 = 0;\nLAB_0006e9da:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000a39d0();\n  }\n  return iVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "undefined4 local_40;" type_identifier identifier ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x6e969;" (assignment_expression "uStack_14 = 0x6e969" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = FUN_0001fb70(param_3,0xaa);" (assignment_expression "iVar1 = FUN_0001fb70(param_3,0xaa)" identifier = (call_expression "FUN_0001fb70(param_3,0xaa)" identifier (argument_list "(param_3,0xaa)" ( identifier , number_literal )))) ;) (expression_statement "iVar2 = DAT_000cdef0;" (assignment_expression "iVar2 = DAT_000cdef0" identifier = identifier) ;) (if_statement "if (iVar1 != 0) {\n    if ((DAT_000cdeec == 0) || (iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0)) {\n      if ((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)) goto LAB_0006e9d8;\n      bVar7 = true;\n      local_40 = 0;\n    }\n    else if (iVar2 == 0) {\n      local_40 = 1;\n      bVar7 = false;\n    }\n    else {\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }\n    uVar4 = FUN_0006e760(param_1,param_2,param_3);\n    puVar5 = (undefined4 *)FUN_0002e780(1,0x1c);\n    *puVar5 = &DAT_0010f888;\n    puVar5[2] = 0;\n    local_30 = 0;\n    local_24 = 0;\n    local_28 = 0;\n    local_2c = 0;\n    iVar1 = FUN_0009ede0(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,\n                         local_40,bVar7);\n    FUN_0003efc0(param_4,iVar1,local_30,local_2c,local_28);\n    FUN_0002f010(local_30);\n    FUN_0002f010(local_2c);\n    FUN_0002f010(local_28);\n    iVar2 = local_24;\n    if (iVar1 == 1) {\n      *param_5 = 0;\n      FUN_0002f010(puVar5);\n      FUN_0002f010(uVar4);\n      iVar3 = local_24;\n      goto LAB_0006e9da;\n    }\n    if (iVar1 != 2) {\n      iVar3 = 0;\n      if (iVar1 == 0) {\n        if (local_24 != 0) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *param_5 = 0;\n        FUN_0002f010(puVar5);\n        FUN_0002f010(uVar4);\n        iVar3 = iVar2;\n      }\n      goto LAB_0006e9da;\n    }\n    *param_5 = puVar5;\n    puVar5[2] = local_24;\n    uVar6 = FUN_000814b0(FUN_0006ba00);\n    puVar5[3] = uVar6;\n    puVar5[5] = param_4;\n    puVar5[6] = 0;\n    puVar5[1] = uVar4;\n    puVar5[4] = 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((DAT_000cdeec == 0) || (iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0)) {\n      if ((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)) goto LAB_0006e9d8;\n      bVar7 = true;\n      local_40 = 0;\n    }\n    else if (iVar2 == 0) {\n      local_40 = 1;\n      bVar7 = false;\n    }\n    else {\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }\n    uVar4 = FUN_0006e760(param_1,param_2,param_3);\n    puVar5 = (undefined4 *)FUN_0002e780(1,0x1c);\n    *puVar5 = &DAT_0010f888;\n    puVar5[2] = 0;\n    local_30 = 0;\n    local_24 = 0;\n    local_28 = 0;\n    local_2c = 0;\n    iVar1 = FUN_0009ede0(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,\n                         local_40,bVar7);\n    FUN_0003efc0(param_4,iVar1,local_30,local_2c,local_28);\n    FUN_0002f010(local_30);\n    FUN_0002f010(local_2c);\n    FUN_0002f010(local_28);\n    iVar2 = local_24;\n    if (iVar1 == 1) {\n      *param_5 = 0;\n      FUN_0002f010(puVar5);\n      FUN_0002f010(uVar4);\n      iVar3 = local_24;\n      goto LAB_0006e9da;\n    }\n    if (iVar1 != 2) {\n      iVar3 = 0;\n      if (iVar1 == 0) {\n        if (local_24 != 0) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *param_5 = 0;\n        FUN_0002f010(puVar5);\n        FUN_0002f010(uVar4);\n        iVar3 = iVar2;\n      }\n      goto LAB_0006e9da;\n    }\n    *param_5 = puVar5;\n    puVar5[2] = local_24;\n    uVar6 = FUN_000814b0(FUN_0006ba00);\n    puVar5[3] = uVar6;\n    puVar5[5] = param_4;\n    puVar5[6] = 0;\n    puVar5[1] = uVar4;\n    puVar5[4] = 1;\n  }" { (if_statement "if ((DAT_000cdeec == 0) || (iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0)) {\n      if ((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)) goto LAB_0006e9d8;\n      bVar7 = true;\n      local_40 = 0;\n    }\n    else if (iVar2 == 0) {\n      local_40 = 1;\n      bVar7 = false;\n    }\n    else {\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }" if (parenthesized_expression "((DAT_000cdeec == 0) || (iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0))" ( (binary_expression "(DAT_000cdeec == 0) || (iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0)" (parenthesized_expression "(DAT_000cdeec == 0)" ( (binary_expression "DAT_000cdeec == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0)" ( (comma_expression "iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0" (assignment_expression "iVar1 = FUN_0001fb70(param_3,0xab)" identifier = (call_expression "FUN_0001fb70(param_3,0xab)" identifier (argument_list "(param_3,0xab)" ( identifier , number_literal )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      if ((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)) goto LAB_0006e9d8;\n      bVar7 = true;\n      local_40 = 0;\n    }" { (if_statement "if ((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)) goto LAB_0006e9d8;" if (parenthesized_expression "((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0))" ( (binary_expression "(iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)" ( (comma_expression "iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0" (assignment_expression "iVar2 = FUN_0001fb70(param_3,0xac)" identifier = (call_expression "FUN_0001fb70(param_3,0xac)" identifier (argument_list "(param_3,0xac)" ( identifier , number_literal )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_0006e9d8;" goto statement_identifier ;)) (expression_statement "bVar7 = true;" (assignment_expression "bVar7 = true" identifier = true) ;) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) }) (else_clause "else if (iVar2 == 0) {\n      local_40 = 1;\n      bVar7 = false;\n    }\n    else {\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }" else (if_statement "if (iVar2 == 0) {\n      local_40 = 1;\n      bVar7 = false;\n    }\n    else {\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      local_40 = 1;\n      bVar7 = false;\n    }" { (expression_statement "local_40 = 1;" (assignment_expression "local_40 = 1" identifier = number_literal) ;) (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" identifier = false) ;) }) (else_clause "else {\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }" else (compound_statement "{\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }" { (expression_statement "iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);" (assignment_expression "iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1)" identifier = (call_expression "FUN_0001fb70(param_3,0xac,iVar1,iVar1)" identifier (argument_list "(param_3,0xac,iVar1,iVar1)" ( identifier , number_literal , identifier , identifier )))) ;) (expression_statement "bVar7 = iVar2 != 0;" (assignment_expression "bVar7 = iVar2 != 0" identifier = (binary_expression "iVar2 != 0" identifier != number_literal)) ;) (expression_statement "local_40 = 1;" (assignment_expression "local_40 = 1" identifier = number_literal) ;) }))))) (expression_statement "uVar4 = FUN_0006e760(param_1,param_2,param_3);" (assignment_expression "uVar4 = FUN_0006e760(param_1,param_2,param_3)" identifier = (call_expression "FUN_0006e760(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (expression_statement "puVar5 = (undefined4 *)FUN_0002e780(1,0x1c);" (assignment_expression "puVar5 = (undefined4 *)FUN_0002e780(1,0x1c)" identifier = (cast_expression "(undefined4 *)FUN_0002e780(1,0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0002e780(1,0x1c)" identifier (argument_list "(1,0x1c)" ( number_literal , number_literal ))))) ;) (expression_statement "*puVar5 = &DAT_0010f888;" (assignment_expression "*puVar5 = &DAT_0010f888" (pointer_expression "*puVar5" * identifier) = (pointer_expression "&DAT_0010f888" & identifier)) ;) (expression_statement "puVar5[2] = 0;" (assignment_expression "puVar5[2] = 0" (subscript_expression "puVar5[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_0009ede0(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,\n                         local_40,bVar7);" (assignment_expression "iVar1 = FUN_0009ede0(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,\n                         local_40,bVar7)" identifier = (call_expression "FUN_0009ede0(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,\n                         local_40,bVar7)" identifier (argument_list "(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,\n                         local_40,bVar7)" ( identifier , identifier , identifier , identifier , (pointer_expression "&local_24" & identifier) , (pointer_expression "&local_30" & identifier) , (pointer_expression "&local_2c" & identifier) , (pointer_expression "&local_28" & identifier) , identifier , identifier )))) ;) (expression_statement "FUN_0003efc0(param_4,iVar1,local_30,local_2c,local_28);" (call_expression "FUN_0003efc0(param_4,iVar1,local_30,local_2c,local_28)" identifier (argument_list "(param_4,iVar1,local_30,local_2c,local_28)" ( identifier , identifier , identifier , identifier , identifier ))) ;) (expression_statement "FUN_0002f010(local_30);" (call_expression "FUN_0002f010(local_30)" identifier (argument_list "(local_30)" ( identifier ))) ;) (expression_statement "FUN_0002f010(local_2c);" (call_expression "FUN_0002f010(local_2c)" identifier (argument_list "(local_2c)" ( identifier ))) ;) (expression_statement "FUN_0002f010(local_28);" (call_expression "FUN_0002f010(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) (expression_statement "iVar2 = local_24;" (assignment_expression "iVar2 = local_24" identifier = identifier) ;) (if_statement "if (iVar1 == 1) {\n      *param_5 = 0;\n      FUN_0002f010(puVar5);\n      FUN_0002f010(uVar4);\n      iVar3 = local_24;\n      goto LAB_0006e9da;\n    }" if (parenthesized_expression "(iVar1 == 1)" ( (binary_expression "iVar1 == 1" identifier == number_literal) )) (compound_statement "{\n      *param_5 = 0;\n      FUN_0002f010(puVar5);\n      FUN_0002f010(uVar4);\n      iVar3 = local_24;\n      goto LAB_0006e9da;\n    }" { (expression_statement "*param_5 = 0;" (assignment_expression "*param_5 = 0" (pointer_expression "*param_5" * identifier) = number_literal) ;) (expression_statement "FUN_0002f010(puVar5);" (call_expression "FUN_0002f010(puVar5)" identifier (argument_list "(puVar5)" ( identifier ))) ;) (expression_statement "FUN_0002f010(uVar4);" (call_expression "FUN_0002f010(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "iVar3 = local_24;" (assignment_expression "iVar3 = local_24" identifier = identifier) ;) (goto_statement "goto LAB_0006e9da;" goto statement_identifier ;) })) (if_statement "if (iVar1 != 2) {\n      iVar3 = 0;\n      if (iVar1 == 0) {\n        if (local_24 != 0) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *param_5 = 0;\n        FUN_0002f010(puVar5);\n        FUN_0002f010(uVar4);\n        iVar3 = iVar2;\n      }\n      goto LAB_0006e9da;\n    }" if (parenthesized_expression "(iVar1 != 2)" ( (binary_expression "iVar1 != 2" identifier != number_literal) )) (compound_statement "{\n      iVar3 = 0;\n      if (iVar1 == 0) {\n        if (local_24 != 0) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *param_5 = 0;\n        FUN_0002f010(puVar5);\n        FUN_0002f010(uVar4);\n        iVar3 = iVar2;\n      }\n      goto LAB_0006e9da;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (iVar1 == 0) {\n        if (local_24 != 0) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *param_5 = 0;\n        FUN_0002f010(puVar5);\n        FUN_0002f010(uVar4);\n        iVar3 = iVar2;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        if (local_24 != 0) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *param_5 = 0;\n        FUN_0002f010(puVar5);\n        FUN_0002f010(uVar4);\n        iVar3 = iVar2;\n      }" { (if_statement "if (local_24 != 0) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }" { comment (expression_statement "__assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");" (call_expression "__assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init")" identifier (argument_list "("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init")" ( (string_literal ""sock == NULL"" " string_content ") , (string_literal ""sshshare.c"" " string_content ") , number_literal , (string_literal ""ssh_connection_sharing_init"" " string_content ") ))) ;) })) (expression_statement "*param_5 = 0;" (assignment_expression "*param_5 = 0" (pointer_expression "*param_5" * identifier) = number_literal) ;) (expression_statement "FUN_0002f010(puVar5);" (call_expression "FUN_0002f010(puVar5)" identifier (argument_list "(puVar5)" ( identifier ))) ;) (expression_statement "FUN_0002f010(uVar4);" (call_expression "FUN_0002f010(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "iVar3 = iVar2;" (assignment_expression "iVar3 = iVar2" identifier = identifier) ;) })) (goto_statement "goto LAB_0006e9da;" goto statement_identifier ;) })) (expression_statement "*param_5 = puVar5;" (assignment_expression "*param_5 = puVar5" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "puVar5[2] = local_24;" (assignment_expression "puVar5[2] = local_24" (subscript_expression "puVar5[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar6 = FUN_000814b0(FUN_0006ba00);" (assignment_expression "uVar6 = FUN_000814b0(FUN_0006ba00)" identifier = (call_expression "FUN_000814b0(FUN_0006ba00)" identifier (argument_list "(FUN_0006ba00)" ( identifier )))) ;) (expression_statement "puVar5[3] = uVar6;" (assignment_expression "puVar5[3] = uVar6" (subscript_expression "puVar5[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5[5] = param_4;" (assignment_expression "puVar5[5] = param_4" (subscript_expression "puVar5[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5[6] = 0;" (assignment_expression "puVar5[6] = 0" (subscript_expression "puVar5[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar5[1] = uVar4;" (assignment_expression "puVar5[1] = uVar4" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5[4] = 1;" (assignment_expression "puVar5[4] = 1" (subscript_expression "puVar5[4]" identifier [ number_literal ]) = number_literal) ;) })) (labeled_statement "LAB_0006e9d8:\n  iVar3 = 0;" statement_identifier : (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;)) (labeled_statement "LAB_0006e9da:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000a39d0();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000a39d0();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_000a39d0();\n  }" { comment (expression_statement "FUN_000a39d0();" (call_expression "FUN_000a39d0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nSocket ssh_connection_sharing_init(char *host,int port,Conf *conf,Ssh ssh,void **state)\n\n{\n  Socket ppsVar1;\n  int iVar2;\n  int iVar3;\n  Socket ppsVar4;\n  plug_function_table *pi_name;\n  Plug upplug;\n  plug_function_table *ppVar5;\n  uint can_downstream;\n  int in_GS_OFFSET;\n  int local_40;\n  char *logtext;\n  char *ds_err;\n  char *us_err;\n  Socket sock;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x6e969;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = conf_get_int(conf,0xaa);\n  iVar3 = share_can_be_downstream;\n  if (iVar2 != 0) {\n    if ((share_can_be_upstream == 0) || (iVar2 = conf_get_int(conf,0xab), iVar2 == 0)) {\n      if ((iVar3 == 0) || (iVar3 = conf_get_int(conf,0xac), iVar3 == 0)) goto LAB_0006e9d8;\n      can_downstream = 1;\n      local_40 = 0;\n    }\n    else if (iVar3 == 0) {\n      local_40 = 1;\n      can_downstream = 0;\n    }\n    else {\n      iVar3 = conf_get_int(conf,0xac);\n      local_40 = 1;\n      can_downstream = (uint)(iVar3 != 0);\n    }\n    pi_name = (plug_function_table *)ssh_share_sockname(host,port,conf);\n    upplug = (Plug)safemalloc(1,0x1c);\n    *upplug = &ssh_connection_sharing_init::listen_fn_table;\n    upplug[2] = (plug_function_table *)0x0;\n    logtext = (char *)0x0;\n    sock = (Socket)0x0;\n    us_err = (char *)0x0;\n    ds_err = (char *)0x0;\n    iVar3 = platform_ssh_share((char *)pi_name,conf,&ssh->fn,upplug,&sock,&logtext,&ds_err,&us_err,\n                               local_40,can_downstream);\n    ssh_connshare_log(ssh,iVar3,logtext,ds_err,us_err);\n    safefree(logtext);\n    safefree(ds_err);\n    safefree(us_err);\n    ppsVar1 = sock;\n    if (iVar3 == 1) {\n      *state = (void *)0x0;\n      safefree(upplug);\n      safefree(pi_name);\n      ppsVar4 = sock;\n      goto LAB_0006e9da;\n    }\n    if (iVar3 != 2) {\n      ppsVar4 = (Socket)0x0;\n      if (iVar3 == 0) {\n        if (sock != (Socket)0x0) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *state = (void *)0x0;\n        safefree(upplug);\n        safefree(pi_name);\n        ppsVar4 = ppsVar1;\n      }\n      goto LAB_0006e9da;\n    }\n    *state = upplug;\n    upplug[2] = (plug_function_table *)sock;\n    ppVar5 = (plug_function_table *)newtree234(share_connstate_cmp);\n    upplug[3] = ppVar5;\n    upplug[5] = (plug_function_table *)ssh;\n    upplug[6] = (plug_function_table *)0x0;\n    upplug[1] = pi_name;\n    upplug[4] = (plug_function_table *)0x1;\n  }\nLAB_0006e9d8:\n  ppsVar4 = (Socket)0x0;\nLAB_0006e9da:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return ppsVar4;\n}\n\n" comment comment comment (function_definition "Socket ssh_connection_sharing_init(char *host,int port,Conf *conf,Ssh ssh,void **state)\n\n{\n  Socket ppsVar1;\n  int iVar2;\n  int iVar3;\n  Socket ppsVar4;\n  plug_function_table *pi_name;\n  Plug upplug;\n  plug_function_table *ppVar5;\n  uint can_downstream;\n  int in_GS_OFFSET;\n  int local_40;\n  char *logtext;\n  char *ds_err;\n  char *us_err;\n  Socket sock;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x6e969;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = conf_get_int(conf,0xaa);\n  iVar3 = share_can_be_downstream;\n  if (iVar2 != 0) {\n    if ((share_can_be_upstream == 0) || (iVar2 = conf_get_int(conf,0xab), iVar2 == 0)) {\n      if ((iVar3 == 0) || (iVar3 = conf_get_int(conf,0xac), iVar3 == 0)) goto LAB_0006e9d8;\n      can_downstream = 1;\n      local_40 = 0;\n    }\n    else if (iVar3 == 0) {\n      local_40 = 1;\n      can_downstream = 0;\n    }\n    else {\n      iVar3 = conf_get_int(conf,0xac);\n      local_40 = 1;\n      can_downstream = (uint)(iVar3 != 0);\n    }\n    pi_name = (plug_function_table *)ssh_share_sockname(host,port,conf);\n    upplug = (Plug)safemalloc(1,0x1c);\n    *upplug = &ssh_connection_sharing_init::listen_fn_table;\n    upplug[2] = (plug_function_table *)0x0;\n    logtext = (char *)0x0;\n    sock = (Socket)0x0;\n    us_err = (char *)0x0;\n    ds_err = (char *)0x0;\n    iVar3 = platform_ssh_share((char *)pi_name,conf,&ssh->fn,upplug,&sock,&logtext,&ds_err,&us_err,\n                               local_40,can_downstream);\n    ssh_connshare_log(ssh,iVar3,logtext,ds_err,us_err);\n    safefree(logtext);\n    safefree(ds_err);\n    safefree(us_err);\n    ppsVar1 = sock;\n    if (iVar3 == 1) {\n      *state = (void *)0x0;\n      safefree(upplug);\n      safefree(pi_name);\n      ppsVar4 = sock;\n      goto LAB_0006e9da;\n    }\n    if (iVar3 != 2) {\n      ppsVar4 = (Socket)0x0;\n      if (iVar3 == 0) {\n        if (sock != (Socket)0x0) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *state = (void *)0x0;\n        safefree(upplug);\n        safefree(pi_name);\n        ppsVar4 = ppsVar1;\n      }\n      goto LAB_0006e9da;\n    }\n    *state = upplug;\n    upplug[2] = (plug_function_table *)sock;\n    ppVar5 = (plug_function_table *)newtree234(share_connstate_cmp);\n    upplug[3] = ppVar5;\n    upplug[5] = (plug_function_table *)ssh;\n    upplug[6] = (plug_function_table *)0x0;\n    upplug[1] = pi_name;\n    upplug[4] = (plug_function_table *)0x1;\n  }\nLAB_0006e9d8:\n  ppsVar4 = (Socket)0x0;\nLAB_0006e9da:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return ppsVar4;\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  int iVar2;\n  int iVar3;\n  Socket ppsVar4;\n  plug_function_table *pi_name;\n  Plug upplug;\n  plug_function_table *ppVar5;\n  uint can_downstream;\n  int in_GS_OFFSET;\n  int local_40;\n  char *logtext;\n  char *ds_err;\n  char *us_err;\n  Socket sock;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x6e969;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = conf_get_int(conf,0xaa);\n  iVar3 = share_can_be_downstream;\n  if (iVar2 != 0) {\n    if ((share_can_be_upstream == 0) || (iVar2 = conf_get_int(conf,0xab), iVar2 == 0)) {\n      if ((iVar3 == 0) || (iVar3 = conf_get_int(conf,0xac), iVar3 == 0)) goto LAB_0006e9d8;\n      can_downstream = 1;\n      local_40 = 0;\n    }\n    else if (iVar3 == 0) {\n      local_40 = 1;\n      can_downstream = 0;\n    }\n    else {\n      iVar3 = conf_get_int(conf,0xac);\n      local_40 = 1;\n      can_downstream = (uint)(iVar3 != 0);\n    }\n    pi_name = (plug_function_table *)ssh_share_sockname(host,port,conf);\n    upplug = (Plug)safemalloc(1,0x1c);\n    *upplug = &ssh_connection_sharing_init::listen_fn_table;\n    upplug[2] = (plug_function_table *)0x0;\n    logtext = (char *)0x0;\n    sock = (Socket)0x0;\n    us_err = (char *)0x0;\n    ds_err = (char *)0x0;\n    iVar3 = platform_ssh_share((char *)pi_name,conf,&ssh->fn,upplug,&sock,&logtext,&ds_err,&us_err,\n                               local_40,can_downstream);\n    ssh_connshare_log(ssh,iVar3,logtext,ds_err,us_err);\n    safefree(logtext);\n    safefree(ds_err);\n    safefree(us_err);\n    ppsVar1 = sock;\n    if (iVar3 == 1) {\n      *state = (void *)0x0;\n      safefree(upplug);\n      safefree(pi_name);\n      ppsVar4 = sock;\n      goto LAB_0006e9da;\n    }\n    if (iVar3 != 2) {\n      ppsVar4 = (Socket)0x0;\n      if (iVar3 == 0) {\n        if (sock != (Socket)0x0) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *state = (void *)0x0;\n        safefree(upplug);\n        safefree(pi_name);\n        ppsVar4 = ppsVar1;\n      }\n      goto LAB_0006e9da;\n    }\n    *state = upplug;\n    upplug[2] = (plug_function_table *)sock;\n    ppVar5 = (plug_function_table *)newtree234(share_connstate_cmp);\n    upplug[3] = ppVar5;\n    upplug[5] = (plug_function_table *)ssh;\n    upplug[6] = (plug_function_table *)0x0;\n    upplug[1] = pi_name;\n    upplug[4] = (plug_function_table *)0x1;\n  }\nLAB_0006e9d8:\n  ppsVar4 = (Socket)0x0;\nLAB_0006e9da:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return ppsVar4;\n}" { (declaration "Socket ppsVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "Socket ppsVar4;" type_identifier identifier ;) (declaration "plug_function_table *pi_name;" type_identifier (pointer_declarator "*pi_name" * identifier) ;) (declaration "Plug upplug;" type_identifier identifier ;) (declaration "plug_function_table *ppVar5;" type_identifier (pointer_declarator "*ppVar5" * identifier) ;) (declaration "uint can_downstream;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_40;" primitive_type 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 ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x6e969;" (assignment_expression "uStack_14 = 0x6e969" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = conf_get_int(conf,0xaa);" (assignment_expression "iVar2 = conf_get_int(conf,0xaa)" identifier = (call_expression "conf_get_int(conf,0xaa)" identifier (argument_list "(conf,0xaa)" ( identifier , number_literal )))) ;) (expression_statement "iVar3 = share_can_be_downstream;" (assignment_expression "iVar3 = share_can_be_downstream" identifier = identifier) ;) (if_statement "if (iVar2 != 0) {\n    if ((share_can_be_upstream == 0) || (iVar2 = conf_get_int(conf,0xab), iVar2 == 0)) {\n      if ((iVar3 == 0) || (iVar3 = conf_get_int(conf,0xac), iVar3 == 0)) goto LAB_0006e9d8;\n      can_downstream = 1;\n      local_40 = 0;\n    }\n    else if (iVar3 == 0) {\n      local_40 = 1;\n      can_downstream = 0;\n    }\n    else {\n      iVar3 = conf_get_int(conf,0xac);\n      local_40 = 1;\n      can_downstream = (uint)(iVar3 != 0);\n    }\n    pi_name = (plug_function_table *)ssh_share_sockname(host,port,conf);\n    upplug = (Plug)safemalloc(1,0x1c);\n    *upplug = &ssh_connection_sharing_init::listen_fn_table;\n    upplug[2] = (plug_function_table *)0x0;\n    logtext = (char *)0x0;\n    sock = (Socket)0x0;\n    us_err = (char *)0x0;\n    ds_err = (char *)0x0;\n    iVar3 = platform_ssh_share((char *)pi_name,conf,&ssh->fn,upplug,&sock,&logtext,&ds_err,&us_err,\n                               local_40,can_downstream);\n    ssh_connshare_log(ssh,iVar3,logtext,ds_err,us_err);\n    safefree(logtext);\n    safefree(ds_err);\n    safefree(us_err);\n    ppsVar1 = sock;\n    if (iVar3 == 1) {\n      *state = (void *)0x0;\n      safefree(upplug);\n      safefree(pi_name);\n      ppsVar4 = sock;\n      goto LAB_0006e9da;\n    }\n    if (iVar3 != 2) {\n      ppsVar4 = (Socket)0x0;\n      if (iVar3 == 0) {\n        if (sock != (Socket)0x0) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *state = (void *)0x0;\n        safefree(upplug);\n        safefree(pi_name);\n        ppsVar4 = ppsVar1;\n      }\n      goto LAB_0006e9da;\n    }\n    *state = upplug;\n    upplug[2] = (plug_function_table *)sock;\n    ppVar5 = (plug_function_table *)newtree234(share_connstate_cmp);\n    upplug[3] = ppVar5;\n    upplug[5] = (plug_function_table *)ssh;\n    upplug[6] = (plug_function_table *)0x0;\n    upplug[1] = pi_name;\n    upplug[4] = (plug_function_table *)0x1;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((share_can_be_upstream == 0) || (iVar2 = conf_get_int(conf,0xab), iVar2 == 0)) {\n      if ((iVar3 == 0) || (iVar3 = conf_get_int(conf,0xac), iVar3 == 0)) goto LAB_0006e9d8;\n      can_downstream = 1;\n      local_40 = 0;\n    }\n    else if (iVar3 == 0) {\n      local_40 = 1;\n      can_downstream = 0;\n    }\n    else {\n      iVar3 = conf_get_int(conf,0xac);\n      local_40 = 1;\n      can_downstream = (uint)(iVar3 != 0);\n    }\n    pi_name = (plug_function_table *)ssh_share_sockname(host,port,conf);\n    upplug = (Plug)safemalloc(1,0x1c);\n    *upplug = &ssh_connection_sharing_init::listen_fn_table;\n    upplug[2] = (plug_function_table *)0x0;\n    logtext = (char *)0x0;\n    sock = (Socket)0x0;\n    us_err = (char *)0x0;\n    ds_err = (char *)0x0;\n    iVar3 = platform_ssh_share((char *)pi_name,conf,&ssh->fn,upplug,&sock,&logtext,&ds_err,&us_err,\n                               local_40,can_downstream);\n    ssh_connshare_log(ssh,iVar3,logtext,ds_err,us_err);\n    safefree(logtext);\n    safefree(ds_err);\n    safefree(us_err);\n    ppsVar1 = sock;\n    if (iVar3 == 1) {\n      *state = (void *)0x0;\n      safefree(upplug);\n      safefree(pi_name);\n      ppsVar4 = sock;\n      goto LAB_0006e9da;\n    }\n    if (iVar3 != 2) {\n      ppsVar4 = (Socket)0x0;\n      if (iVar3 == 0) {\n        if (sock != (Socket)0x0) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *state = (void *)0x0;\n        safefree(upplug);\n        safefree(pi_name);\n        ppsVar4 = ppsVar1;\n      }\n      goto LAB_0006e9da;\n    }\n    *state = upplug;\n    upplug[2] = (plug_function_table *)sock;\n    ppVar5 = (plug_function_table *)newtree234(share_connstate_cmp);\n    upplug[3] = ppVar5;\n    upplug[5] = (plug_function_table *)ssh;\n    upplug[6] = (plug_function_table *)0x0;\n    upplug[1] = pi_name;\n    upplug[4] = (plug_function_table *)0x1;\n  }" { (if_statement "if ((share_can_be_upstream == 0) || (iVar2 = conf_get_int(conf,0xab), iVar2 == 0)) {\n      if ((iVar3 == 0) || (iVar3 = conf_get_int(conf,0xac), iVar3 == 0)) goto LAB_0006e9d8;\n      can_downstream = 1;\n      local_40 = 0;\n    }\n    else if (iVar3 == 0) {\n      local_40 = 1;\n      can_downstream = 0;\n    }\n    else {\n      iVar3 = conf_get_int(conf,0xac);\n      local_40 = 1;\n      can_downstream = (uint)(iVar3 != 0);\n    }" if (parenthesized_expression "((share_can_be_upstream == 0) || (iVar2 = conf_get_int(conf,0xab), iVar2 == 0))" ( (binary_expression "(share_can_be_upstream == 0) || (iVar2 = conf_get_int(conf,0xab), iVar2 == 0)" (parenthesized_expression "(share_can_be_upstream == 0)" ( (binary_expression "share_can_be_upstream == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar2 = conf_get_int(conf,0xab), iVar2 == 0)" ( (comma_expression "iVar2 = conf_get_int(conf,0xab), iVar2 == 0" (assignment_expression "iVar2 = conf_get_int(conf,0xab)" identifier = (call_expression "conf_get_int(conf,0xab)" identifier (argument_list "(conf,0xab)" ( identifier , number_literal )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      if ((iVar3 == 0) || (iVar3 = conf_get_int(conf,0xac), iVar3 == 0)) goto LAB_0006e9d8;\n      can_downstream = 1;\n      local_40 = 0;\n    }" { (if_statement "if ((iVar3 == 0) || (iVar3 = conf_get_int(conf,0xac), iVar3 == 0)) goto LAB_0006e9d8;" if (parenthesized_expression "((iVar3 == 0) || (iVar3 = conf_get_int(conf,0xac), iVar3 == 0))" ( (binary_expression "(iVar3 == 0) || (iVar3 = conf_get_int(conf,0xac), iVar3 == 0)" (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar3 = conf_get_int(conf,0xac), iVar3 == 0)" ( (comma_expression "iVar3 = conf_get_int(conf,0xac), iVar3 == 0" (assignment_expression "iVar3 = conf_get_int(conf,0xac)" identifier = (call_expression "conf_get_int(conf,0xac)" identifier (argument_list "(conf,0xac)" ( identifier , number_literal )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_0006e9d8;" goto statement_identifier ;)) (expression_statement "can_downstream = 1;" (assignment_expression "can_downstream = 1" identifier = number_literal) ;) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) }) (else_clause "else if (iVar3 == 0) {\n      local_40 = 1;\n      can_downstream = 0;\n    }\n    else {\n      iVar3 = conf_get_int(conf,0xac);\n      local_40 = 1;\n      can_downstream = (uint)(iVar3 != 0);\n    }" else (if_statement "if (iVar3 == 0) {\n      local_40 = 1;\n      can_downstream = 0;\n    }\n    else {\n      iVar3 = conf_get_int(conf,0xac);\n      local_40 = 1;\n      can_downstream = (uint)(iVar3 != 0);\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      local_40 = 1;\n      can_downstream = 0;\n    }" { (expression_statement "local_40 = 1;" (assignment_expression "local_40 = 1" identifier = number_literal) ;) (expression_statement "can_downstream = 0;" (assignment_expression "can_downstream = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar3 = conf_get_int(conf,0xac);\n      local_40 = 1;\n      can_downstream = (uint)(iVar3 != 0);\n    }" else (compound_statement "{\n      iVar3 = conf_get_int(conf,0xac);\n      local_40 = 1;\n      can_downstream = (uint)(iVar3 != 0);\n    }" { (expression_statement "iVar3 = conf_get_int(conf,0xac);" (assignment_expression "iVar3 = conf_get_int(conf,0xac)" identifier = (call_expression "conf_get_int(conf,0xac)" identifier (argument_list "(conf,0xac)" ( identifier , number_literal )))) ;) (expression_statement "local_40 = 1;" (assignment_expression "local_40 = 1" identifier = number_literal) ;) (expression_statement "can_downstream = (uint)(iVar3 != 0);" (assignment_expression "can_downstream = (uint)(iVar3 != 0)" identifier = (call_expression "(uint)(iVar3 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )))) ;) }))))) (expression_statement "pi_name = (plug_function_table *)ssh_share_sockname(host,port,conf);" (assignment_expression "pi_name = (plug_function_table *)ssh_share_sockname(host,port,conf)" identifier = (cast_expression "(plug_function_table *)ssh_share_sockname(host,port,conf)" ( (type_descriptor "plug_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "ssh_share_sockname(host,port,conf)" identifier (argument_list "(host,port,conf)" ( identifier , identifier , identifier ))))) ;) (expression_statement "upplug = (Plug)safemalloc(1,0x1c);" (assignment_expression "upplug = (Plug)safemalloc(1,0x1c)" identifier = (cast_expression "(Plug)safemalloc(1,0x1c)" ( (type_descriptor "Plug" type_identifier) ) (call_expression "safemalloc(1,0x1c)" identifier (argument_list "(1,0x1c)" ( number_literal , number_literal ))))) ;) (expression_statement "*upplug = &ssh_connection_sharing_init::listen_fn_table;" (assignment_expression "*upplug = &ssh_connection_sharing_init" (pointer_expression "*upplug" * identifier) = (pointer_expression "&ssh_connection_sharing_init" & identifier)) (ERROR "::listen_fn_table" : : identifier) ;) (expression_statement "upplug[2] = (plug_function_table *)0x0;" (assignment_expression "upplug[2] = (plug_function_table *)0x0" (subscript_expression "upplug[2]" identifier [ number_literal ]) = (cast_expression "(plug_function_table *)0x0" ( (type_descriptor "plug_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "logtext = (char *)0x0;" (assignment_expression "logtext = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sock = (Socket)0x0;" (assignment_expression "sock = (Socket)0x0" identifier = (cast_expression "(Socket)0x0" ( (type_descriptor "Socket" type_identifier) ) number_literal)) ;) (expression_statement "us_err = (char *)0x0;" (assignment_expression "us_err = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "ds_err = (char *)0x0;" (assignment_expression "ds_err = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar3 = platform_ssh_share((char *)pi_name,conf,&ssh->fn,upplug,&sock,&logtext,&ds_err,&us_err,\n                               local_40,can_downstream);" (assignment_expression "iVar3 = platform_ssh_share((char *)pi_name,conf,&ssh->fn,upplug,&sock,&logtext,&ds_err,&us_err,\n                               local_40,can_downstream)" identifier = (call_expression "platform_ssh_share((char *)pi_name,conf,&ssh->fn,upplug,&sock,&logtext,&ds_err,&us_err,\n                               local_40,can_downstream)" identifier (argument_list "((char *)pi_name,conf,&ssh->fn,upplug,&sock,&logtext,&ds_err,&us_err,\n                               local_40,can_downstream)" ( (cast_expression "(char *)pi_name" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier , (pointer_expression "&ssh->fn" & (field_expression "ssh->fn" identifier -> field_identifier)) , identifier , (pointer_expression "&sock" & identifier) , (pointer_expression "&logtext" & identifier) , (pointer_expression "&ds_err" & identifier) , (pointer_expression "&us_err" & identifier) , identifier , identifier )))) ;) (expression_statement "ssh_connshare_log(ssh,iVar3,logtext,ds_err,us_err);" (call_expression "ssh_connshare_log(ssh,iVar3,logtext,ds_err,us_err)" identifier (argument_list "(ssh,iVar3,logtext,ds_err,us_err)" ( identifier , identifier , identifier , identifier , identifier ))) ;) (expression_statement "safefree(logtext);" (call_expression "safefree(logtext)" identifier (argument_list "(logtext)" ( identifier ))) ;) (expression_statement "safefree(ds_err);" (call_expression "safefree(ds_err)" identifier (argument_list "(ds_err)" ( identifier ))) ;) (expression_statement "safefree(us_err);" (call_expression "safefree(us_err)" identifier (argument_list "(us_err)" ( identifier ))) ;) (expression_statement "ppsVar1 = sock;" (assignment_expression "ppsVar1 = sock" identifier = identifier) ;) (if_statement "if (iVar3 == 1) {\n      *state = (void *)0x0;\n      safefree(upplug);\n      safefree(pi_name);\n      ppsVar4 = sock;\n      goto LAB_0006e9da;\n    }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n      *state = (void *)0x0;\n      safefree(upplug);\n      safefree(pi_name);\n      ppsVar4 = sock;\n      goto LAB_0006e9da;\n    }" { (expression_statement "*state = (void *)0x0;" (assignment_expression "*state = (void *)0x0" (pointer_expression "*state" * identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "safefree(upplug);" (call_expression "safefree(upplug)" identifier (argument_list "(upplug)" ( identifier ))) ;) (expression_statement "safefree(pi_name);" (call_expression "safefree(pi_name)" identifier (argument_list "(pi_name)" ( identifier ))) ;) (expression_statement "ppsVar4 = sock;" (assignment_expression "ppsVar4 = sock" identifier = identifier) ;) (goto_statement "goto LAB_0006e9da;" goto statement_identifier ;) })) (if_statement "if (iVar3 != 2) {\n      ppsVar4 = (Socket)0x0;\n      if (iVar3 == 0) {\n        if (sock != (Socket)0x0) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *state = (void *)0x0;\n        safefree(upplug);\n        safefree(pi_name);\n        ppsVar4 = ppsVar1;\n      }\n      goto LAB_0006e9da;\n    }" if (parenthesized_expression "(iVar3 != 2)" ( (binary_expression "iVar3 != 2" identifier != number_literal) )) (compound_statement "{\n      ppsVar4 = (Socket)0x0;\n      if (iVar3 == 0) {\n        if (sock != (Socket)0x0) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *state = (void *)0x0;\n        safefree(upplug);\n        safefree(pi_name);\n        ppsVar4 = ppsVar1;\n      }\n      goto LAB_0006e9da;\n    }" { (expression_statement "ppsVar4 = (Socket)0x0;" (assignment_expression "ppsVar4 = (Socket)0x0" identifier = (cast_expression "(Socket)0x0" ( (type_descriptor "Socket" type_identifier) ) number_literal)) ;) (if_statement "if (iVar3 == 0) {\n        if (sock != (Socket)0x0) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *state = (void *)0x0;\n        safefree(upplug);\n        safefree(pi_name);\n        ppsVar4 = ppsVar1;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        if (sock != (Socket)0x0) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *state = (void *)0x0;\n        safefree(upplug);\n        safefree(pi_name);\n        ppsVar4 = ppsVar1;\n      }" { (if_statement "if (sock != (Socket)0x0) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }" if (parenthesized_expression "(sock != (Socket)0x0)" ( (binary_expression "sock != (Socket)0x0" identifier != (cast_expression "(Socket)0x0" ( (type_descriptor "Socket" type_identifier) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }" { comment (expression_statement "__assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");" (call_expression "__assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init")" identifier (argument_list "("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init")" ( (string_literal ""sock == NULL"" " string_content ") , (string_literal ""sshshare.c"" " string_content ") , number_literal , (string_literal ""ssh_connection_sharing_init"" " string_content ") ))) ;) })) (expression_statement "*state = (void *)0x0;" (assignment_expression "*state = (void *)0x0" (pointer_expression "*state" * identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "safefree(upplug);" (call_expression "safefree(upplug)" identifier (argument_list "(upplug)" ( identifier ))) ;) (expression_statement "safefree(pi_name);" (call_expression "safefree(pi_name)" identifier (argument_list "(pi_name)" ( identifier ))) ;) (expression_statement "ppsVar4 = ppsVar1;" (assignment_expression "ppsVar4 = ppsVar1" identifier = identifier) ;) })) (goto_statement "goto LAB_0006e9da;" goto statement_identifier ;) })) (expression_statement "*state = upplug;" (assignment_expression "*state = upplug" (pointer_expression "*state" * identifier) = identifier) ;) (expression_statement "upplug[2] = (plug_function_table *)sock;" (assignment_expression "upplug[2] = (plug_function_table *)sock" (subscript_expression "upplug[2]" identifier [ number_literal ]) = (cast_expression "(plug_function_table *)sock" ( (type_descriptor "plug_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "ppVar5 = (plug_function_table *)newtree234(share_connstate_cmp);" (assignment_expression "ppVar5 = (plug_function_table *)newtree234(share_connstate_cmp)" identifier = (cast_expression "(plug_function_table *)newtree234(share_connstate_cmp)" ( (type_descriptor "plug_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "newtree234(share_connstate_cmp)" identifier (argument_list "(share_connstate_cmp)" ( identifier ))))) ;) (expression_statement "upplug[3] = ppVar5;" (assignment_expression "upplug[3] = ppVar5" (subscript_expression "upplug[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "upplug[5] = (plug_function_table *)ssh;" (assignment_expression "upplug[5] = (plug_function_table *)ssh" (subscript_expression "upplug[5]" identifier [ number_literal ]) = (cast_expression "(plug_function_table *)ssh" ( (type_descriptor "plug_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "upplug[6] = (plug_function_table *)0x0;" (assignment_expression "upplug[6] = (plug_function_table *)0x0" (subscript_expression "upplug[6]" identifier [ number_literal ]) = (cast_expression "(plug_function_table *)0x0" ( (type_descriptor "plug_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "upplug[1] = pi_name;" (assignment_expression "upplug[1] = pi_name" (subscript_expression "upplug[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "upplug[4] = (plug_function_table *)0x1;" (assignment_expression "upplug[4] = (plug_function_table *)0x1" (subscript_expression "upplug[4]" identifier [ number_literal ]) = (cast_expression "(plug_function_table *)0x1" ( (type_descriptor "plug_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (labeled_statement "LAB_0006e9d8:\n  ppsVar4 = (Socket)0x0;" statement_identifier : (expression_statement "ppsVar4 = (Socket)0x0;" (assignment_expression "ppsVar4 = (Socket)0x0" identifier = (cast_expression "(Socket)0x0" ( (type_descriptor "Socket" type_identifier) ) number_literal)) ;)) (labeled_statement "LAB_0006e9da:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return ppsVar4;" return identifier ;) })))
(translation_unit "int FUN_0006e960(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int in_GS_OFFSET;\n  bool bVar7;\n  undefined4 local_40;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x6e969;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0001fb70(param_3,0xaa);\n  iVar2 = DAT_000cdef0;\n  if (iVar1 != 0) {\n    if ((DAT_000cdeec == 0) || (iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0)) {\n      if ((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)) goto LAB_0006e9d8;\n      bVar7 = true;\n      local_40 = 0;\n    }\n    else if (iVar2 == 0) {\n      local_40 = 1;\n      bVar7 = false;\n    }\n    else {\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }\n    uVar4 = FUN_0006e760(param_1,param_2,param_3);\n    puVar5 = (undefined4 *)FUN_0002e780(1,0x1c);\n    *puVar5 = &DAT_0010f888;\n    puVar5[2] = 0;\n    local_30 = 0;\n    local_24 = 0;\n    local_28 = 0;\n    local_2c = 0;\n    iVar1 = FUN_0009ede0(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,\n                         local_40,bVar7);\n    FUN_0003efc0(param_4,iVar1,local_30,local_2c,local_28);\n    FUN_0002f010(local_30);\n    FUN_0002f010(local_2c);\n    FUN_0002f010(local_28);\n    iVar2 = local_24;\n    if (iVar1 == 1) {\n      *param_5 = 0;\n      FUN_0002f010(puVar5);\n      FUN_0002f010(uVar4);\n      iVar3 = local_24;\n      goto LAB_0006e9da;\n    }\n    if (iVar1 != 2) {\n      iVar3 = 0;\n      if (iVar1 == 0) {\n        if (local_24 != 0) {\n                    \n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *param_5 = 0;\n        FUN_0002f010(puVar5);\n        FUN_0002f010(uVar4);\n        iVar3 = iVar2;\n      }\n      goto LAB_0006e9da;\n    }\n    *param_5 = puVar5;\n    puVar5[2] = local_24;\n    uVar6 = FUN_000814b0(FUN_0006ba00);\n    puVar5[3] = uVar6;\n    puVar5[5] = param_4;\n    puVar5[6] = 0;\n    puVar5[1] = uVar4;\n    puVar5[4] = 1;\n  }\nLAB_0006e9d8:\n  iVar3 = 0;\nLAB_0006e9da:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000a39d0();\n  }\n  return iVar3;\n}\n\n" (function_definition "int FUN_0006e960(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int in_GS_OFFSET;\n  bool bVar7;\n  undefined4 local_40;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x6e969;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0001fb70(param_3,0xaa);\n  iVar2 = DAT_000cdef0;\n  if (iVar1 != 0) {\n    if ((DAT_000cdeec == 0) || (iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0)) {\n      if ((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)) goto LAB_0006e9d8;\n      bVar7 = true;\n      local_40 = 0;\n    }\n    else if (iVar2 == 0) {\n      local_40 = 1;\n      bVar7 = false;\n    }\n    else {\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }\n    uVar4 = FUN_0006e760(param_1,param_2,param_3);\n    puVar5 = (undefined4 *)FUN_0002e780(1,0x1c);\n    *puVar5 = &DAT_0010f888;\n    puVar5[2] = 0;\n    local_30 = 0;\n    local_24 = 0;\n    local_28 = 0;\n    local_2c = 0;\n    iVar1 = FUN_0009ede0(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,\n                         local_40,bVar7);\n    FUN_0003efc0(param_4,iVar1,local_30,local_2c,local_28);\n    FUN_0002f010(local_30);\n    FUN_0002f010(local_2c);\n    FUN_0002f010(local_28);\n    iVar2 = local_24;\n    if (iVar1 == 1) {\n      *param_5 = 0;\n      FUN_0002f010(puVar5);\n      FUN_0002f010(uVar4);\n      iVar3 = local_24;\n      goto LAB_0006e9da;\n    }\n    if (iVar1 != 2) {\n      iVar3 = 0;\n      if (iVar1 == 0) {\n        if (local_24 != 0) {\n                    \n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *param_5 = 0;\n        FUN_0002f010(puVar5);\n        FUN_0002f010(uVar4);\n        iVar3 = iVar2;\n      }\n      goto LAB_0006e9da;\n    }\n    *param_5 = puVar5;\n    puVar5[2] = local_24;\n    uVar6 = FUN_000814b0(FUN_0006ba00);\n    puVar5[3] = uVar6;\n    puVar5[5] = param_4;\n    puVar5[6] = 0;\n    puVar5[1] = uVar4;\n    puVar5[4] = 1;\n  }\nLAB_0006e9d8:\n  iVar3 = 0;\nLAB_0006e9da:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000a39d0();\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_0006e960(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 *param_5)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 *param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int in_GS_OFFSET;\n  bool bVar7;\n  undefined4 local_40;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x6e969;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0001fb70(param_3,0xaa);\n  iVar2 = DAT_000cdef0;\n  if (iVar1 != 0) {\n    if ((DAT_000cdeec == 0) || (iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0)) {\n      if ((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)) goto LAB_0006e9d8;\n      bVar7 = true;\n      local_40 = 0;\n    }\n    else if (iVar2 == 0) {\n      local_40 = 1;\n      bVar7 = false;\n    }\n    else {\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }\n    uVar4 = FUN_0006e760(param_1,param_2,param_3);\n    puVar5 = (undefined4 *)FUN_0002e780(1,0x1c);\n    *puVar5 = &DAT_0010f888;\n    puVar5[2] = 0;\n    local_30 = 0;\n    local_24 = 0;\n    local_28 = 0;\n    local_2c = 0;\n    iVar1 = FUN_0009ede0(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,\n                         local_40,bVar7);\n    FUN_0003efc0(param_4,iVar1,local_30,local_2c,local_28);\n    FUN_0002f010(local_30);\n    FUN_0002f010(local_2c);\n    FUN_0002f010(local_28);\n    iVar2 = local_24;\n    if (iVar1 == 1) {\n      *param_5 = 0;\n      FUN_0002f010(puVar5);\n      FUN_0002f010(uVar4);\n      iVar3 = local_24;\n      goto LAB_0006e9da;\n    }\n    if (iVar1 != 2) {\n      iVar3 = 0;\n      if (iVar1 == 0) {\n        if (local_24 != 0) {\n                    \n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *param_5 = 0;\n        FUN_0002f010(puVar5);\n        FUN_0002f010(uVar4);\n        iVar3 = iVar2;\n      }\n      goto LAB_0006e9da;\n    }\n    *param_5 = puVar5;\n    puVar5[2] = local_24;\n    uVar6 = FUN_000814b0(FUN_0006ba00);\n    puVar5[3] = uVar6;\n    puVar5[5] = param_4;\n    puVar5[6] = 0;\n    puVar5[1] = uVar4;\n    puVar5[4] = 1;\n  }\nLAB_0006e9d8:\n  iVar3 = 0;\nLAB_0006e9da:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000a39d0();\n  }\n  return iVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "undefined4 local_40;" type_identifier identifier ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x6e969;" (assignment_expression "uStack_14 = 0x6e969" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = FUN_0001fb70(param_3,0xaa);" (assignment_expression "iVar1 = FUN_0001fb70(param_3,0xaa)" identifier = (call_expression "FUN_0001fb70(param_3,0xaa)" identifier (argument_list "(param_3,0xaa)" ( identifier , number_literal )))) ;) (expression_statement "iVar2 = DAT_000cdef0;" (assignment_expression "iVar2 = DAT_000cdef0" identifier = identifier) ;) (if_statement "if (iVar1 != 0) {\n    if ((DAT_000cdeec == 0) || (iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0)) {\n      if ((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)) goto LAB_0006e9d8;\n      bVar7 = true;\n      local_40 = 0;\n    }\n    else if (iVar2 == 0) {\n      local_40 = 1;\n      bVar7 = false;\n    }\n    else {\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }\n    uVar4 = FUN_0006e760(param_1,param_2,param_3);\n    puVar5 = (undefined4 *)FUN_0002e780(1,0x1c);\n    *puVar5 = &DAT_0010f888;\n    puVar5[2] = 0;\n    local_30 = 0;\n    local_24 = 0;\n    local_28 = 0;\n    local_2c = 0;\n    iVar1 = FUN_0009ede0(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,\n                         local_40,bVar7);\n    FUN_0003efc0(param_4,iVar1,local_30,local_2c,local_28);\n    FUN_0002f010(local_30);\n    FUN_0002f010(local_2c);\n    FUN_0002f010(local_28);\n    iVar2 = local_24;\n    if (iVar1 == 1) {\n      *param_5 = 0;\n      FUN_0002f010(puVar5);\n      FUN_0002f010(uVar4);\n      iVar3 = local_24;\n      goto LAB_0006e9da;\n    }\n    if (iVar1 != 2) {\n      iVar3 = 0;\n      if (iVar1 == 0) {\n        if (local_24 != 0) {\n                    \n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *param_5 = 0;\n        FUN_0002f010(puVar5);\n        FUN_0002f010(uVar4);\n        iVar3 = iVar2;\n      }\n      goto LAB_0006e9da;\n    }\n    *param_5 = puVar5;\n    puVar5[2] = local_24;\n    uVar6 = FUN_000814b0(FUN_0006ba00);\n    puVar5[3] = uVar6;\n    puVar5[5] = param_4;\n    puVar5[6] = 0;\n    puVar5[1] = uVar4;\n    puVar5[4] = 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((DAT_000cdeec == 0) || (iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0)) {\n      if ((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)) goto LAB_0006e9d8;\n      bVar7 = true;\n      local_40 = 0;\n    }\n    else if (iVar2 == 0) {\n      local_40 = 1;\n      bVar7 = false;\n    }\n    else {\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }\n    uVar4 = FUN_0006e760(param_1,param_2,param_3);\n    puVar5 = (undefined4 *)FUN_0002e780(1,0x1c);\n    *puVar5 = &DAT_0010f888;\n    puVar5[2] = 0;\n    local_30 = 0;\n    local_24 = 0;\n    local_28 = 0;\n    local_2c = 0;\n    iVar1 = FUN_0009ede0(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,\n                         local_40,bVar7);\n    FUN_0003efc0(param_4,iVar1,local_30,local_2c,local_28);\n    FUN_0002f010(local_30);\n    FUN_0002f010(local_2c);\n    FUN_0002f010(local_28);\n    iVar2 = local_24;\n    if (iVar1 == 1) {\n      *param_5 = 0;\n      FUN_0002f010(puVar5);\n      FUN_0002f010(uVar4);\n      iVar3 = local_24;\n      goto LAB_0006e9da;\n    }\n    if (iVar1 != 2) {\n      iVar3 = 0;\n      if (iVar1 == 0) {\n        if (local_24 != 0) {\n                    \n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *param_5 = 0;\n        FUN_0002f010(puVar5);\n        FUN_0002f010(uVar4);\n        iVar3 = iVar2;\n      }\n      goto LAB_0006e9da;\n    }\n    *param_5 = puVar5;\n    puVar5[2] = local_24;\n    uVar6 = FUN_000814b0(FUN_0006ba00);\n    puVar5[3] = uVar6;\n    puVar5[5] = param_4;\n    puVar5[6] = 0;\n    puVar5[1] = uVar4;\n    puVar5[4] = 1;\n  }" { (if_statement "if ((DAT_000cdeec == 0) || (iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0)) {\n      if ((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)) goto LAB_0006e9d8;\n      bVar7 = true;\n      local_40 = 0;\n    }\n    else if (iVar2 == 0) {\n      local_40 = 1;\n      bVar7 = false;\n    }\n    else {\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }" if (parenthesized_expression "((DAT_000cdeec == 0) || (iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0))" ( (binary_expression "(DAT_000cdeec == 0) || (iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0)" (parenthesized_expression "(DAT_000cdeec == 0)" ( (binary_expression "DAT_000cdeec == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0)" ( (comma_expression "iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0" (assignment_expression "iVar1 = FUN_0001fb70(param_3,0xab)" identifier = (call_expression "FUN_0001fb70(param_3,0xab)" identifier (argument_list "(param_3,0xab)" ( identifier , number_literal )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      if ((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)) goto LAB_0006e9d8;\n      bVar7 = true;\n      local_40 = 0;\n    }" { (if_statement "if ((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)) goto LAB_0006e9d8;" if (parenthesized_expression "((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0))" ( (binary_expression "(iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)" ( (comma_expression "iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0" (assignment_expression "iVar2 = FUN_0001fb70(param_3,0xac)" identifier = (call_expression "FUN_0001fb70(param_3,0xac)" identifier (argument_list "(param_3,0xac)" ( identifier , number_literal )))) , (binary_expression "iVar2 == 0" identifier == number_literal)) ))) )) (goto_statement "goto LAB_0006e9d8;" goto statement_identifier ;)) (expression_statement "bVar7 = true;" (assignment_expression "bVar7 = true" identifier = true) ;) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) }) (else_clause "else if (iVar2 == 0) {\n      local_40 = 1;\n      bVar7 = false;\n    }\n    else {\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }" else (if_statement "if (iVar2 == 0) {\n      local_40 = 1;\n      bVar7 = false;\n    }\n    else {\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      local_40 = 1;\n      bVar7 = false;\n    }" { (expression_statement "local_40 = 1;" (assignment_expression "local_40 = 1" identifier = number_literal) ;) (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" identifier = false) ;) }) (else_clause "else {\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }" else (compound_statement "{\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }" { (expression_statement "iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);" (assignment_expression "iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1)" identifier = (call_expression "FUN_0001fb70(param_3,0xac,iVar1,iVar1)" identifier (argument_list "(param_3,0xac,iVar1,iVar1)" ( identifier , number_literal , identifier , identifier )))) ;) (expression_statement "bVar7 = iVar2 != 0;" (assignment_expression "bVar7 = iVar2 != 0" identifier = (binary_expression "iVar2 != 0" identifier != number_literal)) ;) (expression_statement "local_40 = 1;" (assignment_expression "local_40 = 1" identifier = number_literal) ;) }))))) (expression_statement "uVar4 = FUN_0006e760(param_1,param_2,param_3);" (assignment_expression "uVar4 = FUN_0006e760(param_1,param_2,param_3)" identifier = (call_expression "FUN_0006e760(param_1,param_2,param_3)" identifier (argument_list "(param_1,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (expression_statement "puVar5 = (undefined4 *)FUN_0002e780(1,0x1c);" (assignment_expression "puVar5 = (undefined4 *)FUN_0002e780(1,0x1c)" identifier = (cast_expression "(undefined4 *)FUN_0002e780(1,0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0002e780(1,0x1c)" identifier (argument_list "(1,0x1c)" ( number_literal , number_literal ))))) ;) (expression_statement "*puVar5 = &DAT_0010f888;" (assignment_expression "*puVar5 = &DAT_0010f888" (pointer_expression "*puVar5" * identifier) = (pointer_expression "&DAT_0010f888" & identifier)) ;) (expression_statement "puVar5[2] = 0;" (assignment_expression "puVar5[2] = 0" (subscript_expression "puVar5[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_0009ede0(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,\n                         local_40,bVar7);" (assignment_expression "iVar1 = FUN_0009ede0(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,\n                         local_40,bVar7)" identifier = (call_expression "FUN_0009ede0(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,\n                         local_40,bVar7)" identifier (argument_list "(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,\n                         local_40,bVar7)" ( identifier , identifier , identifier , identifier , (pointer_expression "&local_24" & identifier) , (pointer_expression "&local_30" & identifier) , (pointer_expression "&local_2c" & identifier) , (pointer_expression "&local_28" & identifier) , identifier , identifier )))) ;) (expression_statement "FUN_0003efc0(param_4,iVar1,local_30,local_2c,local_28);" (call_expression "FUN_0003efc0(param_4,iVar1,local_30,local_2c,local_28)" identifier (argument_list "(param_4,iVar1,local_30,local_2c,local_28)" ( identifier , identifier , identifier , identifier , identifier ))) ;) (expression_statement "FUN_0002f010(local_30);" (call_expression "FUN_0002f010(local_30)" identifier (argument_list "(local_30)" ( identifier ))) ;) (expression_statement "FUN_0002f010(local_2c);" (call_expression "FUN_0002f010(local_2c)" identifier (argument_list "(local_2c)" ( identifier ))) ;) (expression_statement "FUN_0002f010(local_28);" (call_expression "FUN_0002f010(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) (expression_statement "iVar2 = local_24;" (assignment_expression "iVar2 = local_24" identifier = identifier) ;) (if_statement "if (iVar1 == 1) {\n      *param_5 = 0;\n      FUN_0002f010(puVar5);\n      FUN_0002f010(uVar4);\n      iVar3 = local_24;\n      goto LAB_0006e9da;\n    }" if (parenthesized_expression "(iVar1 == 1)" ( (binary_expression "iVar1 == 1" identifier == number_literal) )) (compound_statement "{\n      *param_5 = 0;\n      FUN_0002f010(puVar5);\n      FUN_0002f010(uVar4);\n      iVar3 = local_24;\n      goto LAB_0006e9da;\n    }" { (expression_statement "*param_5 = 0;" (assignment_expression "*param_5 = 0" (pointer_expression "*param_5" * identifier) = number_literal) ;) (expression_statement "FUN_0002f010(puVar5);" (call_expression "FUN_0002f010(puVar5)" identifier (argument_list "(puVar5)" ( identifier ))) ;) (expression_statement "FUN_0002f010(uVar4);" (call_expression "FUN_0002f010(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "iVar3 = local_24;" (assignment_expression "iVar3 = local_24" identifier = identifier) ;) (goto_statement "goto LAB_0006e9da;" goto statement_identifier ;) })) (if_statement "if (iVar1 != 2) {\n      iVar3 = 0;\n      if (iVar1 == 0) {\n        if (local_24 != 0) {\n                    \n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *param_5 = 0;\n        FUN_0002f010(puVar5);\n        FUN_0002f010(uVar4);\n        iVar3 = iVar2;\n      }\n      goto LAB_0006e9da;\n    }" if (parenthesized_expression "(iVar1 != 2)" ( (binary_expression "iVar1 != 2" identifier != number_literal) )) (compound_statement "{\n      iVar3 = 0;\n      if (iVar1 == 0) {\n        if (local_24 != 0) {\n                    \n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *param_5 = 0;\n        FUN_0002f010(puVar5);\n        FUN_0002f010(uVar4);\n        iVar3 = iVar2;\n      }\n      goto LAB_0006e9da;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (if_statement "if (iVar1 == 0) {\n        if (local_24 != 0) {\n                    \n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *param_5 = 0;\n        FUN_0002f010(puVar5);\n        FUN_0002f010(uVar4);\n        iVar3 = iVar2;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        if (local_24 != 0) {\n                    \n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *param_5 = 0;\n        FUN_0002f010(puVar5);\n        FUN_0002f010(uVar4);\n        iVar3 = iVar2;\n      }" { (if_statement "if (local_24 != 0) {\n                    \n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (compound_statement "{\n                    \n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }" { (expression_statement "__assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");" (call_expression "__assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init")" identifier (argument_list "("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init")" ( (string_literal ""sock == NULL"" " string_content ") , (string_literal ""sshshare.c"" " string_content ") , number_literal , (string_literal ""ssh_connection_sharing_init"" " string_content ") ))) ;) })) (expression_statement "*param_5 = 0;" (assignment_expression "*param_5 = 0" (pointer_expression "*param_5" * identifier) = number_literal) ;) (expression_statement "FUN_0002f010(puVar5);" (call_expression "FUN_0002f010(puVar5)" identifier (argument_list "(puVar5)" ( identifier ))) ;) (expression_statement "FUN_0002f010(uVar4);" (call_expression "FUN_0002f010(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "iVar3 = iVar2;" (assignment_expression "iVar3 = iVar2" identifier = identifier) ;) })) (goto_statement "goto LAB_0006e9da;" goto statement_identifier ;) })) (expression_statement "*param_5 = puVar5;" (assignment_expression "*param_5 = puVar5" (pointer_expression "*param_5" * identifier) = identifier) ;) (expression_statement "puVar5[2] = local_24;" (assignment_expression "puVar5[2] = local_24" (subscript_expression "puVar5[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar6 = FUN_000814b0(FUN_0006ba00);" (assignment_expression "uVar6 = FUN_000814b0(FUN_0006ba00)" identifier = (call_expression "FUN_000814b0(FUN_0006ba00)" identifier (argument_list "(FUN_0006ba00)" ( identifier )))) ;) (expression_statement "puVar5[3] = uVar6;" (assignment_expression "puVar5[3] = uVar6" (subscript_expression "puVar5[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5[5] = param_4;" (assignment_expression "puVar5[5] = param_4" (subscript_expression "puVar5[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5[6] = 0;" (assignment_expression "puVar5[6] = 0" (subscript_expression "puVar5[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar5[1] = uVar4;" (assignment_expression "puVar5[1] = uVar4" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar5[4] = 1;" (assignment_expression "puVar5[4] = 1" (subscript_expression "puVar5[4]" identifier [ number_literal ]) = number_literal) ;) })) (labeled_statement "LAB_0006e9d8:\n  iVar3 = 0;" statement_identifier : (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;)) (labeled_statement "LAB_0006e9da:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000a39d0();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000a39d0();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_000a39d0();\n  }" { (expression_statement "FUN_000a39d0();" (call_expression "FUN_000a39d0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) , (binary_expression IDENT == LIT)) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT != LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))))) (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 IDENT (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = 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 (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (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 IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression 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 = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (goto_statement goto statement_identifier ;) })) (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) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_0006e960(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 *param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int in_GS_OFFSET;\n  bool bVar7;\n  undefined4 local_40;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x6e969;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0001fb70(param_3,0xaa);\n  iVar2 = DAT_000cdef0;\n  if (iVar1 != 0) {\n    if ((DAT_000cdeec == 0) || (iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0)) {\n      if ((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)) goto LAB_0006e9d8;\n      bVar7 = true;\n      local_40 = 0;\n    }\n    else if (iVar2 == 0) {\n      local_40 = 1;\n      bVar7 = false;\n    }\n    else {\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }\n    uVar4 = FUN_0006e760(param_1,param_2,param_3);\n    puVar5 = (undefined4 *)FUN_0002e780(1,0x1c);\n    *puVar5 = &DAT_0010f888;\n    puVar5[2] = 0;\n    local_30 = 0;\n    local_24 = 0;\n    local_28 = 0;\n    local_2c = 0;\n    iVar1 = FUN_0009ede0(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,\n                         local_40,bVar7);\n    FUN_0003efc0(param_4,iVar1,local_30,local_2c,local_28);\n    FUN_0002f010(local_30);\n    FUN_0002f010(local_2c);\n    FUN_0002f010(local_28);\n    iVar2 = local_24;\n    if (iVar1 == 1) {\n      *param_5 = 0;\n      FUN_0002f010(puVar5);\n      FUN_0002f010(uVar4);\n      iVar3 = local_24;\n      goto LAB_0006e9da;\n    }\n    if (iVar1 != 2) {\n      iVar3 = 0;\n      if (iVar1 == 0) {\n        if (local_24 != 0) {\n                    \n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *param_5 = 0;\n        FUN_0002f010(puVar5);\n        FUN_0002f010(uVar4);\n        iVar3 = iVar2;\n      }\n      goto LAB_0006e9da;\n    }\n    *param_5 = puVar5;\n    puVar5[2] = local_24;\n    uVar6 = FUN_000814b0(FUN_0006ba00);\n    puVar5[3] = uVar6;\n    puVar5[5] = param_4;\n    puVar5[6] = 0;\n    puVar5[1] = uVar4;\n    puVar5[4] = 1;\n  }\nLAB_0006e9d8:\n  iVar3 = 0;\nLAB_0006e9da:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000a39d0();\n  }\n  return iVar3;\n}" (primitive_type "int") (function_declarator "FUN_0006e960(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 *param_5)" (identifier "FUN_0006e960") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                undefined4 *param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 *param_5" (type_identifier "undefined4") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  int in_GS_OFFSET;\n  bool bVar7;\n  undefined4 local_40;\n  undefined4 local_30;\n  undefined4 local_2c;\n  undefined4 local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x6e969;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0001fb70(param_3,0xaa);\n  iVar2 = DAT_000cdef0;\n  if (iVar1 != 0) {\n    if ((DAT_000cdeec == 0) || (iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0)) {\n      if ((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)) goto LAB_0006e9d8;\n      bVar7 = true;\n      local_40 = 0;\n    }\n    else if (iVar2 == 0) {\n      local_40 = 1;\n      bVar7 = false;\n    }\n    else {\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }\n    uVar4 = FUN_0006e760(param_1,param_2,param_3);\n    puVar5 = (undefined4 *)FUN_0002e780(1,0x1c);\n    *puVar5 = &DAT_0010f888;\n    puVar5[2] = 0;\n    local_30 = 0;\n    local_24 = 0;\n    local_28 = 0;\n    local_2c = 0;\n    iVar1 = FUN_0009ede0(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,\n                         local_40,bVar7);\n    FUN_0003efc0(param_4,iVar1,local_30,local_2c,local_28);\n    FUN_0002f010(local_30);\n    FUN_0002f010(local_2c);\n    FUN_0002f010(local_28);\n    iVar2 = local_24;\n    if (iVar1 == 1) {\n      *param_5 = 0;\n      FUN_0002f010(puVar5);\n      FUN_0002f010(uVar4);\n      iVar3 = local_24;\n      goto LAB_0006e9da;\n    }\n    if (iVar1 != 2) {\n      iVar3 = 0;\n      if (iVar1 == 0) {\n        if (local_24 != 0) {\n                    \n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *param_5 = 0;\n        FUN_0002f010(puVar5);\n        FUN_0002f010(uVar4);\n        iVar3 = iVar2;\n      }\n      goto LAB_0006e9da;\n    }\n    *param_5 = puVar5;\n    puVar5[2] = local_24;\n    uVar6 = FUN_000814b0(FUN_0006ba00);\n    puVar5[3] = uVar6;\n    puVar5[5] = param_4;\n    puVar5[6] = 0;\n    puVar5[1] = uVar4;\n    puVar5[4] = 1;\n  }\nLAB_0006e9d8:\n  iVar3 = 0;\nLAB_0006e9da:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000a39d0();\n  }\n  return iVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "bool bVar7;" (primitive_type "bool") (identifier "bVar7") (; ";")) (declaration "undefined4 local_40;" (type_identifier "undefined4") (identifier "local_40") (; ";")) (declaration "undefined4 local_30;" (type_identifier "undefined4") (identifier "local_30") (; ";")) (declaration "undefined4 local_2c;" (type_identifier "undefined4") (identifier "local_2c") (; ";")) (declaration "undefined4 local_28;" (type_identifier "undefined4") (identifier "local_28") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x6e969;" (assignment_expression "uStack_14 = 0x6e969" (identifier "uStack_14") (= "=") (number_literal "0x6e969")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar1 = FUN_0001fb70(param_3,0xaa);" (assignment_expression "iVar1 = FUN_0001fb70(param_3,0xaa)" (identifier "iVar1") (= "=") (call_expression "FUN_0001fb70(param_3,0xaa)" (identifier "FUN_0001fb70") (argument_list "(param_3,0xaa)" (( "(") (identifier "param_3") (, ",") (number_literal "0xaa") () ")")))) (; ";")) (expression_statement "iVar2 = DAT_000cdef0;" (assignment_expression "iVar2 = DAT_000cdef0" (identifier "iVar2") (= "=") (identifier "DAT_000cdef0")) (; ";")) (if_statement "if (iVar1 != 0) {\n    if ((DAT_000cdeec == 0) || (iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0)) {\n      if ((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)) goto LAB_0006e9d8;\n      bVar7 = true;\n      local_40 = 0;\n    }\n    else if (iVar2 == 0) {\n      local_40 = 1;\n      bVar7 = false;\n    }\n    else {\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }\n    uVar4 = FUN_0006e760(param_1,param_2,param_3);\n    puVar5 = (undefined4 *)FUN_0002e780(1,0x1c);\n    *puVar5 = &DAT_0010f888;\n    puVar5[2] = 0;\n    local_30 = 0;\n    local_24 = 0;\n    local_28 = 0;\n    local_2c = 0;\n    iVar1 = FUN_0009ede0(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,\n                         local_40,bVar7);\n    FUN_0003efc0(param_4,iVar1,local_30,local_2c,local_28);\n    FUN_0002f010(local_30);\n    FUN_0002f010(local_2c);\n    FUN_0002f010(local_28);\n    iVar2 = local_24;\n    if (iVar1 == 1) {\n      *param_5 = 0;\n      FUN_0002f010(puVar5);\n      FUN_0002f010(uVar4);\n      iVar3 = local_24;\n      goto LAB_0006e9da;\n    }\n    if (iVar1 != 2) {\n      iVar3 = 0;\n      if (iVar1 == 0) {\n        if (local_24 != 0) {\n                    \n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *param_5 = 0;\n        FUN_0002f010(puVar5);\n        FUN_0002f010(uVar4);\n        iVar3 = iVar2;\n      }\n      goto LAB_0006e9da;\n    }\n    *param_5 = puVar5;\n    puVar5[2] = local_24;\n    uVar6 = FUN_000814b0(FUN_0006ba00);\n    puVar5[3] = uVar6;\n    puVar5[5] = param_4;\n    puVar5[6] = 0;\n    puVar5[1] = uVar4;\n    puVar5[4] = 1;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if ((DAT_000cdeec == 0) || (iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0)) {\n      if ((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)) goto LAB_0006e9d8;\n      bVar7 = true;\n      local_40 = 0;\n    }\n    else if (iVar2 == 0) {\n      local_40 = 1;\n      bVar7 = false;\n    }\n    else {\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }\n    uVar4 = FUN_0006e760(param_1,param_2,param_3);\n    puVar5 = (undefined4 *)FUN_0002e780(1,0x1c);\n    *puVar5 = &DAT_0010f888;\n    puVar5[2] = 0;\n    local_30 = 0;\n    local_24 = 0;\n    local_28 = 0;\n    local_2c = 0;\n    iVar1 = FUN_0009ede0(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,\n                         local_40,bVar7);\n    FUN_0003efc0(param_4,iVar1,local_30,local_2c,local_28);\n    FUN_0002f010(local_30);\n    FUN_0002f010(local_2c);\n    FUN_0002f010(local_28);\n    iVar2 = local_24;\n    if (iVar1 == 1) {\n      *param_5 = 0;\n      FUN_0002f010(puVar5);\n      FUN_0002f010(uVar4);\n      iVar3 = local_24;\n      goto LAB_0006e9da;\n    }\n    if (iVar1 != 2) {\n      iVar3 = 0;\n      if (iVar1 == 0) {\n        if (local_24 != 0) {\n                    \n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *param_5 = 0;\n        FUN_0002f010(puVar5);\n        FUN_0002f010(uVar4);\n        iVar3 = iVar2;\n      }\n      goto LAB_0006e9da;\n    }\n    *param_5 = puVar5;\n    puVar5[2] = local_24;\n    uVar6 = FUN_000814b0(FUN_0006ba00);\n    puVar5[3] = uVar6;\n    puVar5[5] = param_4;\n    puVar5[6] = 0;\n    puVar5[1] = uVar4;\n    puVar5[4] = 1;\n  }" ({ "{") (if_statement "if ((DAT_000cdeec == 0) || (iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0)) {\n      if ((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)) goto LAB_0006e9d8;\n      bVar7 = true;\n      local_40 = 0;\n    }\n    else if (iVar2 == 0) {\n      local_40 = 1;\n      bVar7 = false;\n    }\n    else {\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }" (if "if") (parenthesized_expression "((DAT_000cdeec == 0) || (iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0))" (( "(") (binary_expression "(DAT_000cdeec == 0) || (iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0)" (parenthesized_expression "(DAT_000cdeec == 0)" (( "(") (binary_expression "DAT_000cdeec == 0" (identifier "DAT_000cdeec") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0)" (( "(") (comma_expression "iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0" (assignment_expression "iVar1 = FUN_0001fb70(param_3,0xab)" (identifier "iVar1") (= "=") (call_expression "FUN_0001fb70(param_3,0xab)" (identifier "FUN_0001fb70") (argument_list "(param_3,0xab)" (( "(") (identifier "param_3") (, ",") (number_literal "0xab") () ")")))) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      if ((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)) goto LAB_0006e9d8;\n      bVar7 = true;\n      local_40 = 0;\n    }" ({ "{") (if_statement "if ((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)) goto LAB_0006e9d8;" (if "if") (parenthesized_expression "((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0))" (( "(") (binary_expression "(iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)" (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)" (( "(") (comma_expression "iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0" (assignment_expression "iVar2 = FUN_0001fb70(param_3,0xac)" (identifier "iVar2") (= "=") (call_expression "FUN_0001fb70(param_3,0xac)" (identifier "FUN_0001fb70") (argument_list "(param_3,0xac)" (( "(") (identifier "param_3") (, ",") (number_literal "0xac") () ")")))) (, ",") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0"))) () ")"))) () ")")) (goto_statement "goto LAB_0006e9d8;" (goto "goto") (statement_identifier "LAB_0006e9d8") (; ";"))) (expression_statement "bVar7 = true;" (assignment_expression "bVar7 = true" (identifier "bVar7") (= "=") (true "true")) (; ";")) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" (identifier "local_40") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else if (iVar2 == 0) {\n      local_40 = 1;\n      bVar7 = false;\n    }\n    else {\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }" (else "else") (if_statement "if (iVar2 == 0) {\n      local_40 = 1;\n      bVar7 = false;\n    }\n    else {\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      local_40 = 1;\n      bVar7 = false;\n    }" ({ "{") (expression_statement "local_40 = 1;" (assignment_expression "local_40 = 1" (identifier "local_40") (= "=") (number_literal "1")) (; ";")) (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" (identifier "bVar7") (= "=") (false "false")) (; ";")) (} "}")) (else_clause "else {\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }" (else "else") (compound_statement "{\n      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);\n      bVar7 = iVar2 != 0;\n      local_40 = 1;\n    }" ({ "{") (expression_statement "iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);" (assignment_expression "iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1)" (identifier "iVar2") (= "=") (call_expression "FUN_0001fb70(param_3,0xac,iVar1,iVar1)" (identifier "FUN_0001fb70") (argument_list "(param_3,0xac,iVar1,iVar1)" (( "(") (identifier "param_3") (, ",") (number_literal "0xac") (, ",") (identifier "iVar1") (, ",") (identifier "iVar1") () ")")))) (; ";")) (expression_statement "bVar7 = iVar2 != 0;" (assignment_expression "bVar7 = iVar2 != 0" (identifier "bVar7") (= "=") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) (; ";")) (expression_statement "local_40 = 1;" (assignment_expression "local_40 = 1" (identifier "local_40") (= "=") (number_literal "1")) (; ";")) (} "}")))))) (expression_statement "uVar4 = FUN_0006e760(param_1,param_2,param_3);" (assignment_expression "uVar4 = FUN_0006e760(param_1,param_2,param_3)" (identifier "uVar4") (= "=") (call_expression "FUN_0006e760(param_1,param_2,param_3)" (identifier "FUN_0006e760") (argument_list "(param_1,param_2,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "puVar5 = (undefined4 *)FUN_0002e780(1,0x1c);" (assignment_expression "puVar5 = (undefined4 *)FUN_0002e780(1,0x1c)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)FUN_0002e780(1,0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0002e780(1,0x1c)" (identifier "FUN_0002e780") (argument_list "(1,0x1c)" (( "(") (number_literal "1") (, ",") (number_literal "0x1c") () ")"))))) (; ";")) (expression_statement "*puVar5 = &DAT_0010f888;" (assignment_expression "*puVar5 = &DAT_0010f888" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (pointer_expression "&DAT_0010f888" (& "&") (identifier "DAT_0010f888"))) (; ";")) (expression_statement "puVar5[2] = 0;" (assignment_expression "puVar5[2] = 0" (subscript_expression "puVar5[2]" (identifier "puVar5") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" (identifier "local_2c") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = FUN_0009ede0(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,\n                         local_40,bVar7);" (assignment_expression "iVar1 = FUN_0009ede0(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,\n                         local_40,bVar7)" (identifier "iVar1") (= "=") (call_expression "FUN_0009ede0(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,\n                         local_40,bVar7)" (identifier "FUN_0009ede0") (argument_list "(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,\n                         local_40,bVar7)" (( "(") (identifier "uVar4") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "puVar5") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (pointer_expression "&local_30" (& "&") (identifier "local_30")) (, ",") (pointer_expression "&local_2c" (& "&") (identifier "local_2c")) (, ",") (pointer_expression "&local_28" (& "&") (identifier "local_28")) (, ",") (identifier "local_40") (, ",") (identifier "bVar7") () ")")))) (; ";")) (expression_statement "FUN_0003efc0(param_4,iVar1,local_30,local_2c,local_28);" (call_expression "FUN_0003efc0(param_4,iVar1,local_30,local_2c,local_28)" (identifier "FUN_0003efc0") (argument_list "(param_4,iVar1,local_30,local_2c,local_28)" (( "(") (identifier "param_4") (, ",") (identifier "iVar1") (, ",") (identifier "local_30") (, ",") (identifier "local_2c") (, ",") (identifier "local_28") () ")"))) (; ";")) (expression_statement "FUN_0002f010(local_30);" (call_expression "FUN_0002f010(local_30)" (identifier "FUN_0002f010") (argument_list "(local_30)" (( "(") (identifier "local_30") () ")"))) (; ";")) (expression_statement "FUN_0002f010(local_2c);" (call_expression "FUN_0002f010(local_2c)" (identifier "FUN_0002f010") (argument_list "(local_2c)" (( "(") (identifier "local_2c") () ")"))) (; ";")) (expression_statement "FUN_0002f010(local_28);" (call_expression "FUN_0002f010(local_28)" (identifier "FUN_0002f010") (argument_list "(local_28)" (( "(") (identifier "local_28") () ")"))) (; ";")) (expression_statement "iVar2 = local_24;" (assignment_expression "iVar2 = local_24" (identifier "iVar2") (= "=") (identifier "local_24")) (; ";")) (if_statement "if (iVar1 == 1) {\n      *param_5 = 0;\n      FUN_0002f010(puVar5);\n      FUN_0002f010(uVar4);\n      iVar3 = local_24;\n      goto LAB_0006e9da;\n    }" (if "if") (parenthesized_expression "(iVar1 == 1)" (( "(") (binary_expression "iVar1 == 1" (identifier "iVar1") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      *param_5 = 0;\n      FUN_0002f010(puVar5);\n      FUN_0002f010(uVar4);\n      iVar3 = local_24;\n      goto LAB_0006e9da;\n    }" ({ "{") (expression_statement "*param_5 = 0;" (assignment_expression "*param_5 = 0" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0002f010(puVar5);" (call_expression "FUN_0002f010(puVar5)" (identifier "FUN_0002f010") (argument_list "(puVar5)" (( "(") (identifier "puVar5") () ")"))) (; ";")) (expression_statement "FUN_0002f010(uVar4);" (call_expression "FUN_0002f010(uVar4)" (identifier "FUN_0002f010") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "iVar3 = local_24;" (assignment_expression "iVar3 = local_24" (identifier "iVar3") (= "=") (identifier "local_24")) (; ";")) (goto_statement "goto LAB_0006e9da;" (goto "goto") (statement_identifier "LAB_0006e9da") (; ";")) (} "}"))) (if_statement "if (iVar1 != 2) {\n      iVar3 = 0;\n      if (iVar1 == 0) {\n        if (local_24 != 0) {\n                    \n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *param_5 = 0;\n        FUN_0002f010(puVar5);\n        FUN_0002f010(uVar4);\n        iVar3 = iVar2;\n      }\n      goto LAB_0006e9da;\n    }" (if "if") (parenthesized_expression "(iVar1 != 2)" (( "(") (binary_expression "iVar1 != 2" (identifier "iVar1") (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n      iVar3 = 0;\n      if (iVar1 == 0) {\n        if (local_24 != 0) {\n                    \n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *param_5 = 0;\n        FUN_0002f010(puVar5);\n        FUN_0002f010(uVar4);\n        iVar3 = iVar2;\n      }\n      goto LAB_0006e9da;\n    }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar1 == 0) {\n        if (local_24 != 0) {\n                    \n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *param_5 = 0;\n        FUN_0002f010(puVar5);\n        FUN_0002f010(uVar4);\n        iVar3 = iVar2;\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if (local_24 != 0) {\n                    \n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }\n        *param_5 = 0;\n        FUN_0002f010(puVar5);\n        FUN_0002f010(uVar4);\n        iVar3 = iVar2;\n      }" ({ "{") (if_statement "if (local_24 != 0) {\n                    \n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }" (if "if") (parenthesized_expression "(local_24 != 0)" (( "(") (binary_expression "local_24 != 0" (identifier "local_24") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");\n        }" ({ "{") (expression_statement "__assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");" (call_expression "__assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init")" (identifier "__assert_fail") (argument_list "("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init")" (( "(") (string_literal ""sock == NULL"" (" """) (string_content "sock == NULL") (" """)) (, ",") (string_literal ""sshshare.c"" (" """) (string_content "sshshare.c") (" """)) (, ",") (number_literal "0x873") (, ",") (string_literal ""ssh_connection_sharing_init"" (" """) (string_content "ssh_connection_sharing_init") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "*param_5 = 0;" (assignment_expression "*param_5 = 0" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0002f010(puVar5);" (call_expression "FUN_0002f010(puVar5)" (identifier "FUN_0002f010") (argument_list "(puVar5)" (( "(") (identifier "puVar5") () ")"))) (; ";")) (expression_statement "FUN_0002f010(uVar4);" (call_expression "FUN_0002f010(uVar4)" (identifier "FUN_0002f010") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "iVar3 = iVar2;" (assignment_expression "iVar3 = iVar2" (identifier "iVar3") (= "=") (identifier "iVar2")) (; ";")) (} "}"))) (goto_statement "goto LAB_0006e9da;" (goto "goto") (statement_identifier "LAB_0006e9da") (; ";")) (} "}"))) (expression_statement "*param_5 = puVar5;" (assignment_expression "*param_5 = puVar5" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "puVar5")) (; ";")) (expression_statement "puVar5[2] = local_24;" (assignment_expression "puVar5[2] = local_24" (subscript_expression "puVar5[2]" (identifier "puVar5") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "local_24")) (; ";")) (expression_statement "uVar6 = FUN_000814b0(FUN_0006ba00);" (assignment_expression "uVar6 = FUN_000814b0(FUN_0006ba00)" (identifier "uVar6") (= "=") (call_expression "FUN_000814b0(FUN_0006ba00)" (identifier "FUN_000814b0") (argument_list "(FUN_0006ba00)" (( "(") (identifier "FUN_0006ba00") () ")")))) (; ";")) (expression_statement "puVar5[3] = uVar6;" (assignment_expression "puVar5[3] = uVar6" (subscript_expression "puVar5[3]" (identifier "puVar5") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "puVar5[5] = param_4;" (assignment_expression "puVar5[5] = param_4" (subscript_expression "puVar5[5]" (identifier "puVar5") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "puVar5[6] = 0;" (assignment_expression "puVar5[6] = 0" (subscript_expression "puVar5[6]" (identifier "puVar5") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar5[1] = uVar4;" (assignment_expression "puVar5[1] = uVar4" (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "puVar5[4] = 1;" (assignment_expression "puVar5[4] = 1" (subscript_expression "puVar5[4]" (identifier "puVar5") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "1")) (; ";")) (} "}"))) (labeled_statement "LAB_0006e9d8:\n  iVar3 = 0;" (statement_identifier "LAB_0006e9d8") (: ":") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";"))) (labeled_statement "LAB_0006e9da:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000a39d0();\n  }" (statement_identifier "LAB_0006e9da") (: ":") (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000a39d0();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_000a39d0();\n  }" ({ "{") (expression_statement "FUN_000a39d0();" (call_expression "FUN_000a39d0()" (identifier "FUN_000a39d0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))

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

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

{
  type_1 ppsVar1;
  int var_3;
  int var_5;
  type_1 ppsVar4;
  type_4 *pi_name;
  type_5 upplug;
  type_4 *ppVar5;
  type_6 can_downstream;
  int var_1;
  int local_40;
  char *logtext;
  char *ds_err;
  char *us_err;
  type_1 var_11;
  int var_14;
  type_7 uStack_14;
  
  uStack_14 = 0x6e969;
  var_14 = *(int *)(var_1 + 0x14);
  var_3 = var_2(conf,0xaa);
  var_5 = share_can_be_downstream;
  if (var_3 != 0) {
    if ((var_4 == 0) || (var_3 = var_2(conf,0xab), var_3 == 0)) {
      if ((var_5 == 0) || (var_5 = var_2(conf,0xac), var_5 == 0)) goto LAB_0006e9d8;
      can_downstream = 1;
      local_40 = 0;
    }
    else if (var_5 == 0) {
      local_40 = 1;
      can_downstream = 0;
    }
    else {
      var_5 = var_2(conf,0xac);
      local_40 = 1;
      can_downstream = (type_6)(var_5 != 0);
    }
    pi_name = (type_4 *)var_6(host,port,conf);
    upplug = (type_5)var_7(1,0x1c);
    *upplug = &function_1::listen_fn_table;
    upplug[2] = (type_4 *)0x0;
    logtext = (char *)0x0;
    var_11 = (type_1)0x0;
    us_err = (char *)0x0;
    ds_err = (char *)0x0;
    var_5 = var_8((char *)pi_name,conf,&ssh->fn,upplug,&var_11,&logtext,&ds_err,&us_err,
                               local_40,can_downstream);
    var_9(ssh,var_5,logtext,ds_err,us_err);
    var_10(logtext);
    var_10(ds_err);
    var_10(us_err);
    ppsVar1 = var_11;
    if (var_5 == 1) {
      *state = (void *)0x0;
      var_10(upplug);
      var_10(pi_name);
      ppsVar4 = var_11;
      goto LAB_0006e9da;
    }
    if (var_5 != 2) {
      ppsVar4 = (type_1)0x0;
      if (var_5 == 0) {
        if (var_11 != (type_1)0x0) {
                    /* WARNING: Subroutine does not return */
          var_12("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");
        }
        *state = (void *)0x0;
        var_10(upplug);
        var_10(pi_name);
        ppsVar4 = ppsVar1;
      }
      goto LAB_0006e9da;
    }
    *state = upplug;
    upplug[2] = (type_4 *)var_11;
    ppVar5 = (type_4 *)var_13(share_connstate_cmp);
    upplug[3] = ppVar5;
    upplug[5] = (type_4 *)ssh;
    upplug[6] = (type_4 *)0x0;
    upplug[1] = pi_name;
    upplug[4] = (type_4 *)0x1;
  }
LAB_0006e9d8:
  ppsVar4 = (type_1)0x0;
LAB_0006e9da:
  if (var_14 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_15();
  }
  return ppsVar4;
}


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

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

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

{
  int iVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  undefined4 uVar6;
  int in_GS_OFFSET;
  bool bVar7;
  undefined4 local_40;
  undefined4 local_30;
  undefined4 local_2c;
  undefined4 local_28;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x6e969;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = FUN_0001fb70(param_3,0xaa);
  iVar2 = DAT_000cdef0;
  if (iVar1 != 0) {
    if ((DAT_000cdeec == 0) || (iVar1 = FUN_0001fb70(param_3,0xab), iVar1 == 0)) {
      if ((iVar2 == 0) || (iVar2 = FUN_0001fb70(param_3,0xac), iVar2 == 0)) goto LAB_0006e9d8;
      bVar7 = true;
      local_40 = 0;
    }
    else if (iVar2 == 0) {
      local_40 = 1;
      bVar7 = false;
    }
    else {
      iVar2 = FUN_0001fb70(param_3,0xac,iVar1,iVar1);
      bVar7 = iVar2 != 0;
      local_40 = 1;
    }
    uVar4 = FUN_0006e760(param_1,param_2,param_3);
    puVar5 = (undefined4 *)FUN_0002e780(1,0x1c);
    *puVar5 = &DAT_0010f888;
    puVar5[2] = 0;
    local_30 = 0;
    local_24 = 0;
    local_28 = 0;
    local_2c = 0;
    iVar1 = FUN_0009ede0(uVar4,param_3,param_4,puVar5,&local_24,&local_30,&local_2c,&local_28,
                         local_40,bVar7);
    FUN_0003efc0(param_4,iVar1,local_30,local_2c,local_28);
    FUN_0002f010(local_30);
    FUN_0002f010(local_2c);
    FUN_0002f010(local_28);
    iVar2 = local_24;
    if (iVar1 == 1) {
      *param_5 = 0;
      FUN_0002f010(puVar5);
      FUN_0002f010(uVar4);
      iVar3 = local_24;
      goto LAB_0006e9da;
    }
    if (iVar1 != 2) {
      iVar3 = 0;
      if (iVar1 == 0) {
        if (local_24 != 0) {
                    /* WARNING: Subroutine does not return */
          __assert_fail("sock == NULL","sshshare.c",0x873,"ssh_connection_sharing_init");
        }
        *param_5 = 0;
        FUN_0002f010(puVar5);
        FUN_0002f010(uVar4);
        iVar3 = iVar2;
      }
      goto LAB_0006e9da;
    }
    *param_5 = puVar5;
    puVar5[2] = local_24;
    uVar6 = FUN_000814b0(FUN_0006ba00);
    puVar5[3] = uVar6;
    puVar5[5] = param_4;
    puVar5[6] = 0;
    puVar5[1] = uVar4;
    puVar5[4] = 1;
  }
LAB_0006e9d8:
  iVar3 = 0;
LAB_0006e9da:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_000a39d0();
  }
  return iVar3;
}

