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

{
  void *pvVar1;
  hash_entry *phVar2;
  hash_entry *phVar3;
  hash_entry *phVar4;
  hash_entry *phVar5;
  
  phVar5 = src->bucket;
  if (phVar5 < src->bucket_limit) {
    do {
      if (phVar5->data != (void *)0x0) {
        phVar3 = phVar5->next;
        while (phVar3 != (hash_entry *)0x0) {
          pvVar1 = phVar3->data;
          phVar2 = safe_hasher(dst,pvVar1);
          phVar4 = phVar3->next;
          if (phVar2->data == (void *)0x0) {
            phVar2->data = pvVar1;
            dst->n_buckets_used = dst->n_buckets_used + 1;
            phVar3->data = (void *)0x0;
            phVar3->next = dst->free_entry_list;
            dst->free_entry_list = phVar3;
            phVar3 = phVar4;
          }
          else {
            phVar3->next = phVar2->next;
            phVar2->next = phVar3;
            phVar3 = phVar4;
          }
        }
        pvVar1 = phVar5->data;
        phVar5->next = (hash_entry *)0x0;
        if (!safe) {
          phVar3 = safe_hasher(dst,pvVar1);
          if (phVar3->data == (void *)0x0) {
            phVar3->data = pvVar1;
            dst->n_buckets_used = dst->n_buckets_used + 1;
          }
          else {
            phVar4 = dst->free_entry_list;
            if (phVar4 == (hash_entry *)0x0) {
              phVar4 = (hash_entry *)malloc(0x10);
              if (phVar4 == (hash_entry *)0x0) {
                return safe;
              }
            }
            else {
              dst->free_entry_list = phVar4->next;
            }
            phVar4->data = pvVar1;
            phVar4->next = phVar3->next;
            phVar3->next = phVar4;
          }
          phVar5->data = (void *)0x0;
          src->n_buckets_used = src->n_buckets_used - 1;
        }
      }
      phVar5 = phVar5 + 1;
    } while (phVar5 < src->bucket_limit);
  }
  return true;
}



undefined1 FUN_00108f5f(long param_1,undefined8 *param_2,char param_3)

{
  long lVar1;
  long *plVar2;
  long *plVar3;
  long *plVar4;
  long *plVar5;
  
  plVar5 = (long *)*param_2;
  if (plVar5 < (long *)param_2[1]) {
    do {
      if (*plVar5 != 0) {
        plVar3 = (long *)plVar5[1];
        while (plVar3 != (long *)0x0) {
          lVar1 = *plVar3;
          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);
          plVar4 = (long *)plVar3[1];
          if (*plVar2 == 0) {
            *plVar2 = lVar1;
            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;
            *plVar3 = 0;
            plVar3[1] = *(long *)(param_1 + 0x48);
            *(long **)(param_1 + 0x48) = plVar3;
            plVar3 = plVar4;
          }
          else {
            plVar3[1] = plVar2[1];
            plVar2[1] = (long)plVar3;
            plVar3 = plVar4;
          }
        }
        lVar1 = *plVar5;
        plVar5[1] = 0;
        if (param_3 == '\0') {
          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);
          if (*plVar3 == 0) {
            *plVar3 = lVar1;
            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;
          }
          else {
            plVar4 = *(long **)(param_1 + 0x48);
            if (plVar4 == (long *)0x0) {
              plVar4 = (long *)malloc(0x10);
              if (plVar4 == (long *)0x0) {
                return 0;
              }
            }
            else {
              *(long *)(param_1 + 0x48) = plVar4[1];
            }
            *plVar4 = lVar1;
            plVar4[1] = plVar3[1];
            plVar3[1] = (long)plVar4;
          }
          *plVar5 = 0;
          param_2[3] = param_2[3] + -1;
        }
      }
      plVar5 = plVar5 + 2;
    } while (plVar5 < (long *)param_2[1]);
  }
  return 1;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x18
