
int smemeq(void *av,void *bv,size_t len)

{
  byte bVar1;
  uint uVar2;
  uchar *a;
  byte *pbVar3;
  uchar *b;
  byte *pbVar4;
  
  if (len != 0) {
    uVar2 = 0;
    pbVar4 = (byte *)av;
    do {
      pbVar3 = pbVar4 + 1;
                    /* WARNING: Load size is inaccurate */
      bVar1 = *bv;
      bv = (void *)((int)bv + 1);
      uVar2 = uVar2 | *pbVar4 ^ bVar1;
      pbVar4 = pbVar3;
    } while (pbVar3 != (byte *)((int)av + len));
    return 0x100 - uVar2 >> 8;
  }
  return 1;
}



uint smemeq(byte *param_1,byte *param_2,int param_3)

{
  byte bVar1;
  uint uVar2;
  byte *pbVar3;
  byte *pbVar4;
  
  if (param_3 != 0) {
    uVar2 = 0;
    pbVar4 = param_1;
    do {
      pbVar3 = pbVar4 + 1;
      bVar1 = *param_2;
      param_2 = param_2 + 1;
      uVar2 = uVar2 | *pbVar4 ^ bVar1;
      pbVar4 = pbVar3;
    } while (pbVar3 != param_1 + param_3);
    return 0x100 - uVar2 >> 8;
  }
  return 1;
}


