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

{
  int *piVar1;
  hash_entry *phVar2;
  hash_entry *phVar3;
  undefined3 in_register_00000018;
  void *pvVar4;
  hash_entry *phVar5;
  code *pcVar6;
  
  phVar5 = src->bucket;
  if (phVar5 < src->bucket_limit) {
    pcVar6 = (code *)(PTR_0002d104 + 0x3dcc);
    do {
      if (phVar5->data != (void *)0x0) {
        phVar2 = phVar5->next;
        if (phVar5->next == (hash_entry *)0x0) {
          pvVar4 = phVar5->data;
        }
        else {
          do {
            pvVar4 = phVar2->data;
            piVar1 = (int *)(*pcVar6)(dst,pvVar4);
            phVar3 = phVar2->next;
            if (*piVar1 == 0) {
              *piVar1 = (int)pvVar4;
              dst->n_buckets_used = dst->n_buckets_used + 1;
              phVar2->data = (void *)0x0;
              phVar2->next = dst->free_entry_list;
              dst->free_entry_list = phVar2;
            }
            else {
              phVar2->next = (hash_entry *)piVar1[1];
              piVar1[1] = (int)phVar2;
            }
            phVar2 = phVar3;
          } while (phVar3 != (hash_entry *)0x0);
          pvVar4 = phVar5->data;
        }
        phVar5->next = (hash_entry *)0x0;
        if (CONCAT31(in_register_00000018,safe) == 0) {
          piVar1 = (int *)(*pcVar6)(dst,pvVar4);
          if (*piVar1 == 0) {
            *piVar1 = (int)pvVar4;
            dst->n_buckets_used = dst->n_buckets_used + 1;
          }
          else {
            phVar2 = dst->free_entry_list;
            if (phVar2 == (hash_entry *)0x0) {
              phVar2 = (hash_entry *)(*(code *)PTR_malloc_0002d2ec)(8);
              if (phVar2 == (hash_entry *)0x0) {
                return false;
              }
            }
            else {
              dst->free_entry_list = phVar2->next;
            }
            phVar2->data = pvVar4;
            phVar2->next = (hash_entry *)piVar1[1];
            piVar1[1] = (int)phVar2;
          }
          phVar5->data = (void *)0x0;
          src->n_buckets_used = src->n_buckets_used - 1;
        }
      }
      phVar5 = phVar5 + 1;
    } while (phVar5 < src->bucket_limit);
  }
  return true;
}



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

{
  int *piVar1;
  int *piVar2;
  int *piVar3;
  int iVar4;
  int *piVar5;
  code *pcVar6;
  
  piVar5 = (int *)*param_2;
  if (piVar5 < (int *)param_2[1]) {
    pcVar6 = (code *)(PTR_0002d104 + 0x3dcc);
    do {
      if (*piVar5 != 0) {
        piVar1 = (int *)piVar5[1];
        if ((int *)piVar5[1] == (int *)0x0) {
          iVar4 = *piVar5;
        }
        else {
          do {
            iVar4 = *piVar1;
            piVar2 = (int *)(*pcVar6)(param_1,iVar4);
            piVar3 = (int *)piVar1[1];
            if (*piVar2 == 0) {
              *piVar2 = iVar4;
              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;
              *piVar1 = 0;
              piVar1[1] = *(int *)(param_1 + 0x24);
              *(int **)(param_1 + 0x24) = piVar1;
            }
            else {
              piVar1[1] = piVar2[1];
              piVar2[1] = (int)piVar1;
            }
            piVar1 = piVar3;
          } while (piVar3 != (int *)0x0);
          iVar4 = *piVar5;
        }
        piVar5[1] = 0;
        if (param_3 == 0) {
          piVar1 = (int *)(*pcVar6)(param_1,iVar4);
          if (*piVar1 == 0) {
            *piVar1 = iVar4;
            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;
          }
          else {
            piVar2 = *(int **)(param_1 + 0x24);
            if (piVar2 == (int *)0x0) {
              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);
              if (piVar2 == (int *)0x0) {
                return 0;
              }
            }
            else {
              *(int *)(param_1 + 0x24) = piVar2[1];
            }
            *piVar2 = iVar4;
            piVar2[1] = piVar1[1];
            piVar1[1] = (int)piVar2;
          }
          *piVar5 = 0;
          param_2[3] = param_2[3] + -1;
        }
      }
      piVar5 = piVar5 + 2;
    } while (piVar5 < (int *)param_2[1]);
  }
  return 1;
}


