
/* WARNING: Unknown calling convention */

void bufchain_prefix(bufchain *ch,void **data,int *len)

{
  char *pcVar1;
  
  pcVar1 = ch->head->bufpos;
  *len = (int)ch->head->bufend - (int)pcVar1;
  *data = pcVar1;
  return;
}



void bufchain_prefix(int *param_1,int *param_2,int *param_3)

{
  int iVar1;
  
  iVar1 = *(int *)(*param_1 + 4);
  *param_3 = *(int *)(*param_1 + 8) - iVar1;
  *param_2 = iVar1;
  return;
}


lw v0,0x0(a0)
lw v1,0x4(v0)
lw v0,0x8(v0)
subu v0,v0,v1
sw v0,0x0(a2)
jr ra
_sw v1,0x0(a1)
(translation_unit "void bufchain_prefix(int *param_1,int *param_2,int *param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(*param_1 + 4);\n  *param_3 = *(int *)(*param_1 + 8) - iVar1;\n  *param_2 = iVar1;\n  return;\n}\n\n" (function_definition "void bufchain_prefix(int *param_1,int *param_2,int *param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(*param_1 + 4);\n  *param_3 = *(int *)(*param_1 + 8) - iVar1;\n  *param_2 = iVar1;\n  return;\n}" primitive_type (function_declarator "bufchain_prefix(int *param_1,int *param_2,int *param_3)" identifier (parameter_list "(int *param_1,int *param_2,int *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(*param_1 + 4);\n  *param_3 = *(int *)(*param_1 + 8) - iVar1;\n  *param_2 = iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(*param_1 + 4);" (assignment_expression "iVar1 = *(int *)(*param_1 + 4)" identifier = (pointer_expression "*(int *)(*param_1 + 4)" * (cast_expression "(int *)(*param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 4)" ( (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "*param_3 = *(int *)(*param_1 + 8) - iVar1;" (assignment_expression "*param_3 = *(int *)(*param_1 + 8) - iVar1" (pointer_expression "*param_3" * identifier) = (binary_expression "*(int *)(*param_1 + 8) - iVar1" (pointer_expression "*(int *)(*param_1 + 8)" * (cast_expression "(int *)(*param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 8)" ( (binary_expression "*param_1 + 8" (pointer_expression "*param_1" * identifier) + number_literal) )))) - identifier)) ;) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid bufchain_prefix(bufchain *ch,void **data,int *len)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = ch->head->bufpos;\n  *len = (int)ch->head->bufend - (int)pcVar1;\n  *data = pcVar1;\n  return;\n}\n\n" comment (function_definition "void bufchain_prefix(bufchain *ch,void **data,int *len)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = ch->head->bufpos;\n  *len = (int)ch->head->bufend - (int)pcVar1;\n  *data = pcVar1;\n  return;\n}" primitive_type (function_declarator "bufchain_prefix(bufchain *ch,void **data,int *len)" identifier (parameter_list "(bufchain *ch,void **data,int *len)" ( (parameter_declaration "bufchain *ch" type_identifier (pointer_declarator "*ch" * identifier)) , (parameter_declaration "void **data" primitive_type (pointer_declarator "**data" * (pointer_declarator "*data" * identifier))) , (parameter_declaration "int *len" primitive_type (pointer_declarator "*len" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = ch->head->bufpos;\n  *len = (int)ch->head->bufend - (int)pcVar1;\n  *data = pcVar1;\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = ch->head->bufpos;" (assignment_expression "pcVar1 = ch->head->bufpos" identifier = (field_expression "ch->head->bufpos" (field_expression "ch->head" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "*len = (int)ch->head->bufend - (int)pcVar1;" (assignment_expression "*len = (int)ch->head->bufend - (int)pcVar1" (pointer_expression "*len" * identifier) = (binary_expression "(int)ch->head->bufend - (int)pcVar1" (cast_expression "(int)ch->head->bufend" ( (type_descriptor "int" primitive_type) ) (field_expression "ch->head->bufend" (field_expression "ch->head" identifier -> field_identifier) -> field_identifier)) - (cast_expression "(int)pcVar1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "*data = pcVar1;" (assignment_expression "*data = pcVar1" (pointer_expression "*data" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void bufchain_prefix(int *param_1,int *param_2,int *param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(*param_1 + 4);\n  *param_3 = *(int *)(*param_1 + 8) - iVar1;\n  *param_2 = iVar1;\n  return;\n}\n\n" (function_definition "void bufchain_prefix(int *param_1,int *param_2,int *param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(*param_1 + 4);\n  *param_3 = *(int *)(*param_1 + 8) - iVar1;\n  *param_2 = iVar1;\n  return;\n}" primitive_type (function_declarator "bufchain_prefix(int *param_1,int *param_2,int *param_3)" identifier (parameter_list "(int *param_1,int *param_2,int *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(*param_1 + 4);\n  *param_3 = *(int *)(*param_1 + 8) - iVar1;\n  *param_2 = iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(*param_1 + 4);" (assignment_expression "iVar1 = *(int *)(*param_1 + 4)" identifier = (pointer_expression "*(int *)(*param_1 + 4)" * (cast_expression "(int *)(*param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 4)" ( (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (expression_statement "*param_3 = *(int *)(*param_1 + 8) - iVar1;" (assignment_expression "*param_3 = *(int *)(*param_1 + 8) - iVar1" (pointer_expression "*param_3" * identifier) = (binary_expression "*(int *)(*param_1 + 8) - iVar1" (pointer_expression "*(int *)(*param_1 + 8)" * (cast_expression "(int *)(*param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 8)" ( (binary_expression "*param_1 + 8" (pointer_expression "*param_1" * identifier) + number_literal) )))) - identifier)) ;) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" * 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 (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) - IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })))
(function_definition "void bufchain_prefix(int *param_1,int *param_2,int *param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(*param_1 + 4);\n  *param_3 = *(int *)(*param_1 + 8) - iVar1;\n  *param_2 = iVar1;\n  return;\n}" (primitive_type "void") (function_declarator "bufchain_prefix(int *param_1,int *param_2,int *param_3)" (identifier "bufchain_prefix") (parameter_list "(int *param_1,int *param_2,int *param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(*param_1 + 4);\n  *param_3 = *(int *)(*param_1 + 8) - iVar1;\n  *param_2 = iVar1;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = *(int *)(*param_1 + 4);" (assignment_expression "iVar1 = *(int *)(*param_1 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(*param_1 + 4)" (* "*") (cast_expression "(int *)(*param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 4)" (( "(") (binary_expression "*param_1 + 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*param_3 = *(int *)(*param_1 + 8) - iVar1;" (assignment_expression "*param_3 = *(int *)(*param_1 + 8) - iVar1" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (binary_expression "*(int *)(*param_1 + 8) - iVar1" (pointer_expression "*(int *)(*param_1 + 8)" (* "*") (cast_expression "(int *)(*param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 8)" (( "(") (binary_expression "*param_1 + 8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "8")) () ")")))) (- "-") (identifier "iVar1"))) (; ";")) (expression_statement "*param_2 = iVar1;" (assignment_expression "*param_2 = iVar1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

void function_1(type_1 *ch,void **data,int *len)

{
  char *pcVar1;
  
  pcVar1 = ch->head->bufpos;
  *len = (int)ch->head->bufend - (int)pcVar1;
  *data = pcVar1;
  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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (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: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement))))

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

{
  int iVar1;
  
  iVar1 = *(int *)(*param_1 + 4);
  *param_3 = *(int *)(*param_1 + 8) - iVar1;
  *param_2 = iVar1;
  return;
}

