
void tbitset_free(bitset_conflict bset)

{
  bool bVar1;
  undefined *puVar2;
  uint uVar3;
  lbitset_elt_struct *plVar4;
  lbitset_elt_struct *plVar5;
  lbitset_elt_struct *plVar6;
  lbitset_elt_struct *plVar7;
  
  puVar2 = PTR_saved_sigactions_28__sa_resv_0__0008d618;
  plVar6 = (bset->l).tail;
  if ((bset->b).cdata != (bitset_word *)0x0) {
    uVar3 = (bset->a).b.n_bits + 0x3f >> 6;
    if (uVar3 != 0) {
      bVar1 = false;
      plVar7 = *(lbitset_elt_struct **)(PTR_saved_sigactions_28__sa_resv_0__0008d618 + -0x18b0);
      plVar4 = plVar6;
      do {
        plVar5 = plVar4->next;
        if (plVar5 != (lbitset_elt_struct *)0x0) {
          bVar1 = true;
          plVar4->next = (lbitset_elt_struct *)0x0;
          plVar5->next = plVar7;
          plVar7 = plVar5;
        }
        plVar4 = (lbitset_elt_struct *)&plVar4->prev;
      } while ((lbitset_elt_struct *)(plVar6->words + (uVar3 - 3)) != plVar4);
      if (bVar1) {
        *(lbitset_elt_struct **)(puVar2 + -0x18b0) = plVar7;
      }
    }
    (bset->b).cdata = (bitset_word *)0x0;
    (bset->b).cindex = 0x7fffffff;
  }
  (*(code *)PTR_free_0008df9c)(plVar6);
  return;
}



void FUN_0005b96c(int param_1)

{
  bool bVar1;
  undefined *puVar2;
  uint uVar3;
  undefined4 *puVar4;
  int *piVar5;
  undefined4 *puVar6;
  int *piVar7;
  
  puVar2 = PTR_DAT_0008d618;
  puVar6 = *(undefined4 **)(param_1 + 0x18);
  if (*(int *)(param_1 + 0xc) != 0) {
    uVar3 = *(int *)(param_1 + 0x10) + 0x3fU >> 6;
    if (uVar3 != 0) {
      bVar1 = false;
      piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0);
      puVar4 = puVar6;
      do {
        piVar5 = (int *)*puVar4;
        if (piVar5 != (int *)0x0) {
          bVar1 = true;
          *puVar4 = 0;
          *piVar5 = (int)piVar7;
          piVar7 = piVar5;
        }
        puVar4 = puVar4 + 1;
      } while (puVar6 + uVar3 != puVar4);
      if (bVar1) {
        *(int **)(puVar2 + -0x18b0) = piVar7;
      }
    }
    *(undefined4 *)(param_1 + 0xc) = 0;
    *(undefined4 *)(param_1 + 4) = 0x7fffffff;
  }
  (*(code *)PTR_free_0008df9c)(puVar6);
  return;
}


