
char * memcpy_uppcase(char *dest,char *src,size_t len)

{
  int *piVar1;
  byte *pbVar2;
  char *pcVar3;
  int iVar4;
  
  if (len != 0) {
    iVar4 = len - 1;
    piVar1 = (int *)(*(code *)PTR__MIPS_STUBS__0003b380)();
    do {
      pbVar2 = (byte *)(src + iVar4);
      pcVar3 = dest + iVar4;
      iVar4 = iVar4 + -1;
      *pcVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);
    } while (iVar4 != -1);
  }
  return dest;
}



int FUN_00023744(int param_1,int param_2,int param_3)

{
  int *piVar1;
  byte *pbVar2;
  undefined1 *puVar3;
  
  if (param_3 != 0) {
    param_3 = param_3 + -1;
    piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0003b380)();
    do {
      pbVar2 = (byte *)(param_2 + param_3);
      puVar3 = (undefined1 *)(param_1 + param_3);
      param_3 = param_3 + -1;
      *puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);
    } while (param_3 != -1);
  }
  return param_1;
}


lui gp,0x2
addiu gp,gp,-0x664
addu gp,gp,t9
addiu sp,sp,-0x28
sw gp,0x10(sp)
sw s1,0x1c(sp)
or s1,a0,zero
sw ra,0x24(sp)
sw s2,0x20(sp)
beq a2,zero,0x000237ac
_sw s0,0x18(sp)
lw t9,-0x7d60(gp)
or s2,a1,zero
jalr t9
_addiu s0,a2,-0x1
li a0,-0x1
addu a2,s2,s0
lw v1,0x0(v0)
addu a3,s1,s0
addiu s0,s0,-0x1
lbu a2,0x0(a2)
sll a2,a2,0x2
addu v1,v1,a2
lw v1,0x0(v1)
bne s0,a0,0x00023784
_sb v1,0x0(a3)
lw ra,0x24(sp)
or v0,s1,zero
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "int FUN_00023744(int param_1,int param_2,int param_3)\n\n{\n  int *piVar1;\n  byte *pbVar2;\n  undefined1 *puVar3;\n  \n  if (param_3 != 0) {\n    param_3 = param_3 + -1;\n    piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0003b380)();\n    do {\n      pbVar2 = (byte *)(param_2 + param_3);\n      puVar3 = (undefined1 *)(param_1 + param_3);\n      param_3 = param_3 + -1;\n      *puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    } while (param_3 != -1);\n  }\n  return param_1;\n}\n\n" (function_definition "int FUN_00023744(int param_1,int param_2,int param_3)\n\n{\n  int *piVar1;\n  byte *pbVar2;\n  undefined1 *puVar3;\n  \n  if (param_3 != 0) {\n    param_3 = param_3 + -1;\n    piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0003b380)();\n    do {\n      pbVar2 = (byte *)(param_2 + param_3);\n      puVar3 = (undefined1 *)(param_1 + param_3);\n      param_3 = param_3 + -1;\n      *puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    } while (param_3 != -1);\n  }\n  return param_1;\n}" primitive_type (function_declarator "FUN_00023744(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 identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  byte *pbVar2;\n  undefined1 *puVar3;\n  \n  if (param_3 != 0) {\n    param_3 = param_3 + -1;\n    piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0003b380)();\n    do {\n      pbVar2 = (byte *)(param_2 + param_3);\n      puVar3 = (undefined1 *)(param_1 + param_3);\n      param_3 = param_3 + -1;\n      *puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    } while (param_3 != -1);\n  }\n  return param_1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (if_statement "if (param_3 != 0) {\n    param_3 = param_3 + -1;\n    piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0003b380)();\n    do {\n      pbVar2 = (byte *)(param_2 + param_3);\n      puVar3 = (undefined1 *)(param_1 + param_3);\n      param_3 = param_3 + -1;\n      *puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    } while (param_3 != -1);\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    param_3 = param_3 + -1;\n    piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0003b380)();\n    do {\n      pbVar2 = (byte *)(param_2 + param_3);\n      puVar3 = (undefined1 *)(param_1 + param_3);\n      param_3 = param_3 + -1;\n      *puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    } while (param_3 != -1);\n  }" { (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ;) (expression_statement "piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0003b380)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0003b380)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_toupper_loc_0003b380)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_toupper_loc_0003b380)()" (parenthesized_expression "(*(code *)PTR___ctype_toupper_loc_0003b380)" ( (pointer_expression "*(code *)PTR___ctype_toupper_loc_0003b380" * (cast_expression "(code *)PTR___ctype_toupper_loc_0003b380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (do_statement "do {\n      pbVar2 = (byte *)(param_2 + param_3);\n      puVar3 = (undefined1 *)(param_1 + param_3);\n      param_3 = param_3 + -1;\n      *puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    } while (param_3 != -1);" do (compound_statement "{\n      pbVar2 = (byte *)(param_2 + param_3);\n      puVar3 = (undefined1 *)(param_1 + param_3);\n      param_3 = param_3 + -1;\n      *puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    }" { (expression_statement "pbVar2 = (byte *)(param_2 + param_3);" (assignment_expression "pbVar2 = (byte *)(param_2 + param_3)" identifier = (cast_expression "(byte *)(param_2 + param_3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + param_3)" ( (binary_expression "param_2 + param_3" identifier + identifier) )))) ;) (expression_statement "puVar3 = (undefined1 *)(param_1 + param_3);" (assignment_expression "puVar3 = (undefined1 *)(param_1 + param_3)" identifier = (cast_expression "(undefined1 *)(param_1 + param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + param_3)" ( (binary_expression "param_1 + param_3" identifier + identifier) )))) ;) (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ;) (expression_statement "*puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);" (assignment_expression "*puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4)" (pointer_expression "*puVar3" * identifier) = (cast_expression "(char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4)" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4)" * (cast_expression "(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + (uint)*pbVar2 * 4)" ( (binary_expression "*piVar1 + (uint)*pbVar2 * 4" (pointer_expression "*piVar1" * identifier) + (binary_expression "(uint)*pbVar2 * 4" (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))))) ;) }) while (parenthesized_expression "(param_3 != -1)" ( (binary_expression "param_3 != -1" identifier != number_literal) )) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "char * memcpy_uppcase(char *dest,char *src,size_t len)\n\n{\n  int *piVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  int iVar4;\n  \n  if (len != 0) {\n    iVar4 = len - 1;\n    piVar1 = (int *)(*(code *)PTR__MIPS_STUBS__0003b380)();\n    do {\n      pbVar2 = (byte *)(src + iVar4);\n      pcVar3 = dest + iVar4;\n      iVar4 = iVar4 + -1;\n      *pcVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    } while (iVar4 != -1);\n  }\n  return dest;\n}\n\n" (function_definition "char * memcpy_uppcase(char *dest,char *src,size_t len)\n\n{\n  int *piVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  int iVar4;\n  \n  if (len != 0) {\n    iVar4 = len - 1;\n    piVar1 = (int *)(*(code *)PTR__MIPS_STUBS__0003b380)();\n    do {\n      pbVar2 = (byte *)(src + iVar4);\n      pcVar3 = dest + iVar4;\n      iVar4 = iVar4 + -1;\n      *pcVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    } while (iVar4 != -1);\n  }\n  return dest;\n}" primitive_type (pointer_declarator "* memcpy_uppcase(char *dest,char *src,size_t len)" * (function_declarator "memcpy_uppcase(char *dest,char *src,size_t len)" identifier (parameter_list "(char *dest,char *src,size_t len)" ( (parameter_declaration "char *dest" primitive_type (pointer_declarator "*dest" * identifier)) , (parameter_declaration "char *src" primitive_type (pointer_declarator "*src" * identifier)) , (parameter_declaration "size_t len" primitive_type identifier) )))) (compound_statement "{\n  int *piVar1;\n  byte *pbVar2;\n  char *pcVar3;\n  int iVar4;\n  \n  if (len != 0) {\n    iVar4 = len - 1;\n    piVar1 = (int *)(*(code *)PTR__MIPS_STUBS__0003b380)();\n    do {\n      pbVar2 = (byte *)(src + iVar4);\n      pcVar3 = dest + iVar4;\n      iVar4 = iVar4 + -1;\n      *pcVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    } while (iVar4 != -1);\n  }\n  return dest;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if (len != 0) {\n    iVar4 = len - 1;\n    piVar1 = (int *)(*(code *)PTR__MIPS_STUBS__0003b380)();\n    do {\n      pbVar2 = (byte *)(src + iVar4);\n      pcVar3 = dest + iVar4;\n      iVar4 = iVar4 + -1;\n      *pcVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    } while (iVar4 != -1);\n  }" if (parenthesized_expression "(len != 0)" ( (binary_expression "len != 0" identifier != number_literal) )) (compound_statement "{\n    iVar4 = len - 1;\n    piVar1 = (int *)(*(code *)PTR__MIPS_STUBS__0003b380)();\n    do {\n      pbVar2 = (byte *)(src + iVar4);\n      pcVar3 = dest + iVar4;\n      iVar4 = iVar4 + -1;\n      *pcVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    } while (iVar4 != -1);\n  }" { (expression_statement "iVar4 = len - 1;" (assignment_expression "iVar4 = len - 1" identifier = (binary_expression "len - 1" identifier - number_literal)) ;) (expression_statement "piVar1 = (int *)(*(code *)PTR__MIPS_STUBS__0003b380)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR__MIPS_STUBS__0003b380)()" identifier = (cast_expression "(int *)(*(code *)PTR__MIPS_STUBS__0003b380)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR__MIPS_STUBS__0003b380)()" (parenthesized_expression "(*(code *)PTR__MIPS_STUBS__0003b380)" ( (pointer_expression "*(code *)PTR__MIPS_STUBS__0003b380" * (cast_expression "(code *)PTR__MIPS_STUBS__0003b380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (do_statement "do {\n      pbVar2 = (byte *)(src + iVar4);\n      pcVar3 = dest + iVar4;\n      iVar4 = iVar4 + -1;\n      *pcVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    } while (iVar4 != -1);" do (compound_statement "{\n      pbVar2 = (byte *)(src + iVar4);\n      pcVar3 = dest + iVar4;\n      iVar4 = iVar4 + -1;\n      *pcVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    }" { (expression_statement "pbVar2 = (byte *)(src + iVar4);" (assignment_expression "pbVar2 = (byte *)(src + iVar4)" identifier = (cast_expression "(byte *)(src + iVar4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(src + iVar4)" ( (binary_expression "src + iVar4" identifier + identifier) )))) ;) (expression_statement "pcVar3 = dest + iVar4;" (assignment_expression "pcVar3 = dest + iVar4" identifier = (binary_expression "dest + iVar4" identifier + identifier)) ;) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "*pcVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);" (assignment_expression "*pcVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4)" (pointer_expression "*pcVar3" * identifier) = (cast_expression "(char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4)" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4)" * (cast_expression "(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + (uint)*pbVar2 * 4)" ( (binary_expression "*piVar1 + (uint)*pbVar2 * 4" (pointer_expression "*piVar1" * identifier) + (binary_expression "(uint)*pbVar2 * 4" (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))))) ;) }) while (parenthesized_expression "(iVar4 != -1)" ( (binary_expression "iVar4 != -1" identifier != number_literal) )) ;) })) (return_statement "return dest;" return identifier ;) })))
(translation_unit "int FUN_00023744(int param_1,int param_2,int param_3)\n\n{\n  int *piVar1;\n  byte *pbVar2;\n  undefined1 *puVar3;\n  \n  if (param_3 != 0) {\n    param_3 = param_3 + -1;\n    piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0003b380)();\n    do {\n      pbVar2 = (byte *)(param_2 + param_3);\n      puVar3 = (undefined1 *)(param_1 + param_3);\n      param_3 = param_3 + -1;\n      *puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    } while (param_3 != -1);\n  }\n  return param_1;\n}\n\n" (function_definition "int FUN_00023744(int param_1,int param_2,int param_3)\n\n{\n  int *piVar1;\n  byte *pbVar2;\n  undefined1 *puVar3;\n  \n  if (param_3 != 0) {\n    param_3 = param_3 + -1;\n    piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0003b380)();\n    do {\n      pbVar2 = (byte *)(param_2 + param_3);\n      puVar3 = (undefined1 *)(param_1 + param_3);\n      param_3 = param_3 + -1;\n      *puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    } while (param_3 != -1);\n  }\n  return param_1;\n}" primitive_type (function_declarator "FUN_00023744(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 identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  byte *pbVar2;\n  undefined1 *puVar3;\n  \n  if (param_3 != 0) {\n    param_3 = param_3 + -1;\n    piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0003b380)();\n    do {\n      pbVar2 = (byte *)(param_2 + param_3);\n      puVar3 = (undefined1 *)(param_1 + param_3);\n      param_3 = param_3 + -1;\n      *puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    } while (param_3 != -1);\n  }\n  return param_1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (if_statement "if (param_3 != 0) {\n    param_3 = param_3 + -1;\n    piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0003b380)();\n    do {\n      pbVar2 = (byte *)(param_2 + param_3);\n      puVar3 = (undefined1 *)(param_1 + param_3);\n      param_3 = param_3 + -1;\n      *puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    } while (param_3 != -1);\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    param_3 = param_3 + -1;\n    piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0003b380)();\n    do {\n      pbVar2 = (byte *)(param_2 + param_3);\n      puVar3 = (undefined1 *)(param_1 + param_3);\n      param_3 = param_3 + -1;\n      *puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    } while (param_3 != -1);\n  }" { (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ;) (expression_statement "piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0003b380)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0003b380)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_toupper_loc_0003b380)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_toupper_loc_0003b380)()" (parenthesized_expression "(*(code *)PTR___ctype_toupper_loc_0003b380)" ( (pointer_expression "*(code *)PTR___ctype_toupper_loc_0003b380" * (cast_expression "(code *)PTR___ctype_toupper_loc_0003b380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (do_statement "do {\n      pbVar2 = (byte *)(param_2 + param_3);\n      puVar3 = (undefined1 *)(param_1 + param_3);\n      param_3 = param_3 + -1;\n      *puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    } while (param_3 != -1);" do (compound_statement "{\n      pbVar2 = (byte *)(param_2 + param_3);\n      puVar3 = (undefined1 *)(param_1 + param_3);\n      param_3 = param_3 + -1;\n      *puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    }" { (expression_statement "pbVar2 = (byte *)(param_2 + param_3);" (assignment_expression "pbVar2 = (byte *)(param_2 + param_3)" identifier = (cast_expression "(byte *)(param_2 + param_3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + param_3)" ( (binary_expression "param_2 + param_3" identifier + identifier) )))) ;) (expression_statement "puVar3 = (undefined1 *)(param_1 + param_3);" (assignment_expression "puVar3 = (undefined1 *)(param_1 + param_3)" identifier = (cast_expression "(undefined1 *)(param_1 + param_3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + param_3)" ( (binary_expression "param_1 + param_3" identifier + identifier) )))) ;) (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ;) (expression_statement "*puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);" (assignment_expression "*puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4)" (pointer_expression "*puVar3" * identifier) = (cast_expression "(char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4)" ( (type_descriptor "char" primitive_type) ) (pointer_expression "*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4)" * (cast_expression "(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + (uint)*pbVar2 * 4)" ( (binary_expression "*piVar1 + (uint)*pbVar2 * 4" (pointer_expression "*piVar1" * identifier) + (binary_expression "(uint)*pbVar2 * 4" (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))))) ;) }) while (parenthesized_expression "(param_3 != -1)" ( (binary_expression "param_3 != -1" identifier != number_literal) )) ;) })) (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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) * LIT)) )))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_00023744(int param_1,int param_2,int param_3)\n\n{\n  int *piVar1;\n  byte *pbVar2;\n  undefined1 *puVar3;\n  \n  if (param_3 != 0) {\n    param_3 = param_3 + -1;\n    piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0003b380)();\n    do {\n      pbVar2 = (byte *)(param_2 + param_3);\n      puVar3 = (undefined1 *)(param_1 + param_3);\n      param_3 = param_3 + -1;\n      *puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    } while (param_3 != -1);\n  }\n  return param_1;\n}" (primitive_type "int") (function_declarator "FUN_00023744(int param_1,int param_2,int param_3)" (identifier "FUN_00023744") (parameter_list "(int param_1,int param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int *piVar1;\n  byte *pbVar2;\n  undefined1 *puVar3;\n  \n  if (param_3 != 0) {\n    param_3 = param_3 + -1;\n    piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0003b380)();\n    do {\n      pbVar2 = (byte *)(param_2 + param_3);\n      puVar3 = (undefined1 *)(param_1 + param_3);\n      param_3 = param_3 + -1;\n      *puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    } while (param_3 != -1);\n  }\n  return param_1;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "undefined1 *puVar3;" (type_identifier "undefined1") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (if_statement "if (param_3 != 0) {\n    param_3 = param_3 + -1;\n    piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0003b380)();\n    do {\n      pbVar2 = (byte *)(param_2 + param_3);\n      puVar3 = (undefined1 *)(param_1 + param_3);\n      param_3 = param_3 + -1;\n      *puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    } while (param_3 != -1);\n  }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    param_3 = param_3 + -1;\n    piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0003b380)();\n    do {\n      pbVar2 = (byte *)(param_2 + param_3);\n      puVar3 = (undefined1 *)(param_1 + param_3);\n      param_3 = param_3 + -1;\n      *puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    } while (param_3 != -1);\n  }" ({ "{") (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" (identifier "param_3") (= "=") (binary_expression "param_3 + -1" (identifier "param_3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0003b380)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0003b380)()" (identifier "piVar1") (= "=") (cast_expression "(int *)(*(code *)PTR___ctype_toupper_loc_0003b380)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___ctype_toupper_loc_0003b380)()" (parenthesized_expression "(*(code *)PTR___ctype_toupper_loc_0003b380)" (( "(") (pointer_expression "*(code *)PTR___ctype_toupper_loc_0003b380" (* "*") (cast_expression "(code *)PTR___ctype_toupper_loc_0003b380" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___ctype_toupper_loc_0003b380"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (do_statement "do {\n      pbVar2 = (byte *)(param_2 + param_3);\n      puVar3 = (undefined1 *)(param_1 + param_3);\n      param_3 = param_3 + -1;\n      *puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    } while (param_3 != -1);" (do "do") (compound_statement "{\n      pbVar2 = (byte *)(param_2 + param_3);\n      puVar3 = (undefined1 *)(param_1 + param_3);\n      param_3 = param_3 + -1;\n      *puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);\n    }" ({ "{") (expression_statement "pbVar2 = (byte *)(param_2 + param_3);" (assignment_expression "pbVar2 = (byte *)(param_2 + param_3)" (identifier "pbVar2") (= "=") (cast_expression "(byte *)(param_2 + param_3)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + param_3)" (( "(") (binary_expression "param_2 + param_3" (identifier "param_2") (+ "+") (identifier "param_3")) () ")")))) (; ";")) (expression_statement "puVar3 = (undefined1 *)(param_1 + param_3);" (assignment_expression "puVar3 = (undefined1 *)(param_1 + param_3)" (identifier "puVar3") (= "=") (cast_expression "(undefined1 *)(param_1 + param_3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + param_3)" (( "(") (binary_expression "param_1 + param_3" (identifier "param_1") (+ "+") (identifier "param_3")) () ")")))) (; ";")) (expression_statement "param_3 = param_3 + -1;" (assignment_expression "param_3 = param_3 + -1" (identifier "param_3") (= "=") (binary_expression "param_3 + -1" (identifier "param_3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);" (assignment_expression "*puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4)" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (cast_expression "(char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (pointer_expression "*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4)" (* "*") (cast_expression "(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar1 + (uint)*pbVar2 * 4)" (( "(") (binary_expression "*piVar1 + (uint)*pbVar2 * 4" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (binary_expression "(uint)*pbVar2 * 4" (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar2")) (* "*") (number_literal "4"))) () ")")))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_3 != -1)" (( "(") (binary_expression "param_3 != -1" (identifier "param_3") (!= "!=") (number_literal "-1")) () ")")) (; ";")) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

char * function_1(char *var_4,char *var_2,size_t var_1)

{
  int *piVar1;
  type_1 *var_5;
  char *pcVar3;
  int var_3;
  
  if (var_1 != 0) {
    var_3 = var_1 - 1;
    piVar1 = (int *)(*(type_2 *)PTR__MIPS_STUBS__0003b380)();
    do {
      var_5 = (type_1 *)(var_2 + var_3);
      pcVar3 = var_4 + var_3;
      var_3 = var_3 + -1;
      *pcVar3 = (char)*(type_3 *)(*piVar1 + (uint)*var_5 * 4);
    } while (var_3 != -1);
  }
  return var_4;
}


(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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)) right: (number_literal)))))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

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

{
  int *piVar1;
  byte *pbVar2;
  undefined1 *puVar3;
  
  if (param_3 != 0) {
    param_3 = param_3 + -1;
    piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0003b380)();
    do {
      pbVar2 = (byte *)(param_2 + param_3);
      puVar3 = (undefined1 *)(param_1 + param_3);
      param_3 = param_3 + -1;
      *puVar3 = (char)*(undefined4 *)(*piVar1 + (uint)*pbVar2 * 4);
    } while (param_3 != -1);
  }
  return param_1;
}

