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

CURLcode ssh_connect(connectdata *conn,_Bool *done)

{
  LIBSSH2_SESSION *pLVar1;
  char *pcVar2;
  LIBSSH2_KNOWNHOSTS *pLVar3;
  int iVar4;
  CURLcode CVar5;
  Curl_easy *pCVar6;
  
  pCVar6 = conn->data;
  if ((pCVar6->req).protop == (void *)0x0) {
    ssh_setup_connection(conn);
  }
  Curl_conncontrol(conn,0);
  if ((conn->handler->protocol & 0x10) == 0) {
    conn->recv[0] = (Curl_recv *)(PTR_LAB_000b1624 + 0x5350);
    conn->send[0] = (Curl_send *)(PTR_LAB_000b1624 + 0x528c);
  }
  else {
    conn->recv[0] = (Curl_recv *)(PTR_LAB_000b1624 + 0x54d0);
    conn->send[0] = (Curl_send *)(PTR_LAB_000b1624 + 0x5410);
  }
  pLVar1 = (LIBSSH2_SESSION *)
           (*(code *)PTR_libssh2_session_init_ex_000b2038)
                     (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,
                      conn);
  (conn->proto).sshc.ssh_session = pLVar1;
  if (pLVar1 == (LIBSSH2_SESSION *)0x0) {
    (*(code *)PTR_Curl_failf_000b114c)(pCVar6,PTR_DAT_000b1184 + -0x55b8);
    CVar5 = CURLE_FAILED_INIT;
  }
  else {
    if (((pCVar6->set).ssh_compression == false) ||
       (iVar4 = (*(code *)PTR_libssh2_session_flag_000b1d08)(pLVar1,2,1), -1 < iVar4)) {
      pcVar2 = (pCVar6->set).str[0x38];
    }
    else {
      (*(code *)PTR_Curl_infof_000b11ac)(pCVar6,PTR_DAT_000b1184 + -0x5594);
      pcVar2 = (pCVar6->set).str[0x38];
    }
    if (pcVar2 != (char *)0x0) {
      pLVar3 = (LIBSSH2_KNOWNHOSTS *)
               (*(code *)PTR_libssh2_knownhost_init_000b1acc)((conn->proto).sshc.ssh_session);
      (conn->proto).sshc.kh = pLVar3;
      if (pLVar3 == (LIBSSH2_KNOWNHOSTS *)0x0) {
        (*(code *)PTR_libssh2_session_free_000b1c9c)((conn->proto).sshc.ssh_session);
        return CURLE_FAILED_INIT;
      }
      iVar4 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)(pLVar3,(pCVar6->set).str[0x38],1);
      if (iVar4 < 0) {
        (*(code *)PTR_Curl_infof_000b11ac)
                  (pCVar6,PTR_DAT_000b1184 + -0x5564,(pCVar6->set).str[0x38]);
      }
    }
    (conn->proto).sshc.state = SSH_INIT;
    CVar5 = ssh_multi_statemach(conn,done);
  }
  return CVar5;
}



undefined4 FUN_0005a7e8(int *param_1,undefined4 param_2)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  
  iVar3 = *param_1;
  if (*(int *)(iVar3 + 0x154) == 0) {
    FUN_00055010();
  }
  FUN_00046d14(param_1,0);
  if ((*(uint *)(param_1[0xa1] + 0x40) & 0x10) == 0) {
    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x5350);
    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x528c);
  }
  else {
    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x54d0);
    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x5410);
  }
  iVar1 = (*(code *)PTR_libssh2_session_init_ex_000b2038)
                    (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,
                     param_1);
  param_1[0x158] = iVar1;
  if (iVar1 == 0) {
    (*(code *)PTR_FUN_000b114c)(iVar3,PTR_DAT_000b1184 + -0x55b8);
    uVar2 = 2;
  }
  else {
    if ((*(char *)(iVar3 + 0x940) == '\0') ||
       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)) {
      iVar1 = *(int *)(iVar3 + 0xa68);
    }
    else {
      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);
      iVar1 = *(int *)(iVar3 + 0xa68);
    }
    if (iVar1 != 0) {
      iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);
      param_1[0x15f] = iVar1;
      if (iVar1 == 0) {
        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);
        return 2;
      }
      iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)
                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);
      if (iVar1 < 0) {
        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))
        ;
      }
    }
    param_1[0x131] = 1;
    uVar2 = FUN_0005a584(param_1,param_2);
  }
  return uVar2;
}


