
_Bool transfer_entries(Hash_table *dst,Hash_table *src,_Bool safe)

{
  hash_entry *phVar1;
  size_t sVar2;
  hash_entry *phVar3;
  hash_entry *phVar4;
  undefined3 in_register_00000018;
  void *pvVar5;
  hash_entry *phVar6;
  
  phVar3 = src->bucket_limit;
  phVar6 = src->bucket;
  if (phVar3 <= phVar6) {
    return true;
  }
  do {
    while (pvVar5 = phVar6->data, pvVar5 == (void *)0x0) {
LAB_000149a8:
      phVar6 = phVar6 + 1;
      if (phVar3 <= phVar6) {
        return true;
      }
    }
    phVar3 = phVar6->next;
    if (phVar6->next == (hash_entry *)0x0) {
      phVar6->next = (hash_entry *)0x0;
    }
    else {
      do {
        while( true ) {
          pvVar5 = phVar3->data;
          phVar1 = safe_hasher(dst,pvVar5);
          phVar4 = phVar3->next;
          if (phVar1->data != (void *)0x0) break;
          sVar2 = dst->n_buckets_used;
          phVar1->data = pvVar5;
          dst->n_buckets_used = sVar2 + 1;
          phVar3->data = (void *)0x0;
          phVar3->next = dst->free_entry_list;
          dst->free_entry_list = phVar3;
          phVar3 = phVar4;
          if (phVar4 == (hash_entry *)0x0) goto LAB_00014a34;
        }
        phVar3->next = phVar1->next;
        phVar1->next = phVar3;
        phVar3 = phVar4;
      } while (phVar4 != (hash_entry *)0x0);
LAB_00014a34:
      pvVar5 = phVar6->data;
      phVar6->next = (hash_entry *)0x0;
    }
    if (CONCAT31(in_register_00000018,safe) == 0) {
      phVar3 = safe_hasher(dst,pvVar5);
      if (phVar3->data == (void *)0x0) {
        sVar2 = dst->n_buckets_used;
        phVar3->data = pvVar5;
        dst->n_buckets_used = sVar2 + 1;
      }
      else {
        phVar1 = dst->free_entry_list;
        if (phVar1 == (hash_entry *)0x0) {
          phVar1 = (hash_entry *)(*(code *)PTR_malloc_00032380)(8);
          if (phVar1 == (hash_entry *)0x0) {
            return false;
          }
        }
        else {
          dst->free_entry_list = phVar1->next;
        }
        phVar4 = phVar3->next;
        phVar1->data = pvVar5;
        phVar1->next = phVar4;
        phVar3->next = phVar1;
      }
      sVar2 = src->n_buckets_used;
      phVar6->data = (void *)0x0;
      phVar3 = src->bucket_limit;
      src->n_buckets_used = sVar2 - 1;
      goto LAB_000149a8;
    }
    phVar3 = src->bucket_limit;
    phVar6 = phVar6 + 1;
    if (phVar3 <= phVar6) {
      return true;
    }
  } while( true );
}



undefined4 FUN_0001494c(int param_1,undefined4 *param_2,int param_3)

{
  int *piVar1;
  int *piVar2;
  int *piVar3;
  int iVar4;
  int iVar5;
  int *piVar6;
  
  piVar2 = (int *)param_2[1];
  piVar6 = (int *)*param_2;
  if (piVar2 <= piVar6) {
    return 1;
  }
  do {
    while (iVar5 = *piVar6, iVar5 == 0) {
LAB_000149a8:
      piVar6 = piVar6 + 2;
      if (piVar2 <= piVar6) {
        return 1;
      }
    }
    piVar2 = (int *)piVar6[1];
    if ((int *)piVar6[1] == (int *)0x0) {
      piVar6[1] = 0;
    }
    else {
      do {
        while( true ) {
          iVar5 = *piVar2;
          piVar1 = (int *)FUN_000146e8(param_1,iVar5);
          piVar3 = (int *)piVar2[1];
          if (*piVar1 != 0) break;
          iVar4 = *(int *)(param_1 + 0xc);
          *piVar1 = iVar5;
          *(int *)(param_1 + 0xc) = iVar4 + 1;
          *piVar2 = 0;
          piVar2[1] = *(int *)(param_1 + 0x24);
          *(int **)(param_1 + 0x24) = piVar2;
          piVar2 = piVar3;
          if (piVar3 == (int *)0x0) goto LAB_00014a34;
        }
        piVar2[1] = piVar1[1];
        piVar1[1] = (int)piVar2;
        piVar2 = piVar3;
      } while (piVar3 != (int *)0x0);
LAB_00014a34:
      iVar5 = *piVar6;
      piVar6[1] = 0;
    }
    if (param_3 == 0) {
      piVar2 = (int *)FUN_000146e8(param_1,iVar5);
      if (*piVar2 == 0) {
        iVar4 = *(int *)(param_1 + 0xc);
        *piVar2 = iVar5;
        *(int *)(param_1 + 0xc) = iVar4 + 1;
      }
      else {
        piVar1 = *(int **)(param_1 + 0x24);
        if (piVar1 == (int *)0x0) {
          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);
          if (piVar1 == (int *)0x0) {
            return 0;
          }
        }
        else {
          *(int *)(param_1 + 0x24) = piVar1[1];
        }
        iVar4 = piVar2[1];
        *piVar1 = iVar5;
        piVar1[1] = iVar4;
        piVar2[1] = (int)piVar1;
      }
      iVar5 = param_2[3];
      *piVar6 = 0;
      piVar2 = (int *)param_2[1];
      param_2[3] = iVar5 + -1;
      goto LAB_000149a8;
    }
    piVar2 = (int *)param_2[1];
    piVar6 = piVar6 + 2;
    if (piVar2 <= piVar6) {
      return 1;
    }
  } while( true );
}


