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

void ssh1_msg_channel_open_failure(Ssh_conflict ssh,Packet *pktin)

{
  ssh_channel *e;
  
  e = ssh_channel_msg(ssh,pktin);
  if ((e != (ssh_channel *)0x0) && (e->type == 3)) {
    logevent(ssh->frontend,"Forwarded connection refused by server");
    pfd_close((PortForwarding *)(e->u).a.inbuffer.head);
    del234(ssh->channels,e);
    safefree(e);
  }
  return;
}



void FUN_00126224(long param_1)

{
  long lVar1;
  
  lVar1 = FUN_001258d2();
  if ((lVar1 != 0) && (*(int *)(lVar1 + 0x10) == 3)) {
    FUN_00150bd9(*(undefined8 *)(param_1 + 0x188),"Forwarded connection refused by server");
    FUN_0011014c(*(undefined8 *)(lVar1 + 0x70));
    FUN_0014fd69(*(undefined8 *)(param_1 + 0x1a0),lVar1);
    FUN_0010f2a9(lVar1);
  }
  return;
}


PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RBP,RDI
CALL 0x001258d2
TEST RAX,RAX
JZ 0x00126240
MOV RBX,RAX
CMP dword ptr [RAX + 0x10],0x3
JZ 0x00126247
ADD RSP,0x8
POP RBX
POP RBP
RET
MOV RDI,qword ptr [RBP + 0x188]
LEA RSI,[0x163398]
CALL 0x00150bd9
MOV RDI,qword ptr [RBX + 0x70]
CALL 0x0011014c
MOV RDI,qword ptr [RBP + 0x1a0]
MOV RSI,RBX
CALL 0x0014fd69
MOV RDI,RBX
CALL 0x0010f2a9
JMP 0x00126240
(translation_unit "void FUN_00126224(long param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_001258d2();\n  if ((lVar1 != 0) && (*(int *)(lVar1 + 0x10) == 3)) {\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x188),"Forwarded connection refused by server");\n    FUN_0011014c(*(undefined8 *)(lVar1 + 0x70));\n    FUN_0014fd69(*(undefined8 *)(param_1 + 0x1a0),lVar1);\n    FUN_0010f2a9(lVar1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00126224(long param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_001258d2();\n  if ((lVar1 != 0) && (*(int *)(lVar1 + 0x10) == 3)) {\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x188),"Forwarded connection refused by server");\n    FUN_0011014c(*(undefined8 *)(lVar1 + 0x70));\n    FUN_0014fd69(*(undefined8 *)(param_1 + 0x1a0),lVar1);\n    FUN_0010f2a9(lVar1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00126224(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = FUN_001258d2();\n  if ((lVar1 != 0) && (*(int *)(lVar1 + 0x10) == 3)) {\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x188),"Forwarded connection refused by server");\n    FUN_0011014c(*(undefined8 *)(lVar1 + 0x70));\n    FUN_0014fd69(*(undefined8 *)(param_1 + 0x1a0),lVar1);\n    FUN_0010f2a9(lVar1);\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = FUN_001258d2();" (assignment_expression "lVar1 = FUN_001258d2()" identifier = (call_expression "FUN_001258d2()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((lVar1 != 0) && (*(int *)(lVar1 + 0x10) == 3)) {\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x188),"Forwarded connection refused by server");\n    FUN_0011014c(*(undefined8 *)(lVar1 + 0x70));\n    FUN_0014fd69(*(undefined8 *)(param_1 + 0x1a0),lVar1);\n    FUN_0010f2a9(lVar1);\n  }" if (parenthesized_expression "((lVar1 != 0) && (*(int *)(lVar1 + 0x10) == 3))" ( (binary_expression "(lVar1 != 0) && (*(int *)(lVar1 + 0x10) == 3)" (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(lVar1 + 0x10) == 3)" ( (binary_expression "*(int *)(lVar1 + 0x10) == 3" (pointer_expression "*(int *)(lVar1 + 0x10)" * (cast_expression "(int *)(lVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x188),"Forwarded connection refused by server");\n    FUN_0011014c(*(undefined8 *)(lVar1 + 0x70));\n    FUN_0014fd69(*(undefined8 *)(param_1 + 0x1a0),lVar1);\n    FUN_0010f2a9(lVar1);\n  }" { (expression_statement "FUN_00150bd9(*(undefined8 *)(param_1 + 0x188),"Forwarded connection refused by server");" (call_expression "FUN_00150bd9(*(undefined8 *)(param_1 + 0x188),"Forwarded connection refused by server")" identifier (argument_list "(*(undefined8 *)(param_1 + 0x188),"Forwarded connection refused by server")" ( (pointer_expression "*(undefined8 *)(param_1 + 0x188)" * (cast_expression "(undefined8 *)(param_1 + 0x188)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x188)" ( (binary_expression "param_1 + 0x188" identifier + number_literal) )))) , (string_literal ""Forwarded connection refused by server"" " string_content ") ))) ;) (expression_statement "FUN_0011014c(*(undefined8 *)(lVar1 + 0x70));" (call_expression "FUN_0011014c(*(undefined8 *)(lVar1 + 0x70))" identifier (argument_list "(*(undefined8 *)(lVar1 + 0x70))" ( (pointer_expression "*(undefined8 *)(lVar1 + 0x70)" * (cast_expression "(undefined8 *)(lVar1 + 0x70)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x70)" ( (binary_expression "lVar1 + 0x70" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_0014fd69(*(undefined8 *)(param_1 + 0x1a0),lVar1);" (call_expression "FUN_0014fd69(*(undefined8 *)(param_1 + 0x1a0),lVar1)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x1a0),lVar1)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x1a0)" * (cast_expression "(undefined8 *)(param_1 + 0x1a0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a0)" ( (binary_expression "param_1 + 0x1a0" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "FUN_0010f2a9(lVar1);" (call_expression "FUN_0010f2a9(lVar1)" identifier (argument_list "(lVar1)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid ssh1_msg_channel_open_failure(Ssh_conflict ssh,Packet *pktin)\n\n{\n  ssh_channel *e;\n  \n  e = ssh_channel_msg(ssh,pktin);\n  if ((e != (ssh_channel *)0x0) && (e->type == 3)) {\n    logevent(ssh->frontend,"Forwarded connection refused by server");\n    pfd_close((PortForwarding *)(e->u).a.inbuffer.head);\n    del234(ssh->channels,e);\n    safefree(e);\n  }\n  return;\n}\n\n" comment (function_definition "void ssh1_msg_channel_open_failure(Ssh_conflict ssh,Packet *pktin)\n\n{\n  ssh_channel *e;\n  \n  e = ssh_channel_msg(ssh,pktin);\n  if ((e != (ssh_channel *)0x0) && (e->type == 3)) {\n    logevent(ssh->frontend,"Forwarded connection refused by server");\n    pfd_close((PortForwarding *)(e->u).a.inbuffer.head);\n    del234(ssh->channels,e);\n    safefree(e);\n  }\n  return;\n}" primitive_type (function_declarator "ssh1_msg_channel_open_failure(Ssh_conflict ssh,Packet *pktin)" identifier (parameter_list "(Ssh_conflict ssh,Packet *pktin)" ( (parameter_declaration "Ssh_conflict ssh" type_identifier identifier) , (parameter_declaration "Packet *pktin" type_identifier (pointer_declarator "*pktin" * identifier)) ))) (compound_statement "{\n  ssh_channel *e;\n  \n  e = ssh_channel_msg(ssh,pktin);\n  if ((e != (ssh_channel *)0x0) && (e->type == 3)) {\n    logevent(ssh->frontend,"Forwarded connection refused by server");\n    pfd_close((PortForwarding *)(e->u).a.inbuffer.head);\n    del234(ssh->channels,e);\n    safefree(e);\n  }\n  return;\n}" { (declaration "ssh_channel *e;" type_identifier (pointer_declarator "*e" * identifier) ;) (expression_statement "e = ssh_channel_msg(ssh,pktin);" (assignment_expression "e = ssh_channel_msg(ssh,pktin)" identifier = (call_expression "ssh_channel_msg(ssh,pktin)" identifier (argument_list "(ssh,pktin)" ( identifier , identifier )))) ;) (if_statement "if ((e != (ssh_channel *)0x0) && (e->type == 3)) {\n    logevent(ssh->frontend,"Forwarded connection refused by server");\n    pfd_close((PortForwarding *)(e->u).a.inbuffer.head);\n    del234(ssh->channels,e);\n    safefree(e);\n  }" if (parenthesized_expression "((e != (ssh_channel *)0x0) && (e->type == 3))" ( (binary_expression "(e != (ssh_channel *)0x0) && (e->type == 3)" (parenthesized_expression "(e != (ssh_channel *)0x0)" ( (binary_expression "e != (ssh_channel *)0x0" identifier != (cast_expression "(ssh_channel *)0x0" ( (type_descriptor "ssh_channel *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(e->type == 3)" ( (binary_expression "e->type == 3" (field_expression "e->type" identifier -> field_identifier) == number_literal) ))) )) (compound_statement "{\n    logevent(ssh->frontend,"Forwarded connection refused by server");\n    pfd_close((PortForwarding *)(e->u).a.inbuffer.head);\n    del234(ssh->channels,e);\n    safefree(e);\n  }" { (expression_statement "logevent(ssh->frontend,"Forwarded connection refused by server");" (call_expression "logevent(ssh->frontend,"Forwarded connection refused by server")" identifier (argument_list "(ssh->frontend,"Forwarded connection refused by server")" ( (field_expression "ssh->frontend" identifier -> field_identifier) , (string_literal ""Forwarded connection refused by server"" " string_content ") ))) ;) (expression_statement "pfd_close((PortForwarding *)(e->u).a.inbuffer.head);" (call_expression "pfd_close((PortForwarding *)(e->u).a.inbuffer.head)" identifier (argument_list "((PortForwarding *)(e->u).a.inbuffer.head)" ( (cast_expression "(PortForwarding *)(e->u).a.inbuffer.head" ( (type_descriptor "PortForwarding *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(e->u).a.inbuffer.head" (field_expression "(e->u).a.inbuffer" (field_expression "(e->u).a" (parenthesized_expression "(e->u)" ( (field_expression "e->u" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier)) ))) ;) (expression_statement "del234(ssh->channels,e);" (call_expression "del234(ssh->channels,e)" identifier (argument_list "(ssh->channels,e)" ( (field_expression "ssh->channels" identifier -> field_identifier) , identifier ))) ;) (expression_statement "safefree(e);" (call_expression "safefree(e)" identifier (argument_list "(e)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00126224(long param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_001258d2();\n  if ((lVar1 != 0) && (*(int *)(lVar1 + 0x10) == 3)) {\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x188),"Forwarded connection refused by server");\n    FUN_0011014c(*(undefined8 *)(lVar1 + 0x70));\n    FUN_0014fd69(*(undefined8 *)(param_1 + 0x1a0),lVar1);\n    FUN_0010f2a9(lVar1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00126224(long param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_001258d2();\n  if ((lVar1 != 0) && (*(int *)(lVar1 + 0x10) == 3)) {\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x188),"Forwarded connection refused by server");\n    FUN_0011014c(*(undefined8 *)(lVar1 + 0x70));\n    FUN_0014fd69(*(undefined8 *)(param_1 + 0x1a0),lVar1);\n    FUN_0010f2a9(lVar1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00126224(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = FUN_001258d2();\n  if ((lVar1 != 0) && (*(int *)(lVar1 + 0x10) == 3)) {\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x188),"Forwarded connection refused by server");\n    FUN_0011014c(*(undefined8 *)(lVar1 + 0x70));\n    FUN_0014fd69(*(undefined8 *)(param_1 + 0x1a0),lVar1);\n    FUN_0010f2a9(lVar1);\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = FUN_001258d2();" (assignment_expression "lVar1 = FUN_001258d2()" identifier = (call_expression "FUN_001258d2()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((lVar1 != 0) && (*(int *)(lVar1 + 0x10) == 3)) {\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x188),"Forwarded connection refused by server");\n    FUN_0011014c(*(undefined8 *)(lVar1 + 0x70));\n    FUN_0014fd69(*(undefined8 *)(param_1 + 0x1a0),lVar1);\n    FUN_0010f2a9(lVar1);\n  }" if (parenthesized_expression "((lVar1 != 0) && (*(int *)(lVar1 + 0x10) == 3))" ( (binary_expression "(lVar1 != 0) && (*(int *)(lVar1 + 0x10) == 3)" (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(lVar1 + 0x10) == 3)" ( (binary_expression "*(int *)(lVar1 + 0x10) == 3" (pointer_expression "*(int *)(lVar1 + 0x10)" * (cast_expression "(int *)(lVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x188),"Forwarded connection refused by server");\n    FUN_0011014c(*(undefined8 *)(lVar1 + 0x70));\n    FUN_0014fd69(*(undefined8 *)(param_1 + 0x1a0),lVar1);\n    FUN_0010f2a9(lVar1);\n  }" { (expression_statement "FUN_00150bd9(*(undefined8 *)(param_1 + 0x188),"Forwarded connection refused by server");" (call_expression "FUN_00150bd9(*(undefined8 *)(param_1 + 0x188),"Forwarded connection refused by server")" identifier (argument_list "(*(undefined8 *)(param_1 + 0x188),"Forwarded connection refused by server")" ( (pointer_expression "*(undefined8 *)(param_1 + 0x188)" * (cast_expression "(undefined8 *)(param_1 + 0x188)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x188)" ( (binary_expression "param_1 + 0x188" identifier + number_literal) )))) , (string_literal ""Forwarded connection refused by server"" " string_content ") ))) ;) (expression_statement "FUN_0011014c(*(undefined8 *)(lVar1 + 0x70));" (call_expression "FUN_0011014c(*(undefined8 *)(lVar1 + 0x70))" identifier (argument_list "(*(undefined8 *)(lVar1 + 0x70))" ( (pointer_expression "*(undefined8 *)(lVar1 + 0x70)" * (cast_expression "(undefined8 *)(lVar1 + 0x70)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x70)" ( (binary_expression "lVar1 + 0x70" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_0014fd69(*(undefined8 *)(param_1 + 0x1a0),lVar1);" (call_expression "FUN_0014fd69(*(undefined8 *)(param_1 + 0x1a0),lVar1)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x1a0),lVar1)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x1a0)" * (cast_expression "(undefined8 *)(param_1 + 0x1a0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a0)" ( (binary_expression "param_1 + 0x1a0" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "FUN_0010f2a9(lVar1);" (call_expression "FUN_0010f2a9(lVar1)" identifier (argument_list "(lVar1)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (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 ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (string_literal " string_content ") ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00126224(long param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_001258d2();\n  if ((lVar1 != 0) && (*(int *)(lVar1 + 0x10) == 3)) {\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x188),"Forwarded connection refused by server");\n    FUN_0011014c(*(undefined8 *)(lVar1 + 0x70));\n    FUN_0014fd69(*(undefined8 *)(param_1 + 0x1a0),lVar1);\n    FUN_0010f2a9(lVar1);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00126224(long param_1)" (identifier "FUN_00126224") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = FUN_001258d2();\n  if ((lVar1 != 0) && (*(int *)(lVar1 + 0x10) == 3)) {\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x188),"Forwarded connection refused by server");\n    FUN_0011014c(*(undefined8 *)(lVar1 + 0x70));\n    FUN_0014fd69(*(undefined8 *)(param_1 + 0x1a0),lVar1);\n    FUN_0010f2a9(lVar1);\n  }\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (expression_statement "lVar1 = FUN_001258d2();" (assignment_expression "lVar1 = FUN_001258d2()" (identifier "lVar1") (= "=") (call_expression "FUN_001258d2()" (identifier "FUN_001258d2") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((lVar1 != 0) && (*(int *)(lVar1 + 0x10) == 3)) {\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x188),"Forwarded connection refused by server");\n    FUN_0011014c(*(undefined8 *)(lVar1 + 0x70));\n    FUN_0014fd69(*(undefined8 *)(param_1 + 0x1a0),lVar1);\n    FUN_0010f2a9(lVar1);\n  }" (if "if") (parenthesized_expression "((lVar1 != 0) && (*(int *)(lVar1 + 0x10) == 3))" (( "(") (binary_expression "(lVar1 != 0) && (*(int *)(lVar1 + 0x10) == 3)" (parenthesized_expression "(lVar1 != 0)" (( "(") (binary_expression "lVar1 != 0" (identifier "lVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(lVar1 + 0x10) == 3)" (( "(") (binary_expression "*(int *)(lVar1 + 0x10) == 3" (pointer_expression "*(int *)(lVar1 + 0x10)" (* "*") (cast_expression "(int *)(lVar1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x10)" (( "(") (binary_expression "lVar1 + 0x10" (identifier "lVar1") (+ "+") (number_literal "0x10")) () ")")))) (== "==") (number_literal "3")) () ")"))) () ")")) (compound_statement "{\n    FUN_00150bd9(*(undefined8 *)(param_1 + 0x188),"Forwarded connection refused by server");\n    FUN_0011014c(*(undefined8 *)(lVar1 + 0x70));\n    FUN_0014fd69(*(undefined8 *)(param_1 + 0x1a0),lVar1);\n    FUN_0010f2a9(lVar1);\n  }" ({ "{") (expression_statement "FUN_00150bd9(*(undefined8 *)(param_1 + 0x188),"Forwarded connection refused by server");" (call_expression "FUN_00150bd9(*(undefined8 *)(param_1 + 0x188),"Forwarded connection refused by server")" (identifier "FUN_00150bd9") (argument_list "(*(undefined8 *)(param_1 + 0x188),"Forwarded connection refused by server")" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x188)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x188)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x188)" (( "(") (binary_expression "param_1 + 0x188" (identifier "param_1") (+ "+") (number_literal "0x188")) () ")")))) (, ",") (string_literal ""Forwarded connection refused by server"" (" """) (string_content "Forwarded connection refused by server") (" """)) () ")"))) (; ";")) (expression_statement "FUN_0011014c(*(undefined8 *)(lVar1 + 0x70));" (call_expression "FUN_0011014c(*(undefined8 *)(lVar1 + 0x70))" (identifier "FUN_0011014c") (argument_list "(*(undefined8 *)(lVar1 + 0x70))" (( "(") (pointer_expression "*(undefined8 *)(lVar1 + 0x70)" (* "*") (cast_expression "(undefined8 *)(lVar1 + 0x70)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x70)" (( "(") (binary_expression "lVar1 + 0x70" (identifier "lVar1") (+ "+") (number_literal "0x70")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_0014fd69(*(undefined8 *)(param_1 + 0x1a0),lVar1);" (call_expression "FUN_0014fd69(*(undefined8 *)(param_1 + 0x1a0),lVar1)" (identifier "FUN_0014fd69") (argument_list "(*(undefined8 *)(param_1 + 0x1a0),lVar1)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x1a0)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x1a0)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1a0)" (( "(") (binary_expression "param_1 + 0x1a0" (identifier "param_1") (+ "+") (number_literal "0x1a0")) () ")")))) (, ",") (identifier "lVar1") () ")"))) (; ";")) (expression_statement "FUN_0010f2a9(lVar1);" (call_expression "FUN_0010f2a9(lVar1)" (identifier "FUN_0010f2a9") (argument_list "(lVar1)" (( "(") (identifier "lVar1") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 ssh,type_2 *pktin)

{
  type_3 *var_2;
  
  var_2 = var_1(ssh,pktin);
  if ((var_2 != (type_3 *)0x0) && (var_2->type == 3)) {
    var_3(ssh->frontend,"Forwarded connection refused by server");
    var_4((type_4 *)(var_2->u).a.inbuffer.head);
    var_5(ssh->channels,var_2);
    var_6(var_2);
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (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 (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))))) (string_literal (string_content))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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 (call_expression function: (identifier) arguments: (argument_list (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))))) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (return_statement))))

void MASKED(long param_1)

{
  long lVar1;
  
  lVar1 = FUN_001258d2();
  if ((lVar1 != 0) && (*(int *)(lVar1 + 0x10) == 3)) {
    FUN_00150bd9(*(undefined8 *)(param_1 + 0x188),"Forwarded connection refused by server");
    FUN_0011014c(*(undefined8 *)(lVar1 + 0x70));
    FUN_0014fd69(*(undefined8 *)(param_1 + 0x1a0),lVar1);
    FUN_0010f2a9(lVar1);
  }
  return;
}