beq a2,zero,0x0003a6ec
_addu a2,a0,a2
or v1,zero,zero
addiu a0,a0,0x1
lbu a3,0x0(a1)
lbu v0,-0x1(a0)
addiu a1,a1,0x1
xor v0,v0,a3
bne a0,a2,0x0003a6c0
_or v1,v1,v0
li v0,0x100
subu v0,v0,v1
jr ra
_srl v0,v0,0x8
jr ra
_li v0,0x1
(translation_unit "uint smemeq(byte *param_1,byte *param_2,int param_3)\n\n{\n  byte bVar1;\n  uint uVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  \n  if (param_3 != 0) {\n    uVar2 = 0;\n    pbVar4 = param_1;\n    do {\n      pbVar3 = pbVar4 + 1;\n      bVar1 = *param_2;\n      param_2 = param_2 + 1;\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    } while (pbVar3 != param_1 + param_3);\n    return 0x100 - uVar2 >> 8;\n  }\n  return 1;\n}\n\n" (function_definition "uint smemeq(byte *param_1,byte *param_2,int param_3)\n\n{\n  byte bVar1;\n  uint uVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  \n  if (param_3 != 0) {\n    uVar2 = 0;\n    pbVar4 = param_1;\n    do {\n      pbVar3 = pbVar4 + 1;\n      bVar1 = *param_2;\n      param_2 = param_2 + 1;\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    } while (pbVar3 != param_1 + param_3);\n    return 0x100 - uVar2 >> 8;\n  }\n  return 1;\n}" type_identifier (function_declarator "smemeq(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  byte bVar1;\n  uint uVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  \n  if (param_3 != 0) {\n    uVar2 = 0;\n    pbVar4 = param_1;\n    do {\n      pbVar3 = pbVar4 + 1;\n      bVar1 = *param_2;\n      param_2 = param_2 + 1;\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    } while (pbVar3 != param_1 + param_3);\n    return 0x100 - uVar2 >> 8;\n  }\n  return 1;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (if_statement "if (param_3 != 0) {\n    uVar2 = 0;\n    pbVar4 = param_1;\n    do {\n      pbVar3 = pbVar4 + 1;\n      bVar1 = *param_2;\n      param_2 = param_2 + 1;\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    } while (pbVar3 != param_1 + param_3);\n    return 0x100 - uVar2 >> 8;\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = 0;\n    pbVar4 = param_1;\n    do {\n      pbVar3 = pbVar4 + 1;\n      bVar1 = *param_2;\n      param_2 = param_2 + 1;\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    } while (pbVar3 != param_1 + param_3);\n    return 0x100 - uVar2 >> 8;\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "pbVar4 = param_1;" (assignment_expression "pbVar4 = param_1" identifier = identifier) ;) (do_statement "do {\n      pbVar3 = pbVar4 + 1;\n      bVar1 = *param_2;\n      param_2 = param_2 + 1;\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    } while (pbVar3 != param_1 + param_3);" do (compound_statement "{\n      pbVar3 = pbVar4 + 1;\n      bVar1 = *param_2;\n      param_2 = param_2 + 1;\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    }" { (expression_statement "pbVar3 = pbVar4 + 1;" (assignment_expression "pbVar3 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = *param_2;" (assignment_expression "bVar1 = *param_2" identifier = (pointer_expression "*param_2" * 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 "uVar2 = uVar2 | *pbVar4 ^ bVar1;" (assignment_expression "uVar2 = uVar2 | *pbVar4 ^ bVar1" identifier = (binary_expression "uVar2 | *pbVar4 ^ bVar1" identifier | (binary_expression "*pbVar4 ^ bVar1" (pointer_expression "*pbVar4" * identifier) ^ identifier))) ;) (expression_statement "pbVar4 = pbVar3;" (assignment_expression "pbVar4 = pbVar3" identifier = identifier) ;) }) while (parenthesized_expression "(pbVar3 != param_1 + param_3)" ( (binary_expression "pbVar3 != param_1 + param_3" identifier != (binary_expression "param_1 + param_3" identifier + identifier)) )) ;) (return_statement "return 0x100 - uVar2 >> 8;" return (binary_expression "0x100 - uVar2 >> 8" (binary_expression "0x100 - uVar2" number_literal - identifier) >> number_literal) ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "int smemeq(void *av,void *bv,size_t len)\n\n{\n  byte bVar1;\n  uint uVar2;\n  uchar *a;\n  byte *pbVar3;\n  uchar *b;\n  byte *pbVar4;\n  \n  if (len != 0) {\n    uVar2 = 0;\n    pbVar4 = (byte *)av;\n    do {\n      pbVar3 = pbVar4 + 1;\n                    /* WARNING: Load size is inaccurate */\n      bVar1 = *bv;\n      bv = (void *)((int)bv + 1);\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    } while (pbVar3 != (byte *)((int)av + len));\n    return 0x100 - uVar2 >> 8;\n  }\n  return 1;\n}\n\n" (function_definition "int smemeq(void *av,void *bv,size_t len)\n\n{\n  byte bVar1;\n  uint uVar2;\n  uchar *a;\n  byte *pbVar3;\n  uchar *b;\n  byte *pbVar4;\n  \n  if (len != 0) {\n    uVar2 = 0;\n    pbVar4 = (byte *)av;\n    do {\n      pbVar3 = pbVar4 + 1;\n                    /* WARNING: Load size is inaccurate */\n      bVar1 = *bv;\n      bv = (void *)((int)bv + 1);\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    } while (pbVar3 != (byte *)((int)av + len));\n    return 0x100 - uVar2 >> 8;\n  }\n  return 1;\n}" primitive_type (function_declarator "smemeq(void *av,void *bv,size_t len)" identifier (parameter_list "(void *av,void *bv,size_t len)" ( (parameter_declaration "void *av" primitive_type (pointer_declarator "*av" * identifier)) , (parameter_declaration "void *bv" primitive_type (pointer_declarator "*bv" * identifier)) , (parameter_declaration "size_t len" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  uchar *a;\n  byte *pbVar3;\n  uchar *b;\n  byte *pbVar4;\n  \n  if (len != 0) {\n    uVar2 = 0;\n    pbVar4 = (byte *)av;\n    do {\n      pbVar3 = pbVar4 + 1;\n                    /* WARNING: Load size is inaccurate */\n      bVar1 = *bv;\n      bv = (void *)((int)bv + 1);\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    } while (pbVar3 != (byte *)((int)av + len));\n    return 0x100 - uVar2 >> 8;\n  }\n  return 1;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uchar *a;" type_identifier (pointer_declarator "*a" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "uchar *b;" type_identifier (pointer_declarator "*b" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (if_statement "if (len != 0) {\n    uVar2 = 0;\n    pbVar4 = (byte *)av;\n    do {\n      pbVar3 = pbVar4 + 1;\n                    /* WARNING: Load size is inaccurate */\n      bVar1 = *bv;\n      bv = (void *)((int)bv + 1);\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    } while (pbVar3 != (byte *)((int)av + len));\n    return 0x100 - uVar2 >> 8;\n  }" if (parenthesized_expression "(len != 0)" ( (binary_expression "len != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = 0;\n    pbVar4 = (byte *)av;\n    do {\n      pbVar3 = pbVar4 + 1;\n                    /* WARNING: Load size is inaccurate */\n      bVar1 = *bv;\n      bv = (void *)((int)bv + 1);\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    } while (pbVar3 != (byte *)((int)av + len));\n    return 0x100 - uVar2 >> 8;\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "pbVar4 = (byte *)av;" (assignment_expression "pbVar4 = (byte *)av" identifier = (cast_expression "(byte *)av" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n      pbVar3 = pbVar4 + 1;\n                    /* WARNING: Load size is inaccurate */\n      bVar1 = *bv;\n      bv = (void *)((int)bv + 1);\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    } while (pbVar3 != (byte *)((int)av + len));" do (compound_statement "{\n      pbVar3 = pbVar4 + 1;\n                    /* WARNING: Load size is inaccurate */\n      bVar1 = *bv;\n      bv = (void *)((int)bv + 1);\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    }" { (expression_statement "pbVar3 = pbVar4 + 1;" (assignment_expression "pbVar3 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) comment (expression_statement "bVar1 = *bv;" (assignment_expression "bVar1 = *bv" identifier = (pointer_expression "*bv" * identifier)) ;) (expression_statement "bv = (void *)((int)bv + 1);" (assignment_expression "bv = (void *)((int)bv + 1)" identifier = (cast_expression "(void *)((int)bv + 1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)bv + 1)" ( (binary_expression "(int)bv + 1" (cast_expression "(int)bv" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "uVar2 = uVar2 | *pbVar4 ^ bVar1;" (assignment_expression "uVar2 = uVar2 | *pbVar4 ^ bVar1" identifier = (binary_expression "uVar2 | *pbVar4 ^ bVar1" identifier | (binary_expression "*pbVar4 ^ bVar1" (pointer_expression "*pbVar4" * identifier) ^ identifier))) ;) (expression_statement "pbVar4 = pbVar3;" (assignment_expression "pbVar4 = pbVar3" identifier = identifier) ;) }) while (parenthesized_expression "(pbVar3 != (byte *)((int)av + len))" ( (binary_expression "pbVar3 != (byte *)((int)av + len)" identifier != (cast_expression "(byte *)((int)av + len)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)av + len)" ( (binary_expression "(int)av + len" (cast_expression "(int)av" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) )) ;) (return_statement "return 0x100 - uVar2 >> 8;" return (binary_expression "0x100 - uVar2 >> 8" (binary_expression "0x100 - uVar2" number_literal - identifier) >> number_literal) ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "uint smemeq(byte *param_1,byte *param_2,int param_3)\n\n{\n  byte bVar1;\n  uint uVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  \n  if (param_3 != 0) {\n    uVar2 = 0;\n    pbVar4 = param_1;\n    do {\n      pbVar3 = pbVar4 + 1;\n      bVar1 = *param_2;\n      param_2 = param_2 + 1;\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    } while (pbVar3 != param_1 + param_3);\n    return 0x100 - uVar2 >> 8;\n  }\n  return 1;\n}\n\n" (function_definition "uint smemeq(byte *param_1,byte *param_2,int param_3)\n\n{\n  byte bVar1;\n  uint uVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  \n  if (param_3 != 0) {\n    uVar2 = 0;\n    pbVar4 = param_1;\n    do {\n      pbVar3 = pbVar4 + 1;\n      bVar1 = *param_2;\n      param_2 = param_2 + 1;\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    } while (pbVar3 != param_1 + param_3);\n    return 0x100 - uVar2 >> 8;\n  }\n  return 1;\n}" type_identifier (function_declarator "smemeq(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  byte bVar1;\n  uint uVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  \n  if (param_3 != 0) {\n    uVar2 = 0;\n    pbVar4 = param_1;\n    do {\n      pbVar3 = pbVar4 + 1;\n      bVar1 = *param_2;\n      param_2 = param_2 + 1;\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    } while (pbVar3 != param_1 + param_3);\n    return 0x100 - uVar2 >> 8;\n  }\n  return 1;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (if_statement "if (param_3 != 0) {\n    uVar2 = 0;\n    pbVar4 = param_1;\n    do {\n      pbVar3 = pbVar4 + 1;\n      bVar1 = *param_2;\n      param_2 = param_2 + 1;\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    } while (pbVar3 != param_1 + param_3);\n    return 0x100 - uVar2 >> 8;\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = 0;\n    pbVar4 = param_1;\n    do {\n      pbVar3 = pbVar4 + 1;\n      bVar1 = *param_2;\n      param_2 = param_2 + 1;\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    } while (pbVar3 != param_1 + param_3);\n    return 0x100 - uVar2 >> 8;\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "pbVar4 = param_1;" (assignment_expression "pbVar4 = param_1" identifier = identifier) ;) (do_statement "do {\n      pbVar3 = pbVar4 + 1;\n      bVar1 = *param_2;\n      param_2 = param_2 + 1;\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    } while (pbVar3 != param_1 + param_3);" do (compound_statement "{\n      pbVar3 = pbVar4 + 1;\n      bVar1 = *param_2;\n      param_2 = param_2 + 1;\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    }" { (expression_statement "pbVar3 = pbVar4 + 1;" (assignment_expression "pbVar3 = pbVar4 + 1" identifier = (binary_expression "pbVar4 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = *param_2;" (assignment_expression "bVar1 = *param_2" identifier = (pointer_expression "*param_2" * 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 "uVar2 = uVar2 | *pbVar4 ^ bVar1;" (assignment_expression "uVar2 = uVar2 | *pbVar4 ^ bVar1" identifier = (binary_expression "uVar2 | *pbVar4 ^ bVar1" identifier | (binary_expression "*pbVar4 ^ bVar1" (pointer_expression "*pbVar4" * identifier) ^ identifier))) ;) (expression_statement "pbVar4 = pbVar3;" (assignment_expression "pbVar4 = pbVar3" identifier = identifier) ;) }) while (parenthesized_expression "(pbVar3 != param_1 + param_3)" ( (binary_expression "pbVar3 != param_1 + param_3" identifier != (binary_expression "param_1 + param_3" identifier + identifier)) )) ;) (return_statement "return 0x100 - uVar2 >> 8;" return (binary_expression "0x100 - uVar2 >> 8" (binary_expression "0x100 - uVar2" number_literal - identifier) >> number_literal) ;) })) (return_statement "return 1;" 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 IDENT ;) (declaration TYPE 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 = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | (binary_expression (pointer_expression * IDENT) ^ IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + IDENT)) )) ;) (return_statement return (binary_expression (binary_expression LIT - IDENT) >> LIT) ;) })) (return_statement return LIT ;) })))
(function_definition "uint smemeq(byte *param_1,byte *param_2,int param_3)\n\n{\n  byte bVar1;\n  uint uVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  \n  if (param_3 != 0) {\n    uVar2 = 0;\n    pbVar4 = param_1;\n    do {\n      pbVar3 = pbVar4 + 1;\n      bVar1 = *param_2;\n      param_2 = param_2 + 1;\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    } while (pbVar3 != param_1 + param_3);\n    return 0x100 - uVar2 >> 8;\n  }\n  return 1;\n}" (type_identifier "uint") (function_declarator "smemeq(byte *param_1,byte *param_2,int param_3)" (identifier "smemeq") (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  byte bVar1;\n  uint uVar2;\n  byte *pbVar3;\n  byte *pbVar4;\n  \n  if (param_3 != 0) {\n    uVar2 = 0;\n    pbVar4 = param_1;\n    do {\n      pbVar3 = pbVar4 + 1;\n      bVar1 = *param_2;\n      param_2 = param_2 + 1;\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    } while (pbVar3 != param_1 + param_3);\n    return 0x100 - uVar2 >> 8;\n  }\n  return 1;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (if_statement "if (param_3 != 0) {\n    uVar2 = 0;\n    pbVar4 = param_1;\n    do {\n      pbVar3 = pbVar4 + 1;\n      bVar1 = *param_2;\n      param_2 = param_2 + 1;\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    } while (pbVar3 != param_1 + param_3);\n    return 0x100 - uVar2 >> 8;\n  }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = 0;\n    pbVar4 = param_1;\n    do {\n      pbVar3 = pbVar4 + 1;\n      bVar1 = *param_2;\n      param_2 = param_2 + 1;\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    } while (pbVar3 != param_1 + param_3);\n    return 0x100 - uVar2 >> 8;\n  }" ({ "{") (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar4 = param_1;" (assignment_expression "pbVar4 = param_1" (identifier "pbVar4") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n      pbVar3 = pbVar4 + 1;\n      bVar1 = *param_2;\n      param_2 = param_2 + 1;\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    } while (pbVar3 != param_1 + param_3);" (do "do") (compound_statement "{\n      pbVar3 = pbVar4 + 1;\n      bVar1 = *param_2;\n      param_2 = param_2 + 1;\n      uVar2 = uVar2 | *pbVar4 ^ bVar1;\n      pbVar4 = pbVar3;\n    }" ({ "{") (expression_statement "pbVar3 = pbVar4 + 1;" (assignment_expression "pbVar3 = pbVar4 + 1" (identifier "pbVar3") (= "=") (binary_expression "pbVar4 + 1" (identifier "pbVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar1 = *param_2;" (assignment_expression "bVar1 = *param_2" (identifier "bVar1") (= "=") (pointer_expression "*param_2" (* "*") (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 "uVar2 = uVar2 | *pbVar4 ^ bVar1;" (assignment_expression "uVar2 = uVar2 | *pbVar4 ^ bVar1" (identifier "uVar2") (= "=") (binary_expression "uVar2 | *pbVar4 ^ bVar1" (identifier "uVar2") (| "|") (binary_expression "*pbVar4 ^ bVar1" (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")) (^ "^") (identifier "bVar1")))) (; ";")) (expression_statement "pbVar4 = pbVar3;" (assignment_expression "pbVar4 = pbVar3" (identifier "pbVar4") (= "=") (identifier "pbVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pbVar3 != param_1 + param_3)" (( "(") (binary_expression "pbVar3 != param_1 + param_3" (identifier "pbVar3") (!= "!=") (binary_expression "param_1 + param_3" (identifier "param_1") (+ "+") (identifier "param_3"))) () ")")) (; ";")) (return_statement "return 0x100 - uVar2 >> 8;" (return "return") (binary_expression "0x100 - uVar2 >> 8" (binary_expression "0x100 - uVar2" (number_literal "0x100") (- "-") (identifier "uVar2")) (>> ">>") (number_literal "8")) (; ";")) (} "}"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) 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: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) 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: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (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: (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) (return_statement (binary_expression left: (binary_expression left: (number_literal) right: (identifier)) right: (number_literal))))) (return_statement (number_literal)))))

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

{
  byte bVar1;
  uint uVar2;
  byte *pbVar3;
  byte *pbVar4;
  
  if (param_3 != 0) {
    uVar2 = 0;
    pbVar4 = param_1;
    do {
      pbVar3 = pbVar4 + 1;
      bVar1 = *param_2;
      param_2 = param_2 + 1;
      uVar2 = uVar2 | *pbVar4 ^ bVar1;
      pbVar4 = pbVar3;
    } while (pbVar3 != param_1 + param_3);
    return 0x100 - uVar2 >> 8;
  }
  return 1;
}

