
uint base_of_encoded_value(uint param_1,byte *param_2,int param_3,int param_4)

{
  byte bVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  int *piVar5;
  byte *pbVar6;
  byte *pbVar7;
  uint uVar8;
  int iVar9;
  undefined *puVar10;
  
  pbVar6 = (byte *)(param_1 & 0x70);
  if (param_1 == 0xff) {
    return 0;
  }
  if (pbVar6 == &DAT_00000020) {
    return *(uint *)(param_2 + 0x300);
  }
  if (pbVar6 < &DAT_00000021) {
    if (pbVar6 == (byte *)0x0) {
      return 0;
    }
    if (pbVar6 == (byte *)0x10) {
      return 0;
    }
  }
  else {
    if (pbVar6 == &DAT_00000040) {
      return *(uint *)(param_2 + 0x308);
    }
    if (pbVar6 == &DAT_00000050) {
      return 0;
    }
    if (pbVar6 == &DAT_00000030) {
      return *(uint *)(param_2 + 0x304);
    }
  }
  puVar10 = PTR_abort_00436908;
  (*(code *)PTR_abort_00436908)();
  *(undefined4 *)(param_4 + 0x5e8) = 0;
  if (param_2 <= pbVar6) {
    return 0;
  }
  uVar8 = *(uint *)(param_4 + 0x5fc);
  uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)));
  if (uVar2 != 0) {
    iVar9 = *(int *)(puVar10 + 0xc4a9c);
    do {
      uVar4 = (uint)*pbVar6;
      uVar2 = uVar4 & 0xc0;
      pbVar6 = pbVar6 + 1;
      if (uVar2 == 0x40) {
        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;
      }
      else if (uVar2 == 0x80) {
        uVar8 = 0;
        uVar2 = 0;
        pbVar7 = pbVar6;
        do {
          pbVar6 = pbVar7 + 1;
          bVar1 = *pbVar7;
          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);
          uVar2 = uVar2 + 7;
          pbVar7 = pbVar6;
        } while ((char)bVar1 < '\0');
        iVar3 = *(int *)(param_4 + 0x604);
        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);
        piVar5[1] = 1;
        *piVar5 = uVar8 * iVar3;
      }
      else {
        if (uVar2 != 0xc0) {
          if (0x2f < uVar4) {
            uVar2 = (**(code **)(puVar10 + 0xc90b8))();
            return uVar2;
          }
                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */
                    /* WARNING: Treating indirect jump as call */
          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();
          return uVar2;
        }
        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;
      }
      if (param_2 <= pbVar6) {
        return 0;
      }
      uVar8 = *(uint *)(param_4 + 0x5fc);
      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))
                    );
    } while (uVar2 != 0);
  }
  return uVar2;
}



uint FUN_0036d7a8(uint param_1,byte *param_2,int param_3,int param_4)

{
  byte bVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  int *piVar5;
  byte *pbVar6;
  byte *pbVar7;
  uint uVar8;
  int iVar9;
  undefined *puVar10;
  
  pbVar6 = (byte *)(param_1 & 0x70);
  if (param_1 == 0xff) {
    return 0;
  }
  if (pbVar6 == &DAT_00000020) {
    return *(uint *)(param_2 + 0x300);
  }
  if (pbVar6 < &DAT_00000021) {
    if (pbVar6 == (byte *)0x0) {
      return 0;
    }
    if (pbVar6 == (byte *)0x10) {
      return 0;
    }
  }
  else {
    if (pbVar6 == &DAT_00000040) {
      return *(uint *)(param_2 + 0x308);
    }
    if (pbVar6 == &DAT_00000050) {
      return 0;
    }
    if (pbVar6 == &DAT_00000030) {
      return *(uint *)(param_2 + 0x304);
    }
  }
  puVar10 = PTR_abort_00436908;
  (*(code *)PTR_abort_00436908)();
  *(undefined4 *)(param_4 + 0x5e8) = 0;
  if (param_2 <= pbVar6) {
    return 0;
  }
  uVar8 = *(uint *)(param_4 + 0x5fc);
  uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)));
  if (uVar2 != 0) {
    iVar9 = *(int *)(puVar10 + 0xc4a9c);
    do {
      uVar4 = (uint)*pbVar6;
      uVar2 = uVar4 & 0xc0;
      pbVar6 = pbVar6 + 1;
      if (uVar2 == 0x40) {
        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;
      }
      else if (uVar2 == 0x80) {
        uVar8 = 0;
        uVar2 = 0;
        pbVar7 = pbVar6;
        do {
          pbVar6 = pbVar7 + 1;
          bVar1 = *pbVar7;
          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);
          uVar2 = uVar2 + 7;
          pbVar7 = pbVar6;
        } while ((char)bVar1 < '\0');
        iVar3 = *(int *)(param_4 + 0x604);
        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);
        piVar5[1] = 1;
        *piVar5 = uVar8 * iVar3;
      }
      else {
        if (uVar2 != 0xc0) {
          if (0x2f < uVar4) {
            uVar2 = (**(code **)(puVar10 + 0xc90b8))();
            return uVar2;
          }
                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */
                    /* WARNING: Treating indirect jump as call */
          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();
          return uVar2;
        }
        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;
      }
      if (param_2 <= pbVar6) {
        return 0;
      }
      uVar8 = *(uint *)(param_4 + 0x5fc);
      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))
                    );
    } while (uVar2 != 0);
  }
  return uVar2;
}