lui gp,0x4
addiu gp,gp,-0x637c
addu gp,gp,t9
lw v0,0xc(a0)
beq v0,zero,0x0005b9f0
_lw a2,0x18(a0)
lw v0,0x10(a0)
addiu v0,v0,0x3f
srl v0,v0,0x6
beq v0,zero,0x0005b9e0
_lw t1,-0x7fd8(gp)
sll v0,v0,0x2
or t0,zero,zero
addu v0,v0,a2
or v1,a2,zero
lw a3,-0x18b0(t1)
lw a1,0x0(v1)
beq a1,zero,0x0005b9c8
_nop
li t0,0x1
sw zero,0x0(v1)
sw a3,0x0(a1)
or a3,a1,zero
addiu v1,v1,0x4
bne v0,v1,0x0005b9ac
_nop
beq t0,zero,0x0005b9e4
_lui v0,0x7fff
sw a3,-0x18b0(t1)
lui v0,0x7fff
sw zero,0xc(a0)
ori v0,v0,0xffff
sw v0,0x4(a0)
lw t9,-0x7654(gp)
jr t9
_or a0,a2,zero
(translation_unit "void FUN_0005b96c(int param_1)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  \n  puVar2 = PTR_DAT_0008d618;\n  puVar6 = *(undefined4 **)(param_1 + 0x18);\n  if (*(int *)(param_1 + 0xc) != 0) {\n    uVar3 = *(int *)(param_1 + 0x10) + 0x3fU >> 6;\n    if (uVar3 != 0) {\n      bVar1 = false;\n      piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0);\n      puVar4 = puVar6;\n      do {\n        piVar5 = (int *)*puVar4;\n        if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }\n        puVar4 = puVar4 + 1;\n      } while (puVar6 + uVar3 != puVar4);\n      if (bVar1) {\n        *(int **)(puVar2 + -0x18b0) = piVar7;\n      }\n    }\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    *(undefined4 *)(param_1 + 4) = 0x7fffffff;\n  }\n  (*(code *)PTR_free_0008df9c)(puVar6);\n  return;\n}\n\n" (function_definition "void FUN_0005b96c(int param_1)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  \n  puVar2 = PTR_DAT_0008d618;\n  puVar6 = *(undefined4 **)(param_1 + 0x18);\n  if (*(int *)(param_1 + 0xc) != 0) {\n    uVar3 = *(int *)(param_1 + 0x10) + 0x3fU >> 6;\n    if (uVar3 != 0) {\n      bVar1 = false;\n      piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0);\n      puVar4 = puVar6;\n      do {\n        piVar5 = (int *)*puVar4;\n        if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }\n        puVar4 = puVar4 + 1;\n      } while (puVar6 + uVar3 != puVar4);\n      if (bVar1) {\n        *(int **)(puVar2 + -0x18b0) = piVar7;\n      }\n    }\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    *(undefined4 *)(param_1 + 4) = 0x7fffffff;\n  }\n  (*(code *)PTR_free_0008df9c)(puVar6);\n  return;\n}" primitive_type (function_declarator "FUN_0005b96c(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  undefined *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  \n  puVar2 = PTR_DAT_0008d618;\n  puVar6 = *(undefined4 **)(param_1 + 0x18);\n  if (*(int *)(param_1 + 0xc) != 0) {\n    uVar3 = *(int *)(param_1 + 0x10) + 0x3fU >> 6;\n    if (uVar3 != 0) {\n      bVar1 = false;\n      piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0);\n      puVar4 = puVar6;\n      do {\n        piVar5 = (int *)*puVar4;\n        if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }\n        puVar4 = puVar4 + 1;\n      } while (puVar6 + uVar3 != puVar4);\n      if (bVar1) {\n        *(int **)(puVar2 + -0x18b0) = piVar7;\n      }\n    }\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    *(undefined4 *)(param_1 + 4) = 0x7fffffff;\n  }\n  (*(code *)PTR_free_0008df9c)(puVar6);\n  return;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (expression_statement "puVar2 = PTR_DAT_0008d618;" (assignment_expression "puVar2 = PTR_DAT_0008d618" identifier = identifier) ;) (expression_statement "puVar6 = *(undefined4 **)(param_1 + 0x18);" (assignment_expression "puVar6 = *(undefined4 **)(param_1 + 0x18)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x18)" * (cast_expression "(undefined4 **)(param_1 + 0x18)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    uVar3 = *(int *)(param_1 + 0x10) + 0x3fU >> 6;\n    if (uVar3 != 0) {\n      bVar1 = false;\n      piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0);\n      puVar4 = puVar6;\n      do {\n        piVar5 = (int *)*puVar4;\n        if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }\n        puVar4 = puVar4 + 1;\n      } while (puVar6 + uVar3 != puVar4);\n      if (bVar1) {\n        *(int **)(puVar2 + -0x18b0) = piVar7;\n      }\n    }\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    *(undefined4 *)(param_1 + 4) = 0x7fffffff;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar3 = *(int *)(param_1 + 0x10) + 0x3fU >> 6;\n    if (uVar3 != 0) {\n      bVar1 = false;\n      piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0);\n      puVar4 = puVar6;\n      do {\n        piVar5 = (int *)*puVar4;\n        if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }\n        puVar4 = puVar4 + 1;\n      } while (puVar6 + uVar3 != puVar4);\n      if (bVar1) {\n        *(int **)(puVar2 + -0x18b0) = piVar7;\n      }\n    }\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    *(undefined4 *)(param_1 + 4) = 0x7fffffff;\n  }" { (expression_statement "uVar3 = *(int *)(param_1 + 0x10) + 0x3fU >> 6;" (assignment_expression "uVar3 = *(int *)(param_1 + 0x10) + 0x3fU >> 6" identifier = (binary_expression "*(int *)(param_1 + 0x10) + 0x3fU >> 6" (binary_expression "*(int *)(param_1 + 0x10) + 0x3fU" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + number_literal) >> number_literal)) ;) (if_statement "if (uVar3 != 0) {\n      bVar1 = false;\n      piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0);\n      puVar4 = puVar6;\n      do {\n        piVar5 = (int *)*puVar4;\n        if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }\n        puVar4 = puVar4 + 1;\n      } while (puVar6 + uVar3 != puVar4);\n      if (bVar1) {\n        *(int **)(puVar2 + -0x18b0) = piVar7;\n      }\n    }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      bVar1 = false;\n      piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0);\n      puVar4 = puVar6;\n      do {\n        piVar5 = (int *)*puVar4;\n        if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }\n        puVar4 = puVar4 + 1;\n      } while (puVar6 + uVar3 != puVar4);\n      if (bVar1) {\n        *(int **)(puVar2 + -0x18b0) = piVar7;\n      }\n    }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0);" (assignment_expression "piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0)" identifier = (pointer_expression "*(int **)(PTR_DAT_0008d618 + -0x18b0)" * (cast_expression "(int **)(PTR_DAT_0008d618 + -0x18b0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_0008d618 + -0x18b0)" ( (binary_expression "PTR_DAT_0008d618 + -0x18b0" identifier + number_literal) ))))) ;) (expression_statement "puVar4 = puVar6;" (assignment_expression "puVar4 = puVar6" identifier = identifier) ;) (do_statement "do {\n        piVar5 = (int *)*puVar4;\n        if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }\n        puVar4 = puVar4 + 1;\n      } while (puVar6 + uVar3 != puVar4);" do (compound_statement "{\n        piVar5 = (int *)*puVar4;\n        if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }\n        puVar4 = puVar4 + 1;\n      }" { (expression_statement "piVar5 = (int *)*puVar4;" (assignment_expression "piVar5 = (int *)*puVar4" identifier = (cast_expression "(int *)*puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) ;) (if_statement "if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }" if (parenthesized_expression "(piVar5 != (int *)0x0)" ( (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "*piVar5 = (int)piVar7;" (assignment_expression "*piVar5 = (int)piVar7" (pointer_expression "*piVar5" * identifier) = (cast_expression "(int)piVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar7 = piVar5;" (assignment_expression "piVar7 = piVar5" identifier = identifier) ;) })) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar6 + uVar3 != puVar4)" ( (binary_expression "puVar6 + uVar3 != puVar4" (binary_expression "puVar6 + uVar3" identifier + identifier) != identifier) )) ;) (if_statement "if (bVar1) {\n        *(int **)(puVar2 + -0x18b0) = piVar7;\n      }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n        *(int **)(puVar2 + -0x18b0) = piVar7;\n      }" { (expression_statement "*(int **)(puVar2 + -0x18b0) = piVar7;" (assignment_expression "*(int **)(puVar2 + -0x18b0) = piVar7" (pointer_expression "*(int **)(puVar2 + -0x18b0)" * (cast_expression "(int **)(puVar2 + -0x18b0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + -0x18b0)" ( (binary_expression "puVar2 + -0x18b0" identifier + number_literal) )))) = identifier) ;) })) })) (expression_statement "*(undefined4 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = 0x7fffffff;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0x7fffffff" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "(*(code *)PTR_free_0008df9c)(puVar6);" (call_expression "(*(code *)PTR_free_0008df9c)(puVar6)" (parenthesized_expression "(*(code *)PTR_free_0008df9c)" ( (pointer_expression "*(code *)PTR_free_0008df9c" * (cast_expression "(code *)PTR_free_0008df9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar6)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void tbitset_free(bitset_conflict bset)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  uint uVar3;\n  lbitset_elt_struct *plVar4;\n  lbitset_elt_struct *plVar5;\n  lbitset_elt_struct *plVar6;\n  lbitset_elt_struct *plVar7;\n  \n  puVar2 = PTR_saved_sigactions_28__sa_resv_0__0008d618;\n  plVar6 = (bset->l).tail;\n  if ((bset->b).cdata != (bitset_word *)0x0) {\n    uVar3 = (bset->a).b.n_bits + 0x3f >> 6;\n    if (uVar3 != 0) {\n      bVar1 = false;\n      plVar7 = *(lbitset_elt_struct **)(PTR_saved_sigactions_28__sa_resv_0__0008d618 + -0x18b0);\n      plVar4 = plVar6;\n      do {\n        plVar5 = plVar4->next;\n        if (plVar5 != (lbitset_elt_struct *)0x0) {\n          bVar1 = true;\n          plVar4->next = (lbitset_elt_struct *)0x0;\n          plVar5->next = plVar7;\n          plVar7 = plVar5;\n        }\n        plVar4 = (lbitset_elt_struct *)&plVar4->prev;\n      } while ((lbitset_elt_struct *)(plVar6->words + (uVar3 - 3)) != plVar4);\n      if (bVar1) {\n        *(lbitset_elt_struct **)(puVar2 + -0x18b0) = plVar7;\n      }\n    }\n    (bset->b).cdata = (bitset_word *)0x0;\n    (bset->b).cindex = 0x7fffffff;\n  }\n  (*(code *)PTR_free_0008df9c)(plVar6);\n  return;\n}\n\n" (function_definition "void tbitset_free(bitset_conflict bset)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  uint uVar3;\n  lbitset_elt_struct *plVar4;\n  lbitset_elt_struct *plVar5;\n  lbitset_elt_struct *plVar6;\n  lbitset_elt_struct *plVar7;\n  \n  puVar2 = PTR_saved_sigactions_28__sa_resv_0__0008d618;\n  plVar6 = (bset->l).tail;\n  if ((bset->b).cdata != (bitset_word *)0x0) {\n    uVar3 = (bset->a).b.n_bits + 0x3f >> 6;\n    if (uVar3 != 0) {\n      bVar1 = false;\n      plVar7 = *(lbitset_elt_struct **)(PTR_saved_sigactions_28__sa_resv_0__0008d618 + -0x18b0);\n      plVar4 = plVar6;\n      do {\n        plVar5 = plVar4->next;\n        if (plVar5 != (lbitset_elt_struct *)0x0) {\n          bVar1 = true;\n          plVar4->next = (lbitset_elt_struct *)0x0;\n          plVar5->next = plVar7;\n          plVar7 = plVar5;\n        }\n        plVar4 = (lbitset_elt_struct *)&plVar4->prev;\n      } while ((lbitset_elt_struct *)(plVar6->words + (uVar3 - 3)) != plVar4);\n      if (bVar1) {\n        *(lbitset_elt_struct **)(puVar2 + -0x18b0) = plVar7;\n      }\n    }\n    (bset->b).cdata = (bitset_word *)0x0;\n    (bset->b).cindex = 0x7fffffff;\n  }\n  (*(code *)PTR_free_0008df9c)(plVar6);\n  return;\n}" primitive_type (function_declarator "tbitset_free(bitset_conflict bset)" identifier (parameter_list "(bitset_conflict bset)" ( (parameter_declaration "bitset_conflict bset" type_identifier identifier) ))) (compound_statement "{\n  bool bVar1;\n  undefined *puVar2;\n  uint uVar3;\n  lbitset_elt_struct *plVar4;\n  lbitset_elt_struct *plVar5;\n  lbitset_elt_struct *plVar6;\n  lbitset_elt_struct *plVar7;\n  \n  puVar2 = PTR_saved_sigactions_28__sa_resv_0__0008d618;\n  plVar6 = (bset->l).tail;\n  if ((bset->b).cdata != (bitset_word *)0x0) {\n    uVar3 = (bset->a).b.n_bits + 0x3f >> 6;\n    if (uVar3 != 0) {\n      bVar1 = false;\n      plVar7 = *(lbitset_elt_struct **)(PTR_saved_sigactions_28__sa_resv_0__0008d618 + -0x18b0);\n      plVar4 = plVar6;\n      do {\n        plVar5 = plVar4->next;\n        if (plVar5 != (lbitset_elt_struct *)0x0) {\n          bVar1 = true;\n          plVar4->next = (lbitset_elt_struct *)0x0;\n          plVar5->next = plVar7;\n          plVar7 = plVar5;\n        }\n        plVar4 = (lbitset_elt_struct *)&plVar4->prev;\n      } while ((lbitset_elt_struct *)(plVar6->words + (uVar3 - 3)) != plVar4);\n      if (bVar1) {\n        *(lbitset_elt_struct **)(puVar2 + -0x18b0) = plVar7;\n      }\n    }\n    (bset->b).cdata = (bitset_word *)0x0;\n    (bset->b).cindex = 0x7fffffff;\n  }\n  (*(code *)PTR_free_0008df9c)(plVar6);\n  return;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "lbitset_elt_struct *plVar4;" type_identifier (pointer_declarator "*plVar4" * identifier) ;) (declaration "lbitset_elt_struct *plVar5;" type_identifier (pointer_declarator "*plVar5" * identifier) ;) (declaration "lbitset_elt_struct *plVar6;" type_identifier (pointer_declarator "*plVar6" * identifier) ;) (declaration "lbitset_elt_struct *plVar7;" type_identifier (pointer_declarator "*plVar7" * identifier) ;) (expression_statement "puVar2 = PTR_saved_sigactions_28__sa_resv_0__0008d618;" (assignment_expression "puVar2 = PTR_saved_sigactions_28__sa_resv_0__0008d618" identifier = identifier) ;) (expression_statement "plVar6 = (bset->l).tail;" (assignment_expression "plVar6 = (bset->l).tail" identifier = (field_expression "(bset->l).tail" (parenthesized_expression "(bset->l)" ( (field_expression "bset->l" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if ((bset->b).cdata != (bitset_word *)0x0) {\n    uVar3 = (bset->a).b.n_bits + 0x3f >> 6;\n    if (uVar3 != 0) {\n      bVar1 = false;\n      plVar7 = *(lbitset_elt_struct **)(PTR_saved_sigactions_28__sa_resv_0__0008d618 + -0x18b0);\n      plVar4 = plVar6;\n      do {\n        plVar5 = plVar4->next;\n        if (plVar5 != (lbitset_elt_struct *)0x0) {\n          bVar1 = true;\n          plVar4->next = (lbitset_elt_struct *)0x0;\n          plVar5->next = plVar7;\n          plVar7 = plVar5;\n        }\n        plVar4 = (lbitset_elt_struct *)&plVar4->prev;\n      } while ((lbitset_elt_struct *)(plVar6->words + (uVar3 - 3)) != plVar4);\n      if (bVar1) {\n        *(lbitset_elt_struct **)(puVar2 + -0x18b0) = plVar7;\n      }\n    }\n    (bset->b).cdata = (bitset_word *)0x0;\n    (bset->b).cindex = 0x7fffffff;\n  }" if (parenthesized_expression "((bset->b).cdata != (bitset_word *)0x0)" ( (binary_expression "(bset->b).cdata != (bitset_word *)0x0" (field_expression "(bset->b).cdata" (parenthesized_expression "(bset->b)" ( (field_expression "bset->b" identifier -> field_identifier) )) . field_identifier) != (cast_expression "(bitset_word *)0x0" ( (type_descriptor "bitset_word *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar3 = (bset->a).b.n_bits + 0x3f >> 6;\n    if (uVar3 != 0) {\n      bVar1 = false;\n      plVar7 = *(lbitset_elt_struct **)(PTR_saved_sigactions_28__sa_resv_0__0008d618 + -0x18b0);\n      plVar4 = plVar6;\n      do {\n        plVar5 = plVar4->next;\n        if (plVar5 != (lbitset_elt_struct *)0x0) {\n          bVar1 = true;\n          plVar4->next = (lbitset_elt_struct *)0x0;\n          plVar5->next = plVar7;\n          plVar7 = plVar5;\n        }\n        plVar4 = (lbitset_elt_struct *)&plVar4->prev;\n      } while ((lbitset_elt_struct *)(plVar6->words + (uVar3 - 3)) != plVar4);\n      if (bVar1) {\n        *(lbitset_elt_struct **)(puVar2 + -0x18b0) = plVar7;\n      }\n    }\n    (bset->b).cdata = (bitset_word *)0x0;\n    (bset->b).cindex = 0x7fffffff;\n  }" { (expression_statement "uVar3 = (bset->a).b.n_bits + 0x3f >> 6;" (assignment_expression "uVar3 = (bset->a).b.n_bits + 0x3f >> 6" identifier = (binary_expression "(bset->a).b.n_bits + 0x3f >> 6" (binary_expression "(bset->a).b.n_bits + 0x3f" (field_expression "(bset->a).b.n_bits" (field_expression "(bset->a).b" (parenthesized_expression "(bset->a)" ( (field_expression "bset->a" identifier -> field_identifier) )) . field_identifier) . field_identifier) + number_literal) >> number_literal)) ;) (if_statement "if (uVar3 != 0) {\n      bVar1 = false;\n      plVar7 = *(lbitset_elt_struct **)(PTR_saved_sigactions_28__sa_resv_0__0008d618 + -0x18b0);\n      plVar4 = plVar6;\n      do {\n        plVar5 = plVar4->next;\n        if (plVar5 != (lbitset_elt_struct *)0x0) {\n          bVar1 = true;\n          plVar4->next = (lbitset_elt_struct *)0x0;\n          plVar5->next = plVar7;\n          plVar7 = plVar5;\n        }\n        plVar4 = (lbitset_elt_struct *)&plVar4->prev;\n      } while ((lbitset_elt_struct *)(plVar6->words + (uVar3 - 3)) != plVar4);\n      if (bVar1) {\n        *(lbitset_elt_struct **)(puVar2 + -0x18b0) = plVar7;\n      }\n    }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      bVar1 = false;\n      plVar7 = *(lbitset_elt_struct **)(PTR_saved_sigactions_28__sa_resv_0__0008d618 + -0x18b0);\n      plVar4 = plVar6;\n      do {\n        plVar5 = plVar4->next;\n        if (plVar5 != (lbitset_elt_struct *)0x0) {\n          bVar1 = true;\n          plVar4->next = (lbitset_elt_struct *)0x0;\n          plVar5->next = plVar7;\n          plVar7 = plVar5;\n        }\n        plVar4 = (lbitset_elt_struct *)&plVar4->prev;\n      } while ((lbitset_elt_struct *)(plVar6->words + (uVar3 - 3)) != plVar4);\n      if (bVar1) {\n        *(lbitset_elt_struct **)(puVar2 + -0x18b0) = plVar7;\n      }\n    }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "plVar7 = *(lbitset_elt_struct **)(PTR_saved_sigactions_28__sa_resv_0__0008d618 + -0x18b0);" (assignment_expression "plVar7 = *(lbitset_elt_struct **)(PTR_saved_sigactions_28__sa_resv_0__0008d618 + -0x18b0)" identifier = (pointer_expression "*(lbitset_elt_struct **)(PTR_saved_sigactions_28__sa_resv_0__0008d618 + -0x18b0)" * (cast_expression "(lbitset_elt_struct **)(PTR_saved_sigactions_28__sa_resv_0__0008d618 + -0x18b0)" ( (type_descriptor "lbitset_elt_struct **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_saved_sigactions_28__sa_resv_0__0008d618 + -0x18b0)" ( (binary_expression "PTR_saved_sigactions_28__sa_resv_0__0008d618 + -0x18b0" identifier + number_literal) ))))) ;) (expression_statement "plVar4 = plVar6;" (assignment_expression "plVar4 = plVar6" identifier = identifier) ;) (do_statement "do {\n        plVar5 = plVar4->next;\n        if (plVar5 != (lbitset_elt_struct *)0x0) {\n          bVar1 = true;\n          plVar4->next = (lbitset_elt_struct *)0x0;\n          plVar5->next = plVar7;\n          plVar7 = plVar5;\n        }\n        plVar4 = (lbitset_elt_struct *)&plVar4->prev;\n      } while ((lbitset_elt_struct *)(plVar6->words + (uVar3 - 3)) != plVar4);" do (compound_statement "{\n        plVar5 = plVar4->next;\n        if (plVar5 != (lbitset_elt_struct *)0x0) {\n          bVar1 = true;\n          plVar4->next = (lbitset_elt_struct *)0x0;\n          plVar5->next = plVar7;\n          plVar7 = plVar5;\n        }\n        plVar4 = (lbitset_elt_struct *)&plVar4->prev;\n      }" { (expression_statement "plVar5 = plVar4->next;" (assignment_expression "plVar5 = plVar4->next" identifier = (field_expression "plVar4->next" identifier -> field_identifier)) ;) (if_statement "if (plVar5 != (lbitset_elt_struct *)0x0) {\n          bVar1 = true;\n          plVar4->next = (lbitset_elt_struct *)0x0;\n          plVar5->next = plVar7;\n          plVar7 = plVar5;\n        }" if (parenthesized_expression "(plVar5 != (lbitset_elt_struct *)0x0)" ( (binary_expression "plVar5 != (lbitset_elt_struct *)0x0" identifier != (cast_expression "(lbitset_elt_struct *)0x0" ( (type_descriptor "lbitset_elt_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          bVar1 = true;\n          plVar4->next = (lbitset_elt_struct *)0x0;\n          plVar5->next = plVar7;\n          plVar7 = plVar5;\n        }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "plVar4->next = (lbitset_elt_struct *)0x0;" (assignment_expression "plVar4->next = (lbitset_elt_struct *)0x0" (field_expression "plVar4->next" identifier -> field_identifier) = (cast_expression "(lbitset_elt_struct *)0x0" ( (type_descriptor "lbitset_elt_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "plVar5->next = plVar7;" (assignment_expression "plVar5->next = plVar7" (field_expression "plVar5->next" identifier -> field_identifier) = identifier) ;) (expression_statement "plVar7 = plVar5;" (assignment_expression "plVar7 = plVar5" identifier = identifier) ;) })) (expression_statement "plVar4 = (lbitset_elt_struct *)&plVar4->prev;" (assignment_expression "plVar4 = (lbitset_elt_struct *)&plVar4->prev" identifier = (cast_expression "(lbitset_elt_struct *)&plVar4->prev" ( (type_descriptor "lbitset_elt_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&plVar4->prev" & (field_expression "plVar4->prev" identifier -> field_identifier)))) ;) }) while (parenthesized_expression "((lbitset_elt_struct *)(plVar6->words + (uVar3 - 3)) != plVar4)" ( (binary_expression "(lbitset_elt_struct *)(plVar6->words + (uVar3 - 3)) != plVar4" (cast_expression "(lbitset_elt_struct *)(plVar6->words + (uVar3 - 3))" ( (type_descriptor "lbitset_elt_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar6->words + (uVar3 - 3))" ( (binary_expression "plVar6->words + (uVar3 - 3)" (field_expression "plVar6->words" identifier -> field_identifier) + (parenthesized_expression "(uVar3 - 3)" ( (binary_expression "uVar3 - 3" identifier - number_literal) ))) ))) != identifier) )) ;) (if_statement "if (bVar1) {\n        *(lbitset_elt_struct **)(puVar2 + -0x18b0) = plVar7;\n      }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n        *(lbitset_elt_struct **)(puVar2 + -0x18b0) = plVar7;\n      }" { (expression_statement "*(lbitset_elt_struct **)(puVar2 + -0x18b0) = plVar7;" (assignment_expression "*(lbitset_elt_struct **)(puVar2 + -0x18b0) = plVar7" (pointer_expression "*(lbitset_elt_struct **)(puVar2 + -0x18b0)" * (cast_expression "(lbitset_elt_struct **)(puVar2 + -0x18b0)" ( (type_descriptor "lbitset_elt_struct **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + -0x18b0)" ( (binary_expression "puVar2 + -0x18b0" identifier + number_literal) )))) = identifier) ;) })) })) (expression_statement "(bset->b).cdata = (bitset_word *)0x0;" (assignment_expression "(bset->b).cdata = (bitset_word *)0x0" (field_expression "(bset->b).cdata" (parenthesized_expression "(bset->b)" ( (field_expression "bset->b" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(bitset_word *)0x0" ( (type_descriptor "bitset_word *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(bset->b).cindex = 0x7fffffff;" (assignment_expression "(bset->b).cindex = 0x7fffffff" (field_expression "(bset->b).cindex" (parenthesized_expression "(bset->b)" ( (field_expression "bset->b" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) })) (expression_statement "(*(code *)PTR_free_0008df9c)(plVar6);" (call_expression "(*(code *)PTR_free_0008df9c)(plVar6)" (parenthesized_expression "(*(code *)PTR_free_0008df9c)" ( (pointer_expression "*(code *)PTR_free_0008df9c" * (cast_expression "(code *)PTR_free_0008df9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(plVar6)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0005b96c(int param_1)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  \n  puVar2 = PTR_DAT_0008d618;\n  puVar6 = *(undefined4 **)(param_1 + 0x18);\n  if (*(int *)(param_1 + 0xc) != 0) {\n    uVar3 = *(int *)(param_1 + 0x10) + 0x3fU >> 6;\n    if (uVar3 != 0) {\n      bVar1 = false;\n      piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0);\n      puVar4 = puVar6;\n      do {\n        piVar5 = (int *)*puVar4;\n        if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }\n        puVar4 = puVar4 + 1;\n      } while (puVar6 + uVar3 != puVar4);\n      if (bVar1) {\n        *(int **)(puVar2 + -0x18b0) = piVar7;\n      }\n    }\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    *(undefined4 *)(param_1 + 4) = 0x7fffffff;\n  }\n  (*(code *)PTR_free_0008df9c)(puVar6);\n  return;\n}\n\n" (function_definition "void FUN_0005b96c(int param_1)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  \n  puVar2 = PTR_DAT_0008d618;\n  puVar6 = *(undefined4 **)(param_1 + 0x18);\n  if (*(int *)(param_1 + 0xc) != 0) {\n    uVar3 = *(int *)(param_1 + 0x10) + 0x3fU >> 6;\n    if (uVar3 != 0) {\n      bVar1 = false;\n      piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0);\n      puVar4 = puVar6;\n      do {\n        piVar5 = (int *)*puVar4;\n        if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }\n        puVar4 = puVar4 + 1;\n      } while (puVar6 + uVar3 != puVar4);\n      if (bVar1) {\n        *(int **)(puVar2 + -0x18b0) = piVar7;\n      }\n    }\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    *(undefined4 *)(param_1 + 4) = 0x7fffffff;\n  }\n  (*(code *)PTR_free_0008df9c)(puVar6);\n  return;\n}" primitive_type (function_declarator "FUN_0005b96c(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  undefined *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  \n  puVar2 = PTR_DAT_0008d618;\n  puVar6 = *(undefined4 **)(param_1 + 0x18);\n  if (*(int *)(param_1 + 0xc) != 0) {\n    uVar3 = *(int *)(param_1 + 0x10) + 0x3fU >> 6;\n    if (uVar3 != 0) {\n      bVar1 = false;\n      piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0);\n      puVar4 = puVar6;\n      do {\n        piVar5 = (int *)*puVar4;\n        if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }\n        puVar4 = puVar4 + 1;\n      } while (puVar6 + uVar3 != puVar4);\n      if (bVar1) {\n        *(int **)(puVar2 + -0x18b0) = piVar7;\n      }\n    }\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    *(undefined4 *)(param_1 + 4) = 0x7fffffff;\n  }\n  (*(code *)PTR_free_0008df9c)(puVar6);\n  return;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (expression_statement "puVar2 = PTR_DAT_0008d618;" (assignment_expression "puVar2 = PTR_DAT_0008d618" identifier = identifier) ;) (expression_statement "puVar6 = *(undefined4 **)(param_1 + 0x18);" (assignment_expression "puVar6 = *(undefined4 **)(param_1 + 0x18)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x18)" * (cast_expression "(undefined4 **)(param_1 + 0x18)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    uVar3 = *(int *)(param_1 + 0x10) + 0x3fU >> 6;\n    if (uVar3 != 0) {\n      bVar1 = false;\n      piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0);\n      puVar4 = puVar6;\n      do {\n        piVar5 = (int *)*puVar4;\n        if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }\n        puVar4 = puVar4 + 1;\n      } while (puVar6 + uVar3 != puVar4);\n      if (bVar1) {\n        *(int **)(puVar2 + -0x18b0) = piVar7;\n      }\n    }\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    *(undefined4 *)(param_1 + 4) = 0x7fffffff;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar3 = *(int *)(param_1 + 0x10) + 0x3fU >> 6;\n    if (uVar3 != 0) {\n      bVar1 = false;\n      piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0);\n      puVar4 = puVar6;\n      do {\n        piVar5 = (int *)*puVar4;\n        if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }\n        puVar4 = puVar4 + 1;\n      } while (puVar6 + uVar3 != puVar4);\n      if (bVar1) {\n        *(int **)(puVar2 + -0x18b0) = piVar7;\n      }\n    }\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    *(undefined4 *)(param_1 + 4) = 0x7fffffff;\n  }" { (expression_statement "uVar3 = *(int *)(param_1 + 0x10) + 0x3fU >> 6;" (assignment_expression "uVar3 = *(int *)(param_1 + 0x10) + 0x3fU >> 6" identifier = (binary_expression "*(int *)(param_1 + 0x10) + 0x3fU >> 6" (binary_expression "*(int *)(param_1 + 0x10) + 0x3fU" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + number_literal) >> number_literal)) ;) (if_statement "if (uVar3 != 0) {\n      bVar1 = false;\n      piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0);\n      puVar4 = puVar6;\n      do {\n        piVar5 = (int *)*puVar4;\n        if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }\n        puVar4 = puVar4 + 1;\n      } while (puVar6 + uVar3 != puVar4);\n      if (bVar1) {\n        *(int **)(puVar2 + -0x18b0) = piVar7;\n      }\n    }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      bVar1 = false;\n      piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0);\n      puVar4 = puVar6;\n      do {\n        piVar5 = (int *)*puVar4;\n        if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }\n        puVar4 = puVar4 + 1;\n      } while (puVar6 + uVar3 != puVar4);\n      if (bVar1) {\n        *(int **)(puVar2 + -0x18b0) = piVar7;\n      }\n    }" { (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" identifier = false) ;) (expression_statement "piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0);" (assignment_expression "piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0)" identifier = (pointer_expression "*(int **)(PTR_DAT_0008d618 + -0x18b0)" * (cast_expression "(int **)(PTR_DAT_0008d618 + -0x18b0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_0008d618 + -0x18b0)" ( (binary_expression "PTR_DAT_0008d618 + -0x18b0" identifier + number_literal) ))))) ;) (expression_statement "puVar4 = puVar6;" (assignment_expression "puVar4 = puVar6" identifier = identifier) ;) (do_statement "do {\n        piVar5 = (int *)*puVar4;\n        if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }\n        puVar4 = puVar4 + 1;\n      } while (puVar6 + uVar3 != puVar4);" do (compound_statement "{\n        piVar5 = (int *)*puVar4;\n        if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }\n        puVar4 = puVar4 + 1;\n      }" { (expression_statement "piVar5 = (int *)*puVar4;" (assignment_expression "piVar5 = (int *)*puVar4" identifier = (cast_expression "(int *)*puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) ;) (if_statement "if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }" if (parenthesized_expression "(piVar5 != (int *)0x0)" ( (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "*piVar5 = (int)piVar7;" (assignment_expression "*piVar5 = (int)piVar7" (pointer_expression "*piVar5" * identifier) = (cast_expression "(int)piVar7" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar7 = piVar5;" (assignment_expression "piVar7 = piVar5" identifier = identifier) ;) })) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar6 + uVar3 != puVar4)" ( (binary_expression "puVar6 + uVar3 != puVar4" (binary_expression "puVar6 + uVar3" identifier + identifier) != identifier) )) ;) (if_statement "if (bVar1) {\n        *(int **)(puVar2 + -0x18b0) = piVar7;\n      }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n        *(int **)(puVar2 + -0x18b0) = piVar7;\n      }" { (expression_statement "*(int **)(puVar2 + -0x18b0) = piVar7;" (assignment_expression "*(int **)(puVar2 + -0x18b0) = piVar7" (pointer_expression "*(int **)(puVar2 + -0x18b0)" * (cast_expression "(int **)(puVar2 + -0x18b0)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + -0x18b0)" ( (binary_expression "puVar2 + -0x18b0" identifier + number_literal) )))) = identifier) ;) })) })) (expression_statement "*(undefined4 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = 0x7fffffff;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0x7fffffff" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "(*(code *)PTR_free_0008df9c)(puVar6);" (call_expression "(*(code *)PTR_free_0008df9c)(puVar6)" (parenthesized_expression "(*(code *)PTR_free_0008df9c)" ( (pointer_expression "*(code *)PTR_free_0008df9c" * (cast_expression "(code *)PTR_free_0008df9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar6)" ( identifier ))) ;) (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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (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 IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) != IDENT) )) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0005b96c(int param_1)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  \n  puVar2 = PTR_DAT_0008d618;\n  puVar6 = *(undefined4 **)(param_1 + 0x18);\n  if (*(int *)(param_1 + 0xc) != 0) {\n    uVar3 = *(int *)(param_1 + 0x10) + 0x3fU >> 6;\n    if (uVar3 != 0) {\n      bVar1 = false;\n      piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0);\n      puVar4 = puVar6;\n      do {\n        piVar5 = (int *)*puVar4;\n        if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }\n        puVar4 = puVar4 + 1;\n      } while (puVar6 + uVar3 != puVar4);\n      if (bVar1) {\n        *(int **)(puVar2 + -0x18b0) = piVar7;\n      }\n    }\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    *(undefined4 *)(param_1 + 4) = 0x7fffffff;\n  }\n  (*(code *)PTR_free_0008df9c)(puVar6);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0005b96c(int param_1)" (identifier "FUN_0005b96c") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  bool bVar1;\n  undefined *puVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  \n  puVar2 = PTR_DAT_0008d618;\n  puVar6 = *(undefined4 **)(param_1 + 0x18);\n  if (*(int *)(param_1 + 0xc) != 0) {\n    uVar3 = *(int *)(param_1 + 0x10) + 0x3fU >> 6;\n    if (uVar3 != 0) {\n      bVar1 = false;\n      piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0);\n      puVar4 = puVar6;\n      do {\n        piVar5 = (int *)*puVar4;\n        if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }\n        puVar4 = puVar4 + 1;\n      } while (puVar6 + uVar3 != puVar4);\n      if (bVar1) {\n        *(int **)(puVar2 + -0x18b0) = piVar7;\n      }\n    }\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    *(undefined4 *)(param_1 + 4) = 0x7fffffff;\n  }\n  (*(code *)PTR_free_0008df9c)(puVar6);\n  return;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (expression_statement "puVar2 = PTR_DAT_0008d618;" (assignment_expression "puVar2 = PTR_DAT_0008d618" (identifier "puVar2") (= "=") (identifier "PTR_DAT_0008d618")) (; ";")) (expression_statement "puVar6 = *(undefined4 **)(param_1 + 0x18);" (assignment_expression "puVar6 = *(undefined4 **)(param_1 + 0x18)" (identifier "puVar6") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    uVar3 = *(int *)(param_1 + 0x10) + 0x3fU >> 6;\n    if (uVar3 != 0) {\n      bVar1 = false;\n      piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0);\n      puVar4 = puVar6;\n      do {\n        piVar5 = (int *)*puVar4;\n        if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }\n        puVar4 = puVar4 + 1;\n      } while (puVar6 + uVar3 != puVar4);\n      if (bVar1) {\n        *(int **)(puVar2 + -0x18b0) = piVar7;\n      }\n    }\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    *(undefined4 *)(param_1 + 4) = 0x7fffffff;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = *(int *)(param_1 + 0x10) + 0x3fU >> 6;\n    if (uVar3 != 0) {\n      bVar1 = false;\n      piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0);\n      puVar4 = puVar6;\n      do {\n        piVar5 = (int *)*puVar4;\n        if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }\n        puVar4 = puVar4 + 1;\n      } while (puVar6 + uVar3 != puVar4);\n      if (bVar1) {\n        *(int **)(puVar2 + -0x18b0) = piVar7;\n      }\n    }\n    *(undefined4 *)(param_1 + 0xc) = 0;\n    *(undefined4 *)(param_1 + 4) = 0x7fffffff;\n  }" ({ "{") (expression_statement "uVar3 = *(int *)(param_1 + 0x10) + 0x3fU >> 6;" (assignment_expression "uVar3 = *(int *)(param_1 + 0x10) + 0x3fU >> 6" (identifier "uVar3") (= "=") (binary_expression "*(int *)(param_1 + 0x10) + 0x3fU >> 6" (binary_expression "*(int *)(param_1 + 0x10) + 0x3fU" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "0x3fU")) (>> ">>") (number_literal "6"))) (; ";")) (if_statement "if (uVar3 != 0) {\n      bVar1 = false;\n      piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0);\n      puVar4 = puVar6;\n      do {\n        piVar5 = (int *)*puVar4;\n        if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }\n        puVar4 = puVar4 + 1;\n      } while (puVar6 + uVar3 != puVar4);\n      if (bVar1) {\n        *(int **)(puVar2 + -0x18b0) = piVar7;\n      }\n    }" (if "if") (parenthesized_expression "(uVar3 != 0)" (( "(") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      bVar1 = false;\n      piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0);\n      puVar4 = puVar6;\n      do {\n        piVar5 = (int *)*puVar4;\n        if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }\n        puVar4 = puVar4 + 1;\n      } while (puVar6 + uVar3 != puVar4);\n      if (bVar1) {\n        *(int **)(puVar2 + -0x18b0) = piVar7;\n      }\n    }" ({ "{") (expression_statement "bVar1 = false;" (assignment_expression "bVar1 = false" (identifier "bVar1") (= "=") (false "false")) (; ";")) (expression_statement "piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0);" (assignment_expression "piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0)" (identifier "piVar7") (= "=") (pointer_expression "*(int **)(PTR_DAT_0008d618 + -0x18b0)" (* "*") (cast_expression "(int **)(PTR_DAT_0008d618 + -0x18b0)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_0008d618 + -0x18b0)" (( "(") (binary_expression "PTR_DAT_0008d618 + -0x18b0" (identifier "PTR_DAT_0008d618") (+ "+") (number_literal "-0x18b0")) () ")"))))) (; ";")) (expression_statement "puVar4 = puVar6;" (assignment_expression "puVar4 = puVar6" (identifier "puVar4") (= "=") (identifier "puVar6")) (; ";")) (do_statement "do {\n        piVar5 = (int *)*puVar4;\n        if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }\n        puVar4 = puVar4 + 1;\n      } while (puVar6 + uVar3 != puVar4);" (do "do") (compound_statement "{\n        piVar5 = (int *)*puVar4;\n        if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }\n        puVar4 = puVar4 + 1;\n      }" ({ "{") (expression_statement "piVar5 = (int *)*puVar4;" (assignment_expression "piVar5 = (int *)*puVar4" (identifier "piVar5") (= "=") (cast_expression "(int *)*puVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar4" (* "*") (identifier "puVar4")))) (; ";")) (if_statement "if (piVar5 != (int *)0x0) {\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }" (if "if") (parenthesized_expression "(piVar5 != (int *)0x0)" (( "(") (binary_expression "piVar5 != (int *)0x0" (identifier "piVar5") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          bVar1 = true;\n          *puVar4 = 0;\n          *piVar5 = (int)piVar7;\n          piVar7 = piVar5;\n        }" ({ "{") (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" (identifier "bVar1") (= "=") (true "true")) (; ";")) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*piVar5 = (int)piVar7;" (assignment_expression "*piVar5 = (int)piVar7" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (cast_expression "(int)piVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar7"))) (; ";")) (expression_statement "piVar7 = piVar5;" (assignment_expression "piVar7 = piVar5" (identifier "piVar7") (= "=") (identifier "piVar5")) (; ";")) (} "}"))) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" (identifier "puVar4") (= "=") (binary_expression "puVar4 + 1" (identifier "puVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar6 + uVar3 != puVar4)" (( "(") (binary_expression "puVar6 + uVar3 != puVar4" (binary_expression "puVar6 + uVar3" (identifier "puVar6") (+ "+") (identifier "uVar3")) (!= "!=") (identifier "puVar4")) () ")")) (; ";")) (if_statement "if (bVar1) {\n        *(int **)(puVar2 + -0x18b0) = piVar7;\n      }" (if "if") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (compound_statement "{\n        *(int **)(puVar2 + -0x18b0) = piVar7;\n      }" ({ "{") (expression_statement "*(int **)(puVar2 + -0x18b0) = piVar7;" (assignment_expression "*(int **)(puVar2 + -0x18b0) = piVar7" (pointer_expression "*(int **)(puVar2 + -0x18b0)" (* "*") (cast_expression "(int **)(puVar2 + -0x18b0)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar2 + -0x18b0)" (( "(") (binary_expression "puVar2 + -0x18b0" (identifier "puVar2") (+ "+") (number_literal "-0x18b0")) () ")")))) (= "=") (identifier "piVar7")) (; ";")) (} "}"))) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 4) = 0x7fffffff;" (assignment_expression "*(undefined4 *)(param_1 + 4) = 0x7fffffff" (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0x7fffffff")) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_free_0008df9c)(puVar6);" (call_expression "(*(code *)PTR_free_0008df9c)(puVar6)" (parenthesized_expression "(*(code *)PTR_free_0008df9c)" (( "(") (pointer_expression "*(code *)PTR_free_0008df9c" (* "*") (cast_expression "(code *)PTR_free_0008df9c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0008df9c"))) () ")")) (argument_list "(puVar6)" (( "(") (identifier "puVar6") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 bset)

{
  bool bVar1;
  type_2 *var_5;
  type_3 var_1;
  type_4 *var_4;
  type_4 *var_3;
  type_4 *plVar6;
  type_4 *plVar7;
  
  var_5 = var_2;
  plVar6 = (bset->l).tail;
  if ((bset->b).cdata != (type_5 *)0x0) {
    var_1 = (bset->a).b.n_bits + 0x3f >> 6;
    if (var_1 != 0) {
      bVar1 = false;
      plVar7 = *(type_4 **)(var_2 + -0x18b0);
      var_4 = plVar6;
      do {
        var_3 = var_4->next;
        if (var_3 != (type_4 *)0x0) {
          bVar1 = true;
          var_4->next = (type_4 *)0x0;
          var_3->next = plVar7;
          plVar7 = var_3;
        }
        var_4 = (type_4 *)&var_4->prev;
      } while ((type_4 *)(plVar6->words + (var_1 - 3)) != var_4);
      if (bVar1) {
        *(type_4 **)(var_5 + -0x18b0) = plVar7;
      }
    }
    (bset->b).cdata = (type_5 *)0x0;
    (bset->b).cindex = 0x7fffffff;
  }
  (*(type_6 *)PTR_free_0008df9c)(plVar6);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (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 declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (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))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (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)) 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: (false))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (true))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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: (identifier) right: (number_literal))))) right: (number_literal))) (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))))) (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 (identifier)))) (return_statement))))

