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

void ssh2_bare_connection_protocol(Ssh_conflict ssh,void *vin,int inlen,Packet *pktin)

{
  uchar *in;
  
  if (ssh->state != CHAN_SHARING) {
    if (pktin == (Packet *)0x0) {
      do_ssh2_authconn(ssh,(uchar *)vin,inlen,(Packet *)0x0);
    }
    else {
      (*ssh->packet_dispatch[pktin->type])(ssh,pktin);
    }
    return;
  }
  return;
}



void FUN_00131813(long param_1,undefined8 param_2,undefined8 param_3,long param_4)

{
  if (*(int *)(param_1 + 0x1d0) != 4) {
    if (param_4 == 0) {
      FUN_00122cc3();
    }
    else {
      (**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);
    }
    return;
  }
  return;
}


CMP dword ptr [RDI + 0x1d0],0x4
JZ 0x00131844
SUB RSP,0x8
TEST RCX,RCX
JZ 0x00131838
MOVSXD RDX,dword ptr [RCX + 0x10]
MOV RSI,RCX
CALL qword ptr [RDI + RDX*0x8 + 0x3c8]
ADD RSP,0x8
RET
MOV ECX,0x0
CALL 0x00122cc3
JMP 0x00131833
RET
(translation_unit "void FUN_00131813(long param_1,undefined8 param_2,undefined8 param_3,long param_4)\n\n{\n  if (*(int *)(param_1 + 0x1d0) != 4) {\n    if (param_4 == 0) {\n      FUN_00122cc3();\n    }\n    else {\n      (**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);\n    }\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00131813(long param_1,undefined8 param_2,undefined8 param_3,long param_4)\n\n{\n  if (*(int *)(param_1 + 0x1d0) != 4) {\n    if (param_4 == 0) {\n      FUN_00122cc3();\n    }\n    else {\n      (**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);\n    }\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00131813(long param_1,undefined8 param_2,undefined8 param_3,long param_4)" identifier (parameter_list "(long param_1,undefined8 param_2,undefined8 param_3,long param_4)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "long param_4" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  if (*(int *)(param_1 + 0x1d0) != 4) {\n    if (param_4 == 0) {\n      FUN_00122cc3();\n    }\n    else {\n      (**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);\n    }\n    return;\n  }\n  return;\n}" { (if_statement "if (*(int *)(param_1 + 0x1d0) != 4) {\n    if (param_4 == 0) {\n      FUN_00122cc3();\n    }\n    else {\n      (**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);\n    }\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x1d0) != 4)" ( (binary_expression "*(int *)(param_1 + 0x1d0) != 4" (pointer_expression "*(int *)(param_1 + 0x1d0)" * (cast_expression "(int *)(param_1 + 0x1d0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1d0)" ( (binary_expression "param_1 + 0x1d0" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    if (param_4 == 0) {\n      FUN_00122cc3();\n    }\n    else {\n      (**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);\n    }\n    return;\n  }" { (if_statement "if (param_4 == 0) {\n      FUN_00122cc3();\n    }\n    else {\n      (**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);\n    }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n      FUN_00122cc3();\n    }" { (expression_statement "FUN_00122cc3();" (call_expression "FUN_00122cc3()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n      (**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);\n    }" else (compound_statement "{\n      (**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);\n    }" { (expression_statement "(**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);" (call_expression "(**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4)" (parenthesized_expression "(**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))" ( (pointer_expression "**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8)" * (pointer_expression "*(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8)" * (cast_expression "(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8)" ( (binary_expression "param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8" (binary_expression "param_1 + 0x3c8" identifier + number_literal) + (binary_expression "(long)*(int *)(param_4 + 0x10) * 8" (cast_expression "(long)*(int *)(param_4 + 0x10)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(param_4 + 0x10)" * (cast_expression "(int *)(param_4 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x10)" ( (binary_expression "param_4 + 0x10" identifier + number_literal) ))))) * number_literal)) ))))) )) (argument_list "(param_1,param_4)" ( identifier , identifier ))) ;) }))) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid ssh2_bare_connection_protocol(Ssh_conflict ssh,void *vin,int inlen,Packet *pktin)\n\n{\n  uchar *in;\n  \n  if (ssh->state != CHAN_SHARING) {\n    if (pktin == (Packet *)0x0) {\n      do_ssh2_authconn(ssh,(uchar *)vin,inlen,(Packet *)0x0);\n    }\n    else {\n      (*ssh->packet_dispatch[pktin->type])(ssh,pktin);\n    }\n    return;\n  }\n  return;\n}\n\n" comment (function_definition "void ssh2_bare_connection_protocol(Ssh_conflict ssh,void *vin,int inlen,Packet *pktin)\n\n{\n  uchar *in;\n  \n  if (ssh->state != CHAN_SHARING) {\n    if (pktin == (Packet *)0x0) {\n      do_ssh2_authconn(ssh,(uchar *)vin,inlen,(Packet *)0x0);\n    }\n    else {\n      (*ssh->packet_dispatch[pktin->type])(ssh,pktin);\n    }\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "ssh2_bare_connection_protocol(Ssh_conflict ssh,void *vin,int inlen,Packet *pktin)" identifier (parameter_list "(Ssh_conflict ssh,void *vin,int inlen,Packet *pktin)" ( (parameter_declaration "Ssh_conflict ssh" type_identifier identifier) , (parameter_declaration "void *vin" primitive_type (pointer_declarator "*vin" * identifier)) , (parameter_declaration "int inlen" primitive_type identifier) , (parameter_declaration "Packet *pktin" type_identifier (pointer_declarator "*pktin" * identifier)) ))) (compound_statement "{\n  uchar *in;\n  \n  if (ssh->state != CHAN_SHARING) {\n    if (pktin == (Packet *)0x0) {\n      do_ssh2_authconn(ssh,(uchar *)vin,inlen,(Packet *)0x0);\n    }\n    else {\n      (*ssh->packet_dispatch[pktin->type])(ssh,pktin);\n    }\n    return;\n  }\n  return;\n}" { (declaration "uchar *in;" type_identifier (pointer_declarator "*in" * identifier) ;) (if_statement "if (ssh->state != CHAN_SHARING) {\n    if (pktin == (Packet *)0x0) {\n      do_ssh2_authconn(ssh,(uchar *)vin,inlen,(Packet *)0x0);\n    }\n    else {\n      (*ssh->packet_dispatch[pktin->type])(ssh,pktin);\n    }\n    return;\n  }" if (parenthesized_expression "(ssh->state != CHAN_SHARING)" ( (binary_expression "ssh->state != CHAN_SHARING" (field_expression "ssh->state" identifier -> field_identifier) != identifier) )) (compound_statement "{\n    if (pktin == (Packet *)0x0) {\n      do_ssh2_authconn(ssh,(uchar *)vin,inlen,(Packet *)0x0);\n    }\n    else {\n      (*ssh->packet_dispatch[pktin->type])(ssh,pktin);\n    }\n    return;\n  }" { (if_statement "if (pktin == (Packet *)0x0) {\n      do_ssh2_authconn(ssh,(uchar *)vin,inlen,(Packet *)0x0);\n    }\n    else {\n      (*ssh->packet_dispatch[pktin->type])(ssh,pktin);\n    }" if (parenthesized_expression "(pktin == (Packet *)0x0)" ( (binary_expression "pktin == (Packet *)0x0" identifier == (cast_expression "(Packet *)0x0" ( (type_descriptor "Packet *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      do_ssh2_authconn(ssh,(uchar *)vin,inlen,(Packet *)0x0);\n    }" { (expression_statement "do_ssh2_authconn(ssh,(uchar *)vin,inlen,(Packet *)0x0);" (call_expression "do_ssh2_authconn(ssh,(uchar *)vin,inlen,(Packet *)0x0)" identifier (argument_list "(ssh,(uchar *)vin,inlen,(Packet *)0x0)" ( identifier , (cast_expression "(uchar *)vin" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , (cast_expression "(Packet *)0x0" ( (type_descriptor "Packet *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) }) (else_clause "else {\n      (*ssh->packet_dispatch[pktin->type])(ssh,pktin);\n    }" else (compound_statement "{\n      (*ssh->packet_dispatch[pktin->type])(ssh,pktin);\n    }" { (expression_statement "(*ssh->packet_dispatch[pktin->type])(ssh,pktin);" (call_expression "(*ssh->packet_dispatch[pktin->type])(ssh,pktin)" (parenthesized_expression "(*ssh->packet_dispatch[pktin->type])" ( (pointer_expression "*ssh->packet_dispatch[pktin->type]" * (subscript_expression "ssh->packet_dispatch[pktin->type]" (field_expression "ssh->packet_dispatch" identifier -> field_identifier) [ (field_expression "pktin->type" identifier -> field_identifier) ])) )) (argument_list "(ssh,pktin)" ( identifier , identifier ))) ;) }))) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00131813(long param_1,undefined8 param_2,undefined8 param_3,long param_4)\n\n{\n  if (*(int *)(param_1 + 0x1d0) != 4) {\n    if (param_4 == 0) {\n      FUN_00122cc3();\n    }\n    else {\n      (**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);\n    }\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00131813(long param_1,undefined8 param_2,undefined8 param_3,long param_4)\n\n{\n  if (*(int *)(param_1 + 0x1d0) != 4) {\n    if (param_4 == 0) {\n      FUN_00122cc3();\n    }\n    else {\n      (**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);\n    }\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00131813(long param_1,undefined8 param_2,undefined8 param_3,long param_4)" identifier (parameter_list "(long param_1,undefined8 param_2,undefined8 param_3,long param_4)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "long param_4" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  if (*(int *)(param_1 + 0x1d0) != 4) {\n    if (param_4 == 0) {\n      FUN_00122cc3();\n    }\n    else {\n      (**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);\n    }\n    return;\n  }\n  return;\n}" { (if_statement "if (*(int *)(param_1 + 0x1d0) != 4) {\n    if (param_4 == 0) {\n      FUN_00122cc3();\n    }\n    else {\n      (**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);\n    }\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x1d0) != 4)" ( (binary_expression "*(int *)(param_1 + 0x1d0) != 4" (pointer_expression "*(int *)(param_1 + 0x1d0)" * (cast_expression "(int *)(param_1 + 0x1d0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1d0)" ( (binary_expression "param_1 + 0x1d0" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    if (param_4 == 0) {\n      FUN_00122cc3();\n    }\n    else {\n      (**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);\n    }\n    return;\n  }" { (if_statement "if (param_4 == 0) {\n      FUN_00122cc3();\n    }\n    else {\n      (**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);\n    }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n      FUN_00122cc3();\n    }" { (expression_statement "FUN_00122cc3();" (call_expression "FUN_00122cc3()" identifier (argument_list "()" ( ))) ;) }) (else_clause "else {\n      (**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);\n    }" else (compound_statement "{\n      (**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);\n    }" { (expression_statement "(**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);" (call_expression "(**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4)" (parenthesized_expression "(**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))" ( (pointer_expression "**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8)" * (pointer_expression "*(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8)" * (cast_expression "(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8)" ( (binary_expression "param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8" (binary_expression "param_1 + 0x3c8" identifier + number_literal) + (binary_expression "(long)*(int *)(param_4 + 0x10) * 8" (cast_expression "(long)*(int *)(param_4 + 0x10)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(param_4 + 0x10)" * (cast_expression "(int *)(param_4 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x10)" ( (binary_expression "param_4 + 0x10" identifier + number_literal) ))))) * number_literal)) ))))) )) (argument_list "(param_1,param_4)" ( identifier , identifier ))) ;) }))) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (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 { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) * LIT)) ))))) )) (argument_list ( IDENT , IDENT ))) ;) }))) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_00131813(long param_1,undefined8 param_2,undefined8 param_3,long param_4)\n\n{\n  if (*(int *)(param_1 + 0x1d0) != 4) {\n    if (param_4 == 0) {\n      FUN_00122cc3();\n    }\n    else {\n      (**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);\n    }\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00131813(long param_1,undefined8 param_2,undefined8 param_3,long param_4)" (identifier "FUN_00131813") (parameter_list "(long param_1,undefined8 param_2,undefined8 param_3,long param_4)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) (, ",") (parameter_declaration "long param_4" (sized_type_specifier "long" (long "long")) (identifier "param_4")) () ")"))) (compound_statement "{\n  if (*(int *)(param_1 + 0x1d0) != 4) {\n    if (param_4 == 0) {\n      FUN_00122cc3();\n    }\n    else {\n      (**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);\n    }\n    return;\n  }\n  return;\n}" ({ "{") (if_statement "if (*(int *)(param_1 + 0x1d0) != 4) {\n    if (param_4 == 0) {\n      FUN_00122cc3();\n    }\n    else {\n      (**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);\n    }\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1d0) != 4)" (( "(") (binary_expression "*(int *)(param_1 + 0x1d0) != 4" (pointer_expression "*(int *)(param_1 + 0x1d0)" (* "*") (cast_expression "(int *)(param_1 + 0x1d0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1d0)" (( "(") (binary_expression "param_1 + 0x1d0" (identifier "param_1") (+ "+") (number_literal "0x1d0")) () ")")))) (!= "!=") (number_literal "4")) () ")")) (compound_statement "{\n    if (param_4 == 0) {\n      FUN_00122cc3();\n    }\n    else {\n      (**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);\n    }\n    return;\n  }" ({ "{") (if_statement "if (param_4 == 0) {\n      FUN_00122cc3();\n    }\n    else {\n      (**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);\n    }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00122cc3();\n    }" ({ "{") (expression_statement "FUN_00122cc3();" (call_expression "FUN_00122cc3()" (identifier "FUN_00122cc3") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      (**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);\n    }" (else "else") (compound_statement "{\n      (**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);\n    }" ({ "{") (expression_statement "(**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);" (call_expression "(**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4)" (parenthesized_expression "(**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))" (( "(") (pointer_expression "**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8)" (* "*") (pointer_expression "*(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8)" (* "*") (cast_expression "(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8)" (( "(") (binary_expression "param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8" (binary_expression "param_1 + 0x3c8" (identifier "param_1") (+ "+") (number_literal "0x3c8")) (+ "+") (binary_expression "(long)*(int *)(param_4 + 0x10) * 8" (cast_expression "(long)*(int *)(param_4 + 0x10)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "*(int *)(param_4 + 0x10)" (* "*") (cast_expression "(int *)(param_4 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0x10)" (( "(") (binary_expression "param_4 + 0x10" (identifier "param_4") (+ "+") (number_literal "0x10")) () ")"))))) (* "*") (number_literal "8"))) () ")"))))) () ")")) (argument_list "(param_1,param_4)" (( "(") (identifier "param_1") (, ",") (identifier "param_4") () ")"))) (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 ssh,void *vin,int inlen,type_2 *var_2)

{
  type_3 *in;
  
  if (ssh->state != var_1) {
    if (var_2 == (type_2 *)0x0) {
      var_3(ssh,(type_3 *)vin,inlen,(type_2 *)0x0);
    }
    else {
      (*ssh->packet_dispatch[var_2->type])(ssh,var_2);
    }
    return;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (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 (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (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)))))))) arguments: (argument_list (identifier) (identifier))))))) (return_statement))) (return_statement))))

void MASKED(long param_1,undefined8 param_2,undefined8 param_3,long param_4)

{
  if (*(int *)(param_1 + 0x1d0) != 4) {
    if (param_4 == 0) {
      FUN_00122cc3();
    }
    else {
      (**(code **)(param_1 + 0x3c8 + (long)*(int *)(param_4 + 0x10) * 8))(param_1,param_4);
    }
    return;
  }
  return;
}