MOV R12,RDI
MOV R14,RSI
MOV dword ptr [RSP + 0xc],EDX
MOV R15D,EDX
MOV R13,qword ptr [RSI]
CMP R13,qword ptr [RSI + 0x8]
JC 0x0010903b
MOV EAX,0x1
JMP 0x00109077
MOV qword ptr [RAX],RBP
ADD qword ptr [R12 + 0x18],0x1
MOV qword ptr [RBX],0x0
MOV RAX,qword ptr [R12 + 0x48]
MOV qword ptr [RBX + 0x8],RAX
MOV qword ptr [R12 + 0x48],RBX
MOV RBX,RDX
TEST RDX,RDX
JZ 0x00108fdd
MOV RBP,qword ptr [RBX]
MOV RSI,RBP
MOV RDI,R12
CALL 0x00108f3d
MOV RDX,qword ptr [RBX + 0x8]
CMP qword ptr [RAX],0x0
JZ 0x00108f91
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x8],RCX
MOV qword ptr [RAX + 0x8],RBX
JMP 0x00108faf
MOV RBX,qword ptr [R13]
MOV qword ptr [R13 + 0x8],0x0
TEST R15B,R15B
JNZ 0x00109031
MOV RSI,RBX
MOV RDI,R12
CALL 0x00108f3d
MOV RBP,RAX
CMP qword ptr [RAX],0x0
JZ 0x00109067
MOV RAX,qword ptr [R12 + 0x48]
TEST RAX,RAX
JZ 0x00109051
MOV RDX,qword ptr [RAX + 0x8]
MOV qword ptr [R12 + 0x48],RDX
MOV qword ptr [RAX],RBX
MOV RDX,qword ptr [RBP + 0x8]
MOV qword ptr [RAX + 0x8],RDX
MOV qword ptr [RBP + 0x8],RAX
MOV qword ptr [R13],0x0
SUB qword ptr [R14 + 0x18],0x1
ADD R13,0x10
CMP qword ptr [R14 + 0x8],R13
JBE 0x00109072
CMP qword ptr [R13],0x0
JZ 0x00109031
MOV RBX,qword ptr [R13 + 0x8]
TEST RBX,RBX
JNZ 0x00108fb7
JMP 0x00108fdd
MOV EDI,0x10
CALL 0x001022b0
TEST RAX,RAX
JNZ 0x00109015
MOVZX EAX,byte ptr [RSP + 0xc]
JMP 0x00109077
MOV qword ptr [RAX],RBX
ADD qword ptr [R12 + 0x18],0x1
JMP 0x00109024
MOV EAX,0x1
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
(translation_unit "undefined1 FUN_00108f5f(long param_1,undefined8 *param_2,char param_3)\n\n{\n  long lVar1;\n  long *plVar2;\n  long *plVar3;\n  long *plVar4;\n  long *plVar5;\n  \n  plVar5 = (long *)*param_2;\n  if (plVar5 < (long *)param_2[1]) {\n    do {\n      if (*plVar5 != 0) {\n        plVar3 = (long *)plVar5[1];\n        while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }\n        lVar1 = *plVar5;\n        plVar5[1] = 0;\n        if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      plVar5 = plVar5 + 2;\n    } while (plVar5 < (long *)param_2[1]);\n  }\n  return 1;\n}\n\n" (function_definition "undefined1 FUN_00108f5f(long param_1,undefined8 *param_2,char param_3)\n\n{\n  long lVar1;\n  long *plVar2;\n  long *plVar3;\n  long *plVar4;\n  long *plVar5;\n  \n  plVar5 = (long *)*param_2;\n  if (plVar5 < (long *)param_2[1]) {\n    do {\n      if (*plVar5 != 0) {\n        plVar3 = (long *)plVar5[1];\n        while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }\n        lVar1 = *plVar5;\n        plVar5[1] = 0;\n        if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      plVar5 = plVar5 + 2;\n    } while (plVar5 < (long *)param_2[1]);\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_00108f5f(long param_1,undefined8 *param_2,char param_3)" identifier (parameter_list "(long param_1,undefined8 *param_2,char param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n  long lVar1;\n  long *plVar2;\n  long *plVar3;\n  long *plVar4;\n  long *plVar5;\n  \n  plVar5 = (long *)*param_2;\n  if (plVar5 < (long *)param_2[1]) {\n    do {\n      if (*plVar5 != 0) {\n        plVar3 = (long *)plVar5[1];\n        while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }\n        lVar1 = *plVar5;\n        plVar5[1] = 0;\n        if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      plVar5 = plVar5 + 2;\n    } while (plVar5 < (long *)param_2[1]);\n  }\n  return 1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "long *plVar3;" (sized_type_specifier "long" long) (pointer_declarator "*plVar3" * identifier) ;) (declaration "long *plVar4;" (sized_type_specifier "long" long) (pointer_declarator "*plVar4" * identifier) ;) (declaration "long *plVar5;" (sized_type_specifier "long" long) (pointer_declarator "*plVar5" * identifier) ;) (expression_statement "plVar5 = (long *)*param_2;" (assignment_expression "plVar5 = (long *)*param_2" identifier = (cast_expression "(long *)*param_2" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (plVar5 < (long *)param_2[1]) {\n    do {\n      if (*plVar5 != 0) {\n        plVar3 = (long *)plVar5[1];\n        while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }\n        lVar1 = *plVar5;\n        plVar5[1] = 0;\n        if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      plVar5 = plVar5 + 2;\n    } while (plVar5 < (long *)param_2[1]);\n  }" if (parenthesized_expression "(plVar5 < (long *)param_2[1])" ( (binary_expression "plVar5 < (long *)param_2[1]" identifier < (cast_expression "(long *)param_2[1]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    do {\n      if (*plVar5 != 0) {\n        plVar3 = (long *)plVar5[1];\n        while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }\n        lVar1 = *plVar5;\n        plVar5[1] = 0;\n        if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      plVar5 = plVar5 + 2;\n    } while (plVar5 < (long *)param_2[1]);\n  }" { (do_statement "do {\n      if (*plVar5 != 0) {\n        plVar3 = (long *)plVar5[1];\n        while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }\n        lVar1 = *plVar5;\n        plVar5[1] = 0;\n        if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      plVar5 = plVar5 + 2;\n    } while (plVar5 < (long *)param_2[1]);" do (compound_statement "{\n      if (*plVar5 != 0) {\n        plVar3 = (long *)plVar5[1];\n        while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }\n        lVar1 = *plVar5;\n        plVar5[1] = 0;\n        if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      plVar5 = plVar5 + 2;\n    }" { (if_statement "if (*plVar5 != 0) {\n        plVar3 = (long *)plVar5[1];\n        while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }\n        lVar1 = *plVar5;\n        plVar5[1] = 0;\n        if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }" if (parenthesized_expression "(*plVar5 != 0)" ( (binary_expression "*plVar5 != 0" (pointer_expression "*plVar5" * identifier) != number_literal) )) (compound_statement "{\n        plVar3 = (long *)plVar5[1];\n        while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }\n        lVar1 = *plVar5;\n        plVar5[1] = 0;\n        if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }" { (expression_statement "plVar3 = (long *)plVar5[1];" (assignment_expression "plVar3 = (long *)plVar5[1]" identifier = (cast_expression "(long *)plVar5[1]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar5[1]" identifier [ number_literal ]))) ;) (while_statement "while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }" while (parenthesized_expression "(plVar3 != (long *)0x0)" ( (binary_expression "plVar3 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }" { (expression_statement "lVar1 = *plVar3;" (assignment_expression "lVar1 = *plVar3" identifier = (pointer_expression "*plVar3" * identifier)) ;) (expression_statement "plVar2 = (long *)FUN_00108f3d(param_1,lVar1);" (assignment_expression "plVar2 = (long *)FUN_00108f3d(param_1,lVar1)" identifier = (cast_expression "(long *)FUN_00108f3d(param_1,lVar1)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00108f3d(param_1,lVar1)" identifier (argument_list "(param_1,lVar1)" ( identifier , identifier ))))) ;) (expression_statement "plVar4 = (long *)plVar3[1];" (assignment_expression "plVar4 = (long *)plVar3[1]" identifier = (cast_expression "(long *)plVar3[1]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar3[1]" identifier [ number_literal ]))) ;) (if_statement "if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }" if (parenthesized_expression "(*plVar2 == 0)" ( (binary_expression "*plVar2 == 0" (pointer_expression "*plVar2" * identifier) == number_literal) )) (compound_statement "{\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }" { (expression_statement "*plVar2 = lVar1;" (assignment_expression "*plVar2 = lVar1" (pointer_expression "*plVar2" * identifier) = identifier) ;) (expression_statement "*(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;" (assignment_expression "*(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1" (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (binary_expression "*(long *)(param_1 + 0x18) + 1" (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*plVar3 = 0;" (assignment_expression "*plVar3 = 0" (pointer_expression "*plVar3" * identifier) = number_literal) ;) (expression_statement "plVar3[1] = *(long *)(param_1 + 0x48);" (assignment_expression "plVar3[1] = *(long *)(param_1 + 0x48)" (subscript_expression "plVar3[1]" identifier [ number_literal ]) = (pointer_expression "*(long *)(param_1 + 0x48)" * (cast_expression "(long *)(param_1 + 0x48)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) ))))) ;) (expression_statement "*(long **)(param_1 + 0x48) = plVar3;" (assignment_expression "*(long **)(param_1 + 0x48) = plVar3" (pointer_expression "*(long **)(param_1 + 0x48)" * (cast_expression "(long **)(param_1 + 0x48)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = identifier) ;) (expression_statement "plVar3 = plVar4;" (assignment_expression "plVar3 = plVar4" identifier = identifier) ;) }) (else_clause "else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }" else (compound_statement "{\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }" { (expression_statement "plVar3[1] = plVar2[1];" (assignment_expression "plVar3[1] = plVar2[1]" (subscript_expression "plVar3[1]" identifier [ number_literal ]) = (subscript_expression "plVar2[1]" identifier [ number_literal ])) ;) (expression_statement "plVar2[1] = (long)plVar3;" (assignment_expression "plVar2[1] = (long)plVar3" (subscript_expression "plVar2[1]" identifier [ number_literal ]) = (cast_expression "(long)plVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "plVar3 = plVar4;" (assignment_expression "plVar3 = plVar4" identifier = identifier) ;) }))) })) (expression_statement "lVar1 = *plVar5;" (assignment_expression "lVar1 = *plVar5" identifier = (pointer_expression "*plVar5" * identifier)) ;) (expression_statement "plVar5[1] = 0;" (assignment_expression "plVar5[1] = 0" (subscript_expression "plVar5[1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }" if (parenthesized_expression "(param_3 == '\0')" ( (binary_expression "param_3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }" { (expression_statement "plVar3 = (long *)FUN_00108f3d(param_1,lVar1);" (assignment_expression "plVar3 = (long *)FUN_00108f3d(param_1,lVar1)" identifier = (cast_expression "(long *)FUN_00108f3d(param_1,lVar1)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00108f3d(param_1,lVar1)" identifier (argument_list "(param_1,lVar1)" ( identifier , identifier ))))) ;) (if_statement "if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }" if (parenthesized_expression "(*plVar3 == 0)" ( (binary_expression "*plVar3 == 0" (pointer_expression "*plVar3" * identifier) == number_literal) )) (compound_statement "{\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }" { (expression_statement "*plVar3 = lVar1;" (assignment_expression "*plVar3 = lVar1" (pointer_expression "*plVar3" * identifier) = identifier) ;) (expression_statement "*(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;" (assignment_expression "*(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1" (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (binary_expression "*(long *)(param_1 + 0x18) + 1" (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }" else (compound_statement "{\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }" { (expression_statement "plVar4 = *(long **)(param_1 + 0x48);" (assignment_expression "plVar4 = *(long **)(param_1 + 0x48)" identifier = (pointer_expression "*(long **)(param_1 + 0x48)" * (cast_expression "(long **)(param_1 + 0x48)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) ))))) ;) (if_statement "if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }" if (parenthesized_expression "(plVar4 == (long *)0x0)" ( (binary_expression "plVar4 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }" { (expression_statement "plVar4 = (long *)malloc(0x10);" (assignment_expression "plVar4 = (long *)malloc(0x10)" identifier = (cast_expression "(long *)malloc(0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (if_statement "if (plVar4 == (long *)0x0) {\n                return 0;\n              }" if (parenthesized_expression "(plVar4 == (long *)0x0)" ( (binary_expression "plVar4 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                return 0;\n              }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }" else (compound_statement "{\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }" { (expression_statement "*(long *)(param_1 + 0x48) = plVar4[1];" (assignment_expression "*(long *)(param_1 + 0x48) = plVar4[1]" (pointer_expression "*(long *)(param_1 + 0x48)" * (cast_expression "(long *)(param_1 + 0x48)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = (subscript_expression "plVar4[1]" identifier [ number_literal ])) ;) }))) (expression_statement "*plVar4 = lVar1;" (assignment_expression "*plVar4 = lVar1" (pointer_expression "*plVar4" * identifier) = identifier) ;) (expression_statement "plVar4[1] = plVar3[1];" (assignment_expression "plVar4[1] = plVar3[1]" (subscript_expression "plVar4[1]" identifier [ number_literal ]) = (subscript_expression "plVar3[1]" identifier [ number_literal ])) ;) (expression_statement "plVar3[1] = (long)plVar4;" (assignment_expression "plVar3[1] = (long)plVar4" (subscript_expression "plVar3[1]" identifier [ number_literal ]) = (cast_expression "(long)plVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) }))) (expression_statement "*plVar5 = 0;" (assignment_expression "*plVar5 = 0" (pointer_expression "*plVar5" * 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 "plVar5 = plVar5 + 2;" (assignment_expression "plVar5 = plVar5 + 2" identifier = (binary_expression "plVar5 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(plVar5 < (long *)param_2[1])" ( (binary_expression "plVar5 < (long *)param_2[1]" identifier < (cast_expression "(long *)param_2[1]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (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  void *pvVar1;\n  hash_entry *phVar2;\n  hash_entry *phVar3;\n  hash_entry *phVar4;\n  hash_entry *phVar5;\n  \n  phVar5 = src->bucket;\n  if (phVar5 < src->bucket_limit) {\n    do {\n      if (phVar5->data != (void *)0x0) {\n        phVar3 = phVar5->next;\n        while (phVar3 != (hash_entry *)0x0) {\n          pvVar1 = phVar3->data;\n          phVar2 = safe_hasher(dst,pvVar1);\n          phVar4 = phVar3->next;\n          if (phVar2->data == (void *)0x0) {\n            phVar2->data = pvVar1;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n            phVar3->data = (void *)0x0;\n            phVar3->next = dst->free_entry_list;\n            dst->free_entry_list = phVar3;\n            phVar3 = phVar4;\n          }\n          else {\n            phVar3->next = phVar2->next;\n            phVar2->next = phVar3;\n            phVar3 = phVar4;\n          }\n        }\n        pvVar1 = phVar5->data;\n        phVar5->next = (hash_entry *)0x0;\n        if (!safe) {\n          phVar3 = safe_hasher(dst,pvVar1);\n          if (phVar3->data == (void *)0x0) {\n            phVar3->data = pvVar1;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n          }\n          else {\n            phVar4 = dst->free_entry_list;\n            if (phVar4 == (hash_entry *)0x0) {\n              phVar4 = (hash_entry *)malloc(0x10);\n              if (phVar4 == (hash_entry *)0x0) {\n                return safe;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar4->next;\n            }\n            phVar4->data = pvVar1;\n            phVar4->next = phVar3->next;\n            phVar3->next = phVar4;\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  void *pvVar1;\n  hash_entry *phVar2;\n  hash_entry *phVar3;\n  hash_entry *phVar4;\n  hash_entry *phVar5;\n  \n  phVar5 = src->bucket;\n  if (phVar5 < src->bucket_limit) {\n    do {\n      if (phVar5->data != (void *)0x0) {\n        phVar3 = phVar5->next;\n        while (phVar3 != (hash_entry *)0x0) {\n          pvVar1 = phVar3->data;\n          phVar2 = safe_hasher(dst,pvVar1);\n          phVar4 = phVar3->next;\n          if (phVar2->data == (void *)0x0) {\n            phVar2->data = pvVar1;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n            phVar3->data = (void *)0x0;\n            phVar3->next = dst->free_entry_list;\n            dst->free_entry_list = phVar3;\n            phVar3 = phVar4;\n          }\n          else {\n            phVar3->next = phVar2->next;\n            phVar2->next = phVar3;\n            phVar3 = phVar4;\n          }\n        }\n        pvVar1 = phVar5->data;\n        phVar5->next = (hash_entry *)0x0;\n        if (!safe) {\n          phVar3 = safe_hasher(dst,pvVar1);\n          if (phVar3->data == (void *)0x0) {\n            phVar3->data = pvVar1;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n          }\n          else {\n            phVar4 = dst->free_entry_list;\n            if (phVar4 == (hash_entry *)0x0) {\n              phVar4 = (hash_entry *)malloc(0x10);\n              if (phVar4 == (hash_entry *)0x0) {\n                return safe;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar4->next;\n            }\n            phVar4->data = pvVar1;\n            phVar4->next = phVar3->next;\n            phVar3->next = phVar4;\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  void *pvVar1;\n  hash_entry *phVar2;\n  hash_entry *phVar3;\n  hash_entry *phVar4;\n  hash_entry *phVar5;\n  \n  phVar5 = src->bucket;\n  if (phVar5 < src->bucket_limit) {\n    do {\n      if (phVar5->data != (void *)0x0) {\n        phVar3 = phVar5->next;\n        while (phVar3 != (hash_entry *)0x0) {\n          pvVar1 = phVar3->data;\n          phVar2 = safe_hasher(dst,pvVar1);\n          phVar4 = phVar3->next;\n          if (phVar2->data == (void *)0x0) {\n            phVar2->data = pvVar1;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n            phVar3->data = (void *)0x0;\n            phVar3->next = dst->free_entry_list;\n            dst->free_entry_list = phVar3;\n            phVar3 = phVar4;\n          }\n          else {\n            phVar3->next = phVar2->next;\n            phVar2->next = phVar3;\n            phVar3 = phVar4;\n          }\n        }\n        pvVar1 = phVar5->data;\n        phVar5->next = (hash_entry *)0x0;\n        if (!safe) {\n          phVar3 = safe_hasher(dst,pvVar1);\n          if (phVar3->data == (void *)0x0) {\n            phVar3->data = pvVar1;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n          }\n          else {\n            phVar4 = dst->free_entry_list;\n            if (phVar4 == (hash_entry *)0x0) {\n              phVar4 = (hash_entry *)malloc(0x10);\n              if (phVar4 == (hash_entry *)0x0) {\n                return safe;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar4->next;\n            }\n            phVar4->data = pvVar1;\n            phVar4->next = phVar3->next;\n            phVar3->next = phVar4;\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 "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (declaration "hash_entry *phVar2;" type_identifier (pointer_declarator "*phVar2" * identifier) ;) (declaration "hash_entry *phVar3;" type_identifier (pointer_declarator "*phVar3" * identifier) ;) (declaration "hash_entry *phVar4;" type_identifier (pointer_declarator "*phVar4" * identifier) ;) (declaration "hash_entry *phVar5;" type_identifier (pointer_declarator "*phVar5" * 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    do {\n      if (phVar5->data != (void *)0x0) {\n        phVar3 = phVar5->next;\n        while (phVar3 != (hash_entry *)0x0) {\n          pvVar1 = phVar3->data;\n          phVar2 = safe_hasher(dst,pvVar1);\n          phVar4 = phVar3->next;\n          if (phVar2->data == (void *)0x0) {\n            phVar2->data = pvVar1;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n            phVar3->data = (void *)0x0;\n            phVar3->next = dst->free_entry_list;\n            dst->free_entry_list = phVar3;\n            phVar3 = phVar4;\n          }\n          else {\n            phVar3->next = phVar2->next;\n            phVar2->next = phVar3;\n            phVar3 = phVar4;\n          }\n        }\n        pvVar1 = phVar5->data;\n        phVar5->next = (hash_entry *)0x0;\n        if (!safe) {\n          phVar3 = safe_hasher(dst,pvVar1);\n          if (phVar3->data == (void *)0x0) {\n            phVar3->data = pvVar1;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n          }\n          else {\n            phVar4 = dst->free_entry_list;\n            if (phVar4 == (hash_entry *)0x0) {\n              phVar4 = (hash_entry *)malloc(0x10);\n              if (phVar4 == (hash_entry *)0x0) {\n                return safe;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar4->next;\n            }\n            phVar4->data = pvVar1;\n            phVar4->next = phVar3->next;\n            phVar3->next = phVar4;\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    do {\n      if (phVar5->data != (void *)0x0) {\n        phVar3 = phVar5->next;\n        while (phVar3 != (hash_entry *)0x0) {\n          pvVar1 = phVar3->data;\n          phVar2 = safe_hasher(dst,pvVar1);\n          phVar4 = phVar3->next;\n          if (phVar2->data == (void *)0x0) {\n            phVar2->data = pvVar1;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n            phVar3->data = (void *)0x0;\n            phVar3->next = dst->free_entry_list;\n            dst->free_entry_list = phVar3;\n            phVar3 = phVar4;\n          }\n          else {\n            phVar3->next = phVar2->next;\n            phVar2->next = phVar3;\n            phVar3 = phVar4;\n          }\n        }\n        pvVar1 = phVar5->data;\n        phVar5->next = (hash_entry *)0x0;\n        if (!safe) {\n          phVar3 = safe_hasher(dst,pvVar1);\n          if (phVar3->data == (void *)0x0) {\n            phVar3->data = pvVar1;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n          }\n          else {\n            phVar4 = dst->free_entry_list;\n            if (phVar4 == (hash_entry *)0x0) {\n              phVar4 = (hash_entry *)malloc(0x10);\n              if (phVar4 == (hash_entry *)0x0) {\n                return safe;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar4->next;\n            }\n            phVar4->data = pvVar1;\n            phVar4->next = phVar3->next;\n            phVar3->next = phVar4;\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  }" { (do_statement "do {\n      if (phVar5->data != (void *)0x0) {\n        phVar3 = phVar5->next;\n        while (phVar3 != (hash_entry *)0x0) {\n          pvVar1 = phVar3->data;\n          phVar2 = safe_hasher(dst,pvVar1);\n          phVar4 = phVar3->next;\n          if (phVar2->data == (void *)0x0) {\n            phVar2->data = pvVar1;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n            phVar3->data = (void *)0x0;\n            phVar3->next = dst->free_entry_list;\n            dst->free_entry_list = phVar3;\n            phVar3 = phVar4;\n          }\n          else {\n            phVar3->next = phVar2->next;\n            phVar2->next = phVar3;\n            phVar3 = phVar4;\n          }\n        }\n        pvVar1 = phVar5->data;\n        phVar5->next = (hash_entry *)0x0;\n        if (!safe) {\n          phVar3 = safe_hasher(dst,pvVar1);\n          if (phVar3->data == (void *)0x0) {\n            phVar3->data = pvVar1;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n          }\n          else {\n            phVar4 = dst->free_entry_list;\n            if (phVar4 == (hash_entry *)0x0) {\n              phVar4 = (hash_entry *)malloc(0x10);\n              if (phVar4 == (hash_entry *)0x0) {\n                return safe;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar4->next;\n            }\n            phVar4->data = pvVar1;\n            phVar4->next = phVar3->next;\n            phVar3->next = phVar4;\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        phVar3 = phVar5->next;\n        while (phVar3 != (hash_entry *)0x0) {\n          pvVar1 = phVar3->data;\n          phVar2 = safe_hasher(dst,pvVar1);\n          phVar4 = phVar3->next;\n          if (phVar2->data == (void *)0x0) {\n            phVar2->data = pvVar1;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n            phVar3->data = (void *)0x0;\n            phVar3->next = dst->free_entry_list;\n            dst->free_entry_list = phVar3;\n            phVar3 = phVar4;\n          }\n          else {\n            phVar3->next = phVar2->next;\n            phVar2->next = phVar3;\n            phVar3 = phVar4;\n          }\n        }\n        pvVar1 = phVar5->data;\n        phVar5->next = (hash_entry *)0x0;\n        if (!safe) {\n          phVar3 = safe_hasher(dst,pvVar1);\n          if (phVar3->data == (void *)0x0) {\n            phVar3->data = pvVar1;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n          }\n          else {\n            phVar4 = dst->free_entry_list;\n            if (phVar4 == (hash_entry *)0x0) {\n              phVar4 = (hash_entry *)malloc(0x10);\n              if (phVar4 == (hash_entry *)0x0) {\n                return safe;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar4->next;\n            }\n            phVar4->data = pvVar1;\n            phVar4->next = phVar3->next;\n            phVar3->next = phVar4;\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        phVar3 = phVar5->next;\n        while (phVar3 != (hash_entry *)0x0) {\n          pvVar1 = phVar3->data;\n          phVar2 = safe_hasher(dst,pvVar1);\n          phVar4 = phVar3->next;\n          if (phVar2->data == (void *)0x0) {\n            phVar2->data = pvVar1;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n            phVar3->data = (void *)0x0;\n            phVar3->next = dst->free_entry_list;\n            dst->free_entry_list = phVar3;\n            phVar3 = phVar4;\n          }\n          else {\n            phVar3->next = phVar2->next;\n            phVar2->next = phVar3;\n            phVar3 = phVar4;\n          }\n        }\n        pvVar1 = phVar5->data;\n        phVar5->next = (hash_entry *)0x0;\n        if (!safe) {\n          phVar3 = safe_hasher(dst,pvVar1);\n          if (phVar3->data == (void *)0x0) {\n            phVar3->data = pvVar1;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n          }\n          else {\n            phVar4 = dst->free_entry_list;\n            if (phVar4 == (hash_entry *)0x0) {\n              phVar4 = (hash_entry *)malloc(0x10);\n              if (phVar4 == (hash_entry *)0x0) {\n                return safe;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar4->next;\n            }\n            phVar4->data = pvVar1;\n            phVar4->next = phVar3->next;\n            phVar3->next = phVar4;\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        phVar3 = phVar5->next;\n        while (phVar3 != (hash_entry *)0x0) {\n          pvVar1 = phVar3->data;\n          phVar2 = safe_hasher(dst,pvVar1);\n          phVar4 = phVar3->next;\n          if (phVar2->data == (void *)0x0) {\n            phVar2->data = pvVar1;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n            phVar3->data = (void *)0x0;\n            phVar3->next = dst->free_entry_list;\n            dst->free_entry_list = phVar3;\n            phVar3 = phVar4;\n          }\n          else {\n            phVar3->next = phVar2->next;\n            phVar2->next = phVar3;\n            phVar3 = phVar4;\n          }\n        }\n        pvVar1 = phVar5->data;\n        phVar5->next = (hash_entry *)0x0;\n        if (!safe) {\n          phVar3 = safe_hasher(dst,pvVar1);\n          if (phVar3->data == (void *)0x0) {\n            phVar3->data = pvVar1;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n          }\n          else {\n            phVar4 = dst->free_entry_list;\n            if (phVar4 == (hash_entry *)0x0) {\n              phVar4 = (hash_entry *)malloc(0x10);\n              if (phVar4 == (hash_entry *)0x0) {\n                return safe;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar4->next;\n            }\n            phVar4->data = pvVar1;\n            phVar4->next = phVar3->next;\n            phVar3->next = phVar4;\n          }\n          phVar5->data = (void *)0x0;\n          src->n_buckets_used = src->n_buckets_used - 1;\n        }\n      }" { (expression_statement "phVar3 = phVar5->next;" (assignment_expression "phVar3 = phVar5->next" identifier = (field_expression "phVar5->next" identifier -> field_identifier)) ;) (while_statement "while (phVar3 != (hash_entry *)0x0) {\n          pvVar1 = phVar3->data;\n          phVar2 = safe_hasher(dst,pvVar1);\n          phVar4 = phVar3->next;\n          if (phVar2->data == (void *)0x0) {\n            phVar2->data = pvVar1;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n            phVar3->data = (void *)0x0;\n            phVar3->next = dst->free_entry_list;\n            dst->free_entry_list = phVar3;\n            phVar3 = phVar4;\n          }\n          else {\n            phVar3->next = phVar2->next;\n            phVar2->next = phVar3;\n            phVar3 = phVar4;\n          }\n        }" 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)) )) (compound_statement "{\n          pvVar1 = phVar3->data;\n          phVar2 = safe_hasher(dst,pvVar1);\n          phVar4 = phVar3->next;\n          if (phVar2->data == (void *)0x0) {\n            phVar2->data = pvVar1;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n            phVar3->data = (void *)0x0;\n            phVar3->next = dst->free_entry_list;\n            dst->free_entry_list = phVar3;\n            phVar3 = phVar4;\n          }\n          else {\n            phVar3->next = phVar2->next;\n            phVar2->next = phVar3;\n            phVar3 = phVar4;\n          }\n        }" { (expression_statement "pvVar1 = phVar3->data;" (assignment_expression "pvVar1 = phVar3->data" identifier = (field_expression "phVar3->data" identifier -> field_identifier)) ;) (expression_statement "phVar2 = safe_hasher(dst,pvVar1);" (assignment_expression "phVar2 = safe_hasher(dst,pvVar1)" identifier = (call_expression "safe_hasher(dst,pvVar1)" identifier (argument_list "(dst,pvVar1)" ( identifier , identifier )))) ;) (expression_statement "phVar4 = phVar3->next;" (assignment_expression "phVar4 = phVar3->next" identifier = (field_expression "phVar3->next" identifier -> field_identifier)) ;) (if_statement "if (phVar2->data == (void *)0x0) {\n            phVar2->data = pvVar1;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n            phVar3->data = (void *)0x0;\n            phVar3->next = dst->free_entry_list;\n            dst->free_entry_list = phVar3;\n            phVar3 = phVar4;\n          }\n          else {\n            phVar3->next = phVar2->next;\n            phVar2->next = phVar3;\n            phVar3 = phVar4;\n          }" if (parenthesized_expression "(phVar2->data == (void *)0x0)" ( (binary_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)) )) (compound_statement "{\n            phVar2->data = pvVar1;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n            phVar3->data = (void *)0x0;\n            phVar3->next = dst->free_entry_list;\n            dst->free_entry_list = phVar3;\n            phVar3 = phVar4;\n          }" { (expression_statement "phVar2->data = pvVar1;" (assignment_expression "phVar2->data = pvVar1" (field_expression "phVar2->data" identifier -> field_identifier) = 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 "phVar3->data = (void *)0x0;" (assignment_expression "phVar3->data = (void *)0x0" (field_expression "phVar3->data" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "phVar3->next = dst->free_entry_list;" (assignment_expression "phVar3->next = dst->free_entry_list" (field_expression "phVar3->next" identifier -> field_identifier) = (field_expression "dst->free_entry_list" identifier -> field_identifier)) ;) (expression_statement "dst->free_entry_list = phVar3;" (assignment_expression "dst->free_entry_list = phVar3" (field_expression "dst->free_entry_list" identifier -> field_identifier) = identifier) ;) (expression_statement "phVar3 = phVar4;" (assignment_expression "phVar3 = phVar4" identifier = identifier) ;) }) (else_clause "else {\n            phVar3->next = phVar2->next;\n            phVar2->next = phVar3;\n            phVar3 = phVar4;\n          }" else (compound_statement "{\n            phVar3->next = phVar2->next;\n            phVar2->next = phVar3;\n            phVar3 = phVar4;\n          }" { (expression_statement "phVar3->next = phVar2->next;" (assignment_expression "phVar3->next = phVar2->next" (field_expression "phVar3->next" identifier -> field_identifier) = (field_expression "phVar2->next" identifier -> field_identifier)) ;) (expression_statement "phVar2->next = phVar3;" (assignment_expression "phVar2->next = phVar3" (field_expression "phVar2->next" identifier -> field_identifier) = identifier) ;) (expression_statement "phVar3 = phVar4;" (assignment_expression "phVar3 = phVar4" identifier = identifier) ;) }))) })) (expression_statement "pvVar1 = phVar5->data;" (assignment_expression "pvVar1 = 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 (!safe) {\n          phVar3 = safe_hasher(dst,pvVar1);\n          if (phVar3->data == (void *)0x0) {\n            phVar3->data = pvVar1;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n          }\n          else {\n            phVar4 = dst->free_entry_list;\n            if (phVar4 == (hash_entry *)0x0) {\n              phVar4 = (hash_entry *)malloc(0x10);\n              if (phVar4 == (hash_entry *)0x0) {\n                return safe;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar4->next;\n            }\n            phVar4->data = pvVar1;\n            phVar4->next = phVar3->next;\n            phVar3->next = phVar4;\n          }\n          phVar5->data = (void *)0x0;\n          src->n_buckets_used = src->n_buckets_used - 1;\n        }" if (parenthesized_expression "(!safe)" ( (unary_expression "!safe" ! identifier) )) (compound_statement "{\n          phVar3 = safe_hasher(dst,pvVar1);\n          if (phVar3->data == (void *)0x0) {\n            phVar3->data = pvVar1;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n          }\n          else {\n            phVar4 = dst->free_entry_list;\n            if (phVar4 == (hash_entry *)0x0) {\n              phVar4 = (hash_entry *)malloc(0x10);\n              if (phVar4 == (hash_entry *)0x0) {\n                return safe;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar4->next;\n            }\n            phVar4->data = pvVar1;\n            phVar4->next = phVar3->next;\n            phVar3->next = phVar4;\n          }\n          phVar5->data = (void *)0x0;\n          src->n_buckets_used = src->n_buckets_used - 1;\n        }" { (expression_statement "phVar3 = safe_hasher(dst,pvVar1);" (assignment_expression "phVar3 = safe_hasher(dst,pvVar1)" identifier = (call_expression "safe_hasher(dst,pvVar1)" identifier (argument_list "(dst,pvVar1)" ( identifier , identifier )))) ;) (if_statement "if (phVar3->data == (void *)0x0) {\n            phVar3->data = pvVar1;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n          }\n          else {\n            phVar4 = dst->free_entry_list;\n            if (phVar4 == (hash_entry *)0x0) {\n              phVar4 = (hash_entry *)malloc(0x10);\n              if (phVar4 == (hash_entry *)0x0) {\n                return safe;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar4->next;\n            }\n            phVar4->data = pvVar1;\n            phVar4->next = phVar3->next;\n            phVar3->next = phVar4;\n          }" if (parenthesized_expression "(phVar3->data == (void *)0x0)" ( (binary_expression "phVar3->data == (void *)0x0" (field_expression "phVar3->data" identifier -> field_identifier) == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            phVar3->data = pvVar1;\n            dst->n_buckets_used = dst->n_buckets_used + 1;\n          }" { (expression_statement "phVar3->data = pvVar1;" (assignment_expression "phVar3->data = pvVar1" (field_expression "phVar3->data" identifier -> field_identifier) = 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            phVar4 = dst->free_entry_list;\n            if (phVar4 == (hash_entry *)0x0) {\n              phVar4 = (hash_entry *)malloc(0x10);\n              if (phVar4 == (hash_entry *)0x0) {\n                return safe;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar4->next;\n            }\n            phVar4->data = pvVar1;\n            phVar4->next = phVar3->next;\n            phVar3->next = phVar4;\n          }" else (compound_statement "{\n            phVar4 = dst->free_entry_list;\n            if (phVar4 == (hash_entry *)0x0) {\n              phVar4 = (hash_entry *)malloc(0x10);\n              if (phVar4 == (hash_entry *)0x0) {\n                return safe;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar4->next;\n            }\n            phVar4->data = pvVar1;\n            phVar4->next = phVar3->next;\n            phVar3->next = phVar4;\n          }" { (expression_statement "phVar4 = dst->free_entry_list;" (assignment_expression "phVar4 = dst->free_entry_list" identifier = (field_expression "dst->free_entry_list" identifier -> field_identifier)) ;) (if_statement "if (phVar4 == (hash_entry *)0x0) {\n              phVar4 = (hash_entry *)malloc(0x10);\n              if (phVar4 == (hash_entry *)0x0) {\n                return safe;\n              }\n            }\n            else {\n              dst->free_entry_list = phVar4->next;\n            }" if (parenthesized_expression "(phVar4 == (hash_entry *)0x0)" ( (binary_expression "phVar4 == (hash_entry *)0x0" identifier == (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              phVar4 = (hash_entry *)malloc(0x10);\n              if (phVar4 == (hash_entry *)0x0) {\n                return safe;\n              }\n            }" { (expression_statement "phVar4 = (hash_entry *)malloc(0x10);" (assignment_expression "phVar4 = (hash_entry *)malloc(0x10)" identifier = (cast_expression "(hash_entry *)malloc(0x10)" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (if_statement "if (phVar4 == (hash_entry *)0x0) {\n                return safe;\n              }" if (parenthesized_expression "(phVar4 == (hash_entry *)0x0)" ( (binary_expression "phVar4 == (hash_entry *)0x0" identifier == (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                return safe;\n              }" { (return_statement "return safe;" return identifier ;) })) }) (else_clause "else {\n              dst->free_entry_list = phVar4->next;\n            }" else (compound_statement "{\n              dst->free_entry_list = phVar4->next;\n            }" { (expression_statement "dst->free_entry_list = phVar4->next;" (assignment_expression "dst->free_entry_list = phVar4->next" (field_expression "dst->free_entry_list" identifier -> field_identifier) = (field_expression "phVar4->next" identifier -> field_identifier)) ;) }))) (expression_statement "phVar4->data = pvVar1;" (assignment_expression "phVar4->data = pvVar1" (field_expression "phVar4->data" identifier -> field_identifier) = identifier) ;) (expression_statement "phVar4->next = phVar3->next;" (assignment_expression "phVar4->next = phVar3->next" (field_expression "phVar4->next" identifier -> field_identifier) = (field_expression "phVar3->next" identifier -> field_identifier)) ;) (expression_statement "phVar3->next = phVar4;" (assignment_expression "phVar3->next = phVar4" (field_expression "phVar3->next" identifier -> field_identifier) = 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 "undefined1 FUN_00108f5f(long param_1,undefined8 *param_2,char param_3)\n\n{\n  long lVar1;\n  long *plVar2;\n  long *plVar3;\n  long *plVar4;\n  long *plVar5;\n  \n  plVar5 = (long *)*param_2;\n  if (plVar5 < (long *)param_2[1]) {\n    do {\n      if (*plVar5 != 0) {\n        plVar3 = (long *)plVar5[1];\n        while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }\n        lVar1 = *plVar5;\n        plVar5[1] = 0;\n        if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      plVar5 = plVar5 + 2;\n    } while (plVar5 < (long *)param_2[1]);\n  }\n  return 1;\n}\n\n" (function_definition "undefined1 FUN_00108f5f(long param_1,undefined8 *param_2,char param_3)\n\n{\n  long lVar1;\n  long *plVar2;\n  long *plVar3;\n  long *plVar4;\n  long *plVar5;\n  \n  plVar5 = (long *)*param_2;\n  if (plVar5 < (long *)param_2[1]) {\n    do {\n      if (*plVar5 != 0) {\n        plVar3 = (long *)plVar5[1];\n        while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }\n        lVar1 = *plVar5;\n        plVar5[1] = 0;\n        if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      plVar5 = plVar5 + 2;\n    } while (plVar5 < (long *)param_2[1]);\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_00108f5f(long param_1,undefined8 *param_2,char param_3)" identifier (parameter_list "(long param_1,undefined8 *param_2,char param_3)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n  long lVar1;\n  long *plVar2;\n  long *plVar3;\n  long *plVar4;\n  long *plVar5;\n  \n  plVar5 = (long *)*param_2;\n  if (plVar5 < (long *)param_2[1]) {\n    do {\n      if (*plVar5 != 0) {\n        plVar3 = (long *)plVar5[1];\n        while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }\n        lVar1 = *plVar5;\n        plVar5[1] = 0;\n        if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      plVar5 = plVar5 + 2;\n    } while (plVar5 < (long *)param_2[1]);\n  }\n  return 1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "long *plVar3;" (sized_type_specifier "long" long) (pointer_declarator "*plVar3" * identifier) ;) (declaration "long *plVar4;" (sized_type_specifier "long" long) (pointer_declarator "*plVar4" * identifier) ;) (declaration "long *plVar5;" (sized_type_specifier "long" long) (pointer_declarator "*plVar5" * identifier) ;) (expression_statement "plVar5 = (long *)*param_2;" (assignment_expression "plVar5 = (long *)*param_2" identifier = (cast_expression "(long *)*param_2" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (plVar5 < (long *)param_2[1]) {\n    do {\n      if (*plVar5 != 0) {\n        plVar3 = (long *)plVar5[1];\n        while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }\n        lVar1 = *plVar5;\n        plVar5[1] = 0;\n        if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      plVar5 = plVar5 + 2;\n    } while (plVar5 < (long *)param_2[1]);\n  }" if (parenthesized_expression "(plVar5 < (long *)param_2[1])" ( (binary_expression "plVar5 < (long *)param_2[1]" identifier < (cast_expression "(long *)param_2[1]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    do {\n      if (*plVar5 != 0) {\n        plVar3 = (long *)plVar5[1];\n        while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }\n        lVar1 = *plVar5;\n        plVar5[1] = 0;\n        if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      plVar5 = plVar5 + 2;\n    } while (plVar5 < (long *)param_2[1]);\n  }" { (do_statement "do {\n      if (*plVar5 != 0) {\n        plVar3 = (long *)plVar5[1];\n        while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }\n        lVar1 = *plVar5;\n        plVar5[1] = 0;\n        if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      plVar5 = plVar5 + 2;\n    } while (plVar5 < (long *)param_2[1]);" do (compound_statement "{\n      if (*plVar5 != 0) {\n        plVar3 = (long *)plVar5[1];\n        while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }\n        lVar1 = *plVar5;\n        plVar5[1] = 0;\n        if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      plVar5 = plVar5 + 2;\n    }" { (if_statement "if (*plVar5 != 0) {\n        plVar3 = (long *)plVar5[1];\n        while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }\n        lVar1 = *plVar5;\n        plVar5[1] = 0;\n        if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }" if (parenthesized_expression "(*plVar5 != 0)" ( (binary_expression "*plVar5 != 0" (pointer_expression "*plVar5" * identifier) != number_literal) )) (compound_statement "{\n        plVar3 = (long *)plVar5[1];\n        while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }\n        lVar1 = *plVar5;\n        plVar5[1] = 0;\n        if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }" { (expression_statement "plVar3 = (long *)plVar5[1];" (assignment_expression "plVar3 = (long *)plVar5[1]" identifier = (cast_expression "(long *)plVar5[1]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar5[1]" identifier [ number_literal ]))) ;) (while_statement "while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }" while (parenthesized_expression "(plVar3 != (long *)0x0)" ( (binary_expression "plVar3 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }" { (expression_statement "lVar1 = *plVar3;" (assignment_expression "lVar1 = *plVar3" identifier = (pointer_expression "*plVar3" * identifier)) ;) (expression_statement "plVar2 = (long *)FUN_00108f3d(param_1,lVar1);" (assignment_expression "plVar2 = (long *)FUN_00108f3d(param_1,lVar1)" identifier = (cast_expression "(long *)FUN_00108f3d(param_1,lVar1)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00108f3d(param_1,lVar1)" identifier (argument_list "(param_1,lVar1)" ( identifier , identifier ))))) ;) (expression_statement "plVar4 = (long *)plVar3[1];" (assignment_expression "plVar4 = (long *)plVar3[1]" identifier = (cast_expression "(long *)plVar3[1]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "plVar3[1]" identifier [ number_literal ]))) ;) (if_statement "if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }" if (parenthesized_expression "(*plVar2 == 0)" ( (binary_expression "*plVar2 == 0" (pointer_expression "*plVar2" * identifier) == number_literal) )) (compound_statement "{\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }" { (expression_statement "*plVar2 = lVar1;" (assignment_expression "*plVar2 = lVar1" (pointer_expression "*plVar2" * identifier) = identifier) ;) (expression_statement "*(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;" (assignment_expression "*(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1" (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (binary_expression "*(long *)(param_1 + 0x18) + 1" (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*plVar3 = 0;" (assignment_expression "*plVar3 = 0" (pointer_expression "*plVar3" * identifier) = number_literal) ;) (expression_statement "plVar3[1] = *(long *)(param_1 + 0x48);" (assignment_expression "plVar3[1] = *(long *)(param_1 + 0x48)" (subscript_expression "plVar3[1]" identifier [ number_literal ]) = (pointer_expression "*(long *)(param_1 + 0x48)" * (cast_expression "(long *)(param_1 + 0x48)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) ))))) ;) (expression_statement "*(long **)(param_1 + 0x48) = plVar3;" (assignment_expression "*(long **)(param_1 + 0x48) = plVar3" (pointer_expression "*(long **)(param_1 + 0x48)" * (cast_expression "(long **)(param_1 + 0x48)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = identifier) ;) (expression_statement "plVar3 = plVar4;" (assignment_expression "plVar3 = plVar4" identifier = identifier) ;) }) (else_clause "else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }" else (compound_statement "{\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }" { (expression_statement "plVar3[1] = plVar2[1];" (assignment_expression "plVar3[1] = plVar2[1]" (subscript_expression "plVar3[1]" identifier [ number_literal ]) = (subscript_expression "plVar2[1]" identifier [ number_literal ])) ;) (expression_statement "plVar2[1] = (long)plVar3;" (assignment_expression "plVar2[1] = (long)plVar3" (subscript_expression "plVar2[1]" identifier [ number_literal ]) = (cast_expression "(long)plVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "plVar3 = plVar4;" (assignment_expression "plVar3 = plVar4" identifier = identifier) ;) }))) })) (expression_statement "lVar1 = *plVar5;" (assignment_expression "lVar1 = *plVar5" identifier = (pointer_expression "*plVar5" * identifier)) ;) (expression_statement "plVar5[1] = 0;" (assignment_expression "plVar5[1] = 0" (subscript_expression "plVar5[1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }" if (parenthesized_expression "(param_3 == '\0')" ( (binary_expression "param_3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }" { (expression_statement "plVar3 = (long *)FUN_00108f3d(param_1,lVar1);" (assignment_expression "plVar3 = (long *)FUN_00108f3d(param_1,lVar1)" identifier = (cast_expression "(long *)FUN_00108f3d(param_1,lVar1)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00108f3d(param_1,lVar1)" identifier (argument_list "(param_1,lVar1)" ( identifier , identifier ))))) ;) (if_statement "if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }" if (parenthesized_expression "(*plVar3 == 0)" ( (binary_expression "*plVar3 == 0" (pointer_expression "*plVar3" * identifier) == number_literal) )) (compound_statement "{\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }" { (expression_statement "*plVar3 = lVar1;" (assignment_expression "*plVar3 = lVar1" (pointer_expression "*plVar3" * identifier) = identifier) ;) (expression_statement "*(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;" (assignment_expression "*(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1" (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = (binary_expression "*(long *)(param_1 + 0x18) + 1" (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }" else (compound_statement "{\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }" { (expression_statement "plVar4 = *(long **)(param_1 + 0x48);" (assignment_expression "plVar4 = *(long **)(param_1 + 0x48)" identifier = (pointer_expression "*(long **)(param_1 + 0x48)" * (cast_expression "(long **)(param_1 + 0x48)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) ))))) ;) (if_statement "if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }" if (parenthesized_expression "(plVar4 == (long *)0x0)" ( (binary_expression "plVar4 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }" { (expression_statement "plVar4 = (long *)malloc(0x10);" (assignment_expression "plVar4 = (long *)malloc(0x10)" identifier = (cast_expression "(long *)malloc(0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (if_statement "if (plVar4 == (long *)0x0) {\n                return 0;\n              }" if (parenthesized_expression "(plVar4 == (long *)0x0)" ( (binary_expression "plVar4 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                return 0;\n              }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }" else (compound_statement "{\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }" { (expression_statement "*(long *)(param_1 + 0x48) = plVar4[1];" (assignment_expression "*(long *)(param_1 + 0x48) = plVar4[1]" (pointer_expression "*(long *)(param_1 + 0x48)" * (cast_expression "(long *)(param_1 + 0x48)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = (subscript_expression "plVar4[1]" identifier [ number_literal ])) ;) }))) (expression_statement "*plVar4 = lVar1;" (assignment_expression "*plVar4 = lVar1" (pointer_expression "*plVar4" * identifier) = identifier) ;) (expression_statement "plVar4[1] = plVar3[1];" (assignment_expression "plVar4[1] = plVar3[1]" (subscript_expression "plVar4[1]" identifier [ number_literal ]) = (subscript_expression "plVar3[1]" identifier [ number_literal ])) ;) (expression_statement "plVar3[1] = (long)plVar4;" (assignment_expression "plVar3[1] = (long)plVar4" (subscript_expression "plVar3[1]" identifier [ number_literal ]) = (cast_expression "(long)plVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) }))) (expression_statement "*plVar5 = 0;" (assignment_expression "*plVar5 = 0" (pointer_expression "*plVar5" * 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 "plVar5 = plVar5 + 2;" (assignment_expression "plVar5 = plVar5 + 2" identifier = (binary_expression "plVar5 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(plVar5 < (long *)param_2[1])" ( (binary_expression "plVar5 < (long *)param_2[1]" identifier < (cast_expression "(long *)param_2[1]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (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 (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = 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 (sized_type_specifier long)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) })) (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 == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (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 (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (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 (sized_type_specifier long) (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 (sized_type_specifier long)) ) 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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined1 FUN_00108f5f(long param_1,undefined8 *param_2,char param_3)\n\n{\n  long lVar1;\n  long *plVar2;\n  long *plVar3;\n  long *plVar4;\n  long *plVar5;\n  \n  plVar5 = (long *)*param_2;\n  if (plVar5 < (long *)param_2[1]) {\n    do {\n      if (*plVar5 != 0) {\n        plVar3 = (long *)plVar5[1];\n        while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }\n        lVar1 = *plVar5;\n        plVar5[1] = 0;\n        if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      plVar5 = plVar5 + 2;\n    } while (plVar5 < (long *)param_2[1]);\n  }\n  return 1;\n}" (type_identifier "undefined1") (function_declarator "FUN_00108f5f(long param_1,undefined8 *param_2,char param_3)" (identifier "FUN_00108f5f") (parameter_list "(long param_1,undefined8 *param_2,char param_3)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "char param_3" (primitive_type "char") (identifier "param_3")) () ")"))) (compound_statement "{\n  long lVar1;\n  long *plVar2;\n  long *plVar3;\n  long *plVar4;\n  long *plVar5;\n  \n  plVar5 = (long *)*param_2;\n  if (plVar5 < (long *)param_2[1]) {\n    do {\n      if (*plVar5 != 0) {\n        plVar3 = (long *)plVar5[1];\n        while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }\n        lVar1 = *plVar5;\n        plVar5[1] = 0;\n        if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      plVar5 = plVar5 + 2;\n    } while (plVar5 < (long *)param_2[1]);\n  }\n  return 1;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "long *plVar2;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar2" (* "*") (identifier "plVar2")) (; ";")) (declaration "long *plVar3;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar3" (* "*") (identifier "plVar3")) (; ";")) (declaration "long *plVar4;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar4" (* "*") (identifier "plVar4")) (; ";")) (declaration "long *plVar5;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar5" (* "*") (identifier "plVar5")) (; ";")) (expression_statement "plVar5 = (long *)*param_2;" (assignment_expression "plVar5 = (long *)*param_2" (identifier "plVar5") (= "=") (cast_expression "(long *)*param_2" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (if_statement "if (plVar5 < (long *)param_2[1]) {\n    do {\n      if (*plVar5 != 0) {\n        plVar3 = (long *)plVar5[1];\n        while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }\n        lVar1 = *plVar5;\n        plVar5[1] = 0;\n        if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      plVar5 = plVar5 + 2;\n    } while (plVar5 < (long *)param_2[1]);\n  }" (if "if") (parenthesized_expression "(plVar5 < (long *)param_2[1])" (( "(") (binary_expression "plVar5 < (long *)param_2[1]" (identifier "plVar5") (< "<") (cast_expression "(long *)param_2[1]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n    do {\n      if (*plVar5 != 0) {\n        plVar3 = (long *)plVar5[1];\n        while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }\n        lVar1 = *plVar5;\n        plVar5[1] = 0;\n        if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      plVar5 = plVar5 + 2;\n    } while (plVar5 < (long *)param_2[1]);\n  }" ({ "{") (do_statement "do {\n      if (*plVar5 != 0) {\n        plVar3 = (long *)plVar5[1];\n        while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }\n        lVar1 = *plVar5;\n        plVar5[1] = 0;\n        if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      plVar5 = plVar5 + 2;\n    } while (plVar5 < (long *)param_2[1]);" (do "do") (compound_statement "{\n      if (*plVar5 != 0) {\n        plVar3 = (long *)plVar5[1];\n        while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }\n        lVar1 = *plVar5;\n        plVar5[1] = 0;\n        if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }\n      plVar5 = plVar5 + 2;\n    }" ({ "{") (if_statement "if (*plVar5 != 0) {\n        plVar3 = (long *)plVar5[1];\n        while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }\n        lVar1 = *plVar5;\n        plVar5[1] = 0;\n        if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }" (if "if") (parenthesized_expression "(*plVar5 != 0)" (( "(") (binary_expression "*plVar5 != 0" (pointer_expression "*plVar5" (* "*") (identifier "plVar5")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        plVar3 = (long *)plVar5[1];\n        while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }\n        lVar1 = *plVar5;\n        plVar5[1] = 0;\n        if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }\n      }" ({ "{") (expression_statement "plVar3 = (long *)plVar5[1];" (assignment_expression "plVar3 = (long *)plVar5[1]" (identifier "plVar3") (= "=") (cast_expression "(long *)plVar5[1]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar5[1]" (identifier "plVar5") ([ "[") (number_literal "1") (] "]")))) (; ";")) (while_statement "while (plVar3 != (long *)0x0) {\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }" (while "while") (parenthesized_expression "(plVar3 != (long *)0x0)" (( "(") (binary_expression "plVar3 != (long *)0x0" (identifier "plVar3") (!= "!=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          lVar1 = *plVar3;\n          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);\n          plVar4 = (long *)plVar3[1];\n          if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }\n        }" ({ "{") (expression_statement "lVar1 = *plVar3;" (assignment_expression "lVar1 = *plVar3" (identifier "lVar1") (= "=") (pointer_expression "*plVar3" (* "*") (identifier "plVar3"))) (; ";")) (expression_statement "plVar2 = (long *)FUN_00108f3d(param_1,lVar1);" (assignment_expression "plVar2 = (long *)FUN_00108f3d(param_1,lVar1)" (identifier "plVar2") (= "=") (cast_expression "(long *)FUN_00108f3d(param_1,lVar1)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00108f3d(param_1,lVar1)" (identifier "FUN_00108f3d") (argument_list "(param_1,lVar1)" (( "(") (identifier "param_1") (, ",") (identifier "lVar1") () ")"))))) (; ";")) (expression_statement "plVar4 = (long *)plVar3[1];" (assignment_expression "plVar4 = (long *)plVar3[1]" (identifier "plVar4") (= "=") (cast_expression "(long *)plVar3[1]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "plVar3[1]" (identifier "plVar3") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (*plVar2 == 0) {\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }\n          else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }" (if "if") (parenthesized_expression "(*plVar2 == 0)" (( "(") (binary_expression "*plVar2 == 0" (pointer_expression "*plVar2" (* "*") (identifier "plVar2")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            *plVar2 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n            *plVar3 = 0;\n            plVar3[1] = *(long *)(param_1 + 0x48);\n            *(long **)(param_1 + 0x48) = plVar3;\n            plVar3 = plVar4;\n          }" ({ "{") (expression_statement "*plVar2 = lVar1;" (assignment_expression "*plVar2 = lVar1" (pointer_expression "*plVar2" (* "*") (identifier "plVar2")) (= "=") (identifier "lVar1")) (; ";")) (expression_statement "*(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;" (assignment_expression "*(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1" (pointer_expression "*(long *)(param_1 + 0x18)" (* "*") (cast_expression "(long *)(param_1 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (binary_expression "*(long *)(param_1 + 0x18) + 1" (pointer_expression "*(long *)(param_1 + 0x18)" (* "*") (cast_expression "(long *)(param_1 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*plVar3 = 0;" (assignment_expression "*plVar3 = 0" (pointer_expression "*plVar3" (* "*") (identifier "plVar3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "plVar3[1] = *(long *)(param_1 + 0x48);" (assignment_expression "plVar3[1] = *(long *)(param_1 + 0x48)" (subscript_expression "plVar3[1]" (identifier "plVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "*(long *)(param_1 + 0x48)" (* "*") (cast_expression "(long *)(param_1 + 0x48)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")"))))) (; ";")) (expression_statement "*(long **)(param_1 + 0x48) = plVar3;" (assignment_expression "*(long **)(param_1 + 0x48) = plVar3" (pointer_expression "*(long **)(param_1 + 0x48)" (* "*") (cast_expression "(long **)(param_1 + 0x48)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (= "=") (identifier "plVar3")) (; ";")) (expression_statement "plVar3 = plVar4;" (assignment_expression "plVar3 = plVar4" (identifier "plVar3") (= "=") (identifier "plVar4")) (; ";")) (} "}")) (else_clause "else {\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }" (else "else") (compound_statement "{\n            plVar3[1] = plVar2[1];\n            plVar2[1] = (long)plVar3;\n            plVar3 = plVar4;\n          }" ({ "{") (expression_statement "plVar3[1] = plVar2[1];" (assignment_expression "plVar3[1] = plVar2[1]" (subscript_expression "plVar3[1]" (identifier "plVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "plVar2[1]" (identifier "plVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "plVar2[1] = (long)plVar3;" (assignment_expression "plVar2[1] = (long)plVar3" (subscript_expression "plVar2[1]" (identifier "plVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(long)plVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar3"))) (; ";")) (expression_statement "plVar3 = plVar4;" (assignment_expression "plVar3 = plVar4" (identifier "plVar3") (= "=") (identifier "plVar4")) (; ";")) (} "}")))) (} "}"))) (expression_statement "lVar1 = *plVar5;" (assignment_expression "lVar1 = *plVar5" (identifier "lVar1") (= "=") (pointer_expression "*plVar5" (* "*") (identifier "plVar5"))) (; ";")) (expression_statement "plVar5[1] = 0;" (assignment_expression "plVar5[1] = 0" (subscript_expression "plVar5[1]" (identifier "plVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_3 == '\0') {\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 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") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);\n          if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }\n          *plVar5 = 0;\n          param_2[3] = param_2[3] + -1;\n        }" ({ "{") (expression_statement "plVar3 = (long *)FUN_00108f3d(param_1,lVar1);" (assignment_expression "plVar3 = (long *)FUN_00108f3d(param_1,lVar1)" (identifier "plVar3") (= "=") (cast_expression "(long *)FUN_00108f3d(param_1,lVar1)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00108f3d(param_1,lVar1)" (identifier "FUN_00108f3d") (argument_list "(param_1,lVar1)" (( "(") (identifier "param_1") (, ",") (identifier "lVar1") () ")"))))) (; ";")) (if_statement "if (*plVar3 == 0) {\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }\n          else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }" (if "if") (parenthesized_expression "(*plVar3 == 0)" (( "(") (binary_expression "*plVar3 == 0" (pointer_expression "*plVar3" (* "*") (identifier "plVar3")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            *plVar3 = lVar1;\n            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;\n          }" ({ "{") (expression_statement "*plVar3 = lVar1;" (assignment_expression "*plVar3 = lVar1" (pointer_expression "*plVar3" (* "*") (identifier "plVar3")) (= "=") (identifier "lVar1")) (; ";")) (expression_statement "*(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;" (assignment_expression "*(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1" (pointer_expression "*(long *)(param_1 + 0x18)" (* "*") (cast_expression "(long *)(param_1 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (binary_expression "*(long *)(param_1 + 0x18) + 1" (pointer_expression "*(long *)(param_1 + 0x18)" (* "*") (cast_expression "(long *)(param_1 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }" (else "else") (compound_statement "{\n            plVar4 = *(long **)(param_1 + 0x48);\n            if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }\n            *plVar4 = lVar1;\n            plVar4[1] = plVar3[1];\n            plVar3[1] = (long)plVar4;\n          }" ({ "{") (expression_statement "plVar4 = *(long **)(param_1 + 0x48);" (assignment_expression "plVar4 = *(long **)(param_1 + 0x48)" (identifier "plVar4") (= "=") (pointer_expression "*(long **)(param_1 + 0x48)" (* "*") (cast_expression "(long **)(param_1 + 0x48)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")"))))) (; ";")) (if_statement "if (plVar4 == (long *)0x0) {\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }\n            else {\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }" (if "if") (parenthesized_expression "(plVar4 == (long *)0x0)" (( "(") (binary_expression "plVar4 == (long *)0x0" (identifier "plVar4") (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n              plVar4 = (long *)malloc(0x10);\n              if (plVar4 == (long *)0x0) {\n                return 0;\n              }\n            }" ({ "{") (expression_statement "plVar4 = (long *)malloc(0x10);" (assignment_expression "plVar4 = (long *)malloc(0x10)" (identifier "plVar4") (= "=") (cast_expression "(long *)malloc(0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "malloc(0x10)" (identifier "malloc") (argument_list "(0x10)" (( "(") (number_literal "0x10") () ")"))))) (; ";")) (if_statement "if (plVar4 == (long *)0x0) {\n                return 0;\n              }" (if "if") (parenthesized_expression "(plVar4 == (long *)0x0)" (( "(") (binary_expression "plVar4 == (long *)0x0" (identifier "plVar4") (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (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              *(long *)(param_1 + 0x48) = plVar4[1];\n            }" (else "else") (compound_statement "{\n              *(long *)(param_1 + 0x48) = plVar4[1];\n            }" ({ "{") (expression_statement "*(long *)(param_1 + 0x48) = plVar4[1];" (assignment_expression "*(long *)(param_1 + 0x48) = plVar4[1]" (pointer_expression "*(long *)(param_1 + 0x48)" (* "*") (cast_expression "(long *)(param_1 + 0x48)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (= "=") (subscript_expression "plVar4[1]" (identifier "plVar4") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")))) (expression_statement "*plVar4 = lVar1;" (assignment_expression "*plVar4 = lVar1" (pointer_expression "*plVar4" (* "*") (identifier "plVar4")) (= "=") (identifier "lVar1")) (; ";")) (expression_statement "plVar4[1] = plVar3[1];" (assignment_expression "plVar4[1] = plVar3[1]" (subscript_expression "plVar4[1]" (identifier "plVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "plVar3[1]" (identifier "plVar3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "plVar3[1] = (long)plVar4;" (assignment_expression "plVar3[1] = (long)plVar4" (subscript_expression "plVar3[1]" (identifier "plVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(long)plVar4" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar4"))) (; ";")) (} "}")))) (expression_statement "*plVar5 = 0;" (assignment_expression "*plVar5 = 0" (pointer_expression "*plVar5" (* "*") (identifier "plVar5")) (= "=") (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 "plVar5 = plVar5 + 2;" (assignment_expression "plVar5 = plVar5 + 2" (identifier "plVar5") (= "=") (binary_expression "plVar5 + 2" (identifier "plVar5") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(plVar5 < (long *)param_2[1])" (( "(") (binary_expression "plVar5 < (long *)param_2[1]" (identifier "plVar5") (< "<") (cast_expression "(long *)param_2[1]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")))) () ")")) (; ";")) (} "}"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

type_1 function_1(type_2 *dst,type_2 *src,type_1 safe)

{
  void *pvVar1;
  type_3 *phVar2;
  type_3 *var_2;
  type_3 *var_4;
  type_3 *var_1;
  
  var_1 = src->bucket;
  if (var_1 < src->bucket_limit) {
    do {
      if (var_1->data != (void *)0x0) {
        var_2 = var_1->next;
        while (var_2 != (type_3 *)0x0) {
          pvVar1 = var_2->data;
          phVar2 = var_3(dst,pvVar1);
          var_4 = var_2->next;
          if (phVar2->data == (void *)0x0) {
            phVar2->data = pvVar1;
            dst->n_buckets_used = dst->n_buckets_used + 1;
            var_2->data = (void *)0x0;
            var_2->next = dst->free_entry_list;
            dst->free_entry_list = var_2;
            var_2 = var_4;
          }
          else {
            var_2->next = phVar2->next;
            phVar2->next = var_2;
            var_2 = var_4;
          }
        }
        pvVar1 = var_1->data;
        var_1->next = (type_3 *)0x0;
        if (!safe) {
          var_2 = var_3(dst,pvVar1);
          if (var_2->data == (void *)0x0) {
            var_2->data = pvVar1;
            dst->n_buckets_used = dst->n_buckets_used + 1;
          }
          else {
            var_4 = dst->free_entry_list;
            if (var_4 == (type_3 *)0x0) {
              var_4 = (type_3 *)var_5(0x10);
              if (var_4 == (type_3 *)0x0) {
                return safe;
              }
            }
            else {
              dst->free_entry_list = var_4->next;
            }
            var_4->data = pvVar1;
            var_4->next = var_2->next;
            var_2->next = var_4;
          }
          var_1->data = (void *)0x0;
          src->n_buckets_used = src->n_buckets_used - 1;
        }
      }
      var_1 = var_1 + 1;
    } while (var_1 < src->bucket_limit);
  }
  return true;
}


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

undefined1 MASKED(long param_1,undefined8 *param_2,char param_3)

{
  long lVar1;
  long *plVar2;
  long *plVar3;
  long *plVar4;
  long *plVar5;
  
  plVar5 = (long *)*param_2;
  if (plVar5 < (long *)param_2[1]) {
    do {
      if (*plVar5 != 0) {
        plVar3 = (long *)plVar5[1];
        while (plVar3 != (long *)0x0) {
          lVar1 = *plVar3;
          plVar2 = (long *)FUN_00108f3d(param_1,lVar1);
          plVar4 = (long *)plVar3[1];
          if (*plVar2 == 0) {
            *plVar2 = lVar1;
            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;
            *plVar3 = 0;
            plVar3[1] = *(long *)(param_1 + 0x48);
            *(long **)(param_1 + 0x48) = plVar3;
            plVar3 = plVar4;
          }
          else {
            plVar3[1] = plVar2[1];
            plVar2[1] = (long)plVar3;
            plVar3 = plVar4;
          }
        }
        lVar1 = *plVar5;
        plVar5[1] = 0;
        if (param_3 == '\0') {
          plVar3 = (long *)FUN_00108f3d(param_1,lVar1);
          if (*plVar3 == 0) {
            *plVar3 = lVar1;
            *(long *)(param_1 + 0x18) = *(long *)(param_1 + 0x18) + 1;
          }
          else {
            plVar4 = *(long **)(param_1 + 0x48);
            if (plVar4 == (long *)0x0) {
              plVar4 = (long *)malloc(0x10);
              if (plVar4 == (long *)0x0) {
                return 0;
              }
            }
            else {
              *(long *)(param_1 + 0x48) = plVar4[1];
            }
            *plVar4 = lVar1;
            plVar4[1] = plVar3[1];
            plVar3[1] = (long)plVar4;
          }
          *plVar5 = 0;
          param_2[3] = param_2[3] + -1;
        }
      }
      plVar5 = plVar5 + 2;
    } while (plVar5 < (long *)param_2[1]);
  }
  return 1;
}

