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

void ssh_send_packet_from_downstream
               (Ssh_conflict ssh,uint id,int type,void *data,int datalen,char *additional_log_text)

{
  Packet *pkt;
  
  pkt = ssh2_pkt_init(type);
  pkt->downstream_id = id;
  pkt->additional_log_text = additional_log_text;
                    /* WARNING: Subroutine does not return */
  ssh_pkt_adddata(pkt,data,datalen);
}



void ssh_send_packet_from_downstream
               (undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
               undefined4 param_5,undefined4 param_6)

{
  int iVar1;
  
  iVar1 = FUN_0003a5ec(param_3);
  *(undefined4 *)(iVar1 + 0x24) = param_2;
  *(undefined4 *)(iVar1 + 0x28) = param_6;
  FUN_0003a494(iVar1,param_4,param_5);
  FUN_00045998(param_1,iVar1);
  return;
}


lui gp,0x7
addiu gp,gp,0x12c8
addu gp,gp,t9
lw t9,-0x7b0c(gp)
addiu sp,sp,-0x30
addiu t9,t9,-0x5a14
sw ra,0x2c(sp)
sw s4,0x28(sp)
or s4,a1,zero
sw s3,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
or s1,a0,zero
sw s0,0x18(sp)
or a0,a2,zero
sw gp,0x10(sp)
or s0,a3,zero
lw s3,0x40(sp)
bal 0x0003a5ec
_lw s2,0x44(sp)
or a1,s0,zero
lw gp,0x10(sp)
or a0,v0,zero
sw s4,0x24(v0)
or a2,s3,zero
sw s2,0x28(v0)
lw t9,-0x7b0c(gp)
addiu t9,t9,-0x5b6c
bal 0x0003a494
_or s0,v0,zero
or a1,s0,zero
lw gp,0x10(sp)
or a0,s1,zero
lw ra,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw t9,-0x7b0c(gp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
addiu t9,t9,0x5998
b 0x00045998
_addiu sp,sp,0x30
(translation_unit "void ssh_send_packet_from_downstream\n               (undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n               undefined4 param_5,undefined4 param_6)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0003a5ec(param_3);\n  *(undefined4 *)(iVar1 + 0x24) = param_2;\n  *(undefined4 *)(iVar1 + 0x28) = param_6;\n  FUN_0003a494(iVar1,param_4,param_5);\n  FUN_00045998(param_1,iVar1);\n  return;\n}\n\n" (function_definition "void ssh_send_packet_from_downstream\n               (undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n               undefined4 param_5,undefined4 param_6)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0003a5ec(param_3);\n  *(undefined4 *)(iVar1 + 0x24) = param_2;\n  *(undefined4 *)(iVar1 + 0x28) = param_6;\n  FUN_0003a494(iVar1,param_4,param_5);\n  FUN_00045998(param_1,iVar1);\n  return;\n}" primitive_type (function_declarator "ssh_send_packet_from_downstream\n               (undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n               undefined4 param_5,undefined4 param_6)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n               undefined4 param_5,undefined4 param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_0003a5ec(param_3);\n  *(undefined4 *)(iVar1 + 0x24) = param_2;\n  *(undefined4 *)(iVar1 + 0x28) = param_6;\n  FUN_0003a494(iVar1,param_4,param_5);\n  FUN_00045998(param_1,iVar1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_0003a5ec(param_3);" (assignment_expression "iVar1 = FUN_0003a5ec(param_3)" identifier = (call_expression "FUN_0003a5ec(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x24) = param_2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x24) = param_2" (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" * (cast_expression "(undefined4 *)(iVar1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x28) = param_6;" (assignment_expression "*(undefined4 *)(iVar1 + 0x28) = param_6" (pointer_expression "*(undefined4 *)(iVar1 + 0x28)" * (cast_expression "(undefined4 *)(iVar1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x28)" ( (binary_expression "iVar1 + 0x28" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_0003a494(iVar1,param_4,param_5);" (call_expression "FUN_0003a494(iVar1,param_4,param_5)" identifier (argument_list "(iVar1,param_4,param_5)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_00045998(param_1,iVar1);" (call_expression "FUN_00045998(param_1,iVar1)" identifier (argument_list "(param_1,iVar1)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid ssh_send_packet_from_downstream\n               (Ssh_conflict ssh,uint id,int type,void *data,int datalen,char *additional_log_text)\n\n{\n  Packet *pkt;\n  \n  pkt = ssh2_pkt_init(type);\n  pkt->downstream_id = id;\n  pkt->additional_log_text = additional_log_text;\n                    /* WARNING: Subroutine does not return */\n  ssh_pkt_adddata(pkt,data,datalen);\n}\n\n" comment (function_definition "void ssh_send_packet_from_downstream\n               (Ssh_conflict ssh,uint id,int type,void *data,int datalen,char *additional_log_text)\n\n{\n  Packet *pkt;\n  \n  pkt = ssh2_pkt_init(type);\n  pkt->downstream_id = id;\n  pkt->additional_log_text = additional_log_text;\n                    /* WARNING: Subroutine does not return */\n  ssh_pkt_adddata(pkt,data,datalen);\n}" primitive_type (function_declarator "ssh_send_packet_from_downstream\n               (Ssh_conflict ssh,uint id,int type,void *data,int datalen,char *additional_log_text)" identifier (parameter_list "(Ssh_conflict ssh,uint id,int type,void *data,int datalen,char *additional_log_text)" ( (parameter_declaration "Ssh_conflict ssh" type_identifier identifier) , (parameter_declaration "uint id" type_identifier identifier) , (parameter_declaration "int type" primitive_type identifier) , (parameter_declaration "void *data" primitive_type (pointer_declarator "*data" * identifier)) , (parameter_declaration "int datalen" primitive_type identifier) , (parameter_declaration "char *additional_log_text" primitive_type (pointer_declarator "*additional_log_text" * identifier)) ))) (compound_statement "{\n  Packet *pkt;\n  \n  pkt = ssh2_pkt_init(type);\n  pkt->downstream_id = id;\n  pkt->additional_log_text = additional_log_text;\n                    /* WARNING: Subroutine does not return */\n  ssh_pkt_adddata(pkt,data,datalen);\n}" { (declaration "Packet *pkt;" type_identifier (pointer_declarator "*pkt" * identifier) ;) (expression_statement "pkt = ssh2_pkt_init(type);" (assignment_expression "pkt = ssh2_pkt_init(type)" identifier = (call_expression "ssh2_pkt_init(type)" identifier (argument_list "(type)" ( identifier )))) ;) (expression_statement "pkt->downstream_id = id;" (assignment_expression "pkt->downstream_id = id" (field_expression "pkt->downstream_id" identifier -> field_identifier) = identifier) ;) (expression_statement "pkt->additional_log_text = additional_log_text;" (assignment_expression "pkt->additional_log_text = additional_log_text" (field_expression "pkt->additional_log_text" identifier -> field_identifier) = identifier) ;) comment (expression_statement "ssh_pkt_adddata(pkt,data,datalen);" (call_expression "ssh_pkt_adddata(pkt,data,datalen)" identifier (argument_list "(pkt,data,datalen)" ( identifier , identifier , identifier ))) ;) })))
(translation_unit "void ssh_send_packet_from_downstream\n               (undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n               undefined4 param_5,undefined4 param_6)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0003a5ec(param_3);\n  *(undefined4 *)(iVar1 + 0x24) = param_2;\n  *(undefined4 *)(iVar1 + 0x28) = param_6;\n  FUN_0003a494(iVar1,param_4,param_5);\n  FUN_00045998(param_1,iVar1);\n  return;\n}\n\n" (function_definition "void ssh_send_packet_from_downstream\n               (undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n               undefined4 param_5,undefined4 param_6)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0003a5ec(param_3);\n  *(undefined4 *)(iVar1 + 0x24) = param_2;\n  *(undefined4 *)(iVar1 + 0x28) = param_6;\n  FUN_0003a494(iVar1,param_4,param_5);\n  FUN_00045998(param_1,iVar1);\n  return;\n}" primitive_type (function_declarator "ssh_send_packet_from_downstream\n               (undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n               undefined4 param_5,undefined4 param_6)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n               undefined4 param_5,undefined4 param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_0003a5ec(param_3);\n  *(undefined4 *)(iVar1 + 0x24) = param_2;\n  *(undefined4 *)(iVar1 + 0x28) = param_6;\n  FUN_0003a494(iVar1,param_4,param_5);\n  FUN_00045998(param_1,iVar1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_0003a5ec(param_3);" (assignment_expression "iVar1 = FUN_0003a5ec(param_3)" identifier = (call_expression "FUN_0003a5ec(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x24) = param_2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x24) = param_2" (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" * (cast_expression "(undefined4 *)(iVar1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x28) = param_6;" (assignment_expression "*(undefined4 *)(iVar1 + 0x28) = param_6" (pointer_expression "*(undefined4 *)(iVar1 + 0x28)" * (cast_expression "(undefined4 *)(iVar1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x28)" ( (binary_expression "iVar1 + 0x28" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_0003a494(iVar1,param_4,param_5);" (call_expression "FUN_0003a494(iVar1,param_4,param_5)" identifier (argument_list "(iVar1,param_4,param_5)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_00045998(param_1,iVar1);" (call_expression "FUN_00045998(param_1,iVar1)" identifier (argument_list "(param_1,iVar1)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (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 , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void ssh_send_packet_from_downstream\n               (undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n               undefined4 param_5,undefined4 param_6)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0003a5ec(param_3);\n  *(undefined4 *)(iVar1 + 0x24) = param_2;\n  *(undefined4 *)(iVar1 + 0x28) = param_6;\n  FUN_0003a494(iVar1,param_4,param_5);\n  FUN_00045998(param_1,iVar1);\n  return;\n}" (primitive_type "void") (function_declarator "ssh_send_packet_from_downstream\n               (undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n               undefined4 param_5,undefined4 param_6)" (identifier "ssh_send_packet_from_downstream") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n               undefined4 param_5,undefined4 param_6)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_0003a5ec(param_3);\n  *(undefined4 *)(iVar1 + 0x24) = param_2;\n  *(undefined4 *)(iVar1 + 0x28) = param_6;\n  FUN_0003a494(iVar1,param_4,param_5);\n  FUN_00045998(param_1,iVar1);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = FUN_0003a5ec(param_3);" (assignment_expression "iVar1 = FUN_0003a5ec(param_3)" (identifier "iVar1") (= "=") (call_expression "FUN_0003a5ec(param_3)" (identifier "FUN_0003a5ec") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x24) = param_2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x24) = param_2" (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x24)" (( "(") (binary_expression "iVar1 + 0x24" (identifier "iVar1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x28) = param_6;" (assignment_expression "*(undefined4 *)(iVar1 + 0x28) = param_6" (pointer_expression "*(undefined4 *)(iVar1 + 0x28)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x28)" (( "(") (binary_expression "iVar1 + 0x28" (identifier "iVar1") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (identifier "param_6")) (; ";")) (expression_statement "FUN_0003a494(iVar1,param_4,param_5);" (call_expression "FUN_0003a494(iVar1,param_4,param_5)" (identifier "FUN_0003a494") (argument_list "(iVar1,param_4,param_5)" (( "(") (identifier "iVar1") (, ",") (identifier "param_4") (, ",") (identifier "param_5") () ")"))) (; ";")) (expression_statement "FUN_00045998(param_1,iVar1);" (call_expression "FUN_00045998(param_1,iVar1)" (identifier "FUN_00045998") (argument_list "(param_1,iVar1)" (( "(") (identifier "param_1") (, ",") (identifier "iVar1") () ")"))) (; ";")) (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 id,int type,void *data,int datalen,char *additional_log_text)

{
  type_3 *pkt;
  
  pkt = var_1(type);
  pkt->downstream_id = id;
  pkt->additional_log_text = additional_log_text;
                    /* WARNING: Subroutine does not return */
  var_2(pkt,data,datalen);
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (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))))) right: (identifier))) (expression_statement (assignment_expression left: (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))))) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement))))

void MASKED
               (undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
               undefined4 param_5,undefined4 param_6)

{
  int iVar1;
  
  iVar1 = FUN_0003a5ec(param_3);
  *(undefined4 *)(iVar1 + 0x24) = param_2;
  *(undefined4 *)(iVar1 + 0x28) = param_6;
  FUN_0003a494(iVar1,param_4,param_5);
  FUN_00045998(param_1,iVar1);
  return;
}

