
void goto_lineno(int target)

{
  bool bVar1;
  uint uVar2;
  int *piVar3;
  uint uVar4;
  int iVar5;
  uint *puVar6;
  
  puVar6 = *(uint **)PTR_ptr_to_globals_0012a304;
  if (target < 1) {
    *puVar6 = 0;
  }
  else {
    uVar2 = *puVar6;
    uVar4 = puVar6[0xe];
    piVar3 = (int *)(uVar4 + uVar2 * 4);
    if (*(uint *)(*piVar3 + -4) < (uint)target) {
      do {
        bVar1 = uVar2 < puVar6[5];
        uVar2 = uVar2 + 1;
        if (bVar1) {
          *puVar6 = uVar2;
        }
        else {
          if ((int)puVar6[10] < 1) {
            return;
          }
          read_lines();
          uVar2 = *puVar6;
          uVar4 = puVar6[0xe];
        }
      } while (target != *(int *)(*(int *)(uVar4 + uVar2 * 4) + -4));
      return;
    }
    if ((*(uint *)(*piVar3 + -4) != target) && (0 < (int)uVar2)) {
      iVar5 = piVar3[-1];
      uVar2 = uVar2 - 1;
      *puVar6 = uVar2;
      iVar5 = *(int *)(iVar5 + -4);
      while ((target != iVar5 && (uVar2 != 0))) {
        iVar5 = piVar3[-2];
        uVar2 = uVar2 - 1;
        *puVar6 = uVar2;
        iVar5 = *(int *)(iVar5 + -4);
        piVar3 = piVar3 + -1;
      }
    }
  }
  return;
}



void FUN_000307bc(uint param_1)

{
  bool bVar1;
  uint uVar2;
  int *piVar3;
  uint uVar4;
  int iVar5;
  uint *puVar6;
  
  puVar6 = *(uint **)PTR_DAT_0012a304;
  if ((int)param_1 < 1) {
    *puVar6 = 0;
  }
  else {
    uVar2 = *puVar6;
    uVar4 = puVar6[0xe];
    piVar3 = (int *)(uVar4 + uVar2 * 4);
    if (*(uint *)(*piVar3 + -4) < param_1) {
      do {
        bVar1 = uVar2 < puVar6[5];
        uVar2 = uVar2 + 1;
        if (bVar1) {
          *puVar6 = uVar2;
        }
        else {
          if ((int)puVar6[10] < 1) {
            return;
          }
          FUN_00030280();
          uVar2 = *puVar6;
          uVar4 = puVar6[0xe];
        }
      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));
      return;
    }
    if ((*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2)) {
      iVar5 = piVar3[-1];
      uVar2 = uVar2 - 1;
      *puVar6 = uVar2;
      uVar4 = *(uint *)(iVar5 + -4);
      while ((param_1 != uVar4 && (uVar2 != 0))) {
        iVar5 = piVar3[-2];
        uVar2 = uVar2 - 1;
        *puVar6 = uVar2;
        uVar4 = *(uint *)(iVar5 + -4);
        piVar3 = piVar3 + -1;
      }
    }
  }
  return;
}


