
int check_crc(uchar *S,uchar *buf,uint32 len,uchar *IV)

{
  undefined *buf_00;
  undefined *puVar1;
  int iVar2;
  undefined *buf_01;
  ulong uVar3;
  uchar *puVar4;
  
  if ((IV == (uchar *)0x0) || (iVar2 = (*(code *)PTR_memcmp_000b0c84)(S,IV,8), iVar2 != 0)) {
    uVar3 = 0;
  }
  else {
    uVar3 = crc32_update(0,PTR_ONE_000b086c,4);
    uVar3 = crc32_update(uVar3,PTR_ZERO_000b0868,4);
  }
  puVar1 = PTR_ONE_000b086c;
  buf_00 = PTR_ZERO_000b0868;
  puVar4 = buf + len;
  if (buf < puVar4) {
    do {
      iVar2 = (*(code *)PTR_memcmp_000b0c84)(S,buf,8);
      buf_01 = puVar1;
      if (iVar2 != 0) {
        buf_01 = buf_00;
      }
      buf = buf + 8;
      uVar3 = crc32_update(uVar3,buf_01,4);
      uVar3 = crc32_update(uVar3,buf_00,4);
    } while (buf < puVar4);
  }
  return (uint)(uVar3 == 0);
}



bool FUN_0005b940(undefined4 param_1,uint param_2,int param_3,int param_4)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  undefined *puVar6;
  uint uVar7;
  
  if ((param_4 == 0) || (iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8), iVar3 != 0)) {
    iVar3 = 0;
  }
  else {
    uVar5 = crc32_update(0,PTR_ONE_000b086c,4);
    iVar3 = crc32_update(uVar5,PTR_ZERO_000b0868,4);
  }
  puVar2 = PTR_ONE_000b086c;
  puVar1 = PTR_ZERO_000b0868;
  uVar7 = param_2 + param_3;
  if (param_2 < uVar7) {
    do {
      iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8);
      puVar6 = puVar2;
      if (iVar4 != 0) {
        puVar6 = puVar1;
      }
      param_2 = param_2 + 8;
      uVar5 = crc32_update(iVar3,puVar6,4);
      iVar3 = crc32_update(uVar5,puVar1,4);
    } while (param_2 < uVar7);
  }
  return iVar3 == 0;
}


