
uint32_t * crc32_filltable(uint32_t *crc_table,int endian)

{
  bool bVar1;
  uint uVar2;
  uint32_t *puVar3;
  int iVar4;
  uint uVar5;
  uint uVar6;
  uint uVar7;
  
  if (endian == 0) {
    uVar7 = 0xedb88320;
  }
  else {
    uVar7 = 0x4c11db7;
  }
  if (crc_table == (uint32_t *)0x0) {
    crc_table = (uint32_t *)(*(code *)PTR_xmalloc_0012a230)(0x400);
  }
  uVar5 = 0;
  puVar3 = crc_table;
  do {
    uVar2 = uVar5;
    if (endian != 0) {
      uVar2 = uVar5 << 0x18;
    }
    iVar4 = 8;
    do {
      if (endian == 0) {
        uVar6 = uVar2 & 1;
        uVar2 = uVar2 >> 1;
        if (uVar6 != 0) {
          uVar2 = uVar2 ^ uVar7;
        }
      }
      else {
        bVar1 = (int)uVar2 < 0;
        uVar2 = uVar2 << 1;
        if (bVar1) {
          uVar2 = uVar2 ^ uVar7;
        }
      }
      iVar4 = iVar4 + -1;
    } while (iVar4 != 0);
    uVar5 = uVar5 + 1;
    *puVar3 = uVar2;
    puVar3 = puVar3 + 1;
  } while (uVar5 != 0x100);
  return crc_table;
}



void FUN_000e7da4(uint *param_1,int param_2)

{
  bool bVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  uint uVar5;
  uint uVar6;
  
  if (param_2 == 0) {
    uVar6 = 0xedb88320;
  }
  else {
    uVar6 = 0x4c11db7;
  }
  if (param_1 == (uint *)0x0) {
    param_1 = (uint *)(*(code *)PTR_FUN_0012a230)(0x400);
  }
  uVar4 = 0;
  do {
    uVar2 = uVar4;
    if (param_2 != 0) {
      uVar2 = uVar4 << 0x18;
    }
    iVar3 = 8;
    do {
      if (param_2 == 0) {
        uVar5 = uVar2 & 1;
        uVar2 = uVar2 >> 1;
        if (uVar5 != 0) {
          uVar2 = uVar2 ^ uVar6;
        }
      }
      else {
        bVar1 = (int)uVar2 < 0;
        uVar2 = uVar2 << 1;
        if (bVar1) {
          uVar2 = uVar2 ^ uVar6;
        }
      }
      iVar3 = iVar3 + -1;
    } while (iVar3 != 0);
    uVar4 = uVar4 + 1;
    *param_1 = uVar2;
    param_1 = param_1 + 1;
  } while (uVar4 != 0x100);
  return;
}


