
ulong crc32_update(ulong crcword,void *buf,size_t len)

{
  uchar *p;
  byte *pbVar1;
  byte *pbVar2;
  
  if (len != 0) {
    pbVar2 = (byte *)buf;
    do {
      pbVar1 = pbVar2 + 1;
      crcword = crcword >> 8 ^
                *(uint *)(PTR_DAT_000ad2c8 + (crcword & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);
      pbVar2 = pbVar1;
    } while (pbVar1 != (byte *)((int)buf + len));
    return crcword;
  }
  return crcword;
}



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

{
  byte *pbVar1;
  byte *pbVar2;
  
  if (param_3 != 0) {
    pbVar2 = param_2;
    do {
      pbVar1 = pbVar2 + 1;
      param_1 = param_1 >> 8 ^
                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);
      pbVar2 = pbVar1;
    } while (pbVar1 != param_2 + param_3);
    return param_1;
  }
  return param_1;
}


lui gp,0x6
addiu gp,gp,0xb20
addu gp,gp,t9
beq a2,zero,0x000547c0
_lw a3,-0x7fc8(gp)
addu a2,a1,a2
or v0,a0,zero
addiu a3,a3,0x4450
addiu a1,a1,0x1
lbu a0,-0x1(a1)
andi v1,v0,0xff
srl v0,v0,0x8
xor v1,v1,a0
sll v1,v1,0x2
addu v1,a3,v1
lw a0,0x0(v1)
bne a1,a2,0x00054790
_xor v0,v0,a0
jr ra
_nop
jr ra
_or v0,a0,zero
(translation_unit "uint crc32_update(uint param_1,byte *param_2,int param_3)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  \n  if (param_3 != 0) {\n    pbVar2 = param_2;\n    do {\n      pbVar1 = pbVar2 + 1;\n      param_1 = param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    } while (pbVar1 != param_2 + param_3);\n    return param_1;\n  }\n  return param_1;\n}\n\n" (function_definition "uint crc32_update(uint param_1,byte *param_2,int param_3)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  \n  if (param_3 != 0) {\n    pbVar2 = param_2;\n    do {\n      pbVar1 = pbVar2 + 1;\n      param_1 = param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    } while (pbVar1 != param_2 + param_3);\n    return param_1;\n  }\n  return param_1;\n}" type_identifier (function_declarator "crc32_update(uint param_1,byte *param_2,int param_3)" identifier (parameter_list "(uint param_1,byte *param_2,int param_3)" ( (parameter_declaration "uint param_1" type_identifier 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 *pbVar1;\n  byte *pbVar2;\n  \n  if (param_3 != 0) {\n    pbVar2 = param_2;\n    do {\n      pbVar1 = pbVar2 + 1;\n      param_1 = param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    } while (pbVar1 != param_2 + param_3);\n    return param_1;\n  }\n  return param_1;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (if_statement "if (param_3 != 0) {\n    pbVar2 = param_2;\n    do {\n      pbVar1 = pbVar2 + 1;\n      param_1 = param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    } while (pbVar1 != param_2 + param_3);\n    return param_1;\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    pbVar2 = param_2;\n    do {\n      pbVar1 = pbVar2 + 1;\n      param_1 = param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    } while (pbVar1 != param_2 + param_3);\n    return param_1;\n  }" { (expression_statement "pbVar2 = param_2;" (assignment_expression "pbVar2 = param_2" identifier = identifier) ;) (do_statement "do {\n      pbVar1 = pbVar2 + 1;\n      param_1 = param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    } while (pbVar1 != param_2 + param_3);" do (compound_statement "{\n      pbVar1 = pbVar2 + 1;\n      param_1 = param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    }" { (expression_statement "pbVar1 = pbVar2 + 1;" (assignment_expression "pbVar1 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "param_1 = param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);" (assignment_expression "param_1 = param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450)" identifier = (binary_expression "param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450)" (binary_expression "param_1 >> 8" identifier >> number_literal) ^ (pointer_expression "*(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450)" * (cast_expression "(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450)" ( (binary_expression "PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450" (binary_expression "PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4" identifier + (binary_expression "(param_1 & 0xff ^ (uint)*pbVar2) * 4" (parenthesized_expression "(param_1 & 0xff ^ (uint)*pbVar2)" ( (binary_expression "param_1 & 0xff ^ (uint)*pbVar2" (binary_expression "param_1 & 0xff" identifier & number_literal) ^ (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier)) )) * number_literal)) + number_literal) )))))) ;) (expression_statement "pbVar2 = pbVar1;" (assignment_expression "pbVar2 = pbVar1" identifier = identifier) ;) }) while (parenthesized_expression "(pbVar1 != param_2 + param_3)" ( (binary_expression "pbVar1 != param_2 + param_3" identifier != (binary_expression "param_2 + param_3" identifier + identifier)) )) ;) (return_statement "return param_1;" return identifier ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "ulong crc32_update(ulong crcword,void *buf,size_t len)\n\n{\n  uchar *p;\n  byte *pbVar1;\n  byte *pbVar2;\n  \n  if (len != 0) {\n    pbVar2 = (byte *)buf;\n    do {\n      pbVar1 = pbVar2 + 1;\n      crcword = crcword >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (crcword & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    } while (pbVar1 != (byte *)((int)buf + len));\n    return crcword;\n  }\n  return crcword;\n}\n\n" (function_definition "ulong crc32_update(ulong crcword,void *buf,size_t len)\n\n{\n  uchar *p;\n  byte *pbVar1;\n  byte *pbVar2;\n  \n  if (len != 0) {\n    pbVar2 = (byte *)buf;\n    do {\n      pbVar1 = pbVar2 + 1;\n      crcword = crcword >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (crcword & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    } while (pbVar1 != (byte *)((int)buf + len));\n    return crcword;\n  }\n  return crcword;\n}" type_identifier (function_declarator "crc32_update(ulong crcword,void *buf,size_t len)" identifier (parameter_list "(ulong crcword,void *buf,size_t len)" ( (parameter_declaration "ulong crcword" type_identifier identifier) , (parameter_declaration "void *buf" primitive_type (pointer_declarator "*buf" * identifier)) , (parameter_declaration "size_t len" primitive_type identifier) ))) (compound_statement "{\n  uchar *p;\n  byte *pbVar1;\n  byte *pbVar2;\n  \n  if (len != 0) {\n    pbVar2 = (byte *)buf;\n    do {\n      pbVar1 = pbVar2 + 1;\n      crcword = crcword >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (crcword & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    } while (pbVar1 != (byte *)((int)buf + len));\n    return crcword;\n  }\n  return crcword;\n}" { (declaration "uchar *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (if_statement "if (len != 0) {\n    pbVar2 = (byte *)buf;\n    do {\n      pbVar1 = pbVar2 + 1;\n      crcword = crcword >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (crcword & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    } while (pbVar1 != (byte *)((int)buf + len));\n    return crcword;\n  }" if (parenthesized_expression "(len != 0)" ( (binary_expression "len != 0" identifier != number_literal) )) (compound_statement "{\n    pbVar2 = (byte *)buf;\n    do {\n      pbVar1 = pbVar2 + 1;\n      crcword = crcword >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (crcword & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    } while (pbVar1 != (byte *)((int)buf + len));\n    return crcword;\n  }" { (expression_statement "pbVar2 = (byte *)buf;" (assignment_expression "pbVar2 = (byte *)buf" identifier = (cast_expression "(byte *)buf" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n      pbVar1 = pbVar2 + 1;\n      crcword = crcword >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (crcword & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    } while (pbVar1 != (byte *)((int)buf + len));" do (compound_statement "{\n      pbVar1 = pbVar2 + 1;\n      crcword = crcword >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (crcword & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    }" { (expression_statement "pbVar1 = pbVar2 + 1;" (assignment_expression "pbVar1 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "crcword = crcword >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (crcword & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);" (assignment_expression "crcword = crcword >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (crcword & 0xff ^ (uint)*pbVar2) * 4 + 0x4450)" identifier = (binary_expression "crcword >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (crcword & 0xff ^ (uint)*pbVar2) * 4 + 0x4450)" (binary_expression "crcword >> 8" identifier >> number_literal) ^ (pointer_expression "*(uint *)(PTR_DAT_000ad2c8 + (crcword & 0xff ^ (uint)*pbVar2) * 4 + 0x4450)" * (cast_expression "(uint *)(PTR_DAT_000ad2c8 + (crcword & 0xff ^ (uint)*pbVar2) * 4 + 0x4450)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000ad2c8 + (crcword & 0xff ^ (uint)*pbVar2) * 4 + 0x4450)" ( (binary_expression "PTR_DAT_000ad2c8 + (crcword & 0xff ^ (uint)*pbVar2) * 4 + 0x4450" (binary_expression "PTR_DAT_000ad2c8 + (crcword & 0xff ^ (uint)*pbVar2) * 4" identifier + (binary_expression "(crcword & 0xff ^ (uint)*pbVar2) * 4" (parenthesized_expression "(crcword & 0xff ^ (uint)*pbVar2)" ( (binary_expression "crcword & 0xff ^ (uint)*pbVar2" (binary_expression "crcword & 0xff" identifier & number_literal) ^ (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier)) )) * number_literal)) + number_literal) )))))) ;) (expression_statement "pbVar2 = pbVar1;" (assignment_expression "pbVar2 = pbVar1" identifier = identifier) ;) }) while (parenthesized_expression "(pbVar1 != (byte *)((int)buf + len))" ( (binary_expression "pbVar1 != (byte *)((int)buf + len)" identifier != (cast_expression "(byte *)((int)buf + len)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)buf + len)" ( (binary_expression "(int)buf + len" (cast_expression "(int)buf" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) )) ;) (return_statement "return crcword;" return identifier ;) })) (return_statement "return crcword;" return identifier ;) })))
(translation_unit "uint crc32_update(uint param_1,byte *param_2,int param_3)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  \n  if (param_3 != 0) {\n    pbVar2 = param_2;\n    do {\n      pbVar1 = pbVar2 + 1;\n      param_1 = param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    } while (pbVar1 != param_2 + param_3);\n    return param_1;\n  }\n  return param_1;\n}\n\n" (function_definition "uint crc32_update(uint param_1,byte *param_2,int param_3)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  \n  if (param_3 != 0) {\n    pbVar2 = param_2;\n    do {\n      pbVar1 = pbVar2 + 1;\n      param_1 = param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    } while (pbVar1 != param_2 + param_3);\n    return param_1;\n  }\n  return param_1;\n}" type_identifier (function_declarator "crc32_update(uint param_1,byte *param_2,int param_3)" identifier (parameter_list "(uint param_1,byte *param_2,int param_3)" ( (parameter_declaration "uint param_1" type_identifier 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 *pbVar1;\n  byte *pbVar2;\n  \n  if (param_3 != 0) {\n    pbVar2 = param_2;\n    do {\n      pbVar1 = pbVar2 + 1;\n      param_1 = param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    } while (pbVar1 != param_2 + param_3);\n    return param_1;\n  }\n  return param_1;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (if_statement "if (param_3 != 0) {\n    pbVar2 = param_2;\n    do {\n      pbVar1 = pbVar2 + 1;\n      param_1 = param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    } while (pbVar1 != param_2 + param_3);\n    return param_1;\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    pbVar2 = param_2;\n    do {\n      pbVar1 = pbVar2 + 1;\n      param_1 = param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    } while (pbVar1 != param_2 + param_3);\n    return param_1;\n  }" { (expression_statement "pbVar2 = param_2;" (assignment_expression "pbVar2 = param_2" identifier = identifier) ;) (do_statement "do {\n      pbVar1 = pbVar2 + 1;\n      param_1 = param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    } while (pbVar1 != param_2 + param_3);" do (compound_statement "{\n      pbVar1 = pbVar2 + 1;\n      param_1 = param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    }" { (expression_statement "pbVar1 = pbVar2 + 1;" (assignment_expression "pbVar1 = pbVar2 + 1" identifier = (binary_expression "pbVar2 + 1" identifier + number_literal)) ;) (expression_statement "param_1 = param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);" (assignment_expression "param_1 = param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450)" identifier = (binary_expression "param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450)" (binary_expression "param_1 >> 8" identifier >> number_literal) ^ (pointer_expression "*(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450)" * (cast_expression "(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450)" ( (binary_expression "PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450" (binary_expression "PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4" identifier + (binary_expression "(param_1 & 0xff ^ (uint)*pbVar2) * 4" (parenthesized_expression "(param_1 & 0xff ^ (uint)*pbVar2)" ( (binary_expression "param_1 & 0xff ^ (uint)*pbVar2" (binary_expression "param_1 & 0xff" identifier & number_literal) ^ (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier)) )) * number_literal)) + number_literal) )))))) ;) (expression_statement "pbVar2 = pbVar1;" (assignment_expression "pbVar2 = pbVar1" identifier = identifier) ;) }) while (parenthesized_expression "(pbVar1 != param_2 + param_3)" ( (binary_expression "pbVar1 != param_2 + param_3" identifier != (binary_expression "param_2 + param_3" identifier + identifier)) )) ;) (return_statement "return param_1;" return identifier ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (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 = IDENT) ;) (do_statement do (compound_statement { (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) ^ (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) )) * LIT)) + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + IDENT)) )) ;) (return_statement return IDENT ;) })) (return_statement return IDENT ;) })))
(function_definition "uint crc32_update(uint param_1,byte *param_2,int param_3)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  \n  if (param_3 != 0) {\n    pbVar2 = param_2;\n    do {\n      pbVar1 = pbVar2 + 1;\n      param_1 = param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    } while (pbVar1 != param_2 + param_3);\n    return param_1;\n  }\n  return param_1;\n}" (type_identifier "uint") (function_declarator "crc32_update(uint param_1,byte *param_2,int param_3)" (identifier "crc32_update") (parameter_list "(uint param_1,byte *param_2,int param_3)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (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 *pbVar1;\n  byte *pbVar2;\n  \n  if (param_3 != 0) {\n    pbVar2 = param_2;\n    do {\n      pbVar1 = pbVar2 + 1;\n      param_1 = param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    } while (pbVar1 != param_2 + param_3);\n    return param_1;\n  }\n  return param_1;\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (if_statement "if (param_3 != 0) {\n    pbVar2 = param_2;\n    do {\n      pbVar1 = pbVar2 + 1;\n      param_1 = param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    } while (pbVar1 != param_2 + param_3);\n    return param_1;\n  }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    pbVar2 = param_2;\n    do {\n      pbVar1 = pbVar2 + 1;\n      param_1 = param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    } while (pbVar1 != param_2 + param_3);\n    return param_1;\n  }" ({ "{") (expression_statement "pbVar2 = param_2;" (assignment_expression "pbVar2 = param_2" (identifier "pbVar2") (= "=") (identifier "param_2")) (; ";")) (do_statement "do {\n      pbVar1 = pbVar2 + 1;\n      param_1 = param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    } while (pbVar1 != param_2 + param_3);" (do "do") (compound_statement "{\n      pbVar1 = pbVar2 + 1;\n      param_1 = param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);\n      pbVar2 = pbVar1;\n    }" ({ "{") (expression_statement "pbVar1 = pbVar2 + 1;" (assignment_expression "pbVar1 = pbVar2 + 1" (identifier "pbVar1") (= "=") (binary_expression "pbVar2 + 1" (identifier "pbVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_1 = param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);" (assignment_expression "param_1 = param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450)" (identifier "param_1") (= "=") (binary_expression "param_1 >> 8 ^\n                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450)" (binary_expression "param_1 >> 8" (identifier "param_1") (>> ">>") (number_literal "8")) (^ "^") (pointer_expression "*(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450)" (* "*") (cast_expression "(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450)" (( "(") (binary_expression "PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450" (binary_expression "PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4" (identifier "PTR_DAT_000ad2c8") (+ "+") (binary_expression "(param_1 & 0xff ^ (uint)*pbVar2) * 4" (parenthesized_expression "(param_1 & 0xff ^ (uint)*pbVar2)" (( "(") (binary_expression "param_1 & 0xff ^ (uint)*pbVar2" (binary_expression "param_1 & 0xff" (identifier "param_1") (& "&") (number_literal "0xff")) (^ "^") (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar2"))) () ")")) (* "*") (number_literal "4"))) (+ "+") (number_literal "0x4450")) () ")")))))) (; ";")) (expression_statement "pbVar2 = pbVar1;" (assignment_expression "pbVar2 = pbVar1" (identifier "pbVar2") (= "=") (identifier "pbVar1")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pbVar1 != param_2 + param_3)" (( "(") (binary_expression "pbVar1 != param_2 + param_3" (identifier "pbVar1") (!= "!=") (binary_expression "param_2 + param_3" (identifier "param_2") (+ "+") (identifier "param_3"))) () ")")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

type_1 function_1(type_1 var_3,void *buf,size_t var_1)

{
  type_2 *p;
  type_3 *var_5;
  type_3 *var_2;
  
  if (var_1 != 0) {
    var_2 = (type_3 *)buf;
    do {
      var_5 = var_2 + 1;
      var_3 = var_3 >> 8 ^
                *(type_4 *)(var_4 + (var_3 & 0xff ^ (type_4)*var_2) * 4 + 0x4450);
      var_2 = var_5;
    } while (var_5 != (type_3 *)((int)buf + var_1));
    return var_3;
  }
  return var_3;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) 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: (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: (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: (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: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)))) right: (number_literal))) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) (return_statement (identifier)))) (return_statement (identifier)))))

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

{
  byte *pbVar1;
  byte *pbVar2;
  
  if (param_3 != 0) {
    pbVar2 = param_2;
    do {
      pbVar1 = pbVar2 + 1;
      param_1 = param_1 >> 8 ^
                *(uint *)(PTR_DAT_000ad2c8 + (param_1 & 0xff ^ (uint)*pbVar2) * 4 + 0x4450);
      pbVar2 = pbVar1;
    } while (pbVar1 != param_2 + param_3);
    return param_1;
  }
  return param_1;
}