lui gp,0x6
addiu gp,gp,-0x37f0
addu gp,gp,t9
addiu sp,sp,-0x38
sw gp,0x10(sp)
sw s4,0x2c(sp)
or s4,a0,zero
sw s3,0x28(sp)
or s3,a2,zero
sw s0,0x1c(sp)
or s0,a1,zero
sw ra,0x34(sp)
sw s5,0x30(sp)
sw s2,0x24(sp)
beq a3,zero,0x0005b998
_sw s1,0x20(sp)
lw t9,-0x74cc(gp)
li a2,0x8
jalr t9
_or a1,a3,zero
beq v0,zero,0x0005ba3c
_lw gp,0x10(sp)
or s1,zero,zero
addu s3,s0,s3
sltu v0,s0,s3
beq v0,zero,0x0005ba14
_lw s2,-0x78e8(gp)
lw s5,-0x78e4(gp)
lw t9,-0x74cc(gp)
li a2,0x8
or a1,s0,zero
jalr t9
_or a0,s4,zero
li a2,0x4
lw gp,0x10(sp)
or a0,s1,zero
or a1,s5,zero
beq v0,zero,0x0005b9e4
_lw t9,-0x78e0(gp)
li a2,0x4
or a1,s2,zero
bal 0x0005b890
_addiu s0,s0,0x8
li a2,0x4
lw gp,0x10(sp)
or a1,s2,zero
lw t9,-0x78e0(gp)
bal 0x0005b890
_or a0,v0,zero
or s1,v0,zero
sltu v0,s0,s3
bne v0,zero,0x0005b9b0
_lw gp,0x10(sp)
lw ra,0x34(sp)
sltiu v0,s1,0x1
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x38
lw t9,-0x78e0(gp)
li a2,0x4
lw a1,-0x78e4(gp)
bal 0x0005b890
_or a0,zero,zero
li a2,0x4
lw gp,0x10(sp)
lw t9,-0x78e0(gp)
lw a1,-0x78e8(gp)
bal 0x0005b890
_or a0,v0,zero
lw gp,0x10(sp)
b 0x0005b99c
_or s1,v0,zero
(translation_unit "bool FUN_0005b940(undefined4 param_1,uint param_2,int param_3,int param_4)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  uint uVar7;\n  \n  if ((param_4 == 0) || (iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8), iVar3 != 0)) {\n    iVar3 = 0;\n  }\n  else {\n    uVar5 = crc32_update(0,PTR_ONE_000b086c,4);\n    iVar3 = crc32_update(uVar5,PTR_ZERO_000b0868,4);\n  }\n  puVar2 = PTR_ONE_000b086c;\n  puVar1 = PTR_ZERO_000b0868;\n  uVar7 = param_2 + param_3;\n  if (param_2 < uVar7) {\n    do {\n      iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8);\n      puVar6 = puVar2;\n      if (iVar4 != 0) {\n        puVar6 = puVar1;\n      }\n      param_2 = param_2 + 8;\n      uVar5 = crc32_update(iVar3,puVar6,4);\n      iVar3 = crc32_update(uVar5,puVar1,4);\n    } while (param_2 < uVar7);\n  }\n  return iVar3 == 0;\n}\n\n" (function_definition "bool FUN_0005b940(undefined4 param_1,uint param_2,int param_3,int param_4)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  uint uVar7;\n  \n  if ((param_4 == 0) || (iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8), iVar3 != 0)) {\n    iVar3 = 0;\n  }\n  else {\n    uVar5 = crc32_update(0,PTR_ONE_000b086c,4);\n    iVar3 = crc32_update(uVar5,PTR_ZERO_000b0868,4);\n  }\n  puVar2 = PTR_ONE_000b086c;\n  puVar1 = PTR_ZERO_000b0868;\n  uVar7 = param_2 + param_3;\n  if (param_2 < uVar7) {\n    do {\n      iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8);\n      puVar6 = puVar2;\n      if (iVar4 != 0) {\n        puVar6 = puVar1;\n      }\n      param_2 = param_2 + 8;\n      uVar5 = crc32_update(iVar3,puVar6,4);\n      iVar3 = crc32_update(uVar5,puVar1,4);\n    } while (param_2 < uVar7);\n  }\n  return iVar3 == 0;\n}" primitive_type (function_declarator "FUN_0005b940(undefined4 param_1,uint param_2,int param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,uint param_2,int param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  uint uVar7;\n  \n  if ((param_4 == 0) || (iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8), iVar3 != 0)) {\n    iVar3 = 0;\n  }\n  else {\n    uVar5 = crc32_update(0,PTR_ONE_000b086c,4);\n    iVar3 = crc32_update(uVar5,PTR_ZERO_000b0868,4);\n  }\n  puVar2 = PTR_ONE_000b086c;\n  puVar1 = PTR_ZERO_000b0868;\n  uVar7 = param_2 + param_3;\n  if (param_2 < uVar7) {\n    do {\n      iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8);\n      puVar6 = puVar2;\n      if (iVar4 != 0) {\n        puVar6 = puVar1;\n      }\n      param_2 = param_2 + 8;\n      uVar5 = crc32_update(iVar3,puVar6,4);\n      iVar3 = crc32_update(uVar5,puVar1,4);\n    } while (param_2 < uVar7);\n  }\n  return iVar3 == 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (if_statement "if ((param_4 == 0) || (iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8), iVar3 != 0)) {\n    iVar3 = 0;\n  }\n  else {\n    uVar5 = crc32_update(0,PTR_ONE_000b086c,4);\n    iVar3 = crc32_update(uVar5,PTR_ZERO_000b0868,4);\n  }" if (parenthesized_expression "((param_4 == 0) || (iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8), iVar3 != 0))" ( (binary_expression "(param_4 == 0) || (iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8), iVar3 != 0)" (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8), iVar3 != 0)" ( (comma_expression "iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8), iVar3 != 0" (assignment_expression "iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8)" identifier = (call_expression "(*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8)" (parenthesized_expression "(*(code *)PTR_memcmp_000b0c84)" ( (pointer_expression "*(code *)PTR_memcmp_000b0c84" * (cast_expression "(code *)PTR_memcmp_000b0c84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_4,8)" ( identifier , identifier , number_literal )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    iVar3 = 0;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar5 = crc32_update(0,PTR_ONE_000b086c,4);\n    iVar3 = crc32_update(uVar5,PTR_ZERO_000b0868,4);\n  }" else (compound_statement "{\n    uVar5 = crc32_update(0,PTR_ONE_000b086c,4);\n    iVar3 = crc32_update(uVar5,PTR_ZERO_000b0868,4);\n  }" { (expression_statement "uVar5 = crc32_update(0,PTR_ONE_000b086c,4);" (assignment_expression "uVar5 = crc32_update(0,PTR_ONE_000b086c,4)" identifier = (call_expression "crc32_update(0,PTR_ONE_000b086c,4)" identifier (argument_list "(0,PTR_ONE_000b086c,4)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "iVar3 = crc32_update(uVar5,PTR_ZERO_000b0868,4);" (assignment_expression "iVar3 = crc32_update(uVar5,PTR_ZERO_000b0868,4)" identifier = (call_expression "crc32_update(uVar5,PTR_ZERO_000b0868,4)" identifier (argument_list "(uVar5,PTR_ZERO_000b0868,4)" ( identifier , identifier , number_literal )))) ;) }))) (expression_statement "puVar2 = PTR_ONE_000b086c;" (assignment_expression "puVar2 = PTR_ONE_000b086c" identifier = identifier) ;) (expression_statement "puVar1 = PTR_ZERO_000b0868;" (assignment_expression "puVar1 = PTR_ZERO_000b0868" identifier = identifier) ;) (expression_statement "uVar7 = param_2 + param_3;" (assignment_expression "uVar7 = param_2 + param_3" identifier = (binary_expression "param_2 + param_3" identifier + identifier)) ;) (if_statement "if (param_2 < uVar7) {\n    do {\n      iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8);\n      puVar6 = puVar2;\n      if (iVar4 != 0) {\n        puVar6 = puVar1;\n      }\n      param_2 = param_2 + 8;\n      uVar5 = crc32_update(iVar3,puVar6,4);\n      iVar3 = crc32_update(uVar5,puVar1,4);\n    } while (param_2 < uVar7);\n  }" if (parenthesized_expression "(param_2 < uVar7)" ( (binary_expression "param_2 < uVar7" identifier < identifier) )) (compound_statement "{\n    do {\n      iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8);\n      puVar6 = puVar2;\n      if (iVar4 != 0) {\n        puVar6 = puVar1;\n      }\n      param_2 = param_2 + 8;\n      uVar5 = crc32_update(iVar3,puVar6,4);\n      iVar3 = crc32_update(uVar5,puVar1,4);\n    } while (param_2 < uVar7);\n  }" { (do_statement "do {\n      iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8);\n      puVar6 = puVar2;\n      if (iVar4 != 0) {\n        puVar6 = puVar1;\n      }\n      param_2 = param_2 + 8;\n      uVar5 = crc32_update(iVar3,puVar6,4);\n      iVar3 = crc32_update(uVar5,puVar1,4);\n    } while (param_2 < uVar7);" do (compound_statement "{\n      iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8);\n      puVar6 = puVar2;\n      if (iVar4 != 0) {\n        puVar6 = puVar1;\n      }\n      param_2 = param_2 + 8;\n      uVar5 = crc32_update(iVar3,puVar6,4);\n      iVar3 = crc32_update(uVar5,puVar1,4);\n    }" { (expression_statement "iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8);" (assignment_expression "iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8)" identifier = (call_expression "(*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8)" (parenthesized_expression "(*(code *)PTR_memcmp_000b0c84)" ( (pointer_expression "*(code *)PTR_memcmp_000b0c84" * (cast_expression "(code *)PTR_memcmp_000b0c84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,8)" ( identifier , identifier , number_literal )))) ;) (expression_statement "puVar6 = puVar2;" (assignment_expression "puVar6 = puVar2" identifier = identifier) ;) (if_statement "if (iVar4 != 0) {\n        puVar6 = puVar1;\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        puVar6 = puVar1;\n      }" { (expression_statement "puVar6 = puVar1;" (assignment_expression "puVar6 = puVar1" identifier = identifier) ;) })) (expression_statement "param_2 = param_2 + 8;" (assignment_expression "param_2 = param_2 + 8" identifier = (binary_expression "param_2 + 8" identifier + number_literal)) ;) (expression_statement "uVar5 = crc32_update(iVar3,puVar6,4);" (assignment_expression "uVar5 = crc32_update(iVar3,puVar6,4)" identifier = (call_expression "crc32_update(iVar3,puVar6,4)" identifier (argument_list "(iVar3,puVar6,4)" ( identifier , identifier , number_literal )))) ;) (expression_statement "iVar3 = crc32_update(uVar5,puVar1,4);" (assignment_expression "iVar3 = crc32_update(uVar5,puVar1,4)" identifier = (call_expression "crc32_update(uVar5,puVar1,4)" identifier (argument_list "(uVar5,puVar1,4)" ( identifier , identifier , number_literal )))) ;) }) while (parenthesized_expression "(param_2 < uVar7)" ( (binary_expression "param_2 < uVar7" identifier < identifier) )) ;) })) (return_statement "return iVar3 == 0;" return (binary_expression "iVar3 == 0" identifier == number_literal) ;) })))
(translation_unit "int check_crc(uchar *S,uchar *buf,uint32 len,uchar *IV)\n\n{\n  undefined *buf_00;\n  undefined *puVar1;\n  int iVar2;\n  undefined *buf_01;\n  ulong uVar3;\n  uchar *puVar4;\n  \n  if ((IV == (uchar *)0x0) || (iVar2 = (*(code *)PTR_memcmp_000b0c84)(S,IV,8), iVar2 != 0)) {\n    uVar3 = 0;\n  }\n  else {\n    uVar3 = crc32_update(0,PTR_ONE_000b086c,4);\n    uVar3 = crc32_update(uVar3,PTR_ZERO_000b0868,4);\n  }\n  puVar1 = PTR_ONE_000b086c;\n  buf_00 = PTR_ZERO_000b0868;\n  puVar4 = buf + len;\n  if (buf < puVar4) {\n    do {\n      iVar2 = (*(code *)PTR_memcmp_000b0c84)(S,buf,8);\n      buf_01 = puVar1;\n      if (iVar2 != 0) {\n        buf_01 = buf_00;\n      }\n      buf = buf + 8;\n      uVar3 = crc32_update(uVar3,buf_01,4);\n      uVar3 = crc32_update(uVar3,buf_00,4);\n    } while (buf < puVar4);\n  }\n  return (uint)(uVar3 == 0);\n}\n\n" (function_definition "int check_crc(uchar *S,uchar *buf,uint32 len,uchar *IV)\n\n{\n  undefined *buf_00;\n  undefined *puVar1;\n  int iVar2;\n  undefined *buf_01;\n  ulong uVar3;\n  uchar *puVar4;\n  \n  if ((IV == (uchar *)0x0) || (iVar2 = (*(code *)PTR_memcmp_000b0c84)(S,IV,8), iVar2 != 0)) {\n    uVar3 = 0;\n  }\n  else {\n    uVar3 = crc32_update(0,PTR_ONE_000b086c,4);\n    uVar3 = crc32_update(uVar3,PTR_ZERO_000b0868,4);\n  }\n  puVar1 = PTR_ONE_000b086c;\n  buf_00 = PTR_ZERO_000b0868;\n  puVar4 = buf + len;\n  if (buf < puVar4) {\n    do {\n      iVar2 = (*(code *)PTR_memcmp_000b0c84)(S,buf,8);\n      buf_01 = puVar1;\n      if (iVar2 != 0) {\n        buf_01 = buf_00;\n      }\n      buf = buf + 8;\n      uVar3 = crc32_update(uVar3,buf_01,4);\n      uVar3 = crc32_update(uVar3,buf_00,4);\n    } while (buf < puVar4);\n  }\n  return (uint)(uVar3 == 0);\n}" primitive_type (function_declarator "check_crc(uchar *S,uchar *buf,uint32 len,uchar *IV)" identifier (parameter_list "(uchar *S,uchar *buf,uint32 len,uchar *IV)" ( (parameter_declaration "uchar *S" type_identifier (pointer_declarator "*S" * identifier)) , (parameter_declaration "uchar *buf" type_identifier (pointer_declarator "*buf" * identifier)) , (parameter_declaration "uint32 len" type_identifier identifier) , (parameter_declaration "uchar *IV" type_identifier (pointer_declarator "*IV" * identifier)) ))) (compound_statement "{\n  undefined *buf_00;\n  undefined *puVar1;\n  int iVar2;\n  undefined *buf_01;\n  ulong uVar3;\n  uchar *puVar4;\n  \n  if ((IV == (uchar *)0x0) || (iVar2 = (*(code *)PTR_memcmp_000b0c84)(S,IV,8), iVar2 != 0)) {\n    uVar3 = 0;\n  }\n  else {\n    uVar3 = crc32_update(0,PTR_ONE_000b086c,4);\n    uVar3 = crc32_update(uVar3,PTR_ZERO_000b0868,4);\n  }\n  puVar1 = PTR_ONE_000b086c;\n  buf_00 = PTR_ZERO_000b0868;\n  puVar4 = buf + len;\n  if (buf < puVar4) {\n    do {\n      iVar2 = (*(code *)PTR_memcmp_000b0c84)(S,buf,8);\n      buf_01 = puVar1;\n      if (iVar2 != 0) {\n        buf_01 = buf_00;\n      }\n      buf = buf + 8;\n      uVar3 = crc32_update(uVar3,buf_01,4);\n      uVar3 = crc32_update(uVar3,buf_00,4);\n    } while (buf < puVar4);\n  }\n  return (uint)(uVar3 == 0);\n}" { (declaration "undefined *buf_00;" type_identifier (pointer_declarator "*buf_00" * identifier) ;) (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined *buf_01;" type_identifier (pointer_declarator "*buf_01" * identifier) ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "uchar *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (if_statement "if ((IV == (uchar *)0x0) || (iVar2 = (*(code *)PTR_memcmp_000b0c84)(S,IV,8), iVar2 != 0)) {\n    uVar3 = 0;\n  }\n  else {\n    uVar3 = crc32_update(0,PTR_ONE_000b086c,4);\n    uVar3 = crc32_update(uVar3,PTR_ZERO_000b0868,4);\n  }" if (parenthesized_expression "((IV == (uchar *)0x0) || (iVar2 = (*(code *)PTR_memcmp_000b0c84)(S,IV,8), iVar2 != 0))" ( (binary_expression "(IV == (uchar *)0x0) || (iVar2 = (*(code *)PTR_memcmp_000b0c84)(S,IV,8), iVar2 != 0)" (parenthesized_expression "(IV == (uchar *)0x0)" ( (binary_expression "IV == (uchar *)0x0" identifier == (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(iVar2 = (*(code *)PTR_memcmp_000b0c84)(S,IV,8), iVar2 != 0)" ( (comma_expression "iVar2 = (*(code *)PTR_memcmp_000b0c84)(S,IV,8), iVar2 != 0" (assignment_expression "iVar2 = (*(code *)PTR_memcmp_000b0c84)(S,IV,8)" identifier = (call_expression "(*(code *)PTR_memcmp_000b0c84)(S,IV,8)" (parenthesized_expression "(*(code *)PTR_memcmp_000b0c84)" ( (pointer_expression "*(code *)PTR_memcmp_000b0c84" * (cast_expression "(code *)PTR_memcmp_000b0c84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(S,IV,8)" ( identifier , identifier , number_literal )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    uVar3 = 0;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar3 = crc32_update(0,PTR_ONE_000b086c,4);\n    uVar3 = crc32_update(uVar3,PTR_ZERO_000b0868,4);\n  }" else (compound_statement "{\n    uVar3 = crc32_update(0,PTR_ONE_000b086c,4);\n    uVar3 = crc32_update(uVar3,PTR_ZERO_000b0868,4);\n  }" { (expression_statement "uVar3 = crc32_update(0,PTR_ONE_000b086c,4);" (assignment_expression "uVar3 = crc32_update(0,PTR_ONE_000b086c,4)" identifier = (call_expression "crc32_update(0,PTR_ONE_000b086c,4)" identifier (argument_list "(0,PTR_ONE_000b086c,4)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "uVar3 = crc32_update(uVar3,PTR_ZERO_000b0868,4);" (assignment_expression "uVar3 = crc32_update(uVar3,PTR_ZERO_000b0868,4)" identifier = (call_expression "crc32_update(uVar3,PTR_ZERO_000b0868,4)" identifier (argument_list "(uVar3,PTR_ZERO_000b0868,4)" ( identifier , identifier , number_literal )))) ;) }))) (expression_statement "puVar1 = PTR_ONE_000b086c;" (assignment_expression "puVar1 = PTR_ONE_000b086c" identifier = identifier) ;) (expression_statement "buf_00 = PTR_ZERO_000b0868;" (assignment_expression "buf_00 = PTR_ZERO_000b0868" identifier = identifier) ;) (expression_statement "puVar4 = buf + len;" (assignment_expression "puVar4 = buf + len" identifier = (binary_expression "buf + len" identifier + identifier)) ;) (if_statement "if (buf < puVar4) {\n    do {\n      iVar2 = (*(code *)PTR_memcmp_000b0c84)(S,buf,8);\n      buf_01 = puVar1;\n      if (iVar2 != 0) {\n        buf_01 = buf_00;\n      }\n      buf = buf + 8;\n      uVar3 = crc32_update(uVar3,buf_01,4);\n      uVar3 = crc32_update(uVar3,buf_00,4);\n    } while (buf < puVar4);\n  }" if (parenthesized_expression "(buf < puVar4)" ( (binary_expression "buf < puVar4" identifier < identifier) )) (compound_statement "{\n    do {\n      iVar2 = (*(code *)PTR_memcmp_000b0c84)(S,buf,8);\n      buf_01 = puVar1;\n      if (iVar2 != 0) {\n        buf_01 = buf_00;\n      }\n      buf = buf + 8;\n      uVar3 = crc32_update(uVar3,buf_01,4);\n      uVar3 = crc32_update(uVar3,buf_00,4);\n    } while (buf < puVar4);\n  }" { (do_statement "do {\n      iVar2 = (*(code *)PTR_memcmp_000b0c84)(S,buf,8);\n      buf_01 = puVar1;\n      if (iVar2 != 0) {\n        buf_01 = buf_00;\n      }\n      buf = buf + 8;\n      uVar3 = crc32_update(uVar3,buf_01,4);\n      uVar3 = crc32_update(uVar3,buf_00,4);\n    } while (buf < puVar4);" do (compound_statement "{\n      iVar2 = (*(code *)PTR_memcmp_000b0c84)(S,buf,8);\n      buf_01 = puVar1;\n      if (iVar2 != 0) {\n        buf_01 = buf_00;\n      }\n      buf = buf + 8;\n      uVar3 = crc32_update(uVar3,buf_01,4);\n      uVar3 = crc32_update(uVar3,buf_00,4);\n    }" { (expression_statement "iVar2 = (*(code *)PTR_memcmp_000b0c84)(S,buf,8);" (assignment_expression "iVar2 = (*(code *)PTR_memcmp_000b0c84)(S,buf,8)" identifier = (call_expression "(*(code *)PTR_memcmp_000b0c84)(S,buf,8)" (parenthesized_expression "(*(code *)PTR_memcmp_000b0c84)" ( (pointer_expression "*(code *)PTR_memcmp_000b0c84" * (cast_expression "(code *)PTR_memcmp_000b0c84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(S,buf,8)" ( identifier , identifier , number_literal )))) ;) (expression_statement "buf_01 = puVar1;" (assignment_expression "buf_01 = puVar1" identifier = identifier) ;) (if_statement "if (iVar2 != 0) {\n        buf_01 = buf_00;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        buf_01 = buf_00;\n      }" { (expression_statement "buf_01 = buf_00;" (assignment_expression "buf_01 = buf_00" identifier = identifier) ;) })) (expression_statement "buf = buf + 8;" (assignment_expression "buf = buf + 8" identifier = (binary_expression "buf + 8" identifier + number_literal)) ;) (expression_statement "uVar3 = crc32_update(uVar3,buf_01,4);" (assignment_expression "uVar3 = crc32_update(uVar3,buf_01,4)" identifier = (call_expression "crc32_update(uVar3,buf_01,4)" identifier (argument_list "(uVar3,buf_01,4)" ( identifier , identifier , number_literal )))) ;) (expression_statement "uVar3 = crc32_update(uVar3,buf_00,4);" (assignment_expression "uVar3 = crc32_update(uVar3,buf_00,4)" identifier = (call_expression "crc32_update(uVar3,buf_00,4)" identifier (argument_list "(uVar3,buf_00,4)" ( identifier , identifier , number_literal )))) ;) }) while (parenthesized_expression "(buf < puVar4)" ( (binary_expression "buf < puVar4" identifier < identifier) )) ;) })) (return_statement "return (uint)(uVar3 == 0);" return (call_expression "(uint)(uVar3 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) ))) ;) })))
(translation_unit "bool FUN_0005b940(undefined4 param_1,uint param_2,int param_3,int param_4)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  uint uVar7;\n  \n  if ((param_4 == 0) || (iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8), iVar3 != 0)) {\n    iVar3 = 0;\n  }\n  else {\n    uVar5 = crc32_update(0,PTR_ONE_000b086c,4);\n    iVar3 = crc32_update(uVar5,PTR_ZERO_000b0868,4);\n  }\n  puVar2 = PTR_ONE_000b086c;\n  puVar1 = PTR_ZERO_000b0868;\n  uVar7 = param_2 + param_3;\n  if (param_2 < uVar7) {\n    do {\n      iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8);\n      puVar6 = puVar2;\n      if (iVar4 != 0) {\n        puVar6 = puVar1;\n      }\n      param_2 = param_2 + 8;\n      uVar5 = crc32_update(iVar3,puVar6,4);\n      iVar3 = crc32_update(uVar5,puVar1,4);\n    } while (param_2 < uVar7);\n  }\n  return iVar3 == 0;\n}\n\n" (function_definition "bool FUN_0005b940(undefined4 param_1,uint param_2,int param_3,int param_4)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  uint uVar7;\n  \n  if ((param_4 == 0) || (iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8), iVar3 != 0)) {\n    iVar3 = 0;\n  }\n  else {\n    uVar5 = crc32_update(0,PTR_ONE_000b086c,4);\n    iVar3 = crc32_update(uVar5,PTR_ZERO_000b0868,4);\n  }\n  puVar2 = PTR_ONE_000b086c;\n  puVar1 = PTR_ZERO_000b0868;\n  uVar7 = param_2 + param_3;\n  if (param_2 < uVar7) {\n    do {\n      iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8);\n      puVar6 = puVar2;\n      if (iVar4 != 0) {\n        puVar6 = puVar1;\n      }\n      param_2 = param_2 + 8;\n      uVar5 = crc32_update(iVar3,puVar6,4);\n      iVar3 = crc32_update(uVar5,puVar1,4);\n    } while (param_2 < uVar7);\n  }\n  return iVar3 == 0;\n}" primitive_type (function_declarator "FUN_0005b940(undefined4 param_1,uint param_2,int param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,uint param_2,int param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  uint uVar7;\n  \n  if ((param_4 == 0) || (iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8), iVar3 != 0)) {\n    iVar3 = 0;\n  }\n  else {\n    uVar5 = crc32_update(0,PTR_ONE_000b086c,4);\n    iVar3 = crc32_update(uVar5,PTR_ZERO_000b0868,4);\n  }\n  puVar2 = PTR_ONE_000b086c;\n  puVar1 = PTR_ZERO_000b0868;\n  uVar7 = param_2 + param_3;\n  if (param_2 < uVar7) {\n    do {\n      iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8);\n      puVar6 = puVar2;\n      if (iVar4 != 0) {\n        puVar6 = puVar1;\n      }\n      param_2 = param_2 + 8;\n      uVar5 = crc32_update(iVar3,puVar6,4);\n      iVar3 = crc32_update(uVar5,puVar1,4);\n    } while (param_2 < uVar7);\n  }\n  return iVar3 == 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (if_statement "if ((param_4 == 0) || (iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8), iVar3 != 0)) {\n    iVar3 = 0;\n  }\n  else {\n    uVar5 = crc32_update(0,PTR_ONE_000b086c,4);\n    iVar3 = crc32_update(uVar5,PTR_ZERO_000b0868,4);\n  }" if (parenthesized_expression "((param_4 == 0) || (iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8), iVar3 != 0))" ( (binary_expression "(param_4 == 0) || (iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8), iVar3 != 0)" (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8), iVar3 != 0)" ( (comma_expression "iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8), iVar3 != 0" (assignment_expression "iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8)" identifier = (call_expression "(*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8)" (parenthesized_expression "(*(code *)PTR_memcmp_000b0c84)" ( (pointer_expression "*(code *)PTR_memcmp_000b0c84" * (cast_expression "(code *)PTR_memcmp_000b0c84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_4,8)" ( identifier , identifier , number_literal )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    iVar3 = 0;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar5 = crc32_update(0,PTR_ONE_000b086c,4);\n    iVar3 = crc32_update(uVar5,PTR_ZERO_000b0868,4);\n  }" else (compound_statement "{\n    uVar5 = crc32_update(0,PTR_ONE_000b086c,4);\n    iVar3 = crc32_update(uVar5,PTR_ZERO_000b0868,4);\n  }" { (expression_statement "uVar5 = crc32_update(0,PTR_ONE_000b086c,4);" (assignment_expression "uVar5 = crc32_update(0,PTR_ONE_000b086c,4)" identifier = (call_expression "crc32_update(0,PTR_ONE_000b086c,4)" identifier (argument_list "(0,PTR_ONE_000b086c,4)" ( number_literal , identifier , number_literal )))) ;) (expression_statement "iVar3 = crc32_update(uVar5,PTR_ZERO_000b0868,4);" (assignment_expression "iVar3 = crc32_update(uVar5,PTR_ZERO_000b0868,4)" identifier = (call_expression "crc32_update(uVar5,PTR_ZERO_000b0868,4)" identifier (argument_list "(uVar5,PTR_ZERO_000b0868,4)" ( identifier , identifier , number_literal )))) ;) }))) (expression_statement "puVar2 = PTR_ONE_000b086c;" (assignment_expression "puVar2 = PTR_ONE_000b086c" identifier = identifier) ;) (expression_statement "puVar1 = PTR_ZERO_000b0868;" (assignment_expression "puVar1 = PTR_ZERO_000b0868" identifier = identifier) ;) (expression_statement "uVar7 = param_2 + param_3;" (assignment_expression "uVar7 = param_2 + param_3" identifier = (binary_expression "param_2 + param_3" identifier + identifier)) ;) (if_statement "if (param_2 < uVar7) {\n    do {\n      iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8);\n      puVar6 = puVar2;\n      if (iVar4 != 0) {\n        puVar6 = puVar1;\n      }\n      param_2 = param_2 + 8;\n      uVar5 = crc32_update(iVar3,puVar6,4);\n      iVar3 = crc32_update(uVar5,puVar1,4);\n    } while (param_2 < uVar7);\n  }" if (parenthesized_expression "(param_2 < uVar7)" ( (binary_expression "param_2 < uVar7" identifier < identifier) )) (compound_statement "{\n    do {\n      iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8);\n      puVar6 = puVar2;\n      if (iVar4 != 0) {\n        puVar6 = puVar1;\n      }\n      param_2 = param_2 + 8;\n      uVar5 = crc32_update(iVar3,puVar6,4);\n      iVar3 = crc32_update(uVar5,puVar1,4);\n    } while (param_2 < uVar7);\n  }" { (do_statement "do {\n      iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8);\n      puVar6 = puVar2;\n      if (iVar4 != 0) {\n        puVar6 = puVar1;\n      }\n      param_2 = param_2 + 8;\n      uVar5 = crc32_update(iVar3,puVar6,4);\n      iVar3 = crc32_update(uVar5,puVar1,4);\n    } while (param_2 < uVar7);" do (compound_statement "{\n      iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8);\n      puVar6 = puVar2;\n      if (iVar4 != 0) {\n        puVar6 = puVar1;\n      }\n      param_2 = param_2 + 8;\n      uVar5 = crc32_update(iVar3,puVar6,4);\n      iVar3 = crc32_update(uVar5,puVar1,4);\n    }" { (expression_statement "iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8);" (assignment_expression "iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8)" identifier = (call_expression "(*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8)" (parenthesized_expression "(*(code *)PTR_memcmp_000b0c84)" ( (pointer_expression "*(code *)PTR_memcmp_000b0c84" * (cast_expression "(code *)PTR_memcmp_000b0c84" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,8)" ( identifier , identifier , number_literal )))) ;) (expression_statement "puVar6 = puVar2;" (assignment_expression "puVar6 = puVar2" identifier = identifier) ;) (if_statement "if (iVar4 != 0) {\n        puVar6 = puVar1;\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        puVar6 = puVar1;\n      }" { (expression_statement "puVar6 = puVar1;" (assignment_expression "puVar6 = puVar1" identifier = identifier) ;) })) (expression_statement "param_2 = param_2 + 8;" (assignment_expression "param_2 = param_2 + 8" identifier = (binary_expression "param_2 + 8" identifier + number_literal)) ;) (expression_statement "uVar5 = crc32_update(iVar3,puVar6,4);" (assignment_expression "uVar5 = crc32_update(iVar3,puVar6,4)" identifier = (call_expression "crc32_update(iVar3,puVar6,4)" identifier (argument_list "(iVar3,puVar6,4)" ( identifier , identifier , number_literal )))) ;) (expression_statement "iVar3 = crc32_update(uVar5,puVar1,4);" (assignment_expression "iVar3 = crc32_update(uVar5,puVar1,4)" identifier = (call_expression "crc32_update(uVar5,puVar1,4)" identifier (argument_list "(uVar5,puVar1,4)" ( identifier , identifier , number_literal )))) ;) }) while (parenthesized_expression "(param_2 < uVar7)" ( (binary_expression "param_2 < uVar7" identifier < identifier) )) ;) })) (return_statement "return iVar3 == 0;" return (binary_expression "iVar3 == 0" identifier == number_literal) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , LIT )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (return_statement return (binary_expression IDENT == LIT) ;) })))
(function_definition "bool FUN_0005b940(undefined4 param_1,uint param_2,int param_3,int param_4)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  uint uVar7;\n  \n  if ((param_4 == 0) || (iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8), iVar3 != 0)) {\n    iVar3 = 0;\n  }\n  else {\n    uVar5 = crc32_update(0,PTR_ONE_000b086c,4);\n    iVar3 = crc32_update(uVar5,PTR_ZERO_000b0868,4);\n  }\n  puVar2 = PTR_ONE_000b086c;\n  puVar1 = PTR_ZERO_000b0868;\n  uVar7 = param_2 + param_3;\n  if (param_2 < uVar7) {\n    do {\n      iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8);\n      puVar6 = puVar2;\n      if (iVar4 != 0) {\n        puVar6 = puVar1;\n      }\n      param_2 = param_2 + 8;\n      uVar5 = crc32_update(iVar3,puVar6,4);\n      iVar3 = crc32_update(uVar5,puVar1,4);\n    } while (param_2 < uVar7);\n  }\n  return iVar3 == 0;\n}" (primitive_type "bool") (function_declarator "FUN_0005b940(undefined4 param_1,uint param_2,int param_3,int param_4)" (identifier "FUN_0005b940") (parameter_list "(undefined4 param_1,uint param_2,int param_3,int param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  uint uVar7;\n  \n  if ((param_4 == 0) || (iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8), iVar3 != 0)) {\n    iVar3 = 0;\n  }\n  else {\n    uVar5 = crc32_update(0,PTR_ONE_000b086c,4);\n    iVar3 = crc32_update(uVar5,PTR_ZERO_000b0868,4);\n  }\n  puVar2 = PTR_ONE_000b086c;\n  puVar1 = PTR_ZERO_000b0868;\n  uVar7 = param_2 + param_3;\n  if (param_2 < uVar7) {\n    do {\n      iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8);\n      puVar6 = puVar2;\n      if (iVar4 != 0) {\n        puVar6 = puVar1;\n      }\n      param_2 = param_2 + 8;\n      uVar5 = crc32_update(iVar3,puVar6,4);\n      iVar3 = crc32_update(uVar5,puVar1,4);\n    } while (param_2 < uVar7);\n  }\n  return iVar3 == 0;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined *puVar6;" (type_identifier "undefined") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (if_statement "if ((param_4 == 0) || (iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8), iVar3 != 0)) {\n    iVar3 = 0;\n  }\n  else {\n    uVar5 = crc32_update(0,PTR_ONE_000b086c,4);\n    iVar3 = crc32_update(uVar5,PTR_ZERO_000b0868,4);\n  }" (if "if") (parenthesized_expression "((param_4 == 0) || (iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8), iVar3 != 0))" (( "(") (binary_expression "(param_4 == 0) || (iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8), iVar3 != 0)" (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8), iVar3 != 0)" (( "(") (comma_expression "iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8), iVar3 != 0" (assignment_expression "iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8)" (parenthesized_expression "(*(code *)PTR_memcmp_000b0c84)" (( "(") (pointer_expression "*(code *)PTR_memcmp_000b0c84" (* "*") (cast_expression "(code *)PTR_memcmp_000b0c84" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcmp_000b0c84"))) () ")")) (argument_list "(param_1,param_4,8)" (( "(") (identifier "param_1") (, ",") (identifier "param_4") (, ",") (number_literal "8") () ")")))) (, ",") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    iVar3 = 0;\n  }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar5 = crc32_update(0,PTR_ONE_000b086c,4);\n    iVar3 = crc32_update(uVar5,PTR_ZERO_000b0868,4);\n  }" (else "else") (compound_statement "{\n    uVar5 = crc32_update(0,PTR_ONE_000b086c,4);\n    iVar3 = crc32_update(uVar5,PTR_ZERO_000b0868,4);\n  }" ({ "{") (expression_statement "uVar5 = crc32_update(0,PTR_ONE_000b086c,4);" (assignment_expression "uVar5 = crc32_update(0,PTR_ONE_000b086c,4)" (identifier "uVar5") (= "=") (call_expression "crc32_update(0,PTR_ONE_000b086c,4)" (identifier "crc32_update") (argument_list "(0,PTR_ONE_000b086c,4)" (( "(") (number_literal "0") (, ",") (identifier "PTR_ONE_000b086c") (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "iVar3 = crc32_update(uVar5,PTR_ZERO_000b0868,4);" (assignment_expression "iVar3 = crc32_update(uVar5,PTR_ZERO_000b0868,4)" (identifier "iVar3") (= "=") (call_expression "crc32_update(uVar5,PTR_ZERO_000b0868,4)" (identifier "crc32_update") (argument_list "(uVar5,PTR_ZERO_000b0868,4)" (( "(") (identifier "uVar5") (, ",") (identifier "PTR_ZERO_000b0868") (, ",") (number_literal "4") () ")")))) (; ";")) (} "}")))) (expression_statement "puVar2 = PTR_ONE_000b086c;" (assignment_expression "puVar2 = PTR_ONE_000b086c" (identifier "puVar2") (= "=") (identifier "PTR_ONE_000b086c")) (; ";")) (expression_statement "puVar1 = PTR_ZERO_000b0868;" (assignment_expression "puVar1 = PTR_ZERO_000b0868" (identifier "puVar1") (= "=") (identifier "PTR_ZERO_000b0868")) (; ";")) (expression_statement "uVar7 = param_2 + param_3;" (assignment_expression "uVar7 = param_2 + param_3" (identifier "uVar7") (= "=") (binary_expression "param_2 + param_3" (identifier "param_2") (+ "+") (identifier "param_3"))) (; ";")) (if_statement "if (param_2 < uVar7) {\n    do {\n      iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8);\n      puVar6 = puVar2;\n      if (iVar4 != 0) {\n        puVar6 = puVar1;\n      }\n      param_2 = param_2 + 8;\n      uVar5 = crc32_update(iVar3,puVar6,4);\n      iVar3 = crc32_update(uVar5,puVar1,4);\n    } while (param_2 < uVar7);\n  }" (if "if") (parenthesized_expression "(param_2 < uVar7)" (( "(") (binary_expression "param_2 < uVar7" (identifier "param_2") (< "<") (identifier "uVar7")) () ")")) (compound_statement "{\n    do {\n      iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8);\n      puVar6 = puVar2;\n      if (iVar4 != 0) {\n        puVar6 = puVar1;\n      }\n      param_2 = param_2 + 8;\n      uVar5 = crc32_update(iVar3,puVar6,4);\n      iVar3 = crc32_update(uVar5,puVar1,4);\n    } while (param_2 < uVar7);\n  }" ({ "{") (do_statement "do {\n      iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8);\n      puVar6 = puVar2;\n      if (iVar4 != 0) {\n        puVar6 = puVar1;\n      }\n      param_2 = param_2 + 8;\n      uVar5 = crc32_update(iVar3,puVar6,4);\n      iVar3 = crc32_update(uVar5,puVar1,4);\n    } while (param_2 < uVar7);" (do "do") (compound_statement "{\n      iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8);\n      puVar6 = puVar2;\n      if (iVar4 != 0) {\n        puVar6 = puVar1;\n      }\n      param_2 = param_2 + 8;\n      uVar5 = crc32_update(iVar3,puVar6,4);\n      iVar3 = crc32_update(uVar5,puVar1,4);\n    }" ({ "{") (expression_statement "iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8);" (assignment_expression "iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8)" (parenthesized_expression "(*(code *)PTR_memcmp_000b0c84)" (( "(") (pointer_expression "*(code *)PTR_memcmp_000b0c84" (* "*") (cast_expression "(code *)PTR_memcmp_000b0c84" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcmp_000b0c84"))) () ")")) (argument_list "(param_1,param_2,8)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "8") () ")")))) (; ";")) (expression_statement "puVar6 = puVar2;" (assignment_expression "puVar6 = puVar2" (identifier "puVar6") (= "=") (identifier "puVar2")) (; ";")) (if_statement "if (iVar4 != 0) {\n        puVar6 = puVar1;\n      }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        puVar6 = puVar1;\n      }" ({ "{") (expression_statement "puVar6 = puVar1;" (assignment_expression "puVar6 = puVar1" (identifier "puVar6") (= "=") (identifier "puVar1")) (; ";")) (} "}"))) (expression_statement "param_2 = param_2 + 8;" (assignment_expression "param_2 = param_2 + 8" (identifier "param_2") (= "=") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "uVar5 = crc32_update(iVar3,puVar6,4);" (assignment_expression "uVar5 = crc32_update(iVar3,puVar6,4)" (identifier "uVar5") (= "=") (call_expression "crc32_update(iVar3,puVar6,4)" (identifier "crc32_update") (argument_list "(iVar3,puVar6,4)" (( "(") (identifier "iVar3") (, ",") (identifier "puVar6") (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "iVar3 = crc32_update(uVar5,puVar1,4);" (assignment_expression "iVar3 = crc32_update(uVar5,puVar1,4)" (identifier "iVar3") (= "=") (call_expression "crc32_update(uVar5,puVar1,4)" (identifier "crc32_update") (argument_list "(uVar5,puVar1,4)" (( "(") (identifier "uVar5") (, ",") (identifier "puVar1") (, ",") (number_literal "4") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 < uVar7)" (( "(") (binary_expression "param_2 < uVar7" (identifier "param_2") (< "<") (identifier "uVar7")) () ")")) (; ";")) (} "}"))) (return_statement "return iVar3 == 0;" (return "return") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) (; ";")) (} "}")))