lui gp,0x10
addiu gp,gp,0x1994
addu gp,gp,t9
addiu sp,sp,-0x28
lw v0,-0x7e4c(gp)
sw gp,0x10(sp)
sw s0,0x18(sp)
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
bgtz a0,0x00030808
_lw s0,0x0(v0)
sw zero,0x0(s0)
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw v0,0x0(s0)
lw a1,0x38(s0)
sll v1,v0,0x2
addu v1,a1,v1
lw a2,0x0(v1)
lw a2,-0x4(a2)
sltu a3,a2,a0
beq a3,zero,0x0003084c
_lw s2,-0x7db8(gp)
or s1,a0,zero
addiu s2,s2,0x280
lw v1,0x14(s0)
sltu v1,v0,v1
beq v1,zero,0x0003089c
_addiu v0,v0,0x1
b 0x000308b8
_sw v0,0x0(s0)
beq a2,a0,0x000307f4
_lw ra,0x24(sp)
blez v0,0x000307f8
_lw s2,0x20(sp)
lw a1,-0x4(v1)
addiu v0,v0,-0x1
sw v0,0x0(s0)
lw a1,-0x4(a1)
beq a0,a1,0x000307f0
_nop
beq v0,zero,0x000307f0
_addiu v1,v1,-0x4
lw a1,-0x4(v1)
addiu v0,v0,-0x1
sw v0,0x0(s0)
lw a1,-0x4(a1)
beq a0,a1,0x000307f0
_nop
b 0x00030874
_nop
lw v0,0x28(s0)
blez v0,0x000307f0
_or t9,s2,zero
bal 0x00030280
_nop
lw v0,0x0(s0)
lw a1,0x38(s0)
sll v1,v0,0x2
addu v1,a1,v1
lw v1,0x0(v1)
lw v1,-0x4(v1)
bne s1,v1,0x00030834
_lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "void FUN_000307bc(uint param_1)\n\n{\n  bool bVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  uint *puVar6;\n  \n  puVar6 = *(uint **)PTR_DAT_0012a304;\n  if ((int)param_1 < 1) {\n    *puVar6 = 0;\n  }\n  else {\n    uVar2 = *puVar6;\n    uVar4 = puVar6[0xe];\n    piVar3 = (int *)(uVar4 + uVar2 * 4);\n    if (*(uint *)(*piVar3 + -4) < param_1) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }\n    if ((*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      uVar4 = *(uint *)(iVar5 + -4);\n      while ((param_1 != uVar4 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_000307bc(uint param_1)\n\n{\n  bool bVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  uint *puVar6;\n  \n  puVar6 = *(uint **)PTR_DAT_0012a304;\n  if ((int)param_1 < 1) {\n    *puVar6 = 0;\n  }\n  else {\n    uVar2 = *puVar6;\n    uVar4 = puVar6[0xe];\n    piVar3 = (int *)(uVar4 + uVar2 * 4);\n    if (*(uint *)(*piVar3 + -4) < param_1) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }\n    if ((*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      uVar4 = *(uint *)(iVar5 + -4);\n      while ((param_1 != uVar4 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000307bc(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  bool bVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  uint *puVar6;\n  \n  puVar6 = *(uint **)PTR_DAT_0012a304;\n  if ((int)param_1 < 1) {\n    *puVar6 = 0;\n  }\n  else {\n    uVar2 = *puVar6;\n    uVar4 = puVar6[0xe];\n    piVar3 = (int *)(uVar4 + uVar2 * 4);\n    if (*(uint *)(*piVar3 + -4) < param_1) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }\n    if ((*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      uVar4 = *(uint *)(iVar5 + -4);\n      while ((param_1 != uVar4 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }\n  }\n  return;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (expression_statement "puVar6 = *(uint **)PTR_DAT_0012a304;" (assignment_expression "puVar6 = *(uint **)PTR_DAT_0012a304" identifier = (pointer_expression "*(uint **)PTR_DAT_0012a304" * (cast_expression "(uint **)PTR_DAT_0012a304" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if ((int)param_1 < 1) {\n    *puVar6 = 0;\n  }\n  else {\n    uVar2 = *puVar6;\n    uVar4 = puVar6[0xe];\n    piVar3 = (int *)(uVar4 + uVar2 * 4);\n    if (*(uint *)(*piVar3 + -4) < param_1) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }\n    if ((*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      uVar4 = *(uint *)(iVar5 + -4);\n      while ((param_1 != uVar4 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }\n  }" if (parenthesized_expression "((int)param_1 < 1)" ( (binary_expression "(int)param_1 < 1" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    *puVar6 = 0;\n  }" { (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" * identifier) = number_literal) ;) }) (else_clause "else {\n    uVar2 = *puVar6;\n    uVar4 = puVar6[0xe];\n    piVar3 = (int *)(uVar4 + uVar2 * 4);\n    if (*(uint *)(*piVar3 + -4) < param_1) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }\n    if ((*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      uVar4 = *(uint *)(iVar5 + -4);\n      while ((param_1 != uVar4 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }\n  }" else (compound_statement "{\n    uVar2 = *puVar6;\n    uVar4 = puVar6[0xe];\n    piVar3 = (int *)(uVar4 + uVar2 * 4);\n    if (*(uint *)(*piVar3 + -4) < param_1) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }\n    if ((*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      uVar4 = *(uint *)(iVar5 + -4);\n      while ((param_1 != uVar4 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }\n  }" { (expression_statement "uVar2 = *puVar6;" (assignment_expression "uVar2 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "uVar4 = puVar6[0xe];" (assignment_expression "uVar4 = puVar6[0xe]" identifier = (subscript_expression "puVar6[0xe]" identifier [ number_literal ])) ;) (expression_statement "piVar3 = (int *)(uVar4 + uVar2 * 4);" (assignment_expression "piVar3 = (int *)(uVar4 + uVar2 * 4)" identifier = (cast_expression "(int *)(uVar4 + uVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar4 + uVar2 * 4)" ( (binary_expression "uVar4 + uVar2 * 4" identifier + (binary_expression "uVar2 * 4" identifier * number_literal)) )))) ;) (if_statement "if (*(uint *)(*piVar3 + -4) < param_1) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }" if (parenthesized_expression "(*(uint *)(*piVar3 + -4) < param_1)" ( (binary_expression "*(uint *)(*piVar3 + -4) < param_1" (pointer_expression "*(uint *)(*piVar3 + -4)" * (cast_expression "(uint *)(*piVar3 + -4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + -4)" ( (binary_expression "*piVar3 + -4" (pointer_expression "*piVar3" * identifier) + number_literal) )))) < identifier) )) (compound_statement "{\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }" { (do_statement "do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));" do (compound_statement "{\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      }" { (expression_statement "bVar1 = uVar2 < puVar6[5];" (assignment_expression "bVar1 = uVar2 < puVar6[5]" identifier = (binary_expression "uVar2 < puVar6[5]" identifier < (subscript_expression "puVar6[5]" identifier [ number_literal ]))) ;) (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (if_statement "if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n          *puVar6 = uVar2;\n        }" { (expression_statement "*puVar6 = uVar2;" (assignment_expression "*puVar6 = uVar2" (pointer_expression "*puVar6" * identifier) = identifier) ;) }) (else_clause "else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }" else (compound_statement "{\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }" { (if_statement "if ((int)puVar6[10] < 1) {\n            return;\n          }" if (parenthesized_expression "((int)puVar6[10] < 1)" ( (binary_expression "(int)puVar6[10] < 1" (cast_expression "(int)puVar6[10]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "puVar6[10]" identifier [ number_literal ])) < number_literal) )) (compound_statement "{\n            return;\n          }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00030280();" (call_expression "FUN_00030280()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar2 = *puVar6;" (assignment_expression "uVar2 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "uVar4 = puVar6[0xe];" (assignment_expression "uVar4 = puVar6[0xe]" identifier = (subscript_expression "puVar6[0xe]" identifier [ number_literal ])) ;) }))) }) while (parenthesized_expression "(param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4))" ( (binary_expression "param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4)" identifier != (pointer_expression "*(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4)" * (cast_expression "(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(uVar4 + uVar2 * 4) + -4)" ( (binary_expression "*(int *)(uVar4 + uVar2 * 4) + -4" (pointer_expression "*(int *)(uVar4 + uVar2 * 4)" * (cast_expression "(int *)(uVar4 + uVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar4 + uVar2 * 4)" ( (binary_expression "uVar4 + uVar2 * 4" identifier + (binary_expression "uVar2 * 4" identifier * number_literal)) )))) + number_literal) ))))) )) ;) (return_statement "return;" return ;) })) (if_statement "if ((*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      uVar4 = *(uint *)(iVar5 + -4);\n      while ((param_1 != uVar4 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }" if (parenthesized_expression "((*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2))" ( (binary_expression "(*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2)" (parenthesized_expression "(*(uint *)(*piVar3 + -4) != param_1)" ( (binary_expression "*(uint *)(*piVar3 + -4) != param_1" (pointer_expression "*(uint *)(*piVar3 + -4)" * (cast_expression "(uint *)(*piVar3 + -4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + -4)" ( (binary_expression "*piVar3 + -4" (pointer_expression "*piVar3" * identifier) + number_literal) )))) != identifier) )) && (parenthesized_expression "(0 < (int)uVar2)" ( (binary_expression "0 < (int)uVar2" number_literal < (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )) (compound_statement "{\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      uVar4 = *(uint *)(iVar5 + -4);\n      while ((param_1 != uVar4 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }" { (expression_statement "iVar5 = piVar3[-1];" (assignment_expression "iVar5 = piVar3[-1]" identifier = (subscript_expression "piVar3[-1]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = uVar2 - 1;" (assignment_expression "uVar2 = uVar2 - 1" identifier = (binary_expression "uVar2 - 1" identifier - number_literal)) ;) (expression_statement "*puVar6 = uVar2;" (assignment_expression "*puVar6 = uVar2" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "uVar4 = *(uint *)(iVar5 + -4);" (assignment_expression "uVar4 = *(uint *)(iVar5 + -4)" identifier = (pointer_expression "*(uint *)(iVar5 + -4)" * (cast_expression "(uint *)(iVar5 + -4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -4)" ( (binary_expression "iVar5 + -4" identifier + number_literal) ))))) ;) (while_statement "while ((param_1 != uVar4 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }" while (parenthesized_expression "((param_1 != uVar4 && (uVar2 != 0)))" ( (parenthesized_expression "(param_1 != uVar4 && (uVar2 != 0))" ( (binary_expression "param_1 != uVar4 && (uVar2 != 0)" (binary_expression "param_1 != uVar4" identifier != identifier) && (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) ))) )) )) (compound_statement "{\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }" { (expression_statement "iVar5 = piVar3[-2];" (assignment_expression "iVar5 = piVar3[-2]" identifier = (subscript_expression "piVar3[-2]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = uVar2 - 1;" (assignment_expression "uVar2 = uVar2 - 1" identifier = (binary_expression "uVar2 - 1" identifier - number_literal)) ;) (expression_statement "*puVar6 = uVar2;" (assignment_expression "*puVar6 = uVar2" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "uVar4 = *(uint *)(iVar5 + -4);" (assignment_expression "uVar4 = *(uint *)(iVar5 + -4)" identifier = (pointer_expression "*(uint *)(iVar5 + -4)" * (cast_expression "(uint *)(iVar5 + -4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -4)" ( (binary_expression "iVar5 + -4" identifier + number_literal) ))))) ;) (expression_statement "piVar3 = piVar3 + -1;" (assignment_expression "piVar3 = piVar3 + -1" identifier = (binary_expression "piVar3 + -1" identifier + number_literal)) ;) })) })) }))) (return_statement "return;" return ;) })))
(translation_unit "void goto_lineno(int target)\n\n{\n  bool bVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  uint *puVar6;\n  \n  puVar6 = *(uint **)PTR_ptr_to_globals_0012a304;\n  if (target < 1) {\n    *puVar6 = 0;\n  }\n  else {\n    uVar2 = *puVar6;\n    uVar4 = puVar6[0xe];\n    piVar3 = (int *)(uVar4 + uVar2 * 4);\n    if (*(uint *)(*piVar3 + -4) < (uint)target) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          read_lines();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (target != *(int *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }\n    if ((*(uint *)(*piVar3 + -4) != target) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      iVar5 = *(int *)(iVar5 + -4);\n      while ((target != iVar5 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        iVar5 = *(int *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }\n  }\n  return;\n}\n\n" (function_definition "void goto_lineno(int target)\n\n{\n  bool bVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  uint *puVar6;\n  \n  puVar6 = *(uint **)PTR_ptr_to_globals_0012a304;\n  if (target < 1) {\n    *puVar6 = 0;\n  }\n  else {\n    uVar2 = *puVar6;\n    uVar4 = puVar6[0xe];\n    piVar3 = (int *)(uVar4 + uVar2 * 4);\n    if (*(uint *)(*piVar3 + -4) < (uint)target) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          read_lines();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (target != *(int *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }\n    if ((*(uint *)(*piVar3 + -4) != target) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      iVar5 = *(int *)(iVar5 + -4);\n      while ((target != iVar5 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        iVar5 = *(int *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "goto_lineno(int target)" identifier (parameter_list "(int target)" ( (parameter_declaration "int target" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  uint *puVar6;\n  \n  puVar6 = *(uint **)PTR_ptr_to_globals_0012a304;\n  if (target < 1) {\n    *puVar6 = 0;\n  }\n  else {\n    uVar2 = *puVar6;\n    uVar4 = puVar6[0xe];\n    piVar3 = (int *)(uVar4 + uVar2 * 4);\n    if (*(uint *)(*piVar3 + -4) < (uint)target) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          read_lines();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (target != *(int *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }\n    if ((*(uint *)(*piVar3 + -4) != target) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      iVar5 = *(int *)(iVar5 + -4);\n      while ((target != iVar5 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        iVar5 = *(int *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }\n  }\n  return;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (expression_statement "puVar6 = *(uint **)PTR_ptr_to_globals_0012a304;" (assignment_expression "puVar6 = *(uint **)PTR_ptr_to_globals_0012a304" identifier = (pointer_expression "*(uint **)PTR_ptr_to_globals_0012a304" * (cast_expression "(uint **)PTR_ptr_to_globals_0012a304" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (target < 1) {\n    *puVar6 = 0;\n  }\n  else {\n    uVar2 = *puVar6;\n    uVar4 = puVar6[0xe];\n    piVar3 = (int *)(uVar4 + uVar2 * 4);\n    if (*(uint *)(*piVar3 + -4) < (uint)target) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          read_lines();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (target != *(int *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }\n    if ((*(uint *)(*piVar3 + -4) != target) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      iVar5 = *(int *)(iVar5 + -4);\n      while ((target != iVar5 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        iVar5 = *(int *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }\n  }" if (parenthesized_expression "(target < 1)" ( (binary_expression "target < 1" identifier < number_literal) )) (compound_statement "{\n    *puVar6 = 0;\n  }" { (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" * identifier) = number_literal) ;) }) (else_clause "else {\n    uVar2 = *puVar6;\n    uVar4 = puVar6[0xe];\n    piVar3 = (int *)(uVar4 + uVar2 * 4);\n    if (*(uint *)(*piVar3 + -4) < (uint)target) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          read_lines();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (target != *(int *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }\n    if ((*(uint *)(*piVar3 + -4) != target) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      iVar5 = *(int *)(iVar5 + -4);\n      while ((target != iVar5 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        iVar5 = *(int *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }\n  }" else (compound_statement "{\n    uVar2 = *puVar6;\n    uVar4 = puVar6[0xe];\n    piVar3 = (int *)(uVar4 + uVar2 * 4);\n    if (*(uint *)(*piVar3 + -4) < (uint)target) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          read_lines();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (target != *(int *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }\n    if ((*(uint *)(*piVar3 + -4) != target) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      iVar5 = *(int *)(iVar5 + -4);\n      while ((target != iVar5 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        iVar5 = *(int *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }\n  }" { (expression_statement "uVar2 = *puVar6;" (assignment_expression "uVar2 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "uVar4 = puVar6[0xe];" (assignment_expression "uVar4 = puVar6[0xe]" identifier = (subscript_expression "puVar6[0xe]" identifier [ number_literal ])) ;) (expression_statement "piVar3 = (int *)(uVar4 + uVar2 * 4);" (assignment_expression "piVar3 = (int *)(uVar4 + uVar2 * 4)" identifier = (cast_expression "(int *)(uVar4 + uVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar4 + uVar2 * 4)" ( (binary_expression "uVar4 + uVar2 * 4" identifier + (binary_expression "uVar2 * 4" identifier * number_literal)) )))) ;) (if_statement "if (*(uint *)(*piVar3 + -4) < (uint)target) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          read_lines();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (target != *(int *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }" if (parenthesized_expression "(*(uint *)(*piVar3 + -4) < (uint)target)" ( (binary_expression "*(uint *)(*piVar3 + -4) < (uint)target" (pointer_expression "*(uint *)(*piVar3 + -4)" * (cast_expression "(uint *)(*piVar3 + -4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + -4)" ( (binary_expression "*piVar3 + -4" (pointer_expression "*piVar3" * identifier) + number_literal) )))) < (cast_expression "(uint)target" ( (type_descriptor "uint" type_identifier) ) identifier)) )) (compound_statement "{\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          read_lines();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (target != *(int *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }" { (do_statement "do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          read_lines();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (target != *(int *)(*(int *)(uVar4 + uVar2 * 4) + -4));" do (compound_statement "{\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          read_lines();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      }" { (expression_statement "bVar1 = uVar2 < puVar6[5];" (assignment_expression "bVar1 = uVar2 < puVar6[5]" identifier = (binary_expression "uVar2 < puVar6[5]" identifier < (subscript_expression "puVar6[5]" identifier [ number_literal ]))) ;) (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (if_statement "if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          read_lines();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n          *puVar6 = uVar2;\n        }" { (expression_statement "*puVar6 = uVar2;" (assignment_expression "*puVar6 = uVar2" (pointer_expression "*puVar6" * identifier) = identifier) ;) }) (else_clause "else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          read_lines();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }" else (compound_statement "{\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          read_lines();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }" { (if_statement "if ((int)puVar6[10] < 1) {\n            return;\n          }" if (parenthesized_expression "((int)puVar6[10] < 1)" ( (binary_expression "(int)puVar6[10] < 1" (cast_expression "(int)puVar6[10]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "puVar6[10]" identifier [ number_literal ])) < number_literal) )) (compound_statement "{\n            return;\n          }" { (return_statement "return;" return ;) })) (expression_statement "read_lines();" (call_expression "read_lines()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar2 = *puVar6;" (assignment_expression "uVar2 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "uVar4 = puVar6[0xe];" (assignment_expression "uVar4 = puVar6[0xe]" identifier = (subscript_expression "puVar6[0xe]" identifier [ number_literal ])) ;) }))) }) while (parenthesized_expression "(target != *(int *)(*(int *)(uVar4 + uVar2 * 4) + -4))" ( (binary_expression "target != *(int *)(*(int *)(uVar4 + uVar2 * 4) + -4)" identifier != (pointer_expression "*(int *)(*(int *)(uVar4 + uVar2 * 4) + -4)" * (cast_expression "(int *)(*(int *)(uVar4 + uVar2 * 4) + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(uVar4 + uVar2 * 4) + -4)" ( (binary_expression "*(int *)(uVar4 + uVar2 * 4) + -4" (pointer_expression "*(int *)(uVar4 + uVar2 * 4)" * (cast_expression "(int *)(uVar4 + uVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar4 + uVar2 * 4)" ( (binary_expression "uVar4 + uVar2 * 4" identifier + (binary_expression "uVar2 * 4" identifier * number_literal)) )))) + number_literal) ))))) )) ;) (return_statement "return;" return ;) })) (if_statement "if ((*(uint *)(*piVar3 + -4) != target) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      iVar5 = *(int *)(iVar5 + -4);\n      while ((target != iVar5 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        iVar5 = *(int *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }" if (parenthesized_expression "((*(uint *)(*piVar3 + -4) != target) && (0 < (int)uVar2))" ( (binary_expression "(*(uint *)(*piVar3 + -4) != target) && (0 < (int)uVar2)" (parenthesized_expression "(*(uint *)(*piVar3 + -4) != target)" ( (binary_expression "*(uint *)(*piVar3 + -4) != target" (pointer_expression "*(uint *)(*piVar3 + -4)" * (cast_expression "(uint *)(*piVar3 + -4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + -4)" ( (binary_expression "*piVar3 + -4" (pointer_expression "*piVar3" * identifier) + number_literal) )))) != identifier) )) && (parenthesized_expression "(0 < (int)uVar2)" ( (binary_expression "0 < (int)uVar2" number_literal < (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )) (compound_statement "{\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      iVar5 = *(int *)(iVar5 + -4);\n      while ((target != iVar5 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        iVar5 = *(int *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }" { (expression_statement "iVar5 = piVar3[-1];" (assignment_expression "iVar5 = piVar3[-1]" identifier = (subscript_expression "piVar3[-1]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = uVar2 - 1;" (assignment_expression "uVar2 = uVar2 - 1" identifier = (binary_expression "uVar2 - 1" identifier - number_literal)) ;) (expression_statement "*puVar6 = uVar2;" (assignment_expression "*puVar6 = uVar2" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "iVar5 = *(int *)(iVar5 + -4);" (assignment_expression "iVar5 = *(int *)(iVar5 + -4)" identifier = (pointer_expression "*(int *)(iVar5 + -4)" * (cast_expression "(int *)(iVar5 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -4)" ( (binary_expression "iVar5 + -4" identifier + number_literal) ))))) ;) (while_statement "while ((target != iVar5 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        iVar5 = *(int *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }" while (parenthesized_expression "((target != iVar5 && (uVar2 != 0)))" ( (parenthesized_expression "(target != iVar5 && (uVar2 != 0))" ( (binary_expression "target != iVar5 && (uVar2 != 0)" (binary_expression "target != iVar5" identifier != identifier) && (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) ))) )) )) (compound_statement "{\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        iVar5 = *(int *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }" { (expression_statement "iVar5 = piVar3[-2];" (assignment_expression "iVar5 = piVar3[-2]" identifier = (subscript_expression "piVar3[-2]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = uVar2 - 1;" (assignment_expression "uVar2 = uVar2 - 1" identifier = (binary_expression "uVar2 - 1" identifier - number_literal)) ;) (expression_statement "*puVar6 = uVar2;" (assignment_expression "*puVar6 = uVar2" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "iVar5 = *(int *)(iVar5 + -4);" (assignment_expression "iVar5 = *(int *)(iVar5 + -4)" identifier = (pointer_expression "*(int *)(iVar5 + -4)" * (cast_expression "(int *)(iVar5 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -4)" ( (binary_expression "iVar5 + -4" identifier + number_literal) ))))) ;) (expression_statement "piVar3 = piVar3 + -1;" (assignment_expression "piVar3 = piVar3 + -1" identifier = (binary_expression "piVar3 + -1" identifier + number_literal)) ;) })) })) }))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000307bc(uint param_1)\n\n{\n  bool bVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  uint *puVar6;\n  \n  puVar6 = *(uint **)PTR_DAT_0012a304;\n  if ((int)param_1 < 1) {\n    *puVar6 = 0;\n  }\n  else {\n    uVar2 = *puVar6;\n    uVar4 = puVar6[0xe];\n    piVar3 = (int *)(uVar4 + uVar2 * 4);\n    if (*(uint *)(*piVar3 + -4) < param_1) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }\n    if ((*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      uVar4 = *(uint *)(iVar5 + -4);\n      while ((param_1 != uVar4 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_000307bc(uint param_1)\n\n{\n  bool bVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  uint *puVar6;\n  \n  puVar6 = *(uint **)PTR_DAT_0012a304;\n  if ((int)param_1 < 1) {\n    *puVar6 = 0;\n  }\n  else {\n    uVar2 = *puVar6;\n    uVar4 = puVar6[0xe];\n    piVar3 = (int *)(uVar4 + uVar2 * 4);\n    if (*(uint *)(*piVar3 + -4) < param_1) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }\n    if ((*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      uVar4 = *(uint *)(iVar5 + -4);\n      while ((param_1 != uVar4 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000307bc(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  bool bVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  uint *puVar6;\n  \n  puVar6 = *(uint **)PTR_DAT_0012a304;\n  if ((int)param_1 < 1) {\n    *puVar6 = 0;\n  }\n  else {\n    uVar2 = *puVar6;\n    uVar4 = puVar6[0xe];\n    piVar3 = (int *)(uVar4 + uVar2 * 4);\n    if (*(uint *)(*piVar3 + -4) < param_1) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }\n    if ((*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      uVar4 = *(uint *)(iVar5 + -4);\n      while ((param_1 != uVar4 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }\n  }\n  return;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (expression_statement "puVar6 = *(uint **)PTR_DAT_0012a304;" (assignment_expression "puVar6 = *(uint **)PTR_DAT_0012a304" identifier = (pointer_expression "*(uint **)PTR_DAT_0012a304" * (cast_expression "(uint **)PTR_DAT_0012a304" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if ((int)param_1 < 1) {\n    *puVar6 = 0;\n  }\n  else {\n    uVar2 = *puVar6;\n    uVar4 = puVar6[0xe];\n    piVar3 = (int *)(uVar4 + uVar2 * 4);\n    if (*(uint *)(*piVar3 + -4) < param_1) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }\n    if ((*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      uVar4 = *(uint *)(iVar5 + -4);\n      while ((param_1 != uVar4 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }\n  }" if (parenthesized_expression "((int)param_1 < 1)" ( (binary_expression "(int)param_1 < 1" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    *puVar6 = 0;\n  }" { (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" * identifier) = number_literal) ;) }) (else_clause "else {\n    uVar2 = *puVar6;\n    uVar4 = puVar6[0xe];\n    piVar3 = (int *)(uVar4 + uVar2 * 4);\n    if (*(uint *)(*piVar3 + -4) < param_1) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }\n    if ((*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      uVar4 = *(uint *)(iVar5 + -4);\n      while ((param_1 != uVar4 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }\n  }" else (compound_statement "{\n    uVar2 = *puVar6;\n    uVar4 = puVar6[0xe];\n    piVar3 = (int *)(uVar4 + uVar2 * 4);\n    if (*(uint *)(*piVar3 + -4) < param_1) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }\n    if ((*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      uVar4 = *(uint *)(iVar5 + -4);\n      while ((param_1 != uVar4 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }\n  }" { (expression_statement "uVar2 = *puVar6;" (assignment_expression "uVar2 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "uVar4 = puVar6[0xe];" (assignment_expression "uVar4 = puVar6[0xe]" identifier = (subscript_expression "puVar6[0xe]" identifier [ number_literal ])) ;) (expression_statement "piVar3 = (int *)(uVar4 + uVar2 * 4);" (assignment_expression "piVar3 = (int *)(uVar4 + uVar2 * 4)" identifier = (cast_expression "(int *)(uVar4 + uVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar4 + uVar2 * 4)" ( (binary_expression "uVar4 + uVar2 * 4" identifier + (binary_expression "uVar2 * 4" identifier * number_literal)) )))) ;) (if_statement "if (*(uint *)(*piVar3 + -4) < param_1) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }" if (parenthesized_expression "(*(uint *)(*piVar3 + -4) < param_1)" ( (binary_expression "*(uint *)(*piVar3 + -4) < param_1" (pointer_expression "*(uint *)(*piVar3 + -4)" * (cast_expression "(uint *)(*piVar3 + -4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + -4)" ( (binary_expression "*piVar3 + -4" (pointer_expression "*piVar3" * identifier) + number_literal) )))) < identifier) )) (compound_statement "{\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }" { (do_statement "do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));" do (compound_statement "{\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      }" { (expression_statement "bVar1 = uVar2 < puVar6[5];" (assignment_expression "bVar1 = uVar2 < puVar6[5]" identifier = (binary_expression "uVar2 < puVar6[5]" identifier < (subscript_expression "puVar6[5]" identifier [ number_literal ]))) ;) (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (if_statement "if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n          *puVar6 = uVar2;\n        }" { (expression_statement "*puVar6 = uVar2;" (assignment_expression "*puVar6 = uVar2" (pointer_expression "*puVar6" * identifier) = identifier) ;) }) (else_clause "else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }" else (compound_statement "{\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }" { (if_statement "if ((int)puVar6[10] < 1) {\n            return;\n          }" if (parenthesized_expression "((int)puVar6[10] < 1)" ( (binary_expression "(int)puVar6[10] < 1" (cast_expression "(int)puVar6[10]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "puVar6[10]" identifier [ number_literal ])) < number_literal) )) (compound_statement "{\n            return;\n          }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00030280();" (call_expression "FUN_00030280()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar2 = *puVar6;" (assignment_expression "uVar2 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "uVar4 = puVar6[0xe];" (assignment_expression "uVar4 = puVar6[0xe]" identifier = (subscript_expression "puVar6[0xe]" identifier [ number_literal ])) ;) }))) }) while (parenthesized_expression "(param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4))" ( (binary_expression "param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4)" identifier != (pointer_expression "*(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4)" * (cast_expression "(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(uVar4 + uVar2 * 4) + -4)" ( (binary_expression "*(int *)(uVar4 + uVar2 * 4) + -4" (pointer_expression "*(int *)(uVar4 + uVar2 * 4)" * (cast_expression "(int *)(uVar4 + uVar2 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar4 + uVar2 * 4)" ( (binary_expression "uVar4 + uVar2 * 4" identifier + (binary_expression "uVar2 * 4" identifier * number_literal)) )))) + number_literal) ))))) )) ;) (return_statement "return;" return ;) })) (if_statement "if ((*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      uVar4 = *(uint *)(iVar5 + -4);\n      while ((param_1 != uVar4 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }" if (parenthesized_expression "((*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2))" ( (binary_expression "(*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2)" (parenthesized_expression "(*(uint *)(*piVar3 + -4) != param_1)" ( (binary_expression "*(uint *)(*piVar3 + -4) != param_1" (pointer_expression "*(uint *)(*piVar3 + -4)" * (cast_expression "(uint *)(*piVar3 + -4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + -4)" ( (binary_expression "*piVar3 + -4" (pointer_expression "*piVar3" * identifier) + number_literal) )))) != identifier) )) && (parenthesized_expression "(0 < (int)uVar2)" ( (binary_expression "0 < (int)uVar2" number_literal < (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )) (compound_statement "{\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      uVar4 = *(uint *)(iVar5 + -4);\n      while ((param_1 != uVar4 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }" { (expression_statement "iVar5 = piVar3[-1];" (assignment_expression "iVar5 = piVar3[-1]" identifier = (subscript_expression "piVar3[-1]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = uVar2 - 1;" (assignment_expression "uVar2 = uVar2 - 1" identifier = (binary_expression "uVar2 - 1" identifier - number_literal)) ;) (expression_statement "*puVar6 = uVar2;" (assignment_expression "*puVar6 = uVar2" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "uVar4 = *(uint *)(iVar5 + -4);" (assignment_expression "uVar4 = *(uint *)(iVar5 + -4)" identifier = (pointer_expression "*(uint *)(iVar5 + -4)" * (cast_expression "(uint *)(iVar5 + -4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -4)" ( (binary_expression "iVar5 + -4" identifier + number_literal) ))))) ;) (while_statement "while ((param_1 != uVar4 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }" while (parenthesized_expression "((param_1 != uVar4 && (uVar2 != 0)))" ( (parenthesized_expression "(param_1 != uVar4 && (uVar2 != 0))" ( (binary_expression "param_1 != uVar4 && (uVar2 != 0)" (binary_expression "param_1 != uVar4" identifier != identifier) && (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) ))) )) )) (compound_statement "{\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }" { (expression_statement "iVar5 = piVar3[-2];" (assignment_expression "iVar5 = piVar3[-2]" identifier = (subscript_expression "piVar3[-2]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = uVar2 - 1;" (assignment_expression "uVar2 = uVar2 - 1" identifier = (binary_expression "uVar2 - 1" identifier - number_literal)) ;) (expression_statement "*puVar6 = uVar2;" (assignment_expression "*puVar6 = uVar2" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "uVar4 = *(uint *)(iVar5 + -4);" (assignment_expression "uVar4 = *(uint *)(iVar5 + -4)" identifier = (pointer_expression "*(uint *)(iVar5 + -4)" * (cast_expression "(uint *)(iVar5 + -4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + -4)" ( (binary_expression "iVar5 + -4" identifier + number_literal) ))))) ;) (expression_statement "piVar3 = piVar3 + -1;" (assignment_expression "piVar3 = piVar3 + -1" identifier = (binary_expression "piVar3 + -1" identifier + number_literal)) ;) })) })) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT < (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) }) while (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) + LIT) ))))) )) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) != IDENT) )) && (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT != IDENT) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) })) }))) (return_statement return ;) })))
(function_definition "void FUN_000307bc(uint param_1)\n\n{\n  bool bVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  uint *puVar6;\n  \n  puVar6 = *(uint **)PTR_DAT_0012a304;\n  if ((int)param_1 < 1) {\n    *puVar6 = 0;\n  }\n  else {\n    uVar2 = *puVar6;\n    uVar4 = puVar6[0xe];\n    piVar3 = (int *)(uVar4 + uVar2 * 4);\n    if (*(uint *)(*piVar3 + -4) < param_1) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }\n    if ((*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      uVar4 = *(uint *)(iVar5 + -4);\n      while ((param_1 != uVar4 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000307bc(uint param_1)" (identifier "FUN_000307bc") (parameter_list "(uint param_1)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) () ")"))) (compound_statement "{\n  bool bVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  int iVar5;\n  uint *puVar6;\n  \n  puVar6 = *(uint **)PTR_DAT_0012a304;\n  if ((int)param_1 < 1) {\n    *puVar6 = 0;\n  }\n  else {\n    uVar2 = *puVar6;\n    uVar4 = puVar6[0xe];\n    piVar3 = (int *)(uVar4 + uVar2 * 4);\n    if (*(uint *)(*piVar3 + -4) < param_1) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }\n    if ((*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      uVar4 = *(uint *)(iVar5 + -4);\n      while ((param_1 != uVar4 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }\n  }\n  return;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint *puVar6;" (type_identifier "uint") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (expression_statement "puVar6 = *(uint **)PTR_DAT_0012a304;" (assignment_expression "puVar6 = *(uint **)PTR_DAT_0012a304" (identifier "puVar6") (= "=") (pointer_expression "*(uint **)PTR_DAT_0012a304" (* "*") (cast_expression "(uint **)PTR_DAT_0012a304" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_DAT_0012a304")))) (; ";")) (if_statement "if ((int)param_1 < 1) {\n    *puVar6 = 0;\n  }\n  else {\n    uVar2 = *puVar6;\n    uVar4 = puVar6[0xe];\n    piVar3 = (int *)(uVar4 + uVar2 * 4);\n    if (*(uint *)(*piVar3 + -4) < param_1) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }\n    if ((*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      uVar4 = *(uint *)(iVar5 + -4);\n      while ((param_1 != uVar4 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }\n  }" (if "if") (parenthesized_expression "((int)param_1 < 1)" (( "(") (binary_expression "(int)param_1 < 1" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    *puVar6 = 0;\n  }" ({ "{") (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar2 = *puVar6;\n    uVar4 = puVar6[0xe];\n    piVar3 = (int *)(uVar4 + uVar2 * 4);\n    if (*(uint *)(*piVar3 + -4) < param_1) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }\n    if ((*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      uVar4 = *(uint *)(iVar5 + -4);\n      while ((param_1 != uVar4 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }\n  }" (else "else") (compound_statement "{\n    uVar2 = *puVar6;\n    uVar4 = puVar6[0xe];\n    piVar3 = (int *)(uVar4 + uVar2 * 4);\n    if (*(uint *)(*piVar3 + -4) < param_1) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }\n    if ((*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      uVar4 = *(uint *)(iVar5 + -4);\n      while ((param_1 != uVar4 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }\n  }" ({ "{") (expression_statement "uVar2 = *puVar6;" (assignment_expression "uVar2 = *puVar6" (identifier "uVar2") (= "=") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) (; ";")) (expression_statement "uVar4 = puVar6[0xe];" (assignment_expression "uVar4 = puVar6[0xe]" (identifier "uVar4") (= "=") (subscript_expression "puVar6[0xe]" (identifier "puVar6") ([ "[") (number_literal "0xe") (] "]"))) (; ";")) (expression_statement "piVar3 = (int *)(uVar4 + uVar2 * 4);" (assignment_expression "piVar3 = (int *)(uVar4 + uVar2 * 4)" (identifier "piVar3") (= "=") (cast_expression "(int *)(uVar4 + uVar2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar4 + uVar2 * 4)" (( "(") (binary_expression "uVar4 + uVar2 * 4" (identifier "uVar4") (+ "+") (binary_expression "uVar2 * 4" (identifier "uVar2") (* "*") (number_literal "4"))) () ")")))) (; ";")) (if_statement "if (*(uint *)(*piVar3 + -4) < param_1) {\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }" (if "if") (parenthesized_expression "(*(uint *)(*piVar3 + -4) < param_1)" (( "(") (binary_expression "*(uint *)(*piVar3 + -4) < param_1" (pointer_expression "*(uint *)(*piVar3 + -4)" (* "*") (cast_expression "(uint *)(*piVar3 + -4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar3 + -4)" (( "(") (binary_expression "*piVar3 + -4" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "-4")) () ")")))) (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n      do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));\n      return;\n    }" ({ "{") (do_statement "do {\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));" (do "do") (compound_statement "{\n        bVar1 = uVar2 < puVar6[5];\n        uVar2 = uVar2 + 1;\n        if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }\n      }" ({ "{") (expression_statement "bVar1 = uVar2 < puVar6[5];" (assignment_expression "bVar1 = uVar2 < puVar6[5]" (identifier "bVar1") (= "=") (binary_expression "uVar2 < puVar6[5]" (identifier "uVar2") (< "<") (subscript_expression "puVar6[5]" (identifier "puVar6") ([ "[") (number_literal "5") (] "]")))) (; ";")) (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" (identifier "uVar2") (= "=") (binary_expression "uVar2 + 1" (identifier "uVar2") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (bVar1) {\n          *puVar6 = uVar2;\n        }\n        else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }" (if "if") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (compound_statement "{\n          *puVar6 = uVar2;\n        }" ({ "{") (expression_statement "*puVar6 = uVar2;" (assignment_expression "*puVar6 = uVar2" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (identifier "uVar2")) (; ";")) (} "}")) (else_clause "else {\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }" (else "else") (compound_statement "{\n          if ((int)puVar6[10] < 1) {\n            return;\n          }\n          FUN_00030280();\n          uVar2 = *puVar6;\n          uVar4 = puVar6[0xe];\n        }" ({ "{") (if_statement "if ((int)puVar6[10] < 1) {\n            return;\n          }" (if "if") (parenthesized_expression "((int)puVar6[10] < 1)" (( "(") (binary_expression "(int)puVar6[10] < 1" (cast_expression "(int)puVar6[10]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "puVar6[10]" (identifier "puVar6") ([ "[") (number_literal "10") (] "]"))) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n            return;\n          }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00030280();" (call_expression "FUN_00030280()" (identifier "FUN_00030280") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar2 = *puVar6;" (assignment_expression "uVar2 = *puVar6" (identifier "uVar2") (= "=") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) (; ";")) (expression_statement "uVar4 = puVar6[0xe];" (assignment_expression "uVar4 = puVar6[0xe]" (identifier "uVar4") (= "=") (subscript_expression "puVar6[0xe]" (identifier "puVar6") ([ "[") (number_literal "0xe") (] "]"))) (; ";")) (} "}")))) (} "}")) (while "while") (parenthesized_expression "(param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4))" (( "(") (binary_expression "param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4)" (identifier "param_1") (!= "!=") (pointer_expression "*(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4)" (* "*") (cast_expression "(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(uVar4 + uVar2 * 4) + -4)" (( "(") (binary_expression "*(int *)(uVar4 + uVar2 * 4) + -4" (pointer_expression "*(int *)(uVar4 + uVar2 * 4)" (* "*") (cast_expression "(int *)(uVar4 + uVar2 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar4 + uVar2 * 4)" (( "(") (binary_expression "uVar4 + uVar2 * 4" (identifier "uVar4") (+ "+") (binary_expression "uVar2 * 4" (identifier "uVar2") (* "*") (number_literal "4"))) () ")")))) (+ "+") (number_literal "-4")) () ")"))))) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if ((*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2)) {\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      uVar4 = *(uint *)(iVar5 + -4);\n      while ((param_1 != uVar4 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }" (if "if") (parenthesized_expression "((*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2))" (( "(") (binary_expression "(*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2)" (parenthesized_expression "(*(uint *)(*piVar3 + -4) != param_1)" (( "(") (binary_expression "*(uint *)(*piVar3 + -4) != param_1" (pointer_expression "*(uint *)(*piVar3 + -4)" (* "*") (cast_expression "(uint *)(*piVar3 + -4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar3 + -4)" (( "(") (binary_expression "*piVar3 + -4" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "-4")) () ")")))) (!= "!=") (identifier "param_1")) () ")")) (&& "&&") (parenthesized_expression "(0 < (int)uVar2)" (( "(") (binary_expression "0 < (int)uVar2" (number_literal "0") (< "<") (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2"))) () ")"))) () ")")) (compound_statement "{\n      iVar5 = piVar3[-1];\n      uVar2 = uVar2 - 1;\n      *puVar6 = uVar2;\n      uVar4 = *(uint *)(iVar5 + -4);\n      while ((param_1 != uVar4 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }\n    }" ({ "{") (expression_statement "iVar5 = piVar3[-1];" (assignment_expression "iVar5 = piVar3[-1]" (identifier "iVar5") (= "=") (subscript_expression "piVar3[-1]" (identifier "piVar3") ([ "[") (number_literal "-1") (] "]"))) (; ";")) (expression_statement "uVar2 = uVar2 - 1;" (assignment_expression "uVar2 = uVar2 - 1" (identifier "uVar2") (= "=") (binary_expression "uVar2 - 1" (identifier "uVar2") (- "-") (number_literal "1"))) (; ";")) (expression_statement "*puVar6 = uVar2;" (assignment_expression "*puVar6 = uVar2" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "uVar4 = *(uint *)(iVar5 + -4);" (assignment_expression "uVar4 = *(uint *)(iVar5 + -4)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)(iVar5 + -4)" (* "*") (cast_expression "(uint *)(iVar5 + -4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + -4)" (( "(") (binary_expression "iVar5 + -4" (identifier "iVar5") (+ "+") (number_literal "-4")) () ")"))))) (; ";")) (while_statement "while ((param_1 != uVar4 && (uVar2 != 0))) {\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }" (while "while") (parenthesized_expression "((param_1 != uVar4 && (uVar2 != 0)))" (( "(") (parenthesized_expression "(param_1 != uVar4 && (uVar2 != 0))" (( "(") (binary_expression "param_1 != uVar4 && (uVar2 != 0)" (binary_expression "param_1 != uVar4" (identifier "param_1") (!= "!=") (identifier "uVar4")) (&& "&&") (parenthesized_expression "(uVar2 != 0)" (( "(") (binary_expression "uVar2 != 0" (identifier "uVar2") (!= "!=") (number_literal "0")) () ")"))) () ")")) () ")")) (compound_statement "{\n        iVar5 = piVar3[-2];\n        uVar2 = uVar2 - 1;\n        *puVar6 = uVar2;\n        uVar4 = *(uint *)(iVar5 + -4);\n        piVar3 = piVar3 + -1;\n      }" ({ "{") (expression_statement "iVar5 = piVar3[-2];" (assignment_expression "iVar5 = piVar3[-2]" (identifier "iVar5") (= "=") (subscript_expression "piVar3[-2]" (identifier "piVar3") ([ "[") (number_literal "-2") (] "]"))) (; ";")) (expression_statement "uVar2 = uVar2 - 1;" (assignment_expression "uVar2 = uVar2 - 1" (identifier "uVar2") (= "=") (binary_expression "uVar2 - 1" (identifier "uVar2") (- "-") (number_literal "1"))) (; ";")) (expression_statement "*puVar6 = uVar2;" (assignment_expression "*puVar6 = uVar2" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "uVar4 = *(uint *)(iVar5 + -4);" (assignment_expression "uVar4 = *(uint *)(iVar5 + -4)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)(iVar5 + -4)" (* "*") (cast_expression "(uint *)(iVar5 + -4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + -4)" (( "(") (binary_expression "iVar5 + -4" (identifier "iVar5") (+ "+") (number_literal "-4")) () ")"))))) (; ";")) (expression_statement "piVar3 = piVar3 + -1;" (assignment_expression "piVar3 = piVar3 + -1" (identifier "piVar3") (= "=") (binary_expression "piVar3 + -1" (identifier "piVar3") (+ "+") (number_literal "-1"))) (; ";")) (} "}"))) (} "}"))) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(int var_1)

{
  bool bVar1;
  type_1 var_3;
  int *var_6;
  type_1 var_2;
  int var_5;
  type_1 *puVar6;
  
  puVar6 = *(type_1 **)PTR_ptr_to_globals_0012a304;
  if (var_1 < 1) {
    *puVar6 = 0;
  }
  else {
    var_3 = *puVar6;
    var_2 = puVar6[0xe];
    var_6 = (int *)(var_2 + var_3 * 4);
    if (*(type_1 *)(*var_6 + -4) < (type_1)var_1) {
      do {
        bVar1 = var_3 < puVar6[5];
        var_3 = var_3 + 1;
        if (bVar1) {
          *puVar6 = var_3;
        }
        else {
          if ((int)puVar6[10] < 1) {
            return;
          }
          var_4();
          var_3 = *puVar6;
          var_2 = puVar6[0xe];
        }
      } while (var_1 != *(int *)(*(int *)(var_2 + var_3 * 4) + -4));
      return;
    }
    if ((*(type_1 *)(*var_6 + -4) != var_1) && (0 < (int)var_3)) {
      var_5 = var_6[-1];
      var_3 = var_3 - 1;
      *puVar6 = var_3;
      var_5 = *(int *)(var_5 + -4);
      while ((var_1 != var_5 && (var_3 != 0))) {
        var_5 = var_6[-2];
        var_3 = var_3 - 1;
        *puVar6 = var_3;
        var_5 = *(int *)(var_5 + -4);
        var_6 = var_6 + -1;
      }
    }
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (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: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (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: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (identifier))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))))))) condition: (parenthesized_expression (binary_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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal)))))))) (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (identifier))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (while_statement condition: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (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: (binary_expression left: (identifier) right: (number_literal))))))))))) (return_statement))))

