
void * xrealloc_vector_helper(void *vector,uint sizeof_and_shift,int idx)

{
  int iVar1;
  uint uVar2;
  
  iVar1 = 1 << (sizeof_and_shift & 0x1f);
  if ((iVar1 - 1U & idx) == 0) {
    uVar2 = sizeof_and_shift >> 8;
    vector = (void *)(*(code *)PTR_xrealloc_0012a2a4)(vector,(iVar1 + idx + 1) * uVar2);
    (*(code *)PTR_memset_0012aebc)((void *)(idx * uVar2 + (int)vector),0,(iVar1 + 1) * uVar2);
  }
  return vector;
}



int FUN_000fc87c(int param_1,uint param_2,uint param_3)

{
  int iVar1;
  
  iVar1 = 1 << (param_2 & 0x1f);
  if ((iVar1 - 1U & param_3) == 0) {
    param_2 = param_2 >> 8;
    param_1 = (*(code *)PTR_FUN_0012a2a4)(param_1,(iVar1 + param_3 + 1) * param_2);
    (*(code *)PTR_memset_0012aebc)(param_3 * param_2 + param_1,0,(iVar1 + 1) * param_2);
  }
  return param_1;
}


lui gp,0x3
addiu gp,gp,0x58d4
addu gp,gp,t9
addiu sp,sp,-0x30
sw s0,0x1c(sp)
li s0,0x1
sw gp,0x10(sp)
sllv s0,s0,a1
sw s2,0x24(sp)
sw ra,0x2c(sp)
or s2,a0,zero
addiu v0,s0,-0x1
sw s3,0x28(sp)
and v0,v0,a2
bne v0,zero,0x000fc8fc
_sw s1,0x20(sp)
addu v0,s0,a2
lw t9,-0x7eac(gp)
srl s1,a1,0x8
addiu a1,v0,0x1
or s3,a2,zero
jalr t9
_mul a1,a1,s1
addiu a2,s0,0x1
or s2,v0,zero
lw gp,0x10(sp)
mul v0,s3,s1
mul a2,a2,s1
or a1,zero,zero
lw t9,-0x7294(gp)
jalr t9
_addu a0,v0,s2
lw ra,0x2c(sp)
or v0,s2,zero
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "int FUN_000fc87c(int param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = 1 << (param_2 & 0x1f);\n  if ((iVar1 - 1U & param_3) == 0) {\n    param_2 = param_2 >> 8;\n    param_1 = (*(code *)PTR_FUN_0012a2a4)(param_1,(iVar1 + param_3 + 1) * param_2);\n    (*(code *)PTR_memset_0012aebc)(param_3 * param_2 + param_1,0,(iVar1 + 1) * param_2);\n  }\n  return param_1;\n}\n\n" (function_definition "int FUN_000fc87c(int param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = 1 << (param_2 & 0x1f);\n  if ((iVar1 - 1U & param_3) == 0) {\n    param_2 = param_2 >> 8;\n    param_1 = (*(code *)PTR_FUN_0012a2a4)(param_1,(iVar1 + param_3 + 1) * param_2);\n    (*(code *)PTR_memset_0012aebc)(param_3 * param_2 + param_1,0,(iVar1 + 1) * param_2);\n  }\n  return param_1;\n}" primitive_type (function_declarator "FUN_000fc87c(int param_1,uint param_2,uint param_3)" identifier (parameter_list "(int param_1,uint param_2,uint param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 1 << (param_2 & 0x1f);\n  if ((iVar1 - 1U & param_3) == 0) {\n    param_2 = param_2 >> 8;\n    param_1 = (*(code *)PTR_FUN_0012a2a4)(param_1,(iVar1 + param_3 + 1) * param_2);\n    (*(code *)PTR_memset_0012aebc)(param_3 * param_2 + param_1,0,(iVar1 + 1) * param_2);\n  }\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = 1 << (param_2 & 0x1f);" (assignment_expression "iVar1 = 1 << (param_2 & 0x1f)" identifier = (binary_expression "1 << (param_2 & 0x1f)" number_literal << (parenthesized_expression "(param_2 & 0x1f)" ( (binary_expression "param_2 & 0x1f" identifier & number_literal) )))) ;) (if_statement "if ((iVar1 - 1U & param_3) == 0) {\n    param_2 = param_2 >> 8;\n    param_1 = (*(code *)PTR_FUN_0012a2a4)(param_1,(iVar1 + param_3 + 1) * param_2);\n    (*(code *)PTR_memset_0012aebc)(param_3 * param_2 + param_1,0,(iVar1 + 1) * param_2);\n  }" if (parenthesized_expression "((iVar1 - 1U & param_3) == 0)" ( (binary_expression "(iVar1 - 1U & param_3) == 0" (parenthesized_expression "(iVar1 - 1U & param_3)" ( (binary_expression "iVar1 - 1U & param_3" (binary_expression "iVar1 - 1U" identifier - number_literal) & identifier) )) == number_literal) )) (compound_statement "{\n    param_2 = param_2 >> 8;\n    param_1 = (*(code *)PTR_FUN_0012a2a4)(param_1,(iVar1 + param_3 + 1) * param_2);\n    (*(code *)PTR_memset_0012aebc)(param_3 * param_2 + param_1,0,(iVar1 + 1) * param_2);\n  }" { (expression_statement "param_2 = param_2 >> 8;" (assignment_expression "param_2 = param_2 >> 8" identifier = (binary_expression "param_2 >> 8" identifier >> number_literal)) ;) (expression_statement "param_1 = (*(code *)PTR_FUN_0012a2a4)(param_1,(iVar1 + param_3 + 1) * param_2);" (assignment_expression "param_1 = (*(code *)PTR_FUN_0012a2a4)(param_1,(iVar1 + param_3 + 1) * param_2)" identifier = (call_expression "(*(code *)PTR_FUN_0012a2a4)(param_1,(iVar1 + param_3 + 1) * param_2)" (parenthesized_expression "(*(code *)PTR_FUN_0012a2a4)" ( (pointer_expression "*(code *)PTR_FUN_0012a2a4" * (cast_expression "(code *)PTR_FUN_0012a2a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,(iVar1 + param_3 + 1) * param_2)" ( identifier , (binary_expression "(iVar1 + param_3 + 1) * param_2" (parenthesized_expression "(iVar1 + param_3 + 1)" ( (binary_expression "iVar1 + param_3 + 1" (binary_expression "iVar1 + param_3" identifier + identifier) + number_literal) )) * identifier) )))) ;) (expression_statement "(*(code *)PTR_memset_0012aebc)(param_3 * param_2 + param_1,0,(iVar1 + 1) * param_2);" (call_expression "(*(code *)PTR_memset_0012aebc)(param_3 * param_2 + param_1,0,(iVar1 + 1) * param_2)" (parenthesized_expression "(*(code *)PTR_memset_0012aebc)" ( (pointer_expression "*(code *)PTR_memset_0012aebc" * (cast_expression "(code *)PTR_memset_0012aebc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3 * param_2 + param_1,0,(iVar1 + 1) * param_2)" ( (binary_expression "param_3 * param_2 + param_1" (binary_expression "param_3 * param_2" identifier * identifier) + identifier) , number_literal , (binary_expression "(iVar1 + 1) * param_2" (parenthesized_expression "(iVar1 + 1)" ( (binary_expression "iVar1 + 1" identifier + number_literal) )) * identifier) ))) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "void * xrealloc_vector_helper(void *vector,uint sizeof_and_shift,int idx)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = 1 << (sizeof_and_shift & 0x1f);\n  if ((iVar1 - 1U & idx) == 0) {\n    uVar2 = sizeof_and_shift >> 8;\n    vector = (void *)(*(code *)PTR_xrealloc_0012a2a4)(vector,(iVar1 + idx + 1) * uVar2);\n    (*(code *)PTR_memset_0012aebc)((void *)(idx * uVar2 + (int)vector),0,(iVar1 + 1) * uVar2);\n  }\n  return vector;\n}\n\n" (function_definition "void * xrealloc_vector_helper(void *vector,uint sizeof_and_shift,int idx)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = 1 << (sizeof_and_shift & 0x1f);\n  if ((iVar1 - 1U & idx) == 0) {\n    uVar2 = sizeof_and_shift >> 8;\n    vector = (void *)(*(code *)PTR_xrealloc_0012a2a4)(vector,(iVar1 + idx + 1) * uVar2);\n    (*(code *)PTR_memset_0012aebc)((void *)(idx * uVar2 + (int)vector),0,(iVar1 + 1) * uVar2);\n  }\n  return vector;\n}" primitive_type (pointer_declarator "* xrealloc_vector_helper(void *vector,uint sizeof_and_shift,int idx)" * (function_declarator "xrealloc_vector_helper(void *vector,uint sizeof_and_shift,int idx)" identifier (parameter_list "(void *vector,uint sizeof_and_shift,int idx)" ( (parameter_declaration "void *vector" primitive_type (pointer_declarator "*vector" * identifier)) , (parameter_declaration "uint sizeof_and_shift" type_identifier identifier) , (parameter_declaration "int idx" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  iVar1 = 1 << (sizeof_and_shift & 0x1f);\n  if ((iVar1 - 1U & idx) == 0) {\n    uVar2 = sizeof_and_shift >> 8;\n    vector = (void *)(*(code *)PTR_xrealloc_0012a2a4)(vector,(iVar1 + idx + 1) * uVar2);\n    (*(code *)PTR_memset_0012aebc)((void *)(idx * uVar2 + (int)vector),0,(iVar1 + 1) * uVar2);\n  }\n  return vector;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = 1 << (sizeof_and_shift & 0x1f);" (assignment_expression "iVar1 = 1 << (sizeof_and_shift & 0x1f)" identifier = (binary_expression "1 << (sizeof_and_shift & 0x1f)" number_literal << (parenthesized_expression "(sizeof_and_shift & 0x1f)" ( (binary_expression "sizeof_and_shift & 0x1f" identifier & number_literal) )))) ;) (if_statement "if ((iVar1 - 1U & idx) == 0) {\n    uVar2 = sizeof_and_shift >> 8;\n    vector = (void *)(*(code *)PTR_xrealloc_0012a2a4)(vector,(iVar1 + idx + 1) * uVar2);\n    (*(code *)PTR_memset_0012aebc)((void *)(idx * uVar2 + (int)vector),0,(iVar1 + 1) * uVar2);\n  }" if (parenthesized_expression "((iVar1 - 1U & idx) == 0)" ( (binary_expression "(iVar1 - 1U & idx) == 0" (parenthesized_expression "(iVar1 - 1U & idx)" ( (binary_expression "iVar1 - 1U & idx" (binary_expression "iVar1 - 1U" identifier - number_literal) & identifier) )) == number_literal) )) (compound_statement "{\n    uVar2 = sizeof_and_shift >> 8;\n    vector = (void *)(*(code *)PTR_xrealloc_0012a2a4)(vector,(iVar1 + idx + 1) * uVar2);\n    (*(code *)PTR_memset_0012aebc)((void *)(idx * uVar2 + (int)vector),0,(iVar1 + 1) * uVar2);\n  }" { (expression_statement "uVar2 = sizeof_and_shift >> 8;" (assignment_expression "uVar2 = sizeof_and_shift >> 8" identifier = (binary_expression "sizeof_and_shift >> 8" identifier >> number_literal)) ;) (expression_statement "vector = (void *)(*(code *)PTR_xrealloc_0012a2a4)(vector,(iVar1 + idx + 1) * uVar2);" (assignment_expression "vector = (void *)(*(code *)PTR_xrealloc_0012a2a4)(vector,(iVar1 + idx + 1) * uVar2)" identifier = (cast_expression "(void *)(*(code *)PTR_xrealloc_0012a2a4)(vector,(iVar1 + idx + 1) * uVar2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xrealloc_0012a2a4)(vector,(iVar1 + idx + 1) * uVar2)" (parenthesized_expression "(*(code *)PTR_xrealloc_0012a2a4)" ( (pointer_expression "*(code *)PTR_xrealloc_0012a2a4" * (cast_expression "(code *)PTR_xrealloc_0012a2a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(vector,(iVar1 + idx + 1) * uVar2)" ( identifier , (binary_expression "(iVar1 + idx + 1) * uVar2" (parenthesized_expression "(iVar1 + idx + 1)" ( (binary_expression "iVar1 + idx + 1" (binary_expression "iVar1 + idx" identifier + identifier) + number_literal) )) * identifier) ))))) ;) (expression_statement "(*(code *)PTR_memset_0012aebc)((void *)(idx * uVar2 + (int)vector),0,(iVar1 + 1) * uVar2);" (call_expression "(*(code *)PTR_memset_0012aebc)((void *)(idx * uVar2 + (int)vector),0,(iVar1 + 1) * uVar2)" (parenthesized_expression "(*(code *)PTR_memset_0012aebc)" ( (pointer_expression "*(code *)PTR_memset_0012aebc" * (cast_expression "(code *)PTR_memset_0012aebc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((void *)(idx * uVar2 + (int)vector),0,(iVar1 + 1) * uVar2)" ( (cast_expression "(void *)(idx * uVar2 + (int)vector)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(idx * uVar2 + (int)vector)" ( (binary_expression "idx * uVar2 + (int)vector" (binary_expression "idx * uVar2" identifier * identifier) + (cast_expression "(int)vector" ( (type_descriptor "int" primitive_type) ) identifier)) ))) , number_literal , (binary_expression "(iVar1 + 1) * uVar2" (parenthesized_expression "(iVar1 + 1)" ( (binary_expression "iVar1 + 1" identifier + number_literal) )) * identifier) ))) ;) })) (return_statement "return vector;" return identifier ;) })))
(translation_unit "int FUN_000fc87c(int param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = 1 << (param_2 & 0x1f);\n  if ((iVar1 - 1U & param_3) == 0) {\n    param_2 = param_2 >> 8;\n    param_1 = (*(code *)PTR_FUN_0012a2a4)(param_1,(iVar1 + param_3 + 1) * param_2);\n    (*(code *)PTR_memset_0012aebc)(param_3 * param_2 + param_1,0,(iVar1 + 1) * param_2);\n  }\n  return param_1;\n}\n\n" (function_definition "int FUN_000fc87c(int param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = 1 << (param_2 & 0x1f);\n  if ((iVar1 - 1U & param_3) == 0) {\n    param_2 = param_2 >> 8;\n    param_1 = (*(code *)PTR_FUN_0012a2a4)(param_1,(iVar1 + param_3 + 1) * param_2);\n    (*(code *)PTR_memset_0012aebc)(param_3 * param_2 + param_1,0,(iVar1 + 1) * param_2);\n  }\n  return param_1;\n}" primitive_type (function_declarator "FUN_000fc87c(int param_1,uint param_2,uint param_3)" identifier (parameter_list "(int param_1,uint param_2,uint param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 1 << (param_2 & 0x1f);\n  if ((iVar1 - 1U & param_3) == 0) {\n    param_2 = param_2 >> 8;\n    param_1 = (*(code *)PTR_FUN_0012a2a4)(param_1,(iVar1 + param_3 + 1) * param_2);\n    (*(code *)PTR_memset_0012aebc)(param_3 * param_2 + param_1,0,(iVar1 + 1) * param_2);\n  }\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = 1 << (param_2 & 0x1f);" (assignment_expression "iVar1 = 1 << (param_2 & 0x1f)" identifier = (binary_expression "1 << (param_2 & 0x1f)" number_literal << (parenthesized_expression "(param_2 & 0x1f)" ( (binary_expression "param_2 & 0x1f" identifier & number_literal) )))) ;) (if_statement "if ((iVar1 - 1U & param_3) == 0) {\n    param_2 = param_2 >> 8;\n    param_1 = (*(code *)PTR_FUN_0012a2a4)(param_1,(iVar1 + param_3 + 1) * param_2);\n    (*(code *)PTR_memset_0012aebc)(param_3 * param_2 + param_1,0,(iVar1 + 1) * param_2);\n  }" if (parenthesized_expression "((iVar1 - 1U & param_3) == 0)" ( (binary_expression "(iVar1 - 1U & param_3) == 0" (parenthesized_expression "(iVar1 - 1U & param_3)" ( (binary_expression "iVar1 - 1U & param_3" (binary_expression "iVar1 - 1U" identifier - number_literal) & identifier) )) == number_literal) )) (compound_statement "{\n    param_2 = param_2 >> 8;\n    param_1 = (*(code *)PTR_FUN_0012a2a4)(param_1,(iVar1 + param_3 + 1) * param_2);\n    (*(code *)PTR_memset_0012aebc)(param_3 * param_2 + param_1,0,(iVar1 + 1) * param_2);\n  }" { (expression_statement "param_2 = param_2 >> 8;" (assignment_expression "param_2 = param_2 >> 8" identifier = (binary_expression "param_2 >> 8" identifier >> number_literal)) ;) (expression_statement "param_1 = (*(code *)PTR_FUN_0012a2a4)(param_1,(iVar1 + param_3 + 1) * param_2);" (assignment_expression "param_1 = (*(code *)PTR_FUN_0012a2a4)(param_1,(iVar1 + param_3 + 1) * param_2)" identifier = (call_expression "(*(code *)PTR_FUN_0012a2a4)(param_1,(iVar1 + param_3 + 1) * param_2)" (parenthesized_expression "(*(code *)PTR_FUN_0012a2a4)" ( (pointer_expression "*(code *)PTR_FUN_0012a2a4" * (cast_expression "(code *)PTR_FUN_0012a2a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,(iVar1 + param_3 + 1) * param_2)" ( identifier , (binary_expression "(iVar1 + param_3 + 1) * param_2" (parenthesized_expression "(iVar1 + param_3 + 1)" ( (binary_expression "iVar1 + param_3 + 1" (binary_expression "iVar1 + param_3" identifier + identifier) + number_literal) )) * identifier) )))) ;) (expression_statement "(*(code *)PTR_memset_0012aebc)(param_3 * param_2 + param_1,0,(iVar1 + 1) * param_2);" (call_expression "(*(code *)PTR_memset_0012aebc)(param_3 * param_2 + param_1,0,(iVar1 + 1) * param_2)" (parenthesized_expression "(*(code *)PTR_memset_0012aebc)" ( (pointer_expression "*(code *)PTR_memset_0012aebc" * (cast_expression "(code *)PTR_memset_0012aebc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3 * param_2 + param_1,0,(iVar1 + 1) * param_2)" ( (binary_expression "param_3 * param_2 + param_1" (binary_expression "param_3 * param_2" identifier * identifier) + identifier) , number_literal , (binary_expression "(iVar1 + 1) * param_2" (parenthesized_expression "(iVar1 + 1)" ( (binary_expression "iVar1 + 1" identifier + number_literal) )) * identifier) ))) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression LIT << (parenthesized_expression ( (binary_expression IDENT & LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & IDENT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )) * IDENT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (binary_expression IDENT * IDENT) + IDENT) , LIT , (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * IDENT) ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_000fc87c(int param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = 1 << (param_2 & 0x1f);\n  if ((iVar1 - 1U & param_3) == 0) {\n    param_2 = param_2 >> 8;\n    param_1 = (*(code *)PTR_FUN_0012a2a4)(param_1,(iVar1 + param_3 + 1) * param_2);\n    (*(code *)PTR_memset_0012aebc)(param_3 * param_2 + param_1,0,(iVar1 + 1) * param_2);\n  }\n  return param_1;\n}" (primitive_type "int") (function_declarator "FUN_000fc87c(int param_1,uint param_2,uint param_3)" (identifier "FUN_000fc87c") (parameter_list "(int param_1,uint param_2,uint param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = 1 << (param_2 & 0x1f);\n  if ((iVar1 - 1U & param_3) == 0) {\n    param_2 = param_2 >> 8;\n    param_1 = (*(code *)PTR_FUN_0012a2a4)(param_1,(iVar1 + param_3 + 1) * param_2);\n    (*(code *)PTR_memset_0012aebc)(param_3 * param_2 + param_1,0,(iVar1 + 1) * param_2);\n  }\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = 1 << (param_2 & 0x1f);" (assignment_expression "iVar1 = 1 << (param_2 & 0x1f)" (identifier "iVar1") (= "=") (binary_expression "1 << (param_2 & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "(param_2 & 0x1f)" (( "(") (binary_expression "param_2 & 0x1f" (identifier "param_2") (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (if_statement "if ((iVar1 - 1U & param_3) == 0) {\n    param_2 = param_2 >> 8;\n    param_1 = (*(code *)PTR_FUN_0012a2a4)(param_1,(iVar1 + param_3 + 1) * param_2);\n    (*(code *)PTR_memset_0012aebc)(param_3 * param_2 + param_1,0,(iVar1 + 1) * param_2);\n  }" (if "if") (parenthesized_expression "((iVar1 - 1U & param_3) == 0)" (( "(") (binary_expression "(iVar1 - 1U & param_3) == 0" (parenthesized_expression "(iVar1 - 1U & param_3)" (( "(") (binary_expression "iVar1 - 1U & param_3" (binary_expression "iVar1 - 1U" (identifier "iVar1") (- "-") (number_literal "1U")) (& "&") (identifier "param_3")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_2 = param_2 >> 8;\n    param_1 = (*(code *)PTR_FUN_0012a2a4)(param_1,(iVar1 + param_3 + 1) * param_2);\n    (*(code *)PTR_memset_0012aebc)(param_3 * param_2 + param_1,0,(iVar1 + 1) * param_2);\n  }" ({ "{") (expression_statement "param_2 = param_2 >> 8;" (assignment_expression "param_2 = param_2 >> 8" (identifier "param_2") (= "=") (binary_expression "param_2 >> 8" (identifier "param_2") (>> ">>") (number_literal "8"))) (; ";")) (expression_statement "param_1 = (*(code *)PTR_FUN_0012a2a4)(param_1,(iVar1 + param_3 + 1) * param_2);" (assignment_expression "param_1 = (*(code *)PTR_FUN_0012a2a4)(param_1,(iVar1 + param_3 + 1) * param_2)" (identifier "param_1") (= "=") (call_expression "(*(code *)PTR_FUN_0012a2a4)(param_1,(iVar1 + param_3 + 1) * param_2)" (parenthesized_expression "(*(code *)PTR_FUN_0012a2a4)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a2a4" (* "*") (cast_expression "(code *)PTR_FUN_0012a2a4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a2a4"))) () ")")) (argument_list "(param_1,(iVar1 + param_3 + 1) * param_2)" (( "(") (identifier "param_1") (, ",") (binary_expression "(iVar1 + param_3 + 1) * param_2" (parenthesized_expression "(iVar1 + param_3 + 1)" (( "(") (binary_expression "iVar1 + param_3 + 1" (binary_expression "iVar1 + param_3" (identifier "iVar1") (+ "+") (identifier "param_3")) (+ "+") (number_literal "1")) () ")")) (* "*") (identifier "param_2")) () ")")))) (; ";")) (expression_statement "(*(code *)PTR_memset_0012aebc)(param_3 * param_2 + param_1,0,(iVar1 + 1) * param_2);" (call_expression "(*(code *)PTR_memset_0012aebc)(param_3 * param_2 + param_1,0,(iVar1 + 1) * param_2)" (parenthesized_expression "(*(code *)PTR_memset_0012aebc)" (( "(") (pointer_expression "*(code *)PTR_memset_0012aebc" (* "*") (cast_expression "(code *)PTR_memset_0012aebc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_0012aebc"))) () ")")) (argument_list "(param_3 * param_2 + param_1,0,(iVar1 + 1) * param_2)" (( "(") (binary_expression "param_3 * param_2 + param_1" (binary_expression "param_3 * param_2" (identifier "param_3") (* "*") (identifier "param_2")) (+ "+") (identifier "param_1")) (, ",") (number_literal "0") (, ",") (binary_expression "(iVar1 + 1) * param_2" (parenthesized_expression "(iVar1 + 1)" (( "(") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1")) () ")")) (* "*") (identifier "param_2")) () ")"))) (; ";")) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) 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: (binary_expression left: (number_literal) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (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 (identifier) (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal))) right: (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: (binary_expression left: (identifier) right: (identifier)) right: (identifier)) (number_literal) (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (identifier))))))) (return_statement (identifier)))))

int MASKED(int param_1,uint param_2,uint param_3)

{
  int iVar1;
  
  iVar1 = 1 << (param_2 & 0x1f);
  if ((iVar1 - 1U & param_3) == 0) {
    param_2 = param_2 >> 8;
    param_1 = (*(code *)PTR_FUN_0012a2a4)(param_1,(iVar1 + param_3 + 1) * param_2);
    (*(code *)PTR_memset_0012aebc)(param_3 * param_2 + param_1,0,(iVar1 + 1) * param_2);
  }
  return param_1;
}

