
int memcasecmp(void *vs1,void *vs2,size_t n)

{
  int *piVar1;
  int iVar2;
  char *s1;
  char *s2;
  byte *pbVar3;
  
  if (n == 0) {
    return 0;
  }
  piVar1 = (int *)(*(code *)PTR__MIPS_STUBS__0002c340)();
  pbVar3 = (byte *)((int)vs1 + n);
  do {
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Load size is inaccurate */
    iVar2 = *(int *)(*piVar1 + (uint)*vs1 * 4) - *(int *)(*piVar1 + (uint)*vs2 * 4);
    vs1 = (void *)((int)vs1 + 1);
    if (iVar2 != 0) {
      return iVar2;
    }
    vs2 = (byte *)((int)vs2 + 1);
  } while (pbVar3 != (byte *)vs1);
  return 0;
}



int memcasecmp(byte *param_1,byte *param_2,int param_3)

{
  int *piVar1;
  int iVar2;
  byte *pbVar3;
  
  if (param_3 == 0) {
    return 0;
  }
  piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0002c340)();
  pbVar3 = param_1 + param_3;
  do {
    iVar2 = *(int *)(*piVar1 + (uint)*param_1 * 4) - *(int *)(*piVar1 + (uint)*param_2 * 4);
    param_1 = param_1 + 1;
    if (iVar2 != 0) {
      return iVar2;
    }
    param_2 = param_2 + 1;
  } while (pbVar3 != param_1);
  return 0;
}


