
void ssh_pkt_adddata(Packet *pkt,void *data,int len)

{
  int length;
  
  length = len + pkt->length;
  pkt->length = length;
  if (pkt->maxlen < length) {
    ssh_pkt_ensure(pkt,length);
    length = pkt->length;
  }
                    /* WARNING: Could not recover jumptable at 0x0003af70. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_memcpy_000b2f08)(pkt->data + (length - len),data);
  return;
}



void FUN_0003aef4(int *param_1,undefined4 param_2,int param_3)

{
  int iVar1;
  
  iVar1 = param_3 + *param_1;
  *param_1 = iVar1;
  if (param_1[7] < iVar1) {
    FUN_0003ae68();
    iVar1 = *param_1;
  }
                    /* WARNING: Could not recover jumptable at 0x0003af70. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_memcpy_000b2f08)(param_1[4] + (iVar1 - param_3),param_2);
  return;
}


lui gp,0x8
addiu gp,gp,-0xb84
addu gp,gp,t9
addiu sp,sp,-0x30
lw v0,0x0(a0)
lw v1,0x1c(a0)
sw s1,0x28(sp)
or s1,a1,zero
addu a1,a2,v0
sw gp,0x10(sp)
sw s0,0x24(sp)
or s0,a0,zero
slt v0,v1,a1
sw ra,0x2c(sp)
beq v0,zero,0x0003af50
_sw a1,0x0(a0)
lw t9,-0x7adc(gp)
addiu t9,t9,-0x5198
bal 0x0003ae68
_sw a2,0x1c(sp)
lw gp,0x10(sp)
lw a1,0x0(s0)
lw a2,0x1c(sp)
lw v0,0x10(s0)
subu a0,a1,a2
lw ra,0x2c(sp)
or a1,s1,zero
lw s0,0x24(sp)
lw s1,0x28(sp)
addu a0,v0,a0
lw t9,-0x7468(gp)
jr t9
_addiu sp,sp,0x30
(translation_unit "void FUN_0003aef4(int *param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = param_3 + *param_1;\n  *param_1 = iVar1;\n  if (param_1[7] < iVar1) {\n    FUN_0003ae68();\n    iVar1 = *param_1;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0003af70. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_memcpy_000b2f08)(param_1[4] + (iVar1 - param_3),param_2);\n  return;\n}\n\n" (function_definition "void FUN_0003aef4(int *param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = param_3 + *param_1;\n  *param_1 = iVar1;\n  if (param_1[7] < iVar1) {\n    FUN_0003ae68();\n    iVar1 = *param_1;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0003af70. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_memcpy_000b2f08)(param_1[4] + (iVar1 - param_3),param_2);\n  return;\n}" primitive_type (function_declarator "FUN_0003aef4(int *param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = param_3 + *param_1;\n  *param_1 = iVar1;\n  if (param_1[7] < iVar1) {\n    FUN_0003ae68();\n    iVar1 = *param_1;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0003af70. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_memcpy_000b2f08)(param_1[4] + (iVar1 - param_3),param_2);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = param_3 + *param_1;" (assignment_expression "iVar1 = param_3 + *param_1" identifier = (binary_expression "param_3 + *param_1" identifier + (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if (param_1[7] < iVar1) {\n    FUN_0003ae68();\n    iVar1 = *param_1;\n  }" if (parenthesized_expression "(param_1[7] < iVar1)" ( (binary_expression "param_1[7] < iVar1" (subscript_expression "param_1[7]" identifier [ number_literal ]) < identifier) )) (compound_statement "{\n    FUN_0003ae68();\n    iVar1 = *param_1;\n  }" { (expression_statement "FUN_0003ae68();" (call_expression "FUN_0003ae68()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) comment comment (expression_statement "(*(code *)PTR_memcpy_000b2f08)(param_1[4] + (iVar1 - param_3),param_2);" (call_expression "(*(code *)PTR_memcpy_000b2f08)(param_1[4] + (iVar1 - param_3),param_2)" (parenthesized_expression "(*(code *)PTR_memcpy_000b2f08)" ( (pointer_expression "*(code *)PTR_memcpy_000b2f08" * (cast_expression "(code *)PTR_memcpy_000b2f08" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[4] + (iVar1 - param_3),param_2)" ( (binary_expression "param_1[4] + (iVar1 - param_3)" (subscript_expression "param_1[4]" identifier [ number_literal ]) + (parenthesized_expression "(iVar1 - param_3)" ( (binary_expression "iVar1 - param_3" identifier - identifier) ))) , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void ssh_pkt_adddata(Packet *pkt,void *data,int len)\n\n{\n  int length;\n  \n  length = len + pkt->length;\n  pkt->length = length;\n  if (pkt->maxlen < length) {\n    ssh_pkt_ensure(pkt,length);\n    length = pkt->length;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0003af70. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_memcpy_000b2f08)(pkt->data + (length - len),data);\n  return;\n}\n\n" (function_definition "void ssh_pkt_adddata(Packet *pkt,void *data,int len)\n\n{\n  int length;\n  \n  length = len + pkt->length;\n  pkt->length = length;\n  if (pkt->maxlen < length) {\n    ssh_pkt_ensure(pkt,length);\n    length = pkt->length;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0003af70. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_memcpy_000b2f08)(pkt->data + (length - len),data);\n  return;\n}" primitive_type (function_declarator "ssh_pkt_adddata(Packet *pkt,void *data,int len)" identifier (parameter_list "(Packet *pkt,void *data,int len)" ( (parameter_declaration "Packet *pkt" type_identifier (pointer_declarator "*pkt" * identifier)) , (parameter_declaration "void *data" primitive_type (pointer_declarator "*data" * identifier)) , (parameter_declaration "int len" primitive_type identifier) ))) (compound_statement "{\n  int length;\n  \n  length = len + pkt->length;\n  pkt->length = length;\n  if (pkt->maxlen < length) {\n    ssh_pkt_ensure(pkt,length);\n    length = pkt->length;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0003af70. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (*(code *)PTR_memcpy_000b2f08)(pkt->data + (length - len),data);\n  return;\n}" { (declaration "int length;" primitive_type identifier ;) (expression_statement "length = len + pkt->length;" (assignment_expression "length = len + pkt->length" identifier = (binary_expression "len + pkt->length" identifier + (field_expression "pkt->length" identifier -> field_identifier))) ;) (expression_statement "pkt->length = length;" (assignment_expression "pkt->length = length" (field_expression "pkt->length" identifier -> field_identifier) = identifier) ;) (if_statement "if (pkt->maxlen < length) {\n    ssh_pkt_ensure(pkt,length);\n    length = pkt->length;\n  }" if (parenthesized_expression "(pkt->maxlen < length)" ( (binary_expression "pkt->maxlen < length" (field_expression "pkt->maxlen" identifier -> field_identifier) < identifier) )) (compound_statement "{\n    ssh_pkt_ensure(pkt,length);\n    length = pkt->length;\n  }" { (expression_statement "ssh_pkt_ensure(pkt,length);" (call_expression "ssh_pkt_ensure(pkt,length)" identifier (argument_list "(pkt,length)" ( identifier , identifier ))) ;) (expression_statement "length = pkt->length;" (assignment_expression "length = pkt->length" identifier = (field_expression "pkt->length" identifier -> field_identifier)) ;) })) comment comment (expression_statement "(*(code *)PTR_memcpy_000b2f08)(pkt->data + (length - len),data);" (call_expression "(*(code *)PTR_memcpy_000b2f08)(pkt->data + (length - len),data)" (parenthesized_expression "(*(code *)PTR_memcpy_000b2f08)" ( (pointer_expression "*(code *)PTR_memcpy_000b2f08" * (cast_expression "(code *)PTR_memcpy_000b2f08" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pkt->data + (length - len),data)" ( (binary_expression "pkt->data + (length - len)" (field_expression "pkt->data" identifier -> field_identifier) + (parenthesized_expression "(length - len)" ( (binary_expression "length - len" identifier - identifier) ))) , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0003aef4(int *param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = param_3 + *param_1;\n  *param_1 = iVar1;\n  if (param_1[7] < iVar1) {\n    FUN_0003ae68();\n    iVar1 = *param_1;\n  }\n                    \n                    \n  (*(code *)PTR_memcpy_000b2f08)(param_1[4] + (iVar1 - param_3),param_2);\n  return;\n}\n\n" (function_definition "void FUN_0003aef4(int *param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = param_3 + *param_1;\n  *param_1 = iVar1;\n  if (param_1[7] < iVar1) {\n    FUN_0003ae68();\n    iVar1 = *param_1;\n  }\n                    \n                    \n  (*(code *)PTR_memcpy_000b2f08)(param_1[4] + (iVar1 - param_3),param_2);\n  return;\n}" primitive_type (function_declarator "FUN_0003aef4(int *param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = param_3 + *param_1;\n  *param_1 = iVar1;\n  if (param_1[7] < iVar1) {\n    FUN_0003ae68();\n    iVar1 = *param_1;\n  }\n                    \n                    \n  (*(code *)PTR_memcpy_000b2f08)(param_1[4] + (iVar1 - param_3),param_2);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = param_3 + *param_1;" (assignment_expression "iVar1 = param_3 + *param_1" identifier = (binary_expression "param_3 + *param_1" identifier + (pointer_expression "*param_1" * identifier))) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if (param_1[7] < iVar1) {\n    FUN_0003ae68();\n    iVar1 = *param_1;\n  }" if (parenthesized_expression "(param_1[7] < iVar1)" ( (binary_expression "param_1[7] < iVar1" (subscript_expression "param_1[7]" identifier [ number_literal ]) < identifier) )) (compound_statement "{\n    FUN_0003ae68();\n    iVar1 = *param_1;\n  }" { (expression_statement "FUN_0003ae68();" (call_expression "FUN_0003ae68()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (expression_statement "(*(code *)PTR_memcpy_000b2f08)(param_1[4] + (iVar1 - param_3),param_2);" (call_expression "(*(code *)PTR_memcpy_000b2f08)(param_1[4] + (iVar1 - param_3),param_2)" (parenthesized_expression "(*(code *)PTR_memcpy_000b2f08)" ( (pointer_expression "*(code *)PTR_memcpy_000b2f08" * (cast_expression "(code *)PTR_memcpy_000b2f08" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[4] + (iVar1 - param_3),param_2)" ( (binary_expression "param_1[4] + (iVar1 - param_3)" (subscript_expression "param_1[4]" identifier [ number_literal ]) + (parenthesized_expression "(iVar1 - param_3)" ( (binary_expression "iVar1 - param_3" identifier - identifier) ))) , identifier ))) ;) (return_statement "return;" return ;) })))
(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 ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) + (parenthesized_expression ( (binary_expression IDENT - IDENT) ))) , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0003aef4(int *param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = param_3 + *param_1;\n  *param_1 = iVar1;\n  if (param_1[7] < iVar1) {\n    FUN_0003ae68();\n    iVar1 = *param_1;\n  }\n                    \n                    \n  (*(code *)PTR_memcpy_000b2f08)(param_1[4] + (iVar1 - param_3),param_2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0003aef4(int *param_1,undefined4 param_2,int param_3)" (identifier "FUN_0003aef4") (parameter_list "(int *param_1,undefined4 param_2,int 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 "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = param_3 + *param_1;\n  *param_1 = iVar1;\n  if (param_1[7] < iVar1) {\n    FUN_0003ae68();\n    iVar1 = *param_1;\n  }\n                    \n                    \n  (*(code *)PTR_memcpy_000b2f08)(param_1[4] + (iVar1 - param_3),param_2);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = param_3 + *param_1;" (assignment_expression "iVar1 = param_3 + *param_1" (identifier "iVar1") (= "=") (binary_expression "param_3 + *param_1" (identifier "param_3") (+ "+") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (param_1[7] < iVar1) {\n    FUN_0003ae68();\n    iVar1 = *param_1;\n  }" (if "if") (parenthesized_expression "(param_1[7] < iVar1)" (( "(") (binary_expression "param_1[7] < iVar1" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n    FUN_0003ae68();\n    iVar1 = *param_1;\n  }" ({ "{") (expression_statement "FUN_0003ae68();" (call_expression "FUN_0003ae68()" (identifier "FUN_0003ae68") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_memcpy_000b2f08)(param_1[4] + (iVar1 - param_3),param_2);" (call_expression "(*(code *)PTR_memcpy_000b2f08)(param_1[4] + (iVar1 - param_3),param_2)" (parenthesized_expression "(*(code *)PTR_memcpy_000b2f08)" (( "(") (pointer_expression "*(code *)PTR_memcpy_000b2f08" (* "*") (cast_expression "(code *)PTR_memcpy_000b2f08" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_000b2f08"))) () ")")) (argument_list "(param_1[4] + (iVar1 - param_3),param_2)" (( "(") (binary_expression "param_1[4] + (iVar1 - param_3)" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (+ "+") (parenthesized_expression "(iVar1 - param_3)" (( "(") (binary_expression "iVar1 - param_3" (identifier "iVar1") (- "-") (identifier "param_3")) () ")"))) (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *pkt,void *data,int var_1)

{
  int var_2;
  
  var_2 = var_1 + pkt->var_2;
  pkt->var_2 = var_2;
  if (pkt->maxlen < var_2) {
    var_3(pkt,var_2);
    var_2 = pkt->var_2;
  }
                    /* WARNING: Could not recover jumptable at 0x0003af70. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(type_2 *)PTR_memcpy_000b2f08)(pkt->data + (var_2 - var_1),data);
  return;
}


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

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

{
  int iVar1;
  
  iVar1 = param_3 + *param_1;
  *param_1 = iVar1;
  if (param_1[7] < iVar1) {
    FUN_0003ae68();
    iVar1 = *param_1;
  }
                    /* WARNING: Could not recover jumptable at 0x0003af70. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (*(code *)PTR_memcpy_000b2f08)(param_1[4] + (iVar1 - param_3),param_2);
  return;
}

