
size_t bc_vec_npush(BcVec *v,size_t n,void *data)

{
  size_t sVar1;
  
  sVar1 = v->len;
  if (v->cap < sVar1 + n) {
    bc_vec_grow(v,n);
  }
  (*(code *)PTR_memmove_0012b174)(v->v + v->size * sVar1,data,v->size * n);
  v->len = sVar1 + n;
  return sVar1;
}



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

{
  int iVar1;
  
  iVar1 = param_1[1];
  if ((uint)param_1[2] < (uint)(iVar1 + param_2)) {
    FUN_0001fae0();
  }
  (*(code *)PTR_memmove_0012b174)(param_1[3] * iVar1 + *param_1,param_3,param_1[3] * param_2);
  param_1[1] = iVar1 + param_2;
  return iVar1;
}


lui gp,0x11
addiu gp,gp,0x23a0
addu gp,gp,t9
addiu sp,sp,-0x30
lw v0,0x8(a0)
sw s1,0x1c(sp)
sw s2,0x20(sp)
lw s1,0x4(a0)
sw gp,0x10(sp)
sw s4,0x28(sp)
or s4,a2,zero
addu s2,s1,a1
sw s3,0x24(sp)
sw s0,0x18(sp)
or s3,a1,zero
sltu v0,v0,s2
sw ra,0x2c(sp)
beq v0,zero,0x0001fe10
_or s0,a0,zero
lw t9,-0x7ef8(gp)
addiu t9,t9,-0x520
bal 0x0001fae0
_nop
lw gp,0x10(sp)
lw v0,0xc(s0)
or a1,s4,zero
lw a0,0x0(s0)
lw t9,-0x6fdc(gp)
mul v1,v0,s1
mul a2,v0,s3
jalr t9
_addu a0,v1,a0
or v0,s1,zero
lw ra,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s1,0x1c(sp)
sw s2,0x4(s0)
lw s2,0x20(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "int FUN_0001fdb0(int *param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = param_1[1];\n  if ((uint)param_1[2] < (uint)(iVar1 + param_2)) {\n    FUN_0001fae0();\n  }\n  (*(code *)PTR_memmove_0012b174)(param_1[3] * iVar1 + *param_1,param_3,param_1[3] * param_2);\n  param_1[1] = iVar1 + param_2;\n  return iVar1;\n}\n\n" (function_definition "int FUN_0001fdb0(int *param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = param_1[1];\n  if ((uint)param_1[2] < (uint)(iVar1 + param_2)) {\n    FUN_0001fae0();\n  }\n  (*(code *)PTR_memmove_0012b174)(param_1[3] * iVar1 + *param_1,param_3,param_1[3] * param_2);\n  param_1[1] = iVar1 + param_2;\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0001fdb0(int *param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(int *param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = param_1[1];\n  if ((uint)param_1[2] < (uint)(iVar1 + param_2)) {\n    FUN_0001fae0();\n  }\n  (*(code *)PTR_memmove_0012b174)(param_1[3] * iVar1 + *param_1,param_3,param_1[3] * param_2);\n  param_1[1] = iVar1 + param_2;\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if ((uint)param_1[2] < (uint)(iVar1 + param_2)) {\n    FUN_0001fae0();\n  }" if (parenthesized_expression "((uint)param_1[2] < (uint)(iVar1 + param_2))" ( (binary_expression "(uint)param_1[2] < (uint)(iVar1 + param_2)" (cast_expression "(uint)param_1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) < (call_expression "(uint)(iVar1 + param_2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 + param_2)" ( (binary_expression "iVar1 + param_2" identifier + identifier) )))) )) (compound_statement "{\n    FUN_0001fae0();\n  }" { (expression_statement "FUN_0001fae0();" (call_expression "FUN_0001fae0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "(*(code *)PTR_memmove_0012b174)(param_1[3] * iVar1 + *param_1,param_3,param_1[3] * param_2);" (call_expression "(*(code *)PTR_memmove_0012b174)(param_1[3] * iVar1 + *param_1,param_3,param_1[3] * param_2)" (parenthesized_expression "(*(code *)PTR_memmove_0012b174)" ( (pointer_expression "*(code *)PTR_memmove_0012b174" * (cast_expression "(code *)PTR_memmove_0012b174" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[3] * iVar1 + *param_1,param_3,param_1[3] * param_2)" ( (binary_expression "param_1[3] * iVar1 + *param_1" (binary_expression "param_1[3] * iVar1" (subscript_expression "param_1[3]" identifier [ number_literal ]) * identifier) + (pointer_expression "*param_1" * identifier)) , identifier , (binary_expression "param_1[3] * param_2" (subscript_expression "param_1[3]" identifier [ number_literal ]) * identifier) ))) ;) (expression_statement "param_1[1] = iVar1 + param_2;" (assignment_expression "param_1[1] = iVar1 + param_2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar1 + param_2" identifier + identifier)) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "size_t bc_vec_npush(BcVec *v,size_t n,void *data)\n\n{\n  size_t sVar1;\n  \n  sVar1 = v->len;\n  if (v->cap < sVar1 + n) {\n    bc_vec_grow(v,n);\n  }\n  (*(code *)PTR_memmove_0012b174)(v->v + v->size * sVar1,data,v->size * n);\n  v->len = sVar1 + n;\n  return sVar1;\n}\n\n" (function_definition "size_t bc_vec_npush(BcVec *v,size_t n,void *data)\n\n{\n  size_t sVar1;\n  \n  sVar1 = v->len;\n  if (v->cap < sVar1 + n) {\n    bc_vec_grow(v,n);\n  }\n  (*(code *)PTR_memmove_0012b174)(v->v + v->size * sVar1,data,v->size * n);\n  v->len = sVar1 + n;\n  return sVar1;\n}" primitive_type (function_declarator "bc_vec_npush(BcVec *v,size_t n,void *data)" identifier (parameter_list "(BcVec *v,size_t n,void *data)" ( (parameter_declaration "BcVec *v" type_identifier (pointer_declarator "*v" * identifier)) , (parameter_declaration "size_t n" primitive_type identifier) , (parameter_declaration "void *data" primitive_type (pointer_declarator "*data" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  \n  sVar1 = v->len;\n  if (v->cap < sVar1 + n) {\n    bc_vec_grow(v,n);\n  }\n  (*(code *)PTR_memmove_0012b174)(v->v + v->size * sVar1,data,v->size * n);\n  v->len = sVar1 + n;\n  return sVar1;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (expression_statement "sVar1 = v->len;" (assignment_expression "sVar1 = v->len" identifier = (field_expression "v->len" identifier -> field_identifier)) ;) (if_statement "if (v->cap < sVar1 + n) {\n    bc_vec_grow(v,n);\n  }" if (parenthesized_expression "(v->cap < sVar1 + n)" ( (binary_expression "v->cap < sVar1 + n" (field_expression "v->cap" identifier -> field_identifier) < (binary_expression "sVar1 + n" identifier + identifier)) )) (compound_statement "{\n    bc_vec_grow(v,n);\n  }" { (expression_statement "bc_vec_grow(v,n);" (call_expression "bc_vec_grow(v,n)" identifier (argument_list "(v,n)" ( identifier , identifier ))) ;) })) (expression_statement "(*(code *)PTR_memmove_0012b174)(v->v + v->size * sVar1,data,v->size * n);" (call_expression "(*(code *)PTR_memmove_0012b174)(v->v + v->size * sVar1,data,v->size * n)" (parenthesized_expression "(*(code *)PTR_memmove_0012b174)" ( (pointer_expression "*(code *)PTR_memmove_0012b174" * (cast_expression "(code *)PTR_memmove_0012b174" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(v->v + v->size * sVar1,data,v->size * n)" ( (binary_expression "v->v + v->size * sVar1" (field_expression "v->v" identifier -> field_identifier) + (binary_expression "v->size * sVar1" (field_expression "v->size" identifier -> field_identifier) * identifier)) , identifier , (binary_expression "v->size * n" (field_expression "v->size" identifier -> field_identifier) * identifier) ))) ;) (expression_statement "v->len = sVar1 + n;" (assignment_expression "v->len = sVar1 + n" (field_expression "v->len" identifier -> field_identifier) = (binary_expression "sVar1 + n" identifier + identifier)) ;) (return_statement "return sVar1;" return identifier ;) })))
(translation_unit "int FUN_0001fdb0(int *param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = param_1[1];\n  if ((uint)param_1[2] < (uint)(iVar1 + param_2)) {\n    FUN_0001fae0();\n  }\n  (*(code *)PTR_memmove_0012b174)(param_1[3] * iVar1 + *param_1,param_3,param_1[3] * param_2);\n  param_1[1] = iVar1 + param_2;\n  return iVar1;\n}\n\n" (function_definition "int FUN_0001fdb0(int *param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = param_1[1];\n  if ((uint)param_1[2] < (uint)(iVar1 + param_2)) {\n    FUN_0001fae0();\n  }\n  (*(code *)PTR_memmove_0012b174)(param_1[3] * iVar1 + *param_1,param_3,param_1[3] * param_2);\n  param_1[1] = iVar1 + param_2;\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0001fdb0(int *param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(int *param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = param_1[1];\n  if ((uint)param_1[2] < (uint)(iVar1 + param_2)) {\n    FUN_0001fae0();\n  }\n  (*(code *)PTR_memmove_0012b174)(param_1[3] * iVar1 + *param_1,param_3,param_1[3] * param_2);\n  param_1[1] = iVar1 + param_2;\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if ((uint)param_1[2] < (uint)(iVar1 + param_2)) {\n    FUN_0001fae0();\n  }" if (parenthesized_expression "((uint)param_1[2] < (uint)(iVar1 + param_2))" ( (binary_expression "(uint)param_1[2] < (uint)(iVar1 + param_2)" (cast_expression "(uint)param_1[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) < (call_expression "(uint)(iVar1 + param_2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar1 + param_2)" ( (binary_expression "iVar1 + param_2" identifier + identifier) )))) )) (compound_statement "{\n    FUN_0001fae0();\n  }" { (expression_statement "FUN_0001fae0();" (call_expression "FUN_0001fae0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "(*(code *)PTR_memmove_0012b174)(param_1[3] * iVar1 + *param_1,param_3,param_1[3] * param_2);" (call_expression "(*(code *)PTR_memmove_0012b174)(param_1[3] * iVar1 + *param_1,param_3,param_1[3] * param_2)" (parenthesized_expression "(*(code *)PTR_memmove_0012b174)" ( (pointer_expression "*(code *)PTR_memmove_0012b174" * (cast_expression "(code *)PTR_memmove_0012b174" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[3] * iVar1 + *param_1,param_3,param_1[3] * param_2)" ( (binary_expression "param_1[3] * iVar1 + *param_1" (binary_expression "param_1[3] * iVar1" (subscript_expression "param_1[3]" identifier [ number_literal ]) * identifier) + (pointer_expression "*param_1" * identifier)) , identifier , (binary_expression "param_1[3] * param_2" (subscript_expression "param_1[3]" identifier [ number_literal ]) * identifier) ))) ;) (expression_statement "param_1[1] = iVar1 + param_2;" (assignment_expression "param_1[1] = iVar1 + param_2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar1 + param_2" identifier + identifier)) ;) (return_statement "return iVar1;" 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 ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + IDENT) )))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) * IDENT) + (pointer_expression * IDENT)) , IDENT , (binary_expression (subscript_expression IDENT [ LIT ]) * IDENT) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + IDENT)) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_0001fdb0(int *param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = param_1[1];\n  if ((uint)param_1[2] < (uint)(iVar1 + param_2)) {\n    FUN_0001fae0();\n  }\n  (*(code *)PTR_memmove_0012b174)(param_1[3] * iVar1 + *param_1,param_3,param_1[3] * param_2);\n  param_1[1] = iVar1 + param_2;\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_0001fdb0(int *param_1,int param_2,undefined4 param_3)" (identifier "FUN_0001fdb0") (parameter_list "(int *param_1,int param_2,undefined4 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") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = param_1[1];\n  if ((uint)param_1[2] < (uint)(iVar1 + param_2)) {\n    FUN_0001fae0();\n  }\n  (*(code *)PTR_memmove_0012b174)(param_1[3] * iVar1 + *param_1,param_3,param_1[3] * param_2);\n  param_1[1] = iVar1 + param_2;\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (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") (] "]"))) (; ";")) (if_statement "if ((uint)param_1[2] < (uint)(iVar1 + param_2)) {\n    FUN_0001fae0();\n  }" (if "if") (parenthesized_expression "((uint)param_1[2] < (uint)(iVar1 + param_2))" (( "(") (binary_expression "(uint)param_1[2] < (uint)(iVar1 + param_2)" (cast_expression "(uint)param_1[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (< "<") (call_expression "(uint)(iVar1 + param_2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar1 + param_2)" (( "(") (binary_expression "iVar1 + param_2" (identifier "iVar1") (+ "+") (identifier "param_2")) () ")")))) () ")")) (compound_statement "{\n    FUN_0001fae0();\n  }" ({ "{") (expression_statement "FUN_0001fae0();" (call_expression "FUN_0001fae0()" (identifier "FUN_0001fae0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_memmove_0012b174)(param_1[3] * iVar1 + *param_1,param_3,param_1[3] * param_2);" (call_expression "(*(code *)PTR_memmove_0012b174)(param_1[3] * iVar1 + *param_1,param_3,param_1[3] * param_2)" (parenthesized_expression "(*(code *)PTR_memmove_0012b174)" (( "(") (pointer_expression "*(code *)PTR_memmove_0012b174" (* "*") (cast_expression "(code *)PTR_memmove_0012b174" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memmove_0012b174"))) () ")")) (argument_list "(param_1[3] * iVar1 + *param_1,param_3,param_1[3] * param_2)" (( "(") (binary_expression "param_1[3] * iVar1 + *param_1" (binary_expression "param_1[3] * iVar1" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (* "*") (identifier "iVar1")) (+ "+") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (, ",") (identifier "param_3") (, ",") (binary_expression "param_1[3] * param_2" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (* "*") (identifier "param_2")) () ")"))) (; ";")) (expression_statement "param_1[1] = iVar1 + param_2;" (assignment_expression "param_1[1] = iVar1 + param_2" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar1 + param_2" (identifier "iVar1") (+ "+") (identifier "param_2"))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

size_t function_1(type_1 *v,size_t var_2,void *data)

{
  size_t var_1;
  
  var_1 = v->len;
  if (v->cap < var_1 + var_2) {
    var_3(v,var_2);
  }
  (*(type_2 *)PTR_memmove_0012b174)(v->v + v->size * var_1,data,v->size * var_2);
  v->len = var_1 + var_2;
  return var_1;
}


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

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

{
  int iVar1;
  
  iVar1 = param_1[1];
  if ((uint)param_1[2] < (uint)(iVar1 + param_2)) {
    FUN_0001fae0();
  }
  (*(code *)PTR_memmove_0012b174)(param_1[3] * iVar1 + *param_1,param_3,param_1[3] * param_2);
  param_1[1] = iVar1 + param_2;
  return iVar1;
}

