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

int ssh_send_channel_data(ssh_channel *c,char *buf,int len)

{
  int iVar1;
  int in_t9;
  
  if (c->ssh->version != 2) {
    send_packet(c->ssh,0x17,1,c->remoteid,1,len,3,buf,len,0,in_t9 + 0x6fc80);
    return 0;
  }
  (**(code **)(in_t9 + 0x67d58))(&c->v);
  iVar1 = ssh2_try_send(c);
  return iVar1;
}



undefined4 FUN_000484d0(int *param_1,undefined4 param_2,undefined4 param_3)

{
  undefined4 uVar1;
  
  if (*(int *)(*param_1 + 0x198) != 2) {
    FUN_00048a74(*param_1,0x17,1,param_1[1],1,param_3,3,param_2,param_3,0);
    return 0;
  }
  (*(code *)PTR_bufchain_add_000b0228)(param_1 + 8);
  uVar1 = FUN_000482d8(param_1);
  return uVar1;
}


lui gp,0x7
addiu gp,gp,-0x380
addu gp,gp,t9
addiu sp,sp,-0x38
li v1,0x2
sw s0,0x30(sp)
or s0,a0,zero
lw a0,0x0(a0)
sw gp,0x28(sp)
sw ra,0x34(sp)
lw a3,0x198(a0)
beq a3,v1,0x00048554
_lw t9,-0x7ac4(gp)
or v0,a2,zero
lw a3,0x4(s0)
li v1,0x3
sw v0,0x20(sp)
or t0,a1,zero
sw v0,0x14(sp)
li v0,0x1
li a2,0x1
sw t0,0x1c(sp)
li a1,0x17
sw v1,0x18(sp)
addiu t9,t9,-0x758c
sw v0,0x10(sp)
bal 0x00048a74
_sw zero,0x24(sp)
or v0,zero,zero
lw ra,0x34(sp)
lw s0,0x30(sp)
jr ra
_addiu sp,sp,0x38
lw t9,-0x7f28(gp)
jalr t9
_addiu a0,s0,0x20
or a0,s0,zero
lw gp,0x28(sp)
lw ra,0x34(sp)
lw s0,0x30(sp)
lw t9,-0x7ac4(gp)
addiu t9,t9,-0x7d28
b 0x000482d8
_addiu sp,sp,0x38
(translation_unit "undefined4 FUN_000484d0(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(*param_1 + 0x198) != 2) {\n    FUN_00048a74(*param_1,0x17,1,param_1[1],1,param_3,3,param_2,param_3,0);\n    return 0;\n  }\n  (*(code *)PTR_bufchain_add_000b0228)(param_1 + 8);\n  uVar1 = FUN_000482d8(param_1);\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_000484d0(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(*param_1 + 0x198) != 2) {\n    FUN_00048a74(*param_1,0x17,1,param_1[1],1,param_3,3,param_2,param_3,0);\n    return 0;\n  }\n  (*(code *)PTR_bufchain_add_000b0228)(param_1 + 8);\n  uVar1 = FUN_000482d8(param_1);\n  return uVar1;\n}" type_identifier (function_declarator "FUN_000484d0(int *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (*(int *)(*param_1 + 0x198) != 2) {\n    FUN_00048a74(*param_1,0x17,1,param_1[1],1,param_3,3,param_2,param_3,0);\n    return 0;\n  }\n  (*(code *)PTR_bufchain_add_000b0228)(param_1 + 8);\n  uVar1 = FUN_000482d8(param_1);\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (*(int *)(*param_1 + 0x198) != 2) {\n    FUN_00048a74(*param_1,0x17,1,param_1[1],1,param_3,3,param_2,param_3,0);\n    return 0;\n  }" if (parenthesized_expression "(*(int *)(*param_1 + 0x198) != 2)" ( (binary_expression "*(int *)(*param_1 + 0x198) != 2" (pointer_expression "*(int *)(*param_1 + 0x198)" * (cast_expression "(int *)(*param_1 + 0x198)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x198)" ( (binary_expression "*param_1 + 0x198" (pointer_expression "*param_1" * identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_00048a74(*param_1,0x17,1,param_1[1],1,param_3,3,param_2,param_3,0);\n    return 0;\n  }" { (expression_statement "FUN_00048a74(*param_1,0x17,1,param_1[1],1,param_3,3,param_2,param_3,0);" (call_expression "FUN_00048a74(*param_1,0x17,1,param_1[1],1,param_3,3,param_2,param_3,0)" identifier (argument_list "(*param_1,0x17,1,param_1[1],1,param_3,3,param_2,param_3,0)" ( (pointer_expression "*param_1" * identifier) , number_literal , number_literal , (subscript_expression "param_1[1]" identifier [ number_literal ]) , number_literal , identifier , number_literal , identifier , identifier , number_literal ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "(*(code *)PTR_bufchain_add_000b0228)(param_1 + 8);" (call_expression "(*(code *)PTR_bufchain_add_000b0228)(param_1 + 8)" (parenthesized_expression "(*(code *)PTR_bufchain_add_000b0228)" ( (pointer_expression "*(code *)PTR_bufchain_add_000b0228" * (cast_expression "(code *)PTR_bufchain_add_000b0228" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))) ;) (expression_statement "uVar1 = FUN_000482d8(param_1);" (assignment_expression "uVar1 = FUN_000482d8(param_1)" identifier = (call_expression "FUN_000482d8(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nint ssh_send_channel_data(ssh_channel *c,char *buf,int len)\n\n{\n  int iVar1;\n  int in_t9;\n  \n  if (c->ssh->version != 2) {\n    send_packet(c->ssh,0x17,1,c->remoteid,1,len,3,buf,len,0,in_t9 + 0x6fc80);\n    return 0;\n  }\n  (**(code **)(in_t9 + 0x67d58))(&c->v);\n  iVar1 = ssh2_try_send(c);\n  return iVar1;\n}\n\n" comment (function_definition "int ssh_send_channel_data(ssh_channel *c,char *buf,int len)\n\n{\n  int iVar1;\n  int in_t9;\n  \n  if (c->ssh->version != 2) {\n    send_packet(c->ssh,0x17,1,c->remoteid,1,len,3,buf,len,0,in_t9 + 0x6fc80);\n    return 0;\n  }\n  (**(code **)(in_t9 + 0x67d58))(&c->v);\n  iVar1 = ssh2_try_send(c);\n  return iVar1;\n}" primitive_type (function_declarator "ssh_send_channel_data(ssh_channel *c,char *buf,int len)" identifier (parameter_list "(ssh_channel *c,char *buf,int len)" ( (parameter_declaration "ssh_channel *c" type_identifier (pointer_declarator "*c" * identifier)) , (parameter_declaration "char *buf" primitive_type (pointer_declarator "*buf" * identifier)) , (parameter_declaration "int len" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_t9;\n  \n  if (c->ssh->version != 2) {\n    send_packet(c->ssh,0x17,1,c->remoteid,1,len,3,buf,len,0,in_t9 + 0x6fc80);\n    return 0;\n  }\n  (**(code **)(in_t9 + 0x67d58))(&c->v);\n  iVar1 = ssh2_try_send(c);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_t9;" primitive_type identifier ;) (if_statement "if (c->ssh->version != 2) {\n    send_packet(c->ssh,0x17,1,c->remoteid,1,len,3,buf,len,0,in_t9 + 0x6fc80);\n    return 0;\n  }" if (parenthesized_expression "(c->ssh->version != 2)" ( (binary_expression "c->ssh->version != 2" (field_expression "c->ssh->version" (field_expression "c->ssh" identifier -> field_identifier) -> field_identifier) != number_literal) )) (compound_statement "{\n    send_packet(c->ssh,0x17,1,c->remoteid,1,len,3,buf,len,0,in_t9 + 0x6fc80);\n    return 0;\n  }" { (expression_statement "send_packet(c->ssh,0x17,1,c->remoteid,1,len,3,buf,len,0,in_t9 + 0x6fc80);" (call_expression "send_packet(c->ssh,0x17,1,c->remoteid,1,len,3,buf,len,0,in_t9 + 0x6fc80)" identifier (argument_list "(c->ssh,0x17,1,c->remoteid,1,len,3,buf,len,0,in_t9 + 0x6fc80)" ( (field_expression "c->ssh" identifier -> field_identifier) , number_literal , number_literal , (field_expression "c->remoteid" identifier -> field_identifier) , number_literal , identifier , number_literal , identifier , identifier , number_literal , (binary_expression "in_t9 + 0x6fc80" identifier + number_literal) ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "(**(code **)(in_t9 + 0x67d58))(&c->v);" (call_expression "(**(code **)(in_t9 + 0x67d58))(&c->v)" (parenthesized_expression "(**(code **)(in_t9 + 0x67d58))" ( (pointer_expression "**(code **)(in_t9 + 0x67d58)" * (pointer_expression "*(code **)(in_t9 + 0x67d58)" * (cast_expression "(code **)(in_t9 + 0x67d58)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x67d58)" ( (binary_expression "in_t9 + 0x67d58" identifier + number_literal) ))))) )) (argument_list "(&c->v)" ( (pointer_expression "&c->v" & (field_expression "c->v" identifier -> field_identifier)) ))) ;) (expression_statement "iVar1 = ssh2_try_send(c);" (assignment_expression "iVar1 = ssh2_try_send(c)" identifier = (call_expression "ssh2_try_send(c)" identifier (argument_list "(c)" ( identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "undefined4 FUN_000484d0(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(*param_1 + 0x198) != 2) {\n    FUN_00048a74(*param_1,0x17,1,param_1[1],1,param_3,3,param_2,param_3,0);\n    return 0;\n  }\n  (*(code *)PTR_bufchain_add_000b0228)(param_1 + 8);\n  uVar1 = FUN_000482d8(param_1);\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_000484d0(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(*param_1 + 0x198) != 2) {\n    FUN_00048a74(*param_1,0x17,1,param_1[1],1,param_3,3,param_2,param_3,0);\n    return 0;\n  }\n  (*(code *)PTR_bufchain_add_000b0228)(param_1 + 8);\n  uVar1 = FUN_000482d8(param_1);\n  return uVar1;\n}" type_identifier (function_declarator "FUN_000484d0(int *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (*(int *)(*param_1 + 0x198) != 2) {\n    FUN_00048a74(*param_1,0x17,1,param_1[1],1,param_3,3,param_2,param_3,0);\n    return 0;\n  }\n  (*(code *)PTR_bufchain_add_000b0228)(param_1 + 8);\n  uVar1 = FUN_000482d8(param_1);\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (*(int *)(*param_1 + 0x198) != 2) {\n    FUN_00048a74(*param_1,0x17,1,param_1[1],1,param_3,3,param_2,param_3,0);\n    return 0;\n  }" if (parenthesized_expression "(*(int *)(*param_1 + 0x198) != 2)" ( (binary_expression "*(int *)(*param_1 + 0x198) != 2" (pointer_expression "*(int *)(*param_1 + 0x198)" * (cast_expression "(int *)(*param_1 + 0x198)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x198)" ( (binary_expression "*param_1 + 0x198" (pointer_expression "*param_1" * identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_00048a74(*param_1,0x17,1,param_1[1],1,param_3,3,param_2,param_3,0);\n    return 0;\n  }" { (expression_statement "FUN_00048a74(*param_1,0x17,1,param_1[1],1,param_3,3,param_2,param_3,0);" (call_expression "FUN_00048a74(*param_1,0x17,1,param_1[1],1,param_3,3,param_2,param_3,0)" identifier (argument_list "(*param_1,0x17,1,param_1[1],1,param_3,3,param_2,param_3,0)" ( (pointer_expression "*param_1" * identifier) , number_literal , number_literal , (subscript_expression "param_1[1]" identifier [ number_literal ]) , number_literal , identifier , number_literal , identifier , identifier , number_literal ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "(*(code *)PTR_bufchain_add_000b0228)(param_1 + 8);" (call_expression "(*(code *)PTR_bufchain_add_000b0228)(param_1 + 8)" (parenthesized_expression "(*(code *)PTR_bufchain_add_000b0228)" ( (pointer_expression "*(code *)PTR_bufchain_add_000b0228" * (cast_expression "(code *)PTR_bufchain_add_000b0228" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))) ;) (expression_statement "uVar1 = FUN_000482d8(param_1);" (assignment_expression "uVar1 = FUN_000482d8(param_1)" identifier = (call_expression "FUN_000482d8(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , LIT , LIT , (subscript_expression IDENT [ LIT ]) , LIT , IDENT , LIT , IDENT , IDENT , LIT ))) ;) (return_statement return LIT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_000484d0(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  undefined4 uVar1;\n  \n  if (*(int *)(*param_1 + 0x198) != 2) {\n    FUN_00048a74(*param_1,0x17,1,param_1[1],1,param_3,3,param_2,param_3,0);\n    return 0;\n  }\n  (*(code *)PTR_bufchain_add_000b0228)(param_1 + 8);\n  uVar1 = FUN_000482d8(param_1);\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "FUN_000484d0(int *param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_000484d0") (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3)" (( "(") (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")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (*(int *)(*param_1 + 0x198) != 2) {\n    FUN_00048a74(*param_1,0x17,1,param_1[1],1,param_3,3,param_2,param_3,0);\n    return 0;\n  }\n  (*(code *)PTR_bufchain_add_000b0228)(param_1 + 8);\n  uVar1 = FUN_000482d8(param_1);\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if (*(int *)(*param_1 + 0x198) != 2) {\n    FUN_00048a74(*param_1,0x17,1,param_1[1],1,param_3,3,param_2,param_3,0);\n    return 0;\n  }" (if "if") (parenthesized_expression "(*(int *)(*param_1 + 0x198) != 2)" (( "(") (binary_expression "*(int *)(*param_1 + 0x198) != 2" (pointer_expression "*(int *)(*param_1 + 0x198)" (* "*") (cast_expression "(int *)(*param_1 + 0x198)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x198)" (( "(") (binary_expression "*param_1 + 0x198" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x198")) () ")")))) (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n    FUN_00048a74(*param_1,0x17,1,param_1[1],1,param_3,3,param_2,param_3,0);\n    return 0;\n  }" ({ "{") (expression_statement "FUN_00048a74(*param_1,0x17,1,param_1[1],1,param_3,3,param_2,param_3,0);" (call_expression "FUN_00048a74(*param_1,0x17,1,param_1[1],1,param_3,3,param_2,param_3,0)" (identifier "FUN_00048a74") (argument_list "(*param_1,0x17,1,param_1[1],1,param_3,3,param_2,param_3,0)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (number_literal "0x17") (, ",") (number_literal "1") (, ",") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (, ",") (number_literal "1") (, ",") (identifier "param_3") (, ",") (number_literal "3") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_bufchain_add_000b0228)(param_1 + 8);" (call_expression "(*(code *)PTR_bufchain_add_000b0228)(param_1 + 8)" (parenthesized_expression "(*(code *)PTR_bufchain_add_000b0228)" (( "(") (pointer_expression "*(code *)PTR_bufchain_add_000b0228" (* "*") (cast_expression "(code *)PTR_bufchain_add_000b0228" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_bufchain_add_000b0228"))) () ")")) (argument_list "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))) (; ";")) (expression_statement "uVar1 = FUN_000482d8(param_1);" (assignment_expression "uVar1 = FUN_000482d8(param_1)" (identifier "uVar1") (= "=") (call_expression "FUN_000482d8(param_1)" (identifier "FUN_000482d8") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

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

int function_1(type_1 *c,char *buf,int len)

{
  int iVar1;
  int var_2;
  
  if (c->ssh->version != 2) {
    var_1(c->ssh,0x17,1,c->remoteid,1,len,3,buf,len,0,var_2 + 0x6fc80);
    return 0;
  }
  (**(type_2 **)(var_2 + 0x67d58))(&c->v);
  iVar1 = var_3(c);
  return iVar1;
}


(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)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (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: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal) (number_literal) (subscript_expression argument: (identifier) index: (number_literal)) (number_literal) (identifier) (number_literal) (identifier) (identifier) (number_literal)))) (return_statement (number_literal)))) (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 (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (return_statement (identifier)))))

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

{
  undefined4 uVar1;
  
  if (*(int *)(*param_1 + 0x198) != 2) {
    FUN_00048a74(*param_1,0x17,1,param_1[1],1,param_3,3,param_2,param_3,0);
    return 0;
  }
  (*(code *)PTR_bufchain_add_000b0228)(param_1 + 8);
  uVar1 = FUN_000482d8(param_1);
  return uVar1;
}