void MASKED(uint param_1)

{
  bool bVar1;
  uint uVar2;
  int *piVar3;
  uint uVar4;
  int iVar5;
  uint *puVar6;
  
  puVar6 = *(uint **)PTR_DAT_0012a304;
  if ((int)param_1 < 1) {
    *puVar6 = 0;
  }
  else {
    uVar2 = *puVar6;
    uVar4 = puVar6[0xe];
    piVar3 = (int *)(uVar4 + uVar2 * 4);
    if (*(uint *)(*piVar3 + -4) < param_1) {
      do {
        bVar1 = uVar2 < puVar6[5];
        uVar2 = uVar2 + 1;
        if (bVar1) {
          *puVar6 = uVar2;
        }
        else {
          if ((int)puVar6[10] < 1) {
            return;
          }
          FUN_00030280();
          uVar2 = *puVar6;
          uVar4 = puVar6[0xe];
        }
      } while (param_1 != *(uint *)(*(int *)(uVar4 + uVar2 * 4) + -4));
      return;
    }
    if ((*(uint *)(*piVar3 + -4) != param_1) && (0 < (int)uVar2)) {
      iVar5 = piVar3[-1];
      uVar2 = uVar2 - 1;
      *puVar6 = uVar2;
      uVar4 = *(uint *)(iVar5 + -4);
      while ((param_1 != uVar4 && (uVar2 != 0))) {
        iVar5 = piVar3[-2];
        uVar2 = uVar2 - 1;
        *puVar6 = uVar2;
        uVar4 = *(uint *)(iVar5 + -4);
        piVar3 = piVar3 + -1;
      }
    }
  }
  return;
}

