
uint xcrc32(uchar *buf,int len,uint init)

{
  byte bVar1;
  byte *pbVar2;
  uint crc;
  
  if (len != 0) {
    pbVar2 = buf + len;
    do {
      bVar1 = *buf;
      buf = buf + 1;
      init = init << 8 ^ *(uint *)(PTR_UINT_004c12dc + (init >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);
    } while (buf != pbVar2);
    return init;
  }
  return init;
}



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

{
  byte bVar1;
  byte *pbVar2;
  
  if (param_2 != 0) {
    pbVar2 = param_1 + param_2;
    do {
      bVar1 = *param_1;
      param_1 = param_1 + 1;
      param_3 = param_3 << 8 ^
                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);
    } while (param_1 != pbVar2);
    return param_3;
  }
  return param_3;
}


lui gp,0x1a
addiu gp,gp,-0xd20
addu gp,gp,t9
beq a1,zero,0x00329fb0
_lw a3,-0x7f64(gp)
addu a1,a0,a1
or v0,a2,zero
addiu a3,a3,-0x5240
lbu a2,0x0(a0)
srl v1,v0,0x18
addiu a0,a0,0x1
sll v0,v0,0x8
xor v1,v1,a2
sll v1,v1,0x2
addu v1,a3,v1
lw a2,0x0(v1)
bne a0,a1,0x00329f80
_xor v0,v0,a2
jr ra
_nop
jr ra
_or v0,a2,zero
(translation_unit "uint xcrc32(byte *param_1,int param_2,uint param_3)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  \n  if (param_2 != 0) {\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }\n  return param_3;\n}\n\n" (function_definition "uint xcrc32(byte *param_1,int param_2,uint param_3)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  \n  if (param_2 != 0) {\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }\n  return param_3;\n}" type_identifier (function_declarator "xcrc32(byte *param_1,int param_2,uint param_3)" identifier (parameter_list "(byte *param_1,int param_2,uint param_3)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  \n  if (param_2 != 0) {\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }\n  return param_3;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (if_statement "if (param_2 != 0) {\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }" { (expression_statement "pbVar2 = param_1 + param_2;" (assignment_expression "pbVar2 = param_1 + param_2" identifier = (binary_expression "param_1 + param_2" identifier + identifier)) ;) (do_statement "do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    } while (param_1 != pbVar2);" do (compound_statement "{\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    }" { (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * 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 "param_3 = param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);" (assignment_expression "param_3 = param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240)" identifier = (binary_expression "param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240)" (binary_expression "param_3 << 8" identifier << number_literal) ^ (pointer_expression "*(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240)" * (cast_expression "(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240)" ( (binary_expression "PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240" (binary_expression "PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4" identifier + (binary_expression "(param_3 >> 0x18 ^ (uint)bVar1) * 4" (parenthesized_expression "(param_3 >> 0x18 ^ (uint)bVar1)" ( (binary_expression "param_3 >> 0x18 ^ (uint)bVar1" (binary_expression "param_3 >> 0x18" identifier >> number_literal) ^ (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) )) * number_literal)) + number_literal) )))))) ;) }) while (parenthesized_expression "(param_1 != pbVar2)" ( (binary_expression "param_1 != pbVar2" identifier != identifier) )) ;) (return_statement "return param_3;" return identifier ;) })) (return_statement "return param_3;" return identifier ;) })))
(translation_unit "uint xcrc32(uchar *buf,int len,uint init)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  uint crc;\n  \n  if (len != 0) {\n    pbVar2 = buf + len;\n    do {\n      bVar1 = *buf;\n      buf = buf + 1;\n      init = init << 8 ^ *(uint *)(PTR_UINT_004c12dc + (init >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    } while (buf != pbVar2);\n    return init;\n  }\n  return init;\n}\n\n" (function_definition "uint xcrc32(uchar *buf,int len,uint init)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  uint crc;\n  \n  if (len != 0) {\n    pbVar2 = buf + len;\n    do {\n      bVar1 = *buf;\n      buf = buf + 1;\n      init = init << 8 ^ *(uint *)(PTR_UINT_004c12dc + (init >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    } while (buf != pbVar2);\n    return init;\n  }\n  return init;\n}" type_identifier (function_declarator "xcrc32(uchar *buf,int len,uint init)" identifier (parameter_list "(uchar *buf,int len,uint init)" ( (parameter_declaration "uchar *buf" type_identifier (pointer_declarator "*buf" * identifier)) , (parameter_declaration "int len" primitive_type identifier) , (parameter_declaration "uint init" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  uint crc;\n  \n  if (len != 0) {\n    pbVar2 = buf + len;\n    do {\n      bVar1 = *buf;\n      buf = buf + 1;\n      init = init << 8 ^ *(uint *)(PTR_UINT_004c12dc + (init >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    } while (buf != pbVar2);\n    return init;\n  }\n  return init;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "uint crc;" type_identifier identifier ;) (if_statement "if (len != 0) {\n    pbVar2 = buf + len;\n    do {\n      bVar1 = *buf;\n      buf = buf + 1;\n      init = init << 8 ^ *(uint *)(PTR_UINT_004c12dc + (init >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    } while (buf != pbVar2);\n    return init;\n  }" if (parenthesized_expression "(len != 0)" ( (binary_expression "len != 0" identifier != number_literal) )) (compound_statement "{\n    pbVar2 = buf + len;\n    do {\n      bVar1 = *buf;\n      buf = buf + 1;\n      init = init << 8 ^ *(uint *)(PTR_UINT_004c12dc + (init >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    } while (buf != pbVar2);\n    return init;\n  }" { (expression_statement "pbVar2 = buf + len;" (assignment_expression "pbVar2 = buf + len" identifier = (binary_expression "buf + len" identifier + identifier)) ;) (do_statement "do {\n      bVar1 = *buf;\n      buf = buf + 1;\n      init = init << 8 ^ *(uint *)(PTR_UINT_004c12dc + (init >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    } while (buf != pbVar2);" do (compound_statement "{\n      bVar1 = *buf;\n      buf = buf + 1;\n      init = init << 8 ^ *(uint *)(PTR_UINT_004c12dc + (init >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    }" { (expression_statement "bVar1 = *buf;" (assignment_expression "bVar1 = *buf" identifier = (pointer_expression "*buf" * identifier)) ;) (expression_statement "buf = buf + 1;" (assignment_expression "buf = buf + 1" identifier = (binary_expression "buf + 1" identifier + number_literal)) ;) (expression_statement "init = init << 8 ^ *(uint *)(PTR_UINT_004c12dc + (init >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);" (assignment_expression "init = init << 8 ^ *(uint *)(PTR_UINT_004c12dc + (init >> 0x18 ^ (uint)bVar1) * 4 + -0x5240)" identifier = (binary_expression "init << 8 ^ *(uint *)(PTR_UINT_004c12dc + (init >> 0x18 ^ (uint)bVar1) * 4 + -0x5240)" (binary_expression "init << 8" identifier << number_literal) ^ (pointer_expression "*(uint *)(PTR_UINT_004c12dc + (init >> 0x18 ^ (uint)bVar1) * 4 + -0x5240)" * (cast_expression "(uint *)(PTR_UINT_004c12dc + (init >> 0x18 ^ (uint)bVar1) * 4 + -0x5240)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_UINT_004c12dc + (init >> 0x18 ^ (uint)bVar1) * 4 + -0x5240)" ( (binary_expression "PTR_UINT_004c12dc + (init >> 0x18 ^ (uint)bVar1) * 4 + -0x5240" (binary_expression "PTR_UINT_004c12dc + (init >> 0x18 ^ (uint)bVar1) * 4" identifier + (binary_expression "(init >> 0x18 ^ (uint)bVar1) * 4" (parenthesized_expression "(init >> 0x18 ^ (uint)bVar1)" ( (binary_expression "init >> 0x18 ^ (uint)bVar1" (binary_expression "init >> 0x18" identifier >> number_literal) ^ (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) )) * number_literal)) + number_literal) )))))) ;) }) while (parenthesized_expression "(buf != pbVar2)" ( (binary_expression "buf != pbVar2" identifier != identifier) )) ;) (return_statement "return init;" return identifier ;) })) (return_statement "return init;" return identifier ;) })))
(translation_unit "uint xcrc32(byte *param_1,int param_2,uint param_3)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  \n  if (param_2 != 0) {\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }\n  return param_3;\n}\n\n" (function_definition "uint xcrc32(byte *param_1,int param_2,uint param_3)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  \n  if (param_2 != 0) {\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }\n  return param_3;\n}" type_identifier (function_declarator "xcrc32(byte *param_1,int param_2,uint param_3)" identifier (parameter_list "(byte *param_1,int param_2,uint param_3)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  \n  if (param_2 != 0) {\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }\n  return param_3;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (if_statement "if (param_2 != 0) {\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }" { (expression_statement "pbVar2 = param_1 + param_2;" (assignment_expression "pbVar2 = param_1 + param_2" identifier = (binary_expression "param_1 + param_2" identifier + identifier)) ;) (do_statement "do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    } while (param_1 != pbVar2);" do (compound_statement "{\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    }" { (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" identifier = (pointer_expression "*param_1" * 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 "param_3 = param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);" (assignment_expression "param_3 = param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240)" identifier = (binary_expression "param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240)" (binary_expression "param_3 << 8" identifier << number_literal) ^ (pointer_expression "*(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240)" * (cast_expression "(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240)" ( (binary_expression "PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240" (binary_expression "PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4" identifier + (binary_expression "(param_3 >> 0x18 ^ (uint)bVar1) * 4" (parenthesized_expression "(param_3 >> 0x18 ^ (uint)bVar1)" ( (binary_expression "param_3 >> 0x18 ^ (uint)bVar1" (binary_expression "param_3 >> 0x18" identifier >> number_literal) ^ (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) )) * number_literal)) + number_literal) )))))) ;) }) while (parenthesized_expression "(param_1 != pbVar2)" ( (binary_expression "param_1 != pbVar2" identifier != identifier) )) ;) (return_statement "return param_3;" return identifier ;) })) (return_statement "return param_3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT << LIT) ^ (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT >> LIT) ^ (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) * LIT)) + LIT) )))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (return_statement return IDENT ;) })) (return_statement return IDENT ;) })))
(function_definition "uint xcrc32(byte *param_1,int param_2,uint param_3)\n\n{\n  byte bVar1;\n  byte *pbVar2;\n  \n  if (param_2 != 0) {\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }\n  return param_3;\n}" (type_identifier "uint") (function_declarator "xcrc32(byte *param_1,int param_2,uint param_3)" (identifier "xcrc32") (parameter_list "(byte *param_1,int param_2,uint param_3)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  byte bVar1;\n  byte *pbVar2;\n  \n  if (param_2 != 0) {\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }\n  return param_3;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (if_statement "if (param_2 != 0) {\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    pbVar2 = param_1 + param_2;\n    do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    } while (param_1 != pbVar2);\n    return param_3;\n  }" ({ "{") (expression_statement "pbVar2 = param_1 + param_2;" (assignment_expression "pbVar2 = param_1 + param_2" (identifier "pbVar2") (= "=") (binary_expression "param_1 + param_2" (identifier "param_1") (+ "+") (identifier "param_2"))) (; ";")) (do_statement "do {\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    } while (param_1 != pbVar2);" (do "do") (compound_statement "{\n      bVar1 = *param_1;\n      param_1 = param_1 + 1;\n      param_3 = param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);\n    }" ({ "{") (expression_statement "bVar1 = *param_1;" (assignment_expression "bVar1 = *param_1" (identifier "bVar1") (= "=") (pointer_expression "*param_1" (* "*") (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 "param_3 = param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);" (assignment_expression "param_3 = param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240)" (identifier "param_3") (= "=") (binary_expression "param_3 << 8 ^\n                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240)" (binary_expression "param_3 << 8" (identifier "param_3") (<< "<<") (number_literal "8")) (^ "^") (pointer_expression "*(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240)" (* "*") (cast_expression "(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240)" (( "(") (binary_expression "PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240" (binary_expression "PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4" (identifier "PTR_UINT_004c12dc") (+ "+") (binary_expression "(param_3 >> 0x18 ^ (uint)bVar1) * 4" (parenthesized_expression "(param_3 >> 0x18 ^ (uint)bVar1)" (( "(") (binary_expression "param_3 >> 0x18 ^ (uint)bVar1" (binary_expression "param_3 >> 0x18" (identifier "param_3") (>> ">>") (number_literal "0x18")) (^ "^") (cast_expression "(uint)bVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar1"))) () ")")) (* "*") (number_literal "4"))) (+ "+") (number_literal "-0x5240")) () ")")))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1 != pbVar2)" (( "(") (binary_expression "param_1 != pbVar2" (identifier "param_1") (!= "!=") (identifier "pbVar2")) () ")")) (; ";")) (return_statement "return param_3;" (return "return") (identifier "param_3") (; ";")) (} "}"))) (return_statement "return param_3;" (return "return") (identifier "param_3") (; ";")) (} "}")))
(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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (do_statement body: (compound_statement (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: (binary_expression left: (identifier) right: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) right: (number_literal))) right: (number_literal))))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (return_statement (identifier)))) (return_statement (identifier)))))

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

{
  byte bVar1;
  byte *pbVar2;
  
  if (param_2 != 0) {
    pbVar2 = param_1 + param_2;
    do {
      bVar1 = *param_1;
      param_1 = param_1 + 1;
      param_3 = param_3 << 8 ^
                *(uint *)(PTR_UINT_004c12dc + (param_3 >> 0x18 ^ (uint)bVar1) * 4 + -0x5240);
    } while (param_1 != pbVar2);
    return param_3;
  }
  return param_3;
}