lui gp,0x2
addiu gp,gp,-0x230
addu gp,gp,t9
beq a2,zero,0x000143b0
_lw t9,-0x7da0(gp)
addiu sp,sp,-0x28
sw s2,0x20(sp)
or s2,a2,zero
sw s1,0x1c(sp)
or s1,a1,zero
sw s0,0x18(sp)
sw gp,0x10(sp)
sw ra,0x24(sp)
jalr t9
_or s0,a0,zero
or a0,s0,zero
lw a3,0x0(v0)
addu a2,s0,s2
b 0x00014368
_or a1,s1,zero
beq a2,a0,0x0001439c
_lw ra,0x24(sp)
lbu v0,0x0(a0)
addiu a1,a1,0x1
lbu v1,-0x1(a1)
sll v0,v0,0x2
sll v1,v1,0x2
addu v0,a3,v0
addu v1,a3,v1
lw v0,0x0(v0)
lw v1,0x0(v1)
subu v0,v0,v1
beq v0,zero,0x00014360
_addiu a0,a0,0x1
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
jr ra
_or v0,zero,zero
(translation_unit "int memcasecmp(byte *param_1,byte *param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  if (param_3 == 0) {\n    return 0;\n  }\n  piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0002c340)();\n  pbVar3 = param_1 + param_3;\n  do {\n    iVar2 = *(int *)(*piVar1 + (uint)*param_1 * 4) - *(int *)(*piVar1 + (uint)*param_2 * 4);\n    param_1 = param_1 + 1;\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    param_2 = param_2 + 1;\n  } while (pbVar3 != param_1);\n  return 0;\n}\n\n" (function_definition "int memcasecmp(byte *param_1,byte *param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  if (param_3 == 0) {\n    return 0;\n  }\n  piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0002c340)();\n  pbVar3 = param_1 + param_3;\n  do {\n    iVar2 = *(int *)(*piVar1 + (uint)*param_1 * 4) - *(int *)(*piVar1 + (uint)*param_2 * 4);\n    param_1 = param_1 + 1;\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    param_2 = param_2 + 1;\n  } while (pbVar3 != param_1);\n  return 0;\n}" primitive_type (function_declarator "memcasecmp(byte *param_1,byte *param_2,int param_3)" identifier (parameter_list "(byte *param_1,byte *param_2,int param_3)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  if (param_3 == 0) {\n    return 0;\n  }\n  piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0002c340)();\n  pbVar3 = param_1 + param_3;\n  do {\n    iVar2 = *(int *)(*piVar1 + (uint)*param_1 * 4) - *(int *)(*piVar1 + (uint)*param_2 * 4);\n    param_1 = param_1 + 1;\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    param_2 = param_2 + 1;\n  } while (pbVar3 != param_1);\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (if_statement "if (param_3 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0002c340)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0002c340)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_toupper_loc_0002c340)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_toupper_loc_0002c340)()" (parenthesized_expression "(*(code *)PTR___ctype_toupper_loc_0002c340)" ( (pointer_expression "*(code *)PTR___ctype_toupper_loc_0002c340" * (cast_expression "(code *)PTR___ctype_toupper_loc_0002c340" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "pbVar3 = param_1 + param_3;" (assignment_expression "pbVar3 = param_1 + param_3" identifier = (binary_expression "param_1 + param_3" identifier + identifier)) ;) (do_statement "do {\n    iVar2 = *(int *)(*piVar1 + (uint)*param_1 * 4) - *(int *)(*piVar1 + (uint)*param_2 * 4);\n    param_1 = param_1 + 1;\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    param_2 = param_2 + 1;\n  } while (pbVar3 != param_1);" do (compound_statement "{\n    iVar2 = *(int *)(*piVar1 + (uint)*param_1 * 4) - *(int *)(*piVar1 + (uint)*param_2 * 4);\n    param_1 = param_1 + 1;\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    param_2 = param_2 + 1;\n  }" { (expression_statement "iVar2 = *(int *)(*piVar1 + (uint)*param_1 * 4) - *(int *)(*piVar1 + (uint)*param_2 * 4);" (assignment_expression "iVar2 = *(int *)(*piVar1 + (uint)*param_1 * 4) - *(int *)(*piVar1 + (uint)*param_2 * 4)" identifier = (binary_expression "*(int *)(*piVar1 + (uint)*param_1 * 4) - *(int *)(*piVar1 + (uint)*param_2 * 4)" (pointer_expression "*(int *)(*piVar1 + (uint)*param_1 * 4)" * (cast_expression "(int *)(*piVar1 + (uint)*param_1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + (uint)*param_1 * 4)" ( (binary_expression "*piVar1 + (uint)*param_1 * 4" (pointer_expression "*piVar1" * identifier) + (binary_expression "(uint)*param_1 * 4" (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) - (pointer_expression "*(int *)(*piVar1 + (uint)*param_2 * 4)" * (cast_expression "(int *)(*piVar1 + (uint)*param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + (uint)*param_2 * 4)" ( (binary_expression "*piVar1 + (uint)*param_2 * 4" (pointer_expression "*piVar1" * identifier) + (binary_expression "(uint)*param_2 * 4" (binary_expression "(uint)*param_2" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))))) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 != 0) {\n      return iVar2;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar2;\n    }" { (return_statement "return iVar2;" return identifier ;) })) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pbVar3 != param_1)" ( (binary_expression "pbVar3 != param_1" identifier != identifier) )) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int memcasecmp(void *vs1,void *vs2,size_t n)\n\n{\n  int *piVar1;\n  int iVar2;\n  char *s1;\n  char *s2;\n  byte *pbVar3;\n  \n  if (n == 0) {\n    return 0;\n  }\n  piVar1 = (int *)(*(code *)PTR__MIPS_STUBS__0002c340)();\n  pbVar3 = (byte *)((int)vs1 + n);\n  do {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n    iVar2 = *(int *)(*piVar1 + (uint)*vs1 * 4) - *(int *)(*piVar1 + (uint)*vs2 * 4);\n    vs1 = (void *)((int)vs1 + 1);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    vs2 = (byte *)((int)vs2 + 1);\n  } while (pbVar3 != (byte *)vs1);\n  return 0;\n}\n\n" (function_definition "int memcasecmp(void *vs1,void *vs2,size_t n)\n\n{\n  int *piVar1;\n  int iVar2;\n  char *s1;\n  char *s2;\n  byte *pbVar3;\n  \n  if (n == 0) {\n    return 0;\n  }\n  piVar1 = (int *)(*(code *)PTR__MIPS_STUBS__0002c340)();\n  pbVar3 = (byte *)((int)vs1 + n);\n  do {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n    iVar2 = *(int *)(*piVar1 + (uint)*vs1 * 4) - *(int *)(*piVar1 + (uint)*vs2 * 4);\n    vs1 = (void *)((int)vs1 + 1);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    vs2 = (byte *)((int)vs2 + 1);\n  } while (pbVar3 != (byte *)vs1);\n  return 0;\n}" primitive_type (function_declarator "memcasecmp(void *vs1,void *vs2,size_t n)" identifier (parameter_list "(void *vs1,void *vs2,size_t n)" ( (parameter_declaration "void *vs1" primitive_type (pointer_declarator "*vs1" * identifier)) , (parameter_declaration "void *vs2" primitive_type (pointer_declarator "*vs2" * identifier)) , (parameter_declaration "size_t n" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  char *s1;\n  char *s2;\n  byte *pbVar3;\n  \n  if (n == 0) {\n    return 0;\n  }\n  piVar1 = (int *)(*(code *)PTR__MIPS_STUBS__0002c340)();\n  pbVar3 = (byte *)((int)vs1 + n);\n  do {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n    iVar2 = *(int *)(*piVar1 + (uint)*vs1 * 4) - *(int *)(*piVar1 + (uint)*vs2 * 4);\n    vs1 = (void *)((int)vs1 + 1);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    vs2 = (byte *)((int)vs2 + 1);\n  } while (pbVar3 != (byte *)vs1);\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *s1;" primitive_type (pointer_declarator "*s1" * identifier) ;) (declaration "char *s2;" primitive_type (pointer_declarator "*s2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (if_statement "if (n == 0) {\n    return 0;\n  }" if (parenthesized_expression "(n == 0)" ( (binary_expression "n == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "piVar1 = (int *)(*(code *)PTR__MIPS_STUBS__0002c340)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR__MIPS_STUBS__0002c340)()" identifier = (cast_expression "(int *)(*(code *)PTR__MIPS_STUBS__0002c340)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR__MIPS_STUBS__0002c340)()" (parenthesized_expression "(*(code *)PTR__MIPS_STUBS__0002c340)" ( (pointer_expression "*(code *)PTR__MIPS_STUBS__0002c340" * (cast_expression "(code *)PTR__MIPS_STUBS__0002c340" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "pbVar3 = (byte *)((int)vs1 + n);" (assignment_expression "pbVar3 = (byte *)((int)vs1 + n)" identifier = (cast_expression "(byte *)((int)vs1 + n)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)vs1 + n)" ( (binary_expression "(int)vs1 + n" (cast_expression "(int)vs1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (do_statement "do {\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n    iVar2 = *(int *)(*piVar1 + (uint)*vs1 * 4) - *(int *)(*piVar1 + (uint)*vs2 * 4);\n    vs1 = (void *)((int)vs1 + 1);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    vs2 = (byte *)((int)vs2 + 1);\n  } while (pbVar3 != (byte *)vs1);" do (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n                    /* WARNING: Load size is inaccurate */\n    iVar2 = *(int *)(*piVar1 + (uint)*vs1 * 4) - *(int *)(*piVar1 + (uint)*vs2 * 4);\n    vs1 = (void *)((int)vs1 + 1);\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    vs2 = (byte *)((int)vs2 + 1);\n  }" { comment comment (expression_statement "iVar2 = *(int *)(*piVar1 + (uint)*vs1 * 4) - *(int *)(*piVar1 + (uint)*vs2 * 4);" (assignment_expression "iVar2 = *(int *)(*piVar1 + (uint)*vs1 * 4) - *(int *)(*piVar1 + (uint)*vs2 * 4)" identifier = (binary_expression "*(int *)(*piVar1 + (uint)*vs1 * 4) - *(int *)(*piVar1 + (uint)*vs2 * 4)" (pointer_expression "*(int *)(*piVar1 + (uint)*vs1 * 4)" * (cast_expression "(int *)(*piVar1 + (uint)*vs1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + (uint)*vs1 * 4)" ( (binary_expression "*piVar1 + (uint)*vs1 * 4" (pointer_expression "*piVar1" * identifier) + (binary_expression "(uint)*vs1 * 4" (binary_expression "(uint)*vs1" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) - (pointer_expression "*(int *)(*piVar1 + (uint)*vs2 * 4)" * (cast_expression "(int *)(*piVar1 + (uint)*vs2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + (uint)*vs2 * 4)" ( (binary_expression "*piVar1 + (uint)*vs2 * 4" (pointer_expression "*piVar1" * identifier) + (binary_expression "(uint)*vs2 * 4" (binary_expression "(uint)*vs2" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))))) ;) (expression_statement "vs1 = (void *)((int)vs1 + 1);" (assignment_expression "vs1 = (void *)((int)vs1 + 1)" identifier = (cast_expression "(void *)((int)vs1 + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)vs1 + 1)" ( (binary_expression "(int)vs1 + 1" (cast_expression "(int)vs1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (if_statement "if (iVar2 != 0) {\n      return iVar2;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar2;\n    }" { (return_statement "return iVar2;" return identifier ;) })) (expression_statement "vs2 = (byte *)((int)vs2 + 1);" (assignment_expression "vs2 = (byte *)((int)vs2 + 1)" identifier = (cast_expression "(byte *)((int)vs2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)vs2 + 1)" ( (binary_expression "(int)vs2 + 1" (cast_expression "(int)vs2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) }) while (parenthesized_expression "(pbVar3 != (byte *)vs1)" ( (binary_expression "pbVar3 != (byte *)vs1" identifier != (cast_expression "(byte *)vs1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int memcasecmp(byte *param_1,byte *param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  if (param_3 == 0) {\n    return 0;\n  }\n  piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0002c340)();\n  pbVar3 = param_1 + param_3;\n  do {\n    iVar2 = *(int *)(*piVar1 + (uint)*param_1 * 4) - *(int *)(*piVar1 + (uint)*param_2 * 4);\n    param_1 = param_1 + 1;\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    param_2 = param_2 + 1;\n  } while (pbVar3 != param_1);\n  return 0;\n}\n\n" (function_definition "int memcasecmp(byte *param_1,byte *param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  if (param_3 == 0) {\n    return 0;\n  }\n  piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0002c340)();\n  pbVar3 = param_1 + param_3;\n  do {\n    iVar2 = *(int *)(*piVar1 + (uint)*param_1 * 4) - *(int *)(*piVar1 + (uint)*param_2 * 4);\n    param_1 = param_1 + 1;\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    param_2 = param_2 + 1;\n  } while (pbVar3 != param_1);\n  return 0;\n}" primitive_type (function_declarator "memcasecmp(byte *param_1,byte *param_2,int param_3)" identifier (parameter_list "(byte *param_1,byte *param_2,int param_3)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  if (param_3 == 0) {\n    return 0;\n  }\n  piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0002c340)();\n  pbVar3 = param_1 + param_3;\n  do {\n    iVar2 = *(int *)(*piVar1 + (uint)*param_1 * 4) - *(int *)(*piVar1 + (uint)*param_2 * 4);\n    param_1 = param_1 + 1;\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    param_2 = param_2 + 1;\n  } while (pbVar3 != param_1);\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (if_statement "if (param_3 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0002c340)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0002c340)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_toupper_loc_0002c340)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_toupper_loc_0002c340)()" (parenthesized_expression "(*(code *)PTR___ctype_toupper_loc_0002c340)" ( (pointer_expression "*(code *)PTR___ctype_toupper_loc_0002c340" * (cast_expression "(code *)PTR___ctype_toupper_loc_0002c340" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "pbVar3 = param_1 + param_3;" (assignment_expression "pbVar3 = param_1 + param_3" identifier = (binary_expression "param_1 + param_3" identifier + identifier)) ;) (do_statement "do {\n    iVar2 = *(int *)(*piVar1 + (uint)*param_1 * 4) - *(int *)(*piVar1 + (uint)*param_2 * 4);\n    param_1 = param_1 + 1;\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    param_2 = param_2 + 1;\n  } while (pbVar3 != param_1);" do (compound_statement "{\n    iVar2 = *(int *)(*piVar1 + (uint)*param_1 * 4) - *(int *)(*piVar1 + (uint)*param_2 * 4);\n    param_1 = param_1 + 1;\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    param_2 = param_2 + 1;\n  }" { (expression_statement "iVar2 = *(int *)(*piVar1 + (uint)*param_1 * 4) - *(int *)(*piVar1 + (uint)*param_2 * 4);" (assignment_expression "iVar2 = *(int *)(*piVar1 + (uint)*param_1 * 4) - *(int *)(*piVar1 + (uint)*param_2 * 4)" identifier = (binary_expression "*(int *)(*piVar1 + (uint)*param_1 * 4) - *(int *)(*piVar1 + (uint)*param_2 * 4)" (pointer_expression "*(int *)(*piVar1 + (uint)*param_1 * 4)" * (cast_expression "(int *)(*piVar1 + (uint)*param_1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + (uint)*param_1 * 4)" ( (binary_expression "*piVar1 + (uint)*param_1 * 4" (pointer_expression "*piVar1" * identifier) + (binary_expression "(uint)*param_1 * 4" (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))) - (pointer_expression "*(int *)(*piVar1 + (uint)*param_2 * 4)" * (cast_expression "(int *)(*piVar1 + (uint)*param_2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + (uint)*param_2 * 4)" ( (binary_expression "*piVar1 + (uint)*param_2 * 4" (pointer_expression "*piVar1" * identifier) + (binary_expression "(uint)*param_2 * 4" (binary_expression "(uint)*param_2" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) )))))) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 != 0) {\n      return iVar2;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar2;\n    }" { (return_statement "return iVar2;" return identifier ;) })) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pbVar3 != param_1)" ( (binary_expression "pbVar3 != param_1" identifier != identifier) )) ;) (return_statement "return 0;" return number_literal ;) })))
(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 IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return 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 ( ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (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)) )))) - (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)) )))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (return_statement return LIT ;) })))
(function_definition "int memcasecmp(byte *param_1,byte *param_2,int param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  if (param_3 == 0) {\n    return 0;\n  }\n  piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0002c340)();\n  pbVar3 = param_1 + param_3;\n  do {\n    iVar2 = *(int *)(*piVar1 + (uint)*param_1 * 4) - *(int *)(*piVar1 + (uint)*param_2 * 4);\n    param_1 = param_1 + 1;\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    param_2 = param_2 + 1;\n  } while (pbVar3 != param_1);\n  return 0;\n}" (primitive_type "int") (function_declarator "memcasecmp(byte *param_1,byte *param_2,int param_3)" (identifier "memcasecmp") (parameter_list "(byte *param_1,byte *param_2,int param_3)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "byte *param_2" (type_identifier "byte") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  byte *pbVar3;\n  \n  if (param_3 == 0) {\n    return 0;\n  }\n  piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0002c340)();\n  pbVar3 = param_1 + param_3;\n  do {\n    iVar2 = *(int *)(*piVar1 + (uint)*param_1 * 4) - *(int *)(*piVar1 + (uint)*param_2 * 4);\n    param_1 = param_1 + 1;\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    param_2 = param_2 + 1;\n  } while (pbVar3 != param_1);\n  return 0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (if_statement "if (param_3 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0002c340)();" (assignment_expression "piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0002c340)()" (identifier "piVar1") (= "=") (cast_expression "(int *)(*(code *)PTR___ctype_toupper_loc_0002c340)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___ctype_toupper_loc_0002c340)()" (parenthesized_expression "(*(code *)PTR___ctype_toupper_loc_0002c340)" (( "(") (pointer_expression "*(code *)PTR___ctype_toupper_loc_0002c340" (* "*") (cast_expression "(code *)PTR___ctype_toupper_loc_0002c340" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___ctype_toupper_loc_0002c340"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "pbVar3 = param_1 + param_3;" (assignment_expression "pbVar3 = param_1 + param_3" (identifier "pbVar3") (= "=") (binary_expression "param_1 + param_3" (identifier "param_1") (+ "+") (identifier "param_3"))) (; ";")) (do_statement "do {\n    iVar2 = *(int *)(*piVar1 + (uint)*param_1 * 4) - *(int *)(*piVar1 + (uint)*param_2 * 4);\n    param_1 = param_1 + 1;\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    param_2 = param_2 + 1;\n  } while (pbVar3 != param_1);" (do "do") (compound_statement "{\n    iVar2 = *(int *)(*piVar1 + (uint)*param_1 * 4) - *(int *)(*piVar1 + (uint)*param_2 * 4);\n    param_1 = param_1 + 1;\n    if (iVar2 != 0) {\n      return iVar2;\n    }\n    param_2 = param_2 + 1;\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(*piVar1 + (uint)*param_1 * 4) - *(int *)(*piVar1 + (uint)*param_2 * 4);" (assignment_expression "iVar2 = *(int *)(*piVar1 + (uint)*param_1 * 4) - *(int *)(*piVar1 + (uint)*param_2 * 4)" (identifier "iVar2") (= "=") (binary_expression "*(int *)(*piVar1 + (uint)*param_1 * 4) - *(int *)(*piVar1 + (uint)*param_2 * 4)" (pointer_expression "*(int *)(*piVar1 + (uint)*param_1 * 4)" (* "*") (cast_expression "(int *)(*piVar1 + (uint)*param_1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar1 + (uint)*param_1 * 4)" (( "(") (binary_expression "*piVar1 + (uint)*param_1 * 4" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (binary_expression "(uint)*param_1 * 4" (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "param_1")) (* "*") (number_literal "4"))) () ")")))) (- "-") (pointer_expression "*(int *)(*piVar1 + (uint)*param_2 * 4)" (* "*") (cast_expression "(int *)(*piVar1 + (uint)*param_2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar1 + (uint)*param_2 * 4)" (( "(") (binary_expression "*piVar1 + (uint)*param_2 * 4" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (binary_expression "(uint)*param_2 * 4" (binary_expression "(uint)*param_2" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "param_2")) (* "*") (number_literal "4"))) () ")")))))) (; ";")) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar2 != 0) {\n      return iVar2;\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return iVar2;\n    }" ({ "{") (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}"))) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pbVar3 != param_1)" (( "(") (binary_expression "pbVar3 != param_1" (identifier "pbVar3") (!= "!=") (identifier "param_1")) () ")")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(void *var_2,void *var_3,size_t var_1)