lui gp,0x2
addiu gp,gp,0x5784
addu gp,gp,t9
addiu sp,sp,-0x38
lw v1,0x4(a1)
sw s3,0x24(sp)
sw gp,0x10(sp)
sw ra,0x34(sp)
sw s6,0x30(sp)
sw s5,0x2c(sp)
sw s4,0x28(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
lw s3,0x0(a1)
sltu v0,s3,v1
beq v0,zero,0x00014a58
_lw s4,-0x7fcc(gp)
or s6,a2,zero
or s1,a0,zero
or s5,a1,zero
b 0x000149b8
_addiu s4,s4,0x46e8
addiu s3,s3,0x8
sltu v0,s3,v1
beq v0,zero,0x00014a5c
_lw ra,0x34(sp)
lw s2,0x0(s3)
beq s2,zero,0x000149a8
_nop
lw s0,0x4(s3)
bne s0,zero,0x000149ec
_nop
b 0x00014a3c
_sw zero,0x4(s3)
lw a0,0x4(v0)
sw a0,0x4(s0)
sw s0,0x4(v0)
beq v1,zero,0x00014a34
_or s0,v1,zero
lw s2,0x0(s0)
or a0,s1,zero
or t9,s4,zero
bal 0x000146e8
_or a1,s2,zero
lw a0,0x0(v0)
bne a0,zero,0x000149d8
_lw v1,0x4(s0)
lw a0,0xc(s1)
sw s2,0x0(v0)
addiu a0,a0,0x1
sw a0,0xc(s1)
sw zero,0x0(s0)
lw v0,0x24(s1)
sw v0,0x4(s0)
sw s0,0x24(s1)
bne v1,zero,0x000149ec
_or s0,v1,zero
lw s2,0x0(s3)
sw zero,0x4(s3)
beq s6,zero,0x00014a84
_or t9,s4,zero
lw v1,0x4(s5)
addiu s3,s3,0x8
sltu v0,s3,v1
bne v0,zero,0x000149b8
_nop
lw ra,0x34(sp)
li v0,0x1
lw s6,0x30(sp)
lw s5,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x38
or a1,s2,zero
bal 0x000146e8
_or a0,s1,zero
or s0,v0,zero
lw v0,0x0(v0)
beq v0,zero,0x00014adc
_lw gp,0x10(sp)
lw v0,0x24(s1)
beq v0,zero,0x00014af0
_lw t9,-0x7d50(gp)
lw v1,0x4(v0)
sw v1,0x24(s1)
lw v1,0x4(s0)
sw s2,0x0(v0)
sw v1,0x4(v0)
sw v0,0x4(s0)
lw v0,0xc(s5)
sw zero,0x0(s3)
lw v1,0x4(s5)
addiu v0,v0,-0x1
b 0x000149a8
_sw v0,0xc(s5)
lw v0,0xc(s1)
sw s2,0x0(s0)
addiu v0,v0,0x1
b 0x00014ac4
_sw v0,0xc(s1)
jalr t9
_li a0,0x8
bne v0,zero,0x00014ab4
_lw ra,0x34(sp)
or v0,zero,zero
lw s6,0x30(sp)
lw s5,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x38
(translation_unit "undefined4 FUN_0001494c(int param_1,undefined4 *param_2,int param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  \n  piVar2 = (int *)param_2[1];\n  piVar6 = (int *)*param_2;\n  if (piVar2 <= piVar6) {\n    return 1;\n  }\n  do {\n    while (iVar5 = *piVar6, iVar5 == 0) {\nLAB_000149a8:\n      piVar6 = piVar6 + 2;\n      if (piVar2 <= piVar6) {\n        return 1;\n      }\n    }\n    piVar2 = (int *)piVar6[1];\n    if ((int *)piVar6[1] == (int *)0x0) {\n      piVar6[1] = 0;\n    }\n    else {\n      do {\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      } while (piVar3 != (int *)0x0);\nLAB_00014a34:\n      iVar5 = *piVar6;\n      piVar6[1] = 0;\n    }\n    if (param_3 == 0) {\n      piVar2 = (int *)FUN_000146e8(param_1,iVar5);\n      if (*piVar2 == 0) {\n        iVar4 = *(int *)(param_1 + 0xc);\n        *piVar2 = iVar5;\n        *(int *)(param_1 + 0xc) = iVar4 + 1;\n      }\n      else {\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }\n      iVar5 = param_2[3];\n      *piVar6 = 0;\n      piVar2 = (int *)param_2[1];\n      param_2[3] = iVar5 + -1;\n      goto LAB_000149a8;\n    }\n    piVar2 = (int *)param_2[1];\n    piVar6 = piVar6 + 2;\n    if (piVar2 <= piVar6) {\n      return 1;\n    }\n  } while( true );\n}\n\n" (function_definition "undefined4 FUN_0001494c(int param_1,undefined4 *param_2,int param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  \n  piVar2 = (int *)param_2[1];\n  piVar6 = (int *)*param_2;\n  if (piVar2 <= piVar6) {\n    return 1;\n  }\n  do {\n    while (iVar5 = *piVar6, iVar5 == 0) {\nLAB_000149a8:\n      piVar6 = piVar6 + 2;\n      if (piVar2 <= piVar6) {\n        return 1;\n      }\n    }\n    piVar2 = (int *)piVar6[1];\n    if ((int *)piVar6[1] == (int *)0x0) {\n      piVar6[1] = 0;\n    }\n    else {\n      do {\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      } while (piVar3 != (int *)0x0);\nLAB_00014a34:\n      iVar5 = *piVar6;\n      piVar6[1] = 0;\n    }\n    if (param_3 == 0) {\n      piVar2 = (int *)FUN_000146e8(param_1,iVar5);\n      if (*piVar2 == 0) {\n        iVar4 = *(int *)(param_1 + 0xc);\n        *piVar2 = iVar5;\n        *(int *)(param_1 + 0xc) = iVar4 + 1;\n      }\n      else {\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }\n      iVar5 = param_2[3];\n      *piVar6 = 0;\n      piVar2 = (int *)param_2[1];\n      param_2[3] = iVar5 + -1;\n      goto LAB_000149a8;\n    }\n    piVar2 = (int *)param_2[1];\n    piVar6 = piVar6 + 2;\n    if (piVar2 <= piVar6) {\n      return 1;\n    }\n  } while( true );\n}" type_identifier (function_declarator "FUN_0001494c(int param_1,undefined4 *param_2,int param_3)" identifier (parameter_list "(int param_1,undefined4 *param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  \n  piVar2 = (int *)param_2[1];\n  piVar6 = (int *)*param_2;\n  if (piVar2 <= piVar6) {\n    return 1;\n  }\n  do {\n    while (iVar5 = *piVar6, iVar5 == 0) {\nLAB_000149a8:\n      piVar6 = piVar6 + 2;\n      if (piVar2 <= piVar6) {\n        return 1;\n      }\n    }\n    piVar2 = (int *)piVar6[1];\n    if ((int *)piVar6[1] == (int *)0x0) {\n      piVar6[1] = 0;\n    }\n    else {\n      do {\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      } while (piVar3 != (int *)0x0);\nLAB_00014a34:\n      iVar5 = *piVar6;\n      piVar6[1] = 0;\n    }\n    if (param_3 == 0) {\n      piVar2 = (int *)FUN_000146e8(param_1,iVar5);\n      if (*piVar2 == 0) {\n        iVar4 = *(int *)(param_1 + 0xc);\n        *piVar2 = iVar5;\n        *(int *)(param_1 + 0xc) = iVar4 + 1;\n      }\n      else {\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }\n      iVar5 = param_2[3];\n      *piVar6 = 0;\n      piVar2 = (int *)param_2[1];\n      param_2[3] = iVar5 + -1;\n      goto LAB_000149a8;\n    }\n    piVar2 = (int *)param_2[1];\n    piVar6 = piVar6 + 2;\n    if (piVar2 <= piVar6) {\n      return 1;\n    }\n  } while( true );\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (expression_statement "piVar2 = (int *)param_2[1];" (assignment_expression "piVar2 = (int *)param_2[1]" identifier = (cast_expression "(int *)param_2[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) ;) (expression_statement "piVar6 = (int *)*param_2;" (assignment_expression "piVar6 = (int *)*param_2" identifier = (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (piVar2 <= piVar6) {\n    return 1;\n  }" if (parenthesized_expression "(piVar2 <= piVar6)" ( (binary_expression "piVar2 <= piVar6" identifier <= identifier) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (do_statement "do {\n    while (iVar5 = *piVar6, iVar5 == 0) {\nLAB_000149a8:\n      piVar6 = piVar6 + 2;\n      if (piVar2 <= piVar6) {\n        return 1;\n      }\n    }\n    piVar2 = (int *)piVar6[1];\n    if ((int *)piVar6[1] == (int *)0x0) {\n      piVar6[1] = 0;\n    }\n    else {\n      do {\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      } while (piVar3 != (int *)0x0);\nLAB_00014a34:\n      iVar5 = *piVar6;\n      piVar6[1] = 0;\n    }\n    if (param_3 == 0) {\n      piVar2 = (int *)FUN_000146e8(param_1,iVar5);\n      if (*piVar2 == 0) {\n        iVar4 = *(int *)(param_1 + 0xc);\n        *piVar2 = iVar5;\n        *(int *)(param_1 + 0xc) = iVar4 + 1;\n      }\n      else {\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }\n      iVar5 = param_2[3];\n      *piVar6 = 0;\n      piVar2 = (int *)param_2[1];\n      param_2[3] = iVar5 + -1;\n      goto LAB_000149a8;\n    }\n    piVar2 = (int *)param_2[1];\n    piVar6 = piVar6 + 2;\n    if (piVar2 <= piVar6) {\n      return 1;\n    }\n  } while( true );" do (compound_statement "{\n    while (iVar5 = *piVar6, iVar5 == 0) {\nLAB_000149a8:\n      piVar6 = piVar6 + 2;\n      if (piVar2 <= piVar6) {\n        return 1;\n      }\n    }\n    piVar2 = (int *)piVar6[1];\n    if ((int *)piVar6[1] == (int *)0x0) {\n      piVar6[1] = 0;\n    }\n    else {\n      do {\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      } while (piVar3 != (int *)0x0);\nLAB_00014a34:\n      iVar5 = *piVar6;\n      piVar6[1] = 0;\n    }\n    if (param_3 == 0) {\n      piVar2 = (int *)FUN_000146e8(param_1,iVar5);\n      if (*piVar2 == 0) {\n        iVar4 = *(int *)(param_1 + 0xc);\n        *piVar2 = iVar5;\n        *(int *)(param_1 + 0xc) = iVar4 + 1;\n      }\n      else {\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }\n      iVar5 = param_2[3];\n      *piVar6 = 0;\n      piVar2 = (int *)param_2[1];\n      param_2[3] = iVar5 + -1;\n      goto LAB_000149a8;\n    }\n    piVar2 = (int *)param_2[1];\n    piVar6 = piVar6 + 2;\n    if (piVar2 <= piVar6) {\n      return 1;\n    }\n  }" { (while_statement "while (iVar5 = *piVar6, iVar5 == 0) {\nLAB_000149a8:\n      piVar6 = piVar6 + 2;\n      if (piVar2 <= piVar6) {\n        return 1;\n      }\n    }" while (parenthesized_expression "(iVar5 = *piVar6, iVar5 == 0)" ( (comma_expression "iVar5 = *piVar6, iVar5 == 0" (assignment_expression "iVar5 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) , (binary_expression "iVar5 == 0" identifier == number_literal)) )) (compound_statement "{\nLAB_000149a8:\n      piVar6 = piVar6 + 2;\n      if (piVar2 <= piVar6) {\n        return 1;\n      }\n    }" { (labeled_statement "LAB_000149a8:\n      piVar6 = piVar6 + 2;" statement_identifier : (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" identifier = (binary_expression "piVar6 + 2" identifier + number_literal)) ;)) (if_statement "if (piVar2 <= piVar6) {\n        return 1;\n      }" if (parenthesized_expression "(piVar2 <= piVar6)" ( (binary_expression "piVar2 <= piVar6" identifier <= identifier) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) })) (expression_statement "piVar2 = (int *)piVar6[1];" (assignment_expression "piVar2 = (int *)piVar6[1]" identifier = (cast_expression "(int *)piVar6[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[1]" identifier [ number_literal ]))) ;) (if_statement "if ((int *)piVar6[1] == (int *)0x0) {\n      piVar6[1] = 0;\n    }\n    else {\n      do {\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      } while (piVar3 != (int *)0x0);\nLAB_00014a34:\n      iVar5 = *piVar6;\n      piVar6[1] = 0;\n    }" if (parenthesized_expression "((int *)piVar6[1] == (int *)0x0)" ( (binary_expression "(int *)piVar6[1] == (int *)0x0" (cast_expression "(int *)piVar6[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[1]" identifier [ number_literal ])) == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      piVar6[1] = 0;\n    }" { (expression_statement "piVar6[1] = 0;" (assignment_expression "piVar6[1] = 0" (subscript_expression "piVar6[1]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n      do {\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      } while (piVar3 != (int *)0x0);\nLAB_00014a34:\n      iVar5 = *piVar6;\n      piVar6[1] = 0;\n    }" else (compound_statement "{\n      do {\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      } while (piVar3 != (int *)0x0);\nLAB_00014a34:\n      iVar5 = *piVar6;\n      piVar6[1] = 0;\n    }" { (do_statement "do {\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      } while (piVar3 != (int *)0x0);" do (compound_statement "{\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      }" { (while_statement "while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }" { (expression_statement "iVar5 = *piVar2;" (assignment_expression "iVar5 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "piVar1 = (int *)FUN_000146e8(param_1,iVar5);" (assignment_expression "piVar1 = (int *)FUN_000146e8(param_1,iVar5)" identifier = (cast_expression "(int *)FUN_000146e8(param_1,iVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000146e8(param_1,iVar5)" identifier (argument_list "(param_1,iVar5)" ( identifier , identifier ))))) ;) (expression_statement "piVar3 = (int *)piVar2[1];" (assignment_expression "piVar3 = (int *)piVar2[1]" identifier = (cast_expression "(int *)piVar2[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ]))) ;) (if_statement "if (*piVar1 != 0) break;" if (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" identifier = (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) ))))) ;) (expression_statement "*piVar1 = iVar5;" (assignment_expression "*piVar1 = iVar5" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "*(int *)(param_1 + 0xc) = iVar4 + 1;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar4 + 1" (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) )))) = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (expression_statement "piVar2[1] = *(int *)(param_1 + 0x24);" (assignment_expression "piVar2[1] = *(int *)(param_1 + 0x24)" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "*(int **)(param_1 + 0x24) = piVar2;" (assignment_expression "*(int **)(param_1 + 0x24) = piVar2" (pointer_expression "*(int **)(param_1 + 0x24)" * (cast_expression "(int **)(param_1 + 0x24)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = identifier) ;) (expression_statement "piVar2 = piVar3;" (assignment_expression "piVar2 = piVar3" identifier = identifier) ;) (if_statement "if (piVar3 == (int *)0x0) goto LAB_00014a34;" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00014a34;" goto statement_identifier ;)) })) (expression_statement "piVar2[1] = piVar1[1];" (assignment_expression "piVar2[1] = piVar1[1]" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) (expression_statement "piVar1[1] = (int)piVar2;" (assignment_expression "piVar1[1] = (int)piVar2" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar2 = piVar3;" (assignment_expression "piVar2 = piVar3" identifier = identifier) ;) }) while (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (labeled_statement "LAB_00014a34:\n      iVar5 = *piVar6;" statement_identifier : (expression_statement "iVar5 = *piVar6;" (assignment_expression "iVar5 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;)) (expression_statement "piVar6[1] = 0;" (assignment_expression "piVar6[1] = 0" (subscript_expression "piVar6[1]" identifier [ number_literal ]) = number_literal) ;) }))) (if_statement "if (param_3 == 0) {\n      piVar2 = (int *)FUN_000146e8(param_1,iVar5);\n      if (*piVar2 == 0) {\n        iVar4 = *(int *)(param_1 + 0xc);\n        *piVar2 = iVar5;\n        *(int *)(param_1 + 0xc) = iVar4 + 1;\n      }\n      else {\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }\n      iVar5 = param_2[3];\n      *piVar6 = 0;\n      piVar2 = (int *)param_2[1];\n      param_2[3] = iVar5 + -1;\n      goto LAB_000149a8;\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      piVar2 = (int *)FUN_000146e8(param_1,iVar5);\n      if (*piVar2 == 0) {\n        iVar4 = *(int *)(param_1 + 0xc);\n        *piVar2 = iVar5;\n        *(int *)(param_1 + 0xc) = iVar4 + 1;\n      }\n      else {\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }\n      iVar5 = param_2[3];\n      *piVar6 = 0;\n      piVar2 = (int *)param_2[1];\n      param_2[3] = iVar5 + -1;\n      goto LAB_000149a8;\n    }" { (expression_statement "piVar2 = (int *)FUN_000146e8(param_1,iVar5);" (assignment_expression "piVar2 = (int *)FUN_000146e8(param_1,iVar5)" identifier = (cast_expression "(int *)FUN_000146e8(param_1,iVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000146e8(param_1,iVar5)" identifier (argument_list "(param_1,iVar5)" ( identifier , identifier ))))) ;) (if_statement "if (*piVar2 == 0) {\n        iVar4 = *(int *)(param_1 + 0xc);\n        *piVar2 = iVar5;\n        *(int *)(param_1 + 0xc) = iVar4 + 1;\n      }\n      else {\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }" if (parenthesized_expression "(*piVar2 == 0)" ( (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" * identifier) == number_literal) )) (compound_statement "{\n        iVar4 = *(int *)(param_1 + 0xc);\n        *piVar2 = iVar5;\n        *(int *)(param_1 + 0xc) = iVar4 + 1;\n      }" { (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" identifier = (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) ))))) ;) (expression_statement "*piVar2 = iVar5;" (assignment_expression "*piVar2 = iVar5" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "*(int *)(param_1 + 0xc) = iVar4 + 1;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar4 + 1" (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) )))) = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }" else (compound_statement "{\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }" { (expression_statement "piVar1 = *(int **)(param_1 + 0x24);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x24)" identifier = (pointer_expression "*(int **)(param_1 + 0x24)" * (cast_expression "(int **)(param_1 + 0x24)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }" { (expression_statement "piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);" (assignment_expression "piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8)" identifier = (cast_expression "(int *)(*(code *)PTR_malloc_00032380)(8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_00032380)(8)" (parenthesized_expression "(*(code *)PTR_malloc_00032380)" ( (pointer_expression "*(code *)PTR_malloc_00032380" * (cast_expression "(code *)PTR_malloc_00032380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(8)" ( number_literal ))))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n            return 0;\n          }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            return 0;\n          }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }" else (compound_statement "{\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }" { (expression_statement "*(int *)(param_1 + 0x24) = piVar1[1];" (assignment_expression "*(int *)(param_1 + 0x24) = piVar1[1]" (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) }))) (expression_statement "iVar4 = piVar2[1];" (assignment_expression "iVar4 = piVar2[1]" identifier = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "*piVar1 = iVar5;" (assignment_expression "*piVar1 = iVar5" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "piVar1[1] = iVar4;" (assignment_expression "piVar1[1] = iVar4" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar2[1] = (int)piVar1;" (assignment_expression "piVar2[1] = (int)piVar1" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }))) (expression_statement "iVar5 = param_2[3];" (assignment_expression "iVar5 = param_2[3]" identifier = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (expression_statement "*piVar6 = 0;" (assignment_expression "*piVar6 = 0" (pointer_expression "*piVar6" * identifier) = number_literal) ;) (expression_statement "piVar2 = (int *)param_2[1];" (assignment_expression "piVar2 = (int *)param_2[1]" identifier = (cast_expression "(int *)param_2[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) ;) (expression_statement "param_2[3] = iVar5 + -1;" (assignment_expression "param_2[3] = iVar5 + -1" (subscript_expression "param_2[3]" identifier [ number_literal ]) = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (goto_statement "goto LAB_000149a8;" goto statement_identifier ;) })) (expression_statement "piVar2 = (int *)param_2[1];" (assignment_expression "piVar2 = (int *)param_2[1]" identifier = (cast_expression "(int *)param_2[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) ;) (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" identifier = (binary_expression "piVar6 + 2" identifier + number_literal)) ;) (if_statement "if (piVar2 <= piVar6) {\n      return 1;\n    }" if (parenthesized_expression "(piVar2 <= piVar6)" ( (binary_expression "piVar2 <= piVar6" identifier <= identifier) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "_Bool transfer_entries(Hash_table *dst,Hash_table *src,_Bool safe)\n\n{\n  hash_entry *phVar1;\n  size_t sVar2;\n  hash_entry *phVar3;\n  hash_entry *phVar4;\n  undefined3 in_register_00000018;\n  void *pvVar5;\n  hash_entry *phVar6;\n  \n  phVar3 = src->bucket_limit;\n  phVar6 = src->bucket;\n  if (phVar3 <= phVar6) {\n    return true;\n  }\n  do {\n    while (pvVar5 = phVar6->data, pvVar5 == (void *)0x0) {\nLAB_000149a8:\n      phVar6 = phVar6 + 1;\n      if (phVar3 <= phVar6) {\n        return true;\n      }\n    }\n    phVar3 = phVar6->next;\n    if (phVar6->next == (hash_entry *)0x0) {\n      phVar6->next = (hash_entry *)0x0;\n    }\n    else {\n      do {\n        while( true ) {\n          pvVar5 = phVar3->data;\n          phVar1 = safe_hasher(dst,pvVar5);\n          phVar4 = phVar3->next;\n          if (phVar1->data != (void *)0x0) break;\n          sVar2 = dst->n_buckets_used;\n          phVar1->data = pvVar5;\n          dst->n_buckets_used = sVar2 + 1;\n          phVar3->data = (void *)0x0;\n          phVar3->next = dst->free_entry_list;\n          dst->free_entry_list = phVar3;\n          phVar3 = phVar4;\n          if (phVar4 == (hash_entry *)0x0) goto LAB_00014a34;\n        }\n        phVar3->next = phVar1->next;\n        phVar1->next = phVar3;\n        phVar3 = phVar4;\n      } while (phVar4 != (hash_entry *)0x0);\nLAB_00014a34:\n      pvVar5 = phVar6->data;\n      phVar6->next = (hash_entry *)0x0;\n    }\n    if (CONCAT31(in_register_00000018,safe) == 0) {\n      phVar3 = safe_hasher(dst,pvVar5);\n      if (phVar3->data == (void *)0x0) {\n        sVar2 = dst->n_buckets_used;\n        phVar3->data = pvVar5;\n        dst->n_buckets_used = sVar2 + 1;\n      }\n      else {\n        phVar1 = dst->free_entry_list;\n        if (phVar1 == (hash_entry *)0x0) {\n          phVar1 = (hash_entry *)(*(code *)PTR_malloc_00032380)(8);\n          if (phVar1 == (hash_entry *)0x0) {\n            return false;\n          }\n        }\n        else {\n          dst->free_entry_list = phVar1->next;\n        }\n        phVar4 = phVar3->next;\n        phVar1->data = pvVar5;\n        phVar1->next = phVar4;\n        phVar3->next = phVar1;\n      }\n      sVar2 = src->n_buckets_used;\n      phVar6->data = (void *)0x0;\n      phVar3 = src->bucket_limit;\n      src->n_buckets_used = sVar2 - 1;\n      goto LAB_000149a8;\n    }\n    phVar3 = src->bucket_limit;\n    phVar6 = phVar6 + 1;\n    if (phVar3 <= phVar6) {\n      return true;\n    }\n  } while( true );\n}\n\n" (function_definition "_Bool transfer_entries(Hash_table *dst,Hash_table *src,_Bool safe)\n\n{\n  hash_entry *phVar1;\n  size_t sVar2;\n  hash_entry *phVar3;\n  hash_entry *phVar4;\n  undefined3 in_register_00000018;\n  void *pvVar5;\n  hash_entry *phVar6;\n  \n  phVar3 = src->bucket_limit;\n  phVar6 = src->bucket;\n  if (phVar3 <= phVar6) {\n    return true;\n  }\n  do {\n    while (pvVar5 = phVar6->data, pvVar5 == (void *)0x0) {\nLAB_000149a8:\n      phVar6 = phVar6 + 1;\n      if (phVar3 <= phVar6) {\n        return true;\n      }\n    }\n    phVar3 = phVar6->next;\n    if (phVar6->next == (hash_entry *)0x0) {\n      phVar6->next = (hash_entry *)0x0;\n    }\n    else {\n      do {\n        while( true ) {\n          pvVar5 = phVar3->data;\n          phVar1 = safe_hasher(dst,pvVar5);\n          phVar4 = phVar3->next;\n          if (phVar1->data != (void *)0x0) break;\n          sVar2 = dst->n_buckets_used;\n          phVar1->data = pvVar5;\n          dst->n_buckets_used = sVar2 + 1;\n          phVar3->data = (void *)0x0;\n          phVar3->next = dst->free_entry_list;\n          dst->free_entry_list = phVar3;\n          phVar3 = phVar4;\n          if (phVar4 == (hash_entry *)0x0) goto LAB_00014a34;\n        }\n        phVar3->next = phVar1->next;\n        phVar1->next = phVar3;\n        phVar3 = phVar4;\n      } while (phVar4 != (hash_entry *)0x0);\nLAB_00014a34:\n      pvVar5 = phVar6->data;\n      phVar6->next = (hash_entry *)0x0;\n    }\n    if (CONCAT31(in_register_00000018,safe) == 0) {\n      phVar3 = safe_hasher(dst,pvVar5);\n      if (phVar3->data == (void *)0x0) {\n        sVar2 = dst->n_buckets_used;\n        phVar3->data = pvVar5;\n        dst->n_buckets_used = sVar2 + 1;\n      }\n      else {\n        phVar1 = dst->free_entry_list;\n        if (phVar1 == (hash_entry *)0x0) {\n          phVar1 = (hash_entry *)(*(code *)PTR_malloc_00032380)(8);\n          if (phVar1 == (hash_entry *)0x0) {\n            return false;\n          }\n        }\n        else {\n          dst->free_entry_list = phVar1->next;\n        }\n        phVar4 = phVar3->next;\n        phVar1->data = pvVar5;\n        phVar1->next = phVar4;\n        phVar3->next = phVar1;\n      }\n      sVar2 = src->n_buckets_used;\n      phVar6->data = (void *)0x0;\n      phVar3 = src->bucket_limit;\n      src->n_buckets_used = sVar2 - 1;\n      goto LAB_000149a8;\n    }\n    phVar3 = src->bucket_limit;\n    phVar6 = phVar6 + 1;\n    if (phVar3 <= phVar6) {\n      return true;\n    }\n  } while( true );\n}" type_identifier (function_declarator "transfer_entries(Hash_table *dst,Hash_table *src,_Bool safe)" identifier (parameter_list "(Hash_table *dst,Hash_table *src,_Bool safe)" ( (parameter_declaration "Hash_table *dst" type_identifier (pointer_declarator "*dst" * identifier)) , (parameter_declaration "Hash_table *src" type_identifier (pointer_declarator "*src" * identifier)) , (parameter_declaration "_Bool safe" type_identifier identifier) ))) (compound_statement "{\n  hash_entry *phVar1;\n  size_t sVar2;\n  hash_entry *phVar3;\n  hash_entry *phVar4;\n  undefined3 in_register_00000018;\n  void *pvVar5;\n  hash_entry *phVar6;\n  \n  phVar3 = src->bucket_limit;\n  phVar6 = src->bucket;\n  if (phVar3 <= phVar6) {\n    return true;\n  }\n  do {\n    while (pvVar5 = phVar6->data, pvVar5 == (void *)0x0) {\nLAB_000149a8:\n      phVar6 = phVar6 + 1;\n      if (phVar3 <= phVar6) {\n        return true;\n      }\n    }\n    phVar3 = phVar6->next;\n    if (phVar6->next == (hash_entry *)0x0) {\n      phVar6->next = (hash_entry *)0x0;\n    }\n    else {\n      do {\n        while( true ) {\n          pvVar5 = phVar3->data;\n          phVar1 = safe_hasher(dst,pvVar5);\n          phVar4 = phVar3->next;\n          if (phVar1->data != (void *)0x0) break;\n          sVar2 = dst->n_buckets_used;\n          phVar1->data = pvVar5;\n          dst->n_buckets_used = sVar2 + 1;\n          phVar3->data = (void *)0x0;\n          phVar3->next = dst->free_entry_list;\n          dst->free_entry_list = phVar3;\n          phVar3 = phVar4;\n          if (phVar4 == (hash_entry *)0x0) goto LAB_00014a34;\n        }\n        phVar3->next = phVar1->next;\n        phVar1->next = phVar3;\n        phVar3 = phVar4;\n      } while (phVar4 != (hash_entry *)0x0);\nLAB_00014a34:\n      pvVar5 = phVar6->data;\n      phVar6->next = (hash_entry *)0x0;\n    }\n    if (CONCAT31(in_register_00000018,safe) == 0) {\n      phVar3 = safe_hasher(dst,pvVar5);\n      if (phVar3->data == (void *)0x0) {\n        sVar2 = dst->n_buckets_used;\n        phVar3->data = pvVar5;\n        dst->n_buckets_used = sVar2 + 1;\n      }\n      else {\n        phVar1 = dst->free_entry_list;\n        if (phVar1 == (hash_entry *)0x0) {\n          phVar1 = (hash_entry *)(*(code *)PTR_malloc_00032380)(8);\n          if (phVar1 == (hash_entry *)0x0) {\n            return false;\n          }\n        }\n        else {\n          dst->free_entry_list = phVar1->next;\n        }\n        phVar4 = phVar3->next;\n        phVar1->data = pvVar5;\n        phVar1->next = phVar4;\n        phVar3->next = phVar1;\n      }\n      sVar2 = src->n_buckets_used;\n      phVar6->data = (void *)0x0;\n      phVar3 = src->bucket_limit;\n      src->n_buckets_used = sVar2 - 1;\n      goto LAB_000149a8;\n    }\n    phVar3 = src->bucket_limit;\n    phVar6 = phVar6 + 1;\n    if (phVar3 <= phVar6) {\n      return true;\n    }\n  } while( true );\n}" { (declaration "hash_entry *phVar1;" type_identifier (pointer_declarator "*phVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "hash_entry *phVar3;" type_identifier (pointer_declarator "*phVar3" * identifier) ;) (declaration "hash_entry *phVar4;" type_identifier (pointer_declarator "*phVar4" * identifier) ;) (declaration "undefined3 in_register_00000018;" type_identifier identifier ;) (declaration "void *pvVar5;" primitive_type (pointer_declarator "*pvVar5" * identifier) ;) (declaration "hash_entry *phVar6;" type_identifier (pointer_declarator "*phVar6" * identifier) ;) (expression_statement "phVar3 = src->bucket_limit;" (assignment_expression "phVar3 = src->bucket_limit" identifier = (field_expression "src->bucket_limit" identifier -> field_identifier)) ;) (expression_statement "phVar6 = src->bucket;" (assignment_expression "phVar6 = src->bucket" identifier = (field_expression "src->bucket" identifier -> field_identifier)) ;) (if_statement "if (phVar3 <= phVar6) {\n    return true;\n  }" if (parenthesized_expression "(phVar3 <= phVar6)" ( (binary_expression "phVar3 <= phVar6" identifier <= identifier) )) (compound_statement "{\n    return true;\n  }" { (return_statement "return true;" return true ;) })) (do_statement "do {\n    while (pvVar5 = phVar6->data, pvVar5 == (void *)0x0) {\nLAB_000149a8:\n      phVar6 = phVar6 + 1;\n      if (phVar3 <= phVar6) {\n        return true;\n      }\n    }\n    phVar3 = phVar6->next;\n    if (phVar6->next == (hash_entry *)0x0) {\n      phVar6->next = (hash_entry *)0x0;\n    }\n    else {\n      do {\n        while( true ) {\n          pvVar5 = phVar3->data;\n          phVar1 = safe_hasher(dst,pvVar5);\n          phVar4 = phVar3->next;\n          if (phVar1->data != (void *)0x0) break;\n          sVar2 = dst->n_buckets_used;\n          phVar1->data = pvVar5;\n          dst->n_buckets_used = sVar2 + 1;\n          phVar3->data = (void *)0x0;\n          phVar3->next = dst->free_entry_list;\n          dst->free_entry_list = phVar3;\n          phVar3 = phVar4;\n          if (phVar4 == (hash_entry *)0x0) goto LAB_00014a34;\n        }\n        phVar3->next = phVar1->next;\n        phVar1->next = phVar3;\n        phVar3 = phVar4;\n      } while (phVar4 != (hash_entry *)0x0);\nLAB_00014a34:\n      pvVar5 = phVar6->data;\n      phVar6->next = (hash_entry *)0x0;\n    }\n    if (CONCAT31(in_register_00000018,safe) == 0) {\n      phVar3 = safe_hasher(dst,pvVar5);\n      if (phVar3->data == (void *)0x0) {\n        sVar2 = dst->n_buckets_used;\n        phVar3->data = pvVar5;\n        dst->n_buckets_used = sVar2 + 1;\n      }\n      else {\n        phVar1 = dst->free_entry_list;\n        if (phVar1 == (hash_entry *)0x0) {\n          phVar1 = (hash_entry *)(*(code *)PTR_malloc_00032380)(8);\n          if (phVar1 == (hash_entry *)0x0) {\n            return false;\n          }\n        }\n        else {\n          dst->free_entry_list = phVar1->next;\n        }\n        phVar4 = phVar3->next;\n        phVar1->data = pvVar5;\n        phVar1->next = phVar4;\n        phVar3->next = phVar1;\n      }\n      sVar2 = src->n_buckets_used;\n      phVar6->data = (void *)0x0;\n      phVar3 = src->bucket_limit;\n      src->n_buckets_used = sVar2 - 1;\n      goto LAB_000149a8;\n    }\n    phVar3 = src->bucket_limit;\n    phVar6 = phVar6 + 1;\n    if (phVar3 <= phVar6) {\n      return true;\n    }\n  } while( true );" do (compound_statement "{\n    while (pvVar5 = phVar6->data, pvVar5 == (void *)0x0) {\nLAB_000149a8:\n      phVar6 = phVar6 + 1;\n      if (phVar3 <= phVar6) {\n        return true;\n      }\n    }\n    phVar3 = phVar6->next;\n    if (phVar6->next == (hash_entry *)0x0) {\n      phVar6->next = (hash_entry *)0x0;\n    }\n    else {\n      do {\n        while( true ) {\n          pvVar5 = phVar3->data;\n          phVar1 = safe_hasher(dst,pvVar5);\n          phVar4 = phVar3->next;\n          if (phVar1->data != (void *)0x0) break;\n          sVar2 = dst->n_buckets_used;\n          phVar1->data = pvVar5;\n          dst->n_buckets_used = sVar2 + 1;\n          phVar3->data = (void *)0x0;\n          phVar3->next = dst->free_entry_list;\n          dst->free_entry_list = phVar3;\n          phVar3 = phVar4;\n          if (phVar4 == (hash_entry *)0x0) goto LAB_00014a34;\n        }\n        phVar3->next = phVar1->next;\n        phVar1->next = phVar3;\n        phVar3 = phVar4;\n      } while (phVar4 != (hash_entry *)0x0);\nLAB_00014a34:\n      pvVar5 = phVar6->data;\n      phVar6->next = (hash_entry *)0x0;\n    }\n    if (CONCAT31(in_register_00000018,safe) == 0) {\n      phVar3 = safe_hasher(dst,pvVar5);\n      if (phVar3->data == (void *)0x0) {\n        sVar2 = dst->n_buckets_used;\n        phVar3->data = pvVar5;\n        dst->n_buckets_used = sVar2 + 1;\n      }\n      else {\n        phVar1 = dst->free_entry_list;\n        if (phVar1 == (hash_entry *)0x0) {\n          phVar1 = (hash_entry *)(*(code *)PTR_malloc_00032380)(8);\n          if (phVar1 == (hash_entry *)0x0) {\n            return false;\n          }\n        }\n        else {\n          dst->free_entry_list = phVar1->next;\n        }\n        phVar4 = phVar3->next;\n        phVar1->data = pvVar5;\n        phVar1->next = phVar4;\n        phVar3->next = phVar1;\n      }\n      sVar2 = src->n_buckets_used;\n      phVar6->data = (void *)0x0;\n      phVar3 = src->bucket_limit;\n      src->n_buckets_used = sVar2 - 1;\n      goto LAB_000149a8;\n    }\n    phVar3 = src->bucket_limit;\n    phVar6 = phVar6 + 1;\n    if (phVar3 <= phVar6) {\n      return true;\n    }\n  }" { (while_statement "while (pvVar5 = phVar6->data, pvVar5 == (void *)0x0) {\nLAB_000149a8:\n      phVar6 = phVar6 + 1;\n      if (phVar3 <= phVar6) {\n        return true;\n      }\n    }" while (parenthesized_expression "(pvVar5 = phVar6->data, pvVar5 == (void *)0x0)" ( (comma_expression "pvVar5 = phVar6->data, pvVar5 == (void *)0x0" (assignment_expression "pvVar5 = phVar6->data" identifier = (field_expression "phVar6->data" identifier -> field_identifier)) , (binary_expression "pvVar5 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\nLAB_000149a8:\n      phVar6 = phVar6 + 1;\n      if (phVar3 <= phVar6) {\n        return true;\n      }\n    }" { (labeled_statement "LAB_000149a8:\n      phVar6 = phVar6 + 1;" statement_identifier : (expression_statement "phVar6 = phVar6 + 1;" (assignment_expression "phVar6 = phVar6 + 1" identifier = (binary_expression "phVar6 + 1" identifier + number_literal)) ;)) (if_statement "if (phVar3 <= phVar6) {\n        return true;\n      }" if (parenthesized_expression "(phVar3 <= phVar6)" ( (binary_expression "phVar3 <= phVar6" identifier <= identifier) )) (compound_statement "{\n        return true;\n      }" { (return_statement "return true;" return true ;) })) })) (expression_statement "phVar3 = phVar6->next;" (assignment_expression "phVar3 = phVar6->next" identifier = (field_expression "phVar6->next" identifier -> field_identifier)) ;) (if_statement "if (phVar6->next == (hash_entry *)0x0) {\n      phVar6->next = (hash_entry *)0x0;\n    }\n    else {\n      do {\n        while( true ) {\n          pvVar5 = phVar3->data;\n          phVar1 = safe_hasher(dst,pvVar5);\n          phVar4 = phVar3->next;\n          if (phVar1->data != (void *)0x0) break;\n          sVar2 = dst->n_buckets_used;\n          phVar1->data = pvVar5;\n          dst->n_buckets_used = sVar2 + 1;\n          phVar3->data = (void *)0x0;\n          phVar3->next = dst->free_entry_list;\n          dst->free_entry_list = phVar3;\n          phVar3 = phVar4;\n          if (phVar4 == (hash_entry *)0x0) goto LAB_00014a34;\n        }\n        phVar3->next = phVar1->next;\n        phVar1->next = phVar3;\n        phVar3 = phVar4;\n      } while (phVar4 != (hash_entry *)0x0);\nLAB_00014a34:\n      pvVar5 = phVar6->data;\n      phVar6->next = (hash_entry *)0x0;\n    }" if (parenthesized_expression "(phVar6->next == (hash_entry *)0x0)" ( (binary_expression "phVar6->next == (hash_entry *)0x0" (field_expression "phVar6->next" identifier -> field_identifier) == (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      phVar6->next = (hash_entry *)0x0;\n    }" { (expression_statement "phVar6->next = (hash_entry *)0x0;" (assignment_expression "phVar6->next = (hash_entry *)0x0" (field_expression "phVar6->next" identifier -> field_identifier) = (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      do {\n        while( true ) {\n          pvVar5 = phVar3->data;\n          phVar1 = safe_hasher(dst,pvVar5);\n          phVar4 = phVar3->next;\n          if (phVar1->data != (void *)0x0) break;\n          sVar2 = dst->n_buckets_used;\n          phVar1->data = pvVar5;\n          dst->n_buckets_used = sVar2 + 1;\n          phVar3->data = (void *)0x0;\n          phVar3->next = dst->free_entry_list;\n          dst->free_entry_list = phVar3;\n          phVar3 = phVar4;\n          if (phVar4 == (hash_entry *)0x0) goto LAB_00014a34;\n        }\n        phVar3->next = phVar1->next;\n        phVar1->next = phVar3;\n        phVar3 = phVar4;\n      } while (phVar4 != (hash_entry *)0x0);\nLAB_00014a34:\n      pvVar5 = phVar6->data;\n      phVar6->next = (hash_entry *)0x0;\n    }" else (compound_statement "{\n      do {\n        while( true ) {\n          pvVar5 = phVar3->data;\n          phVar1 = safe_hasher(dst,pvVar5);\n          phVar4 = phVar3->next;\n          if (phVar1->data != (void *)0x0) break;\n          sVar2 = dst->n_buckets_used;\n          phVar1->data = pvVar5;\n          dst->n_buckets_used = sVar2 + 1;\n          phVar3->data = (void *)0x0;\n          phVar3->next = dst->free_entry_list;\n          dst->free_entry_list = phVar3;\n          phVar3 = phVar4;\n          if (phVar4 == (hash_entry *)0x0) goto LAB_00014a34;\n        }\n        phVar3->next = phVar1->next;\n        phVar1->next = phVar3;\n        phVar3 = phVar4;\n      } while (phVar4 != (hash_entry *)0x0);\nLAB_00014a34:\n      pvVar5 = phVar6->data;\n      phVar6->next = (hash_entry *)0x0;\n    }" { (do_statement "do {\n        while( true ) {\n          pvVar5 = phVar3->data;\n          phVar1 = safe_hasher(dst,pvVar5);\n          phVar4 = phVar3->next;\n          if (phVar1->data != (void *)0x0) break;\n          sVar2 = dst->n_buckets_used;\n          phVar1->data = pvVar5;\n          dst->n_buckets_used = sVar2 + 1;\n          phVar3->data = (void *)0x0;\n          phVar3->next = dst->free_entry_list;\n          dst->free_entry_list = phVar3;\n          phVar3 = phVar4;\n          if (phVar4 == (hash_entry *)0x0) goto LAB_00014a34;\n        }\n        phVar3->next = phVar1->next;\n        phVar1->next = phVar3;\n        phVar3 = phVar4;\n      } while (phVar4 != (hash_entry *)0x0);" do (compound_statement "{\n        while( true ) {\n          pvVar5 = phVar3->data;\n          phVar1 = safe_hasher(dst,pvVar5);\n          phVar4 = phVar3->next;\n          if (phVar1->data != (void *)0x0) break;\n          sVar2 = dst->n_buckets_used;\n          phVar1->data = pvVar5;\n          dst->n_buckets_used = sVar2 + 1;\n          phVar3->data = (void *)0x0;\n          phVar3->next = dst->free_entry_list;\n          dst->free_entry_list = phVar3;\n          phVar3 = phVar4;\n          if (phVar4 == (hash_entry *)0x0) goto LAB_00014a34;\n        }\n        phVar3->next = phVar1->next;\n        phVar1->next = phVar3;\n        phVar3 = phVar4;\n      }" { (while_statement "while( true ) {\n          pvVar5 = phVar3->data;\n          phVar1 = safe_hasher(dst,pvVar5);\n          phVar4 = phVar3->next;\n          if (phVar1->data != (void *)0x0) break;\n          sVar2 = dst->n_buckets_used;\n          phVar1->data = pvVar5;\n          dst->n_buckets_used = sVar2 + 1;\n          phVar3->data = (void *)0x0;\n          phVar3->next = dst->free_entry_list;\n          dst->free_entry_list = phVar3;\n          phVar3 = phVar4;\n          if (phVar4 == (hash_entry *)0x0) goto LAB_00014a34;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          pvVar5 = phVar3->data;\n          phVar1 = safe_hasher(dst,pvVar5);\n          phVar4 = phVar3->next;\n          if (phVar1->data != (void *)0x0) break;\n          sVar2 = dst->n_buckets_used;\n          phVar1->data = pvVar5;\n          dst->n_buckets_used = sVar2 + 1;\n          phVar3->data = (void *)0x0;\n          phVar3->next = dst->free_entry_list;\n          dst->free_entry_list = phVar3;\n          phVar3 = phVar4;\n          if (phVar4 == (hash_entry *)0x0) goto LAB_00014a34;\n        }" { (expression_statement "pvVar5 = phVar3->data;" (assignment_expression "pvVar5 = phVar3->data" identifier = (field_expression "phVar3->data" identifier -> field_identifier)) ;) (expression_statement "phVar1 = safe_hasher(dst,pvVar5);" (assignment_expression "phVar1 = safe_hasher(dst,pvVar5)" identifier = (call_expression "safe_hasher(dst,pvVar5)" identifier (argument_list "(dst,pvVar5)" ( identifier , identifier )))) ;) (expression_statement "phVar4 = phVar3->next;" (assignment_expression "phVar4 = phVar3->next" identifier = (field_expression "phVar3->next" identifier -> field_identifier)) ;) (if_statement "if (phVar1->data != (void *)0x0) break;" if (parenthesized_expression "(phVar1->data != (void *)0x0)" ( (binary_expression "phVar1->data != (void *)0x0" (field_expression "phVar1->data" identifier -> field_identifier) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "sVar2 = dst->n_buckets_used;" (assignment_expression "sVar2 = dst->n_buckets_used" identifier = (field_expression "dst->n_buckets_used" identifier -> field_identifier)) ;) (expression_statement "phVar1->data = pvVar5;" (assignment_expression "phVar1->data = pvVar5" (field_expression "phVar1->data" identifier -> field_identifier) = identifier) ;) (expression_statement "dst->n_buckets_used = sVar2 + 1;" (assignment_expression "dst->n_buckets_used = sVar2 + 1" (field_expression "dst->n_buckets_used" identifier -> field_identifier) = (binary_expression "sVar2 + 1" identifier + number_literal)) ;) (expression_statement "phVar3->data = (void *)0x0;" (assignment_expression "phVar3->data = (void *)0x0" (field_expression "phVar3->data" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "phVar3->next = dst->free_entry_list;" (assignment_expression "phVar3->next = dst->free_entry_list" (field_expression "phVar3->next" identifier -> field_identifier) = (field_expression "dst->free_entry_list" identifier -> field_identifier)) ;) (expression_statement "dst->free_entry_list = phVar3;" (assignment_expression "dst->free_entry_list = phVar3" (field_expression "dst->free_entry_list" identifier -> field_identifier) = identifier) ;) (expression_statement "phVar3 = phVar4;" (assignment_expression "phVar3 = phVar4" identifier = identifier) ;) (if_statement "if (phVar4 == (hash_entry *)0x0) goto LAB_00014a34;" if (parenthesized_expression "(phVar4 == (hash_entry *)0x0)" ( (binary_expression "phVar4 == (hash_entry *)0x0" identifier == (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00014a34;" goto statement_identifier ;)) })) (expression_statement "phVar3->next = phVar1->next;" (assignment_expression "phVar3->next = phVar1->next" (field_expression "phVar3->next" identifier -> field_identifier) = (field_expression "phVar1->next" identifier -> field_identifier)) ;) (expression_statement "phVar1->next = phVar3;" (assignment_expression "phVar1->next = phVar3" (field_expression "phVar1->next" identifier -> field_identifier) = identifier) ;) (expression_statement "phVar3 = phVar4;" (assignment_expression "phVar3 = phVar4" identifier = identifier) ;) }) while (parenthesized_expression "(phVar4 != (hash_entry *)0x0)" ( (binary_expression "phVar4 != (hash_entry *)0x0" identifier != (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (labeled_statement "LAB_00014a34:\n      pvVar5 = phVar6->data;" statement_identifier : (expression_statement "pvVar5 = phVar6->data;" (assignment_expression "pvVar5 = phVar6->data" identifier = (field_expression "phVar6->data" identifier -> field_identifier)) ;)) (expression_statement "phVar6->next = (hash_entry *)0x0;" (assignment_expression "phVar6->next = (hash_entry *)0x0" (field_expression "phVar6->next" identifier -> field_identifier) = (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) (if_statement "if (CONCAT31(in_register_00000018,safe) == 0) {\n      phVar3 = safe_hasher(dst,pvVar5);\n      if (phVar3->data == (void *)0x0) {\n        sVar2 = dst->n_buckets_used;\n        phVar3->data = pvVar5;\n        dst->n_buckets_used = sVar2 + 1;\n      }\n      else {\n        phVar1 = dst->free_entry_list;\n        if (phVar1 == (hash_entry *)0x0) {\n          phVar1 = (hash_entry *)(*(code *)PTR_malloc_00032380)(8);\n          if (phVar1 == (hash_entry *)0x0) {\n            return false;\n          }\n        }\n        else {\n          dst->free_entry_list = phVar1->next;\n        }\n        phVar4 = phVar3->next;\n        phVar1->data = pvVar5;\n        phVar1->next = phVar4;\n        phVar3->next = phVar1;\n      }\n      sVar2 = src->n_buckets_used;\n      phVar6->data = (void *)0x0;\n      phVar3 = src->bucket_limit;\n      src->n_buckets_used = sVar2 - 1;\n      goto LAB_000149a8;\n    }" if (parenthesized_expression "(CONCAT31(in_register_00000018,safe) == 0)" ( (binary_expression "CONCAT31(in_register_00000018,safe) == 0" (call_expression "CONCAT31(in_register_00000018,safe)" identifier (argument_list "(in_register_00000018,safe)" ( identifier , identifier ))) == number_literal) )) (compound_statement "{\n      phVar3 = safe_hasher(dst,pvVar5);\n      if (phVar3->data == (void *)0x0) {\n        sVar2 = dst->n_buckets_used;\n        phVar3->data = pvVar5;\n        dst->n_buckets_used = sVar2 + 1;\n      }\n      else {\n        phVar1 = dst->free_entry_list;\n        if (phVar1 == (hash_entry *)0x0) {\n          phVar1 = (hash_entry *)(*(code *)PTR_malloc_00032380)(8);\n          if (phVar1 == (hash_entry *)0x0) {\n            return false;\n          }\n        }\n        else {\n          dst->free_entry_list = phVar1->next;\n        }\n        phVar4 = phVar3->next;\n        phVar1->data = pvVar5;\n        phVar1->next = phVar4;\n        phVar3->next = phVar1;\n      }\n      sVar2 = src->n_buckets_used;\n      phVar6->data = (void *)0x0;\n      phVar3 = src->bucket_limit;\n      src->n_buckets_used = sVar2 - 1;\n      goto LAB_000149a8;\n    }" { (expression_statement "phVar3 = safe_hasher(dst,pvVar5);" (assignment_expression "phVar3 = safe_hasher(dst,pvVar5)" identifier = (call_expression "safe_hasher(dst,pvVar5)" identifier (argument_list "(dst,pvVar5)" ( identifier , identifier )))) ;) (if_statement "if (phVar3->data == (void *)0x0) {\n        sVar2 = dst->n_buckets_used;\n        phVar3->data = pvVar5;\n        dst->n_buckets_used = sVar2 + 1;\n      }\n      else {\n        phVar1 = dst->free_entry_list;\n        if (phVar1 == (hash_entry *)0x0) {\n          phVar1 = (hash_entry *)(*(code *)PTR_malloc_00032380)(8);\n          if (phVar1 == (hash_entry *)0x0) {\n            return false;\n          }\n        }\n        else {\n          dst->free_entry_list = phVar1->next;\n        }\n        phVar4 = phVar3->next;\n        phVar1->data = pvVar5;\n        phVar1->next = phVar4;\n        phVar3->next = phVar1;\n      }" if (parenthesized_expression "(phVar3->data == (void *)0x0)" ( (binary_expression "phVar3->data == (void *)0x0" (field_expression "phVar3->data" identifier -> field_identifier) == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        sVar2 = dst->n_buckets_used;\n        phVar3->data = pvVar5;\n        dst->n_buckets_used = sVar2 + 1;\n      }" { (expression_statement "sVar2 = dst->n_buckets_used;" (assignment_expression "sVar2 = dst->n_buckets_used" identifier = (field_expression "dst->n_buckets_used" identifier -> field_identifier)) ;) (expression_statement "phVar3->data = pvVar5;" (assignment_expression "phVar3->data = pvVar5" (field_expression "phVar3->data" identifier -> field_identifier) = identifier) ;) (expression_statement "dst->n_buckets_used = sVar2 + 1;" (assignment_expression "dst->n_buckets_used = sVar2 + 1" (field_expression "dst->n_buckets_used" identifier -> field_identifier) = (binary_expression "sVar2 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n        phVar1 = dst->free_entry_list;\n        if (phVar1 == (hash_entry *)0x0) {\n          phVar1 = (hash_entry *)(*(code *)PTR_malloc_00032380)(8);\n          if (phVar1 == (hash_entry *)0x0) {\n            return false;\n          }\n        }\n        else {\n          dst->free_entry_list = phVar1->next;\n        }\n        phVar4 = phVar3->next;\n        phVar1->data = pvVar5;\n        phVar1->next = phVar4;\n        phVar3->next = phVar1;\n      }" else (compound_statement "{\n        phVar1 = dst->free_entry_list;\n        if (phVar1 == (hash_entry *)0x0) {\n          phVar1 = (hash_entry *)(*(code *)PTR_malloc_00032380)(8);\n          if (phVar1 == (hash_entry *)0x0) {\n            return false;\n          }\n        }\n        else {\n          dst->free_entry_list = phVar1->next;\n        }\n        phVar4 = phVar3->next;\n        phVar1->data = pvVar5;\n        phVar1->next = phVar4;\n        phVar3->next = phVar1;\n      }" { (expression_statement "phVar1 = dst->free_entry_list;" (assignment_expression "phVar1 = dst->free_entry_list" identifier = (field_expression "dst->free_entry_list" identifier -> field_identifier)) ;) (if_statement "if (phVar1 == (hash_entry *)0x0) {\n          phVar1 = (hash_entry *)(*(code *)PTR_malloc_00032380)(8);\n          if (phVar1 == (hash_entry *)0x0) {\n            return false;\n          }\n        }\n        else {\n          dst->free_entry_list = phVar1->next;\n        }" if (parenthesized_expression "(phVar1 == (hash_entry *)0x0)" ( (binary_expression "phVar1 == (hash_entry *)0x0" identifier == (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          phVar1 = (hash_entry *)(*(code *)PTR_malloc_00032380)(8);\n          if (phVar1 == (hash_entry *)0x0) {\n            return false;\n          }\n        }" { (expression_statement "phVar1 = (hash_entry *)(*(code *)PTR_malloc_00032380)(8);" (assignment_expression "phVar1 = (hash_entry *)(*(code *)PTR_malloc_00032380)(8)" identifier = (cast_expression "(hash_entry *)(*(code *)PTR_malloc_00032380)(8)" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_00032380)(8)" (parenthesized_expression "(*(code *)PTR_malloc_00032380)" ( (pointer_expression "*(code *)PTR_malloc_00032380" * (cast_expression "(code *)PTR_malloc_00032380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(8)" ( number_literal ))))) ;) (if_statement "if (phVar1 == (hash_entry *)0x0) {\n            return false;\n          }" if (parenthesized_expression "(phVar1 == (hash_entry *)0x0)" ( (binary_expression "phVar1 == (hash_entry *)0x0" identifier == (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            return false;\n          }" { (return_statement "return false;" return false ;) })) }) (else_clause "else {\n          dst->free_entry_list = phVar1->next;\n        }" else (compound_statement "{\n          dst->free_entry_list = phVar1->next;\n        }" { (expression_statement "dst->free_entry_list = phVar1->next;" (assignment_expression "dst->free_entry_list = phVar1->next" (field_expression "dst->free_entry_list" identifier -> field_identifier) = (field_expression "phVar1->next" identifier -> field_identifier)) ;) }))) (expression_statement "phVar4 = phVar3->next;" (assignment_expression "phVar4 = phVar3->next" identifier = (field_expression "phVar3->next" identifier -> field_identifier)) ;) (expression_statement "phVar1->data = pvVar5;" (assignment_expression "phVar1->data = pvVar5" (field_expression "phVar1->data" identifier -> field_identifier) = identifier) ;) (expression_statement "phVar1->next = phVar4;" (assignment_expression "phVar1->next = phVar4" (field_expression "phVar1->next" identifier -> field_identifier) = identifier) ;) (expression_statement "phVar3->next = phVar1;" (assignment_expression "phVar3->next = phVar1" (field_expression "phVar3->next" identifier -> field_identifier) = identifier) ;) }))) (expression_statement "sVar2 = src->n_buckets_used;" (assignment_expression "sVar2 = src->n_buckets_used" identifier = (field_expression "src->n_buckets_used" identifier -> field_identifier)) ;) (expression_statement "phVar6->data = (void *)0x0;" (assignment_expression "phVar6->data = (void *)0x0" (field_expression "phVar6->data" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "phVar3 = src->bucket_limit;" (assignment_expression "phVar3 = src->bucket_limit" identifier = (field_expression "src->bucket_limit" identifier -> field_identifier)) ;) (expression_statement "src->n_buckets_used = sVar2 - 1;" (assignment_expression "src->n_buckets_used = sVar2 - 1" (field_expression "src->n_buckets_used" identifier -> field_identifier) = (binary_expression "sVar2 - 1" identifier - number_literal)) ;) (goto_statement "goto LAB_000149a8;" goto statement_identifier ;) })) (expression_statement "phVar3 = src->bucket_limit;" (assignment_expression "phVar3 = src->bucket_limit" identifier = (field_expression "src->bucket_limit" identifier -> field_identifier)) ;) (expression_statement "phVar6 = phVar6 + 1;" (assignment_expression "phVar6 = phVar6 + 1" identifier = (binary_expression "phVar6 + 1" identifier + number_literal)) ;) (if_statement "if (phVar3 <= phVar6) {\n      return true;\n    }" if (parenthesized_expression "(phVar3 <= phVar6)" ( (binary_expression "phVar3 <= phVar6" identifier <= identifier) )) (compound_statement "{\n      return true;\n    }" { (return_statement "return true;" return true ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "undefined4 FUN_0001494c(int param_1,undefined4 *param_2,int param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  \n  piVar2 = (int *)param_2[1];\n  piVar6 = (int *)*param_2;\n  if (piVar2 <= piVar6) {\n    return 1;\n  }\n  do {\n    while (iVar5 = *piVar6, iVar5 == 0) {\nLAB_000149a8:\n      piVar6 = piVar6 + 2;\n      if (piVar2 <= piVar6) {\n        return 1;\n      }\n    }\n    piVar2 = (int *)piVar6[1];\n    if ((int *)piVar6[1] == (int *)0x0) {\n      piVar6[1] = 0;\n    }\n    else {\n      do {\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      } while (piVar3 != (int *)0x0);\nLAB_00014a34:\n      iVar5 = *piVar6;\n      piVar6[1] = 0;\n    }\n    if (param_3 == 0) {\n      piVar2 = (int *)FUN_000146e8(param_1,iVar5);\n      if (*piVar2 == 0) {\n        iVar4 = *(int *)(param_1 + 0xc);\n        *piVar2 = iVar5;\n        *(int *)(param_1 + 0xc) = iVar4 + 1;\n      }\n      else {\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }\n      iVar5 = param_2[3];\n      *piVar6 = 0;\n      piVar2 = (int *)param_2[1];\n      param_2[3] = iVar5 + -1;\n      goto LAB_000149a8;\n    }\n    piVar2 = (int *)param_2[1];\n    piVar6 = piVar6 + 2;\n    if (piVar2 <= piVar6) {\n      return 1;\n    }\n  } while( true );\n}\n\n" (function_definition "undefined4 FUN_0001494c(int param_1,undefined4 *param_2,int param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  \n  piVar2 = (int *)param_2[1];\n  piVar6 = (int *)*param_2;\n  if (piVar2 <= piVar6) {\n    return 1;\n  }\n  do {\n    while (iVar5 = *piVar6, iVar5 == 0) {\nLAB_000149a8:\n      piVar6 = piVar6 + 2;\n      if (piVar2 <= piVar6) {\n        return 1;\n      }\n    }\n    piVar2 = (int *)piVar6[1];\n    if ((int *)piVar6[1] == (int *)0x0) {\n      piVar6[1] = 0;\n    }\n    else {\n      do {\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      } while (piVar3 != (int *)0x0);\nLAB_00014a34:\n      iVar5 = *piVar6;\n      piVar6[1] = 0;\n    }\n    if (param_3 == 0) {\n      piVar2 = (int *)FUN_000146e8(param_1,iVar5);\n      if (*piVar2 == 0) {\n        iVar4 = *(int *)(param_1 + 0xc);\n        *piVar2 = iVar5;\n        *(int *)(param_1 + 0xc) = iVar4 + 1;\n      }\n      else {\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }\n      iVar5 = param_2[3];\n      *piVar6 = 0;\n      piVar2 = (int *)param_2[1];\n      param_2[3] = iVar5 + -1;\n      goto LAB_000149a8;\n    }\n    piVar2 = (int *)param_2[1];\n    piVar6 = piVar6 + 2;\n    if (piVar2 <= piVar6) {\n      return 1;\n    }\n  } while( true );\n}" type_identifier (function_declarator "FUN_0001494c(int param_1,undefined4 *param_2,int param_3)" identifier (parameter_list "(int param_1,undefined4 *param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  \n  piVar2 = (int *)param_2[1];\n  piVar6 = (int *)*param_2;\n  if (piVar2 <= piVar6) {\n    return 1;\n  }\n  do {\n    while (iVar5 = *piVar6, iVar5 == 0) {\nLAB_000149a8:\n      piVar6 = piVar6 + 2;\n      if (piVar2 <= piVar6) {\n        return 1;\n      }\n    }\n    piVar2 = (int *)piVar6[1];\n    if ((int *)piVar6[1] == (int *)0x0) {\n      piVar6[1] = 0;\n    }\n    else {\n      do {\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      } while (piVar3 != (int *)0x0);\nLAB_00014a34:\n      iVar5 = *piVar6;\n      piVar6[1] = 0;\n    }\n    if (param_3 == 0) {\n      piVar2 = (int *)FUN_000146e8(param_1,iVar5);\n      if (*piVar2 == 0) {\n        iVar4 = *(int *)(param_1 + 0xc);\n        *piVar2 = iVar5;\n        *(int *)(param_1 + 0xc) = iVar4 + 1;\n      }\n      else {\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }\n      iVar5 = param_2[3];\n      *piVar6 = 0;\n      piVar2 = (int *)param_2[1];\n      param_2[3] = iVar5 + -1;\n      goto LAB_000149a8;\n    }\n    piVar2 = (int *)param_2[1];\n    piVar6 = piVar6 + 2;\n    if (piVar2 <= piVar6) {\n      return 1;\n    }\n  } while( true );\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (expression_statement "piVar2 = (int *)param_2[1];" (assignment_expression "piVar2 = (int *)param_2[1]" identifier = (cast_expression "(int *)param_2[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) ;) (expression_statement "piVar6 = (int *)*param_2;" (assignment_expression "piVar6 = (int *)*param_2" identifier = (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (piVar2 <= piVar6) {\n    return 1;\n  }" if (parenthesized_expression "(piVar2 <= piVar6)" ( (binary_expression "piVar2 <= piVar6" identifier <= identifier) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (do_statement "do {\n    while (iVar5 = *piVar6, iVar5 == 0) {\nLAB_000149a8:\n      piVar6 = piVar6 + 2;\n      if (piVar2 <= piVar6) {\n        return 1;\n      }\n    }\n    piVar2 = (int *)piVar6[1];\n    if ((int *)piVar6[1] == (int *)0x0) {\n      piVar6[1] = 0;\n    }\n    else {\n      do {\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      } while (piVar3 != (int *)0x0);\nLAB_00014a34:\n      iVar5 = *piVar6;\n      piVar6[1] = 0;\n    }\n    if (param_3 == 0) {\n      piVar2 = (int *)FUN_000146e8(param_1,iVar5);\n      if (*piVar2 == 0) {\n        iVar4 = *(int *)(param_1 + 0xc);\n        *piVar2 = iVar5;\n        *(int *)(param_1 + 0xc) = iVar4 + 1;\n      }\n      else {\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }\n      iVar5 = param_2[3];\n      *piVar6 = 0;\n      piVar2 = (int *)param_2[1];\n      param_2[3] = iVar5 + -1;\n      goto LAB_000149a8;\n    }\n    piVar2 = (int *)param_2[1];\n    piVar6 = piVar6 + 2;\n    if (piVar2 <= piVar6) {\n      return 1;\n    }\n  } while( true );" do (compound_statement "{\n    while (iVar5 = *piVar6, iVar5 == 0) {\nLAB_000149a8:\n      piVar6 = piVar6 + 2;\n      if (piVar2 <= piVar6) {\n        return 1;\n      }\n    }\n    piVar2 = (int *)piVar6[1];\n    if ((int *)piVar6[1] == (int *)0x0) {\n      piVar6[1] = 0;\n    }\n    else {\n      do {\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      } while (piVar3 != (int *)0x0);\nLAB_00014a34:\n      iVar5 = *piVar6;\n      piVar6[1] = 0;\n    }\n    if (param_3 == 0) {\n      piVar2 = (int *)FUN_000146e8(param_1,iVar5);\n      if (*piVar2 == 0) {\n        iVar4 = *(int *)(param_1 + 0xc);\n        *piVar2 = iVar5;\n        *(int *)(param_1 + 0xc) = iVar4 + 1;\n      }\n      else {\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }\n      iVar5 = param_2[3];\n      *piVar6 = 0;\n      piVar2 = (int *)param_2[1];\n      param_2[3] = iVar5 + -1;\n      goto LAB_000149a8;\n    }\n    piVar2 = (int *)param_2[1];\n    piVar6 = piVar6 + 2;\n    if (piVar2 <= piVar6) {\n      return 1;\n    }\n  }" { (while_statement "while (iVar5 = *piVar6, iVar5 == 0) {\nLAB_000149a8:\n      piVar6 = piVar6 + 2;\n      if (piVar2 <= piVar6) {\n        return 1;\n      }\n    }" while (parenthesized_expression "(iVar5 = *piVar6, iVar5 == 0)" ( (comma_expression "iVar5 = *piVar6, iVar5 == 0" (assignment_expression "iVar5 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) , (binary_expression "iVar5 == 0" identifier == number_literal)) )) (compound_statement "{\nLAB_000149a8:\n      piVar6 = piVar6 + 2;\n      if (piVar2 <= piVar6) {\n        return 1;\n      }\n    }" { (labeled_statement "LAB_000149a8:\n      piVar6 = piVar6 + 2;" statement_identifier : (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" identifier = (binary_expression "piVar6 + 2" identifier + number_literal)) ;)) (if_statement "if (piVar2 <= piVar6) {\n        return 1;\n      }" if (parenthesized_expression "(piVar2 <= piVar6)" ( (binary_expression "piVar2 <= piVar6" identifier <= identifier) )) (compound_statement "{\n        return 1;\n      }" { (return_statement "return 1;" return number_literal ;) })) })) (expression_statement "piVar2 = (int *)piVar6[1];" (assignment_expression "piVar2 = (int *)piVar6[1]" identifier = (cast_expression "(int *)piVar6[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[1]" identifier [ number_literal ]))) ;) (if_statement "if ((int *)piVar6[1] == (int *)0x0) {\n      piVar6[1] = 0;\n    }\n    else {\n      do {\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      } while (piVar3 != (int *)0x0);\nLAB_00014a34:\n      iVar5 = *piVar6;\n      piVar6[1] = 0;\n    }" if (parenthesized_expression "((int *)piVar6[1] == (int *)0x0)" ( (binary_expression "(int *)piVar6[1] == (int *)0x0" (cast_expression "(int *)piVar6[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[1]" identifier [ number_literal ])) == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      piVar6[1] = 0;\n    }" { (expression_statement "piVar6[1] = 0;" (assignment_expression "piVar6[1] = 0" (subscript_expression "piVar6[1]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n      do {\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      } while (piVar3 != (int *)0x0);\nLAB_00014a34:\n      iVar5 = *piVar6;\n      piVar6[1] = 0;\n    }" else (compound_statement "{\n      do {\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      } while (piVar3 != (int *)0x0);\nLAB_00014a34:\n      iVar5 = *piVar6;\n      piVar6[1] = 0;\n    }" { (do_statement "do {\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      } while (piVar3 != (int *)0x0);" do (compound_statement "{\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      }" { (while_statement "while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }" { (expression_statement "iVar5 = *piVar2;" (assignment_expression "iVar5 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "piVar1 = (int *)FUN_000146e8(param_1,iVar5);" (assignment_expression "piVar1 = (int *)FUN_000146e8(param_1,iVar5)" identifier = (cast_expression "(int *)FUN_000146e8(param_1,iVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000146e8(param_1,iVar5)" identifier (argument_list "(param_1,iVar5)" ( identifier , identifier ))))) ;) (expression_statement "piVar3 = (int *)piVar2[1];" (assignment_expression "piVar3 = (int *)piVar2[1]" identifier = (cast_expression "(int *)piVar2[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[1]" identifier [ number_literal ]))) ;) (if_statement "if (*piVar1 != 0) break;" if (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" identifier = (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) ))))) ;) (expression_statement "*piVar1 = iVar5;" (assignment_expression "*piVar1 = iVar5" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "*(int *)(param_1 + 0xc) = iVar4 + 1;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar4 + 1" (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) )))) = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (expression_statement "piVar2[1] = *(int *)(param_1 + 0x24);" (assignment_expression "piVar2[1] = *(int *)(param_1 + 0x24)" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "*(int **)(param_1 + 0x24) = piVar2;" (assignment_expression "*(int **)(param_1 + 0x24) = piVar2" (pointer_expression "*(int **)(param_1 + 0x24)" * (cast_expression "(int **)(param_1 + 0x24)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = identifier) ;) (expression_statement "piVar2 = piVar3;" (assignment_expression "piVar2 = piVar3" identifier = identifier) ;) (if_statement "if (piVar3 == (int *)0x0) goto LAB_00014a34;" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00014a34;" goto statement_identifier ;)) })) (expression_statement "piVar2[1] = piVar1[1];" (assignment_expression "piVar2[1] = piVar1[1]" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) (expression_statement "piVar1[1] = (int)piVar2;" (assignment_expression "piVar1[1] = (int)piVar2" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar2 = piVar3;" (assignment_expression "piVar2 = piVar3" identifier = identifier) ;) }) while (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (labeled_statement "LAB_00014a34:\n      iVar5 = *piVar6;" statement_identifier : (expression_statement "iVar5 = *piVar6;" (assignment_expression "iVar5 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;)) (expression_statement "piVar6[1] = 0;" (assignment_expression "piVar6[1] = 0" (subscript_expression "piVar6[1]" identifier [ number_literal ]) = number_literal) ;) }))) (if_statement "if (param_3 == 0) {\n      piVar2 = (int *)FUN_000146e8(param_1,iVar5);\n      if (*piVar2 == 0) {\n        iVar4 = *(int *)(param_1 + 0xc);\n        *piVar2 = iVar5;\n        *(int *)(param_1 + 0xc) = iVar4 + 1;\n      }\n      else {\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }\n      iVar5 = param_2[3];\n      *piVar6 = 0;\n      piVar2 = (int *)param_2[1];\n      param_2[3] = iVar5 + -1;\n      goto LAB_000149a8;\n    }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n      piVar2 = (int *)FUN_000146e8(param_1,iVar5);\n      if (*piVar2 == 0) {\n        iVar4 = *(int *)(param_1 + 0xc);\n        *piVar2 = iVar5;\n        *(int *)(param_1 + 0xc) = iVar4 + 1;\n      }\n      else {\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }\n      iVar5 = param_2[3];\n      *piVar6 = 0;\n      piVar2 = (int *)param_2[1];\n      param_2[3] = iVar5 + -1;\n      goto LAB_000149a8;\n    }" { (expression_statement "piVar2 = (int *)FUN_000146e8(param_1,iVar5);" (assignment_expression "piVar2 = (int *)FUN_000146e8(param_1,iVar5)" identifier = (cast_expression "(int *)FUN_000146e8(param_1,iVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000146e8(param_1,iVar5)" identifier (argument_list "(param_1,iVar5)" ( identifier , identifier ))))) ;) (if_statement "if (*piVar2 == 0) {\n        iVar4 = *(int *)(param_1 + 0xc);\n        *piVar2 = iVar5;\n        *(int *)(param_1 + 0xc) = iVar4 + 1;\n      }\n      else {\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }" if (parenthesized_expression "(*piVar2 == 0)" ( (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" * identifier) == number_literal) )) (compound_statement "{\n        iVar4 = *(int *)(param_1 + 0xc);\n        *piVar2 = iVar5;\n        *(int *)(param_1 + 0xc) = iVar4 + 1;\n      }" { (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" identifier = (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) ))))) ;) (expression_statement "*piVar2 = iVar5;" (assignment_expression "*piVar2 = iVar5" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "*(int *)(param_1 + 0xc) = iVar4 + 1;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar4 + 1" (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) )))) = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }" else (compound_statement "{\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }" { (expression_statement "piVar1 = *(int **)(param_1 + 0x24);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x24)" identifier = (pointer_expression "*(int **)(param_1 + 0x24)" * (cast_expression "(int **)(param_1 + 0x24)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }" { (expression_statement "piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);" (assignment_expression "piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8)" identifier = (cast_expression "(int *)(*(code *)PTR_malloc_00032380)(8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_00032380)(8)" (parenthesized_expression "(*(code *)PTR_malloc_00032380)" ( (pointer_expression "*(code *)PTR_malloc_00032380" * (cast_expression "(code *)PTR_malloc_00032380" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(8)" ( number_literal ))))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n            return 0;\n          }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            return 0;\n          }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }" else (compound_statement "{\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }" { (expression_statement "*(int *)(param_1 + 0x24) = piVar1[1];" (assignment_expression "*(int *)(param_1 + 0x24) = piVar1[1]" (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = (subscript_expression "piVar1[1]" identifier [ number_literal ])) ;) }))) (expression_statement "iVar4 = piVar2[1];" (assignment_expression "iVar4 = piVar2[1]" identifier = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "*piVar1 = iVar5;" (assignment_expression "*piVar1 = iVar5" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "piVar1[1] = iVar4;" (assignment_expression "piVar1[1] = iVar4" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar2[1] = (int)piVar1;" (assignment_expression "piVar2[1] = (int)piVar1" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }))) (expression_statement "iVar5 = param_2[3];" (assignment_expression "iVar5 = param_2[3]" identifier = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (expression_statement "*piVar6 = 0;" (assignment_expression "*piVar6 = 0" (pointer_expression "*piVar6" * identifier) = number_literal) ;) (expression_statement "piVar2 = (int *)param_2[1];" (assignment_expression "piVar2 = (int *)param_2[1]" identifier = (cast_expression "(int *)param_2[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) ;) (expression_statement "param_2[3] = iVar5 + -1;" (assignment_expression "param_2[3] = iVar5 + -1" (subscript_expression "param_2[3]" identifier [ number_literal ]) = (binary_expression "iVar5 + -1" identifier + number_literal)) ;) (goto_statement "goto LAB_000149a8;" goto statement_identifier ;) })) (expression_statement "piVar2 = (int *)param_2[1];" (assignment_expression "piVar2 = (int *)param_2[1]" identifier = (cast_expression "(int *)param_2[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) ;) (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" identifier = (binary_expression "piVar6 + 2" identifier + number_literal)) ;) (if_statement "if (piVar2 <= piVar6) {\n      return 1;\n    }" if (parenthesized_expression "(piVar2 <= piVar6)" ( (binary_expression "piVar2 <= piVar6" identifier <= identifier) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return LIT ;) })) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * IDENT)) , (binary_expression IDENT == LIT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return LIT ;) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (break_statement break ;)) (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 (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (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 IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) }))) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return LIT ;) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "undefined4 FUN_0001494c(int param_1,undefined4 *param_2,int param_3)\n\n{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  \n  piVar2 = (int *)param_2[1];\n  piVar6 = (int *)*param_2;\n  if (piVar2 <= piVar6) {\n    return 1;\n  }\n  do {\n    while (iVar5 = *piVar6, iVar5 == 0) {\nLAB_000149a8:\n      piVar6 = piVar6 + 2;\n      if (piVar2 <= piVar6) {\n        return 1;\n      }\n    }\n    piVar2 = (int *)piVar6[1];\n    if ((int *)piVar6[1] == (int *)0x0) {\n      piVar6[1] = 0;\n    }\n    else {\n      do {\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      } while (piVar3 != (int *)0x0);\nLAB_00014a34:\n      iVar5 = *piVar6;\n      piVar6[1] = 0;\n    }\n    if (param_3 == 0) {\n      piVar2 = (int *)FUN_000146e8(param_1,iVar5);\n      if (*piVar2 == 0) {\n        iVar4 = *(int *)(param_1 + 0xc);\n        *piVar2 = iVar5;\n        *(int *)(param_1 + 0xc) = iVar4 + 1;\n      }\n      else {\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }\n      iVar5 = param_2[3];\n      *piVar6 = 0;\n      piVar2 = (int *)param_2[1];\n      param_2[3] = iVar5 + -1;\n      goto LAB_000149a8;\n    }\n    piVar2 = (int *)param_2[1];\n    piVar6 = piVar6 + 2;\n    if (piVar2 <= piVar6) {\n      return 1;\n    }\n  } while( true );\n}" (type_identifier "undefined4") (function_declarator "FUN_0001494c(int param_1,undefined4 *param_2,int param_3)" (identifier "FUN_0001494c") (parameter_list "(int param_1,undefined4 *param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  int *piVar3;\n  int iVar4;\n  int iVar5;\n  int *piVar6;\n  \n  piVar2 = (int *)param_2[1];\n  piVar6 = (int *)*param_2;\n  if (piVar2 <= piVar6) {\n    return 1;\n  }\n  do {\n    while (iVar5 = *piVar6, iVar5 == 0) {\nLAB_000149a8:\n      piVar6 = piVar6 + 2;\n      if (piVar2 <= piVar6) {\n        return 1;\n      }\n    }\n    piVar2 = (int *)piVar6[1];\n    if ((int *)piVar6[1] == (int *)0x0) {\n      piVar6[1] = 0;\n    }\n    else {\n      do {\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      } while (piVar3 != (int *)0x0);\nLAB_00014a34:\n      iVar5 = *piVar6;\n      piVar6[1] = 0;\n    }\n    if (param_3 == 0) {\n      piVar2 = (int *)FUN_000146e8(param_1,iVar5);\n      if (*piVar2 == 0) {\n        iVar4 = *(int *)(param_1 + 0xc);\n        *piVar2 = iVar5;\n        *(int *)(param_1 + 0xc) = iVar4 + 1;\n      }\n      else {\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }\n      iVar5 = param_2[3];\n      *piVar6 = 0;\n      piVar2 = (int *)param_2[1];\n      param_2[3] = iVar5 + -1;\n      goto LAB_000149a8;\n    }\n    piVar2 = (int *)param_2[1];\n    piVar6 = piVar6 + 2;\n    if (piVar2 <= piVar6) {\n      return 1;\n    }\n  } while( true );\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (expression_statement "piVar2 = (int *)param_2[1];" (assignment_expression "piVar2 = (int *)param_2[1]" (identifier "piVar2") (= "=") (cast_expression "(int *)param_2[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "piVar6 = (int *)*param_2;" (assignment_expression "piVar6 = (int *)*param_2" (identifier "piVar6") (= "=") (cast_expression "(int *)*param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (if_statement "if (piVar2 <= piVar6) {\n    return 1;\n  }" (if "if") (parenthesized_expression "(piVar2 <= piVar6)" (( "(") (binary_expression "piVar2 <= piVar6" (identifier "piVar2") (<= "<=") (identifier "piVar6")) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (do_statement "do {\n    while (iVar5 = *piVar6, iVar5 == 0) {\nLAB_000149a8:\n      piVar6 = piVar6 + 2;\n      if (piVar2 <= piVar6) {\n        return 1;\n      }\n    }\n    piVar2 = (int *)piVar6[1];\n    if ((int *)piVar6[1] == (int *)0x0) {\n      piVar6[1] = 0;\n    }\n    else {\n      do {\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      } while (piVar3 != (int *)0x0);\nLAB_00014a34:\n      iVar5 = *piVar6;\n      piVar6[1] = 0;\n    }\n    if (param_3 == 0) {\n      piVar2 = (int *)FUN_000146e8(param_1,iVar5);\n      if (*piVar2 == 0) {\n        iVar4 = *(int *)(param_1 + 0xc);\n        *piVar2 = iVar5;\n        *(int *)(param_1 + 0xc) = iVar4 + 1;\n      }\n      else {\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }\n      iVar5 = param_2[3];\n      *piVar6 = 0;\n      piVar2 = (int *)param_2[1];\n      param_2[3] = iVar5 + -1;\n      goto LAB_000149a8;\n    }\n    piVar2 = (int *)param_2[1];\n    piVar6 = piVar6 + 2;\n    if (piVar2 <= piVar6) {\n      return 1;\n    }\n  } while( true );" (do "do") (compound_statement "{\n    while (iVar5 = *piVar6, iVar5 == 0) {\nLAB_000149a8:\n      piVar6 = piVar6 + 2;\n      if (piVar2 <= piVar6) {\n        return 1;\n      }\n    }\n    piVar2 = (int *)piVar6[1];\n    if ((int *)piVar6[1] == (int *)0x0) {\n      piVar6[1] = 0;\n    }\n    else {\n      do {\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      } while (piVar3 != (int *)0x0);\nLAB_00014a34:\n      iVar5 = *piVar6;\n      piVar6[1] = 0;\n    }\n    if (param_3 == 0) {\n      piVar2 = (int *)FUN_000146e8(param_1,iVar5);\n      if (*piVar2 == 0) {\n        iVar4 = *(int *)(param_1 + 0xc);\n        *piVar2 = iVar5;\n        *(int *)(param_1 + 0xc) = iVar4 + 1;\n      }\n      else {\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }\n      iVar5 = param_2[3];\n      *piVar6 = 0;\n      piVar2 = (int *)param_2[1];\n      param_2[3] = iVar5 + -1;\n      goto LAB_000149a8;\n    }\n    piVar2 = (int *)param_2[1];\n    piVar6 = piVar6 + 2;\n    if (piVar2 <= piVar6) {\n      return 1;\n    }\n  }" ({ "{") (while_statement "while (iVar5 = *piVar6, iVar5 == 0) {\nLAB_000149a8:\n      piVar6 = piVar6 + 2;\n      if (piVar2 <= piVar6) {\n        return 1;\n      }\n    }" (while "while") (parenthesized_expression "(iVar5 = *piVar6, iVar5 == 0)" (( "(") (comma_expression "iVar5 = *piVar6, iVar5 == 0" (assignment_expression "iVar5 = *piVar6" (identifier "iVar5") (= "=") (pointer_expression "*piVar6" (* "*") (identifier "piVar6"))) (, ",") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0"))) () ")")) (compound_statement "{\nLAB_000149a8:\n      piVar6 = piVar6 + 2;\n      if (piVar2 <= piVar6) {\n        return 1;\n      }\n    }" ({ "{") (labeled_statement "LAB_000149a8:\n      piVar6 = piVar6 + 2;" (statement_identifier "LAB_000149a8") (: ":") (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" (identifier "piVar6") (= "=") (binary_expression "piVar6 + 2" (identifier "piVar6") (+ "+") (number_literal "2"))) (; ";"))) (if_statement "if (piVar2 <= piVar6) {\n        return 1;\n      }" (if "if") (parenthesized_expression "(piVar2 <= piVar6)" (( "(") (binary_expression "piVar2 <= piVar6" (identifier "piVar2") (<= "<=") (identifier "piVar6")) () ")")) (compound_statement "{\n        return 1;\n      }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}"))) (expression_statement "piVar2 = (int *)piVar6[1];" (assignment_expression "piVar2 = (int *)piVar6[1]" (identifier "piVar2") (= "=") (cast_expression "(int *)piVar6[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if ((int *)piVar6[1] == (int *)0x0) {\n      piVar6[1] = 0;\n    }\n    else {\n      do {\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      } while (piVar3 != (int *)0x0);\nLAB_00014a34:\n      iVar5 = *piVar6;\n      piVar6[1] = 0;\n    }" (if "if") (parenthesized_expression "((int *)piVar6[1] == (int *)0x0)" (( "(") (binary_expression "(int *)piVar6[1] == (int *)0x0" (cast_expression "(int *)piVar6[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]"))) (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      piVar6[1] = 0;\n    }" ({ "{") (expression_statement "piVar6[1] = 0;" (assignment_expression "piVar6[1] = 0" (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      do {\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      } while (piVar3 != (int *)0x0);\nLAB_00014a34:\n      iVar5 = *piVar6;\n      piVar6[1] = 0;\n    }" (else "else") (compound_statement "{\n      do {\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      } while (piVar3 != (int *)0x0);\nLAB_00014a34:\n      iVar5 = *piVar6;\n      piVar6[1] = 0;\n    }" ({ "{") (do_statement "do {\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      } while (piVar3 != (int *)0x0);" (do "do") (compound_statement "{\n        while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }\n        piVar2[1] = piVar1[1];\n        piVar1[1] = (int)piVar2;\n        piVar2 = piVar3;\n      }" ({ "{") (while_statement "while( true ) {\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n          iVar5 = *piVar2;\n          piVar1 = (int *)FUN_000146e8(param_1,iVar5);\n          piVar3 = (int *)piVar2[1];\n          if (*piVar1 != 0) break;\n          iVar4 = *(int *)(param_1 + 0xc);\n          *piVar1 = iVar5;\n          *(int *)(param_1 + 0xc) = iVar4 + 1;\n          *piVar2 = 0;\n          piVar2[1] = *(int *)(param_1 + 0x24);\n          *(int **)(param_1 + 0x24) = piVar2;\n          piVar2 = piVar3;\n          if (piVar3 == (int *)0x0) goto LAB_00014a34;\n        }" ({ "{") (expression_statement "iVar5 = *piVar2;" (assignment_expression "iVar5 = *piVar2" (identifier "iVar5") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (expression_statement "piVar1 = (int *)FUN_000146e8(param_1,iVar5);" (assignment_expression "piVar1 = (int *)FUN_000146e8(param_1,iVar5)" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_000146e8(param_1,iVar5)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000146e8(param_1,iVar5)" (identifier "FUN_000146e8") (argument_list "(param_1,iVar5)" (( "(") (identifier "param_1") (, ",") (identifier "iVar5") () ")"))))) (; ";")) (expression_statement "piVar3 = (int *)piVar2[1];" (assignment_expression "piVar3 = (int *)piVar2[1]" (identifier "piVar3") (= "=") (cast_expression "(int *)piVar2[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (*piVar1 != 0) break;" (if "if") (parenthesized_expression "(*piVar1 != 0)" (( "(") (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (!= "!=") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" (identifier "iVar4") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "*piVar1 = iVar5;" (assignment_expression "*piVar1 = iVar5" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "*(int *)(param_1 + 0xc) = iVar4 + 1;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar4 + 1" (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")) () ")")))) (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar2[1] = *(int *)(param_1 + 0x24);" (assignment_expression "piVar2[1] = *(int *)(param_1 + 0x24)" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (expression_statement "*(int **)(param_1 + 0x24) = piVar2;" (assignment_expression "*(int **)(param_1 + 0x24) = piVar2" (pointer_expression "*(int **)(param_1 + 0x24)" (* "*") (cast_expression "(int **)(param_1 + 0x24)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (identifier "piVar2")) (; ";")) (expression_statement "piVar2 = piVar3;" (assignment_expression "piVar2 = piVar3" (identifier "piVar2") (= "=") (identifier "piVar3")) (; ";")) (if_statement "if (piVar3 == (int *)0x0) goto LAB_00014a34;" (if "if") (parenthesized_expression "(piVar3 == (int *)0x0)" (( "(") (binary_expression "piVar3 == (int *)0x0" (identifier "piVar3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00014a34;" (goto "goto") (statement_identifier "LAB_00014a34") (; ";"))) (} "}"))) (expression_statement "piVar2[1] = piVar1[1];" (assignment_expression "piVar2[1] = piVar1[1]" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "piVar1[1] = (int)piVar2;" (assignment_expression "piVar1[1] = (int)piVar2" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(int)piVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar2"))) (; ";")) (expression_statement "piVar2 = piVar3;" (assignment_expression "piVar2 = piVar3" (identifier "piVar2") (= "=") (identifier "piVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar3 != (int *)0x0)" (( "(") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (labeled_statement "LAB_00014a34:\n      iVar5 = *piVar6;" (statement_identifier "LAB_00014a34") (: ":") (expression_statement "iVar5 = *piVar6;" (assignment_expression "iVar5 = *piVar6" (identifier "iVar5") (= "=") (pointer_expression "*piVar6" (* "*") (identifier "piVar6"))) (; ";"))) (expression_statement "piVar6[1] = 0;" (assignment_expression "piVar6[1] = 0" (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}")))) (if_statement "if (param_3 == 0) {\n      piVar2 = (int *)FUN_000146e8(param_1,iVar5);\n      if (*piVar2 == 0) {\n        iVar4 = *(int *)(param_1 + 0xc);\n        *piVar2 = iVar5;\n        *(int *)(param_1 + 0xc) = iVar4 + 1;\n      }\n      else {\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }\n      iVar5 = param_2[3];\n      *piVar6 = 0;\n      piVar2 = (int *)param_2[1];\n      param_2[3] = iVar5 + -1;\n      goto LAB_000149a8;\n    }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      piVar2 = (int *)FUN_000146e8(param_1,iVar5);\n      if (*piVar2 == 0) {\n        iVar4 = *(int *)(param_1 + 0xc);\n        *piVar2 = iVar5;\n        *(int *)(param_1 + 0xc) = iVar4 + 1;\n      }\n      else {\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }\n      iVar5 = param_2[3];\n      *piVar6 = 0;\n      piVar2 = (int *)param_2[1];\n      param_2[3] = iVar5 + -1;\n      goto LAB_000149a8;\n    }" ({ "{") (expression_statement "piVar2 = (int *)FUN_000146e8(param_1,iVar5);" (assignment_expression "piVar2 = (int *)FUN_000146e8(param_1,iVar5)" (identifier "piVar2") (= "=") (cast_expression "(int *)FUN_000146e8(param_1,iVar5)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000146e8(param_1,iVar5)" (identifier "FUN_000146e8") (argument_list "(param_1,iVar5)" (( "(") (identifier "param_1") (, ",") (identifier "iVar5") () ")"))))) (; ";")) (if_statement "if (*piVar2 == 0) {\n        iVar4 = *(int *)(param_1 + 0xc);\n        *piVar2 = iVar5;\n        *(int *)(param_1 + 0xc) = iVar4 + 1;\n      }\n      else {\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }" (if "if") (parenthesized_expression "(*piVar2 == 0)" (( "(") (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar4 = *(int *)(param_1 + 0xc);\n        *piVar2 = iVar5;\n        *(int *)(param_1 + 0xc) = iVar4 + 1;\n      }" ({ "{") (expression_statement "iVar4 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar4 = *(int *)(param_1 + 0xc)" (identifier "iVar4") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "*piVar2 = iVar5;" (assignment_expression "*piVar2 = iVar5" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "*(int *)(param_1 + 0xc) = iVar4 + 1;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar4 + 1" (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")) () ")")))) (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }" (else "else") (compound_statement "{\n        piVar1 = *(int **)(param_1 + 0x24);\n        if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }\n        iVar4 = piVar2[1];\n        *piVar1 = iVar5;\n        piVar1[1] = iVar4;\n        piVar2[1] = (int)piVar1;\n      }" ({ "{") (expression_statement "piVar1 = *(int **)(param_1 + 0x24);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x24)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(param_1 + 0x24)" (* "*") (cast_expression "(int **)(param_1 + 0x24)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (if_statement "if (piVar1 == (int *)0x0) {\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }\n        else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }" (if "if") (parenthesized_expression "(piVar1 == (int *)0x0)" (( "(") (binary_expression "piVar1 == (int *)0x0" (identifier "piVar1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);\n          if (piVar1 == (int *)0x0) {\n            return 0;\n          }\n        }" ({ "{") (expression_statement "piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);" (assignment_expression "piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8)" (identifier "piVar1") (= "=") (cast_expression "(int *)(*(code *)PTR_malloc_00032380)(8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_malloc_00032380)(8)" (parenthesized_expression "(*(code *)PTR_malloc_00032380)" (( "(") (pointer_expression "*(code *)PTR_malloc_00032380" (* "*") (cast_expression "(code *)PTR_malloc_00032380" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_malloc_00032380"))) () ")")) (argument_list "(8)" (( "(") (number_literal "8") () ")"))))) (; ";")) (if_statement "if (piVar1 == (int *)0x0) {\n            return 0;\n          }" (if "if") (parenthesized_expression "(piVar1 == (int *)0x0)" (( "(") (binary_expression "piVar1 == (int *)0x0" (identifier "piVar1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            return 0;\n          }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }" (else "else") (compound_statement "{\n          *(int *)(param_1 + 0x24) = piVar1[1];\n        }" ({ "{") (expression_statement "*(int *)(param_1 + 0x24) = piVar1[1];" (assignment_expression "*(int *)(param_1 + 0x24) = piVar1[1]" (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")))) (expression_statement "iVar4 = piVar2[1];" (assignment_expression "iVar4 = piVar2[1]" (identifier "iVar4") (= "=") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*piVar1 = iVar5;" (assignment_expression "*piVar1 = iVar5" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "piVar1[1] = iVar4;" (assignment_expression "piVar1[1] = iVar4" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "piVar2[1] = (int)piVar1;" (assignment_expression "piVar2[1] = (int)piVar1" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1"))) (; ";")) (} "}")))) (expression_statement "iVar5 = param_2[3];" (assignment_expression "iVar5 = param_2[3]" (identifier "iVar5") (= "=") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "*piVar6 = 0;" (assignment_expression "*piVar6 = 0" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar2 = (int *)param_2[1];" (assignment_expression "piVar2 = (int *)param_2[1]" (identifier "piVar2") (= "=") (cast_expression "(int *)param_2[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "param_2[3] = iVar5 + -1;" (assignment_expression "param_2[3] = iVar5 + -1" (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (= "=") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1"))) (; ";")) (goto_statement "goto LAB_000149a8;" (goto "goto") (statement_identifier "LAB_000149a8") (; ";")) (} "}"))) (expression_statement "piVar2 = (int *)param_2[1];" (assignment_expression "piVar2 = (int *)param_2[1]" (identifier "piVar2") (= "=") (cast_expression "(int *)param_2[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "piVar6 = piVar6 + 2;" (assignment_expression "piVar6 = piVar6 + 2" (identifier "piVar6") (= "=") (binary_expression "piVar6 + 2" (identifier "piVar6") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if (piVar2 <= piVar6) {\n      return 1;\n    }" (if "if") (parenthesized_expression "(piVar2 <= piVar6)" (( "(") (binary_expression "piVar2 <= piVar6" (identifier "piVar2") (<= "<=") (identifier "piVar6")) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))) right: (binary_expression left: (identifier) right: (number_literal)))) body: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) alternative: (else_clause (compound_statement (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_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: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (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: (identifier) right: (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: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_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: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (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))))))) (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal)))))) (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 (return_statement (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_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: (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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 (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (number_literal))))) condition: (parenthesized_expression (true))))))

undefined4 MASKED(int param_1,undefined4 *param_2,int param_3)

{
  int *piVar1;
  int *piVar2;
  int *piVar3;
  int iVar4;
  int iVar5;
  int *piVar6;
  
  piVar2 = (int *)param_2[1];
  piVar6 = (int *)*param_2;
  if (piVar2 <= piVar6) {
    return 1;
  }
  do {
    while (iVar5 = *piVar6, iVar5 == 0) {
LAB_000149a8:
      piVar6 = piVar6 + 2;
      if (piVar2 <= piVar6) {
        return 1;
      }
    }
    piVar2 = (int *)piVar6[1];
    if ((int *)piVar6[1] == (int *)0x0) {
      piVar6[1] = 0;
    }
    else {
      do {
        while( true ) {
          iVar5 = *piVar2;
          piVar1 = (int *)FUN_000146e8(param_1,iVar5);
          piVar3 = (int *)piVar2[1];
          if (*piVar1 != 0) break;
          iVar4 = *(int *)(param_1 + 0xc);
          *piVar1 = iVar5;
          *(int *)(param_1 + 0xc) = iVar4 + 1;
          *piVar2 = 0;
          piVar2[1] = *(int *)(param_1 + 0x24);
          *(int **)(param_1 + 0x24) = piVar2;
          piVar2 = piVar3;
          if (piVar3 == (int *)0x0) goto LAB_00014a34;
        }
        piVar2[1] = piVar1[1];
        piVar1[1] = (int)piVar2;
        piVar2 = piVar3;
      } while (piVar3 != (int *)0x0);
LAB_00014a34:
      iVar5 = *piVar6;
      piVar6[1] = 0;
    }
    if (param_3 == 0) {
      piVar2 = (int *)FUN_000146e8(param_1,iVar5);
      if (*piVar2 == 0) {
        iVar4 = *(int *)(param_1 + 0xc);
        *piVar2 = iVar5;
        *(int *)(param_1 + 0xc) = iVar4 + 1;
      }
      else {
        piVar1 = *(int **)(param_1 + 0x24);
        if (piVar1 == (int *)0x0) {
          piVar1 = (int *)(*(code *)PTR_malloc_00032380)(8);
          if (piVar1 == (int *)0x0) {
            return 0;
          }
        }
        else {
          *(int *)(param_1 + 0x24) = piVar1[1];
        }
        iVar4 = piVar2[1];
        *piVar1 = iVar5;
        piVar1[1] = iVar4;
        piVar2[1] = (int)piVar1;
      }
      iVar5 = param_2[3];
      *piVar6 = 0;
      piVar2 = (int *)param_2[1];
      param_2[3] = iVar5 + -1;
      goto LAB_000149a8;
    }
    piVar2 = (int *)param_2[1];
    piVar6 = piVar6 + 2;
    if (piVar2 <= piVar6) {
      return 1;
    }
  } while( true );
}