lui gp,0x6
addiu gp,gp,-0x16d8
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
or s0,a0,zero
lw s1,0x0(a0)
lw v0,0x154(s1)
beq v0,zero,0x0005a928
_or s2,a1,zero
or a1,zero,zero
or a0,s0,zero
lw t9,-0x7e84(gp)
bal 0x00046d14
_nop
lw gp,0x10(sp)
lw v0,0x284(s0)
lw v0,0x40(v0)
andi v0,v0,0x10
beq v0,zero,0x0005a944
_lw v0,-0x7aec(gp)
lw v0,-0x7aec(gp)
addiu v0,v0,0x54d0
sw v0,0x1ac(s0)
lw v0,-0x7aec(gp)
addiu v0,v0,0x5410
sw v0,0x1b4(s0)
or a3,s0,zero
lw a2,-0x7aec(gp)
addiu a2,a2,0x4f24
lw a1,-0x7aec(gp)
addiu a1,a1,0x4f5c
lw a0,-0x7aec(gp)
addiu a0,a0,0x4eec
lw t9,-0x70d8(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x0005a95c
_sw v0,0x560(s0)
lbu v1,0x940(s1)
bne v1,zero,0x0005a980
_li a2,0x1
lw v0,0xa68(s1)
beq v0,zero,0x0005a8ec
_lw t9,-0x7644(gp)
lw a0,0x560(s0)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x0005a9c0
_sw v0,0x57c(s0)
li a2,0x1
lw a1,0xa68(s1)
or a0,v0,zero
lw t9,-0x7500(gp)
jalr t9
_nop
lw gp,0x10(sp)
bltz v0,0x0005a9dc
_lw a1,-0x7f8c(gp)
li v0,0x1
sw v0,0x4c4(s0)
or a1,s2,zero
or a0,s0,zero
lw t9,-0x7a08(gp)
addiu t9,t9,-0x5a7c
bal 0x0005a584
_nop
lw gp,0x10(sp)
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7aec(gp)
addiu t9,t9,0x5010
bal 0x00055010
_nop
lw gp,0x10(sp)
b 0x0005a824
_or a1,zero,zero
addiu v0,v0,0x5350
sw v0,0x1ac(s0)
lw v0,-0x7aec(gp)
addiu v0,v0,0x528c
b 0x0005a864
_sw v0,0x1b4(s0)
lw a1,-0x7f8c(gp)
addiu a1,a1,-0x55b8
or a0,s1,zero
lw t9,-0x7fc4(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x0005a910
_li v0,0x2
li a1,0x2
or a0,v0,zero
lw t9,-0x7408(gp)
jalr t9
_nop
lw gp,0x10(sp)
bgez v0,0x0005a8a4
_lw a1,-0x7f8c(gp)
addiu a1,a1,-0x5594
or a0,s1,zero
lw t9,-0x7f64(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x0005a8a8
_lw v0,0xa68(s1)
lw a0,0x560(s0)
lw t9,-0x7474(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x0005a910
_li v0,0x2
lw a2,0xa68(s1)
addiu a1,a1,-0x5564
or a0,s1,zero
lw t9,-0x7f64(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x0005a8f0
_li v0,0x1
(translation_unit "undefined4 FUN_0005a7e8(int *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  if (*(int *)(iVar3 + 0x154) == 0) {\n    FUN_00055010();\n  }\n  FUN_00046d14(param_1,0);\n  if ((*(uint *)(param_1[0xa1] + 0x40) & 0x10) == 0) {\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x5350);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x528c);\n  }\n  else {\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x54d0);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x5410);\n  }\n  iVar1 = (*(code *)PTR_libssh2_session_init_ex_000b2038)\n                    (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                     param_1);\n  param_1[0x158] = iVar1;\n  if (iVar1 == 0) {\n    (*(code *)PTR_FUN_000b114c)(iVar3,PTR_DAT_000b1184 + -0x55b8);\n    uVar2 = 2;\n  }\n  else {\n    if ((*(char *)(iVar3 + 0x940) == '\0') ||\n       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)) {\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    else {\n      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    if (iVar1 != 0) {\n      iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);\n      param_1[0x15f] = iVar1;\n      if (iVar1 == 0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }\n      iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);\n      if (iVar1 < 0) {\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }\n    }\n    param_1[0x131] = 1;\n    uVar2 = FUN_0005a584(param_1,param_2);\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_0005a7e8(int *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  if (*(int *)(iVar3 + 0x154) == 0) {\n    FUN_00055010();\n  }\n  FUN_00046d14(param_1,0);\n  if ((*(uint *)(param_1[0xa1] + 0x40) & 0x10) == 0) {\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x5350);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x528c);\n  }\n  else {\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x54d0);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x5410);\n  }\n  iVar1 = (*(code *)PTR_libssh2_session_init_ex_000b2038)\n                    (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                     param_1);\n  param_1[0x158] = iVar1;\n  if (iVar1 == 0) {\n    (*(code *)PTR_FUN_000b114c)(iVar3,PTR_DAT_000b1184 + -0x55b8);\n    uVar2 = 2;\n  }\n  else {\n    if ((*(char *)(iVar3 + 0x940) == '\0') ||\n       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)) {\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    else {\n      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    if (iVar1 != 0) {\n      iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);\n      param_1[0x15f] = iVar1;\n      if (iVar1 == 0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }\n      iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);\n      if (iVar1 < 0) {\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }\n    }\n    param_1[0x131] = 1;\n    uVar2 = FUN_0005a584(param_1,param_2);\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0005a7e8(int *param_1,undefined4 param_2)" identifier (parameter_list "(int *param_1,undefined4 param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  if (*(int *)(iVar3 + 0x154) == 0) {\n    FUN_00055010();\n  }\n  FUN_00046d14(param_1,0);\n  if ((*(uint *)(param_1[0xa1] + 0x40) & 0x10) == 0) {\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x5350);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x528c);\n  }\n  else {\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x54d0);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x5410);\n  }\n  iVar1 = (*(code *)PTR_libssh2_session_init_ex_000b2038)\n                    (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                     param_1);\n  param_1[0x158] = iVar1;\n  if (iVar1 == 0) {\n    (*(code *)PTR_FUN_000b114c)(iVar3,PTR_DAT_000b1184 + -0x55b8);\n    uVar2 = 2;\n  }\n  else {\n    if ((*(char *)(iVar3 + 0x940) == '\0') ||\n       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)) {\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    else {\n      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    if (iVar1 != 0) {\n      iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);\n      param_1[0x15f] = iVar1;\n      if (iVar1 == 0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }\n      iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);\n      if (iVar1 < 0) {\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }\n    }\n    param_1[0x131] = 1;\n    uVar2 = FUN_0005a584(param_1,param_2);\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (*(int *)(iVar3 + 0x154) == 0) {\n    FUN_00055010();\n  }" if (parenthesized_expression "(*(int *)(iVar3 + 0x154) == 0)" ( (binary_expression "*(int *)(iVar3 + 0x154) == 0" (pointer_expression "*(int *)(iVar3 + 0x154)" * (cast_expression "(int *)(iVar3 + 0x154)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x154)" ( (binary_expression "iVar3 + 0x154" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    FUN_00055010();\n  }" { (expression_statement "FUN_00055010();" (call_expression "FUN_00055010()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_00046d14(param_1,0);" (call_expression "FUN_00046d14(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))) ;) (if_statement "if ((*(uint *)(param_1[0xa1] + 0x40) & 0x10) == 0) {\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x5350);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x528c);\n  }\n  else {\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x54d0);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x5410);\n  }" if (parenthesized_expression "((*(uint *)(param_1[0xa1] + 0x40) & 0x10) == 0)" ( (binary_expression "(*(uint *)(param_1[0xa1] + 0x40) & 0x10) == 0" (parenthesized_expression "(*(uint *)(param_1[0xa1] + 0x40) & 0x10)" ( (binary_expression "*(uint *)(param_1[0xa1] + 0x40) & 0x10" (pointer_expression "*(uint *)(param_1[0xa1] + 0x40)" * (cast_expression "(uint *)(param_1[0xa1] + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[0xa1] + 0x40)" ( (binary_expression "param_1[0xa1] + 0x40" (subscript_expression "param_1[0xa1]" identifier [ number_literal ]) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x5350);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x528c);\n  }" { (expression_statement "param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x5350);" (assignment_expression "param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x5350)" (subscript_expression "param_1[0x6b]" identifier [ number_literal ]) = (cast_expression "(int)(PTR_LAB_000b1624 + 0x5350)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(PTR_LAB_000b1624 + 0x5350)" ( (binary_expression "PTR_LAB_000b1624 + 0x5350" identifier + number_literal) )))) ;) (expression_statement "param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x528c);" (assignment_expression "param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x528c)" (subscript_expression "param_1[0x6d]" identifier [ number_literal ]) = (cast_expression "(int)(PTR_LAB_000b1624 + 0x528c)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(PTR_LAB_000b1624 + 0x528c)" ( (binary_expression "PTR_LAB_000b1624 + 0x528c" identifier + number_literal) )))) ;) }) (else_clause "else {\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x54d0);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x5410);\n  }" else (compound_statement "{\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x54d0);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x5410);\n  }" { (expression_statement "param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x54d0);" (assignment_expression "param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x54d0)" (subscript_expression "param_1[0x6b]" identifier [ number_literal ]) = (cast_expression "(int)(PTR_LAB_000b1624 + 0x54d0)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(PTR_LAB_000b1624 + 0x54d0)" ( (binary_expression "PTR_LAB_000b1624 + 0x54d0" identifier + number_literal) )))) ;) (expression_statement "param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x5410);" (assignment_expression "param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x5410)" (subscript_expression "param_1[0x6d]" identifier [ number_literal ]) = (cast_expression "(int)(PTR_LAB_000b1624 + 0x5410)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(PTR_LAB_000b1624 + 0x5410)" ( (binary_expression "PTR_LAB_000b1624 + 0x5410" identifier + number_literal) )))) ;) }))) (expression_statement "iVar1 = (*(code *)PTR_libssh2_session_init_ex_000b2038)\n                    (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                     param_1);" (assignment_expression "iVar1 = (*(code *)PTR_libssh2_session_init_ex_000b2038)\n                    (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                     param_1)" identifier = (call_expression "(*(code *)PTR_libssh2_session_init_ex_000b2038)\n                    (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                     param_1)" (parenthesized_expression "(*(code *)PTR_libssh2_session_init_ex_000b2038)" ( (pointer_expression "*(code *)PTR_libssh2_session_init_ex_000b2038" * (cast_expression "(code *)PTR_libssh2_session_init_ex_000b2038" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                     param_1)" ( (binary_expression "PTR_LAB_000b1624 + 0x4eec" identifier + number_literal) , (binary_expression "PTR_LAB_000b1624 + 0x4f5c" identifier + number_literal) , (binary_expression "PTR_LAB_000b1624 + 0x4f24" identifier + number_literal) , identifier )))) ;) (expression_statement "param_1[0x158] = iVar1;" (assignment_expression "param_1[0x158] = iVar1" (subscript_expression "param_1[0x158]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar1 == 0) {\n    (*(code *)PTR_FUN_000b114c)(iVar3,PTR_DAT_000b1184 + -0x55b8);\n    uVar2 = 2;\n  }\n  else {\n    if ((*(char *)(iVar3 + 0x940) == '\0') ||\n       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)) {\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    else {\n      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    if (iVar1 != 0) {\n      iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);\n      param_1[0x15f] = iVar1;\n      if (iVar1 == 0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }\n      iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);\n      if (iVar1 < 0) {\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }\n    }\n    param_1[0x131] = 1;\n    uVar2 = FUN_0005a584(param_1,param_2);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_FUN_000b114c)(iVar3,PTR_DAT_000b1184 + -0x55b8);\n    uVar2 = 2;\n  }" { (expression_statement "(*(code *)PTR_FUN_000b114c)(iVar3,PTR_DAT_000b1184 + -0x55b8);" (call_expression "(*(code *)PTR_FUN_000b114c)(iVar3,PTR_DAT_000b1184 + -0x55b8)" (parenthesized_expression "(*(code *)PTR_FUN_000b114c)" ( (pointer_expression "*(code *)PTR_FUN_000b114c" * (cast_expression "(code *)PTR_FUN_000b114c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,PTR_DAT_000b1184 + -0x55b8)" ( identifier , (binary_expression "PTR_DAT_000b1184 + -0x55b8" identifier + number_literal) ))) ;) (expression_statement "uVar2 = 2;" (assignment_expression "uVar2 = 2" identifier = number_literal) ;) }) (else_clause "else {\n    if ((*(char *)(iVar3 + 0x940) == '\0') ||\n       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)) {\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    else {\n      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    if (iVar1 != 0) {\n      iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);\n      param_1[0x15f] = iVar1;\n      if (iVar1 == 0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }\n      iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);\n      if (iVar1 < 0) {\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }\n    }\n    param_1[0x131] = 1;\n    uVar2 = FUN_0005a584(param_1,param_2);\n  }" else (compound_statement "{\n    if ((*(char *)(iVar3 + 0x940) == '\0') ||\n       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)) {\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    else {\n      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    if (iVar1 != 0) {\n      iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);\n      param_1[0x15f] = iVar1;\n      if (iVar1 == 0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }\n      iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);\n      if (iVar1 < 0) {\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }\n    }\n    param_1[0x131] = 1;\n    uVar2 = FUN_0005a584(param_1,param_2);\n  }" { (if_statement "if ((*(char *)(iVar3 + 0x940) == '\0') ||\n       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)) {\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    else {\n      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }" if (parenthesized_expression "((*(char *)(iVar3 + 0x940) == '\0') ||\n       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1))" ( (binary_expression "(*(char *)(iVar3 + 0x940) == '\0') ||\n       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)" (parenthesized_expression "(*(char *)(iVar3 + 0x940) == '\0')" ( (binary_expression "*(char *)(iVar3 + 0x940) == '\0'" (pointer_expression "*(char *)(iVar3 + 0x940)" * (cast_expression "(char *)(iVar3 + 0x940)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x940)" ( (binary_expression "iVar3 + 0x940" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)" ( (comma_expression "iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1" (assignment_expression "iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1)" identifier = (call_expression "(*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1)" (parenthesized_expression "(*(code *)PTR_libssh2_session_flag_000b1d08)" ( (pointer_expression "*(code *)PTR_libssh2_session_flag_000b1d08" * (cast_expression "(code *)PTR_libssh2_session_flag_000b1d08" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,2,1)" ( identifier , number_literal , number_literal )))) , (binary_expression "-1 < iVar1" number_literal < identifier)) ))) )) (compound_statement "{\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }" { (expression_statement "iVar1 = *(int *)(iVar3 + 0xa68);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0xa68)" identifier = (pointer_expression "*(int *)(iVar3 + 0xa68)" * (cast_expression "(int *)(iVar3 + 0xa68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xa68)" ( (binary_expression "iVar3 + 0xa68" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }" else (compound_statement "{\n      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }" { (expression_statement "(*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);" (call_expression "(*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594)" (parenthesized_expression "(*(code *)PTR_FUN_000b11ac)" ( (pointer_expression "*(code *)PTR_FUN_000b11ac" * (cast_expression "(code *)PTR_FUN_000b11ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,PTR_DAT_000b1184 + -0x5594)" ( identifier , (binary_expression "PTR_DAT_000b1184 + -0x5594" identifier + number_literal) ))) ;) (expression_statement "iVar1 = *(int *)(iVar3 + 0xa68);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0xa68)" identifier = (pointer_expression "*(int *)(iVar3 + 0xa68)" * (cast_expression "(int *)(iVar3 + 0xa68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xa68)" ( (binary_expression "iVar3 + 0xa68" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar1 != 0) {\n      iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);\n      param_1[0x15f] = iVar1;\n      if (iVar1 == 0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }\n      iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);\n      if (iVar1 < 0) {\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);\n      param_1[0x15f] = iVar1;\n      if (iVar1 == 0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }\n      iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);\n      if (iVar1 < 0) {\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }\n    }" { (expression_statement "iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);" (assignment_expression "iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158])" identifier = (call_expression "(*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158])" (parenthesized_expression "(*(code *)PTR_libssh2_knownhost_init_000b1acc)" ( (pointer_expression "*(code *)PTR_libssh2_knownhost_init_000b1acc" * (cast_expression "(code *)PTR_libssh2_knownhost_init_000b1acc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[0x158])" ( (subscript_expression "param_1[0x158]" identifier [ number_literal ]) )))) ;) (expression_statement "param_1[0x15f] = iVar1;" (assignment_expression "param_1[0x15f] = iVar1" (subscript_expression "param_1[0x15f]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar1 == 0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }" { (expression_statement "(*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);" (call_expression "(*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158])" (parenthesized_expression "(*(code *)PTR_libssh2_session_free_000b1c9c)" ( (pointer_expression "*(code *)PTR_libssh2_session_free_000b1c9c" * (cast_expression "(code *)PTR_libssh2_session_free_000b1c9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[0x158])" ( (subscript_expression "param_1[0x158]" identifier [ number_literal ]) ))) ;) (return_statement "return 2;" return number_literal ;) })) (expression_statement "iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);" (assignment_expression "iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1)" identifier = (call_expression "(*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1)" (parenthesized_expression "(*(code *)PTR_libssh2_knownhost_readfile_000b1c10)" ( (pointer_expression "*(code *)PTR_libssh2_knownhost_readfile_000b1c10" * (cast_expression "(code *)PTR_libssh2_knownhost_readfile_000b1c10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,*(undefined4 *)(iVar3 + 0xa68),1)" ( identifier , (pointer_expression "*(undefined4 *)(iVar3 + 0xa68)" * (cast_expression "(undefined4 *)(iVar3 + 0xa68)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xa68)" ( (binary_expression "iVar3 + 0xa68" identifier + number_literal) )))) , number_literal )))) ;) (if_statement "if (iVar1 < 0) {\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }" { (expression_statement "(*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;" (call_expression "(*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))" (parenthesized_expression "(*(code *)PTR_FUN_000b11ac)" ( (pointer_expression "*(code *)PTR_FUN_000b11ac" * (cast_expression "(code *)PTR_FUN_000b11ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))" ( identifier , (binary_expression "PTR_DAT_000b1184 + -0x5564" identifier + number_literal) , (pointer_expression "*(undefined4 *)(iVar3 + 0xa68)" * (cast_expression "(undefined4 *)(iVar3 + 0xa68)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xa68)" ( (binary_expression "iVar3 + 0xa68" identifier + number_literal) )))) ))) ;) })) })) (expression_statement "param_1[0x131] = 1;" (assignment_expression "param_1[0x131] = 1" (subscript_expression "param_1[0x131]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar2 = FUN_0005a584(param_1,param_2);" (assignment_expression "uVar2 = FUN_0005a584(param_1,param_2)" identifier = (call_expression "FUN_0005a584(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nCURLcode ssh_connect(connectdata *conn,_Bool *done)\n\n{\n  LIBSSH2_SESSION *pLVar1;\n  char *pcVar2;\n  LIBSSH2_KNOWNHOSTS *pLVar3;\n  int iVar4;\n  CURLcode CVar5;\n  Curl_easy *pCVar6;\n  \n  pCVar6 = conn->data;\n  if ((pCVar6->req).protop == (void *)0x0) {\n    ssh_setup_connection(conn);\n  }\n  Curl_conncontrol(conn,0);\n  if ((conn->handler->protocol & 0x10) == 0) {\n    conn->recv[0] = (Curl_recv *)(PTR_LAB_000b1624 + 0x5350);\n    conn->send[0] = (Curl_send *)(PTR_LAB_000b1624 + 0x528c);\n  }\n  else {\n    conn->recv[0] = (Curl_recv *)(PTR_LAB_000b1624 + 0x54d0);\n    conn->send[0] = (Curl_send *)(PTR_LAB_000b1624 + 0x5410);\n  }\n  pLVar1 = (LIBSSH2_SESSION *)\n           (*(code *)PTR_libssh2_session_init_ex_000b2038)\n                     (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                      conn);\n  (conn->proto).sshc.ssh_session = pLVar1;\n  if (pLVar1 == (LIBSSH2_SESSION *)0x0) {\n    (*(code *)PTR_Curl_failf_000b114c)(pCVar6,PTR_DAT_000b1184 + -0x55b8);\n    CVar5 = CURLE_FAILED_INIT;\n  }\n  else {\n    if (((pCVar6->set).ssh_compression == false) ||\n       (iVar4 = (*(code *)PTR_libssh2_session_flag_000b1d08)(pLVar1,2,1), -1 < iVar4)) {\n      pcVar2 = (pCVar6->set).str[0x38];\n    }\n    else {\n      (*(code *)PTR_Curl_infof_000b11ac)(pCVar6,PTR_DAT_000b1184 + -0x5594);\n      pcVar2 = (pCVar6->set).str[0x38];\n    }\n    if (pcVar2 != (char *)0x0) {\n      pLVar3 = (LIBSSH2_KNOWNHOSTS *)\n               (*(code *)PTR_libssh2_knownhost_init_000b1acc)((conn->proto).sshc.ssh_session);\n      (conn->proto).sshc.kh = pLVar3;\n      if (pLVar3 == (LIBSSH2_KNOWNHOSTS *)0x0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)((conn->proto).sshc.ssh_session);\n        return CURLE_FAILED_INIT;\n      }\n      iVar4 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)(pLVar3,(pCVar6->set).str[0x38],1);\n      if (iVar4 < 0) {\n        (*(code *)PTR_Curl_infof_000b11ac)\n                  (pCVar6,PTR_DAT_000b1184 + -0x5564,(pCVar6->set).str[0x38]);\n      }\n    }\n    (conn->proto).sshc.state = SSH_INIT;\n    CVar5 = ssh_multi_statemach(conn,done);\n  }\n  return CVar5;\n}\n\n" comment (function_definition "CURLcode ssh_connect(connectdata *conn,_Bool *done)\n\n{\n  LIBSSH2_SESSION *pLVar1;\n  char *pcVar2;\n  LIBSSH2_KNOWNHOSTS *pLVar3;\n  int iVar4;\n  CURLcode CVar5;\n  Curl_easy *pCVar6;\n  \n  pCVar6 = conn->data;\n  if ((pCVar6->req).protop == (void *)0x0) {\n    ssh_setup_connection(conn);\n  }\n  Curl_conncontrol(conn,0);\n  if ((conn->handler->protocol & 0x10) == 0) {\n    conn->recv[0] = (Curl_recv *)(PTR_LAB_000b1624 + 0x5350);\n    conn->send[0] = (Curl_send *)(PTR_LAB_000b1624 + 0x528c);\n  }\n  else {\n    conn->recv[0] = (Curl_recv *)(PTR_LAB_000b1624 + 0x54d0);\n    conn->send[0] = (Curl_send *)(PTR_LAB_000b1624 + 0x5410);\n  }\n  pLVar1 = (LIBSSH2_SESSION *)\n           (*(code *)PTR_libssh2_session_init_ex_000b2038)\n                     (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                      conn);\n  (conn->proto).sshc.ssh_session = pLVar1;\n  if (pLVar1 == (LIBSSH2_SESSION *)0x0) {\n    (*(code *)PTR_Curl_failf_000b114c)(pCVar6,PTR_DAT_000b1184 + -0x55b8);\n    CVar5 = CURLE_FAILED_INIT;\n  }\n  else {\n    if (((pCVar6->set).ssh_compression == false) ||\n       (iVar4 = (*(code *)PTR_libssh2_session_flag_000b1d08)(pLVar1,2,1), -1 < iVar4)) {\n      pcVar2 = (pCVar6->set).str[0x38];\n    }\n    else {\n      (*(code *)PTR_Curl_infof_000b11ac)(pCVar6,PTR_DAT_000b1184 + -0x5594);\n      pcVar2 = (pCVar6->set).str[0x38];\n    }\n    if (pcVar2 != (char *)0x0) {\n      pLVar3 = (LIBSSH2_KNOWNHOSTS *)\n               (*(code *)PTR_libssh2_knownhost_init_000b1acc)((conn->proto).sshc.ssh_session);\n      (conn->proto).sshc.kh = pLVar3;\n      if (pLVar3 == (LIBSSH2_KNOWNHOSTS *)0x0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)((conn->proto).sshc.ssh_session);\n        return CURLE_FAILED_INIT;\n      }\n      iVar4 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)(pLVar3,(pCVar6->set).str[0x38],1);\n      if (iVar4 < 0) {\n        (*(code *)PTR_Curl_infof_000b11ac)\n                  (pCVar6,PTR_DAT_000b1184 + -0x5564,(pCVar6->set).str[0x38]);\n      }\n    }\n    (conn->proto).sshc.state = SSH_INIT;\n    CVar5 = ssh_multi_statemach(conn,done);\n  }\n  return CVar5;\n}" type_identifier (function_declarator "ssh_connect(connectdata *conn,_Bool *done)" identifier (parameter_list "(connectdata *conn,_Bool *done)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) , (parameter_declaration "_Bool *done" type_identifier (pointer_declarator "*done" * identifier)) ))) (compound_statement "{\n  LIBSSH2_SESSION *pLVar1;\n  char *pcVar2;\n  LIBSSH2_KNOWNHOSTS *pLVar3;\n  int iVar4;\n  CURLcode CVar5;\n  Curl_easy *pCVar6;\n  \n  pCVar6 = conn->data;\n  if ((pCVar6->req).protop == (void *)0x0) {\n    ssh_setup_connection(conn);\n  }\n  Curl_conncontrol(conn,0);\n  if ((conn->handler->protocol & 0x10) == 0) {\n    conn->recv[0] = (Curl_recv *)(PTR_LAB_000b1624 + 0x5350);\n    conn->send[0] = (Curl_send *)(PTR_LAB_000b1624 + 0x528c);\n  }\n  else {\n    conn->recv[0] = (Curl_recv *)(PTR_LAB_000b1624 + 0x54d0);\n    conn->send[0] = (Curl_send *)(PTR_LAB_000b1624 + 0x5410);\n  }\n  pLVar1 = (LIBSSH2_SESSION *)\n           (*(code *)PTR_libssh2_session_init_ex_000b2038)\n                     (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                      conn);\n  (conn->proto).sshc.ssh_session = pLVar1;\n  if (pLVar1 == (LIBSSH2_SESSION *)0x0) {\n    (*(code *)PTR_Curl_failf_000b114c)(pCVar6,PTR_DAT_000b1184 + -0x55b8);\n    CVar5 = CURLE_FAILED_INIT;\n  }\n  else {\n    if (((pCVar6->set).ssh_compression == false) ||\n       (iVar4 = (*(code *)PTR_libssh2_session_flag_000b1d08)(pLVar1,2,1), -1 < iVar4)) {\n      pcVar2 = (pCVar6->set).str[0x38];\n    }\n    else {\n      (*(code *)PTR_Curl_infof_000b11ac)(pCVar6,PTR_DAT_000b1184 + -0x5594);\n      pcVar2 = (pCVar6->set).str[0x38];\n    }\n    if (pcVar2 != (char *)0x0) {\n      pLVar3 = (LIBSSH2_KNOWNHOSTS *)\n               (*(code *)PTR_libssh2_knownhost_init_000b1acc)((conn->proto).sshc.ssh_session);\n      (conn->proto).sshc.kh = pLVar3;\n      if (pLVar3 == (LIBSSH2_KNOWNHOSTS *)0x0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)((conn->proto).sshc.ssh_session);\n        return CURLE_FAILED_INIT;\n      }\n      iVar4 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)(pLVar3,(pCVar6->set).str[0x38],1);\n      if (iVar4 < 0) {\n        (*(code *)PTR_Curl_infof_000b11ac)\n                  (pCVar6,PTR_DAT_000b1184 + -0x5564,(pCVar6->set).str[0x38]);\n      }\n    }\n    (conn->proto).sshc.state = SSH_INIT;\n    CVar5 = ssh_multi_statemach(conn,done);\n  }\n  return CVar5;\n}" { (declaration "LIBSSH2_SESSION *pLVar1;" type_identifier (pointer_declarator "*pLVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "LIBSSH2_KNOWNHOSTS *pLVar3;" type_identifier (pointer_declarator "*pLVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "CURLcode CVar5;" type_identifier identifier ;) (declaration "Curl_easy *pCVar6;" type_identifier (pointer_declarator "*pCVar6" * identifier) ;) (expression_statement "pCVar6 = conn->data;" (assignment_expression "pCVar6 = conn->data" identifier = (field_expression "conn->data" identifier -> field_identifier)) ;) (if_statement "if ((pCVar6->req).protop == (void *)0x0) {\n    ssh_setup_connection(conn);\n  }" if (parenthesized_expression "((pCVar6->req).protop == (void *)0x0)" ( (binary_expression "(pCVar6->req).protop == (void *)0x0" (field_expression "(pCVar6->req).protop" (parenthesized_expression "(pCVar6->req)" ( (field_expression "pCVar6->req" identifier -> field_identifier) )) . field_identifier) == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    ssh_setup_connection(conn);\n  }" { (expression_statement "ssh_setup_connection(conn);" (call_expression "ssh_setup_connection(conn)" identifier (argument_list "(conn)" ( identifier ))) ;) })) (expression_statement "Curl_conncontrol(conn,0);" (call_expression "Curl_conncontrol(conn,0)" identifier (argument_list "(conn,0)" ( identifier , number_literal ))) ;) (if_statement "if ((conn->handler->protocol & 0x10) == 0) {\n    conn->recv[0] = (Curl_recv *)(PTR_LAB_000b1624 + 0x5350);\n    conn->send[0] = (Curl_send *)(PTR_LAB_000b1624 + 0x528c);\n  }\n  else {\n    conn->recv[0] = (Curl_recv *)(PTR_LAB_000b1624 + 0x54d0);\n    conn->send[0] = (Curl_send *)(PTR_LAB_000b1624 + 0x5410);\n  }" if (parenthesized_expression "((conn->handler->protocol & 0x10) == 0)" ( (binary_expression "(conn->handler->protocol & 0x10) == 0" (parenthesized_expression "(conn->handler->protocol & 0x10)" ( (binary_expression "conn->handler->protocol & 0x10" (field_expression "conn->handler->protocol" (field_expression "conn->handler" identifier -> field_identifier) -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    conn->recv[0] = (Curl_recv *)(PTR_LAB_000b1624 + 0x5350);\n    conn->send[0] = (Curl_send *)(PTR_LAB_000b1624 + 0x528c);\n  }" { (expression_statement "conn->recv[0] = (Curl_recv *)(PTR_LAB_000b1624 + 0x5350);" (assignment_expression "conn->recv[0] = (Curl_recv *)(PTR_LAB_000b1624 + 0x5350)" (subscript_expression "conn->recv[0]" (field_expression "conn->recv" identifier -> field_identifier) [ number_literal ]) = (cast_expression "(Curl_recv *)(PTR_LAB_000b1624 + 0x5350)" ( (type_descriptor "Curl_recv *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000b1624 + 0x5350)" ( (binary_expression "PTR_LAB_000b1624 + 0x5350" identifier + number_literal) )))) ;) (expression_statement "conn->send[0] = (Curl_send *)(PTR_LAB_000b1624 + 0x528c);" (assignment_expression "conn->send[0] = (Curl_send *)(PTR_LAB_000b1624 + 0x528c)" (subscript_expression "conn->send[0]" (field_expression "conn->send" identifier -> field_identifier) [ number_literal ]) = (cast_expression "(Curl_send *)(PTR_LAB_000b1624 + 0x528c)" ( (type_descriptor "Curl_send *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000b1624 + 0x528c)" ( (binary_expression "PTR_LAB_000b1624 + 0x528c" identifier + number_literal) )))) ;) }) (else_clause "else {\n    conn->recv[0] = (Curl_recv *)(PTR_LAB_000b1624 + 0x54d0);\n    conn->send[0] = (Curl_send *)(PTR_LAB_000b1624 + 0x5410);\n  }" else (compound_statement "{\n    conn->recv[0] = (Curl_recv *)(PTR_LAB_000b1624 + 0x54d0);\n    conn->send[0] = (Curl_send *)(PTR_LAB_000b1624 + 0x5410);\n  }" { (expression_statement "conn->recv[0] = (Curl_recv *)(PTR_LAB_000b1624 + 0x54d0);" (assignment_expression "conn->recv[0] = (Curl_recv *)(PTR_LAB_000b1624 + 0x54d0)" (subscript_expression "conn->recv[0]" (field_expression "conn->recv" identifier -> field_identifier) [ number_literal ]) = (cast_expression "(Curl_recv *)(PTR_LAB_000b1624 + 0x54d0)" ( (type_descriptor "Curl_recv *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000b1624 + 0x54d0)" ( (binary_expression "PTR_LAB_000b1624 + 0x54d0" identifier + number_literal) )))) ;) (expression_statement "conn->send[0] = (Curl_send *)(PTR_LAB_000b1624 + 0x5410);" (assignment_expression "conn->send[0] = (Curl_send *)(PTR_LAB_000b1624 + 0x5410)" (subscript_expression "conn->send[0]" (field_expression "conn->send" identifier -> field_identifier) [ number_literal ]) = (cast_expression "(Curl_send *)(PTR_LAB_000b1624 + 0x5410)" ( (type_descriptor "Curl_send *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000b1624 + 0x5410)" ( (binary_expression "PTR_LAB_000b1624 + 0x5410" identifier + number_literal) )))) ;) }))) (expression_statement "pLVar1 = (LIBSSH2_SESSION *)\n           (*(code *)PTR_libssh2_session_init_ex_000b2038)\n                     (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                      conn);" (assignment_expression "pLVar1 = (LIBSSH2_SESSION *)\n           (*(code *)PTR_libssh2_session_init_ex_000b2038)\n                     (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                      conn)" identifier = (cast_expression "(LIBSSH2_SESSION *)\n           (*(code *)PTR_libssh2_session_init_ex_000b2038)\n                     (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                      conn)" ( (type_descriptor "LIBSSH2_SESSION *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_libssh2_session_init_ex_000b2038)\n                     (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                      conn)" (parenthesized_expression "(*(code *)PTR_libssh2_session_init_ex_000b2038)" ( (pointer_expression "*(code *)PTR_libssh2_session_init_ex_000b2038" * (cast_expression "(code *)PTR_libssh2_session_init_ex_000b2038" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                      conn)" ( (binary_expression "PTR_LAB_000b1624 + 0x4eec" identifier + number_literal) , (binary_expression "PTR_LAB_000b1624 + 0x4f5c" identifier + number_literal) , (binary_expression "PTR_LAB_000b1624 + 0x4f24" identifier + number_literal) , identifier ))))) ;) (expression_statement "(conn->proto).sshc.ssh_session = pLVar1;" (assignment_expression "(conn->proto).sshc.ssh_session = pLVar1" (field_expression "(conn->proto).sshc.ssh_session" (field_expression "(conn->proto).sshc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (if_statement "if (pLVar1 == (LIBSSH2_SESSION *)0x0) {\n    (*(code *)PTR_Curl_failf_000b114c)(pCVar6,PTR_DAT_000b1184 + -0x55b8);\n    CVar5 = CURLE_FAILED_INIT;\n  }\n  else {\n    if (((pCVar6->set).ssh_compression == false) ||\n       (iVar4 = (*(code *)PTR_libssh2_session_flag_000b1d08)(pLVar1,2,1), -1 < iVar4)) {\n      pcVar2 = (pCVar6->set).str[0x38];\n    }\n    else {\n      (*(code *)PTR_Curl_infof_000b11ac)(pCVar6,PTR_DAT_000b1184 + -0x5594);\n      pcVar2 = (pCVar6->set).str[0x38];\n    }\n    if (pcVar2 != (char *)0x0) {\n      pLVar3 = (LIBSSH2_KNOWNHOSTS *)\n               (*(code *)PTR_libssh2_knownhost_init_000b1acc)((conn->proto).sshc.ssh_session);\n      (conn->proto).sshc.kh = pLVar3;\n      if (pLVar3 == (LIBSSH2_KNOWNHOSTS *)0x0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)((conn->proto).sshc.ssh_session);\n        return CURLE_FAILED_INIT;\n      }\n      iVar4 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)(pLVar3,(pCVar6->set).str[0x38],1);\n      if (iVar4 < 0) {\n        (*(code *)PTR_Curl_infof_000b11ac)\n                  (pCVar6,PTR_DAT_000b1184 + -0x5564,(pCVar6->set).str[0x38]);\n      }\n    }\n    (conn->proto).sshc.state = SSH_INIT;\n    CVar5 = ssh_multi_statemach(conn,done);\n  }" if (parenthesized_expression "(pLVar1 == (LIBSSH2_SESSION *)0x0)" ( (binary_expression "pLVar1 == (LIBSSH2_SESSION *)0x0" identifier == (cast_expression "(LIBSSH2_SESSION *)0x0" ( (type_descriptor "LIBSSH2_SESSION *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR_Curl_failf_000b114c)(pCVar6,PTR_DAT_000b1184 + -0x55b8);\n    CVar5 = CURLE_FAILED_INIT;\n  }" { (expression_statement "(*(code *)PTR_Curl_failf_000b114c)(pCVar6,PTR_DAT_000b1184 + -0x55b8);" (call_expression "(*(code *)PTR_Curl_failf_000b114c)(pCVar6,PTR_DAT_000b1184 + -0x55b8)" (parenthesized_expression "(*(code *)PTR_Curl_failf_000b114c)" ( (pointer_expression "*(code *)PTR_Curl_failf_000b114c" * (cast_expression "(code *)PTR_Curl_failf_000b114c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pCVar6,PTR_DAT_000b1184 + -0x55b8)" ( identifier , (binary_expression "PTR_DAT_000b1184 + -0x55b8" identifier + number_literal) ))) ;) (expression_statement "CVar5 = CURLE_FAILED_INIT;" (assignment_expression "CVar5 = CURLE_FAILED_INIT" identifier = identifier) ;) }) (else_clause "else {\n    if (((pCVar6->set).ssh_compression == false) ||\n       (iVar4 = (*(code *)PTR_libssh2_session_flag_000b1d08)(pLVar1,2,1), -1 < iVar4)) {\n      pcVar2 = (pCVar6->set).str[0x38];\n    }\n    else {\n      (*(code *)PTR_Curl_infof_000b11ac)(pCVar6,PTR_DAT_000b1184 + -0x5594);\n      pcVar2 = (pCVar6->set).str[0x38];\n    }\n    if (pcVar2 != (char *)0x0) {\n      pLVar3 = (LIBSSH2_KNOWNHOSTS *)\n               (*(code *)PTR_libssh2_knownhost_init_000b1acc)((conn->proto).sshc.ssh_session);\n      (conn->proto).sshc.kh = pLVar3;\n      if (pLVar3 == (LIBSSH2_KNOWNHOSTS *)0x0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)((conn->proto).sshc.ssh_session);\n        return CURLE_FAILED_INIT;\n      }\n      iVar4 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)(pLVar3,(pCVar6->set).str[0x38],1);\n      if (iVar4 < 0) {\n        (*(code *)PTR_Curl_infof_000b11ac)\n                  (pCVar6,PTR_DAT_000b1184 + -0x5564,(pCVar6->set).str[0x38]);\n      }\n    }\n    (conn->proto).sshc.state = SSH_INIT;\n    CVar5 = ssh_multi_statemach(conn,done);\n  }" else (compound_statement "{\n    if (((pCVar6->set).ssh_compression == false) ||\n       (iVar4 = (*(code *)PTR_libssh2_session_flag_000b1d08)(pLVar1,2,1), -1 < iVar4)) {\n      pcVar2 = (pCVar6->set).str[0x38];\n    }\n    else {\n      (*(code *)PTR_Curl_infof_000b11ac)(pCVar6,PTR_DAT_000b1184 + -0x5594);\n      pcVar2 = (pCVar6->set).str[0x38];\n    }\n    if (pcVar2 != (char *)0x0) {\n      pLVar3 = (LIBSSH2_KNOWNHOSTS *)\n               (*(code *)PTR_libssh2_knownhost_init_000b1acc)((conn->proto).sshc.ssh_session);\n      (conn->proto).sshc.kh = pLVar3;\n      if (pLVar3 == (LIBSSH2_KNOWNHOSTS *)0x0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)((conn->proto).sshc.ssh_session);\n        return CURLE_FAILED_INIT;\n      }\n      iVar4 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)(pLVar3,(pCVar6->set).str[0x38],1);\n      if (iVar4 < 0) {\n        (*(code *)PTR_Curl_infof_000b11ac)\n                  (pCVar6,PTR_DAT_000b1184 + -0x5564,(pCVar6->set).str[0x38]);\n      }\n    }\n    (conn->proto).sshc.state = SSH_INIT;\n    CVar5 = ssh_multi_statemach(conn,done);\n  }" { (if_statement "if (((pCVar6->set).ssh_compression == false) ||\n       (iVar4 = (*(code *)PTR_libssh2_session_flag_000b1d08)(pLVar1,2,1), -1 < iVar4)) {\n      pcVar2 = (pCVar6->set).str[0x38];\n    }\n    else {\n      (*(code *)PTR_Curl_infof_000b11ac)(pCVar6,PTR_DAT_000b1184 + -0x5594);\n      pcVar2 = (pCVar6->set).str[0x38];\n    }" if (parenthesized_expression "(((pCVar6->set).ssh_compression == false) ||\n       (iVar4 = (*(code *)PTR_libssh2_session_flag_000b1d08)(pLVar1,2,1), -1 < iVar4))" ( (binary_expression "((pCVar6->set).ssh_compression == false) ||\n       (iVar4 = (*(code *)PTR_libssh2_session_flag_000b1d08)(pLVar1,2,1), -1 < iVar4)" (parenthesized_expression "((pCVar6->set).ssh_compression == false)" ( (binary_expression "(pCVar6->set).ssh_compression == false" (field_expression "(pCVar6->set).ssh_compression" (parenthesized_expression "(pCVar6->set)" ( (field_expression "pCVar6->set" identifier -> field_identifier) )) . field_identifier) == false) )) || (parenthesized_expression "(iVar4 = (*(code *)PTR_libssh2_session_flag_000b1d08)(pLVar1,2,1), -1 < iVar4)" ( (comma_expression "iVar4 = (*(code *)PTR_libssh2_session_flag_000b1d08)(pLVar1,2,1), -1 < iVar4" (assignment_expression "iVar4 = (*(code *)PTR_libssh2_session_flag_000b1d08)(pLVar1,2,1)" identifier = (call_expression "(*(code *)PTR_libssh2_session_flag_000b1d08)(pLVar1,2,1)" (parenthesized_expression "(*(code *)PTR_libssh2_session_flag_000b1d08)" ( (pointer_expression "*(code *)PTR_libssh2_session_flag_000b1d08" * (cast_expression "(code *)PTR_libssh2_session_flag_000b1d08" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pLVar1,2,1)" ( identifier , number_literal , number_literal )))) , (binary_expression "-1 < iVar4" number_literal < identifier)) ))) )) (compound_statement "{\n      pcVar2 = (pCVar6->set).str[0x38];\n    }" { (expression_statement "pcVar2 = (pCVar6->set).str[0x38];" (assignment_expression "pcVar2 = (pCVar6->set).str[0x38]" identifier = (subscript_expression "(pCVar6->set).str[0x38]" (field_expression "(pCVar6->set).str" (parenthesized_expression "(pCVar6->set)" ( (field_expression "pCVar6->set" identifier -> field_identifier) )) . field_identifier) [ number_literal ])) ;) }) (else_clause "else {\n      (*(code *)PTR_Curl_infof_000b11ac)(pCVar6,PTR_DAT_000b1184 + -0x5594);\n      pcVar2 = (pCVar6->set).str[0x38];\n    }" else (compound_statement "{\n      (*(code *)PTR_Curl_infof_000b11ac)(pCVar6,PTR_DAT_000b1184 + -0x5594);\n      pcVar2 = (pCVar6->set).str[0x38];\n    }" { (expression_statement "(*(code *)PTR_Curl_infof_000b11ac)(pCVar6,PTR_DAT_000b1184 + -0x5594);" (call_expression "(*(code *)PTR_Curl_infof_000b11ac)(pCVar6,PTR_DAT_000b1184 + -0x5594)" (parenthesized_expression "(*(code *)PTR_Curl_infof_000b11ac)" ( (pointer_expression "*(code *)PTR_Curl_infof_000b11ac" * (cast_expression "(code *)PTR_Curl_infof_000b11ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pCVar6,PTR_DAT_000b1184 + -0x5594)" ( identifier , (binary_expression "PTR_DAT_000b1184 + -0x5594" identifier + number_literal) ))) ;) (expression_statement "pcVar2 = (pCVar6->set).str[0x38];" (assignment_expression "pcVar2 = (pCVar6->set).str[0x38]" identifier = (subscript_expression "(pCVar6->set).str[0x38]" (field_expression "(pCVar6->set).str" (parenthesized_expression "(pCVar6->set)" ( (field_expression "pCVar6->set" identifier -> field_identifier) )) . field_identifier) [ number_literal ])) ;) }))) (if_statement "if (pcVar2 != (char *)0x0) {\n      pLVar3 = (LIBSSH2_KNOWNHOSTS *)\n               (*(code *)PTR_libssh2_knownhost_init_000b1acc)((conn->proto).sshc.ssh_session);\n      (conn->proto).sshc.kh = pLVar3;\n      if (pLVar3 == (LIBSSH2_KNOWNHOSTS *)0x0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)((conn->proto).sshc.ssh_session);\n        return CURLE_FAILED_INIT;\n      }\n      iVar4 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)(pLVar3,(pCVar6->set).str[0x38],1);\n      if (iVar4 < 0) {\n        (*(code *)PTR_Curl_infof_000b11ac)\n                  (pCVar6,PTR_DAT_000b1184 + -0x5564,(pCVar6->set).str[0x38]);\n      }\n    }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pLVar3 = (LIBSSH2_KNOWNHOSTS *)\n               (*(code *)PTR_libssh2_knownhost_init_000b1acc)((conn->proto).sshc.ssh_session);\n      (conn->proto).sshc.kh = pLVar3;\n      if (pLVar3 == (LIBSSH2_KNOWNHOSTS *)0x0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)((conn->proto).sshc.ssh_session);\n        return CURLE_FAILED_INIT;\n      }\n      iVar4 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)(pLVar3,(pCVar6->set).str[0x38],1);\n      if (iVar4 < 0) {\n        (*(code *)PTR_Curl_infof_000b11ac)\n                  (pCVar6,PTR_DAT_000b1184 + -0x5564,(pCVar6->set).str[0x38]);\n      }\n    }" { (expression_statement "pLVar3 = (LIBSSH2_KNOWNHOSTS *)\n               (*(code *)PTR_libssh2_knownhost_init_000b1acc)((conn->proto).sshc.ssh_session);" (assignment_expression "pLVar3 = (LIBSSH2_KNOWNHOSTS *)\n               (*(code *)PTR_libssh2_knownhost_init_000b1acc)((conn->proto).sshc.ssh_session)" identifier = (cast_expression "(LIBSSH2_KNOWNHOSTS *)\n               (*(code *)PTR_libssh2_knownhost_init_000b1acc)((conn->proto).sshc.ssh_session)" ( (type_descriptor "LIBSSH2_KNOWNHOSTS *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_libssh2_knownhost_init_000b1acc)((conn->proto).sshc.ssh_session)" (parenthesized_expression "(*(code *)PTR_libssh2_knownhost_init_000b1acc)" ( (pointer_expression "*(code *)PTR_libssh2_knownhost_init_000b1acc" * (cast_expression "(code *)PTR_libssh2_knownhost_init_000b1acc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((conn->proto).sshc.ssh_session)" ( (field_expression "(conn->proto).sshc.ssh_session" (field_expression "(conn->proto).sshc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) ))))) ;) (expression_statement "(conn->proto).sshc.kh = pLVar3;" (assignment_expression "(conn->proto).sshc.kh = pLVar3" (field_expression "(conn->proto).sshc.kh" (field_expression "(conn->proto).sshc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (if_statement "if (pLVar3 == (LIBSSH2_KNOWNHOSTS *)0x0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)((conn->proto).sshc.ssh_session);\n        return CURLE_FAILED_INIT;\n      }" if (parenthesized_expression "(pLVar3 == (LIBSSH2_KNOWNHOSTS *)0x0)" ( (binary_expression "pLVar3 == (LIBSSH2_KNOWNHOSTS *)0x0" identifier == (cast_expression "(LIBSSH2_KNOWNHOSTS *)0x0" ( (type_descriptor "LIBSSH2_KNOWNHOSTS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (*(code *)PTR_libssh2_session_free_000b1c9c)((conn->proto).sshc.ssh_session);\n        return CURLE_FAILED_INIT;\n      }" { (expression_statement "(*(code *)PTR_libssh2_session_free_000b1c9c)((conn->proto).sshc.ssh_session);" (call_expression "(*(code *)PTR_libssh2_session_free_000b1c9c)((conn->proto).sshc.ssh_session)" (parenthesized_expression "(*(code *)PTR_libssh2_session_free_000b1c9c)" ( (pointer_expression "*(code *)PTR_libssh2_session_free_000b1c9c" * (cast_expression "(code *)PTR_libssh2_session_free_000b1c9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((conn->proto).sshc.ssh_session)" ( (field_expression "(conn->proto).sshc.ssh_session" (field_expression "(conn->proto).sshc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) ))) ;) (return_statement "return CURLE_FAILED_INIT;" return identifier ;) })) (expression_statement "iVar4 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)(pLVar3,(pCVar6->set).str[0x38],1);" (assignment_expression "iVar4 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)(pLVar3,(pCVar6->set).str[0x38],1)" identifier = (call_expression "(*(code *)PTR_libssh2_knownhost_readfile_000b1c10)(pLVar3,(pCVar6->set).str[0x38],1)" (parenthesized_expression "(*(code *)PTR_libssh2_knownhost_readfile_000b1c10)" ( (pointer_expression "*(code *)PTR_libssh2_knownhost_readfile_000b1c10" * (cast_expression "(code *)PTR_libssh2_knownhost_readfile_000b1c10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pLVar3,(pCVar6->set).str[0x38],1)" ( identifier , (subscript_expression "(pCVar6->set).str[0x38]" (field_expression "(pCVar6->set).str" (parenthesized_expression "(pCVar6->set)" ( (field_expression "pCVar6->set" identifier -> field_identifier) )) . field_identifier) [ number_literal ]) , number_literal )))) ;) (if_statement "if (iVar4 < 0) {\n        (*(code *)PTR_Curl_infof_000b11ac)\n                  (pCVar6,PTR_DAT_000b1184 + -0x5564,(pCVar6->set).str[0x38]);\n      }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n        (*(code *)PTR_Curl_infof_000b11ac)\n                  (pCVar6,PTR_DAT_000b1184 + -0x5564,(pCVar6->set).str[0x38]);\n      }" { (expression_statement "(*(code *)PTR_Curl_infof_000b11ac)\n                  (pCVar6,PTR_DAT_000b1184 + -0x5564,(pCVar6->set).str[0x38]);" (call_expression "(*(code *)PTR_Curl_infof_000b11ac)\n                  (pCVar6,PTR_DAT_000b1184 + -0x5564,(pCVar6->set).str[0x38])" (parenthesized_expression "(*(code *)PTR_Curl_infof_000b11ac)" ( (pointer_expression "*(code *)PTR_Curl_infof_000b11ac" * (cast_expression "(code *)PTR_Curl_infof_000b11ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pCVar6,PTR_DAT_000b1184 + -0x5564,(pCVar6->set).str[0x38])" ( identifier , (binary_expression "PTR_DAT_000b1184 + -0x5564" identifier + number_literal) , (subscript_expression "(pCVar6->set).str[0x38]" (field_expression "(pCVar6->set).str" (parenthesized_expression "(pCVar6->set)" ( (field_expression "pCVar6->set" identifier -> field_identifier) )) . field_identifier) [ number_literal ]) ))) ;) })) })) (expression_statement "(conn->proto).sshc.state = SSH_INIT;" (assignment_expression "(conn->proto).sshc.state = SSH_INIT" (field_expression "(conn->proto).sshc.state" (field_expression "(conn->proto).sshc" (parenthesized_expression "(conn->proto)" ( (field_expression "conn->proto" identifier -> field_identifier) )) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "CVar5 = ssh_multi_statemach(conn,done);" (assignment_expression "CVar5 = ssh_multi_statemach(conn,done)" identifier = (call_expression "ssh_multi_statemach(conn,done)" identifier (argument_list "(conn,done)" ( identifier , identifier )))) ;) }))) (return_statement "return CVar5;" return identifier ;) })))
(translation_unit "undefined4 FUN_0005a7e8(int *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  if (*(int *)(iVar3 + 0x154) == 0) {\n    FUN_00055010();\n  }\n  FUN_00046d14(param_1,0);\n  if ((*(uint *)(param_1[0xa1] + 0x40) & 0x10) == 0) {\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x5350);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x528c);\n  }\n  else {\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x54d0);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x5410);\n  }\n  iVar1 = (*(code *)PTR_libssh2_session_init_ex_000b2038)\n                    (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                     param_1);\n  param_1[0x158] = iVar1;\n  if (iVar1 == 0) {\n    (*(code *)PTR_FUN_000b114c)(iVar3,PTR_DAT_000b1184 + -0x55b8);\n    uVar2 = 2;\n  }\n  else {\n    if ((*(char *)(iVar3 + 0x940) == '\0') ||\n       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)) {\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    else {\n      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    if (iVar1 != 0) {\n      iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);\n      param_1[0x15f] = iVar1;\n      if (iVar1 == 0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }\n      iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);\n      if (iVar1 < 0) {\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }\n    }\n    param_1[0x131] = 1;\n    uVar2 = FUN_0005a584(param_1,param_2);\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_0005a7e8(int *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  if (*(int *)(iVar3 + 0x154) == 0) {\n    FUN_00055010();\n  }\n  FUN_00046d14(param_1,0);\n  if ((*(uint *)(param_1[0xa1] + 0x40) & 0x10) == 0) {\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x5350);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x528c);\n  }\n  else {\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x54d0);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x5410);\n  }\n  iVar1 = (*(code *)PTR_libssh2_session_init_ex_000b2038)\n                    (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                     param_1);\n  param_1[0x158] = iVar1;\n  if (iVar1 == 0) {\n    (*(code *)PTR_FUN_000b114c)(iVar3,PTR_DAT_000b1184 + -0x55b8);\n    uVar2 = 2;\n  }\n  else {\n    if ((*(char *)(iVar3 + 0x940) == '\0') ||\n       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)) {\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    else {\n      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    if (iVar1 != 0) {\n      iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);\n      param_1[0x15f] = iVar1;\n      if (iVar1 == 0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }\n      iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);\n      if (iVar1 < 0) {\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }\n    }\n    param_1[0x131] = 1;\n    uVar2 = FUN_0005a584(param_1,param_2);\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0005a7e8(int *param_1,undefined4 param_2)" identifier (parameter_list "(int *param_1,undefined4 param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  if (*(int *)(iVar3 + 0x154) == 0) {\n    FUN_00055010();\n  }\n  FUN_00046d14(param_1,0);\n  if ((*(uint *)(param_1[0xa1] + 0x40) & 0x10) == 0) {\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x5350);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x528c);\n  }\n  else {\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x54d0);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x5410);\n  }\n  iVar1 = (*(code *)PTR_libssh2_session_init_ex_000b2038)\n                    (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                     param_1);\n  param_1[0x158] = iVar1;\n  if (iVar1 == 0) {\n    (*(code *)PTR_FUN_000b114c)(iVar3,PTR_DAT_000b1184 + -0x55b8);\n    uVar2 = 2;\n  }\n  else {\n    if ((*(char *)(iVar3 + 0x940) == '\0') ||\n       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)) {\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    else {\n      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    if (iVar1 != 0) {\n      iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);\n      param_1[0x15f] = iVar1;\n      if (iVar1 == 0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }\n      iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);\n      if (iVar1 < 0) {\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }\n    }\n    param_1[0x131] = 1;\n    uVar2 = FUN_0005a584(param_1,param_2);\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (*(int *)(iVar3 + 0x154) == 0) {\n    FUN_00055010();\n  }" if (parenthesized_expression "(*(int *)(iVar3 + 0x154) == 0)" ( (binary_expression "*(int *)(iVar3 + 0x154) == 0" (pointer_expression "*(int *)(iVar3 + 0x154)" * (cast_expression "(int *)(iVar3 + 0x154)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x154)" ( (binary_expression "iVar3 + 0x154" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    FUN_00055010();\n  }" { (expression_statement "FUN_00055010();" (call_expression "FUN_00055010()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_00046d14(param_1,0);" (call_expression "FUN_00046d14(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))) ;) (if_statement "if ((*(uint *)(param_1[0xa1] + 0x40) & 0x10) == 0) {\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x5350);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x528c);\n  }\n  else {\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x54d0);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x5410);\n  }" if (parenthesized_expression "((*(uint *)(param_1[0xa1] + 0x40) & 0x10) == 0)" ( (binary_expression "(*(uint *)(param_1[0xa1] + 0x40) & 0x10) == 0" (parenthesized_expression "(*(uint *)(param_1[0xa1] + 0x40) & 0x10)" ( (binary_expression "*(uint *)(param_1[0xa1] + 0x40) & 0x10" (pointer_expression "*(uint *)(param_1[0xa1] + 0x40)" * (cast_expression "(uint *)(param_1[0xa1] + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[0xa1] + 0x40)" ( (binary_expression "param_1[0xa1] + 0x40" (subscript_expression "param_1[0xa1]" identifier [ number_literal ]) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x5350);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x528c);\n  }" { (expression_statement "param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x5350);" (assignment_expression "param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x5350)" (subscript_expression "param_1[0x6b]" identifier [ number_literal ]) = (cast_expression "(int)(PTR_LAB_000b1624 + 0x5350)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(PTR_LAB_000b1624 + 0x5350)" ( (binary_expression "PTR_LAB_000b1624 + 0x5350" identifier + number_literal) )))) ;) (expression_statement "param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x528c);" (assignment_expression "param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x528c)" (subscript_expression "param_1[0x6d]" identifier [ number_literal ]) = (cast_expression "(int)(PTR_LAB_000b1624 + 0x528c)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(PTR_LAB_000b1624 + 0x528c)" ( (binary_expression "PTR_LAB_000b1624 + 0x528c" identifier + number_literal) )))) ;) }) (else_clause "else {\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x54d0);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x5410);\n  }" else (compound_statement "{\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x54d0);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x5410);\n  }" { (expression_statement "param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x54d0);" (assignment_expression "param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x54d0)" (subscript_expression "param_1[0x6b]" identifier [ number_literal ]) = (cast_expression "(int)(PTR_LAB_000b1624 + 0x54d0)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(PTR_LAB_000b1624 + 0x54d0)" ( (binary_expression "PTR_LAB_000b1624 + 0x54d0" identifier + number_literal) )))) ;) (expression_statement "param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x5410);" (assignment_expression "param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x5410)" (subscript_expression "param_1[0x6d]" identifier [ number_literal ]) = (cast_expression "(int)(PTR_LAB_000b1624 + 0x5410)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(PTR_LAB_000b1624 + 0x5410)" ( (binary_expression "PTR_LAB_000b1624 + 0x5410" identifier + number_literal) )))) ;) }))) (expression_statement "iVar1 = (*(code *)PTR_libssh2_session_init_ex_000b2038)\n                    (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                     param_1);" (assignment_expression "iVar1 = (*(code *)PTR_libssh2_session_init_ex_000b2038)\n                    (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                     param_1)" identifier = (call_expression "(*(code *)PTR_libssh2_session_init_ex_000b2038)\n                    (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                     param_1)" (parenthesized_expression "(*(code *)PTR_libssh2_session_init_ex_000b2038)" ( (pointer_expression "*(code *)PTR_libssh2_session_init_ex_000b2038" * (cast_expression "(code *)PTR_libssh2_session_init_ex_000b2038" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                     param_1)" ( (binary_expression "PTR_LAB_000b1624 + 0x4eec" identifier + number_literal) , (binary_expression "PTR_LAB_000b1624 + 0x4f5c" identifier + number_literal) , (binary_expression "PTR_LAB_000b1624 + 0x4f24" identifier + number_literal) , identifier )))) ;) (expression_statement "param_1[0x158] = iVar1;" (assignment_expression "param_1[0x158] = iVar1" (subscript_expression "param_1[0x158]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar1 == 0) {\n    (*(code *)PTR_FUN_000b114c)(iVar3,PTR_DAT_000b1184 + -0x55b8);\n    uVar2 = 2;\n  }\n  else {\n    if ((*(char *)(iVar3 + 0x940) == '\0') ||\n       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)) {\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    else {\n      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    if (iVar1 != 0) {\n      iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);\n      param_1[0x15f] = iVar1;\n      if (iVar1 == 0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }\n      iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);\n      if (iVar1 < 0) {\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }\n    }\n    param_1[0x131] = 1;\n    uVar2 = FUN_0005a584(param_1,param_2);\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_FUN_000b114c)(iVar3,PTR_DAT_000b1184 + -0x55b8);\n    uVar2 = 2;\n  }" { (expression_statement "(*(code *)PTR_FUN_000b114c)(iVar3,PTR_DAT_000b1184 + -0x55b8);" (call_expression "(*(code *)PTR_FUN_000b114c)(iVar3,PTR_DAT_000b1184 + -0x55b8)" (parenthesized_expression "(*(code *)PTR_FUN_000b114c)" ( (pointer_expression "*(code *)PTR_FUN_000b114c" * (cast_expression "(code *)PTR_FUN_000b114c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,PTR_DAT_000b1184 + -0x55b8)" ( identifier , (binary_expression "PTR_DAT_000b1184 + -0x55b8" identifier + number_literal) ))) ;) (expression_statement "uVar2 = 2;" (assignment_expression "uVar2 = 2" identifier = number_literal) ;) }) (else_clause "else {\n    if ((*(char *)(iVar3 + 0x940) == '\0') ||\n       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)) {\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    else {\n      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    if (iVar1 != 0) {\n      iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);\n      param_1[0x15f] = iVar1;\n      if (iVar1 == 0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }\n      iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);\n      if (iVar1 < 0) {\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }\n    }\n    param_1[0x131] = 1;\n    uVar2 = FUN_0005a584(param_1,param_2);\n  }" else (compound_statement "{\n    if ((*(char *)(iVar3 + 0x940) == '\0') ||\n       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)) {\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    else {\n      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    if (iVar1 != 0) {\n      iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);\n      param_1[0x15f] = iVar1;\n      if (iVar1 == 0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }\n      iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);\n      if (iVar1 < 0) {\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }\n    }\n    param_1[0x131] = 1;\n    uVar2 = FUN_0005a584(param_1,param_2);\n  }" { (if_statement "if ((*(char *)(iVar3 + 0x940) == '\0') ||\n       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)) {\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    else {\n      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }" if (parenthesized_expression "((*(char *)(iVar3 + 0x940) == '\0') ||\n       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1))" ( (binary_expression "(*(char *)(iVar3 + 0x940) == '\0') ||\n       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)" (parenthesized_expression "(*(char *)(iVar3 + 0x940) == '\0')" ( (binary_expression "*(char *)(iVar3 + 0x940) == '\0'" (pointer_expression "*(char *)(iVar3 + 0x940)" * (cast_expression "(char *)(iVar3 + 0x940)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x940)" ( (binary_expression "iVar3 + 0x940" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)" ( (comma_expression "iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1" (assignment_expression "iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1)" identifier = (call_expression "(*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1)" (parenthesized_expression "(*(code *)PTR_libssh2_session_flag_000b1d08)" ( (pointer_expression "*(code *)PTR_libssh2_session_flag_000b1d08" * (cast_expression "(code *)PTR_libssh2_session_flag_000b1d08" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,2,1)" ( identifier , number_literal , number_literal )))) , (binary_expression "-1 < iVar1" number_literal < identifier)) ))) )) (compound_statement "{\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }" { (expression_statement "iVar1 = *(int *)(iVar3 + 0xa68);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0xa68)" identifier = (pointer_expression "*(int *)(iVar3 + 0xa68)" * (cast_expression "(int *)(iVar3 + 0xa68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xa68)" ( (binary_expression "iVar3 + 0xa68" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }" else (compound_statement "{\n      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }" { (expression_statement "(*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);" (call_expression "(*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594)" (parenthesized_expression "(*(code *)PTR_FUN_000b11ac)" ( (pointer_expression "*(code *)PTR_FUN_000b11ac" * (cast_expression "(code *)PTR_FUN_000b11ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,PTR_DAT_000b1184 + -0x5594)" ( identifier , (binary_expression "PTR_DAT_000b1184 + -0x5594" identifier + number_literal) ))) ;) (expression_statement "iVar1 = *(int *)(iVar3 + 0xa68);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0xa68)" identifier = (pointer_expression "*(int *)(iVar3 + 0xa68)" * (cast_expression "(int *)(iVar3 + 0xa68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xa68)" ( (binary_expression "iVar3 + 0xa68" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar1 != 0) {\n      iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);\n      param_1[0x15f] = iVar1;\n      if (iVar1 == 0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }\n      iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);\n      if (iVar1 < 0) {\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);\n      param_1[0x15f] = iVar1;\n      if (iVar1 == 0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }\n      iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);\n      if (iVar1 < 0) {\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }\n    }" { (expression_statement "iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);" (assignment_expression "iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158])" identifier = (call_expression "(*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158])" (parenthesized_expression "(*(code *)PTR_libssh2_knownhost_init_000b1acc)" ( (pointer_expression "*(code *)PTR_libssh2_knownhost_init_000b1acc" * (cast_expression "(code *)PTR_libssh2_knownhost_init_000b1acc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[0x158])" ( (subscript_expression "param_1[0x158]" identifier [ number_literal ]) )))) ;) (expression_statement "param_1[0x15f] = iVar1;" (assignment_expression "param_1[0x15f] = iVar1" (subscript_expression "param_1[0x15f]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar1 == 0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }" { (expression_statement "(*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);" (call_expression "(*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158])" (parenthesized_expression "(*(code *)PTR_libssh2_session_free_000b1c9c)" ( (pointer_expression "*(code *)PTR_libssh2_session_free_000b1c9c" * (cast_expression "(code *)PTR_libssh2_session_free_000b1c9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[0x158])" ( (subscript_expression "param_1[0x158]" identifier [ number_literal ]) ))) ;) (return_statement "return 2;" return number_literal ;) })) (expression_statement "iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);" (assignment_expression "iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1)" identifier = (call_expression "(*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1)" (parenthesized_expression "(*(code *)PTR_libssh2_knownhost_readfile_000b1c10)" ( (pointer_expression "*(code *)PTR_libssh2_knownhost_readfile_000b1c10" * (cast_expression "(code *)PTR_libssh2_knownhost_readfile_000b1c10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1,*(undefined4 *)(iVar3 + 0xa68),1)" ( identifier , (pointer_expression "*(undefined4 *)(iVar3 + 0xa68)" * (cast_expression "(undefined4 *)(iVar3 + 0xa68)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xa68)" ( (binary_expression "iVar3 + 0xa68" identifier + number_literal) )))) , number_literal )))) ;) (if_statement "if (iVar1 < 0) {\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }" { (expression_statement "(*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;" (call_expression "(*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))" (parenthesized_expression "(*(code *)PTR_FUN_000b11ac)" ( (pointer_expression "*(code *)PTR_FUN_000b11ac" * (cast_expression "(code *)PTR_FUN_000b11ac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))" ( identifier , (binary_expression "PTR_DAT_000b1184 + -0x5564" identifier + number_literal) , (pointer_expression "*(undefined4 *)(iVar3 + 0xa68)" * (cast_expression "(undefined4 *)(iVar3 + 0xa68)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xa68)" ( (binary_expression "iVar3 + 0xa68" identifier + number_literal) )))) ))) ;) })) })) (expression_statement "param_1[0x131] = 1;" (assignment_expression "param_1[0x131] = 1" (subscript_expression "param_1[0x131]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar2 = FUN_0005a584(param_1,param_2);" (assignment_expression "uVar2 = FUN_0005a584(param_1,param_2)" identifier = (call_expression "FUN_0005a584(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT )))) , (binary_expression LIT < IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0005a7e8(int *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  if (*(int *)(iVar3 + 0x154) == 0) {\n    FUN_00055010();\n  }\n  FUN_00046d14(param_1,0);\n  if ((*(uint *)(param_1[0xa1] + 0x40) & 0x10) == 0) {\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x5350);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x528c);\n  }\n  else {\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x54d0);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x5410);\n  }\n  iVar1 = (*(code *)PTR_libssh2_session_init_ex_000b2038)\n                    (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                     param_1);\n  param_1[0x158] = iVar1;\n  if (iVar1 == 0) {\n    (*(code *)PTR_FUN_000b114c)(iVar3,PTR_DAT_000b1184 + -0x55b8);\n    uVar2 = 2;\n  }\n  else {\n    if ((*(char *)(iVar3 + 0x940) == '\0') ||\n       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)) {\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    else {\n      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    if (iVar1 != 0) {\n      iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);\n      param_1[0x15f] = iVar1;\n      if (iVar1 == 0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }\n      iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);\n      if (iVar1 < 0) {\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }\n    }\n    param_1[0x131] = 1;\n    uVar2 = FUN_0005a584(param_1,param_2);\n  }\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_0005a7e8(int *param_1,undefined4 param_2)" (identifier "FUN_0005a7e8") (parameter_list "(int *param_1,undefined4 param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar3 = *param_1;\n  if (*(int *)(iVar3 + 0x154) == 0) {\n    FUN_00055010();\n  }\n  FUN_00046d14(param_1,0);\n  if ((*(uint *)(param_1[0xa1] + 0x40) & 0x10) == 0) {\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x5350);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x528c);\n  }\n  else {\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x54d0);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x5410);\n  }\n  iVar1 = (*(code *)PTR_libssh2_session_init_ex_000b2038)\n                    (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                     param_1);\n  param_1[0x158] = iVar1;\n  if (iVar1 == 0) {\n    (*(code *)PTR_FUN_000b114c)(iVar3,PTR_DAT_000b1184 + -0x55b8);\n    uVar2 = 2;\n  }\n  else {\n    if ((*(char *)(iVar3 + 0x940) == '\0') ||\n       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)) {\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    else {\n      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    if (iVar1 != 0) {\n      iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);\n      param_1[0x15f] = iVar1;\n      if (iVar1 == 0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }\n      iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);\n      if (iVar1 < 0) {\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }\n    }\n    param_1[0x131] = 1;\n    uVar2 = FUN_0005a584(param_1,param_2);\n  }\n  return uVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" (identifier "iVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (*(int *)(iVar3 + 0x154) == 0) {\n    FUN_00055010();\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar3 + 0x154) == 0)" (( "(") (binary_expression "*(int *)(iVar3 + 0x154) == 0" (pointer_expression "*(int *)(iVar3 + 0x154)" (* "*") (cast_expression "(int *)(iVar3 + 0x154)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x154)" (( "(") (binary_expression "iVar3 + 0x154" (identifier "iVar3") (+ "+") (number_literal "0x154")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00055010();\n  }" ({ "{") (expression_statement "FUN_00055010();" (call_expression "FUN_00055010()" (identifier "FUN_00055010") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00046d14(param_1,0);" (call_expression "FUN_00046d14(param_1,0)" (identifier "FUN_00046d14") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")"))) (; ";")) (if_statement "if ((*(uint *)(param_1[0xa1] + 0x40) & 0x10) == 0) {\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x5350);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x528c);\n  }\n  else {\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x54d0);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x5410);\n  }" (if "if") (parenthesized_expression "((*(uint *)(param_1[0xa1] + 0x40) & 0x10) == 0)" (( "(") (binary_expression "(*(uint *)(param_1[0xa1] + 0x40) & 0x10) == 0" (parenthesized_expression "(*(uint *)(param_1[0xa1] + 0x40) & 0x10)" (( "(") (binary_expression "*(uint *)(param_1[0xa1] + 0x40) & 0x10" (pointer_expression "*(uint *)(param_1[0xa1] + 0x40)" (* "*") (cast_expression "(uint *)(param_1[0xa1] + 0x40)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[0xa1] + 0x40)" (( "(") (binary_expression "param_1[0xa1] + 0x40" (subscript_expression "param_1[0xa1]" (identifier "param_1") ([ "[") (number_literal "0xa1") (] "]")) (+ "+") (number_literal "0x40")) () ")")))) (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x5350);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x528c);\n  }" ({ "{") (expression_statement "param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x5350);" (assignment_expression "param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x5350)" (subscript_expression "param_1[0x6b]" (identifier "param_1") ([ "[") (number_literal "0x6b") (] "]")) (= "=") (cast_expression "(int)(PTR_LAB_000b1624 + 0x5350)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(PTR_LAB_000b1624 + 0x5350)" (( "(") (binary_expression "PTR_LAB_000b1624 + 0x5350" (identifier "PTR_LAB_000b1624") (+ "+") (number_literal "0x5350")) () ")")))) (; ";")) (expression_statement "param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x528c);" (assignment_expression "param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x528c)" (subscript_expression "param_1[0x6d]" (identifier "param_1") ([ "[") (number_literal "0x6d") (] "]")) (= "=") (cast_expression "(int)(PTR_LAB_000b1624 + 0x528c)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(PTR_LAB_000b1624 + 0x528c)" (( "(") (binary_expression "PTR_LAB_000b1624 + 0x528c" (identifier "PTR_LAB_000b1624") (+ "+") (number_literal "0x528c")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x54d0);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x5410);\n  }" (else "else") (compound_statement "{\n    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x54d0);\n    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x5410);\n  }" ({ "{") (expression_statement "param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x54d0);" (assignment_expression "param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x54d0)" (subscript_expression "param_1[0x6b]" (identifier "param_1") ([ "[") (number_literal "0x6b") (] "]")) (= "=") (cast_expression "(int)(PTR_LAB_000b1624 + 0x54d0)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(PTR_LAB_000b1624 + 0x54d0)" (( "(") (binary_expression "PTR_LAB_000b1624 + 0x54d0" (identifier "PTR_LAB_000b1624") (+ "+") (number_literal "0x54d0")) () ")")))) (; ";")) (expression_statement "param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x5410);" (assignment_expression "param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x5410)" (subscript_expression "param_1[0x6d]" (identifier "param_1") ([ "[") (number_literal "0x6d") (] "]")) (= "=") (cast_expression "(int)(PTR_LAB_000b1624 + 0x5410)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(PTR_LAB_000b1624 + 0x5410)" (( "(") (binary_expression "PTR_LAB_000b1624 + 0x5410" (identifier "PTR_LAB_000b1624") (+ "+") (number_literal "0x5410")) () ")")))) (; ";")) (} "}")))) (expression_statement "iVar1 = (*(code *)PTR_libssh2_session_init_ex_000b2038)\n                    (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                     param_1);" (assignment_expression "iVar1 = (*(code *)PTR_libssh2_session_init_ex_000b2038)\n                    (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                     param_1)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_libssh2_session_init_ex_000b2038)\n                    (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                     param_1)" (parenthesized_expression "(*(code *)PTR_libssh2_session_init_ex_000b2038)" (( "(") (pointer_expression "*(code *)PTR_libssh2_session_init_ex_000b2038" (* "*") (cast_expression "(code *)PTR_libssh2_session_init_ex_000b2038" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_libssh2_session_init_ex_000b2038"))) () ")")) (argument_list "(PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,\n                     param_1)" (( "(") (binary_expression "PTR_LAB_000b1624 + 0x4eec" (identifier "PTR_LAB_000b1624") (+ "+") (number_literal "0x4eec")) (, ",") (binary_expression "PTR_LAB_000b1624 + 0x4f5c" (identifier "PTR_LAB_000b1624") (+ "+") (number_literal "0x4f5c")) (, ",") (binary_expression "PTR_LAB_000b1624 + 0x4f24" (identifier "PTR_LAB_000b1624") (+ "+") (number_literal "0x4f24")) (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "param_1[0x158] = iVar1;" (assignment_expression "param_1[0x158] = iVar1" (subscript_expression "param_1[0x158]" (identifier "param_1") ([ "[") (number_literal "0x158") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar1 == 0) {\n    (*(code *)PTR_FUN_000b114c)(iVar3,PTR_DAT_000b1184 + -0x55b8);\n    uVar2 = 2;\n  }\n  else {\n    if ((*(char *)(iVar3 + 0x940) == '\0') ||\n       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)) {\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    else {\n      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    if (iVar1 != 0) {\n      iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);\n      param_1[0x15f] = iVar1;\n      if (iVar1 == 0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }\n      iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);\n      if (iVar1 < 0) {\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }\n    }\n    param_1[0x131] = 1;\n    uVar2 = FUN_0005a584(param_1,param_2);\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_FUN_000b114c)(iVar3,PTR_DAT_000b1184 + -0x55b8);\n    uVar2 = 2;\n  }" ({ "{") (expression_statement "(*(code *)PTR_FUN_000b114c)(iVar3,PTR_DAT_000b1184 + -0x55b8);" (call_expression "(*(code *)PTR_FUN_000b114c)(iVar3,PTR_DAT_000b1184 + -0x55b8)" (parenthesized_expression "(*(code *)PTR_FUN_000b114c)" (( "(") (pointer_expression "*(code *)PTR_FUN_000b114c" (* "*") (cast_expression "(code *)PTR_FUN_000b114c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_000b114c"))) () ")")) (argument_list "(iVar3,PTR_DAT_000b1184 + -0x55b8)" (( "(") (identifier "iVar3") (, ",") (binary_expression "PTR_DAT_000b1184 + -0x55b8" (identifier "PTR_DAT_000b1184") (+ "+") (number_literal "-0x55b8")) () ")"))) (; ";")) (expression_statement "uVar2 = 2;" (assignment_expression "uVar2 = 2" (identifier "uVar2") (= "=") (number_literal "2")) (; ";")) (} "}")) (else_clause "else {\n    if ((*(char *)(iVar3 + 0x940) == '\0') ||\n       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)) {\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    else {\n      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    if (iVar1 != 0) {\n      iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);\n      param_1[0x15f] = iVar1;\n      if (iVar1 == 0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }\n      iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);\n      if (iVar1 < 0) {\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }\n    }\n    param_1[0x131] = 1;\n    uVar2 = FUN_0005a584(param_1,param_2);\n  }" (else "else") (compound_statement "{\n    if ((*(char *)(iVar3 + 0x940) == '\0') ||\n       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)) {\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    else {\n      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    if (iVar1 != 0) {\n      iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);\n      param_1[0x15f] = iVar1;\n      if (iVar1 == 0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }\n      iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);\n      if (iVar1 < 0) {\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }\n    }\n    param_1[0x131] = 1;\n    uVar2 = FUN_0005a584(param_1,param_2);\n  }" ({ "{") (if_statement "if ((*(char *)(iVar3 + 0x940) == '\0') ||\n       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)) {\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }\n    else {\n      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }" (if "if") (parenthesized_expression "((*(char *)(iVar3 + 0x940) == '\0') ||\n       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1))" (( "(") (binary_expression "(*(char *)(iVar3 + 0x940) == '\0') ||\n       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)" (parenthesized_expression "(*(char *)(iVar3 + 0x940) == '\0')" (( "(") (binary_expression "*(char *)(iVar3 + 0x940) == '\0'" (pointer_expression "*(char *)(iVar3 + 0x940)" (* "*") (cast_expression "(char *)(iVar3 + 0x940)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x940)" (( "(") (binary_expression "iVar3 + 0x940" (identifier "iVar3") (+ "+") (number_literal "0x940")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)" (( "(") (comma_expression "iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1" (assignment_expression "iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1)" (parenthesized_expression "(*(code *)PTR_libssh2_session_flag_000b1d08)" (( "(") (pointer_expression "*(code *)PTR_libssh2_session_flag_000b1d08" (* "*") (cast_expression "(code *)PTR_libssh2_session_flag_000b1d08" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_libssh2_session_flag_000b1d08"))) () ")")) (argument_list "(iVar1,2,1)" (( "(") (identifier "iVar1") (, ",") (number_literal "2") (, ",") (number_literal "1") () ")")))) (, ",") (binary_expression "-1 < iVar1" (number_literal "-1") (< "<") (identifier "iVar1"))) () ")"))) () ")")) (compound_statement "{\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }" ({ "{") (expression_statement "iVar1 = *(int *)(iVar3 + 0xa68);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0xa68)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar3 + 0xa68)" (* "*") (cast_expression "(int *)(iVar3 + 0xa68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xa68)" (( "(") (binary_expression "iVar3 + 0xa68" (identifier "iVar3") (+ "+") (number_literal "0xa68")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }" (else "else") (compound_statement "{\n      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);\n      iVar1 = *(int *)(iVar3 + 0xa68);\n    }" ({ "{") (expression_statement "(*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);" (call_expression "(*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594)" (parenthesized_expression "(*(code *)PTR_FUN_000b11ac)" (( "(") (pointer_expression "*(code *)PTR_FUN_000b11ac" (* "*") (cast_expression "(code *)PTR_FUN_000b11ac" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_000b11ac"))) () ")")) (argument_list "(iVar3,PTR_DAT_000b1184 + -0x5594)" (( "(") (identifier "iVar3") (, ",") (binary_expression "PTR_DAT_000b1184 + -0x5594" (identifier "PTR_DAT_000b1184") (+ "+") (number_literal "-0x5594")) () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(iVar3 + 0xa68);" (assignment_expression "iVar1 = *(int *)(iVar3 + 0xa68)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar3 + 0xa68)" (* "*") (cast_expression "(int *)(iVar3 + 0xa68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xa68)" (( "(") (binary_expression "iVar3 + 0xa68" (identifier "iVar3") (+ "+") (number_literal "0xa68")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (iVar1 != 0) {\n      iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);\n      param_1[0x15f] = iVar1;\n      if (iVar1 == 0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }\n      iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);\n      if (iVar1 < 0) {\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);\n      param_1[0x15f] = iVar1;\n      if (iVar1 == 0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }\n      iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);\n      if (iVar1 < 0) {\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }\n    }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);" (assignment_expression "iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158])" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158])" (parenthesized_expression "(*(code *)PTR_libssh2_knownhost_init_000b1acc)" (( "(") (pointer_expression "*(code *)PTR_libssh2_knownhost_init_000b1acc" (* "*") (cast_expression "(code *)PTR_libssh2_knownhost_init_000b1acc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_libssh2_knownhost_init_000b1acc"))) () ")")) (argument_list "(param_1[0x158])" (( "(") (subscript_expression "param_1[0x158]" (identifier "param_1") ([ "[") (number_literal "0x158") (] "]")) () ")")))) (; ";")) (expression_statement "param_1[0x15f] = iVar1;" (assignment_expression "param_1[0x15f] = iVar1" (subscript_expression "param_1[0x15f]" (identifier "param_1") ([ "[") (number_literal "0x15f") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar1 == 0) {\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);\n        return 2;\n      }" ({ "{") (expression_statement "(*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);" (call_expression "(*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158])" (parenthesized_expression "(*(code *)PTR_libssh2_session_free_000b1c9c)" (( "(") (pointer_expression "*(code *)PTR_libssh2_session_free_000b1c9c" (* "*") (cast_expression "(code *)PTR_libssh2_session_free_000b1c9c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_libssh2_session_free_000b1c9c"))) () ")")) (argument_list "(param_1[0x158])" (( "(") (subscript_expression "param_1[0x158]" (identifier "param_1") ([ "[") (number_literal "0x158") (] "]")) () ")"))) (; ";")) (return_statement "return 2;" (return "return") (number_literal "2") (; ";")) (} "}"))) (expression_statement "iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);" (assignment_expression "iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_libssh2_knownhost_readfile_000b1c10)\n                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1)" (parenthesized_expression "(*(code *)PTR_libssh2_knownhost_readfile_000b1c10)" (( "(") (pointer_expression "*(code *)PTR_libssh2_knownhost_readfile_000b1c10" (* "*") (cast_expression "(code *)PTR_libssh2_knownhost_readfile_000b1c10" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_libssh2_knownhost_readfile_000b1c10"))) () ")")) (argument_list "(iVar1,*(undefined4 *)(iVar3 + 0xa68),1)" (( "(") (identifier "iVar1") (, ",") (pointer_expression "*(undefined4 *)(iVar3 + 0xa68)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0xa68)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xa68)" (( "(") (binary_expression "iVar3 + 0xa68" (identifier "iVar3") (+ "+") (number_literal "0xa68")) () ")")))) (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (iVar1 < 0) {\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;\n      }" ({ "{") (expression_statement "(*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))\n        ;" (call_expression "(*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))" (parenthesized_expression "(*(code *)PTR_FUN_000b11ac)" (( "(") (pointer_expression "*(code *)PTR_FUN_000b11ac" (* "*") (cast_expression "(code *)PTR_FUN_000b11ac" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_000b11ac"))) () ")")) (argument_list "(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))" (( "(") (identifier "iVar3") (, ",") (binary_expression "PTR_DAT_000b1184 + -0x5564" (identifier "PTR_DAT_000b1184") (+ "+") (number_literal "-0x5564")) (, ",") (pointer_expression "*(undefined4 *)(iVar3 + 0xa68)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0xa68)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xa68)" (( "(") (binary_expression "iVar3 + 0xa68" (identifier "iVar3") (+ "+") (number_literal "0xa68")) () ")")))) () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "param_1[0x131] = 1;" (assignment_expression "param_1[0x131] = 1" (subscript_expression "param_1[0x131]" (identifier "param_1") ([ "[") (number_literal "0x131") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar2 = FUN_0005a584(param_1,param_2);" (assignment_expression "uVar2 = FUN_0005a584(param_1,param_2)" (identifier "uVar2") (= "=") (call_expression "FUN_0005a584(param_1,param_2)" (identifier "FUN_0005a584") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (} "}")))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (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))))) right: (char_literal (escape_sequence)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (number_literal)))) right: (binary_expression left: (number_literal) right: (identifier)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (binary_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)))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))))) (return_statement (identifier)))))

undefined4 MASKED(int *param_1,undefined4 param_2)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  
  iVar3 = *param_1;
  if (*(int *)(iVar3 + 0x154) == 0) {
    FUN_00055010();
  }
  FUN_00046d14(param_1,0);
  if ((*(uint *)(param_1[0xa1] + 0x40) & 0x10) == 0) {
    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x5350);
    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x528c);
  }
  else {
    param_1[0x6b] = (int)(PTR_LAB_000b1624 + 0x54d0);
    param_1[0x6d] = (int)(PTR_LAB_000b1624 + 0x5410);
  }
  iVar1 = (*(code *)PTR_libssh2_session_init_ex_000b2038)
                    (PTR_LAB_000b1624 + 0x4eec,PTR_LAB_000b1624 + 0x4f5c,PTR_LAB_000b1624 + 0x4f24,
                     param_1);
  param_1[0x158] = iVar1;
  if (iVar1 == 0) {
    (*(code *)PTR_FUN_000b114c)(iVar3,PTR_DAT_000b1184 + -0x55b8);
    uVar2 = 2;
  }
  else {
    if ((*(char *)(iVar3 + 0x940) == '\0') ||
       (iVar1 = (*(code *)PTR_libssh2_session_flag_000b1d08)(iVar1,2,1), -1 < iVar1)) {
      iVar1 = *(int *)(iVar3 + 0xa68);
    }
    else {
      (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5594);
      iVar1 = *(int *)(iVar3 + 0xa68);
    }
    if (iVar1 != 0) {
      iVar1 = (*(code *)PTR_libssh2_knownhost_init_000b1acc)(param_1[0x158]);
      param_1[0x15f] = iVar1;
      if (iVar1 == 0) {
        (*(code *)PTR_libssh2_session_free_000b1c9c)(param_1[0x158]);
        return 2;
      }
      iVar1 = (*(code *)PTR_libssh2_knownhost_readfile_000b1c10)
                        (iVar1,*(undefined4 *)(iVar3 + 0xa68),1);
      if (iVar1 < 0) {
        (*(code *)PTR_FUN_000b11ac)(iVar3,PTR_DAT_000b1184 + -0x5564,*(undefined4 *)(iVar3 + 0xa68))
        ;
      }
    }
    param_1[0x131] = 1;
    uVar2 = FUN_0005a584(param_1,param_2);
  }
  return uVar2;
}