{
  int *piVar1;
  int var_4;
  char *s1;
  char *s2;
  type_1 *var_5;
  
  if (var_1 == 0) {
    return 0;
  }
  piVar1 = (int *)(*(type_2 *)PTR__MIPS_STUBS__0002c340)();
  var_5 = (type_1 *)((int)var_2 + var_1);
  do {
                    /* WARNING: Load size is inaccurate */
                    /* WARNING: Load size is inaccurate */
    var_4 = *(int *)(*piVar1 + (uint)*var_2 * 4) - *(int *)(*piVar1 + (uint)*var_3 * 4);
    var_2 = (void *)((int)var_2 + 1);
    if (var_4 != 0) {
      return var_4;
    }
    var_3 = (type_1 *)((int)var_3 + 1);
  } while (var_5 != (type_1 *)var_2);
  return 0;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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 (return_statement (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))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (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: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)) right: (number_literal)))))) 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: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (return_statement (number_literal)))))

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

{
  int *piVar1;
  int iVar2;
  byte *pbVar3;
  
  if (param_3 == 0) {
    return 0;
  }
  piVar1 = (int *)(*(code *)PTR___ctype_toupper_loc_0002c340)();
  pbVar3 = param_1 + param_3;
  do {
    iVar2 = *(int *)(*piVar1 + (uint)*param_1 * 4) - *(int *)(*piVar1 + (uint)*param_2 * 4);
    param_1 = param_1 + 1;
    if (iVar2 != 0) {
      return iVar2;
    }
    param_2 = param_2 + 1;
  } while (pbVar3 != param_1);
  return 0;
}