lui gp,0x2
addiu gp,gp,0x1298
addu gp,gp,t9
addiu sp,sp,-0x38
sw ra,0x34(sp)
sw s6,0x30(sp)
sw s5,0x2c(sp)
sw s4,0x28(sp)
sw s3,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
lw s3,0x0(a1)
lw v0,0x4(a1)
sltu v0,s3,v0
beq v0,zero,0x00013fec
_or s6,a2,zero
or s5,a1,zero
or s2,a0,zero
lw s4,-0x7fcc(gp)
b 0x00013f70
_addiu s4,s4,0x3dcc
sw s1,0x0(v0)
lw v0,0xc(s2)
addiu v0,v0,0x1
sw v0,0xc(s2)
sw zero,0x0(s0)
lw v0,0x24(s2)
sw v0,0x4(s0)
sw s0,0x24(s2)
beq v1,zero,0x00013ef4
_or s0,v1,zero
lw s1,0x0(s0)
or a1,s1,zero
or a0,s2,zero
or t9,s4,zero
jalr t9
_nop
lw gp,0x10(sp)
lw a0,0x0(v0)
beq a0,zero,0x00013e94
_lw v1,0x4(s0)
lw a0,0x4(v0)
sw a0,0x4(s0)
b 0x00013eb4
_sw s0,0x4(v0)
lw s0,0x0(s3)
bne s6,zero,0x00013f5c
_sw zero,0x4(s3)
or a1,s0,zero
or a0,s2,zero
or t9,s4,zero
jalr t9
_nop
lw gp,0x10(sp)
or s1,v0,zero
lw v0,0x0(v0)
beq v0,zero,0x00013fb0
_nop
lw v0,0x24(s2)
beq v0,zero,0x00013f90
_li a0,0x8
lw v1,0x4(v0)
sw v1,0x24(s2)
sw s0,0x0(v0)
lw v1,0x4(s1)
sw v1,0x4(v0)
sw v0,0x4(s1)
sw zero,0x0(s3)
lw v0,0xc(s5)
addiu v0,v0,-0x1
sw v0,0xc(s5)
addiu s3,s3,0x8
lw v0,0x4(s5)
sltu v0,s3,v0
beq v0,zero,0x00013fc4
_li v0,0x1
lw v0,0x0(s3)
beq v0,zero,0x00013f5c
_nop
lw s0,0x4(s3)
bne s0,zero,0x00013ebc
_nop
b 0x00013ef8
_lw s0,0x0(s3)
lw t9,-0x7de4(gp)
jalr t9
_nop
lw gp,0x10(sp)
bne v0,zero,0x00013f3c
_nop
b 0x00013fc4
_or v0,s6,zero
sw s0,0x0(s1)
lw v0,0xc(s2)
addiu v0,v0,0x1
b 0x00013f4c
_sw v0,0xc(s2)
lw ra,0x34(sp)
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
b 0x00013fc4
_li v0,0x1
(translation_unit "undefined4 FUN_00013e38(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 *piVar5;\n  code *pcVar6;\n  \n  piVar5 = (int *)*param_2;\n  if (piVar5 < (int *)param_2[1]) {\n    pcVar6 = (code *)(PTR_0002d104 + 0x3dcc);\n    do {\n      if (*piVar5 != 0) {\n        piVar1 = (int *)piVar5[1];\n        if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }\n        piVar5[1] = 0;\n        if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < (int *)param_2[1]);\n  }\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00013e38(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 *piVar5;\n  code *pcVar6;\n  \n  piVar5 = (int *)*param_2;\n  if (piVar5 < (int *)param_2[1]) {\n    pcVar6 = (code *)(PTR_0002d104 + 0x3dcc);\n    do {\n      if (*piVar5 != 0) {\n        piVar1 = (int *)piVar5[1];\n        if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }\n        piVar5[1] = 0;\n        if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < (int *)param_2[1]);\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_00013e38(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 *piVar5;\n  code *pcVar6;\n  \n  piVar5 = (int *)*param_2;\n  if (piVar5 < (int *)param_2[1]) {\n    pcVar6 = (code *)(PTR_0002d104 + 0x3dcc);\n    do {\n      if (*piVar5 != 0) {\n        piVar1 = (int *)piVar5[1];\n        if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }\n        piVar5[1] = 0;\n        if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < (int *)param_2[1]);\n  }\n  return 1;\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 *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (expression_statement "piVar5 = (int *)*param_2;" (assignment_expression "piVar5 = (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 (piVar5 < (int *)param_2[1]) {\n    pcVar6 = (code *)(PTR_0002d104 + 0x3dcc);\n    do {\n      if (*piVar5 != 0) {\n        piVar1 = (int *)piVar5[1];\n        if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }\n        piVar5[1] = 0;\n        if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < (int *)param_2[1]);\n  }" if (parenthesized_expression "(piVar5 < (int *)param_2[1])" ( (binary_expression "piVar5 < (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 ]))) )) (compound_statement "{\n    pcVar6 = (code *)(PTR_0002d104 + 0x3dcc);\n    do {\n      if (*piVar5 != 0) {\n        piVar1 = (int *)piVar5[1];\n        if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }\n        piVar5[1] = 0;\n        if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < (int *)param_2[1]);\n  }" { (expression_statement "pcVar6 = (code *)(PTR_0002d104 + 0x3dcc);" (assignment_expression "pcVar6 = (code *)(PTR_0002d104 + 0x3dcc)" identifier = (cast_expression "(code *)(PTR_0002d104 + 0x3dcc)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_0002d104 + 0x3dcc)" ( (binary_expression "PTR_0002d104 + 0x3dcc" identifier + number_literal) )))) ;) (do_statement "do {\n      if (*piVar5 != 0) {\n        piVar1 = (int *)piVar5[1];\n        if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }\n        piVar5[1] = 0;\n        if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < (int *)param_2[1]);" do (compound_statement "{\n      if (*piVar5 != 0) {\n        piVar1 = (int *)piVar5[1];\n        if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }\n        piVar5[1] = 0;\n        if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      piVar5 = piVar5 + 2;\n    }" { (if_statement "if (*piVar5 != 0) {\n        piVar1 = (int *)piVar5[1];\n        if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }\n        piVar5[1] = 0;\n        if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }" if (parenthesized_expression "(*piVar5 != 0)" ( (binary_expression "*piVar5 != 0" (pointer_expression "*piVar5" * identifier) != number_literal) )) (compound_statement "{\n        piVar1 = (int *)piVar5[1];\n        if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }\n        piVar5[1] = 0;\n        if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }" { (expression_statement "piVar1 = (int *)piVar5[1];" (assignment_expression "piVar1 = (int *)piVar5[1]" identifier = (cast_expression "(int *)piVar5[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar5[1]" identifier [ number_literal ]))) ;) (if_statement "if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }" if (parenthesized_expression "((int *)piVar5[1] == (int *)0x0)" ( (binary_expression "(int *)piVar5[1] == (int *)0x0" (cast_expression "(int *)piVar5[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar5[1]" identifier [ number_literal ])) == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar4 = *piVar5;\n        }" { (expression_statement "iVar4 = *piVar5;" (assignment_expression "iVar4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) }) (else_clause "else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }" else (compound_statement "{\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }" { (do_statement "do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);" do (compound_statement "{\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          }" { (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "piVar2 = (int *)(*pcVar6)(param_1,iVar4);" (assignment_expression "piVar2 = (int *)(*pcVar6)(param_1,iVar4)" identifier = (cast_expression "(int *)(*pcVar6)(param_1,iVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*pcVar6)(param_1,iVar4)" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "(param_1,iVar4)" ( identifier , identifier ))))) ;) (expression_statement "piVar3 = (int *)piVar1[1];" (assignment_expression "piVar3 = (int *)piVar1[1]" identifier = (cast_expression "(int *)piVar1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) ;) (if_statement "if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }" if (parenthesized_expression "(*piVar2 == 0)" ( (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" * identifier) == number_literal) )) (compound_statement "{\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }" { (expression_statement "*piVar2 = iVar4;" (assignment_expression "*piVar2 = iVar4" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "*(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;" (assignment_expression "*(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 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 "*(int *)(param_1 + 0xc) + 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) )))) + number_literal)) ;) (expression_statement "*piVar1 = 0;" (assignment_expression "*piVar1 = 0" (pointer_expression "*piVar1" * identifier) = number_literal) ;) (expression_statement "piVar1[1] = *(int *)(param_1 + 0x24);" (assignment_expression "piVar1[1] = *(int *)(param_1 + 0x24)" (subscript_expression "piVar1[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) = piVar1;" (assignment_expression "*(int **)(param_1 + 0x24) = piVar1" (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) ;) }) (else_clause "else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }" else (compound_statement "{\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }" { (expression_statement "piVar1[1] = piVar2[1];" (assignment_expression "piVar1[1] = piVar2[1]" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (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 "piVar1 = piVar3;" (assignment_expression "piVar1 = 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)) )) ;) (expression_statement "iVar4 = *piVar5;" (assignment_expression "iVar4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) }))) (expression_statement "piVar5[1] = 0;" (assignment_expression "piVar5[1] = 0" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }" { (expression_statement "piVar1 = (int *)(*pcVar6)(param_1,iVar4);" (assignment_expression "piVar1 = (int *)(*pcVar6)(param_1,iVar4)" identifier = (cast_expression "(int *)(*pcVar6)(param_1,iVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*pcVar6)(param_1,iVar4)" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "(param_1,iVar4)" ( identifier , identifier ))))) ;) (if_statement "if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }" if (parenthesized_expression "(*piVar1 == 0)" ( (binary_expression "*piVar1 == 0" (pointer_expression "*piVar1" * identifier) == number_literal) )) (compound_statement "{\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }" { (expression_statement "*piVar1 = iVar4;" (assignment_expression "*piVar1 = iVar4" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "*(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;" (assignment_expression "*(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 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 "*(int *)(param_1 + 0xc) + 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) )))) + number_literal)) ;) }) (else_clause "else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }" else (compound_statement "{\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }" { (expression_statement "piVar2 = *(int **)(param_1 + 0x24);" (assignment_expression "piVar2 = *(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 (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }" { (expression_statement "piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8)" identifier = (cast_expression "(int *)(*(code *)PTR_malloc_0002d2ec)(8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_0002d2ec)(8)" (parenthesized_expression "(*(code *)PTR_malloc_0002d2ec)" ( (pointer_expression "*(code *)PTR_malloc_0002d2ec" * (cast_expression "(code *)PTR_malloc_0002d2ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(8)" ( number_literal ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n                return 0;\n              }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (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) = piVar2[1];\n            }" else (compound_statement "{\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }" { (expression_statement "*(int *)(param_1 + 0x24) = piVar2[1];" (assignment_expression "*(int *)(param_1 + 0x24) = piVar2[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 "piVar2[1]" identifier [ number_literal ])) ;) }))) (expression_statement "*piVar2 = iVar4;" (assignment_expression "*piVar2 = iVar4" (pointer_expression "*piVar2" * identifier) = 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 "*piVar5 = 0;" (assignment_expression "*piVar5 = 0" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (expression_statement "param_2[3] = param_2[3] + -1;" (assignment_expression "param_2[3] = param_2[3] + -1" (subscript_expression "param_2[3]" identifier [ number_literal ]) = (binary_expression "param_2[3] + -1" (subscript_expression "param_2[3]" identifier [ number_literal ]) + number_literal)) ;) })) })) (expression_statement "piVar5 = piVar5 + 2;" (assignment_expression "piVar5 = piVar5 + 2" identifier = (binary_expression "piVar5 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar5 < (int *)param_2[1])" ( (binary_expression "piVar5 < (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 ]))) )) ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "_Bool transfer_entries(Hash_table *dst,Hash_table *src,_Bool safe)\n\n{\n  int *piVar1;\n  hash_entry *phVar2;\n  hash_entry *phVar3;\n  undefined3 in_register_00000018;\n  void *pvVar4;\n  hash_entry *phVar5;\n  code *pcVar6;\n  \n  phVar5 = src->bucket;\n  if (phVar5 < src->bucket_limit) {\n    pcVar6 = (code *)(PTR_0002d104 + 0x3dcc);\n    do {\n      if (phVar5->data != (void *)0x0) {\n        phVar2 = phVar5->next;\n        if (phVar5->next == (hash_entry *)0x0) {\n          pvVar4 = phVar5->data;\n        }\n        else {\n          do {\n            pvVar4 = phVar2->data;\n            piVar1 = (int *)(*pcVar6)(dst,pvVar4);\n            phVar3 = phVar2->next;\n            if (*piVar1 == 0) {\n              *piVar1 = (int)pvVar4;\n              dst->n_buckets_used = dst->n_buckets_used + 1;\n              phVar2->data = (void *)0x0;\n              phVar2->next = dst->free_entry_list;\n              dst->free_entry_list = phVar2;\n            }\n            else {\n              phVar2->next = (hash_entry *)piVar1[1];\n              piVar1[1] = (int)phVar2;\n            }\n            phVar2 = phVar3;\n          } while (phVar3 != (hash_entry *)0x0);\n          pvVar4 = phVar5->data;\n        }\n        phVar5->next = (hash_entry *)0x0;\n        if (CONCAT31(in_register_00000018,safe) == 0) {\n          piVar1 = (int *)(*pcVar6)(dst,pvVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = (int)pvVar4;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n          }\n          else {\n            phVar2 = dst->free_entry_list;\n            if (phVar2 == (hash_entry *)0x0) {\n              phVar2 = (hash_entry *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (phVar2 == (hash_entry *)0x0) {\n                return false;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar2->next;\n            }\n            phVar2->data = pvVar4;\n            phVar2->next = (hash_entry *)piVar1[1];\n            piVar1[1] = (int)phVar2;\n          }\n          phVar5->data = (void *)0x0;\n          src->n_buckets_used = src->n_buckets_used - 1;\n        }\n      }\n      phVar5 = phVar5 + 1;\n    } while (phVar5 < src->bucket_limit);\n  }\n  return true;\n}\n\n" (function_definition "_Bool transfer_entries(Hash_table *dst,Hash_table *src,_Bool safe)\n\n{\n  int *piVar1;\n  hash_entry *phVar2;\n  hash_entry *phVar3;\n  undefined3 in_register_00000018;\n  void *pvVar4;\n  hash_entry *phVar5;\n  code *pcVar6;\n  \n  phVar5 = src->bucket;\n  if (phVar5 < src->bucket_limit) {\n    pcVar6 = (code *)(PTR_0002d104 + 0x3dcc);\n    do {\n      if (phVar5->data != (void *)0x0) {\n        phVar2 = phVar5->next;\n        if (phVar5->next == (hash_entry *)0x0) {\n          pvVar4 = phVar5->data;\n        }\n        else {\n          do {\n            pvVar4 = phVar2->data;\n            piVar1 = (int *)(*pcVar6)(dst,pvVar4);\n            phVar3 = phVar2->next;\n            if (*piVar1 == 0) {\n              *piVar1 = (int)pvVar4;\n              dst->n_buckets_used = dst->n_buckets_used + 1;\n              phVar2->data = (void *)0x0;\n              phVar2->next = dst->free_entry_list;\n              dst->free_entry_list = phVar2;\n            }\n            else {\n              phVar2->next = (hash_entry *)piVar1[1];\n              piVar1[1] = (int)phVar2;\n            }\n            phVar2 = phVar3;\n          } while (phVar3 != (hash_entry *)0x0);\n          pvVar4 = phVar5->data;\n        }\n        phVar5->next = (hash_entry *)0x0;\n        if (CONCAT31(in_register_00000018,safe) == 0) {\n          piVar1 = (int *)(*pcVar6)(dst,pvVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = (int)pvVar4;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n          }\n          else {\n            phVar2 = dst->free_entry_list;\n            if (phVar2 == (hash_entry *)0x0) {\n              phVar2 = (hash_entry *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (phVar2 == (hash_entry *)0x0) {\n                return false;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar2->next;\n            }\n            phVar2->data = pvVar4;\n            phVar2->next = (hash_entry *)piVar1[1];\n            piVar1[1] = (int)phVar2;\n          }\n          phVar5->data = (void *)0x0;\n          src->n_buckets_used = src->n_buckets_used - 1;\n        }\n      }\n      phVar5 = phVar5 + 1;\n    } while (phVar5 < src->bucket_limit);\n  }\n  return 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  int *piVar1;\n  hash_entry *phVar2;\n  hash_entry *phVar3;\n  undefined3 in_register_00000018;\n  void *pvVar4;\n  hash_entry *phVar5;\n  code *pcVar6;\n  \n  phVar5 = src->bucket;\n  if (phVar5 < src->bucket_limit) {\n    pcVar6 = (code *)(PTR_0002d104 + 0x3dcc);\n    do {\n      if (phVar5->data != (void *)0x0) {\n        phVar2 = phVar5->next;\n        if (phVar5->next == (hash_entry *)0x0) {\n          pvVar4 = phVar5->data;\n        }\n        else {\n          do {\n            pvVar4 = phVar2->data;\n            piVar1 = (int *)(*pcVar6)(dst,pvVar4);\n            phVar3 = phVar2->next;\n            if (*piVar1 == 0) {\n              *piVar1 = (int)pvVar4;\n              dst->n_buckets_used = dst->n_buckets_used + 1;\n              phVar2->data = (void *)0x0;\n              phVar2->next = dst->free_entry_list;\n              dst->free_entry_list = phVar2;\n            }\n            else {\n              phVar2->next = (hash_entry *)piVar1[1];\n              piVar1[1] = (int)phVar2;\n            }\n            phVar2 = phVar3;\n          } while (phVar3 != (hash_entry *)0x0);\n          pvVar4 = phVar5->data;\n        }\n        phVar5->next = (hash_entry *)0x0;\n        if (CONCAT31(in_register_00000018,safe) == 0) {\n          piVar1 = (int *)(*pcVar6)(dst,pvVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = (int)pvVar4;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n          }\n          else {\n            phVar2 = dst->free_entry_list;\n            if (phVar2 == (hash_entry *)0x0) {\n              phVar2 = (hash_entry *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (phVar2 == (hash_entry *)0x0) {\n                return false;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar2->next;\n            }\n            phVar2->data = pvVar4;\n            phVar2->next = (hash_entry *)piVar1[1];\n            piVar1[1] = (int)phVar2;\n          }\n          phVar5->data = (void *)0x0;\n          src->n_buckets_used = src->n_buckets_used - 1;\n        }\n      }\n      phVar5 = phVar5 + 1;\n    } while (phVar5 < src->bucket_limit);\n  }\n  return true;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "hash_entry *phVar2;" type_identifier (pointer_declarator "*phVar2" * identifier) ;) (declaration "hash_entry *phVar3;" type_identifier (pointer_declarator "*phVar3" * identifier) ;) (declaration "undefined3 in_register_00000018;" type_identifier identifier ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "hash_entry *phVar5;" type_identifier (pointer_declarator "*phVar5" * identifier) ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (expression_statement "phVar5 = src->bucket;" (assignment_expression "phVar5 = src->bucket" identifier = (field_expression "src->bucket" identifier -> field_identifier)) ;) (if_statement "if (phVar5 < src->bucket_limit) {\n    pcVar6 = (code *)(PTR_0002d104 + 0x3dcc);\n    do {\n      if (phVar5->data != (void *)0x0) {\n        phVar2 = phVar5->next;\n        if (phVar5->next == (hash_entry *)0x0) {\n          pvVar4 = phVar5->data;\n        }\n        else {\n          do {\n            pvVar4 = phVar2->data;\n            piVar1 = (int *)(*pcVar6)(dst,pvVar4);\n            phVar3 = phVar2->next;\n            if (*piVar1 == 0) {\n              *piVar1 = (int)pvVar4;\n              dst->n_buckets_used = dst->n_buckets_used + 1;\n              phVar2->data = (void *)0x0;\n              phVar2->next = dst->free_entry_list;\n              dst->free_entry_list = phVar2;\n            }\n            else {\n              phVar2->next = (hash_entry *)piVar1[1];\n              piVar1[1] = (int)phVar2;\n            }\n            phVar2 = phVar3;\n          } while (phVar3 != (hash_entry *)0x0);\n          pvVar4 = phVar5->data;\n        }\n        phVar5->next = (hash_entry *)0x0;\n        if (CONCAT31(in_register_00000018,safe) == 0) {\n          piVar1 = (int *)(*pcVar6)(dst,pvVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = (int)pvVar4;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n          }\n          else {\n            phVar2 = dst->free_entry_list;\n            if (phVar2 == (hash_entry *)0x0) {\n              phVar2 = (hash_entry *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (phVar2 == (hash_entry *)0x0) {\n                return false;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar2->next;\n            }\n            phVar2->data = pvVar4;\n            phVar2->next = (hash_entry *)piVar1[1];\n            piVar1[1] = (int)phVar2;\n          }\n          phVar5->data = (void *)0x0;\n          src->n_buckets_used = src->n_buckets_used - 1;\n        }\n      }\n      phVar5 = phVar5 + 1;\n    } while (phVar5 < src->bucket_limit);\n  }" if (parenthesized_expression "(phVar5 < src->bucket_limit)" ( (binary_expression "phVar5 < src->bucket_limit" identifier < (field_expression "src->bucket_limit" identifier -> field_identifier)) )) (compound_statement "{\n    pcVar6 = (code *)(PTR_0002d104 + 0x3dcc);\n    do {\n      if (phVar5->data != (void *)0x0) {\n        phVar2 = phVar5->next;\n        if (phVar5->next == (hash_entry *)0x0) {\n          pvVar4 = phVar5->data;\n        }\n        else {\n          do {\n            pvVar4 = phVar2->data;\n            piVar1 = (int *)(*pcVar6)(dst,pvVar4);\n            phVar3 = phVar2->next;\n            if (*piVar1 == 0) {\n              *piVar1 = (int)pvVar4;\n              dst->n_buckets_used = dst->n_buckets_used + 1;\n              phVar2->data = (void *)0x0;\n              phVar2->next = dst->free_entry_list;\n              dst->free_entry_list = phVar2;\n            }\n            else {\n              phVar2->next = (hash_entry *)piVar1[1];\n              piVar1[1] = (int)phVar2;\n            }\n            phVar2 = phVar3;\n          } while (phVar3 != (hash_entry *)0x0);\n          pvVar4 = phVar5->data;\n        }\n        phVar5->next = (hash_entry *)0x0;\n        if (CONCAT31(in_register_00000018,safe) == 0) {\n          piVar1 = (int *)(*pcVar6)(dst,pvVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = (int)pvVar4;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n          }\n          else {\n            phVar2 = dst->free_entry_list;\n            if (phVar2 == (hash_entry *)0x0) {\n              phVar2 = (hash_entry *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (phVar2 == (hash_entry *)0x0) {\n                return false;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar2->next;\n            }\n            phVar2->data = pvVar4;\n            phVar2->next = (hash_entry *)piVar1[1];\n            piVar1[1] = (int)phVar2;\n          }\n          phVar5->data = (void *)0x0;\n          src->n_buckets_used = src->n_buckets_used - 1;\n        }\n      }\n      phVar5 = phVar5 + 1;\n    } while (phVar5 < src->bucket_limit);\n  }" { (expression_statement "pcVar6 = (code *)(PTR_0002d104 + 0x3dcc);" (assignment_expression "pcVar6 = (code *)(PTR_0002d104 + 0x3dcc)" identifier = (cast_expression "(code *)(PTR_0002d104 + 0x3dcc)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_0002d104 + 0x3dcc)" ( (binary_expression "PTR_0002d104 + 0x3dcc" identifier + number_literal) )))) ;) (do_statement "do {\n      if (phVar5->data != (void *)0x0) {\n        phVar2 = phVar5->next;\n        if (phVar5->next == (hash_entry *)0x0) {\n          pvVar4 = phVar5->data;\n        }\n        else {\n          do {\n            pvVar4 = phVar2->data;\n            piVar1 = (int *)(*pcVar6)(dst,pvVar4);\n            phVar3 = phVar2->next;\n            if (*piVar1 == 0) {\n              *piVar1 = (int)pvVar4;\n              dst->n_buckets_used = dst->n_buckets_used + 1;\n              phVar2->data = (void *)0x0;\n              phVar2->next = dst->free_entry_list;\n              dst->free_entry_list = phVar2;\n            }\n            else {\n              phVar2->next = (hash_entry *)piVar1[1];\n              piVar1[1] = (int)phVar2;\n            }\n            phVar2 = phVar3;\n          } while (phVar3 != (hash_entry *)0x0);\n          pvVar4 = phVar5->data;\n        }\n        phVar5->next = (hash_entry *)0x0;\n        if (CONCAT31(in_register_00000018,safe) == 0) {\n          piVar1 = (int *)(*pcVar6)(dst,pvVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = (int)pvVar4;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n          }\n          else {\n            phVar2 = dst->free_entry_list;\n            if (phVar2 == (hash_entry *)0x0) {\n              phVar2 = (hash_entry *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (phVar2 == (hash_entry *)0x0) {\n                return false;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar2->next;\n            }\n            phVar2->data = pvVar4;\n            phVar2->next = (hash_entry *)piVar1[1];\n            piVar1[1] = (int)phVar2;\n          }\n          phVar5->data = (void *)0x0;\n          src->n_buckets_used = src->n_buckets_used - 1;\n        }\n      }\n      phVar5 = phVar5 + 1;\n    } while (phVar5 < src->bucket_limit);" do (compound_statement "{\n      if (phVar5->data != (void *)0x0) {\n        phVar2 = phVar5->next;\n        if (phVar5->next == (hash_entry *)0x0) {\n          pvVar4 = phVar5->data;\n        }\n        else {\n          do {\n            pvVar4 = phVar2->data;\n            piVar1 = (int *)(*pcVar6)(dst,pvVar4);\n            phVar3 = phVar2->next;\n            if (*piVar1 == 0) {\n              *piVar1 = (int)pvVar4;\n              dst->n_buckets_used = dst->n_buckets_used + 1;\n              phVar2->data = (void *)0x0;\n              phVar2->next = dst->free_entry_list;\n              dst->free_entry_list = phVar2;\n            }\n            else {\n              phVar2->next = (hash_entry *)piVar1[1];\n              piVar1[1] = (int)phVar2;\n            }\n            phVar2 = phVar3;\n          } while (phVar3 != (hash_entry *)0x0);\n          pvVar4 = phVar5->data;\n        }\n        phVar5->next = (hash_entry *)0x0;\n        if (CONCAT31(in_register_00000018,safe) == 0) {\n          piVar1 = (int *)(*pcVar6)(dst,pvVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = (int)pvVar4;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n          }\n          else {\n            phVar2 = dst->free_entry_list;\n            if (phVar2 == (hash_entry *)0x0) {\n              phVar2 = (hash_entry *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (phVar2 == (hash_entry *)0x0) {\n                return false;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar2->next;\n            }\n            phVar2->data = pvVar4;\n            phVar2->next = (hash_entry *)piVar1[1];\n            piVar1[1] = (int)phVar2;\n          }\n          phVar5->data = (void *)0x0;\n          src->n_buckets_used = src->n_buckets_used - 1;\n        }\n      }\n      phVar5 = phVar5 + 1;\n    }" { (if_statement "if (phVar5->data != (void *)0x0) {\n        phVar2 = phVar5->next;\n        if (phVar5->next == (hash_entry *)0x0) {\n          pvVar4 = phVar5->data;\n        }\n        else {\n          do {\n            pvVar4 = phVar2->data;\n            piVar1 = (int *)(*pcVar6)(dst,pvVar4);\n            phVar3 = phVar2->next;\n            if (*piVar1 == 0) {\n              *piVar1 = (int)pvVar4;\n              dst->n_buckets_used = dst->n_buckets_used + 1;\n              phVar2->data = (void *)0x0;\n              phVar2->next = dst->free_entry_list;\n              dst->free_entry_list = phVar2;\n            }\n            else {\n              phVar2->next = (hash_entry *)piVar1[1];\n              piVar1[1] = (int)phVar2;\n            }\n            phVar2 = phVar3;\n          } while (phVar3 != (hash_entry *)0x0);\n          pvVar4 = phVar5->data;\n        }\n        phVar5->next = (hash_entry *)0x0;\n        if (CONCAT31(in_register_00000018,safe) == 0) {\n          piVar1 = (int *)(*pcVar6)(dst,pvVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = (int)pvVar4;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n          }\n          else {\n            phVar2 = dst->free_entry_list;\n            if (phVar2 == (hash_entry *)0x0) {\n              phVar2 = (hash_entry *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (phVar2 == (hash_entry *)0x0) {\n                return false;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar2->next;\n            }\n            phVar2->data = pvVar4;\n            phVar2->next = (hash_entry *)piVar1[1];\n            piVar1[1] = (int)phVar2;\n          }\n          phVar5->data = (void *)0x0;\n          src->n_buckets_used = src->n_buckets_used - 1;\n        }\n      }" if (parenthesized_expression "(phVar5->data != (void *)0x0)" ( (binary_expression "phVar5->data != (void *)0x0" (field_expression "phVar5->data" identifier -> field_identifier) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        phVar2 = phVar5->next;\n        if (phVar5->next == (hash_entry *)0x0) {\n          pvVar4 = phVar5->data;\n        }\n        else {\n          do {\n            pvVar4 = phVar2->data;\n            piVar1 = (int *)(*pcVar6)(dst,pvVar4);\n            phVar3 = phVar2->next;\n            if (*piVar1 == 0) {\n              *piVar1 = (int)pvVar4;\n              dst->n_buckets_used = dst->n_buckets_used + 1;\n              phVar2->data = (void *)0x0;\n              phVar2->next = dst->free_entry_list;\n              dst->free_entry_list = phVar2;\n            }\n            else {\n              phVar2->next = (hash_entry *)piVar1[1];\n              piVar1[1] = (int)phVar2;\n            }\n            phVar2 = phVar3;\n          } while (phVar3 != (hash_entry *)0x0);\n          pvVar4 = phVar5->data;\n        }\n        phVar5->next = (hash_entry *)0x0;\n        if (CONCAT31(in_register_00000018,safe) == 0) {\n          piVar1 = (int *)(*pcVar6)(dst,pvVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = (int)pvVar4;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n          }\n          else {\n            phVar2 = dst->free_entry_list;\n            if (phVar2 == (hash_entry *)0x0) {\n              phVar2 = (hash_entry *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (phVar2 == (hash_entry *)0x0) {\n                return false;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar2->next;\n            }\n            phVar2->data = pvVar4;\n            phVar2->next = (hash_entry *)piVar1[1];\n            piVar1[1] = (int)phVar2;\n          }\n          phVar5->data = (void *)0x0;\n          src->n_buckets_used = src->n_buckets_used - 1;\n        }\n      }" { (expression_statement "phVar2 = phVar5->next;" (assignment_expression "phVar2 = phVar5->next" identifier = (field_expression "phVar5->next" identifier -> field_identifier)) ;) (if_statement "if (phVar5->next == (hash_entry *)0x0) {\n          pvVar4 = phVar5->data;\n        }\n        else {\n          do {\n            pvVar4 = phVar2->data;\n            piVar1 = (int *)(*pcVar6)(dst,pvVar4);\n            phVar3 = phVar2->next;\n            if (*piVar1 == 0) {\n              *piVar1 = (int)pvVar4;\n              dst->n_buckets_used = dst->n_buckets_used + 1;\n              phVar2->data = (void *)0x0;\n              phVar2->next = dst->free_entry_list;\n              dst->free_entry_list = phVar2;\n            }\n            else {\n              phVar2->next = (hash_entry *)piVar1[1];\n              piVar1[1] = (int)phVar2;\n            }\n            phVar2 = phVar3;\n          } while (phVar3 != (hash_entry *)0x0);\n          pvVar4 = phVar5->data;\n        }" if (parenthesized_expression "(phVar5->next == (hash_entry *)0x0)" ( (binary_expression "phVar5->next == (hash_entry *)0x0" (field_expression "phVar5->next" identifier -> field_identifier) == (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pvVar4 = phVar5->data;\n        }" { (expression_statement "pvVar4 = phVar5->data;" (assignment_expression "pvVar4 = phVar5->data" identifier = (field_expression "phVar5->data" identifier -> field_identifier)) ;) }) (else_clause "else {\n          do {\n            pvVar4 = phVar2->data;\n            piVar1 = (int *)(*pcVar6)(dst,pvVar4);\n            phVar3 = phVar2->next;\n            if (*piVar1 == 0) {\n              *piVar1 = (int)pvVar4;\n              dst->n_buckets_used = dst->n_buckets_used + 1;\n              phVar2->data = (void *)0x0;\n              phVar2->next = dst->free_entry_list;\n              dst->free_entry_list = phVar2;\n            }\n            else {\n              phVar2->next = (hash_entry *)piVar1[1];\n              piVar1[1] = (int)phVar2;\n            }\n            phVar2 = phVar3;\n          } while (phVar3 != (hash_entry *)0x0);\n          pvVar4 = phVar5->data;\n        }" else (compound_statement "{\n          do {\n            pvVar4 = phVar2->data;\n            piVar1 = (int *)(*pcVar6)(dst,pvVar4);\n            phVar3 = phVar2->next;\n            if (*piVar1 == 0) {\n              *piVar1 = (int)pvVar4;\n              dst->n_buckets_used = dst->n_buckets_used + 1;\n              phVar2->data = (void *)0x0;\n              phVar2->next = dst->free_entry_list;\n              dst->free_entry_list = phVar2;\n            }\n            else {\n              phVar2->next = (hash_entry *)piVar1[1];\n              piVar1[1] = (int)phVar2;\n            }\n            phVar2 = phVar3;\n          } while (phVar3 != (hash_entry *)0x0);\n          pvVar4 = phVar5->data;\n        }" { (do_statement "do {\n            pvVar4 = phVar2->data;\n            piVar1 = (int *)(*pcVar6)(dst,pvVar4);\n            phVar3 = phVar2->next;\n            if (*piVar1 == 0) {\n              *piVar1 = (int)pvVar4;\n              dst->n_buckets_used = dst->n_buckets_used + 1;\n              phVar2->data = (void *)0x0;\n              phVar2->next = dst->free_entry_list;\n              dst->free_entry_list = phVar2;\n            }\n            else {\n              phVar2->next = (hash_entry *)piVar1[1];\n              piVar1[1] = (int)phVar2;\n            }\n            phVar2 = phVar3;\n          } while (phVar3 != (hash_entry *)0x0);" do (compound_statement "{\n            pvVar4 = phVar2->data;\n            piVar1 = (int *)(*pcVar6)(dst,pvVar4);\n            phVar3 = phVar2->next;\n            if (*piVar1 == 0) {\n              *piVar1 = (int)pvVar4;\n              dst->n_buckets_used = dst->n_buckets_used + 1;\n              phVar2->data = (void *)0x0;\n              phVar2->next = dst->free_entry_list;\n              dst->free_entry_list = phVar2;\n            }\n            else {\n              phVar2->next = (hash_entry *)piVar1[1];\n              piVar1[1] = (int)phVar2;\n            }\n            phVar2 = phVar3;\n          }" { (expression_statement "pvVar4 = phVar2->data;" (assignment_expression "pvVar4 = phVar2->data" identifier = (field_expression "phVar2->data" identifier -> field_identifier)) ;) (expression_statement "piVar1 = (int *)(*pcVar6)(dst,pvVar4);" (assignment_expression "piVar1 = (int *)(*pcVar6)(dst,pvVar4)" identifier = (cast_expression "(int *)(*pcVar6)(dst,pvVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*pcVar6)(dst,pvVar4)" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "(dst,pvVar4)" ( identifier , identifier ))))) ;) (expression_statement "phVar3 = phVar2->next;" (assignment_expression "phVar3 = phVar2->next" identifier = (field_expression "phVar2->next" identifier -> field_identifier)) ;) (if_statement "if (*piVar1 == 0) {\n              *piVar1 = (int)pvVar4;\n              dst->n_buckets_used = dst->n_buckets_used + 1;\n              phVar2->data = (void *)0x0;\n              phVar2->next = dst->free_entry_list;\n              dst->free_entry_list = phVar2;\n            }\n            else {\n              phVar2->next = (hash_entry *)piVar1[1];\n              piVar1[1] = (int)phVar2;\n            }" if (parenthesized_expression "(*piVar1 == 0)" ( (binary_expression "*piVar1 == 0" (pointer_expression "*piVar1" * identifier) == number_literal) )) (compound_statement "{\n              *piVar1 = (int)pvVar4;\n              dst->n_buckets_used = dst->n_buckets_used + 1;\n              phVar2->data = (void *)0x0;\n              phVar2->next = dst->free_entry_list;\n              dst->free_entry_list = phVar2;\n            }" { (expression_statement "*piVar1 = (int)pvVar4;" (assignment_expression "*piVar1 = (int)pvVar4" (pointer_expression "*piVar1" * identifier) = (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "dst->n_buckets_used = dst->n_buckets_used + 1;" (assignment_expression "dst->n_buckets_used = dst->n_buckets_used + 1" (field_expression "dst->n_buckets_used" identifier -> field_identifier) = (binary_expression "dst->n_buckets_used + 1" (field_expression "dst->n_buckets_used" identifier -> field_identifier) + number_literal)) ;) (expression_statement "phVar2->data = (void *)0x0;" (assignment_expression "phVar2->data = (void *)0x0" (field_expression "phVar2->data" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "phVar2->next = dst->free_entry_list;" (assignment_expression "phVar2->next = dst->free_entry_list" (field_expression "phVar2->next" identifier -> field_identifier) = (field_expression "dst->free_entry_list" identifier -> field_identifier)) ;) (expression_statement "dst->free_entry_list = phVar2;" (assignment_expression "dst->free_entry_list = phVar2" (field_expression "dst->free_entry_list" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n              phVar2->next = (hash_entry *)piVar1[1];\n              piVar1[1] = (int)phVar2;\n            }" else (compound_statement "{\n              phVar2->next = (hash_entry *)piVar1[1];\n              piVar1[1] = (int)phVar2;\n            }" { (expression_statement "phVar2->next = (hash_entry *)piVar1[1];" (assignment_expression "phVar2->next = (hash_entry *)piVar1[1]" (field_expression "phVar2->next" identifier -> field_identifier) = (cast_expression "(hash_entry *)piVar1[1]" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) ;) (expression_statement "piVar1[1] = (int)phVar2;" (assignment_expression "piVar1[1] = (int)phVar2" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = (cast_expression "(int)phVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }))) (expression_statement "phVar2 = phVar3;" (assignment_expression "phVar2 = phVar3" identifier = identifier) ;) }) while (parenthesized_expression "(phVar3 != (hash_entry *)0x0)" ( (binary_expression "phVar3 != (hash_entry *)0x0" identifier != (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "pvVar4 = phVar5->data;" (assignment_expression "pvVar4 = phVar5->data" identifier = (field_expression "phVar5->data" identifier -> field_identifier)) ;) }))) (expression_statement "phVar5->next = (hash_entry *)0x0;" (assignment_expression "phVar5->next = (hash_entry *)0x0" (field_expression "phVar5->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          piVar1 = (int *)(*pcVar6)(dst,pvVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = (int)pvVar4;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n          }\n          else {\n            phVar2 = dst->free_entry_list;\n            if (phVar2 == (hash_entry *)0x0) {\n              phVar2 = (hash_entry *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (phVar2 == (hash_entry *)0x0) {\n                return false;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar2->next;\n            }\n            phVar2->data = pvVar4;\n            phVar2->next = (hash_entry *)piVar1[1];\n            piVar1[1] = (int)phVar2;\n          }\n          phVar5->data = (void *)0x0;\n          src->n_buckets_used = src->n_buckets_used - 1;\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          piVar1 = (int *)(*pcVar6)(dst,pvVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = (int)pvVar4;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n          }\n          else {\n            phVar2 = dst->free_entry_list;\n            if (phVar2 == (hash_entry *)0x0) {\n              phVar2 = (hash_entry *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (phVar2 == (hash_entry *)0x0) {\n                return false;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar2->next;\n            }\n            phVar2->data = pvVar4;\n            phVar2->next = (hash_entry *)piVar1[1];\n            piVar1[1] = (int)phVar2;\n          }\n          phVar5->data = (void *)0x0;\n          src->n_buckets_used = src->n_buckets_used - 1;\n        }" { (expression_statement "piVar1 = (int *)(*pcVar6)(dst,pvVar4);" (assignment_expression "piVar1 = (int *)(*pcVar6)(dst,pvVar4)" identifier = (cast_expression "(int *)(*pcVar6)(dst,pvVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*pcVar6)(dst,pvVar4)" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "(dst,pvVar4)" ( identifier , identifier ))))) ;) (if_statement "if (*piVar1 == 0) {\n            *piVar1 = (int)pvVar4;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n          }\n          else {\n            phVar2 = dst->free_entry_list;\n            if (phVar2 == (hash_entry *)0x0) {\n              phVar2 = (hash_entry *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (phVar2 == (hash_entry *)0x0) {\n                return false;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar2->next;\n            }\n            phVar2->data = pvVar4;\n            phVar2->next = (hash_entry *)piVar1[1];\n            piVar1[1] = (int)phVar2;\n          }" if (parenthesized_expression "(*piVar1 == 0)" ( (binary_expression "*piVar1 == 0" (pointer_expression "*piVar1" * identifier) == number_literal) )) (compound_statement "{\n            *piVar1 = (int)pvVar4;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n          }" { (expression_statement "*piVar1 = (int)pvVar4;" (assignment_expression "*piVar1 = (int)pvVar4" (pointer_expression "*piVar1" * identifier) = (cast_expression "(int)pvVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "dst->n_buckets_used = dst->n_buckets_used + 1;" (assignment_expression "dst->n_buckets_used = dst->n_buckets_used + 1" (field_expression "dst->n_buckets_used" identifier -> field_identifier) = (binary_expression "dst->n_buckets_used + 1" (field_expression "dst->n_buckets_used" identifier -> field_identifier) + number_literal)) ;) }) (else_clause "else {\n            phVar2 = dst->free_entry_list;\n            if (phVar2 == (hash_entry *)0x0) {\n              phVar2 = (hash_entry *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (phVar2 == (hash_entry *)0x0) {\n                return false;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar2->next;\n            }\n            phVar2->data = pvVar4;\n            phVar2->next = (hash_entry *)piVar1[1];\n            piVar1[1] = (int)phVar2;\n          }" else (compound_statement "{\n            phVar2 = dst->free_entry_list;\n            if (phVar2 == (hash_entry *)0x0) {\n              phVar2 = (hash_entry *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (phVar2 == (hash_entry *)0x0) {\n                return false;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar2->next;\n            }\n            phVar2->data = pvVar4;\n            phVar2->next = (hash_entry *)piVar1[1];\n            piVar1[1] = (int)phVar2;\n          }" { (expression_statement "phVar2 = dst->free_entry_list;" (assignment_expression "phVar2 = dst->free_entry_list" identifier = (field_expression "dst->free_entry_list" identifier -> field_identifier)) ;) (if_statement "if (phVar2 == (hash_entry *)0x0) {\n              phVar2 = (hash_entry *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (phVar2 == (hash_entry *)0x0) {\n                return false;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar2->next;\n            }" if (parenthesized_expression "(phVar2 == (hash_entry *)0x0)" ( (binary_expression "phVar2 == (hash_entry *)0x0" identifier == (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              phVar2 = (hash_entry *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (phVar2 == (hash_entry *)0x0) {\n                return false;\n              }\n            }" { (expression_statement "phVar2 = (hash_entry *)(*(code *)PTR_malloc_0002d2ec)(8);" (assignment_expression "phVar2 = (hash_entry *)(*(code *)PTR_malloc_0002d2ec)(8)" identifier = (cast_expression "(hash_entry *)(*(code *)PTR_malloc_0002d2ec)(8)" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_0002d2ec)(8)" (parenthesized_expression "(*(code *)PTR_malloc_0002d2ec)" ( (pointer_expression "*(code *)PTR_malloc_0002d2ec" * (cast_expression "(code *)PTR_malloc_0002d2ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(8)" ( number_literal ))))) ;) (if_statement "if (phVar2 == (hash_entry *)0x0) {\n                return false;\n              }" if (parenthesized_expression "(phVar2 == (hash_entry *)0x0)" ( (binary_expression "phVar2 == (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 = phVar2->next;\n            }" else (compound_statement "{\n              dst->free_entry_list = phVar2->next;\n            }" { (expression_statement "dst->free_entry_list = phVar2->next;" (assignment_expression "dst->free_entry_list = phVar2->next" (field_expression "dst->free_entry_list" identifier -> field_identifier) = (field_expression "phVar2->next" identifier -> field_identifier)) ;) }))) (expression_statement "phVar2->data = pvVar4;" (assignment_expression "phVar2->data = pvVar4" (field_expression "phVar2->data" identifier -> field_identifier) = identifier) ;) (expression_statement "phVar2->next = (hash_entry *)piVar1[1];" (assignment_expression "phVar2->next = (hash_entry *)piVar1[1]" (field_expression "phVar2->next" identifier -> field_identifier) = (cast_expression "(hash_entry *)piVar1[1]" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) ;) (expression_statement "piVar1[1] = (int)phVar2;" (assignment_expression "piVar1[1] = (int)phVar2" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = (cast_expression "(int)phVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }))) (expression_statement "phVar5->data = (void *)0x0;" (assignment_expression "phVar5->data = (void *)0x0" (field_expression "phVar5->data" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "src->n_buckets_used = src->n_buckets_used - 1;" (assignment_expression "src->n_buckets_used = src->n_buckets_used - 1" (field_expression "src->n_buckets_used" identifier -> field_identifier) = (binary_expression "src->n_buckets_used - 1" (field_expression "src->n_buckets_used" identifier -> field_identifier) - number_literal)) ;) })) })) (expression_statement "phVar5 = phVar5 + 1;" (assignment_expression "phVar5 = phVar5 + 1" identifier = (binary_expression "phVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(phVar5 < src->bucket_limit)" ( (binary_expression "phVar5 < src->bucket_limit" identifier < (field_expression "src->bucket_limit" identifier -> field_identifier)) )) ;) })) (return_statement "return true;" return true ;) })))
(translation_unit "undefined4 FUN_00013e38(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 *piVar5;\n  code *pcVar6;\n  \n  piVar5 = (int *)*param_2;\n  if (piVar5 < (int *)param_2[1]) {\n    pcVar6 = (code *)(PTR_0002d104 + 0x3dcc);\n    do {\n      if (*piVar5 != 0) {\n        piVar1 = (int *)piVar5[1];\n        if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }\n        piVar5[1] = 0;\n        if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < (int *)param_2[1]);\n  }\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00013e38(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 *piVar5;\n  code *pcVar6;\n  \n  piVar5 = (int *)*param_2;\n  if (piVar5 < (int *)param_2[1]) {\n    pcVar6 = (code *)(PTR_0002d104 + 0x3dcc);\n    do {\n      if (*piVar5 != 0) {\n        piVar1 = (int *)piVar5[1];\n        if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }\n        piVar5[1] = 0;\n        if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < (int *)param_2[1]);\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_00013e38(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 *piVar5;\n  code *pcVar6;\n  \n  piVar5 = (int *)*param_2;\n  if (piVar5 < (int *)param_2[1]) {\n    pcVar6 = (code *)(PTR_0002d104 + 0x3dcc);\n    do {\n      if (*piVar5 != 0) {\n        piVar1 = (int *)piVar5[1];\n        if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }\n        piVar5[1] = 0;\n        if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < (int *)param_2[1]);\n  }\n  return 1;\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 *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (expression_statement "piVar5 = (int *)*param_2;" (assignment_expression "piVar5 = (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 (piVar5 < (int *)param_2[1]) {\n    pcVar6 = (code *)(PTR_0002d104 + 0x3dcc);\n    do {\n      if (*piVar5 != 0) {\n        piVar1 = (int *)piVar5[1];\n        if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }\n        piVar5[1] = 0;\n        if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < (int *)param_2[1]);\n  }" if (parenthesized_expression "(piVar5 < (int *)param_2[1])" ( (binary_expression "piVar5 < (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 ]))) )) (compound_statement "{\n    pcVar6 = (code *)(PTR_0002d104 + 0x3dcc);\n    do {\n      if (*piVar5 != 0) {\n        piVar1 = (int *)piVar5[1];\n        if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }\n        piVar5[1] = 0;\n        if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < (int *)param_2[1]);\n  }" { (expression_statement "pcVar6 = (code *)(PTR_0002d104 + 0x3dcc);" (assignment_expression "pcVar6 = (code *)(PTR_0002d104 + 0x3dcc)" identifier = (cast_expression "(code *)(PTR_0002d104 + 0x3dcc)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_0002d104 + 0x3dcc)" ( (binary_expression "PTR_0002d104 + 0x3dcc" identifier + number_literal) )))) ;) (do_statement "do {\n      if (*piVar5 != 0) {\n        piVar1 = (int *)piVar5[1];\n        if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }\n        piVar5[1] = 0;\n        if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < (int *)param_2[1]);" do (compound_statement "{\n      if (*piVar5 != 0) {\n        piVar1 = (int *)piVar5[1];\n        if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }\n        piVar5[1] = 0;\n        if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      piVar5 = piVar5 + 2;\n    }" { (if_statement "if (*piVar5 != 0) {\n        piVar1 = (int *)piVar5[1];\n        if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }\n        piVar5[1] = 0;\n        if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }" if (parenthesized_expression "(*piVar5 != 0)" ( (binary_expression "*piVar5 != 0" (pointer_expression "*piVar5" * identifier) != number_literal) )) (compound_statement "{\n        piVar1 = (int *)piVar5[1];\n        if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }\n        piVar5[1] = 0;\n        if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }" { (expression_statement "piVar1 = (int *)piVar5[1];" (assignment_expression "piVar1 = (int *)piVar5[1]" identifier = (cast_expression "(int *)piVar5[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar5[1]" identifier [ number_literal ]))) ;) (if_statement "if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }" if (parenthesized_expression "((int *)piVar5[1] == (int *)0x0)" ( (binary_expression "(int *)piVar5[1] == (int *)0x0" (cast_expression "(int *)piVar5[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar5[1]" identifier [ number_literal ])) == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar4 = *piVar5;\n        }" { (expression_statement "iVar4 = *piVar5;" (assignment_expression "iVar4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) }) (else_clause "else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }" else (compound_statement "{\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }" { (do_statement "do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);" do (compound_statement "{\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          }" { (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "piVar2 = (int *)(*pcVar6)(param_1,iVar4);" (assignment_expression "piVar2 = (int *)(*pcVar6)(param_1,iVar4)" identifier = (cast_expression "(int *)(*pcVar6)(param_1,iVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*pcVar6)(param_1,iVar4)" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "(param_1,iVar4)" ( identifier , identifier ))))) ;) (expression_statement "piVar3 = (int *)piVar1[1];" (assignment_expression "piVar3 = (int *)piVar1[1]" identifier = (cast_expression "(int *)piVar1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) ;) (if_statement "if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }" if (parenthesized_expression "(*piVar2 == 0)" ( (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" * identifier) == number_literal) )) (compound_statement "{\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }" { (expression_statement "*piVar2 = iVar4;" (assignment_expression "*piVar2 = iVar4" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "*(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;" (assignment_expression "*(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 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 "*(int *)(param_1 + 0xc) + 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) )))) + number_literal)) ;) (expression_statement "*piVar1 = 0;" (assignment_expression "*piVar1 = 0" (pointer_expression "*piVar1" * identifier) = number_literal) ;) (expression_statement "piVar1[1] = *(int *)(param_1 + 0x24);" (assignment_expression "piVar1[1] = *(int *)(param_1 + 0x24)" (subscript_expression "piVar1[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) = piVar1;" (assignment_expression "*(int **)(param_1 + 0x24) = piVar1" (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) ;) }) (else_clause "else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }" else (compound_statement "{\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }" { (expression_statement "piVar1[1] = piVar2[1];" (assignment_expression "piVar1[1] = piVar2[1]" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (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 "piVar1 = piVar3;" (assignment_expression "piVar1 = 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)) )) ;) (expression_statement "iVar4 = *piVar5;" (assignment_expression "iVar4 = *piVar5" identifier = (pointer_expression "*piVar5" * identifier)) ;) }))) (expression_statement "piVar5[1] = 0;" (assignment_expression "piVar5[1] = 0" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }" { (expression_statement "piVar1 = (int *)(*pcVar6)(param_1,iVar4);" (assignment_expression "piVar1 = (int *)(*pcVar6)(param_1,iVar4)" identifier = (cast_expression "(int *)(*pcVar6)(param_1,iVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*pcVar6)(param_1,iVar4)" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "(param_1,iVar4)" ( identifier , identifier ))))) ;) (if_statement "if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }" if (parenthesized_expression "(*piVar1 == 0)" ( (binary_expression "*piVar1 == 0" (pointer_expression "*piVar1" * identifier) == number_literal) )) (compound_statement "{\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }" { (expression_statement "*piVar1 = iVar4;" (assignment_expression "*piVar1 = iVar4" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "*(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;" (assignment_expression "*(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 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 "*(int *)(param_1 + 0xc) + 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) )))) + number_literal)) ;) }) (else_clause "else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }" else (compound_statement "{\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }" { (expression_statement "piVar2 = *(int **)(param_1 + 0x24);" (assignment_expression "piVar2 = *(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 (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }" { (expression_statement "piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8)" identifier = (cast_expression "(int *)(*(code *)PTR_malloc_0002d2ec)(8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_0002d2ec)(8)" (parenthesized_expression "(*(code *)PTR_malloc_0002d2ec)" ( (pointer_expression "*(code *)PTR_malloc_0002d2ec" * (cast_expression "(code *)PTR_malloc_0002d2ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(8)" ( number_literal ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n                return 0;\n              }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (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) = piVar2[1];\n            }" else (compound_statement "{\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }" { (expression_statement "*(int *)(param_1 + 0x24) = piVar2[1];" (assignment_expression "*(int *)(param_1 + 0x24) = piVar2[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 "piVar2[1]" identifier [ number_literal ])) ;) }))) (expression_statement "*piVar2 = iVar4;" (assignment_expression "*piVar2 = iVar4" (pointer_expression "*piVar2" * identifier) = 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 "*piVar5 = 0;" (assignment_expression "*piVar5 = 0" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (expression_statement "param_2[3] = param_2[3] + -1;" (assignment_expression "param_2[3] = param_2[3] + -1" (subscript_expression "param_2[3]" identifier [ number_literal ]) = (binary_expression "param_2[3] + -1" (subscript_expression "param_2[3]" identifier [ number_literal ]) + number_literal)) ;) })) })) (expression_statement "piVar5 = piVar5 + 2;" (assignment_expression "piVar5 = piVar5 + 2" identifier = (binary_expression "piVar5 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar5 < (int *)param_2[1])" ( (binary_expression "piVar5 < (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 ]))) )) ;) })) (return_statement "return 1;" return number_literal ;) })))
(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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (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 IDENT = (pointer_expression * IDENT)) ;) }) (else_clause else (compound_statement { (do_statement do (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 (parenthesized_expression ( (pointer_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) )) (compound_statement { (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + 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) ;) }) (else_clause else (compound_statement { (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)) )) ;) (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 (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + 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 (pointer_expression * IDENT) = IDENT) ;) (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 (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) })) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00013e38(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 *piVar5;\n  code *pcVar6;\n  \n  piVar5 = (int *)*param_2;\n  if (piVar5 < (int *)param_2[1]) {\n    pcVar6 = (code *)(PTR_0002d104 + 0x3dcc);\n    do {\n      if (*piVar5 != 0) {\n        piVar1 = (int *)piVar5[1];\n        if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }\n        piVar5[1] = 0;\n        if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < (int *)param_2[1]);\n  }\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00013e38(int param_1,undefined4 *param_2,int param_3)" (identifier "FUN_00013e38") (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 *piVar5;\n  code *pcVar6;\n  \n  piVar5 = (int *)*param_2;\n  if (piVar5 < (int *)param_2[1]) {\n    pcVar6 = (code *)(PTR_0002d104 + 0x3dcc);\n    do {\n      if (*piVar5 != 0) {\n        piVar1 = (int *)piVar5[1];\n        if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }\n        piVar5[1] = 0;\n        if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < (int *)param_2[1]);\n  }\n  return 1;\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 *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "code *pcVar6;" (type_identifier "code") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (expression_statement "piVar5 = (int *)*param_2;" (assignment_expression "piVar5 = (int *)*param_2" (identifier "piVar5") (= "=") (cast_expression "(int *)*param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (if_statement "if (piVar5 < (int *)param_2[1]) {\n    pcVar6 = (code *)(PTR_0002d104 + 0x3dcc);\n    do {\n      if (*piVar5 != 0) {\n        piVar1 = (int *)piVar5[1];\n        if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }\n        piVar5[1] = 0;\n        if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < (int *)param_2[1]);\n  }" (if "if") (parenthesized_expression "(piVar5 < (int *)param_2[1])" (( "(") (binary_expression "piVar5 < (int *)param_2[1]" (identifier "piVar5") (< "<") (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") (] "]")))) () ")")) (compound_statement "{\n    pcVar6 = (code *)(PTR_0002d104 + 0x3dcc);\n    do {\n      if (*piVar5 != 0) {\n        piVar1 = (int *)piVar5[1];\n        if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }\n        piVar5[1] = 0;\n        if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < (int *)param_2[1]);\n  }" ({ "{") (expression_statement "pcVar6 = (code *)(PTR_0002d104 + 0x3dcc);" (assignment_expression "pcVar6 = (code *)(PTR_0002d104 + 0x3dcc)" (identifier "pcVar6") (= "=") (cast_expression "(code *)(PTR_0002d104 + 0x3dcc)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_0002d104 + 0x3dcc)" (( "(") (binary_expression "PTR_0002d104 + 0x3dcc" (identifier "PTR_0002d104") (+ "+") (number_literal "0x3dcc")) () ")")))) (; ";")) (do_statement "do {\n      if (*piVar5 != 0) {\n        piVar1 = (int *)piVar5[1];\n        if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }\n        piVar5[1] = 0;\n        if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      piVar5 = piVar5 + 2;\n    } while (piVar5 < (int *)param_2[1]);" (do "do") (compound_statement "{\n      if (*piVar5 != 0) {\n        piVar1 = (int *)piVar5[1];\n        if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }\n        piVar5[1] = 0;\n        if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      piVar5 = piVar5 + 2;\n    }" ({ "{") (if_statement "if (*piVar5 != 0) {\n        piVar1 = (int *)piVar5[1];\n        if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }\n        piVar5[1] = 0;\n        if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }" (if "if") (parenthesized_expression "(*piVar5 != 0)" (( "(") (binary_expression "*piVar5 != 0" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        piVar1 = (int *)piVar5[1];\n        if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }\n        piVar5[1] = 0;\n        if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }" ({ "{") (expression_statement "piVar1 = (int *)piVar5[1];" (assignment_expression "piVar1 = (int *)piVar5[1]" (identifier "piVar1") (= "=") (cast_expression "(int *)piVar5[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if ((int *)piVar5[1] == (int *)0x0) {\n          iVar4 = *piVar5;\n        }\n        else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }" (if "if") (parenthesized_expression "((int *)piVar5[1] == (int *)0x0)" (( "(") (binary_expression "(int *)piVar5[1] == (int *)0x0" (cast_expression "(int *)piVar5[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]"))) (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          iVar4 = *piVar5;\n        }" ({ "{") (expression_statement "iVar4 = *piVar5;" (assignment_expression "iVar4 = *piVar5" (identifier "iVar4") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (} "}")) (else_clause "else {\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }" (else "else") (compound_statement "{\n          do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);\n          iVar4 = *piVar5;\n        }" ({ "{") (do_statement "do {\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          } while (piVar3 != (int *)0x0);" (do "do") (compound_statement "{\n            iVar4 = *piVar1;\n            piVar2 = (int *)(*pcVar6)(param_1,iVar4);\n            piVar3 = (int *)piVar1[1];\n            if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }\n            piVar1 = piVar3;\n          }" ({ "{") (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" (identifier "iVar4") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "piVar2 = (int *)(*pcVar6)(param_1,iVar4);" (assignment_expression "piVar2 = (int *)(*pcVar6)(param_1,iVar4)" (identifier "piVar2") (= "=") (cast_expression "(int *)(*pcVar6)(param_1,iVar4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*pcVar6)(param_1,iVar4)" (parenthesized_expression "(*pcVar6)" (( "(") (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) () ")")) (argument_list "(param_1,iVar4)" (( "(") (identifier "param_1") (, ",") (identifier "iVar4") () ")"))))) (; ";")) (expression_statement "piVar3 = (int *)piVar1[1];" (assignment_expression "piVar3 = (int *)piVar1[1]" (identifier "piVar3") (= "=") (cast_expression "(int *)piVar1[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (*piVar2 == 0) {\n              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }\n            else {\n              piVar1[1] = piVar2[1];\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              *piVar2 = iVar4;\n              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n              *piVar1 = 0;\n              piVar1[1] = *(int *)(param_1 + 0x24);\n              *(int **)(param_1 + 0x24) = piVar1;\n            }" ({ "{") (expression_statement "*piVar2 = iVar4;" (assignment_expression "*piVar2 = iVar4" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "*(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;" (assignment_expression "*(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 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 "*(int *)(param_1 + 0xc) + 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")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*piVar1 = 0;" (assignment_expression "*piVar1 = 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1[1] = *(int *)(param_1 + 0x24);" (assignment_expression "piVar1[1] = *(int *)(param_1 + 0x24)" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (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) = piVar1;" (assignment_expression "*(int **)(param_1 + 0x24) = 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")) () ")")))) (= "=") (identifier "piVar1")) (; ";")) (} "}")) (else_clause "else {\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }" (else "else") (compound_statement "{\n              piVar1[1] = piVar2[1];\n              piVar2[1] = (int)piVar1;\n            }" ({ "{") (expression_statement "piVar1[1] = piVar2[1];" (assignment_expression "piVar1[1] = piVar2[1]" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (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 "piVar1 = piVar3;" (assignment_expression "piVar1 = piVar3" (identifier "piVar1") (= "=") (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"))) () ")")) (; ";")) (expression_statement "iVar4 = *piVar5;" (assignment_expression "iVar4 = *piVar5" (identifier "iVar4") (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (} "}")))) (expression_statement "piVar5[1] = 0;" (assignment_expression "piVar5[1] = 0" (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_3 == 0) {\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          piVar1 = (int *)(*pcVar6)(param_1,iVar4);\n          if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }\n          *piVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }" ({ "{") (expression_statement "piVar1 = (int *)(*pcVar6)(param_1,iVar4);" (assignment_expression "piVar1 = (int *)(*pcVar6)(param_1,iVar4)" (identifier "piVar1") (= "=") (cast_expression "(int *)(*pcVar6)(param_1,iVar4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*pcVar6)(param_1,iVar4)" (parenthesized_expression "(*pcVar6)" (( "(") (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) () ")")) (argument_list "(param_1,iVar4)" (( "(") (identifier "param_1") (, ",") (identifier "iVar4") () ")"))))) (; ";")) (if_statement "if (*piVar1 == 0) {\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }\n          else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }" (if "if") (parenthesized_expression "(*piVar1 == 0)" (( "(") (binary_expression "*piVar1 == 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            *piVar1 = iVar4;\n            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;\n          }" ({ "{") (expression_statement "*piVar1 = iVar4;" (assignment_expression "*piVar1 = iVar4" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "*(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;" (assignment_expression "*(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 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 "*(int *)(param_1 + 0xc) + 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")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }" (else "else") (compound_statement "{\n            piVar2 = *(int **)(param_1 + 0x24);\n            if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }\n            *piVar2 = iVar4;\n            piVar2[1] = piVar1[1];\n            piVar1[1] = (int)piVar2;\n          }" ({ "{") (expression_statement "piVar2 = *(int **)(param_1 + 0x24);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x24)" (identifier "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")) () ")"))))) (; ";")) (if_statement "if (piVar2 == (int *)0x0) {\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }" (if "if") (parenthesized_expression "(piVar2 == (int *)0x0)" (( "(") (binary_expression "piVar2 == (int *)0x0" (identifier "piVar2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);\n              if (piVar2 == (int *)0x0) {\n                return 0;\n              }\n            }" ({ "{") (expression_statement "piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8)" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(code *)PTR_malloc_0002d2ec)(8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_malloc_0002d2ec)(8)" (parenthesized_expression "(*(code *)PTR_malloc_0002d2ec)" (( "(") (pointer_expression "*(code *)PTR_malloc_0002d2ec" (* "*") (cast_expression "(code *)PTR_malloc_0002d2ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_malloc_0002d2ec"))) () ")")) (argument_list "(8)" (( "(") (number_literal "8") () ")"))))) (; ";")) (if_statement "if (piVar2 == (int *)0x0) {\n                return 0;\n              }" (if "if") (parenthesized_expression "(piVar2 == (int *)0x0)" (( "(") (binary_expression "piVar2 == (int *)0x0" (identifier "piVar2") (== "==") (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) = piVar2[1];\n            }" (else "else") (compound_statement "{\n              *(int *)(param_1 + 0x24) = piVar2[1];\n            }" ({ "{") (expression_statement "*(int *)(param_1 + 0x24) = piVar2[1];" (assignment_expression "*(int *)(param_1 + 0x24) = piVar2[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 "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")))) (expression_statement "*piVar2 = iVar4;" (assignment_expression "*piVar2 = iVar4" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (identifier "iVar4")) (; ";")) (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 "*piVar5 = 0;" (assignment_expression "*piVar5 = 0" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_2[3] = param_2[3] + -1;" (assignment_expression "param_2[3] = param_2[3] + -1" (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (= "=") (binary_expression "param_2[3] + -1" (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (+ "+") (number_literal "-1"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "piVar5 = piVar5 + 2;" (assignment_expression "piVar5 = piVar5 + 2" (identifier "piVar5") (= "=") (binary_expression "piVar5 + 2" (identifier "piVar5") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar5 < (int *)param_2[1])" (( "(") (binary_expression "piVar5 < (int *)param_2[1]" (identifier "piVar5") (< "<") (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") (] "]")))) () ")")) (; ";")) (} "}"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))
(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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) 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: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (do_statement body: (compound_statement (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: (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: (identifier) right: (pointer_expression argument: (identifier))))) alternative: (else_clause (compound_statement (do_statement 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: (parenthesized_expression (pointer_expression argument: (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: (compound_statement (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (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)))) alternative: (else_clause (compound_statement (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))))) (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: (parenthesized_expression (pointer_expression argument: (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: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) 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: (pointer_expression argument: (identifier)) right: (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: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))))))) (return_statement (number_literal)))))

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

{
  int *piVar1;
  int *piVar2;
  int *piVar3;
  int iVar4;
  int *piVar5;
  code *pcVar6;
  
  piVar5 = (int *)*param_2;
  if (piVar5 < (int *)param_2[1]) {
    pcVar6 = (code *)(PTR_0002d104 + 0x3dcc);
    do {
      if (*piVar5 != 0) {
        piVar1 = (int *)piVar5[1];
        if ((int *)piVar5[1] == (int *)0x0) {
          iVar4 = *piVar5;
        }
        else {
          do {
            iVar4 = *piVar1;
            piVar2 = (int *)(*pcVar6)(param_1,iVar4);
            piVar3 = (int *)piVar1[1];
            if (*piVar2 == 0) {
              *piVar2 = iVar4;
              *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;
              *piVar1 = 0;
              piVar1[1] = *(int *)(param_1 + 0x24);
              *(int **)(param_1 + 0x24) = piVar1;
            }
            else {
              piVar1[1] = piVar2[1];
              piVar2[1] = (int)piVar1;
            }
            piVar1 = piVar3;
          } while (piVar3 != (int *)0x0);
          iVar4 = *piVar5;
        }
        piVar5[1] = 0;
        if (param_3 == 0) {
          piVar1 = (int *)(*pcVar6)(param_1,iVar4);
          if (*piVar1 == 0) {
            *piVar1 = iVar4;
            *(int *)(param_1 + 0xc) = *(int *)(param_1 + 0xc) + 1;
          }
          else {
            piVar2 = *(int **)(param_1 + 0x24);
            if (piVar2 == (int *)0x0) {
              piVar2 = (int *)(*(code *)PTR_malloc_0002d2ec)(8);
              if (piVar2 == (int *)0x0) {
                return 0;
              }
            }
            else {
              *(int *)(param_1 + 0x24) = piVar2[1];
            }
            *piVar2 = iVar4;
            piVar2[1] = piVar1[1];
            piVar1[1] = (int)piVar2;
          }
          *piVar5 = 0;
          param_2[3] = param_2[3] + -1;
        }
      }
      piVar5 = piVar5 + 2;
    } while (piVar5 < (int *)param_2[1]);
  }
  return 1;
}