void MASKED(int param_1)

{
  bool bVar1;
  undefined *puVar2;
  uint uVar3;
  undefined4 *puVar4;
  int *piVar5;
  undefined4 *puVar6;
  int *piVar7;
  
  puVar2 = PTR_DAT_0008d618;
  puVar6 = *(undefined4 **)(param_1 + 0x18);
  if (*(int *)(param_1 + 0xc) != 0) {
    uVar3 = *(int *)(param_1 + 0x10) + 0x3fU >> 6;
    if (uVar3 != 0) {
      bVar1 = false;
      piVar7 = *(int **)(PTR_DAT_0008d618 + -0x18b0);
      puVar4 = puVar6;
      do {
        piVar5 = (int *)*puVar4;
        if (piVar5 != (int *)0x0) {
          bVar1 = true;
          *puVar4 = 0;
          *piVar5 = (int)piVar7;
          piVar7 = piVar5;
        }
        puVar4 = puVar4 + 1;
      } while (puVar6 + uVar3 != puVar4);
      if (bVar1) {
        *(int **)(puVar2 + -0x18b0) = piVar7;
      }
    }
    *(undefined4 *)(param_1 + 0xc) = 0;
    *(undefined4 *)(param_1 + 4) = 0x7fffffff;
  }
  (*(code *)PTR_free_0008df9c)(puVar6);
  return;
}

