
int c_strcasecmp(char *s1,char *s2)

{
  uint uVar1;
  uint uVar2;
  uchar *p1;
  uchar *p2;
  uint uVar3;
  uint uVar4;
  
  if (s1 == s2) {
    return 0;
  }
  do {
    uVar1 = (uint)(byte)*s1;
    s1 = (char *)((byte *)s1 + 1);
    uVar3 = uVar1;
    if (uVar1 - 0x41 < 0x1a) {
      uVar3 = uVar1 + 0x20;
      uVar1 = uVar3 & 0xff;
    }
    uVar2 = (uint)(byte)*s2;
    s2 = (char *)((byte *)s2 + 1);
    uVar4 = uVar2;
    if (uVar2 - 0x41 < 0x1a) {
      uVar4 = uVar2 + 0x20;
      uVar2 = uVar4 & 0xff;
    }
  } while ((uVar1 != 0) && (uVar1 == uVar2));
  return (uVar3 & 0xff) - (uVar4 & 0xff);
}



int c_strcasecmp(byte *param_1,byte *param_2)

{
  uint uVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  
  if (param_1 == param_2) {
    return 0;
  }
  do {
    uVar1 = (uint)*param_1;
    param_1 = param_1 + 1;
    uVar3 = uVar1;
    if (uVar1 - 0x41 < 0x1a) {
      uVar3 = uVar1 + 0x20;
      uVar1 = uVar3 & 0xff;
    }
    uVar2 = (uint)*param_2;
    param_2 = param_2 + 1;
    uVar4 = uVar2;
    if (uVar2 - 0x41 < 0x1a) {
      uVar4 = uVar2 + 0x20;
      uVar2 = uVar4 & 0xff;
    }
  } while ((uVar1 != 0) && (uVar1 == uVar2));
  return (uVar3 & 0xff) - (uVar4 & 0xff);
}