int function_1(type_1 *S,type_1 *var_4,type_2 var_5,type_1 *var_1)

{
  type_3 *buf_00;
  type_3 *puVar1;
  int var_2;
  type_3 *buf_01;
  type_4 var_7;
  type_1 *var_6;
  
  if ((var_1 == (type_1 *)0x0) || (var_2 = (*(type_5 *)PTR_memcmp_000b0c84)(S,var_1,8), var_2 != 0)) {
    var_7 = 0;
  }
  else {
    var_7 = var_3(0,PTR_ONE_000b086c,4);
    var_7 = var_3(var_7,PTR_ZERO_000b0868,4);
  }
  puVar1 = PTR_ONE_000b086c;
  buf_00 = PTR_ZERO_000b0868;
  var_6 = var_4 + var_5;
  if (var_4 < var_6) {
    do {
      var_2 = (*(type_5 *)PTR_memcmp_000b0c84)(S,var_4,8);
      buf_01 = puVar1;
      if (var_2 != 0) {
        buf_01 = buf_00;
      }
      var_4 = var_4 + 8;
      var_7 = var_3(var_7,buf_01,4);
      var_7 = var_3(var_7,buf_00,4);
    } while (var_4 < var_6);
  }
  return (uint)(var_7 == 0);
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) 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))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (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 (identifier) (identifier) (number_literal)))) right: (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: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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 (identifier) (identifier) (number_literal))))) (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: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (return_statement (binary_expression left: (identifier) right: (number_literal))))))

bool MASKED(undefined4 param_1,uint param_2,int param_3,int param_4)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  undefined *puVar6;
  uint uVar7;
  
  if ((param_4 == 0) || (iVar3 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_4,8), iVar3 != 0)) {
    iVar3 = 0;
  }
  else {
    uVar5 = crc32_update(0,PTR_ONE_000b086c,4);
    iVar3 = crc32_update(uVar5,PTR_ZERO_000b0868,4);
  }
  puVar2 = PTR_ONE_000b086c;
  puVar1 = PTR_ZERO_000b0868;
  uVar7 = param_2 + param_3;
  if (param_2 < uVar7) {
    do {
      iVar4 = (*(code *)PTR_memcmp_000b0c84)(param_1,param_2,8);
      puVar6 = puVar2;
      if (iVar4 != 0) {
        puVar6 = puVar1;
      }
      param_2 = param_2 + 8;
      uVar5 = crc32_update(iVar3,puVar6,4);
      iVar3 = crc32_update(uVar5,puVar1,4);
    } while (param_2 < uVar7);
  }
  return iVar3 == 0;
}

