
void sessionAppendByte(SessionBuffer *p,u8 v,int *pRc)

{
  int iVar1;
  
  iVar1 = sessionBufferGrow(p,1,pRc);
  if (iVar1 == 0) {
    iVar1 = p->nBuf;
    p->nBuf = iVar1 + 1;
    p->aBuf[iVar1] = v;
  }
  return;
}



void FUN_0008e5a8(int *param_1,undefined1 param_2)

{
  int iVar1;
  
  iVar1 = FUN_0008e0d4(param_1,1);
  if (iVar1 == 0) {
    iVar1 = param_1[1];
    param_1[1] = iVar1 + 1;
    *(undefined1 *)(*param_1 + iVar1) = param_2;
  }
  return;
}


lui gp,0xd
addiu gp,gp,0x5008
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7e94(gp)
addiu t9,t9,-0x1f2c
sw s1,0x20(sp)
or s1,a1,zero
sw s0,0x1c(sp)
li a1,0x1
sw gp,0x10(sp)
sw ra,0x24(sp)
bal 0x0008e0d4
_or s0,a0,zero
bne v0,zero,0x0008e604
_lw ra,0x24(sp)
lw v1,0x4(s0)
lw v0,0x0(s0)
addiu a0,v1,0x1
addu v0,v0,v1
sw a0,0x4(s0)
sb s1,0x0(v0)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void FUN_0008e5a8(int *param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0008e0d4(param_1,1);\n  if (iVar1 == 0) {\n    iVar1 = param_1[1];\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0008e5a8(int *param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0008e0d4(param_1,1);\n  if (iVar1 == 0) {\n    iVar1 = param_1[1];\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0008e5a8(int *param_1,undefined1 param_2)" identifier (parameter_list "(int *param_1,undefined1 param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_0008e0d4(param_1,1);\n  if (iVar1 == 0) {\n    iVar1 = param_1[1];\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_0008e0d4(param_1,1);" (assignment_expression "iVar1 = FUN_0008e0d4(param_1,1)" identifier = (call_expression "FUN_0008e0d4(param_1,1)" identifier (argument_list "(param_1,1)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = param_1[1];\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = param_1[1];\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n  }" { (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = iVar1 + 1;" (assignment_expression "param_1[1] = iVar1 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*param_1 + iVar1) = param_2;" (assignment_expression "*(undefined1 *)(*param_1 + iVar1) = param_2" (pointer_expression "*(undefined1 *)(*param_1 + iVar1)" * (cast_expression "(undefined1 *)(*param_1 + iVar1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar1)" ( (binary_expression "*param_1 + iVar1" (pointer_expression "*param_1" * identifier) + identifier) )))) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void sessionAppendByte(SessionBuffer *p,u8 v,int *pRc)\n\n{\n  int iVar1;\n  \n  iVar1 = sessionBufferGrow(p,1,pRc);\n  if (iVar1 == 0) {\n    iVar1 = p->nBuf;\n    p->nBuf = iVar1 + 1;\n    p->aBuf[iVar1] = v;\n  }\n  return;\n}\n\n" (function_definition "void sessionAppendByte(SessionBuffer *p,u8 v,int *pRc)\n\n{\n  int iVar1;\n  \n  iVar1 = sessionBufferGrow(p,1,pRc);\n  if (iVar1 == 0) {\n    iVar1 = p->nBuf;\n    p->nBuf = iVar1 + 1;\n    p->aBuf[iVar1] = v;\n  }\n  return;\n}" primitive_type (function_declarator "sessionAppendByte(SessionBuffer *p,u8 v,int *pRc)" identifier (parameter_list "(SessionBuffer *p,u8 v,int *pRc)" ( (parameter_declaration "SessionBuffer *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "u8 v" type_identifier identifier) , (parameter_declaration "int *pRc" primitive_type (pointer_declarator "*pRc" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = sessionBufferGrow(p,1,pRc);\n  if (iVar1 == 0) {\n    iVar1 = p->nBuf;\n    p->nBuf = iVar1 + 1;\n    p->aBuf[iVar1] = v;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = sessionBufferGrow(p,1,pRc);" (assignment_expression "iVar1 = sessionBufferGrow(p,1,pRc)" identifier = (call_expression "sessionBufferGrow(p,1,pRc)" identifier (argument_list "(p,1,pRc)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = p->nBuf;\n    p->nBuf = iVar1 + 1;\n    p->aBuf[iVar1] = v;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = p->nBuf;\n    p->nBuf = iVar1 + 1;\n    p->aBuf[iVar1] = v;\n  }" { (expression_statement "iVar1 = p->nBuf;" (assignment_expression "iVar1 = p->nBuf" identifier = (field_expression "p->nBuf" identifier -> field_identifier)) ;) (expression_statement "p->nBuf = iVar1 + 1;" (assignment_expression "p->nBuf = iVar1 + 1" (field_expression "p->nBuf" identifier -> field_identifier) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "p->aBuf[iVar1] = v;" (assignment_expression "p->aBuf[iVar1] = v" (subscript_expression "p->aBuf[iVar1]" (field_expression "p->aBuf" identifier -> field_identifier) [ identifier ]) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0008e5a8(int *param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0008e0d4(param_1,1);\n  if (iVar1 == 0) {\n    iVar1 = param_1[1];\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0008e5a8(int *param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0008e0d4(param_1,1);\n  if (iVar1 == 0) {\n    iVar1 = param_1[1];\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0008e5a8(int *param_1,undefined1 param_2)" identifier (parameter_list "(int *param_1,undefined1 param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_0008e0d4(param_1,1);\n  if (iVar1 == 0) {\n    iVar1 = param_1[1];\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_0008e0d4(param_1,1);" (assignment_expression "iVar1 = FUN_0008e0d4(param_1,1)" identifier = (call_expression "FUN_0008e0d4(param_1,1)" identifier (argument_list "(param_1,1)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = param_1[1];\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = param_1[1];\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n  }" { (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = iVar1 + 1;" (assignment_expression "param_1[1] = iVar1 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined1 *)(*param_1 + iVar1) = param_2;" (assignment_expression "*(undefined1 *)(*param_1 + iVar1) = param_2" (pointer_expression "*(undefined1 *)(*param_1 + iVar1)" * (cast_expression "(undefined1 *)(*param_1 + iVar1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar1)" ( (binary_expression "*param_1 + iVar1" (pointer_expression "*param_1" * 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) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + IDENT) )))) = IDENT) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0008e5a8(int *param_1,undefined1 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_0008e0d4(param_1,1);\n  if (iVar1 == 0) {\n    iVar1 = param_1[1];\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0008e5a8(int *param_1,undefined1 param_2)" (identifier "FUN_0008e5a8") (parameter_list "(int *param_1,undefined1 param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined1 param_2" (type_identifier "undefined1") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_0008e0d4(param_1,1);\n  if (iVar1 == 0) {\n    iVar1 = param_1[1];\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = FUN_0008e0d4(param_1,1);" (assignment_expression "iVar1 = FUN_0008e0d4(param_1,1)" (identifier "iVar1") (= "=") (call_expression "FUN_0008e0d4(param_1,1)" (identifier "FUN_0008e0d4") (argument_list "(param_1,1)" (( "(") (identifier "param_1") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    iVar1 = param_1[1];\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = param_1[1];\n    param_1[1] = iVar1 + 1;\n    *(undefined1 *)(*param_1 + iVar1) = param_2;\n  }" ({ "{") (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" (identifier "iVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "param_1[1] = iVar1 + 1;" (assignment_expression "param_1[1] = iVar1 + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined1 *)(*param_1 + iVar1) = param_2;" (assignment_expression "*(undefined1 *)(*param_1 + iVar1) = param_2" (pointer_expression "*(undefined1 *)(*param_1 + iVar1)" (* "*") (cast_expression "(undefined1 *)(*param_1 + iVar1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + iVar1)" (( "(") (binary_expression "*param_1 + iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *p,type_2 v,int *pRc)

{
  int var_2;
  
  var_2 = var_1(p,1,pRc);
  if (var_2 == 0) {
    var_2 = p->nBuf;
    p->nBuf = var_2 + 1;
    p->aBuf[var_2] = v;
  }
  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)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (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: (pointer_expression argument: (identifier)) right: (identifier))))) right: (identifier))))) (return_statement))))

void MASKED(int *param_1,undefined1 param_2)

{
  int iVar1;
  
  iVar1 = FUN_0008e0d4(param_1,1);
  if (iVar1 == 0) {
    iVar1 = param_1[1];
    param_1[1] = iVar1 + 1;
    *(undefined1 *)(*param_1 + iVar1) = param_2;
  }
  return;
}