bne a0,a1,0x00061c28
_or v0,zero,zero
b 0x00061c80
_nop
bne v0,v1,0x00061c70
_nop
lbu v0,0x0(a0)
addiu a0,a0,0x1
addiu v1,v0,-0x41
sltiu v1,v1,0x1a
beq v1,zero,0x00061c48
_or a3,v0,zero
addiu a3,v0,0x20
andi v0,a3,0xff
lbu v1,0x0(a1)
addiu a1,a1,0x1
addiu a2,v1,-0x41
sltiu a2,a2,0x1a
beq a2,zero,0x00061c68
_or t0,v1,zero
addiu t0,v1,0x20
andi v1,t0,0xff
bne v0,zero,0x00061c20
_nop
andi a3,a3,0xff
andi v0,t0,0xff
jr ra
_subu v0,a3,v0
jr ra
_nop
(translation_unit "int c_strcasecmp(byte *param_1,byte *param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (param_1 == param_2) {\n    return 0;\n  }\n  do {\n    uVar1 = (uint)*param_1;\n    param_1 = param_1 + 1;\n    uVar3 = uVar1;\n    if (uVar1 - 0x41 < 0x1a) {\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }\n    uVar2 = (uint)*param_2;\n    param_2 = param_2 + 1;\n    uVar4 = uVar2;\n    if (uVar2 - 0x41 < 0x1a) {\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }\n  } while ((uVar1 != 0) && (uVar1 == uVar2));\n  return (uVar3 & 0xff) - (uVar4 & 0xff);\n}\n\n" (function_definition "int c_strcasecmp(byte *param_1,byte *param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (param_1 == param_2) {\n    return 0;\n  }\n  do {\n    uVar1 = (uint)*param_1;\n    param_1 = param_1 + 1;\n    uVar3 = uVar1;\n    if (uVar1 - 0x41 < 0x1a) {\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }\n    uVar2 = (uint)*param_2;\n    param_2 = param_2 + 1;\n    uVar4 = uVar2;\n    if (uVar2 - 0x41 < 0x1a) {\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }\n  } while ((uVar1 != 0) && (uVar1 == uVar2));\n  return (uVar3 & 0xff) - (uVar4 & 0xff);\n}" primitive_type (function_declarator "c_strcasecmp(byte *param_1,byte *param_2)" identifier (parameter_list "(byte *param_1,byte *param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (param_1 == param_2) {\n    return 0;\n  }\n  do {\n    uVar1 = (uint)*param_1;\n    param_1 = param_1 + 1;\n    uVar3 = uVar1;\n    if (uVar1 - 0x41 < 0x1a) {\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }\n    uVar2 = (uint)*param_2;\n    param_2 = param_2 + 1;\n    uVar4 = uVar2;\n    if (uVar2 - 0x41 < 0x1a) {\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }\n  } while ((uVar1 != 0) && (uVar1 == uVar2));\n  return (uVar3 & 0xff) - (uVar4 & 0xff);\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (if_statement "if (param_1 == param_2) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == param_2)" ( (binary_expression "param_1 == param_2" identifier == identifier) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (do_statement "do {\n    uVar1 = (uint)*param_1;\n    param_1 = param_1 + 1;\n    uVar3 = uVar1;\n    if (uVar1 - 0x41 < 0x1a) {\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }\n    uVar2 = (uint)*param_2;\n    param_2 = param_2 + 1;\n    uVar4 = uVar2;\n    if (uVar2 - 0x41 < 0x1a) {\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }\n  } while ((uVar1 != 0) && (uVar1 == uVar2));" do (compound_statement "{\n    uVar1 = (uint)*param_1;\n    param_1 = param_1 + 1;\n    uVar3 = uVar1;\n    if (uVar1 - 0x41 < 0x1a) {\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }\n    uVar2 = (uint)*param_2;\n    param_2 = param_2 + 1;\n    uVar4 = uVar2;\n    if (uVar2 - 0x41 < 0x1a) {\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }\n  }" { (expression_statement "uVar1 = (uint)*param_1;" (assignment_expression "uVar1 = (uint)*param_1" identifier = (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = uVar1;" (assignment_expression "uVar3 = uVar1" identifier = identifier) ;) (if_statement "if (uVar1 - 0x41 < 0x1a) {\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }" if (parenthesized_expression "(uVar1 - 0x41 < 0x1a)" ( (binary_expression "uVar1 - 0x41 < 0x1a" (binary_expression "uVar1 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }" { (expression_statement "uVar3 = uVar1 + 0x20;" (assignment_expression "uVar3 = uVar1 + 0x20" identifier = (binary_expression "uVar1 + 0x20" identifier + number_literal)) ;) (expression_statement "uVar1 = uVar3 & 0xff;" (assignment_expression "uVar1 = uVar3 & 0xff" identifier = (binary_expression "uVar3 & 0xff" identifier & number_literal)) ;) })) (expression_statement "uVar2 = (uint)*param_2;" (assignment_expression "uVar2 = (uint)*param_2" identifier = (binary_expression "(uint)*param_2" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = uVar2;" (assignment_expression "uVar4 = uVar2" identifier = identifier) ;) (if_statement "if (uVar2 - 0x41 < 0x1a) {\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }" if (parenthesized_expression "(uVar2 - 0x41 < 0x1a)" ( (binary_expression "uVar2 - 0x41 < 0x1a" (binary_expression "uVar2 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }" { (expression_statement "uVar4 = uVar2 + 0x20;" (assignment_expression "uVar4 = uVar2 + 0x20" identifier = (binary_expression "uVar2 + 0x20" identifier + number_literal)) ;) (expression_statement "uVar2 = uVar4 & 0xff;" (assignment_expression "uVar2 = uVar4 & 0xff" identifier = (binary_expression "uVar4 & 0xff" identifier & number_literal)) ;) })) }) while (parenthesized_expression "((uVar1 != 0) && (uVar1 == uVar2))" ( (binary_expression "(uVar1 != 0) && (uVar1 == uVar2)" (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar1 == uVar2)" ( (binary_expression "uVar1 == uVar2" identifier == identifier) ))) )) ;) (return_statement "return (uVar3 & 0xff) - (uVar4 & 0xff);" return (binary_expression "(uVar3 & 0xff) - (uVar4 & 0xff)" (parenthesized_expression "(uVar3 & 0xff)" ( (binary_expression "uVar3 & 0xff" identifier & number_literal) )) - (parenthesized_expression "(uVar4 & 0xff)" ( (binary_expression "uVar4 & 0xff" identifier & number_literal) ))) ;) })))
(translation_unit "int c_strcasecmp(char *s1,char *s2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uchar *p1;\n  uchar *p2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (s1 == s2) {\n    return 0;\n  }\n  do {\n    uVar1 = (uint)(byte)*s1;\n    s1 = (char *)((byte *)s1 + 1);\n    uVar3 = uVar1;\n    if (uVar1 - 0x41 < 0x1a) {\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }\n    uVar2 = (uint)(byte)*s2;\n    s2 = (char *)((byte *)s2 + 1);\n    uVar4 = uVar2;\n    if (uVar2 - 0x41 < 0x1a) {\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }\n  } while ((uVar1 != 0) && (uVar1 == uVar2));\n  return (uVar3 & 0xff) - (uVar4 & 0xff);\n}\n\n" (function_definition "int c_strcasecmp(char *s1,char *s2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uchar *p1;\n  uchar *p2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (s1 == s2) {\n    return 0;\n  }\n  do {\n    uVar1 = (uint)(byte)*s1;\n    s1 = (char *)((byte *)s1 + 1);\n    uVar3 = uVar1;\n    if (uVar1 - 0x41 < 0x1a) {\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }\n    uVar2 = (uint)(byte)*s2;\n    s2 = (char *)((byte *)s2 + 1);\n    uVar4 = uVar2;\n    if (uVar2 - 0x41 < 0x1a) {\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }\n  } while ((uVar1 != 0) && (uVar1 == uVar2));\n  return (uVar3 & 0xff) - (uVar4 & 0xff);\n}" primitive_type (function_declarator "c_strcasecmp(char *s1,char *s2)" identifier (parameter_list "(char *s1,char *s2)" ( (parameter_declaration "char *s1" primitive_type (pointer_declarator "*s1" * identifier)) , (parameter_declaration "char *s2" primitive_type (pointer_declarator "*s2" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uchar *p1;\n  uchar *p2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (s1 == s2) {\n    return 0;\n  }\n  do {\n    uVar1 = (uint)(byte)*s1;\n    s1 = (char *)((byte *)s1 + 1);\n    uVar3 = uVar1;\n    if (uVar1 - 0x41 < 0x1a) {\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }\n    uVar2 = (uint)(byte)*s2;\n    s2 = (char *)((byte *)s2 + 1);\n    uVar4 = uVar2;\n    if (uVar2 - 0x41 < 0x1a) {\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }\n  } while ((uVar1 != 0) && (uVar1 == uVar2));\n  return (uVar3 & 0xff) - (uVar4 & 0xff);\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uchar *p1;" type_identifier (pointer_declarator "*p1" * identifier) ;) (declaration "uchar *p2;" type_identifier (pointer_declarator "*p2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (if_statement "if (s1 == s2) {\n    return 0;\n  }" if (parenthesized_expression "(s1 == s2)" ( (binary_expression "s1 == s2" identifier == identifier) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (do_statement "do {\n    uVar1 = (uint)(byte)*s1;\n    s1 = (char *)((byte *)s1 + 1);\n    uVar3 = uVar1;\n    if (uVar1 - 0x41 < 0x1a) {\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }\n    uVar2 = (uint)(byte)*s2;\n    s2 = (char *)((byte *)s2 + 1);\n    uVar4 = uVar2;\n    if (uVar2 - 0x41 < 0x1a) {\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }\n  } while ((uVar1 != 0) && (uVar1 == uVar2));" do (compound_statement "{\n    uVar1 = (uint)(byte)*s1;\n    s1 = (char *)((byte *)s1 + 1);\n    uVar3 = uVar1;\n    if (uVar1 - 0x41 < 0x1a) {\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }\n    uVar2 = (uint)(byte)*s2;\n    s2 = (char *)((byte *)s2 + 1);\n    uVar4 = uVar2;\n    if (uVar2 - 0x41 < 0x1a) {\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }\n  }" { (expression_statement "uVar1 = (uint)(byte)*s1;" (assignment_expression "uVar1 = (uint)(byte)*s1" identifier = (binary_expression "(uint)(byte)*s1" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) * identifier)) ;) (expression_statement "s1 = (char *)((byte *)s1 + 1);" (assignment_expression "s1 = (char *)((byte *)s1 + 1)" identifier = (cast_expression "(char *)((byte *)s1 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((byte *)s1 + 1)" ( (binary_expression "(byte *)s1 + 1" (cast_expression "(byte *)s1" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + number_literal) )))) ;) (expression_statement "uVar3 = uVar1;" (assignment_expression "uVar3 = uVar1" identifier = identifier) ;) (if_statement "if (uVar1 - 0x41 < 0x1a) {\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }" if (parenthesized_expression "(uVar1 - 0x41 < 0x1a)" ( (binary_expression "uVar1 - 0x41 < 0x1a" (binary_expression "uVar1 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }" { (expression_statement "uVar3 = uVar1 + 0x20;" (assignment_expression "uVar3 = uVar1 + 0x20" identifier = (binary_expression "uVar1 + 0x20" identifier + number_literal)) ;) (expression_statement "uVar1 = uVar3 & 0xff;" (assignment_expression "uVar1 = uVar3 & 0xff" identifier = (binary_expression "uVar3 & 0xff" identifier & number_literal)) ;) })) (expression_statement "uVar2 = (uint)(byte)*s2;" (assignment_expression "uVar2 = (uint)(byte)*s2" identifier = (binary_expression "(uint)(byte)*s2" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) * identifier)) ;) (expression_statement "s2 = (char *)((byte *)s2 + 1);" (assignment_expression "s2 = (char *)((byte *)s2 + 1)" identifier = (cast_expression "(char *)((byte *)s2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((byte *)s2 + 1)" ( (binary_expression "(byte *)s2 + 1" (cast_expression "(byte *)s2" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + number_literal) )))) ;) (expression_statement "uVar4 = uVar2;" (assignment_expression "uVar4 = uVar2" identifier = identifier) ;) (if_statement "if (uVar2 - 0x41 < 0x1a) {\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }" if (parenthesized_expression "(uVar2 - 0x41 < 0x1a)" ( (binary_expression "uVar2 - 0x41 < 0x1a" (binary_expression "uVar2 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }" { (expression_statement "uVar4 = uVar2 + 0x20;" (assignment_expression "uVar4 = uVar2 + 0x20" identifier = (binary_expression "uVar2 + 0x20" identifier + number_literal)) ;) (expression_statement "uVar2 = uVar4 & 0xff;" (assignment_expression "uVar2 = uVar4 & 0xff" identifier = (binary_expression "uVar4 & 0xff" identifier & number_literal)) ;) })) }) while (parenthesized_expression "((uVar1 != 0) && (uVar1 == uVar2))" ( (binary_expression "(uVar1 != 0) && (uVar1 == uVar2)" (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar1 == uVar2)" ( (binary_expression "uVar1 == uVar2" identifier == identifier) ))) )) ;) (return_statement "return (uVar3 & 0xff) - (uVar4 & 0xff);" return (binary_expression "(uVar3 & 0xff) - (uVar4 & 0xff)" (parenthesized_expression "(uVar3 & 0xff)" ( (binary_expression "uVar3 & 0xff" identifier & number_literal) )) - (parenthesized_expression "(uVar4 & 0xff)" ( (binary_expression "uVar4 & 0xff" identifier & number_literal) ))) ;) })))
(translation_unit "int c_strcasecmp(byte *param_1,byte *param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (param_1 == param_2) {\n    return 0;\n  }\n  do {\n    uVar1 = (uint)*param_1;\n    param_1 = param_1 + 1;\n    uVar3 = uVar1;\n    if (uVar1 - 0x41 < 0x1a) {\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }\n    uVar2 = (uint)*param_2;\n    param_2 = param_2 + 1;\n    uVar4 = uVar2;\n    if (uVar2 - 0x41 < 0x1a) {\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }\n  } while ((uVar1 != 0) && (uVar1 == uVar2));\n  return (uVar3 & 0xff) - (uVar4 & 0xff);\n}\n\n" (function_definition "int c_strcasecmp(byte *param_1,byte *param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (param_1 == param_2) {\n    return 0;\n  }\n  do {\n    uVar1 = (uint)*param_1;\n    param_1 = param_1 + 1;\n    uVar3 = uVar1;\n    if (uVar1 - 0x41 < 0x1a) {\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }\n    uVar2 = (uint)*param_2;\n    param_2 = param_2 + 1;\n    uVar4 = uVar2;\n    if (uVar2 - 0x41 < 0x1a) {\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }\n  } while ((uVar1 != 0) && (uVar1 == uVar2));\n  return (uVar3 & 0xff) - (uVar4 & 0xff);\n}" primitive_type (function_declarator "c_strcasecmp(byte *param_1,byte *param_2)" identifier (parameter_list "(byte *param_1,byte *param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (param_1 == param_2) {\n    return 0;\n  }\n  do {\n    uVar1 = (uint)*param_1;\n    param_1 = param_1 + 1;\n    uVar3 = uVar1;\n    if (uVar1 - 0x41 < 0x1a) {\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }\n    uVar2 = (uint)*param_2;\n    param_2 = param_2 + 1;\n    uVar4 = uVar2;\n    if (uVar2 - 0x41 < 0x1a) {\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }\n  } while ((uVar1 != 0) && (uVar1 == uVar2));\n  return (uVar3 & 0xff) - (uVar4 & 0xff);\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (if_statement "if (param_1 == param_2) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == param_2)" ( (binary_expression "param_1 == param_2" identifier == identifier) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (do_statement "do {\n    uVar1 = (uint)*param_1;\n    param_1 = param_1 + 1;\n    uVar3 = uVar1;\n    if (uVar1 - 0x41 < 0x1a) {\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }\n    uVar2 = (uint)*param_2;\n    param_2 = param_2 + 1;\n    uVar4 = uVar2;\n    if (uVar2 - 0x41 < 0x1a) {\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }\n  } while ((uVar1 != 0) && (uVar1 == uVar2));" do (compound_statement "{\n    uVar1 = (uint)*param_1;\n    param_1 = param_1 + 1;\n    uVar3 = uVar1;\n    if (uVar1 - 0x41 < 0x1a) {\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }\n    uVar2 = (uint)*param_2;\n    param_2 = param_2 + 1;\n    uVar4 = uVar2;\n    if (uVar2 - 0x41 < 0x1a) {\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }\n  }" { (expression_statement "uVar1 = (uint)*param_1;" (assignment_expression "uVar1 = (uint)*param_1" identifier = (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = uVar1;" (assignment_expression "uVar3 = uVar1" identifier = identifier) ;) (if_statement "if (uVar1 - 0x41 < 0x1a) {\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }" if (parenthesized_expression "(uVar1 - 0x41 < 0x1a)" ( (binary_expression "uVar1 - 0x41 < 0x1a" (binary_expression "uVar1 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }" { (expression_statement "uVar3 = uVar1 + 0x20;" (assignment_expression "uVar3 = uVar1 + 0x20" identifier = (binary_expression "uVar1 + 0x20" identifier + number_literal)) ;) (expression_statement "uVar1 = uVar3 & 0xff;" (assignment_expression "uVar1 = uVar3 & 0xff" identifier = (binary_expression "uVar3 & 0xff" identifier & number_literal)) ;) })) (expression_statement "uVar2 = (uint)*param_2;" (assignment_expression "uVar2 = (uint)*param_2" identifier = (binary_expression "(uint)*param_2" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = uVar2;" (assignment_expression "uVar4 = uVar2" identifier = identifier) ;) (if_statement "if (uVar2 - 0x41 < 0x1a) {\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }" if (parenthesized_expression "(uVar2 - 0x41 < 0x1a)" ( (binary_expression "uVar2 - 0x41 < 0x1a" (binary_expression "uVar2 - 0x41" identifier - number_literal) < number_literal) )) (compound_statement "{\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }" { (expression_statement "uVar4 = uVar2 + 0x20;" (assignment_expression "uVar4 = uVar2 + 0x20" identifier = (binary_expression "uVar2 + 0x20" identifier + number_literal)) ;) (expression_statement "uVar2 = uVar4 & 0xff;" (assignment_expression "uVar2 = uVar4 & 0xff" identifier = (binary_expression "uVar4 & 0xff" identifier & number_literal)) ;) })) }) while (parenthesized_expression "((uVar1 != 0) && (uVar1 == uVar2))" ( (binary_expression "(uVar1 != 0) && (uVar1 == uVar2)" (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(uVar1 == uVar2)" ( (binary_expression "uVar1 == uVar2" identifier == identifier) ))) )) ;) (return_statement "return (uVar3 & 0xff) - (uVar4 & 0xff);" return (binary_expression "(uVar3 & 0xff) - (uVar4 & 0xff)" (parenthesized_expression "(uVar3 & 0xff)" ( (binary_expression "uVar3 & 0xff" identifier & number_literal) )) - (parenthesized_expression "(uVar4 & 0xff)" ( (binary_expression "uVar4 & 0xff" identifier & number_literal) ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return LIT ;) })) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) })) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT == IDENT) ))) )) ;) (return_statement return (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) - (parenthesized_expression ( (binary_expression IDENT & LIT) ))) ;) })))
(function_definition "int c_strcasecmp(byte *param_1,byte *param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (param_1 == param_2) {\n    return 0;\n  }\n  do {\n    uVar1 = (uint)*param_1;\n    param_1 = param_1 + 1;\n    uVar3 = uVar1;\n    if (uVar1 - 0x41 < 0x1a) {\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }\n    uVar2 = (uint)*param_2;\n    param_2 = param_2 + 1;\n    uVar4 = uVar2;\n    if (uVar2 - 0x41 < 0x1a) {\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }\n  } while ((uVar1 != 0) && (uVar1 == uVar2));\n  return (uVar3 & 0xff) - (uVar4 & 0xff);\n}" (primitive_type "int") (function_declarator "c_strcasecmp(byte *param_1,byte *param_2)" (identifier "c_strcasecmp") (parameter_list "(byte *param_1,byte *param_2)" (( "(") (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"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (param_1 == param_2) {\n    return 0;\n  }\n  do {\n    uVar1 = (uint)*param_1;\n    param_1 = param_1 + 1;\n    uVar3 = uVar1;\n    if (uVar1 - 0x41 < 0x1a) {\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }\n    uVar2 = (uint)*param_2;\n    param_2 = param_2 + 1;\n    uVar4 = uVar2;\n    if (uVar2 - 0x41 < 0x1a) {\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }\n  } while ((uVar1 != 0) && (uVar1 == uVar2));\n  return (uVar3 & 0xff) - (uVar4 & 0xff);\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (if_statement "if (param_1 == param_2) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1 == param_2)" (( "(") (binary_expression "param_1 == param_2" (identifier "param_1") (== "==") (identifier "param_2")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (do_statement "do {\n    uVar1 = (uint)*param_1;\n    param_1 = param_1 + 1;\n    uVar3 = uVar1;\n    if (uVar1 - 0x41 < 0x1a) {\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }\n    uVar2 = (uint)*param_2;\n    param_2 = param_2 + 1;\n    uVar4 = uVar2;\n    if (uVar2 - 0x41 < 0x1a) {\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }\n  } while ((uVar1 != 0) && (uVar1 == uVar2));" (do "do") (compound_statement "{\n    uVar1 = (uint)*param_1;\n    param_1 = param_1 + 1;\n    uVar3 = uVar1;\n    if (uVar1 - 0x41 < 0x1a) {\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }\n    uVar2 = (uint)*param_2;\n    param_2 = param_2 + 1;\n    uVar4 = uVar2;\n    if (uVar2 - 0x41 < 0x1a) {\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }\n  }" ({ "{") (expression_statement "uVar1 = (uint)*param_1;" (assignment_expression "uVar1 = (uint)*param_1" (identifier "uVar1") (= "=") (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "param_1"))) (; ";")) (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"))) (; ";")) (expression_statement "uVar3 = uVar1;" (assignment_expression "uVar3 = uVar1" (identifier "uVar3") (= "=") (identifier "uVar1")) (; ";")) (if_statement "if (uVar1 - 0x41 < 0x1a) {\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }" (if "if") (parenthesized_expression "(uVar1 - 0x41 < 0x1a)" (( "(") (binary_expression "uVar1 - 0x41 < 0x1a" (binary_expression "uVar1 - 0x41" (identifier "uVar1") (- "-") (number_literal "0x41")) (< "<") (number_literal "0x1a")) () ")")) (compound_statement "{\n      uVar3 = uVar1 + 0x20;\n      uVar1 = uVar3 & 0xff;\n    }" ({ "{") (expression_statement "uVar3 = uVar1 + 0x20;" (assignment_expression "uVar3 = uVar1 + 0x20" (identifier "uVar3") (= "=") (binary_expression "uVar1 + 0x20" (identifier "uVar1") (+ "+") (number_literal "0x20"))) (; ";")) (expression_statement "uVar1 = uVar3 & 0xff;" (assignment_expression "uVar1 = uVar3 & 0xff" (identifier "uVar1") (= "=") (binary_expression "uVar3 & 0xff" (identifier "uVar3") (& "&") (number_literal "0xff"))) (; ";")) (} "}"))) (expression_statement "uVar2 = (uint)*param_2;" (assignment_expression "uVar2 = (uint)*param_2" (identifier "uVar2") (= "=") (binary_expression "(uint)*param_2" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "param_2"))) (; ";")) (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"))) (; ";")) (expression_statement "uVar4 = uVar2;" (assignment_expression "uVar4 = uVar2" (identifier "uVar4") (= "=") (identifier "uVar2")) (; ";")) (if_statement "if (uVar2 - 0x41 < 0x1a) {\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }" (if "if") (parenthesized_expression "(uVar2 - 0x41 < 0x1a)" (( "(") (binary_expression "uVar2 - 0x41 < 0x1a" (binary_expression "uVar2 - 0x41" (identifier "uVar2") (- "-") (number_literal "0x41")) (< "<") (number_literal "0x1a")) () ")")) (compound_statement "{\n      uVar4 = uVar2 + 0x20;\n      uVar2 = uVar4 & 0xff;\n    }" ({ "{") (expression_statement "uVar4 = uVar2 + 0x20;" (assignment_expression "uVar4 = uVar2 + 0x20" (identifier "uVar4") (= "=") (binary_expression "uVar2 + 0x20" (identifier "uVar2") (+ "+") (number_literal "0x20"))) (; ";")) (expression_statement "uVar2 = uVar4 & 0xff;" (assignment_expression "uVar2 = uVar4 & 0xff" (identifier "uVar2") (= "=") (binary_expression "uVar4 & 0xff" (identifier "uVar4") (& "&") (number_literal "0xff"))) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "((uVar1 != 0) && (uVar1 == uVar2))" (( "(") (binary_expression "(uVar1 != 0) && (uVar1 == uVar2)" (parenthesized_expression "(uVar1 != 0)" (( "(") (binary_expression "uVar1 != 0" (identifier "uVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar1 == uVar2)" (( "(") (binary_expression "uVar1 == uVar2" (identifier "uVar1") (== "==") (identifier "uVar2")) () ")"))) () ")")) (; ";")) (return_statement "return (uVar3 & 0xff) - (uVar4 & 0xff);" (return "return") (binary_expression "(uVar3 & 0xff) - (uVar4 & 0xff)" (parenthesized_expression "(uVar3 & 0xff)" (( "(") (binary_expression "uVar3 & 0xff" (identifier "uVar3") (& "&") (number_literal "0xff")) () ")")) (- "-") (parenthesized_expression "(uVar4 & 0xff)" (( "(") (binary_expression "uVar4 & 0xff" (identifier "uVar4") (& "&") (number_literal "0xff")) () ")"))) (; ";")) (} "}")))

int function_1(char *var_1,char *var_2)

{
  type_1 var_3;
  type_1 var_5;
  type_2 *p1;
  type_2 *p2;
  type_1 var_4;
  type_1 var_6;
  
  if (var_1 == var_2) {
    return 0;
  }
  do {
    var_3 = (type_1)(type_3)*var_1;
    var_1 = (char *)((type_3 *)var_1 + 1);
    var_4 = var_3;
    if (var_3 - 0x41 < 0x1a) {
      var_4 = var_3 + 0x20;
      var_3 = var_4 & 0xff;
    }
    var_5 = (type_1)(type_3)*var_2;
    var_2 = (char *)((type_3 *)var_2 + 1);
    var_6 = var_5;
    if (var_5 - 0x41 < 0x1a) {
      var_6 = var_5 + 0x20;
      var_5 = var_6 & 0xff;
    }
  } while ((var_3 != 0) && (var_3 == var_5));
  return (var_4 & 0xff) - (var_6 & 0xff);
}


(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))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) 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: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) 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: (binary_expression left: (identifier) right: (number_literal))))))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (return_statement (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))

int MASKED(byte *param_1,byte *param_2)

{
  uint uVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  
  if (param_1 == param_2) {
    return 0;
  }
  do {
    uVar1 = (uint)*param_1;
    param_1 = param_1 + 1;
    uVar3 = uVar1;
    if (uVar1 - 0x41 < 0x1a) {
      uVar3 = uVar1 + 0x20;
      uVar1 = uVar3 & 0xff;
    }
    uVar2 = (uint)*param_2;
    param_2 = param_2 + 1;
    uVar4 = uVar2;
    if (uVar2 - 0x41 < 0x1a) {
      uVar4 = uVar2 + 0x20;
      uVar2 = uVar4 & 0xff;
    }
  } while ((uVar1 != 0) && (uVar1 == uVar2));
  return (uVar3 & 0xff) - (uVar4 & 0xff);
}