lui gp,0xd
addiu gp,gp,-0x35d8
addu gp,gp,t9
li v0,0xff
beq a0,v0,0x0036d818
_andi a0,a0,0x70
li v0,0x20
beq a0,v0,0x0036d830
_nop
sltiu v0,a0,0x21
bne v0,zero,0x0036d800
_li v0,0x40
beq a0,v0,0x0036d820
_nop
li v0,0x50
beq a0,v0,0x0036d828
_nop
li v0,0x30
bne a0,v0,0x0036d838
_nop
jr ra
_lw v0,0x304(a1)
beq a0,zero,0x0036d818
_li v1,0x10
bne a0,v1,0x0036d838
_or v0,zero,zero
jr ra
_nop
jr ra
_or v0,zero,zero
jr ra
_lw v0,0x308(a1)
jr ra
_or v0,zero,zero
jr ra
_lw v0,0x300(a1)
addiu sp,sp,-0x20
lw t9,-0x38c8(gp)
sw gp,0x10(sp)
sw ra,0x1c(sp)
jalr t9
_nop
(translation_unit "uint FUN_0036d7a8(uint param_1,byte *param_2,int param_3,int param_4)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint uVar8;\n  int iVar9;\n  undefined *puVar10;\n  \n  pbVar6 = (byte *)(param_1 & 0x70);\n  if (param_1 == 0xff) {\n    return 0;\n  }\n  if (pbVar6 == &DAT_00000020) {\n    return *(uint *)(param_2 + 0x300);\n  }\n  if (pbVar6 < &DAT_00000021) {\n    if (pbVar6 == (byte *)0x0) {\n      return 0;\n    }\n    if (pbVar6 == (byte *)0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }\n    if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }\n    if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }\n  }\n  puVar10 = PTR_abort_00436908;\n  (*(code *)PTR_abort_00436908)();\n  *(undefined4 *)(param_4 + 0x5e8) = 0;\n  if (param_2 <= pbVar6) {\n    return 0;\n  }\n  uVar8 = *(uint *)(param_4 + 0x5fc);\n  uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)));\n  if (uVar2 != 0) {\n    iVar9 = *(int *)(puVar10 + 0xc4a9c);\n    do {\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    } while (uVar2 != 0);\n  }\n  return uVar2;\n}\n\n" (function_definition "uint FUN_0036d7a8(uint param_1,byte *param_2,int param_3,int param_4)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint uVar8;\n  int iVar9;\n  undefined *puVar10;\n  \n  pbVar6 = (byte *)(param_1 & 0x70);\n  if (param_1 == 0xff) {\n    return 0;\n  }\n  if (pbVar6 == &DAT_00000020) {\n    return *(uint *)(param_2 + 0x300);\n  }\n  if (pbVar6 < &DAT_00000021) {\n    if (pbVar6 == (byte *)0x0) {\n      return 0;\n    }\n    if (pbVar6 == (byte *)0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }\n    if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }\n    if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }\n  }\n  puVar10 = PTR_abort_00436908;\n  (*(code *)PTR_abort_00436908)();\n  *(undefined4 *)(param_4 + 0x5e8) = 0;\n  if (param_2 <= pbVar6) {\n    return 0;\n  }\n  uVar8 = *(uint *)(param_4 + 0x5fc);\n  uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)));\n  if (uVar2 != 0) {\n    iVar9 = *(int *)(puVar10 + 0xc4a9c);\n    do {\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    } while (uVar2 != 0);\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0036d7a8(uint param_1,byte *param_2,int param_3,int param_4)" identifier (parameter_list "(uint param_1,byte *param_2,int param_3,int param_4)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint uVar8;\n  int iVar9;\n  undefined *puVar10;\n  \n  pbVar6 = (byte *)(param_1 & 0x70);\n  if (param_1 == 0xff) {\n    return 0;\n  }\n  if (pbVar6 == &DAT_00000020) {\n    return *(uint *)(param_2 + 0x300);\n  }\n  if (pbVar6 < &DAT_00000021) {\n    if (pbVar6 == (byte *)0x0) {\n      return 0;\n    }\n    if (pbVar6 == (byte *)0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }\n    if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }\n    if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }\n  }\n  puVar10 = PTR_abort_00436908;\n  (*(code *)PTR_abort_00436908)();\n  *(undefined4 *)(param_4 + 0x5e8) = 0;\n  if (param_2 <= pbVar6) {\n    return 0;\n  }\n  uVar8 = *(uint *)(param_4 + 0x5fc);\n  uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)));\n  if (uVar2 != 0) {\n    iVar9 = *(int *)(puVar10 + 0xc4a9c);\n    do {\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    } while (uVar2 != 0);\n  }\n  return uVar2;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (expression_statement "pbVar6 = (byte *)(param_1 & 0x70);" (assignment_expression "pbVar6 = (byte *)(param_1 & 0x70)" identifier = (cast_expression "(byte *)(param_1 & 0x70)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 & 0x70)" ( (binary_expression "param_1 & 0x70" identifier & number_literal) )))) ;) (if_statement "if (param_1 == 0xff) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 0xff)" ( (binary_expression "param_1 == 0xff" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (pbVar6 == &DAT_00000020) {\n    return *(uint *)(param_2 + 0x300);\n  }" if (parenthesized_expression "(pbVar6 == &DAT_00000020)" ( (binary_expression "pbVar6 == &DAT_00000020" identifier == (pointer_expression "&DAT_00000020" & identifier)) )) (compound_statement "{\n    return *(uint *)(param_2 + 0x300);\n  }" { (return_statement "return *(uint *)(param_2 + 0x300);" return (pointer_expression "*(uint *)(param_2 + 0x300)" * (cast_expression "(uint *)(param_2 + 0x300)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x300)" ( (binary_expression "param_2 + 0x300" identifier + number_literal) )))) ;) })) (if_statement "if (pbVar6 < &DAT_00000021) {\n    if (pbVar6 == (byte *)0x0) {\n      return 0;\n    }\n    if (pbVar6 == (byte *)0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }\n    if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }\n    if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }\n  }" if (parenthesized_expression "(pbVar6 < &DAT_00000021)" ( (binary_expression "pbVar6 < &DAT_00000021" identifier < (pointer_expression "&DAT_00000021" & identifier)) )) (compound_statement "{\n    if (pbVar6 == (byte *)0x0) {\n      return 0;\n    }\n    if (pbVar6 == (byte *)0x10) {\n      return 0;\n    }\n  }" { (if_statement "if (pbVar6 == (byte *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(pbVar6 == (byte *)0x0)" ( (binary_expression "pbVar6 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (pbVar6 == (byte *)0x10) {\n      return 0;\n    }" if (parenthesized_expression "(pbVar6 == (byte *)0x10)" ( (binary_expression "pbVar6 == (byte *)0x10" identifier == (cast_expression "(byte *)0x10" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }\n    if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }\n    if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }\n  }" else (compound_statement "{\n    if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }\n    if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }\n    if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }\n  }" { (if_statement "if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }" if (parenthesized_expression "(pbVar6 == &DAT_00000040)" ( (binary_expression "pbVar6 == &DAT_00000040" identifier == (pointer_expression "&DAT_00000040" & identifier)) )) (compound_statement "{\n      return *(uint *)(param_2 + 0x308);\n    }" { (return_statement "return *(uint *)(param_2 + 0x308);" return (pointer_expression "*(uint *)(param_2 + 0x308)" * (cast_expression "(uint *)(param_2 + 0x308)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x308)" ( (binary_expression "param_2 + 0x308" identifier + number_literal) )))) ;) })) (if_statement "if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }" if (parenthesized_expression "(pbVar6 == &DAT_00000050)" ( (binary_expression "pbVar6 == &DAT_00000050" identifier == (pointer_expression "&DAT_00000050" & identifier)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }" if (parenthesized_expression "(pbVar6 == &DAT_00000030)" ( (binary_expression "pbVar6 == &DAT_00000030" identifier == (pointer_expression "&DAT_00000030" & identifier)) )) (compound_statement "{\n      return *(uint *)(param_2 + 0x304);\n    }" { (return_statement "return *(uint *)(param_2 + 0x304);" return (pointer_expression "*(uint *)(param_2 + 0x304)" * (cast_expression "(uint *)(param_2 + 0x304)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x304)" ( (binary_expression "param_2 + 0x304" identifier + number_literal) )))) ;) })) }))) (expression_statement "puVar10 = PTR_abort_00436908;" (assignment_expression "puVar10 = PTR_abort_00436908" identifier = identifier) ;) (expression_statement "(*(code *)PTR_abort_00436908)();" (call_expression "(*(code *)PTR_abort_00436908)()" (parenthesized_expression "(*(code *)PTR_abort_00436908)" ( (pointer_expression "*(code *)PTR_abort_00436908" * (cast_expression "(code *)PTR_abort_00436908" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(param_4 + 0x5e8) = 0;" (assignment_expression "*(undefined4 *)(param_4 + 0x5e8) = 0" (pointer_expression "*(undefined4 *)(param_4 + 0x5e8)" * (cast_expression "(undefined4 *)(param_4 + 0x5e8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x5e8)" ( (binary_expression "param_4 + 0x5e8" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (param_2 <= pbVar6) {\n    return 0;\n  }" if (parenthesized_expression "(param_2 <= pbVar6)" ( (binary_expression "param_2 <= pbVar6" identifier <= identifier) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar8 = *(uint *)(param_4 + 0x5fc);" (assignment_expression "uVar8 = *(uint *)(param_4 + 0x5fc)" identifier = (pointer_expression "*(uint *)(param_4 + 0x5fc)" * (cast_expression "(uint *)(param_4 + 0x5fc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x5fc)" ( (binary_expression "param_4 + 0x5fc" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)));" (assignment_expression "uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)))" identifier = (call_expression "(uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)))" ( (binary_expression "uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))" identifier < (call_expression "(uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))" ( (binary_expression "*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)" (pointer_expression "*(int *)(param_3 + 0x2f8)" * (cast_expression "(int *)(param_3 + 0x2f8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2f8)" ( (binary_expression "param_3 + 0x2f8" identifier + number_literal) )))) - (parenthesized_expression "(*(int *)(param_3 + 0x30c) >> 0x1f)" ( (binary_expression "*(int *)(param_3 + 0x30c) >> 0x1f" (pointer_expression "*(int *)(param_3 + 0x30c)" * (cast_expression "(int *)(param_3 + 0x30c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x30c)" ( (binary_expression "param_3 + 0x30c" identifier + number_literal) )))) >> number_literal) ))) )))) )))) ;) (if_statement "if (uVar2 != 0) {\n    iVar9 = *(int *)(puVar10 + 0xc4a9c);\n    do {\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    } while (uVar2 != 0);\n  }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar9 = *(int *)(puVar10 + 0xc4a9c);\n    do {\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    } while (uVar2 != 0);\n  }" { (expression_statement "iVar9 = *(int *)(puVar10 + 0xc4a9c);" (assignment_expression "iVar9 = *(int *)(puVar10 + 0xc4a9c)" identifier = (pointer_expression "*(int *)(puVar10 + 0xc4a9c)" * (cast_expression "(int *)(puVar10 + 0xc4a9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 0xc4a9c)" ( (binary_expression "puVar10 + 0xc4a9c" identifier + number_literal) ))))) ;) (do_statement "do {\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    } while (uVar2 != 0);" do (compound_statement "{\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    }" { (expression_statement "uVar4 = (uint)*pbVar6;" (assignment_expression "uVar4 = (uint)*pbVar6" identifier = (binary_expression "(uint)*pbVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "uVar2 = uVar4 & 0xc0;" (assignment_expression "uVar2 = uVar4 & 0xc0" identifier = (binary_expression "uVar4 & 0xc0" identifier & number_literal)) ;) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (if_statement "if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }" if (parenthesized_expression "(uVar2 == 0x40)" ( (binary_expression "uVar2 == 0x40" identifier == number_literal) )) (compound_statement "{\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }" { (expression_statement "*(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;" (assignment_expression "*(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8" (pointer_expression "*(uint *)(param_4 + 0x5fc)" * (cast_expression "(uint *)(param_4 + 0x5fc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x5fc)" ( (binary_expression "param_4 + 0x5fc" identifier + number_literal) )))) = (binary_expression "(uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8" (binary_expression "(uVar4 & 0x3f) * *(int *)(param_4 + 0x608)" (parenthesized_expression "(uVar4 & 0x3f)" ( (binary_expression "uVar4 & 0x3f" identifier & number_literal) )) * (pointer_expression "*(int *)(param_4 + 0x608)" * (cast_expression "(int *)(param_4 + 0x608)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x608)" ( (binary_expression "param_4 + 0x608" identifier + number_literal) ))))) + identifier)) ;) }) (else_clause "else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }" else (if_statement "if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }" if (parenthesized_expression "(uVar2 == 0x80)" ( (binary_expression "uVar2 == 0x80" identifier == number_literal) )) (compound_statement "{\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "pbVar7 = pbVar6;" (assignment_expression "pbVar7 = pbVar6" identifier = identifier) ;) (do_statement "do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');" do (compound_statement "{\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        }" { (expression_statement "pbVar6 = pbVar7 + 1;" (assignment_expression "pbVar6 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = *pbVar7;" (assignment_expression "bVar1 = *pbVar7" identifier = (pointer_expression "*pbVar7" * identifier)) ;) (expression_statement "uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);" (assignment_expression "uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f)" identifier = (binary_expression "uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f)" identifier | (binary_expression "(bVar1 & 0x7f) << (uVar2 & 0x1f)" (parenthesized_expression "(bVar1 & 0x7f)" ( (binary_expression "bVar1 & 0x7f" identifier & number_literal) )) << (parenthesized_expression "(uVar2 & 0x1f)" ( (binary_expression "uVar2 & 0x1f" identifier & number_literal) ))))) ;) (expression_statement "uVar2 = uVar2 + 7;" (assignment_expression "uVar2 = uVar2 + 7" identifier = (binary_expression "uVar2 + 7" identifier + number_literal)) ;) (expression_statement "pbVar7 = pbVar6;" (assignment_expression "pbVar7 = pbVar6" identifier = identifier) ;) }) while (parenthesized_expression "((char)bVar1 < '\0')" ( (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "iVar3 = *(int *)(param_4 + 0x604);" (assignment_expression "iVar3 = *(int *)(param_4 + 0x604)" identifier = (pointer_expression "*(int *)(param_4 + 0x604)" * (cast_expression "(int *)(param_4 + 0x604)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x604)" ( (binary_expression "param_4 + 0x604" identifier + number_literal) ))))) ;) (expression_statement "piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);" (assignment_expression "piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8)" identifier = (cast_expression "(int *)(param_4 + (uVar4 & 0x3f) * 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + (uVar4 & 0x3f) * 8)" ( (binary_expression "param_4 + (uVar4 & 0x3f) * 8" identifier + (binary_expression "(uVar4 & 0x3f) * 8" (parenthesized_expression "(uVar4 & 0x3f)" ( (binary_expression "uVar4 & 0x3f" identifier & number_literal) )) * number_literal)) )))) ;) (expression_statement "piVar5[1] = 1;" (assignment_expression "piVar5[1] = 1" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*piVar5 = uVar8 * iVar3;" (assignment_expression "*piVar5 = uVar8 * iVar3" (pointer_expression "*piVar5" * identifier) = (binary_expression "uVar8 * iVar3" identifier * identifier)) ;) }) (else_clause "else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }" else (compound_statement "{\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }" { (if_statement "if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }" if (parenthesized_expression "(uVar2 != 0xc0)" ( (binary_expression "uVar2 != 0xc0" identifier != number_literal) )) (compound_statement "{\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }" { (if_statement "if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }" if (parenthesized_expression "(0x2f < uVar4)" ( (binary_expression "0x2f < uVar4" number_literal < identifier) )) (compound_statement "{\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }" { (expression_statement "uVar2 = (**(code **)(puVar10 + 0xc90b8))();" (assignment_expression "uVar2 = (**(code **)(puVar10 + 0xc90b8))()" identifier = (call_expression "(**(code **)(puVar10 + 0xc90b8))()" (parenthesized_expression "(**(code **)(puVar10 + 0xc90b8))" ( (pointer_expression "**(code **)(puVar10 + 0xc90b8)" * (pointer_expression "*(code **)(puVar10 + 0xc90b8)" * (cast_expression "(code **)(puVar10 + 0xc90b8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0xc90b8)" ( (binary_expression "puVar10 + 0xc90b8" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) comment comment (expression_statement "uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();" (assignment_expression "uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))()" identifier = (call_expression "(*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))()" (parenthesized_expression "(*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))" ( (pointer_expression "*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980)" * (cast_expression "(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980)" ( (binary_expression "puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980" (binary_expression "puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4)" identifier + (pointer_expression "*(int *)(iVar9 + -0x4cac + uVar4 * 4)" * (cast_expression "(int *)(iVar9 + -0x4cac + uVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + -0x4cac + uVar4 * 4)" ( (binary_expression "iVar9 + -0x4cac + uVar4 * 4" (binary_expression "iVar9 + -0x4cac" identifier + number_literal) + (binary_expression "uVar4 * 4" identifier * number_literal)) ))))) + number_literal) )))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "*(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0" (pointer_expression "*(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4)" * (cast_expression "(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + (uVar4 & 0x3f) * 8 + 4)" ( (binary_expression "param_4 + (uVar4 & 0x3f) * 8 + 4" (binary_expression "param_4 + (uVar4 & 0x3f) * 8" identifier + (binary_expression "(uVar4 & 0x3f) * 8" (parenthesized_expression "(uVar4 & 0x3f)" ( (binary_expression "uVar4 & 0x3f" identifier & number_literal) )) * number_literal)) + number_literal) )))) = number_literal) ;) }))))) (if_statement "if (param_2 <= pbVar6) {\n        return 0;\n      }" if (parenthesized_expression "(param_2 <= pbVar6)" ( (binary_expression "param_2 <= pbVar6" identifier <= identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar8 = *(uint *)(param_4 + 0x5fc);" (assignment_expression "uVar8 = *(uint *)(param_4 + 0x5fc)" identifier = (pointer_expression "*(uint *)(param_4 + 0x5fc)" * (cast_expression "(uint *)(param_4 + 0x5fc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x5fc)" ( (binary_expression "param_4 + 0x5fc" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );" (assignment_expression "uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    )" identifier = (call_expression "(uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    )" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    )" ( (binary_expression "uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))" identifier < (call_expression "(uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))" ( (binary_expression "*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)" (pointer_expression "*(int *)(param_3 + 0x2f8)" * (cast_expression "(int *)(param_3 + 0x2f8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2f8)" ( (binary_expression "param_3 + 0x2f8" identifier + number_literal) )))) - (parenthesized_expression "(*(int *)(param_3 + 0x30c) >> 0x1f)" ( (binary_expression "*(int *)(param_3 + 0x30c) >> 0x1f" (pointer_expression "*(int *)(param_3 + 0x30c)" * (cast_expression "(int *)(param_3 + 0x30c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x30c)" ( (binary_expression "param_3 + 0x30c" identifier + number_literal) )))) >> number_literal) ))) )))) )))) ;) }) while (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "uint base_of_encoded_value(uint param_1,byte *param_2,int param_3,int param_4)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint uVar8;\n  int iVar9;\n  undefined *puVar10;\n  \n  pbVar6 = (byte *)(param_1 & 0x70);\n  if (param_1 == 0xff) {\n    return 0;\n  }\n  if (pbVar6 == &DAT_00000020) {\n    return *(uint *)(param_2 + 0x300);\n  }\n  if (pbVar6 < &DAT_00000021) {\n    if (pbVar6 == (byte *)0x0) {\n      return 0;\n    }\n    if (pbVar6 == (byte *)0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }\n    if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }\n    if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }\n  }\n  puVar10 = PTR_abort_00436908;\n  (*(code *)PTR_abort_00436908)();\n  *(undefined4 *)(param_4 + 0x5e8) = 0;\n  if (param_2 <= pbVar6) {\n    return 0;\n  }\n  uVar8 = *(uint *)(param_4 + 0x5fc);\n  uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)));\n  if (uVar2 != 0) {\n    iVar9 = *(int *)(puVar10 + 0xc4a9c);\n    do {\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    } while (uVar2 != 0);\n  }\n  return uVar2;\n}\n\n" (function_definition "uint base_of_encoded_value(uint param_1,byte *param_2,int param_3,int param_4)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint uVar8;\n  int iVar9;\n  undefined *puVar10;\n  \n  pbVar6 = (byte *)(param_1 & 0x70);\n  if (param_1 == 0xff) {\n    return 0;\n  }\n  if (pbVar6 == &DAT_00000020) {\n    return *(uint *)(param_2 + 0x300);\n  }\n  if (pbVar6 < &DAT_00000021) {\n    if (pbVar6 == (byte *)0x0) {\n      return 0;\n    }\n    if (pbVar6 == (byte *)0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }\n    if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }\n    if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }\n  }\n  puVar10 = PTR_abort_00436908;\n  (*(code *)PTR_abort_00436908)();\n  *(undefined4 *)(param_4 + 0x5e8) = 0;\n  if (param_2 <= pbVar6) {\n    return 0;\n  }\n  uVar8 = *(uint *)(param_4 + 0x5fc);\n  uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)));\n  if (uVar2 != 0) {\n    iVar9 = *(int *)(puVar10 + 0xc4a9c);\n    do {\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    } while (uVar2 != 0);\n  }\n  return uVar2;\n}" type_identifier (function_declarator "base_of_encoded_value(uint param_1,byte *param_2,int param_3,int param_4)" identifier (parameter_list "(uint param_1,byte *param_2,int param_3,int param_4)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint uVar8;\n  int iVar9;\n  undefined *puVar10;\n  \n  pbVar6 = (byte *)(param_1 & 0x70);\n  if (param_1 == 0xff) {\n    return 0;\n  }\n  if (pbVar6 == &DAT_00000020) {\n    return *(uint *)(param_2 + 0x300);\n  }\n  if (pbVar6 < &DAT_00000021) {\n    if (pbVar6 == (byte *)0x0) {\n      return 0;\n    }\n    if (pbVar6 == (byte *)0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }\n    if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }\n    if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }\n  }\n  puVar10 = PTR_abort_00436908;\n  (*(code *)PTR_abort_00436908)();\n  *(undefined4 *)(param_4 + 0x5e8) = 0;\n  if (param_2 <= pbVar6) {\n    return 0;\n  }\n  uVar8 = *(uint *)(param_4 + 0x5fc);\n  uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)));\n  if (uVar2 != 0) {\n    iVar9 = *(int *)(puVar10 + 0xc4a9c);\n    do {\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    } while (uVar2 != 0);\n  }\n  return uVar2;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (expression_statement "pbVar6 = (byte *)(param_1 & 0x70);" (assignment_expression "pbVar6 = (byte *)(param_1 & 0x70)" identifier = (cast_expression "(byte *)(param_1 & 0x70)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 & 0x70)" ( (binary_expression "param_1 & 0x70" identifier & number_literal) )))) ;) (if_statement "if (param_1 == 0xff) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 0xff)" ( (binary_expression "param_1 == 0xff" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (pbVar6 == &DAT_00000020) {\n    return *(uint *)(param_2 + 0x300);\n  }" if (parenthesized_expression "(pbVar6 == &DAT_00000020)" ( (binary_expression "pbVar6 == &DAT_00000020" identifier == (pointer_expression "&DAT_00000020" & identifier)) )) (compound_statement "{\n    return *(uint *)(param_2 + 0x300);\n  }" { (return_statement "return *(uint *)(param_2 + 0x300);" return (pointer_expression "*(uint *)(param_2 + 0x300)" * (cast_expression "(uint *)(param_2 + 0x300)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x300)" ( (binary_expression "param_2 + 0x300" identifier + number_literal) )))) ;) })) (if_statement "if (pbVar6 < &DAT_00000021) {\n    if (pbVar6 == (byte *)0x0) {\n      return 0;\n    }\n    if (pbVar6 == (byte *)0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }\n    if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }\n    if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }\n  }" if (parenthesized_expression "(pbVar6 < &DAT_00000021)" ( (binary_expression "pbVar6 < &DAT_00000021" identifier < (pointer_expression "&DAT_00000021" & identifier)) )) (compound_statement "{\n    if (pbVar6 == (byte *)0x0) {\n      return 0;\n    }\n    if (pbVar6 == (byte *)0x10) {\n      return 0;\n    }\n  }" { (if_statement "if (pbVar6 == (byte *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(pbVar6 == (byte *)0x0)" ( (binary_expression "pbVar6 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (pbVar6 == (byte *)0x10) {\n      return 0;\n    }" if (parenthesized_expression "(pbVar6 == (byte *)0x10)" ( (binary_expression "pbVar6 == (byte *)0x10" identifier == (cast_expression "(byte *)0x10" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }\n    if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }\n    if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }\n  }" else (compound_statement "{\n    if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }\n    if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }\n    if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }\n  }" { (if_statement "if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }" if (parenthesized_expression "(pbVar6 == &DAT_00000040)" ( (binary_expression "pbVar6 == &DAT_00000040" identifier == (pointer_expression "&DAT_00000040" & identifier)) )) (compound_statement "{\n      return *(uint *)(param_2 + 0x308);\n    }" { (return_statement "return *(uint *)(param_2 + 0x308);" return (pointer_expression "*(uint *)(param_2 + 0x308)" * (cast_expression "(uint *)(param_2 + 0x308)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x308)" ( (binary_expression "param_2 + 0x308" identifier + number_literal) )))) ;) })) (if_statement "if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }" if (parenthesized_expression "(pbVar6 == &DAT_00000050)" ( (binary_expression "pbVar6 == &DAT_00000050" identifier == (pointer_expression "&DAT_00000050" & identifier)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }" if (parenthesized_expression "(pbVar6 == &DAT_00000030)" ( (binary_expression "pbVar6 == &DAT_00000030" identifier == (pointer_expression "&DAT_00000030" & identifier)) )) (compound_statement "{\n      return *(uint *)(param_2 + 0x304);\n    }" { (return_statement "return *(uint *)(param_2 + 0x304);" return (pointer_expression "*(uint *)(param_2 + 0x304)" * (cast_expression "(uint *)(param_2 + 0x304)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x304)" ( (binary_expression "param_2 + 0x304" identifier + number_literal) )))) ;) })) }))) (expression_statement "puVar10 = PTR_abort_00436908;" (assignment_expression "puVar10 = PTR_abort_00436908" identifier = identifier) ;) (expression_statement "(*(code *)PTR_abort_00436908)();" (call_expression "(*(code *)PTR_abort_00436908)()" (parenthesized_expression "(*(code *)PTR_abort_00436908)" ( (pointer_expression "*(code *)PTR_abort_00436908" * (cast_expression "(code *)PTR_abort_00436908" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(param_4 + 0x5e8) = 0;" (assignment_expression "*(undefined4 *)(param_4 + 0x5e8) = 0" (pointer_expression "*(undefined4 *)(param_4 + 0x5e8)" * (cast_expression "(undefined4 *)(param_4 + 0x5e8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x5e8)" ( (binary_expression "param_4 + 0x5e8" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (param_2 <= pbVar6) {\n    return 0;\n  }" if (parenthesized_expression "(param_2 <= pbVar6)" ( (binary_expression "param_2 <= pbVar6" identifier <= identifier) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar8 = *(uint *)(param_4 + 0x5fc);" (assignment_expression "uVar8 = *(uint *)(param_4 + 0x5fc)" identifier = (pointer_expression "*(uint *)(param_4 + 0x5fc)" * (cast_expression "(uint *)(param_4 + 0x5fc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x5fc)" ( (binary_expression "param_4 + 0x5fc" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)));" (assignment_expression "uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)))" identifier = (call_expression "(uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)))" ( (binary_expression "uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))" identifier < (call_expression "(uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))" ( (binary_expression "*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)" (pointer_expression "*(int *)(param_3 + 0x2f8)" * (cast_expression "(int *)(param_3 + 0x2f8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2f8)" ( (binary_expression "param_3 + 0x2f8" identifier + number_literal) )))) - (parenthesized_expression "(*(int *)(param_3 + 0x30c) >> 0x1f)" ( (binary_expression "*(int *)(param_3 + 0x30c) >> 0x1f" (pointer_expression "*(int *)(param_3 + 0x30c)" * (cast_expression "(int *)(param_3 + 0x30c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x30c)" ( (binary_expression "param_3 + 0x30c" identifier + number_literal) )))) >> number_literal) ))) )))) )))) ;) (if_statement "if (uVar2 != 0) {\n    iVar9 = *(int *)(puVar10 + 0xc4a9c);\n    do {\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    } while (uVar2 != 0);\n  }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar9 = *(int *)(puVar10 + 0xc4a9c);\n    do {\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    } while (uVar2 != 0);\n  }" { (expression_statement "iVar9 = *(int *)(puVar10 + 0xc4a9c);" (assignment_expression "iVar9 = *(int *)(puVar10 + 0xc4a9c)" identifier = (pointer_expression "*(int *)(puVar10 + 0xc4a9c)" * (cast_expression "(int *)(puVar10 + 0xc4a9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 0xc4a9c)" ( (binary_expression "puVar10 + 0xc4a9c" identifier + number_literal) ))))) ;) (do_statement "do {\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    } while (uVar2 != 0);" do (compound_statement "{\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    }" { (expression_statement "uVar4 = (uint)*pbVar6;" (assignment_expression "uVar4 = (uint)*pbVar6" identifier = (binary_expression "(uint)*pbVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "uVar2 = uVar4 & 0xc0;" (assignment_expression "uVar2 = uVar4 & 0xc0" identifier = (binary_expression "uVar4 & 0xc0" identifier & number_literal)) ;) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (if_statement "if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }" if (parenthesized_expression "(uVar2 == 0x40)" ( (binary_expression "uVar2 == 0x40" identifier == number_literal) )) (compound_statement "{\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }" { (expression_statement "*(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;" (assignment_expression "*(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8" (pointer_expression "*(uint *)(param_4 + 0x5fc)" * (cast_expression "(uint *)(param_4 + 0x5fc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x5fc)" ( (binary_expression "param_4 + 0x5fc" identifier + number_literal) )))) = (binary_expression "(uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8" (binary_expression "(uVar4 & 0x3f) * *(int *)(param_4 + 0x608)" (parenthesized_expression "(uVar4 & 0x3f)" ( (binary_expression "uVar4 & 0x3f" identifier & number_literal) )) * (pointer_expression "*(int *)(param_4 + 0x608)" * (cast_expression "(int *)(param_4 + 0x608)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x608)" ( (binary_expression "param_4 + 0x608" identifier + number_literal) ))))) + identifier)) ;) }) (else_clause "else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }" else (if_statement "if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }" if (parenthesized_expression "(uVar2 == 0x80)" ( (binary_expression "uVar2 == 0x80" identifier == number_literal) )) (compound_statement "{\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "pbVar7 = pbVar6;" (assignment_expression "pbVar7 = pbVar6" identifier = identifier) ;) (do_statement "do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');" do (compound_statement "{\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        }" { (expression_statement "pbVar6 = pbVar7 + 1;" (assignment_expression "pbVar6 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = *pbVar7;" (assignment_expression "bVar1 = *pbVar7" identifier = (pointer_expression "*pbVar7" * identifier)) ;) (expression_statement "uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);" (assignment_expression "uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f)" identifier = (binary_expression "uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f)" identifier | (binary_expression "(bVar1 & 0x7f) << (uVar2 & 0x1f)" (parenthesized_expression "(bVar1 & 0x7f)" ( (binary_expression "bVar1 & 0x7f" identifier & number_literal) )) << (parenthesized_expression "(uVar2 & 0x1f)" ( (binary_expression "uVar2 & 0x1f" identifier & number_literal) ))))) ;) (expression_statement "uVar2 = uVar2 + 7;" (assignment_expression "uVar2 = uVar2 + 7" identifier = (binary_expression "uVar2 + 7" identifier + number_literal)) ;) (expression_statement "pbVar7 = pbVar6;" (assignment_expression "pbVar7 = pbVar6" identifier = identifier) ;) }) while (parenthesized_expression "((char)bVar1 < '\0')" ( (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "iVar3 = *(int *)(param_4 + 0x604);" (assignment_expression "iVar3 = *(int *)(param_4 + 0x604)" identifier = (pointer_expression "*(int *)(param_4 + 0x604)" * (cast_expression "(int *)(param_4 + 0x604)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x604)" ( (binary_expression "param_4 + 0x604" identifier + number_literal) ))))) ;) (expression_statement "piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);" (assignment_expression "piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8)" identifier = (cast_expression "(int *)(param_4 + (uVar4 & 0x3f) * 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + (uVar4 & 0x3f) * 8)" ( (binary_expression "param_4 + (uVar4 & 0x3f) * 8" identifier + (binary_expression "(uVar4 & 0x3f) * 8" (parenthesized_expression "(uVar4 & 0x3f)" ( (binary_expression "uVar4 & 0x3f" identifier & number_literal) )) * number_literal)) )))) ;) (expression_statement "piVar5[1] = 1;" (assignment_expression "piVar5[1] = 1" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*piVar5 = uVar8 * iVar3;" (assignment_expression "*piVar5 = uVar8 * iVar3" (pointer_expression "*piVar5" * identifier) = (binary_expression "uVar8 * iVar3" identifier * identifier)) ;) }) (else_clause "else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }" else (compound_statement "{\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }" { (if_statement "if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }" if (parenthesized_expression "(uVar2 != 0xc0)" ( (binary_expression "uVar2 != 0xc0" identifier != number_literal) )) (compound_statement "{\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }" { (if_statement "if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }" if (parenthesized_expression "(0x2f < uVar4)" ( (binary_expression "0x2f < uVar4" number_literal < identifier) )) (compound_statement "{\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }" { (expression_statement "uVar2 = (**(code **)(puVar10 + 0xc90b8))();" (assignment_expression "uVar2 = (**(code **)(puVar10 + 0xc90b8))()" identifier = (call_expression "(**(code **)(puVar10 + 0xc90b8))()" (parenthesized_expression "(**(code **)(puVar10 + 0xc90b8))" ( (pointer_expression "**(code **)(puVar10 + 0xc90b8)" * (pointer_expression "*(code **)(puVar10 + 0xc90b8)" * (cast_expression "(code **)(puVar10 + 0xc90b8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0xc90b8)" ( (binary_expression "puVar10 + 0xc90b8" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) comment comment (expression_statement "uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();" (assignment_expression "uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))()" identifier = (call_expression "(*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))()" (parenthesized_expression "(*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))" ( (pointer_expression "*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980)" * (cast_expression "(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980)" ( (binary_expression "puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980" (binary_expression "puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4)" identifier + (pointer_expression "*(int *)(iVar9 + -0x4cac + uVar4 * 4)" * (cast_expression "(int *)(iVar9 + -0x4cac + uVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + -0x4cac + uVar4 * 4)" ( (binary_expression "iVar9 + -0x4cac + uVar4 * 4" (binary_expression "iVar9 + -0x4cac" identifier + number_literal) + (binary_expression "uVar4 * 4" identifier * number_literal)) ))))) + number_literal) )))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "*(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0" (pointer_expression "*(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4)" * (cast_expression "(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + (uVar4 & 0x3f) * 8 + 4)" ( (binary_expression "param_4 + (uVar4 & 0x3f) * 8 + 4" (binary_expression "param_4 + (uVar4 & 0x3f) * 8" identifier + (binary_expression "(uVar4 & 0x3f) * 8" (parenthesized_expression "(uVar4 & 0x3f)" ( (binary_expression "uVar4 & 0x3f" identifier & number_literal) )) * number_literal)) + number_literal) )))) = number_literal) ;) }))))) (if_statement "if (param_2 <= pbVar6) {\n        return 0;\n      }" if (parenthesized_expression "(param_2 <= pbVar6)" ( (binary_expression "param_2 <= pbVar6" identifier <= identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar8 = *(uint *)(param_4 + 0x5fc);" (assignment_expression "uVar8 = *(uint *)(param_4 + 0x5fc)" identifier = (pointer_expression "*(uint *)(param_4 + 0x5fc)" * (cast_expression "(uint *)(param_4 + 0x5fc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x5fc)" ( (binary_expression "param_4 + 0x5fc" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );" (assignment_expression "uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    )" identifier = (call_expression "(uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    )" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    )" ( (binary_expression "uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))" identifier < (call_expression "(uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))" ( (binary_expression "*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)" (pointer_expression "*(int *)(param_3 + 0x2f8)" * (cast_expression "(int *)(param_3 + 0x2f8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2f8)" ( (binary_expression "param_3 + 0x2f8" identifier + number_literal) )))) - (parenthesized_expression "(*(int *)(param_3 + 0x30c) >> 0x1f)" ( (binary_expression "*(int *)(param_3 + 0x30c) >> 0x1f" (pointer_expression "*(int *)(param_3 + 0x30c)" * (cast_expression "(int *)(param_3 + 0x30c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x30c)" ( (binary_expression "param_3 + 0x30c" identifier + number_literal) )))) >> number_literal) ))) )))) )))) ;) }) while (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "uint FUN_0036d7a8(uint param_1,byte *param_2,int param_3,int param_4)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint uVar8;\n  int iVar9;\n  undefined *puVar10;\n  \n  pbVar6 = (byte *)(param_1 & 0x70);\n  if (param_1 == 0xff) {\n    return 0;\n  }\n  if (pbVar6 == &DAT_00000020) {\n    return *(uint *)(param_2 + 0x300);\n  }\n  if (pbVar6 < &DAT_00000021) {\n    if (pbVar6 == (byte *)0x0) {\n      return 0;\n    }\n    if (pbVar6 == (byte *)0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }\n    if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }\n    if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }\n  }\n  puVar10 = PTR_abort_00436908;\n  (*(code *)PTR_abort_00436908)();\n  *(undefined4 *)(param_4 + 0x5e8) = 0;\n  if (param_2 <= pbVar6) {\n    return 0;\n  }\n  uVar8 = *(uint *)(param_4 + 0x5fc);\n  uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)));\n  if (uVar2 != 0) {\n    iVar9 = *(int *)(puVar10 + 0xc4a9c);\n    do {\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    } while (uVar2 != 0);\n  }\n  return uVar2;\n}\n\n" (function_definition "uint FUN_0036d7a8(uint param_1,byte *param_2,int param_3,int param_4)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint uVar8;\n  int iVar9;\n  undefined *puVar10;\n  \n  pbVar6 = (byte *)(param_1 & 0x70);\n  if (param_1 == 0xff) {\n    return 0;\n  }\n  if (pbVar6 == &DAT_00000020) {\n    return *(uint *)(param_2 + 0x300);\n  }\n  if (pbVar6 < &DAT_00000021) {\n    if (pbVar6 == (byte *)0x0) {\n      return 0;\n    }\n    if (pbVar6 == (byte *)0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }\n    if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }\n    if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }\n  }\n  puVar10 = PTR_abort_00436908;\n  (*(code *)PTR_abort_00436908)();\n  *(undefined4 *)(param_4 + 0x5e8) = 0;\n  if (param_2 <= pbVar6) {\n    return 0;\n  }\n  uVar8 = *(uint *)(param_4 + 0x5fc);\n  uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)));\n  if (uVar2 != 0) {\n    iVar9 = *(int *)(puVar10 + 0xc4a9c);\n    do {\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    } while (uVar2 != 0);\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0036d7a8(uint param_1,byte *param_2,int param_3,int param_4)" identifier (parameter_list "(uint param_1,byte *param_2,int param_3,int param_4)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "byte *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint uVar8;\n  int iVar9;\n  undefined *puVar10;\n  \n  pbVar6 = (byte *)(param_1 & 0x70);\n  if (param_1 == 0xff) {\n    return 0;\n  }\n  if (pbVar6 == &DAT_00000020) {\n    return *(uint *)(param_2 + 0x300);\n  }\n  if (pbVar6 < &DAT_00000021) {\n    if (pbVar6 == (byte *)0x0) {\n      return 0;\n    }\n    if (pbVar6 == (byte *)0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }\n    if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }\n    if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }\n  }\n  puVar10 = PTR_abort_00436908;\n  (*(code *)PTR_abort_00436908)();\n  *(undefined4 *)(param_4 + 0x5e8) = 0;\n  if (param_2 <= pbVar6) {\n    return 0;\n  }\n  uVar8 = *(uint *)(param_4 + 0x5fc);\n  uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)));\n  if (uVar2 != 0) {\n    iVar9 = *(int *)(puVar10 + 0xc4a9c);\n    do {\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    } while (uVar2 != 0);\n  }\n  return uVar2;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "undefined *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (expression_statement "pbVar6 = (byte *)(param_1 & 0x70);" (assignment_expression "pbVar6 = (byte *)(param_1 & 0x70)" identifier = (cast_expression "(byte *)(param_1 & 0x70)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 & 0x70)" ( (binary_expression "param_1 & 0x70" identifier & number_literal) )))) ;) (if_statement "if (param_1 == 0xff) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 0xff)" ( (binary_expression "param_1 == 0xff" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (pbVar6 == &DAT_00000020) {\n    return *(uint *)(param_2 + 0x300);\n  }" if (parenthesized_expression "(pbVar6 == &DAT_00000020)" ( (binary_expression "pbVar6 == &DAT_00000020" identifier == (pointer_expression "&DAT_00000020" & identifier)) )) (compound_statement "{\n    return *(uint *)(param_2 + 0x300);\n  }" { (return_statement "return *(uint *)(param_2 + 0x300);" return (pointer_expression "*(uint *)(param_2 + 0x300)" * (cast_expression "(uint *)(param_2 + 0x300)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x300)" ( (binary_expression "param_2 + 0x300" identifier + number_literal) )))) ;) })) (if_statement "if (pbVar6 < &DAT_00000021) {\n    if (pbVar6 == (byte *)0x0) {\n      return 0;\n    }\n    if (pbVar6 == (byte *)0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }\n    if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }\n    if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }\n  }" if (parenthesized_expression "(pbVar6 < &DAT_00000021)" ( (binary_expression "pbVar6 < &DAT_00000021" identifier < (pointer_expression "&DAT_00000021" & identifier)) )) (compound_statement "{\n    if (pbVar6 == (byte *)0x0) {\n      return 0;\n    }\n    if (pbVar6 == (byte *)0x10) {\n      return 0;\n    }\n  }" { (if_statement "if (pbVar6 == (byte *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(pbVar6 == (byte *)0x0)" ( (binary_expression "pbVar6 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (pbVar6 == (byte *)0x10) {\n      return 0;\n    }" if (parenthesized_expression "(pbVar6 == (byte *)0x10)" ( (binary_expression "pbVar6 == (byte *)0x10" identifier == (cast_expression "(byte *)0x10" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }\n    if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }\n    if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }\n  }" else (compound_statement "{\n    if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }\n    if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }\n    if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }\n  }" { (if_statement "if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }" if (parenthesized_expression "(pbVar6 == &DAT_00000040)" ( (binary_expression "pbVar6 == &DAT_00000040" identifier == (pointer_expression "&DAT_00000040" & identifier)) )) (compound_statement "{\n      return *(uint *)(param_2 + 0x308);\n    }" { (return_statement "return *(uint *)(param_2 + 0x308);" return (pointer_expression "*(uint *)(param_2 + 0x308)" * (cast_expression "(uint *)(param_2 + 0x308)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x308)" ( (binary_expression "param_2 + 0x308" identifier + number_literal) )))) ;) })) (if_statement "if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }" if (parenthesized_expression "(pbVar6 == &DAT_00000050)" ( (binary_expression "pbVar6 == &DAT_00000050" identifier == (pointer_expression "&DAT_00000050" & identifier)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }" if (parenthesized_expression "(pbVar6 == &DAT_00000030)" ( (binary_expression "pbVar6 == &DAT_00000030" identifier == (pointer_expression "&DAT_00000030" & identifier)) )) (compound_statement "{\n      return *(uint *)(param_2 + 0x304);\n    }" { (return_statement "return *(uint *)(param_2 + 0x304);" return (pointer_expression "*(uint *)(param_2 + 0x304)" * (cast_expression "(uint *)(param_2 + 0x304)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x304)" ( (binary_expression "param_2 + 0x304" identifier + number_literal) )))) ;) })) }))) (expression_statement "puVar10 = PTR_abort_00436908;" (assignment_expression "puVar10 = PTR_abort_00436908" identifier = identifier) ;) (expression_statement "(*(code *)PTR_abort_00436908)();" (call_expression "(*(code *)PTR_abort_00436908)()" (parenthesized_expression "(*(code *)PTR_abort_00436908)" ( (pointer_expression "*(code *)PTR_abort_00436908" * (cast_expression "(code *)PTR_abort_00436908" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(param_4 + 0x5e8) = 0;" (assignment_expression "*(undefined4 *)(param_4 + 0x5e8) = 0" (pointer_expression "*(undefined4 *)(param_4 + 0x5e8)" * (cast_expression "(undefined4 *)(param_4 + 0x5e8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x5e8)" ( (binary_expression "param_4 + 0x5e8" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (param_2 <= pbVar6) {\n    return 0;\n  }" if (parenthesized_expression "(param_2 <= pbVar6)" ( (binary_expression "param_2 <= pbVar6" identifier <= identifier) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar8 = *(uint *)(param_4 + 0x5fc);" (assignment_expression "uVar8 = *(uint *)(param_4 + 0x5fc)" identifier = (pointer_expression "*(uint *)(param_4 + 0x5fc)" * (cast_expression "(uint *)(param_4 + 0x5fc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x5fc)" ( (binary_expression "param_4 + 0x5fc" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)));" (assignment_expression "uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)))" identifier = (call_expression "(uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)))" ( (binary_expression "uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))" identifier < (call_expression "(uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))" ( (binary_expression "*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)" (pointer_expression "*(int *)(param_3 + 0x2f8)" * (cast_expression "(int *)(param_3 + 0x2f8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2f8)" ( (binary_expression "param_3 + 0x2f8" identifier + number_literal) )))) - (parenthesized_expression "(*(int *)(param_3 + 0x30c) >> 0x1f)" ( (binary_expression "*(int *)(param_3 + 0x30c) >> 0x1f" (pointer_expression "*(int *)(param_3 + 0x30c)" * (cast_expression "(int *)(param_3 + 0x30c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x30c)" ( (binary_expression "param_3 + 0x30c" identifier + number_literal) )))) >> number_literal) ))) )))) )))) ;) (if_statement "if (uVar2 != 0) {\n    iVar9 = *(int *)(puVar10 + 0xc4a9c);\n    do {\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    } while (uVar2 != 0);\n  }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar9 = *(int *)(puVar10 + 0xc4a9c);\n    do {\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    } while (uVar2 != 0);\n  }" { (expression_statement "iVar9 = *(int *)(puVar10 + 0xc4a9c);" (assignment_expression "iVar9 = *(int *)(puVar10 + 0xc4a9c)" identifier = (pointer_expression "*(int *)(puVar10 + 0xc4a9c)" * (cast_expression "(int *)(puVar10 + 0xc4a9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + 0xc4a9c)" ( (binary_expression "puVar10 + 0xc4a9c" identifier + number_literal) ))))) ;) (do_statement "do {\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    } while (uVar2 != 0);" do (compound_statement "{\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    }" { (expression_statement "uVar4 = (uint)*pbVar6;" (assignment_expression "uVar4 = (uint)*pbVar6" identifier = (binary_expression "(uint)*pbVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "uVar2 = uVar4 & 0xc0;" (assignment_expression "uVar2 = uVar4 & 0xc0" identifier = (binary_expression "uVar4 & 0xc0" identifier & number_literal)) ;) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) (if_statement "if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }" if (parenthesized_expression "(uVar2 == 0x40)" ( (binary_expression "uVar2 == 0x40" identifier == number_literal) )) (compound_statement "{\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }" { (expression_statement "*(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;" (assignment_expression "*(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8" (pointer_expression "*(uint *)(param_4 + 0x5fc)" * (cast_expression "(uint *)(param_4 + 0x5fc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x5fc)" ( (binary_expression "param_4 + 0x5fc" identifier + number_literal) )))) = (binary_expression "(uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8" (binary_expression "(uVar4 & 0x3f) * *(int *)(param_4 + 0x608)" (parenthesized_expression "(uVar4 & 0x3f)" ( (binary_expression "uVar4 & 0x3f" identifier & number_literal) )) * (pointer_expression "*(int *)(param_4 + 0x608)" * (cast_expression "(int *)(param_4 + 0x608)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x608)" ( (binary_expression "param_4 + 0x608" identifier + number_literal) ))))) + identifier)) ;) }) (else_clause "else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }" else (if_statement "if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }" if (parenthesized_expression "(uVar2 == 0x80)" ( (binary_expression "uVar2 == 0x80" identifier == number_literal) )) (compound_statement "{\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "pbVar7 = pbVar6;" (assignment_expression "pbVar7 = pbVar6" identifier = identifier) ;) (do_statement "do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');" do (compound_statement "{\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        }" { (expression_statement "pbVar6 = pbVar7 + 1;" (assignment_expression "pbVar6 = pbVar7 + 1" identifier = (binary_expression "pbVar7 + 1" identifier + number_literal)) ;) (expression_statement "bVar1 = *pbVar7;" (assignment_expression "bVar1 = *pbVar7" identifier = (pointer_expression "*pbVar7" * identifier)) ;) (expression_statement "uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);" (assignment_expression "uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f)" identifier = (binary_expression "uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f)" identifier | (binary_expression "(bVar1 & 0x7f) << (uVar2 & 0x1f)" (parenthesized_expression "(bVar1 & 0x7f)" ( (binary_expression "bVar1 & 0x7f" identifier & number_literal) )) << (parenthesized_expression "(uVar2 & 0x1f)" ( (binary_expression "uVar2 & 0x1f" identifier & number_literal) ))))) ;) (expression_statement "uVar2 = uVar2 + 7;" (assignment_expression "uVar2 = uVar2 + 7" identifier = (binary_expression "uVar2 + 7" identifier + number_literal)) ;) (expression_statement "pbVar7 = pbVar6;" (assignment_expression "pbVar7 = pbVar6" identifier = identifier) ;) }) while (parenthesized_expression "((char)bVar1 < '\0')" ( (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier) < (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "iVar3 = *(int *)(param_4 + 0x604);" (assignment_expression "iVar3 = *(int *)(param_4 + 0x604)" identifier = (pointer_expression "*(int *)(param_4 + 0x604)" * (cast_expression "(int *)(param_4 + 0x604)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x604)" ( (binary_expression "param_4 + 0x604" identifier + number_literal) ))))) ;) (expression_statement "piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);" (assignment_expression "piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8)" identifier = (cast_expression "(int *)(param_4 + (uVar4 & 0x3f) * 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + (uVar4 & 0x3f) * 8)" ( (binary_expression "param_4 + (uVar4 & 0x3f) * 8" identifier + (binary_expression "(uVar4 & 0x3f) * 8" (parenthesized_expression "(uVar4 & 0x3f)" ( (binary_expression "uVar4 & 0x3f" identifier & number_literal) )) * number_literal)) )))) ;) (expression_statement "piVar5[1] = 1;" (assignment_expression "piVar5[1] = 1" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*piVar5 = uVar8 * iVar3;" (assignment_expression "*piVar5 = uVar8 * iVar3" (pointer_expression "*piVar5" * identifier) = (binary_expression "uVar8 * iVar3" identifier * identifier)) ;) }) (else_clause "else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }" else (compound_statement "{\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }" { (if_statement "if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }" if (parenthesized_expression "(uVar2 != 0xc0)" ( (binary_expression "uVar2 != 0xc0" identifier != number_literal) )) (compound_statement "{\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }" { (if_statement "if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }" if (parenthesized_expression "(0x2f < uVar4)" ( (binary_expression "0x2f < uVar4" number_literal < identifier) )) (compound_statement "{\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }" { (expression_statement "uVar2 = (**(code **)(puVar10 + 0xc90b8))();" (assignment_expression "uVar2 = (**(code **)(puVar10 + 0xc90b8))()" identifier = (call_expression "(**(code **)(puVar10 + 0xc90b8))()" (parenthesized_expression "(**(code **)(puVar10 + 0xc90b8))" ( (pointer_expression "**(code **)(puVar10 + 0xc90b8)" * (pointer_expression "*(code **)(puVar10 + 0xc90b8)" * (cast_expression "(code **)(puVar10 + 0xc90b8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar10 + 0xc90b8)" ( (binary_expression "puVar10 + 0xc90b8" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();" (assignment_expression "uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))()" identifier = (call_expression "(*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))()" (parenthesized_expression "(*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))" ( (pointer_expression "*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980)" * (cast_expression "(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980)" ( (binary_expression "puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980" (binary_expression "puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4)" identifier + (pointer_expression "*(int *)(iVar9 + -0x4cac + uVar4 * 4)" * (cast_expression "(int *)(iVar9 + -0x4cac + uVar4 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + -0x4cac + uVar4 * 4)" ( (binary_expression "iVar9 + -0x4cac + uVar4 * 4" (binary_expression "iVar9 + -0x4cac" identifier + number_literal) + (binary_expression "uVar4 * 4" identifier * number_literal)) ))))) + number_literal) )))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "*(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0" (pointer_expression "*(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4)" * (cast_expression "(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + (uVar4 & 0x3f) * 8 + 4)" ( (binary_expression "param_4 + (uVar4 & 0x3f) * 8 + 4" (binary_expression "param_4 + (uVar4 & 0x3f) * 8" identifier + (binary_expression "(uVar4 & 0x3f) * 8" (parenthesized_expression "(uVar4 & 0x3f)" ( (binary_expression "uVar4 & 0x3f" identifier & number_literal) )) * number_literal)) + number_literal) )))) = number_literal) ;) }))))) (if_statement "if (param_2 <= pbVar6) {\n        return 0;\n      }" if (parenthesized_expression "(param_2 <= pbVar6)" ( (binary_expression "param_2 <= pbVar6" identifier <= identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar8 = *(uint *)(param_4 + 0x5fc);" (assignment_expression "uVar8 = *(uint *)(param_4 + 0x5fc)" identifier = (pointer_expression "*(uint *)(param_4 + 0x5fc)" * (cast_expression "(uint *)(param_4 + 0x5fc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x5fc)" ( (binary_expression "param_4 + 0x5fc" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );" (assignment_expression "uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    )" identifier = (call_expression "(uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    )" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    )" ( (binary_expression "uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))" identifier < (call_expression "(uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))" ( (binary_expression "*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)" (pointer_expression "*(int *)(param_3 + 0x2f8)" * (cast_expression "(int *)(param_3 + 0x2f8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x2f8)" ( (binary_expression "param_3 + 0x2f8" identifier + number_literal) )))) - (parenthesized_expression "(*(int *)(param_3 + 0x30c) >> 0x1f)" ( (binary_expression "*(int *)(param_3 + 0x30c) >> 0x1f" (pointer_expression "*(int *)(param_3 + 0x30c)" * (cast_expression "(int *)(param_3 + 0x30c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x30c)" ( (binary_expression "param_3 + 0x30c" identifier + number_literal) )))) >> number_literal) ))) )))) )))) ;) }) while (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT & LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression & IDENT)) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression & IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression & IDENT)) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression & IDENT)) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression & IDENT)) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) >> LIT) ))) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + IDENT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << (parenthesized_expression ( (binary_expression IDENT & LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (char_literal ' escape_sequence ')) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) * LIT)) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT * IDENT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) ))))) + LIT) )))) )) (argument_list ( )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) * LIT)) + LIT) )))) = LIT) ;) }))))) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) >> LIT) ))) )))) )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (return_statement return IDENT ;) })))
(function_definition "uint FUN_0036d7a8(uint param_1,byte *param_2,int param_3,int param_4)\n\n{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint uVar8;\n  int iVar9;\n  undefined *puVar10;\n  \n  pbVar6 = (byte *)(param_1 & 0x70);\n  if (param_1 == 0xff) {\n    return 0;\n  }\n  if (pbVar6 == &DAT_00000020) {\n    return *(uint *)(param_2 + 0x300);\n  }\n  if (pbVar6 < &DAT_00000021) {\n    if (pbVar6 == (byte *)0x0) {\n      return 0;\n    }\n    if (pbVar6 == (byte *)0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }\n    if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }\n    if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }\n  }\n  puVar10 = PTR_abort_00436908;\n  (*(code *)PTR_abort_00436908)();\n  *(undefined4 *)(param_4 + 0x5e8) = 0;\n  if (param_2 <= pbVar6) {\n    return 0;\n  }\n  uVar8 = *(uint *)(param_4 + 0x5fc);\n  uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)));\n  if (uVar2 != 0) {\n    iVar9 = *(int *)(puVar10 + 0xc4a9c);\n    do {\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    } while (uVar2 != 0);\n  }\n  return uVar2;\n}" (type_identifier "uint") (function_declarator "FUN_0036d7a8(uint param_1,byte *param_2,int param_3,int param_4)" (identifier "FUN_0036d7a8") (parameter_list "(uint param_1,byte *param_2,int param_3,int param_4)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "byte *param_2" (type_identifier "byte") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  int *piVar5;\n  byte *pbVar6;\n  byte *pbVar7;\n  uint uVar8;\n  int iVar9;\n  undefined *puVar10;\n  \n  pbVar6 = (byte *)(param_1 & 0x70);\n  if (param_1 == 0xff) {\n    return 0;\n  }\n  if (pbVar6 == &DAT_00000020) {\n    return *(uint *)(param_2 + 0x300);\n  }\n  if (pbVar6 < &DAT_00000021) {\n    if (pbVar6 == (byte *)0x0) {\n      return 0;\n    }\n    if (pbVar6 == (byte *)0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }\n    if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }\n    if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }\n  }\n  puVar10 = PTR_abort_00436908;\n  (*(code *)PTR_abort_00436908)();\n  *(undefined4 *)(param_4 + 0x5e8) = 0;\n  if (param_2 <= pbVar6) {\n    return 0;\n  }\n  uVar8 = *(uint *)(param_4 + 0x5fc);\n  uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)));\n  if (uVar2 != 0) {\n    iVar9 = *(int *)(puVar10 + 0xc4a9c);\n    do {\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    } while (uVar2 != 0);\n  }\n  return uVar2;\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (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 "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "byte *pbVar6;" (type_identifier "byte") (pointer_declarator "*pbVar6" (* "*") (identifier "pbVar6")) (; ";")) (declaration "byte *pbVar7;" (type_identifier "byte") (pointer_declarator "*pbVar7" (* "*") (identifier "pbVar7")) (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "undefined *puVar10;" (type_identifier "undefined") (pointer_declarator "*puVar10" (* "*") (identifier "puVar10")) (; ";")) (expression_statement "pbVar6 = (byte *)(param_1 & 0x70);" (assignment_expression "pbVar6 = (byte *)(param_1 & 0x70)" (identifier "pbVar6") (= "=") (cast_expression "(byte *)(param_1 & 0x70)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 & 0x70)" (( "(") (binary_expression "param_1 & 0x70" (identifier "param_1") (& "&") (number_literal "0x70")) () ")")))) (; ";")) (if_statement "if (param_1 == 0xff) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1 == 0xff)" (( "(") (binary_expression "param_1 == 0xff" (identifier "param_1") (== "==") (number_literal "0xff")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (pbVar6 == &DAT_00000020) {\n    return *(uint *)(param_2 + 0x300);\n  }" (if "if") (parenthesized_expression "(pbVar6 == &DAT_00000020)" (( "(") (binary_expression "pbVar6 == &DAT_00000020" (identifier "pbVar6") (== "==") (pointer_expression "&DAT_00000020" (& "&") (identifier "DAT_00000020"))) () ")")) (compound_statement "{\n    return *(uint *)(param_2 + 0x300);\n  }" ({ "{") (return_statement "return *(uint *)(param_2 + 0x300);" (return "return") (pointer_expression "*(uint *)(param_2 + 0x300)" (* "*") (cast_expression "(uint *)(param_2 + 0x300)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x300)" (( "(") (binary_expression "param_2 + 0x300" (identifier "param_2") (+ "+") (number_literal "0x300")) () ")")))) (; ";")) (} "}"))) (if_statement "if (pbVar6 < &DAT_00000021) {\n    if (pbVar6 == (byte *)0x0) {\n      return 0;\n    }\n    if (pbVar6 == (byte *)0x10) {\n      return 0;\n    }\n  }\n  else {\n    if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }\n    if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }\n    if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }\n  }" (if "if") (parenthesized_expression "(pbVar6 < &DAT_00000021)" (( "(") (binary_expression "pbVar6 < &DAT_00000021" (identifier "pbVar6") (< "<") (pointer_expression "&DAT_00000021" (& "&") (identifier "DAT_00000021"))) () ")")) (compound_statement "{\n    if (pbVar6 == (byte *)0x0) {\n      return 0;\n    }\n    if (pbVar6 == (byte *)0x10) {\n      return 0;\n    }\n  }" ({ "{") (if_statement "if (pbVar6 == (byte *)0x0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(pbVar6 == (byte *)0x0)" (( "(") (binary_expression "pbVar6 == (byte *)0x0" (identifier "pbVar6") (== "==") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (pbVar6 == (byte *)0x10) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(pbVar6 == (byte *)0x10)" (( "(") (binary_expression "pbVar6 == (byte *)0x10" (identifier "pbVar6") (== "==") (cast_expression "(byte *)0x10" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x10"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }\n    if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }\n    if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }\n  }" (else "else") (compound_statement "{\n    if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }\n    if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }\n    if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }\n  }" ({ "{") (if_statement "if (pbVar6 == &DAT_00000040) {\n      return *(uint *)(param_2 + 0x308);\n    }" (if "if") (parenthesized_expression "(pbVar6 == &DAT_00000040)" (( "(") (binary_expression "pbVar6 == &DAT_00000040" (identifier "pbVar6") (== "==") (pointer_expression "&DAT_00000040" (& "&") (identifier "DAT_00000040"))) () ")")) (compound_statement "{\n      return *(uint *)(param_2 + 0x308);\n    }" ({ "{") (return_statement "return *(uint *)(param_2 + 0x308);" (return "return") (pointer_expression "*(uint *)(param_2 + 0x308)" (* "*") (cast_expression "(uint *)(param_2 + 0x308)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x308)" (( "(") (binary_expression "param_2 + 0x308" (identifier "param_2") (+ "+") (number_literal "0x308")) () ")")))) (; ";")) (} "}"))) (if_statement "if (pbVar6 == &DAT_00000050) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(pbVar6 == &DAT_00000050)" (( "(") (binary_expression "pbVar6 == &DAT_00000050" (identifier "pbVar6") (== "==") (pointer_expression "&DAT_00000050" (& "&") (identifier "DAT_00000050"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (pbVar6 == &DAT_00000030) {\n      return *(uint *)(param_2 + 0x304);\n    }" (if "if") (parenthesized_expression "(pbVar6 == &DAT_00000030)" (( "(") (binary_expression "pbVar6 == &DAT_00000030" (identifier "pbVar6") (== "==") (pointer_expression "&DAT_00000030" (& "&") (identifier "DAT_00000030"))) () ")")) (compound_statement "{\n      return *(uint *)(param_2 + 0x304);\n    }" ({ "{") (return_statement "return *(uint *)(param_2 + 0x304);" (return "return") (pointer_expression "*(uint *)(param_2 + 0x304)" (* "*") (cast_expression "(uint *)(param_2 + 0x304)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x304)" (( "(") (binary_expression "param_2 + 0x304" (identifier "param_2") (+ "+") (number_literal "0x304")) () ")")))) (; ";")) (} "}"))) (} "}")))) (expression_statement "puVar10 = PTR_abort_00436908;" (assignment_expression "puVar10 = PTR_abort_00436908" (identifier "puVar10") (= "=") (identifier "PTR_abort_00436908")) (; ";")) (expression_statement "(*(code *)PTR_abort_00436908)();" (call_expression "(*(code *)PTR_abort_00436908)()" (parenthesized_expression "(*(code *)PTR_abort_00436908)" (( "(") (pointer_expression "*(code *)PTR_abort_00436908" (* "*") (cast_expression "(code *)PTR_abort_00436908" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_abort_00436908"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_4 + 0x5e8) = 0;" (assignment_expression "*(undefined4 *)(param_4 + 0x5e8) = 0" (pointer_expression "*(undefined4 *)(param_4 + 0x5e8)" (* "*") (cast_expression "(undefined4 *)(param_4 + 0x5e8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0x5e8)" (( "(") (binary_expression "param_4 + 0x5e8" (identifier "param_4") (+ "+") (number_literal "0x5e8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_2 <= pbVar6) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_2 <= pbVar6)" (( "(") (binary_expression "param_2 <= pbVar6" (identifier "param_2") (<= "<=") (identifier "pbVar6")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar8 = *(uint *)(param_4 + 0x5fc);" (assignment_expression "uVar8 = *(uint *)(param_4 + 0x5fc)" (identifier "uVar8") (= "=") (pointer_expression "*(uint *)(param_4 + 0x5fc)" (* "*") (cast_expression "(uint *)(param_4 + 0x5fc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0x5fc)" (( "(") (binary_expression "param_4 + 0x5fc" (identifier "param_4") (+ "+") (number_literal "0x5fc")) () ")"))))) (; ";")) (expression_statement "uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)));" (assignment_expression "uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)))" (identifier "uVar2") (= "=") (call_expression "(uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)))" (( "(") (binary_expression "uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))" (identifier "uVar8") (< "<") (call_expression "(uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))" (( "(") (binary_expression "*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)" (pointer_expression "*(int *)(param_3 + 0x2f8)" (* "*") (cast_expression "(int *)(param_3 + 0x2f8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x2f8)" (( "(") (binary_expression "param_3 + 0x2f8" (identifier "param_3") (+ "+") (number_literal "0x2f8")) () ")")))) (- "-") (parenthesized_expression "(*(int *)(param_3 + 0x30c) >> 0x1f)" (( "(") (binary_expression "*(int *)(param_3 + 0x30c) >> 0x1f" (pointer_expression "*(int *)(param_3 + 0x30c)" (* "*") (cast_expression "(int *)(param_3 + 0x30c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x30c)" (( "(") (binary_expression "param_3 + 0x30c" (identifier "param_3") (+ "+") (number_literal "0x30c")) () ")")))) (>> ">>") (number_literal "0x1f")) () ")"))) () ")")))) () ")")))) (; ";")) (if_statement "if (uVar2 != 0) {\n    iVar9 = *(int *)(puVar10 + 0xc4a9c);\n    do {\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    } while (uVar2 != 0);\n  }" (if "if") (parenthesized_expression "(uVar2 != 0)" (( "(") (binary_expression "uVar2 != 0" (identifier "uVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar9 = *(int *)(puVar10 + 0xc4a9c);\n    do {\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    } while (uVar2 != 0);\n  }" ({ "{") (expression_statement "iVar9 = *(int *)(puVar10 + 0xc4a9c);" (assignment_expression "iVar9 = *(int *)(puVar10 + 0xc4a9c)" (identifier "iVar9") (= "=") (pointer_expression "*(int *)(puVar10 + 0xc4a9c)" (* "*") (cast_expression "(int *)(puVar10 + 0xc4a9c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar10 + 0xc4a9c)" (( "(") (binary_expression "puVar10 + 0xc4a9c" (identifier "puVar10") (+ "+") (number_literal "0xc4a9c")) () ")"))))) (; ";")) (do_statement "do {\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    } while (uVar2 != 0);" (do "do") (compound_statement "{\n      uVar4 = (uint)*pbVar6;\n      uVar2 = uVar4 & 0xc0;\n      pbVar6 = pbVar6 + 1;\n      if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }\n      if (param_2 <= pbVar6) {\n        return 0;\n      }\n      uVar8 = *(uint *)(param_4 + 0x5fc);\n      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );\n    }" ({ "{") (expression_statement "uVar4 = (uint)*pbVar6;" (assignment_expression "uVar4 = (uint)*pbVar6" (identifier "uVar4") (= "=") (binary_expression "(uint)*pbVar6" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar6"))) (; ";")) (expression_statement "uVar2 = uVar4 & 0xc0;" (assignment_expression "uVar2 = uVar4 & 0xc0" (identifier "uVar2") (= "=") (binary_expression "uVar4 & 0xc0" (identifier "uVar4") (& "&") (number_literal "0xc0"))) (; ";")) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" (identifier "pbVar6") (= "=") (binary_expression "pbVar6 + 1" (identifier "pbVar6") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (uVar2 == 0x40) {\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }\n      else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }" (if "if") (parenthesized_expression "(uVar2 == 0x40)" (( "(") (binary_expression "uVar2 == 0x40" (identifier "uVar2") (== "==") (number_literal "0x40")) () ")")) (compound_statement "{\n        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;\n      }" ({ "{") (expression_statement "*(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;" (assignment_expression "*(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8" (pointer_expression "*(uint *)(param_4 + 0x5fc)" (* "*") (cast_expression "(uint *)(param_4 + 0x5fc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0x5fc)" (( "(") (binary_expression "param_4 + 0x5fc" (identifier "param_4") (+ "+") (number_literal "0x5fc")) () ")")))) (= "=") (binary_expression "(uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8" (binary_expression "(uVar4 & 0x3f) * *(int *)(param_4 + 0x608)" (parenthesized_expression "(uVar4 & 0x3f)" (( "(") (binary_expression "uVar4 & 0x3f" (identifier "uVar4") (& "&") (number_literal "0x3f")) () ")")) (* "*") (pointer_expression "*(int *)(param_4 + 0x608)" (* "*") (cast_expression "(int *)(param_4 + 0x608)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0x608)" (( "(") (binary_expression "param_4 + 0x608" (identifier "param_4") (+ "+") (number_literal "0x608")) () ")"))))) (+ "+") (identifier "uVar8"))) (; ";")) (} "}")) (else_clause "else if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }" (else "else") (if_statement "if (uVar2 == 0x80) {\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }\n      else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }" (if "if") (parenthesized_expression "(uVar2 == 0x80)" (( "(") (binary_expression "uVar2 == 0x80" (identifier "uVar2") (== "==") (number_literal "0x80")) () ")")) (compound_statement "{\n        uVar8 = 0;\n        uVar2 = 0;\n        pbVar7 = pbVar6;\n        do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');\n        iVar3 = *(int *)(param_4 + 0x604);\n        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);\n        piVar5[1] = 1;\n        *piVar5 = uVar8 * iVar3;\n      }" ({ "{") (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" (identifier "uVar8") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar7 = pbVar6;" (assignment_expression "pbVar7 = pbVar6" (identifier "pbVar7") (= "=") (identifier "pbVar6")) (; ";")) (do_statement "do {\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        } while ((char)bVar1 < '\0');" (do "do") (compound_statement "{\n          pbVar6 = pbVar7 + 1;\n          bVar1 = *pbVar7;\n          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);\n          uVar2 = uVar2 + 7;\n          pbVar7 = pbVar6;\n        }" ({ "{") (expression_statement "pbVar6 = pbVar7 + 1;" (assignment_expression "pbVar6 = pbVar7 + 1" (identifier "pbVar6") (= "=") (binary_expression "pbVar7 + 1" (identifier "pbVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "bVar1 = *pbVar7;" (assignment_expression "bVar1 = *pbVar7" (identifier "bVar1") (= "=") (pointer_expression "*pbVar7" (* "*") (identifier "pbVar7"))) (; ";")) (expression_statement "uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);" (assignment_expression "uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f)" (identifier "uVar8") (= "=") (binary_expression "uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f)" (identifier "uVar8") (| "|") (binary_expression "(bVar1 & 0x7f) << (uVar2 & 0x1f)" (parenthesized_expression "(bVar1 & 0x7f)" (( "(") (binary_expression "bVar1 & 0x7f" (identifier "bVar1") (& "&") (number_literal "0x7f")) () ")")) (<< "<<") (parenthesized_expression "(uVar2 & 0x1f)" (( "(") (binary_expression "uVar2 & 0x1f" (identifier "uVar2") (& "&") (number_literal "0x1f")) () ")"))))) (; ";")) (expression_statement "uVar2 = uVar2 + 7;" (assignment_expression "uVar2 = uVar2 + 7" (identifier "uVar2") (= "=") (binary_expression "uVar2 + 7" (identifier "uVar2") (+ "+") (number_literal "7"))) (; ";")) (expression_statement "pbVar7 = pbVar6;" (assignment_expression "pbVar7 = pbVar6" (identifier "pbVar7") (= "=") (identifier "pbVar6")) (; ";")) (} "}")) (while "while") (parenthesized_expression "((char)bVar1 < '\0')" (( "(") (binary_expression "(char)bVar1 < '\0'" (cast_expression "(char)bVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "bVar1")) (< "<") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "iVar3 = *(int *)(param_4 + 0x604);" (assignment_expression "iVar3 = *(int *)(param_4 + 0x604)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_4 + 0x604)" (* "*") (cast_expression "(int *)(param_4 + 0x604)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0x604)" (( "(") (binary_expression "param_4 + 0x604" (identifier "param_4") (+ "+") (number_literal "0x604")) () ")"))))) (; ";")) (expression_statement "piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);" (assignment_expression "piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8)" (identifier "piVar5") (= "=") (cast_expression "(int *)(param_4 + (uVar4 & 0x3f) * 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + (uVar4 & 0x3f) * 8)" (( "(") (binary_expression "param_4 + (uVar4 & 0x3f) * 8" (identifier "param_4") (+ "+") (binary_expression "(uVar4 & 0x3f) * 8" (parenthesized_expression "(uVar4 & 0x3f)" (( "(") (binary_expression "uVar4 & 0x3f" (identifier "uVar4") (& "&") (number_literal "0x3f")) () ")")) (* "*") (number_literal "8"))) () ")")))) (; ";")) (expression_statement "piVar5[1] = 1;" (assignment_expression "piVar5[1] = 1" (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "*piVar5 = uVar8 * iVar3;" (assignment_expression "*piVar5 = uVar8 * iVar3" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (binary_expression "uVar8 * iVar3" (identifier "uVar8") (* "*") (identifier "iVar3"))) (; ";")) (} "}")) (else_clause "else {\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }" (else "else") (compound_statement "{\n        if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }\n        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;\n      }" ({ "{") (if_statement "if (uVar2 != 0xc0) {\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }" (if "if") (parenthesized_expression "(uVar2 != 0xc0)" (( "(") (binary_expression "uVar2 != 0xc0" (identifier "uVar2") (!= "!=") (number_literal "0xc0")) () ")")) (compound_statement "{\n          if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }\n                    \n                    \n          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();\n          return uVar2;\n        }" ({ "{") (if_statement "if (0x2f < uVar4) {\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }" (if "if") (parenthesized_expression "(0x2f < uVar4)" (( "(") (binary_expression "0x2f < uVar4" (number_literal "0x2f") (< "<") (identifier "uVar4")) () ")")) (compound_statement "{\n            uVar2 = (**(code **)(puVar10 + 0xc90b8))();\n            return uVar2;\n          }" ({ "{") (expression_statement "uVar2 = (**(code **)(puVar10 + 0xc90b8))();" (assignment_expression "uVar2 = (**(code **)(puVar10 + 0xc90b8))()" (identifier "uVar2") (= "=") (call_expression "(**(code **)(puVar10 + 0xc90b8))()" (parenthesized_expression "(**(code **)(puVar10 + 0xc90b8))" (( "(") (pointer_expression "**(code **)(puVar10 + 0xc90b8)" (* "*") (pointer_expression "*(code **)(puVar10 + 0xc90b8)" (* "*") (cast_expression "(code **)(puVar10 + 0xc90b8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar10 + 0xc90b8)" (( "(") (binary_expression "puVar10 + 0xc90b8" (identifier "puVar10") (+ "+") (number_literal "0xc90b8")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();" (assignment_expression "uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))()" (identifier "uVar2") (= "=") (call_expression "(*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))()" (parenthesized_expression "(*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))" (( "(") (pointer_expression "*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980)" (* "*") (cast_expression "(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980)" (( "(") (binary_expression "puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980" (binary_expression "puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4)" (identifier "puVar10") (+ "+") (pointer_expression "*(int *)(iVar9 + -0x4cac + uVar4 * 4)" (* "*") (cast_expression "(int *)(iVar9 + -0x4cac + uVar4 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + -0x4cac + uVar4 * 4)" (( "(") (binary_expression "iVar9 + -0x4cac + uVar4 * 4" (binary_expression "iVar9 + -0x4cac" (identifier "iVar9") (+ "+") (number_literal "-0x4cac")) (+ "+") (binary_expression "uVar4 * 4" (identifier "uVar4") (* "*") (number_literal "4"))) () ")"))))) (+ "+") (number_literal "0xcc980")) () ")")))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;" (assignment_expression "*(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0" (pointer_expression "*(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4)" (* "*") (cast_expression "(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + (uVar4 & 0x3f) * 8 + 4)" (( "(") (binary_expression "param_4 + (uVar4 & 0x3f) * 8 + 4" (binary_expression "param_4 + (uVar4 & 0x3f) * 8" (identifier "param_4") (+ "+") (binary_expression "(uVar4 & 0x3f) * 8" (parenthesized_expression "(uVar4 & 0x3f)" (( "(") (binary_expression "uVar4 & 0x3f" (identifier "uVar4") (& "&") (number_literal "0x3f")) () ")")) (* "*") (number_literal "8"))) (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")))))) (if_statement "if (param_2 <= pbVar6) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(param_2 <= pbVar6)" (( "(") (binary_expression "param_2 <= pbVar6" (identifier "param_2") (<= "<=") (identifier "pbVar6")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar8 = *(uint *)(param_4 + 0x5fc);" (assignment_expression "uVar8 = *(uint *)(param_4 + 0x5fc)" (identifier "uVar8") (= "=") (pointer_expression "*(uint *)(param_4 + 0x5fc)" (* "*") (cast_expression "(uint *)(param_4 + 0x5fc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0x5fc)" (( "(") (binary_expression "param_4 + 0x5fc" (identifier "param_4") (+ "+") (number_literal "0x5fc")) () ")"))))) (; ";")) (expression_statement "uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    );" (assignment_expression "uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    )" (identifier "uVar2") (= "=") (call_expression "(uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    )" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))\n                    )" (( "(") (binary_expression "uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))" (identifier "uVar8") (< "<") (call_expression "(uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))" (( "(") (binary_expression "*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)" (pointer_expression "*(int *)(param_3 + 0x2f8)" (* "*") (cast_expression "(int *)(param_3 + 0x2f8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x2f8)" (( "(") (binary_expression "param_3 + 0x2f8" (identifier "param_3") (+ "+") (number_literal "0x2f8")) () ")")))) (- "-") (parenthesized_expression "(*(int *)(param_3 + 0x30c) >> 0x1f)" (( "(") (binary_expression "*(int *)(param_3 + 0x30c) >> 0x1f" (pointer_expression "*(int *)(param_3 + 0x30c)" (* "*") (cast_expression "(int *)(param_3 + 0x30c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x30c)" (( "(") (binary_expression "param_3 + 0x30c" (identifier "param_3") (+ "+") (number_literal "0x30c")) () ")")))) (>> ">>") (number_literal "0x1f")) () ")"))) () ")")))) () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar2 != 0)" (( "(") (binary_expression "uVar2 != 0" (identifier "uVar2") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (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 (return_statement (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 (return_statement (number_literal))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (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))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) 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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (identifier))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (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: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (char_literal (escape_sequence))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (identifier))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list)))) (return_statement (identifier)))) (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: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))))) right: (number_literal)))))) arguments: (argument_list)))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (number_literal))))) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))))))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

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

{
  byte bVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  int *piVar5;
  byte *pbVar6;
  byte *pbVar7;
  uint uVar8;
  int iVar9;
  undefined *puVar10;
  
  pbVar6 = (byte *)(param_1 & 0x70);
  if (param_1 == 0xff) {
    return 0;
  }
  if (pbVar6 == &DAT_00000020) {
    return *(uint *)(param_2 + 0x300);
  }
  if (pbVar6 < &DAT_00000021) {
    if (pbVar6 == (byte *)0x0) {
      return 0;
    }
    if (pbVar6 == (byte *)0x10) {
      return 0;
    }
  }
  else {
    if (pbVar6 == &DAT_00000040) {
      return *(uint *)(param_2 + 0x308);
    }
    if (pbVar6 == &DAT_00000050) {
      return 0;
    }
    if (pbVar6 == &DAT_00000030) {
      return *(uint *)(param_2 + 0x304);
    }
  }
  puVar10 = PTR_abort_00436908;
  (*(code *)PTR_abort_00436908)();
  *(undefined4 *)(param_4 + 0x5e8) = 0;
  if (param_2 <= pbVar6) {
    return 0;
  }
  uVar8 = *(uint *)(param_4 + 0x5fc);
  uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f)));
  if (uVar2 != 0) {
    iVar9 = *(int *)(puVar10 + 0xc4a9c);
    do {
      uVar4 = (uint)*pbVar6;
      uVar2 = uVar4 & 0xc0;
      pbVar6 = pbVar6 + 1;
      if (uVar2 == 0x40) {
        *(uint *)(param_4 + 0x5fc) = (uVar4 & 0x3f) * *(int *)(param_4 + 0x608) + uVar8;
      }
      else if (uVar2 == 0x80) {
        uVar8 = 0;
        uVar2 = 0;
        pbVar7 = pbVar6;
        do {
          pbVar6 = pbVar7 + 1;
          bVar1 = *pbVar7;
          uVar8 = uVar8 | (bVar1 & 0x7f) << (uVar2 & 0x1f);
          uVar2 = uVar2 + 7;
          pbVar7 = pbVar6;
        } while ((char)bVar1 < '\0');
        iVar3 = *(int *)(param_4 + 0x604);
        piVar5 = (int *)(param_4 + (uVar4 & 0x3f) * 8);
        piVar5[1] = 1;
        *piVar5 = uVar8 * iVar3;
      }
      else {
        if (uVar2 != 0xc0) {
          if (0x2f < uVar4) {
            uVar2 = (**(code **)(puVar10 + 0xc90b8))();
            return uVar2;
          }
                    /* WARNING: Could not recover jumptable at 0x0036d918. Too many branches */
                    /* WARNING: Treating indirect jump as call */
          uVar2 = (*(code *)(puVar10 + *(int *)(iVar9 + -0x4cac + uVar4 * 4) + 0xcc980))();
          return uVar2;
        }
        *(undefined4 *)(param_4 + (uVar4 & 0x3f) * 8 + 4) = 0;
      }
      if (param_2 <= pbVar6) {
        return 0;
      }
      uVar8 = *(uint *)(param_4 + 0x5fc);
      uVar2 = (uint)(uVar8 < (uint)(*(int *)(param_3 + 0x2f8) - (*(int *)(param_3 + 0x30c) >> 0x1f))
                    );
    } while (uVar2 != 0);
  }
  return uVar2;
}