lui gp,0x5
addiu gp,gp,-0x5c54
addu gp,gp,t9
addiu sp,sp,-0x28
or v0,a0,zero
sw gp,0x10(sp)
sw s1,0x20(sp)
or s1,a1,zero
sw ra,0x24(sp)
bne a1,zero,0x000e7e68
_sw s0,0x1c(sp)
lui s0,0xedb8
ori s0,s0,0x8320
beq v0,zero,0x000e7e58
_lw t9,-0x7f20(gp)
or a2,zero,zero
li a3,0x100
or a0,v0,zero
bne s1,zero,0x000e7e50
_or v1,a2,zero
li a1,0x8
beq s1,zero,0x000e7e3c
_or t0,v1,zero
bgez t0,0x000e7e0c
_sll v1,v1,0x1
xor v1,v1,s0
addiu a1,a1,-0x1
bne a1,zero,0x000e7df8
_nop
addiu a0,a0,0x4
addiu a2,a2,0x1
bne a2,a3,0x000e7dec
_sw v1,-0x4(a0)
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
andi t0,v1,0x1
beq t0,zero,0x000e7e0c
_srl v1,v1,0x1
b 0x000e7e0c
_xor v1,v1,s0
b 0x000e7df4
_sll v1,a2,0x18
jalr t9
_li a0,0x400
b 0x000e7de4
_or a2,zero,zero
lui s0,0x4c1
b 0x000e7dd8
_addiu s0,s0,0x1db7
(translation_unit "void FUN_000e7da4(uint *param_1,int param_2)\n\n{\n  bool bVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  if (param_2 == 0) {\n    uVar6 = 0xedb88320;\n  }\n  else {\n    uVar6 = 0x4c11db7;\n  }\n  if (param_1 == (uint *)0x0) {\n    param_1 = (uint *)(*(code *)PTR_FUN_0012a230)(0x400);\n  }\n  uVar4 = 0;\n  do {\n    uVar2 = uVar4;\n    if (param_2 != 0) {\n      uVar2 = uVar4 << 0x18;\n    }\n    iVar3 = 8;\n    do {\n      if (param_2 == 0) {\n        uVar5 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n    uVar4 = uVar4 + 1;\n    *param_1 = uVar2;\n    param_1 = param_1 + 1;\n  } while (uVar4 != 0x100);\n  return;\n}\n\n" (function_definition "void FUN_000e7da4(uint *param_1,int param_2)\n\n{\n  bool bVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  if (param_2 == 0) {\n    uVar6 = 0xedb88320;\n  }\n  else {\n    uVar6 = 0x4c11db7;\n  }\n  if (param_1 == (uint *)0x0) {\n    param_1 = (uint *)(*(code *)PTR_FUN_0012a230)(0x400);\n  }\n  uVar4 = 0;\n  do {\n    uVar2 = uVar4;\n    if (param_2 != 0) {\n      uVar2 = uVar4 << 0x18;\n    }\n    iVar3 = 8;\n    do {\n      if (param_2 == 0) {\n        uVar5 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n    uVar4 = uVar4 + 1;\n    *param_1 = uVar2;\n    param_1 = param_1 + 1;\n  } while (uVar4 != 0x100);\n  return;\n}" primitive_type (function_declarator "FUN_000e7da4(uint *param_1,int param_2)" identifier (parameter_list "(uint *param_1,int param_2)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  if (param_2 == 0) {\n    uVar6 = 0xedb88320;\n  }\n  else {\n    uVar6 = 0x4c11db7;\n  }\n  if (param_1 == (uint *)0x0) {\n    param_1 = (uint *)(*(code *)PTR_FUN_0012a230)(0x400);\n  }\n  uVar4 = 0;\n  do {\n    uVar2 = uVar4;\n    if (param_2 != 0) {\n      uVar2 = uVar4 << 0x18;\n    }\n    iVar3 = 8;\n    do {\n      if (param_2 == 0) {\n        uVar5 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n    uVar4 = uVar4 + 1;\n    *param_1 = uVar2;\n    param_1 = param_1 + 1;\n  } while (uVar4 != 0x100);\n  return;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (if_statement "if (param_2 == 0) {\n    uVar6 = 0xedb88320;\n  }\n  else {\n    uVar6 = 0x4c11db7;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar6 = 0xedb88320;\n  }" { (expression_statement "uVar6 = 0xedb88320;" (assignment_expression "uVar6 = 0xedb88320" identifier = number_literal) ;) }) (else_clause "else {\n    uVar6 = 0x4c11db7;\n  }" else (compound_statement "{\n    uVar6 = 0x4c11db7;\n  }" { (expression_statement "uVar6 = 0x4c11db7;" (assignment_expression "uVar6 = 0x4c11db7" identifier = number_literal) ;) }))) (if_statement "if (param_1 == (uint *)0x0) {\n    param_1 = (uint *)(*(code *)PTR_FUN_0012a230)(0x400);\n  }" if (parenthesized_expression "(param_1 == (uint *)0x0)" ( (binary_expression "param_1 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_1 = (uint *)(*(code *)PTR_FUN_0012a230)(0x400);\n  }" { (expression_statement "param_1 = (uint *)(*(code *)PTR_FUN_0012a230)(0x400);" (assignment_expression "param_1 = (uint *)(*(code *)PTR_FUN_0012a230)(0x400)" identifier = (cast_expression "(uint *)(*(code *)PTR_FUN_0012a230)(0x400)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_FUN_0012a230)(0x400)" (parenthesized_expression "(*(code *)PTR_FUN_0012a230)" ( (pointer_expression "*(code *)PTR_FUN_0012a230" * (cast_expression "(code *)PTR_FUN_0012a230" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x400)" ( number_literal ))))) ;) })) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n    uVar2 = uVar4;\n    if (param_2 != 0) {\n      uVar2 = uVar4 << 0x18;\n    }\n    iVar3 = 8;\n    do {\n      if (param_2 == 0) {\n        uVar5 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n    uVar4 = uVar4 + 1;\n    *param_1 = uVar2;\n    param_1 = param_1 + 1;\n  } while (uVar4 != 0x100);" do (compound_statement "{\n    uVar2 = uVar4;\n    if (param_2 != 0) {\n      uVar2 = uVar4 << 0x18;\n    }\n    iVar3 = 8;\n    do {\n      if (param_2 == 0) {\n        uVar5 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n    uVar4 = uVar4 + 1;\n    *param_1 = uVar2;\n    param_1 = param_1 + 1;\n  }" { (expression_statement "uVar2 = uVar4;" (assignment_expression "uVar2 = uVar4" identifier = identifier) ;) (if_statement "if (param_2 != 0) {\n      uVar2 = uVar4 << 0x18;\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar2 = uVar4 << 0x18;\n    }" { (expression_statement "uVar2 = uVar4 << 0x18;" (assignment_expression "uVar2 = uVar4 << 0x18" identifier = (binary_expression "uVar4 << 0x18" identifier << number_literal)) ;) })) (expression_statement "iVar3 = 8;" (assignment_expression "iVar3 = 8" identifier = number_literal) ;) (do_statement "do {\n      if (param_2 == 0) {\n        uVar5 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);" do (compound_statement "{\n      if (param_2 == 0) {\n        uVar5 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      iVar3 = iVar3 + -1;\n    }" { (if_statement "if (param_2 == 0) {\n        uVar5 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar5 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }" { (expression_statement "uVar5 = uVar2 & 1;" (assignment_expression "uVar5 = uVar2 & 1" identifier = (binary_expression "uVar2 & 1" identifier & number_literal)) ;) (expression_statement "uVar2 = uVar2 >> 1;" (assignment_expression "uVar2 = uVar2 >> 1" identifier = (binary_expression "uVar2 >> 1" identifier >> number_literal)) ;) (if_statement "if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }" if (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar2 = uVar2 ^ uVar6;\n        }" { (expression_statement "uVar2 = uVar2 ^ uVar6;" (assignment_expression "uVar2 = uVar2 ^ uVar6" identifier = (binary_expression "uVar2 ^ uVar6" identifier ^ identifier)) ;) })) }) (else_clause "else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }" else (compound_statement "{\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }" { (expression_statement "bVar1 = (int)uVar2 < 0;" (assignment_expression "bVar1 = (int)uVar2 < 0" identifier = (binary_expression "(int)uVar2 < 0" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal)) ;) (expression_statement "uVar2 = uVar2 << 1;" (assignment_expression "uVar2 = uVar2 << 1" identifier = (binary_expression "uVar2 << 1" identifier << number_literal)) ;) (if_statement "if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n          uVar2 = uVar2 ^ uVar6;\n        }" { (expression_statement "uVar2 = uVar2 ^ uVar6;" (assignment_expression "uVar2 = uVar2 ^ uVar6" identifier = (binary_expression "uVar2 ^ uVar6" identifier ^ identifier)) ;) })) }))) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) ;) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "*param_1 = uVar2;" (assignment_expression "*param_1 = uVar2" (pointer_expression "*param_1" * 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)) ;) }) while (parenthesized_expression "(uVar4 != 0x100)" ( (binary_expression "uVar4 != 0x100" identifier != number_literal) )) ;) (return_statement "return;" return ;) })))
(translation_unit "uint32_t * crc32_filltable(uint32_t *crc_table,int endian)\n\n{\n  bool bVar1;\n  uint uVar2;\n  uint32_t *puVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  \n  if (endian == 0) {\n    uVar7 = 0xedb88320;\n  }\n  else {\n    uVar7 = 0x4c11db7;\n  }\n  if (crc_table == (uint32_t *)0x0) {\n    crc_table = (uint32_t *)(*(code *)PTR_xmalloc_0012a230)(0x400);\n  }\n  uVar5 = 0;\n  puVar3 = crc_table;\n  do {\n    uVar2 = uVar5;\n    if (endian != 0) {\n      uVar2 = uVar5 << 0x18;\n    }\n    iVar4 = 8;\n    do {\n      if (endian == 0) {\n        uVar6 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar6 != 0) {\n          uVar2 = uVar2 ^ uVar7;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar7;\n        }\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != 0);\n    uVar5 = uVar5 + 1;\n    *puVar3 = uVar2;\n    puVar3 = puVar3 + 1;\n  } while (uVar5 != 0x100);\n  return crc_table;\n}\n\n" (function_definition "uint32_t * crc32_filltable(uint32_t *crc_table,int endian)\n\n{\n  bool bVar1;\n  uint uVar2;\n  uint32_t *puVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  \n  if (endian == 0) {\n    uVar7 = 0xedb88320;\n  }\n  else {\n    uVar7 = 0x4c11db7;\n  }\n  if (crc_table == (uint32_t *)0x0) {\n    crc_table = (uint32_t *)(*(code *)PTR_xmalloc_0012a230)(0x400);\n  }\n  uVar5 = 0;\n  puVar3 = crc_table;\n  do {\n    uVar2 = uVar5;\n    if (endian != 0) {\n      uVar2 = uVar5 << 0x18;\n    }\n    iVar4 = 8;\n    do {\n      if (endian == 0) {\n        uVar6 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar6 != 0) {\n          uVar2 = uVar2 ^ uVar7;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar7;\n        }\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != 0);\n    uVar5 = uVar5 + 1;\n    *puVar3 = uVar2;\n    puVar3 = puVar3 + 1;\n  } while (uVar5 != 0x100);\n  return crc_table;\n}" primitive_type (pointer_declarator "* crc32_filltable(uint32_t *crc_table,int endian)" * (function_declarator "crc32_filltable(uint32_t *crc_table,int endian)" identifier (parameter_list "(uint32_t *crc_table,int endian)" ( (parameter_declaration "uint32_t *crc_table" primitive_type (pointer_declarator "*crc_table" * identifier)) , (parameter_declaration "int endian" primitive_type identifier) )))) (compound_statement "{\n  bool bVar1;\n  uint uVar2;\n  uint32_t *puVar3;\n  int iVar4;\n  uint uVar5;\n  uint uVar6;\n  uint uVar7;\n  \n  if (endian == 0) {\n    uVar7 = 0xedb88320;\n  }\n  else {\n    uVar7 = 0x4c11db7;\n  }\n  if (crc_table == (uint32_t *)0x0) {\n    crc_table = (uint32_t *)(*(code *)PTR_xmalloc_0012a230)(0x400);\n  }\n  uVar5 = 0;\n  puVar3 = crc_table;\n  do {\n    uVar2 = uVar5;\n    if (endian != 0) {\n      uVar2 = uVar5 << 0x18;\n    }\n    iVar4 = 8;\n    do {\n      if (endian == 0) {\n        uVar6 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar6 != 0) {\n          uVar2 = uVar2 ^ uVar7;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar7;\n        }\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != 0);\n    uVar5 = uVar5 + 1;\n    *puVar3 = uVar2;\n    puVar3 = puVar3 + 1;\n  } while (uVar5 != 0x100);\n  return crc_table;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint32_t *puVar3;" primitive_type (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (if_statement "if (endian == 0) {\n    uVar7 = 0xedb88320;\n  }\n  else {\n    uVar7 = 0x4c11db7;\n  }" if (parenthesized_expression "(endian == 0)" ( (binary_expression "endian == 0" identifier == number_literal) )) (compound_statement "{\n    uVar7 = 0xedb88320;\n  }" { (expression_statement "uVar7 = 0xedb88320;" (assignment_expression "uVar7 = 0xedb88320" identifier = number_literal) ;) }) (else_clause "else {\n    uVar7 = 0x4c11db7;\n  }" else (compound_statement "{\n    uVar7 = 0x4c11db7;\n  }" { (expression_statement "uVar7 = 0x4c11db7;" (assignment_expression "uVar7 = 0x4c11db7" identifier = number_literal) ;) }))) (if_statement "if (crc_table == (uint32_t *)0x0) {\n    crc_table = (uint32_t *)(*(code *)PTR_xmalloc_0012a230)(0x400);\n  }" if (parenthesized_expression "(crc_table == (uint32_t *)0x0)" ( (binary_expression "crc_table == (uint32_t *)0x0" identifier == (cast_expression "(uint32_t *)0x0" ( (type_descriptor "uint32_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    crc_table = (uint32_t *)(*(code *)PTR_xmalloc_0012a230)(0x400);\n  }" { (expression_statement "crc_table = (uint32_t *)(*(code *)PTR_xmalloc_0012a230)(0x400);" (assignment_expression "crc_table = (uint32_t *)(*(code *)PTR_xmalloc_0012a230)(0x400)" identifier = (cast_expression "(uint32_t *)(*(code *)PTR_xmalloc_0012a230)(0x400)" ( (type_descriptor "uint32_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_0012a230)(0x400)" (parenthesized_expression "(*(code *)PTR_xmalloc_0012a230)" ( (pointer_expression "*(code *)PTR_xmalloc_0012a230" * (cast_expression "(code *)PTR_xmalloc_0012a230" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x400)" ( number_literal ))))) ;) })) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = crc_table;" (assignment_expression "puVar3 = crc_table" identifier = identifier) ;) (do_statement "do {\n    uVar2 = uVar5;\n    if (endian != 0) {\n      uVar2 = uVar5 << 0x18;\n    }\n    iVar4 = 8;\n    do {\n      if (endian == 0) {\n        uVar6 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar6 != 0) {\n          uVar2 = uVar2 ^ uVar7;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar7;\n        }\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != 0);\n    uVar5 = uVar5 + 1;\n    *puVar3 = uVar2;\n    puVar3 = puVar3 + 1;\n  } while (uVar5 != 0x100);" do (compound_statement "{\n    uVar2 = uVar5;\n    if (endian != 0) {\n      uVar2 = uVar5 << 0x18;\n    }\n    iVar4 = 8;\n    do {\n      if (endian == 0) {\n        uVar6 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar6 != 0) {\n          uVar2 = uVar2 ^ uVar7;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar7;\n        }\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != 0);\n    uVar5 = uVar5 + 1;\n    *puVar3 = uVar2;\n    puVar3 = puVar3 + 1;\n  }" { (expression_statement "uVar2 = uVar5;" (assignment_expression "uVar2 = uVar5" identifier = identifier) ;) (if_statement "if (endian != 0) {\n      uVar2 = uVar5 << 0x18;\n    }" if (parenthesized_expression "(endian != 0)" ( (binary_expression "endian != 0" identifier != number_literal) )) (compound_statement "{\n      uVar2 = uVar5 << 0x18;\n    }" { (expression_statement "uVar2 = uVar5 << 0x18;" (assignment_expression "uVar2 = uVar5 << 0x18" identifier = (binary_expression "uVar5 << 0x18" identifier << number_literal)) ;) })) (expression_statement "iVar4 = 8;" (assignment_expression "iVar4 = 8" identifier = number_literal) ;) (do_statement "do {\n      if (endian == 0) {\n        uVar6 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar6 != 0) {\n          uVar2 = uVar2 ^ uVar7;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar7;\n        }\n      }\n      iVar4 = iVar4 + -1;\n    } while (iVar4 != 0);" do (compound_statement "{\n      if (endian == 0) {\n        uVar6 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar6 != 0) {\n          uVar2 = uVar2 ^ uVar7;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar7;\n        }\n      }\n      iVar4 = iVar4 + -1;\n    }" { (if_statement "if (endian == 0) {\n        uVar6 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar6 != 0) {\n          uVar2 = uVar2 ^ uVar7;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar7;\n        }\n      }" if (parenthesized_expression "(endian == 0)" ( (binary_expression "endian == 0" identifier == number_literal) )) (compound_statement "{\n        uVar6 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar6 != 0) {\n          uVar2 = uVar2 ^ uVar7;\n        }\n      }" { (expression_statement "uVar6 = uVar2 & 1;" (assignment_expression "uVar6 = uVar2 & 1" identifier = (binary_expression "uVar2 & 1" identifier & number_literal)) ;) (expression_statement "uVar2 = uVar2 >> 1;" (assignment_expression "uVar2 = uVar2 >> 1" identifier = (binary_expression "uVar2 >> 1" identifier >> number_literal)) ;) (if_statement "if (uVar6 != 0) {\n          uVar2 = uVar2 ^ uVar7;\n        }" if (parenthesized_expression "(uVar6 != 0)" ( (binary_expression "uVar6 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar2 = uVar2 ^ uVar7;\n        }" { (expression_statement "uVar2 = uVar2 ^ uVar7;" (assignment_expression "uVar2 = uVar2 ^ uVar7" identifier = (binary_expression "uVar2 ^ uVar7" identifier ^ identifier)) ;) })) }) (else_clause "else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar7;\n        }\n      }" else (compound_statement "{\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar7;\n        }\n      }" { (expression_statement "bVar1 = (int)uVar2 < 0;" (assignment_expression "bVar1 = (int)uVar2 < 0" identifier = (binary_expression "(int)uVar2 < 0" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal)) ;) (expression_statement "uVar2 = uVar2 << 1;" (assignment_expression "uVar2 = uVar2 << 1" identifier = (binary_expression "uVar2 << 1" identifier << number_literal)) ;) (if_statement "if (bVar1) {\n          uVar2 = uVar2 ^ uVar7;\n        }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n          uVar2 = uVar2 ^ uVar7;\n        }" { (expression_statement "uVar2 = uVar2 ^ uVar7;" (assignment_expression "uVar2 = uVar2 ^ uVar7" identifier = (binary_expression "uVar2 ^ uVar7" identifier ^ identifier)) ;) })) }))) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) ;) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) (expression_statement "*puVar3 = uVar2;" (assignment_expression "*puVar3 = uVar2" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar5 != 0x100)" ( (binary_expression "uVar5 != 0x100" identifier != number_literal) )) ;) (return_statement "return crc_table;" return identifier ;) })))
(translation_unit "void FUN_000e7da4(uint *param_1,int param_2)\n\n{\n  bool bVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  if (param_2 == 0) {\n    uVar6 = 0xedb88320;\n  }\n  else {\n    uVar6 = 0x4c11db7;\n  }\n  if (param_1 == (uint *)0x0) {\n    param_1 = (uint *)(*(code *)PTR_FUN_0012a230)(0x400);\n  }\n  uVar4 = 0;\n  do {\n    uVar2 = uVar4;\n    if (param_2 != 0) {\n      uVar2 = uVar4 << 0x18;\n    }\n    iVar3 = 8;\n    do {\n      if (param_2 == 0) {\n        uVar5 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n    uVar4 = uVar4 + 1;\n    *param_1 = uVar2;\n    param_1 = param_1 + 1;\n  } while (uVar4 != 0x100);\n  return;\n}\n\n" (function_definition "void FUN_000e7da4(uint *param_1,int param_2)\n\n{\n  bool bVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  if (param_2 == 0) {\n    uVar6 = 0xedb88320;\n  }\n  else {\n    uVar6 = 0x4c11db7;\n  }\n  if (param_1 == (uint *)0x0) {\n    param_1 = (uint *)(*(code *)PTR_FUN_0012a230)(0x400);\n  }\n  uVar4 = 0;\n  do {\n    uVar2 = uVar4;\n    if (param_2 != 0) {\n      uVar2 = uVar4 << 0x18;\n    }\n    iVar3 = 8;\n    do {\n      if (param_2 == 0) {\n        uVar5 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n    uVar4 = uVar4 + 1;\n    *param_1 = uVar2;\n    param_1 = param_1 + 1;\n  } while (uVar4 != 0x100);\n  return;\n}" primitive_type (function_declarator "FUN_000e7da4(uint *param_1,int param_2)" identifier (parameter_list "(uint *param_1,int param_2)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  if (param_2 == 0) {\n    uVar6 = 0xedb88320;\n  }\n  else {\n    uVar6 = 0x4c11db7;\n  }\n  if (param_1 == (uint *)0x0) {\n    param_1 = (uint *)(*(code *)PTR_FUN_0012a230)(0x400);\n  }\n  uVar4 = 0;\n  do {\n    uVar2 = uVar4;\n    if (param_2 != 0) {\n      uVar2 = uVar4 << 0x18;\n    }\n    iVar3 = 8;\n    do {\n      if (param_2 == 0) {\n        uVar5 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n    uVar4 = uVar4 + 1;\n    *param_1 = uVar2;\n    param_1 = param_1 + 1;\n  } while (uVar4 != 0x100);\n  return;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (if_statement "if (param_2 == 0) {\n    uVar6 = 0xedb88320;\n  }\n  else {\n    uVar6 = 0x4c11db7;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar6 = 0xedb88320;\n  }" { (expression_statement "uVar6 = 0xedb88320;" (assignment_expression "uVar6 = 0xedb88320" identifier = number_literal) ;) }) (else_clause "else {\n    uVar6 = 0x4c11db7;\n  }" else (compound_statement "{\n    uVar6 = 0x4c11db7;\n  }" { (expression_statement "uVar6 = 0x4c11db7;" (assignment_expression "uVar6 = 0x4c11db7" identifier = number_literal) ;) }))) (if_statement "if (param_1 == (uint *)0x0) {\n    param_1 = (uint *)(*(code *)PTR_FUN_0012a230)(0x400);\n  }" if (parenthesized_expression "(param_1 == (uint *)0x0)" ( (binary_expression "param_1 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_1 = (uint *)(*(code *)PTR_FUN_0012a230)(0x400);\n  }" { (expression_statement "param_1 = (uint *)(*(code *)PTR_FUN_0012a230)(0x400);" (assignment_expression "param_1 = (uint *)(*(code *)PTR_FUN_0012a230)(0x400)" identifier = (cast_expression "(uint *)(*(code *)PTR_FUN_0012a230)(0x400)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_FUN_0012a230)(0x400)" (parenthesized_expression "(*(code *)PTR_FUN_0012a230)" ( (pointer_expression "*(code *)PTR_FUN_0012a230" * (cast_expression "(code *)PTR_FUN_0012a230" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x400)" ( number_literal ))))) ;) })) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n    uVar2 = uVar4;\n    if (param_2 != 0) {\n      uVar2 = uVar4 << 0x18;\n    }\n    iVar3 = 8;\n    do {\n      if (param_2 == 0) {\n        uVar5 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n    uVar4 = uVar4 + 1;\n    *param_1 = uVar2;\n    param_1 = param_1 + 1;\n  } while (uVar4 != 0x100);" do (compound_statement "{\n    uVar2 = uVar4;\n    if (param_2 != 0) {\n      uVar2 = uVar4 << 0x18;\n    }\n    iVar3 = 8;\n    do {\n      if (param_2 == 0) {\n        uVar5 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n    uVar4 = uVar4 + 1;\n    *param_1 = uVar2;\n    param_1 = param_1 + 1;\n  }" { (expression_statement "uVar2 = uVar4;" (assignment_expression "uVar2 = uVar4" identifier = identifier) ;) (if_statement "if (param_2 != 0) {\n      uVar2 = uVar4 << 0x18;\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar2 = uVar4 << 0x18;\n    }" { (expression_statement "uVar2 = uVar4 << 0x18;" (assignment_expression "uVar2 = uVar4 << 0x18" identifier = (binary_expression "uVar4 << 0x18" identifier << number_literal)) ;) })) (expression_statement "iVar3 = 8;" (assignment_expression "iVar3 = 8" identifier = number_literal) ;) (do_statement "do {\n      if (param_2 == 0) {\n        uVar5 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);" do (compound_statement "{\n      if (param_2 == 0) {\n        uVar5 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      iVar3 = iVar3 + -1;\n    }" { (if_statement "if (param_2 == 0) {\n        uVar5 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar5 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }" { (expression_statement "uVar5 = uVar2 & 1;" (assignment_expression "uVar5 = uVar2 & 1" identifier = (binary_expression "uVar2 & 1" identifier & number_literal)) ;) (expression_statement "uVar2 = uVar2 >> 1;" (assignment_expression "uVar2 = uVar2 >> 1" identifier = (binary_expression "uVar2 >> 1" identifier >> number_literal)) ;) (if_statement "if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }" if (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar2 = uVar2 ^ uVar6;\n        }" { (expression_statement "uVar2 = uVar2 ^ uVar6;" (assignment_expression "uVar2 = uVar2 ^ uVar6" identifier = (binary_expression "uVar2 ^ uVar6" identifier ^ identifier)) ;) })) }) (else_clause "else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }" else (compound_statement "{\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }" { (expression_statement "bVar1 = (int)uVar2 < 0;" (assignment_expression "bVar1 = (int)uVar2 < 0" identifier = (binary_expression "(int)uVar2 < 0" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal)) ;) (expression_statement "uVar2 = uVar2 << 1;" (assignment_expression "uVar2 = uVar2 << 1" identifier = (binary_expression "uVar2 << 1" identifier << number_literal)) ;) (if_statement "if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n          uVar2 = uVar2 ^ uVar6;\n        }" { (expression_statement "uVar2 = uVar2 ^ uVar6;" (assignment_expression "uVar2 = uVar2 ^ uVar6" identifier = (binary_expression "uVar2 ^ uVar6" identifier ^ identifier)) ;) })) }))) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) ;) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "*param_1 = uVar2;" (assignment_expression "*param_1 = uVar2" (pointer_expression "*param_1" * 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)) ;) }) while (parenthesized_expression "(uVar4 != 0x100)" ( (binary_expression "uVar4 != 0x100" identifier != number_literal) )) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT ))))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT ^ IDENT)) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT ^ IDENT)) ;) })) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (return_statement return ;) })))
(function_definition "void FUN_000e7da4(uint *param_1,int param_2)\n\n{\n  bool bVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  if (param_2 == 0) {\n    uVar6 = 0xedb88320;\n  }\n  else {\n    uVar6 = 0x4c11db7;\n  }\n  if (param_1 == (uint *)0x0) {\n    param_1 = (uint *)(*(code *)PTR_FUN_0012a230)(0x400);\n  }\n  uVar4 = 0;\n  do {\n    uVar2 = uVar4;\n    if (param_2 != 0) {\n      uVar2 = uVar4 << 0x18;\n    }\n    iVar3 = 8;\n    do {\n      if (param_2 == 0) {\n        uVar5 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n    uVar4 = uVar4 + 1;\n    *param_1 = uVar2;\n    param_1 = param_1 + 1;\n  } while (uVar4 != 0x100);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000e7da4(uint *param_1,int param_2)" (identifier "FUN_000e7da4") (parameter_list "(uint *param_1,int param_2)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  bool bVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  \n  if (param_2 == 0) {\n    uVar6 = 0xedb88320;\n  }\n  else {\n    uVar6 = 0x4c11db7;\n  }\n  if (param_1 == (uint *)0x0) {\n    param_1 = (uint *)(*(code *)PTR_FUN_0012a230)(0x400);\n  }\n  uVar4 = 0;\n  do {\n    uVar2 = uVar4;\n    if (param_2 != 0) {\n      uVar2 = uVar4 << 0x18;\n    }\n    iVar3 = 8;\n    do {\n      if (param_2 == 0) {\n        uVar5 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n    uVar4 = uVar4 + 1;\n    *param_1 = uVar2;\n    param_1 = param_1 + 1;\n  } while (uVar4 != 0x100);\n  return;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (if_statement "if (param_2 == 0) {\n    uVar6 = 0xedb88320;\n  }\n  else {\n    uVar6 = 0x4c11db7;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar6 = 0xedb88320;\n  }" ({ "{") (expression_statement "uVar6 = 0xedb88320;" (assignment_expression "uVar6 = 0xedb88320" (identifier "uVar6") (= "=") (number_literal "0xedb88320")) (; ";")) (} "}")) (else_clause "else {\n    uVar6 = 0x4c11db7;\n  }" (else "else") (compound_statement "{\n    uVar6 = 0x4c11db7;\n  }" ({ "{") (expression_statement "uVar6 = 0x4c11db7;" (assignment_expression "uVar6 = 0x4c11db7" (identifier "uVar6") (= "=") (number_literal "0x4c11db7")) (; ";")) (} "}")))) (if_statement "if (param_1 == (uint *)0x0) {\n    param_1 = (uint *)(*(code *)PTR_FUN_0012a230)(0x400);\n  }" (if "if") (parenthesized_expression "(param_1 == (uint *)0x0)" (( "(") (binary_expression "param_1 == (uint *)0x0" (identifier "param_1") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    param_1 = (uint *)(*(code *)PTR_FUN_0012a230)(0x400);\n  }" ({ "{") (expression_statement "param_1 = (uint *)(*(code *)PTR_FUN_0012a230)(0x400);" (assignment_expression "param_1 = (uint *)(*(code *)PTR_FUN_0012a230)(0x400)" (identifier "param_1") (= "=") (cast_expression "(uint *)(*(code *)PTR_FUN_0012a230)(0x400)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_FUN_0012a230)(0x400)" (parenthesized_expression "(*(code *)PTR_FUN_0012a230)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a230" (* "*") (cast_expression "(code *)PTR_FUN_0012a230" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a230"))) () ")")) (argument_list "(0x400)" (( "(") (number_literal "0x400") () ")"))))) (; ";")) (} "}"))) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    uVar2 = uVar4;\n    if (param_2 != 0) {\n      uVar2 = uVar4 << 0x18;\n    }\n    iVar3 = 8;\n    do {\n      if (param_2 == 0) {\n        uVar5 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n    uVar4 = uVar4 + 1;\n    *param_1 = uVar2;\n    param_1 = param_1 + 1;\n  } while (uVar4 != 0x100);" (do "do") (compound_statement "{\n    uVar2 = uVar4;\n    if (param_2 != 0) {\n      uVar2 = uVar4 << 0x18;\n    }\n    iVar3 = 8;\n    do {\n      if (param_2 == 0) {\n        uVar5 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);\n    uVar4 = uVar4 + 1;\n    *param_1 = uVar2;\n    param_1 = param_1 + 1;\n  }" ({ "{") (expression_statement "uVar2 = uVar4;" (assignment_expression "uVar2 = uVar4" (identifier "uVar2") (= "=") (identifier "uVar4")) (; ";")) (if_statement "if (param_2 != 0) {\n      uVar2 = uVar4 << 0x18;\n    }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = uVar4 << 0x18;\n    }" ({ "{") (expression_statement "uVar2 = uVar4 << 0x18;" (assignment_expression "uVar2 = uVar4 << 0x18" (identifier "uVar2") (= "=") (binary_expression "uVar4 << 0x18" (identifier "uVar4") (<< "<<") (number_literal "0x18"))) (; ";")) (} "}"))) (expression_statement "iVar3 = 8;" (assignment_expression "iVar3 = 8" (identifier "iVar3") (= "=") (number_literal "8")) (; ";")) (do_statement "do {\n      if (param_2 == 0) {\n        uVar5 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      iVar3 = iVar3 + -1;\n    } while (iVar3 != 0);" (do "do") (compound_statement "{\n      if (param_2 == 0) {\n        uVar5 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      iVar3 = iVar3 + -1;\n    }" ({ "{") (if_statement "if (param_2 == 0) {\n        uVar5 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }\n      else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar5 = uVar2 & 1;\n        uVar2 = uVar2 >> 1;\n        if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }" ({ "{") (expression_statement "uVar5 = uVar2 & 1;" (assignment_expression "uVar5 = uVar2 & 1" (identifier "uVar5") (= "=") (binary_expression "uVar2 & 1" (identifier "uVar2") (& "&") (number_literal "1"))) (; ";")) (expression_statement "uVar2 = uVar2 >> 1;" (assignment_expression "uVar2 = uVar2 >> 1" (identifier "uVar2") (= "=") (binary_expression "uVar2 >> 1" (identifier "uVar2") (>> ">>") (number_literal "1"))) (; ";")) (if_statement "if (uVar5 != 0) {\n          uVar2 = uVar2 ^ uVar6;\n        }" (if "if") (parenthesized_expression "(uVar5 != 0)" (( "(") (binary_expression "uVar5 != 0" (identifier "uVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          uVar2 = uVar2 ^ uVar6;\n        }" ({ "{") (expression_statement "uVar2 = uVar2 ^ uVar6;" (assignment_expression "uVar2 = uVar2 ^ uVar6" (identifier "uVar2") (= "=") (binary_expression "uVar2 ^ uVar6" (identifier "uVar2") (^ "^") (identifier "uVar6"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }" (else "else") (compound_statement "{\n        bVar1 = (int)uVar2 < 0;\n        uVar2 = uVar2 << 1;\n        if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }\n      }" ({ "{") (expression_statement "bVar1 = (int)uVar2 < 0;" (assignment_expression "bVar1 = (int)uVar2 < 0" (identifier "bVar1") (= "=") (binary_expression "(int)uVar2 < 0" (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2")) (< "<") (number_literal "0"))) (; ";")) (expression_statement "uVar2 = uVar2 << 1;" (assignment_expression "uVar2 = uVar2 << 1" (identifier "uVar2") (= "=") (binary_expression "uVar2 << 1" (identifier "uVar2") (<< "<<") (number_literal "1"))) (; ";")) (if_statement "if (bVar1) {\n          uVar2 = uVar2 ^ uVar6;\n        }" (if "if") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (compound_statement "{\n          uVar2 = uVar2 ^ uVar6;\n        }" ({ "{") (expression_statement "uVar2 = uVar2 ^ uVar6;" (assignment_expression "uVar2 = uVar2 ^ uVar6" (identifier "uVar2") (= "=") (binary_expression "uVar2 ^ uVar6" (identifier "uVar2") (^ "^") (identifier "uVar6"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" (identifier "uVar4") (= "=") (binary_expression "uVar4 + 1" (identifier "uVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*param_1 = uVar2;" (assignment_expression "*param_1 = uVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "uVar2")) (; ";")) (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"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar4 != 0x100)" (( "(") (binary_expression "uVar4 != 0x100" (identifier "uVar4") (!= "!=") (number_literal "0x100")) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(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: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) 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: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (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: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (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: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (return_statement))))

void MASKED(uint *param_1,int param_2)

{
  bool bVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  uint uVar5;
  uint uVar6;
  
  if (param_2 == 0) {
    uVar6 = 0xedb88320;
  }
  else {
    uVar6 = 0x4c11db7;
  }
  if (param_1 == (uint *)0x0) {
    param_1 = (uint *)(*(code *)PTR_FUN_0012a230)(0x400);
  }
  uVar4 = 0;
  do {
    uVar2 = uVar4;
    if (param_2 != 0) {
      uVar2 = uVar4 << 0x18;
    }
    iVar3 = 8;
    do {
      if (param_2 == 0) {
        uVar5 = uVar2 & 1;
        uVar2 = uVar2 >> 1;
        if (uVar5 != 0) {
          uVar2 = uVar2 ^ uVar6;
        }
      }
      else {
        bVar1 = (int)uVar2 < 0;
        uVar2 = uVar2 << 1;
        if (bVar1) {
          uVar2 = uVar2 ^ uVar6;
        }
      }
      iVar3 = iVar3 + -1;
    } while (iVar3 != 0);
    uVar4 = uVar4 + 1;
    *param_1 = uVar2;
    param_1 = param_1 + 1;
  } while (uVar4 != 0x100);
  return;
}

