
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void * __regparm3 sqlite3Fts3HashInsert(Fts3Hash *pH,void *pKey,int nKey,void *data)

{
  Fts3HashElem *pFVar1;
  Fts3HashElem *pFVar2;
  uint uVar3;
  uint uVar5;
  int iVar6;
  Fts3HashElem *pFVar7;
  void *pvVar8;
  _fts3ht *p_Var9;
  int iVar10;
  u64 in_stack_ffffffc4;
  code *pcVar4;
  
  pcVar4 = fts3StrHash;
  if (pH->keyClass != '\x01') {
    pcVar4 = fts3BinHash;
  }
  uVar3 = (*pcVar4)(pKey,nKey);
  uVar5 = pH->htsize - 1U & uVar3;
  if (pH->ht != (_fts3ht *)0x0) {
    p_Var9 = pH->ht + uVar5;
    iVar10 = p_Var9->count;
    pcVar4 = fts3StrCompare;
    if (pH->keyClass != '\x01') {
      pcVar4 = fts3BinCompare;
    }
    pFVar7 = p_Var9->chain;
    if ((iVar10 != 0) && (pFVar7 != (Fts3HashElem *)0x0)) {
      do {
        iVar10 = iVar10 + -1;
        iVar6 = (*pcVar4)(pFVar7->pKey,pFVar7->nKey,pKey,nKey);
        if (iVar6 == 0) {
          pvVar8 = pFVar7->data;
          if (data != (void *)0x0) {
            pFVar7->data = data;
            return pvVar8;
          }
          if (pFVar7->prev == (Fts3HashElem *)0x0) {
            pH->first = pFVar7->next;
          }
          else {
            pFVar7->prev->next = pFVar7->next;
          }
          if (pFVar7->next != (Fts3HashElem *)0x0) {
            pFVar7->next->prev = pFVar7->prev;
          }
          p_Var9 = pH->ht + uVar5;
          if (p_Var9->chain == pFVar7) {
            p_Var9->chain = pFVar7->next;
          }
          iVar10 = p_Var9->count + -1;
          p_Var9->count = iVar10;
          if (iVar10 < 1) {
            p_Var9->chain = (Fts3HashElem *)0x0;
          }
          if ((pH->copyKey != '\0') && (pFVar7->pKey != (void *)0x0)) {
            sqlite3_free(pFVar7->pKey);
          }
          sqlite3_free(pFVar7);
          iVar10 = pH->count + -1;
          pH->count = iVar10;
          if (0 < iVar10) {
            return pvVar8;
          }
          sqlite3Fts3HashClear(pH);
          return pvVar8;
        }
        pFVar7 = pFVar7->next;
      } while (iVar10 != 0 && pFVar7 != (Fts3HashElem *)0x0);
    }
  }
  if (data == (void *)0x0) {
    return (void *)0x0;
  }
  iVar10 = pH->htsize;
  if (iVar10 == 0) {
    iVar10 = fts3Rehash(pH,8);
    if (iVar10 != 0) goto LAB_0011e007;
    iVar10 = pH->htsize;
  }
  if ((pH->count < iVar10) || (iVar10 = fts3Rehash(pH,iVar10 * 2), iVar10 == 0)) {
    iVar10 = sqlite3_initialize();
    if ((iVar10 != 0) ||
       (pFVar7 = (Fts3HashElem *)sqlite3Malloc(in_stack_ffffffc4), pFVar7 == (Fts3HashElem *)0x0)) {
      return data;
    }
    pFVar7->next = (Fts3HashElem *)0x0;
    pFVar7->prev = (Fts3HashElem *)0x0;
    pFVar7->data = (void *)0x0;
    pFVar7->pKey = (void *)0x0;
    pFVar7->nKey = 0;
    if ((pH->copyKey == '\0') || (pKey == (void *)0x0)) {
      pFVar7->pKey = pKey;
    }
    else {
      iVar10 = sqlite3_initialize();
      if ((iVar10 != 0) || (pvVar8 = sqlite3Malloc(in_stack_ffffffc4), pvVar8 == (void *)0x0)) {
        pFVar7->pKey = (void *)0x0;
        sqlite3_free(pFVar7);
        return data;
      }
      memset(pvVar8,0,nKey);
      pFVar7->pKey = pvVar8;
      memcpy(pvVar8,pKey,nKey);
    }
    pFVar7->nKey = nKey;
    pH->count = pH->count + 1;
    p_Var9 = pH->ht + (pH->htsize - 1U & uVar3);
    pFVar1 = p_Var9->chain;
    if (pFVar1 == (Fts3HashElem *)0x0) {
      pFVar1 = pH->first;
      pFVar7->next = pFVar1;
      if (pFVar1 != (Fts3HashElem *)0x0) {
        pFVar1->prev = pFVar7;
      }
      pFVar7->prev = (Fts3HashElem *)0x0;
      pH->first = pFVar7;
    }
    else {
      pFVar7->next = pFVar1;
      pFVar2 = pFVar1->prev;
      pFVar7->prev = pFVar2;
      if (pFVar2 == (Fts3HashElem *)0x0) {
        pH->first = pFVar7;
      }
      else {
        pFVar2->next = pFVar7;
      }
      pFVar1->prev = pFVar7;
    }
    p_Var9->count = p_Var9->count + 1;
    p_Var9->chain = pFVar7;
    pFVar7->data = data;
    return (void *)0x0;
  }
LAB_0011e007:
  pH->count = 0;
  return data;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3 FUN_0011df30(char *param_1,void *param_2,size_t param_3,int param_4)

{
  undefined4 *puVar1;
  uint uVar2;
  int iVar4;
  int iVar5;
  void *__s;
  int *piVar6;
  int *piVar7;
  int iVar8;
  code *pcVar3;
  
  pcVar3 = FUN_000423a0;
  if (*param_1 != '\x01') {
    pcVar3 = FUN_0003ee50;
  }
  uVar2 = (*pcVar3)(param_2,param_3);
  if (*(int *)(param_1 + 0x10) != 0) {
    iVar4 = (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8;
    piVar6 = (int *)(*(int *)(param_1 + 0x10) + iVar4);
    iVar8 = *piVar6;
    pcVar3 = FUN_000432e0;
    if (*param_1 != '\x01') {
      pcVar3 = FUN_00042ee0;
    }
    piVar6 = (int *)piVar6[1];
    if ((iVar8 != 0) && (piVar6 != (int *)0x0)) {
      do {
        iVar8 = iVar8 + -1;
        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);
        if (iVar5 == 0) {
          iVar8 = piVar6[2];
          if (param_4 != 0) {
            piVar6[2] = param_4;
            return iVar8;
          }
          if ((int *)piVar6[1] == (int *)0x0) {
            *(int *)(param_1 + 8) = *piVar6;
          }
          else {
            *(int *)piVar6[1] = *piVar6;
          }
          if (*piVar6 != 0) {
            *(int *)(*piVar6 + 4) = piVar6[1];
          }
          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));
          if ((int *)piVar7[1] == piVar6) {
            piVar7[1] = *piVar6;
          }
          iVar4 = *piVar7;
          *piVar7 = iVar4 + -1;
          if (iVar4 + -1 < 1) {
            piVar7[1] = 0;
          }
          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {
            FUN_00044000(piVar6[3]);
          }
          FUN_00044000(piVar6);
          iVar4 = *(int *)(param_1 + 4);
          *(int *)(param_1 + 4) = iVar4 + -1;
          if (0 < iVar4 + -1) {
            return iVar8;
          }
          FUN_0005b320();
          return iVar8;
        }
        piVar6 = (int *)*piVar6;
      } while (iVar8 != 0 && piVar6 != (int *)0x0);
    }
  }
  if (param_4 == 0) {
    return 0;
  }
  iVar8 = *(int *)(param_1 + 0xc);
  if (iVar8 == 0) {
    iVar8 = FUN_0011a410();
    if (iVar8 != 0) goto LAB_0011e007;
    iVar8 = *(int *)(param_1 + 0xc);
  }
  if ((*(int *)(param_1 + 4) < iVar8) || (iVar8 = FUN_0011a410(), iVar8 == 0)) {
    iVar8 = FUN_00067fc0();
    if ((iVar8 != 0) || (piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0)) {
      return param_4;
    }
    *piVar6 = 0;
    piVar6[1] = 0;
    piVar6[2] = 0;
    piVar6[3] = 0;
    piVar6[4] = 0;
    if ((param_1[1] == '\0') || (param_2 == (void *)0x0)) {
      piVar6[3] = (int)param_2;
    }
    else {
      iVar8 = FUN_00067fc0();
      if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {
        piVar6[3] = 0;
        FUN_00044000(piVar6);
        return param_4;
      }
      memset(__s,0,param_3);
      piVar6[3] = (int)__s;
      memcpy(__s,param_2,param_3);
    }
    piVar6[4] = param_3;
    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;
    piVar7 = (int *)(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8);
    iVar8 = piVar7[1];
    if (iVar8 == 0) {
      iVar8 = *(int *)(param_1 + 8);
      *piVar6 = iVar8;
      if (iVar8 != 0) {
        *(int **)(iVar8 + 4) = piVar6;
      }
      piVar6[1] = 0;
      *(int **)(param_1 + 8) = piVar6;
    }
    else {
      *piVar6 = iVar8;
      puVar1 = *(undefined4 **)(iVar8 + 4);
      piVar6[1] = (int)puVar1;
      if (puVar1 == (undefined4 *)0x0) {
        *(int **)(param_1 + 8) = piVar6;
      }
      else {
        *puVar1 = piVar6;
      }
      *(int **)(iVar8 + 4) = piVar6;
    }
    *piVar7 = *piVar7 + 1;
    piVar7[1] = (int)piVar6;
    piVar6[2] = param_4;
    return 0;
  }
LAB_0011e007:
  param_1[4] = '\0';
  param_1[5] = '\0';
  param_1[6] = '\0';
  param_1[7] = '\0';
  return param_4;
}


PUSH EBP
PUSH EDI
MOV EDI,EDX
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x000172e0
ADD EBX,0x9ceeb
SUB ESP,0x34
CMP byte ptr [EAX],0x1
MOV dword ptr [ESP + 0x18],EDX
MOV dword ptr [ESP + 0x14],ECX
PUSH ECX
PUSH EDI
LEA EDX,[EBX + 0xffe84028]
LEA EAX,[EBX + 0xffe87578]
CMOVNZ EAX,EDX
CALL EAX
MOVZX EDX,byte ptr [ESI]
MOV ECX,EAX
MOV dword ptr [ESP + 0x28],EAX
MOV EAX,dword ptr [ESI + 0xc]
ADD ESP,0x10
SUB EAX,0x1
AND EAX,ECX
MOV ECX,dword ptr [ESI + 0x10]
TEST ECX,ECX
JZ 0x0011dfde
SHL EAX,0x3
LEA EBP,[EBX + 0xffe884b8]
ADD ECX,EAX
MOV dword ptr [ESP + 0x1c],EAX
CMP DL,0x1
LEA EDX,[EBX + 0xffe880b8]
MOV EAX,dword ptr [ECX]
CMOVNZ EBP,EDX
MOV EDI,dword ptr [ECX + 0x4]
LEA EDX,[EAX + -0x1]
TEST EAX,EAX
JZ 0x0011dfde
TEST EDI,EDI
JZ 0x0011dfde
MOV dword ptr [ESP + 0x14],ESI
MOV ESI,EDX
PUSH dword ptr [ESP + 0xc]
PUSH dword ptr [ESP + 0x14]
PUSH dword ptr [EDI + 0x10]
PUSH dword ptr [EDI + 0xc]
CALL EBP
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0011e020
MOV EDI,dword ptr [EDI]
TEST ESI,ESI
SETNZ CL
TEST EDI,EDI
SETNZ AL
SUB ESI,0x1
TEST CL,AL
JNZ 0x0011dfb0
MOV ESI,dword ptr [ESP + 0x14]
MOV ECX,dword ptr [ESP + 0x40]
TEST ECX,ECX
JZ 0x0011e230
MOV EDX,dword ptr [ESI + 0xc]
TEST EDX,EDX
JZ 0x0011e118
CMP dword ptr [ESI + 0x4],EDX
JL 0x0011e048
ADD EDX,EDX
MOV EAX,ESI
CALL 0x0011a410
TEST EAX,EAX
JZ 0x0011e048
MOV EBX,dword ptr [ESP + 0x40]
MOV dword ptr [ESI + 0x4],0x0
ADD ESP,0x2c
MOV EAX,EBX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x40]
MOV ESI,dword ptr [ESP + 0x14]
MOV EBX,dword ptr [EDI + 0x8]
TEST EAX,EAX
JZ 0x0011e138
MOV EAX,dword ptr [ESP + 0x40]
MOV dword ptr [EDI + 0x8],EAX
ADD ESP,0x2c
MOV EAX,EBX
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x00067fc0
TEST EAX,EAX
JNZ 0x0011e103
MOV EAX,0x14
XOR EDX,EDX
CALL 0x00055780
MOV EDI,EAX
TEST EAX,EAX
JZ 0x0011e103
MOV dword ptr [EAX],0x0
MOV dword ptr [EAX + 0x4],0x0
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [EAX + 0xc],0x0
MOV dword ptr [EAX + 0x10],0x0
CMP byte ptr [ESI + 0x1],0x0
JZ 0x0011e1c0
MOV EDX,dword ptr [ESP + 0x10]
TEST EDX,EDX
JZ 0x0011e1c0
CALL 0x00067fc0
TEST EAX,EAX
JNZ 0x0011e0f0
MOV EAX,dword ptr [ESP + 0xc]
CDQ
CALL 0x00055780
MOV EBP,EAX
TEST EAX,EAX
JZ 0x0011e0f0
SUB ESP,0x4
PUSH dword ptr [ESP + 0x10]
PUSH 0x0
PUSH EAX
CALL 0x00015440
ADD ESP,0xc
MOV dword ptr [EDI + 0xc],EBP
PUSH dword ptr [ESP + 0x10]
PUSH dword ptr [ESP + 0x18]
PUSH EBP
CALL 0x00015130
ADD ESP,0x10
JMP 0x0011e1c7
SUB ESP,0xc
MOV dword ptr [EDI + 0xc],0x0
PUSH EDI
CALL 0x00044000
ADD ESP,0x10
MOV EBX,dword ptr [ESP + 0x40]
ADD ESP,0x2c
MOV EAX,EBX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,0x8
MOV EAX,ESI
CALL 0x0011a410
TEST EAX,EAX
JNZ 0x0011e007
MOV EDX,dword ptr [ESI + 0xc]
JMP 0x0011dff5
MOV EAX,dword ptr [EDI + 0x4]
MOV EDX,dword ptr [EDI]
TEST EAX,EAX
JZ 0x0011e258
MOV dword ptr [EAX],EDX
MOV EAX,dword ptr [EDI]
TEST EAX,EAX
JZ 0x0011e153
MOV EDX,dword ptr [EDI + 0x4]
MOV dword ptr [EAX + 0x4],EDX
MOV EDX,dword ptr [ESP + 0x1c]
ADD EDX,dword ptr [ESI + 0x10]
CMP dword ptr [EDX + 0x4],EDI
JZ 0x0011e248
MOV EAX,dword ptr [EDX]
SUB EAX,0x1
MOV dword ptr [EDX],EAX
TEST EAX,EAX
JG 0x0011e175
MOV dword ptr [EDX + 0x4],0x0
CMP byte ptr [ESI + 0x1],0x0
JZ 0x0011e18e
MOV EAX,dword ptr [EDI + 0xc]
TEST EAX,EAX
JZ 0x0011e18e
SUB ESP,0xc
PUSH EAX
CALL 0x00044000
ADD ESP,0x10
SUB ESP,0xc
PUSH EDI
CALL 0x00044000
MOV EAX,dword ptr [ESI + 0x4]
ADD ESP,0x10
SUB EAX,0x1
MOV dword ptr [ESI + 0x4],EAX
TEST EAX,EAX
JG 0x0011e03a
MOV EAX,ESI
CALL 0x0005b320
JMP 0x0011e03a
MOV EAX,dword ptr [ESP + 0x10]
MOV dword ptr [EDI + 0xc],EAX
MOV EAX,dword ptr [ESP + 0xc]
MOV dword ptr [EDI + 0x10],EAX
MOV EAX,dword ptr [ESI + 0xc]
MOV EDX,dword ptr [ESI + 0x10]
ADD dword ptr [ESI + 0x4],0x1
SUB EAX,0x1
AND EAX,dword ptr [ESP + 0x18]
LEA EAX,[EDX + EAX*0x8]
MOV EDX,dword ptr [EAX + 0x4]
TEST EDX,EDX
JZ 0x0011e218
MOV dword ptr [EDI],EDX
MOV ECX,dword ptr [EDX + 0x4]
MOV dword ptr [EDI + 0x4],ECX
TEST ECX,ECX
JZ 0x0011e240
MOV dword ptr [ECX],EDI
MOV dword ptr [EDX + 0x4],EDI
ADD dword ptr [EAX],0x1
XOR EBX,EBX
MOV dword ptr [EAX + 0x4],EDI
MOV EAX,dword ptr [ESP + 0x40]
MOV dword ptr [EDI + 0x8],EAX
ADD ESP,0x2c
MOV EAX,EBX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,dword ptr [ESI + 0x8]
MOV dword ptr [EDI],EDX
TEST EDX,EDX
JZ 0x0011e224
MOV dword ptr [EDX + 0x4],EDI
MOV dword ptr [EDI + 0x4],0x0
MOV dword ptr [ESI + 0x8],EDI
JMP 0x0011e1fa
XOR EBX,EBX
JMP 0x0011e03a
MOV dword ptr [ESI + 0x8],EDI
JMP 0x0011e1f7
MOV EAX,dword ptr [EDI]
MOV dword ptr [EDX + 0x4],EAX
JMP 0x0011e163
MOV dword ptr [ESI + 0x8],EDX
JMP 0x0011e147
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_0011df30(char *param_1,void *param_2,size_t param_3,int param_4)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  int iVar4;\n  int iVar5;\n  void *__s;\n  int *piVar6;\n  int *piVar7;\n  int iVar8;\n  code *pcVar3;\n  \n  pcVar3 = FUN_000423a0;\n  if (*param_1 != '\x01') {\n    pcVar3 = FUN_0003ee50;\n  }\n  uVar2 = (*pcVar3)(param_2,param_3);\n  if (*(int *)(param_1 + 0x10) != 0) {\n    iVar4 = (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8;\n    piVar6 = (int *)(*(int *)(param_1 + 0x10) + iVar4);\n    iVar8 = *piVar6;\n    pcVar3 = FUN_000432e0;\n    if (*param_1 != '\x01') {\n      pcVar3 = FUN_00042ee0;\n    }\n    piVar6 = (int *)piVar6[1];\n    if ((iVar8 != 0) && (piVar6 != (int *)0x0)) {\n      do {\n        iVar8 = iVar8 + -1;\n        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);\n        if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }\n        piVar6 = (int *)*piVar6;\n      } while (iVar8 != 0 && piVar6 != (int *)0x0);\n    }\n  }\n  if (param_4 == 0) {\n    return 0;\n  }\n  iVar8 = *(int *)(param_1 + 0xc);\n  if (iVar8 == 0) {\n    iVar8 = FUN_0011a410();\n    if (iVar8 != 0) goto LAB_0011e007;\n    iVar8 = *(int *)(param_1 + 0xc);\n  }\n  if ((*(int *)(param_1 + 4) < iVar8) || (iVar8 = FUN_0011a410(), iVar8 == 0)) {\n    iVar8 = FUN_00067fc0();\n    if ((iVar8 != 0) || (piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0)) {\n      return param_4;\n    }\n    *piVar6 = 0;\n    piVar6[1] = 0;\n    piVar6[2] = 0;\n    piVar6[3] = 0;\n    piVar6[4] = 0;\n    if ((param_1[1] == '\0') || (param_2 == (void *)0x0)) {\n      piVar6[3] = (int)param_2;\n    }\n    else {\n      iVar8 = FUN_00067fc0();\n      if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }\n      memset(__s,0,param_3);\n      piVar6[3] = (int)__s;\n      memcpy(__s,param_2,param_3);\n    }\n    piVar6[4] = param_3;\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n    piVar7 = (int *)(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8);\n    iVar8 = piVar7[1];\n    if (iVar8 == 0) {\n      iVar8 = *(int *)(param_1 + 8);\n      *piVar6 = iVar8;\n      if (iVar8 != 0) {\n        *(int **)(iVar8 + 4) = piVar6;\n      }\n      piVar6[1] = 0;\n      *(int **)(param_1 + 8) = piVar6;\n    }\n    else {\n      *piVar6 = iVar8;\n      puVar1 = *(undefined4 **)(iVar8 + 4);\n      piVar6[1] = (int)puVar1;\n      if (puVar1 == (undefined4 *)0x0) {\n        *(int **)(param_1 + 8) = piVar6;\n      }\n      else {\n        *puVar1 = piVar6;\n      }\n      *(int **)(iVar8 + 4) = piVar6;\n    }\n    *piVar7 = *piVar7 + 1;\n    piVar7[1] = (int)piVar6;\n    piVar6[2] = param_4;\n    return 0;\n  }\nLAB_0011e007:\n  param_1[4] = '\0';\n  param_1[5] = '\0';\n  param_1[6] = '\0';\n  param_1[7] = '\0';\n  return param_4;\n}\n\n" comment (function_definition "int __regparm3 FUN_0011df30(char *param_1,void *param_2,size_t param_3,int param_4)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  int iVar4;\n  int iVar5;\n  void *__s;\n  int *piVar6;\n  int *piVar7;\n  int iVar8;\n  code *pcVar3;\n  \n  pcVar3 = FUN_000423a0;\n  if (*param_1 != '\x01') {\n    pcVar3 = FUN_0003ee50;\n  }\n  uVar2 = (*pcVar3)(param_2,param_3);\n  if (*(int *)(param_1 + 0x10) != 0) {\n    iVar4 = (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8;\n    piVar6 = (int *)(*(int *)(param_1 + 0x10) + iVar4);\n    iVar8 = *piVar6;\n    pcVar3 = FUN_000432e0;\n    if (*param_1 != '\x01') {\n      pcVar3 = FUN_00042ee0;\n    }\n    piVar6 = (int *)piVar6[1];\n    if ((iVar8 != 0) && (piVar6 != (int *)0x0)) {\n      do {\n        iVar8 = iVar8 + -1;\n        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);\n        if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }\n        piVar6 = (int *)*piVar6;\n      } while (iVar8 != 0 && piVar6 != (int *)0x0);\n    }\n  }\n  if (param_4 == 0) {\n    return 0;\n  }\n  iVar8 = *(int *)(param_1 + 0xc);\n  if (iVar8 == 0) {\n    iVar8 = FUN_0011a410();\n    if (iVar8 != 0) goto LAB_0011e007;\n    iVar8 = *(int *)(param_1 + 0xc);\n  }\n  if ((*(int *)(param_1 + 4) < iVar8) || (iVar8 = FUN_0011a410(), iVar8 == 0)) {\n    iVar8 = FUN_00067fc0();\n    if ((iVar8 != 0) || (piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0)) {\n      return param_4;\n    }\n    *piVar6 = 0;\n    piVar6[1] = 0;\n    piVar6[2] = 0;\n    piVar6[3] = 0;\n    piVar6[4] = 0;\n    if ((param_1[1] == '\0') || (param_2 == (void *)0x0)) {\n      piVar6[3] = (int)param_2;\n    }\n    else {\n      iVar8 = FUN_00067fc0();\n      if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }\n      memset(__s,0,param_3);\n      piVar6[3] = (int)__s;\n      memcpy(__s,param_2,param_3);\n    }\n    piVar6[4] = param_3;\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n    piVar7 = (int *)(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8);\n    iVar8 = piVar7[1];\n    if (iVar8 == 0) {\n      iVar8 = *(int *)(param_1 + 8);\n      *piVar6 = iVar8;\n      if (iVar8 != 0) {\n        *(int **)(iVar8 + 4) = piVar6;\n      }\n      piVar6[1] = 0;\n      *(int **)(param_1 + 8) = piVar6;\n    }\n    else {\n      *piVar6 = iVar8;\n      puVar1 = *(undefined4 **)(iVar8 + 4);\n      piVar6[1] = (int)puVar1;\n      if (puVar1 == (undefined4 *)0x0) {\n        *(int **)(param_1 + 8) = piVar6;\n      }\n      else {\n        *puVar1 = piVar6;\n      }\n      *(int **)(iVar8 + 4) = piVar6;\n    }\n    *piVar7 = *piVar7 + 1;\n    piVar7[1] = (int)piVar6;\n    piVar6[2] = param_4;\n    return 0;\n  }\nLAB_0011e007:\n  param_1[4] = '\0';\n  param_1[5] = '\0';\n  param_1[6] = '\0';\n  param_1[7] = '\0';\n  return param_4;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0011df30(char *param_1,void *param_2,size_t param_3,int param_4)" identifier (parameter_list "(char *param_1,void *param_2,size_t param_3,int param_4)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "size_t param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  uint uVar2;\n  int iVar4;\n  int iVar5;\n  void *__s;\n  int *piVar6;\n  int *piVar7;\n  int iVar8;\n  code *pcVar3;\n  \n  pcVar3 = FUN_000423a0;\n  if (*param_1 != '\x01') {\n    pcVar3 = FUN_0003ee50;\n  }\n  uVar2 = (*pcVar3)(param_2,param_3);\n  if (*(int *)(param_1 + 0x10) != 0) {\n    iVar4 = (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8;\n    piVar6 = (int *)(*(int *)(param_1 + 0x10) + iVar4);\n    iVar8 = *piVar6;\n    pcVar3 = FUN_000432e0;\n    if (*param_1 != '\x01') {\n      pcVar3 = FUN_00042ee0;\n    }\n    piVar6 = (int *)piVar6[1];\n    if ((iVar8 != 0) && (piVar6 != (int *)0x0)) {\n      do {\n        iVar8 = iVar8 + -1;\n        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);\n        if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }\n        piVar6 = (int *)*piVar6;\n      } while (iVar8 != 0 && piVar6 != (int *)0x0);\n    }\n  }\n  if (param_4 == 0) {\n    return 0;\n  }\n  iVar8 = *(int *)(param_1 + 0xc);\n  if (iVar8 == 0) {\n    iVar8 = FUN_0011a410();\n    if (iVar8 != 0) goto LAB_0011e007;\n    iVar8 = *(int *)(param_1 + 0xc);\n  }\n  if ((*(int *)(param_1 + 4) < iVar8) || (iVar8 = FUN_0011a410(), iVar8 == 0)) {\n    iVar8 = FUN_00067fc0();\n    if ((iVar8 != 0) || (piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0)) {\n      return param_4;\n    }\n    *piVar6 = 0;\n    piVar6[1] = 0;\n    piVar6[2] = 0;\n    piVar6[3] = 0;\n    piVar6[4] = 0;\n    if ((param_1[1] == '\0') || (param_2 == (void *)0x0)) {\n      piVar6[3] = (int)param_2;\n    }\n    else {\n      iVar8 = FUN_00067fc0();\n      if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }\n      memset(__s,0,param_3);\n      piVar6[3] = (int)__s;\n      memcpy(__s,param_2,param_3);\n    }\n    piVar6[4] = param_3;\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n    piVar7 = (int *)(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8);\n    iVar8 = piVar7[1];\n    if (iVar8 == 0) {\n      iVar8 = *(int *)(param_1 + 8);\n      *piVar6 = iVar8;\n      if (iVar8 != 0) {\n        *(int **)(iVar8 + 4) = piVar6;\n      }\n      piVar6[1] = 0;\n      *(int **)(param_1 + 8) = piVar6;\n    }\n    else {\n      *piVar6 = iVar8;\n      puVar1 = *(undefined4 **)(iVar8 + 4);\n      piVar6[1] = (int)puVar1;\n      if (puVar1 == (undefined4 *)0x0) {\n        *(int **)(param_1 + 8) = piVar6;\n      }\n      else {\n        *puVar1 = piVar6;\n      }\n      *(int **)(iVar8 + 4) = piVar6;\n    }\n    *piVar7 = *piVar7 + 1;\n    piVar7[1] = (int)piVar6;\n    piVar6[2] = param_4;\n    return 0;\n  }\nLAB_0011e007:\n  param_1[4] = '\0';\n  param_1[5] = '\0';\n  param_1[6] = '\0';\n  param_1[7] = '\0';\n  return param_4;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "void *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "pcVar3 = FUN_000423a0;" (assignment_expression "pcVar3 = FUN_000423a0" identifier = identifier) ;) (if_statement "if (*param_1 != '\x01') {\n    pcVar3 = FUN_0003ee50;\n  }" if (parenthesized_expression "(*param_1 != '\x01')" ( (binary_expression "*param_1 != '\x01'" (pointer_expression "*param_1" * identifier) != (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n    pcVar3 = FUN_0003ee50;\n  }" { (expression_statement "pcVar3 = FUN_0003ee50;" (assignment_expression "pcVar3 = FUN_0003ee50" identifier = identifier) ;) })) (expression_statement "uVar2 = (*pcVar3)(param_2,param_3);" (assignment_expression "uVar2 = (*pcVar3)(param_2,param_3)" identifier = (call_expression "(*pcVar3)(param_2,param_3)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(param_2,param_3)" ( identifier , identifier )))) ;) (if_statement "if (*(int *)(param_1 + 0x10) != 0) {\n    iVar4 = (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8;\n    piVar6 = (int *)(*(int *)(param_1 + 0x10) + iVar4);\n    iVar8 = *piVar6;\n    pcVar3 = FUN_000432e0;\n    if (*param_1 != '\x01') {\n      pcVar3 = FUN_00042ee0;\n    }\n    piVar6 = (int *)piVar6[1];\n    if ((iVar8 != 0) && (piVar6 != (int *)0x0)) {\n      do {\n        iVar8 = iVar8 + -1;\n        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);\n        if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }\n        piVar6 = (int *)*piVar6;\n      } while (iVar8 != 0 && piVar6 != (int *)0x0);\n    }\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0)" ( (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    iVar4 = (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8;\n    piVar6 = (int *)(*(int *)(param_1 + 0x10) + iVar4);\n    iVar8 = *piVar6;\n    pcVar3 = FUN_000432e0;\n    if (*param_1 != '\x01') {\n      pcVar3 = FUN_00042ee0;\n    }\n    piVar6 = (int *)piVar6[1];\n    if ((iVar8 != 0) && (piVar6 != (int *)0x0)) {\n      do {\n        iVar8 = iVar8 + -1;\n        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);\n        if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }\n        piVar6 = (int *)*piVar6;\n      } while (iVar8 != 0 && piVar6 != (int *)0x0);\n    }\n  }" { (expression_statement "iVar4 = (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8;" (assignment_expression "iVar4 = (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8" identifier = (binary_expression "(*(int *)(param_1 + 0xc) - 1U & uVar2) * 8" (parenthesized_expression "(*(int *)(param_1 + 0xc) - 1U & uVar2)" ( (binary_expression "*(int *)(param_1 + 0xc) - 1U & uVar2" (binary_expression "*(int *)(param_1 + 0xc) - 1U" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) - number_literal) & identifier) )) * number_literal)) ;) (expression_statement "piVar6 = (int *)(*(int *)(param_1 + 0x10) + iVar4);" (assignment_expression "piVar6 = (int *)(*(int *)(param_1 + 0x10) + iVar4)" identifier = (cast_expression "(int *)(*(int *)(param_1 + 0x10) + iVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + iVar4)" ( (binary_expression "*(int *)(param_1 + 0x10) + iVar4" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + identifier) )))) ;) (expression_statement "iVar8 = *piVar6;" (assignment_expression "iVar8 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) (expression_statement "pcVar3 = FUN_000432e0;" (assignment_expression "pcVar3 = FUN_000432e0" identifier = identifier) ;) (if_statement "if (*param_1 != '\x01') {\n      pcVar3 = FUN_00042ee0;\n    }" if (parenthesized_expression "(*param_1 != '\x01')" ( (binary_expression "*param_1 != '\x01'" (pointer_expression "*param_1" * identifier) != (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar3 = FUN_00042ee0;\n    }" { (expression_statement "pcVar3 = FUN_00042ee0;" (assignment_expression "pcVar3 = FUN_00042ee0" identifier = identifier) ;) })) (expression_statement "piVar6 = (int *)piVar6[1];" (assignment_expression "piVar6 = (int *)piVar6[1]" identifier = (cast_expression "(int *)piVar6[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[1]" identifier [ number_literal ]))) ;) (if_statement "if ((iVar8 != 0) && (piVar6 != (int *)0x0)) {\n      do {\n        iVar8 = iVar8 + -1;\n        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);\n        if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }\n        piVar6 = (int *)*piVar6;\n      } while (iVar8 != 0 && piVar6 != (int *)0x0);\n    }" if (parenthesized_expression "((iVar8 != 0) && (piVar6 != (int *)0x0))" ( (binary_expression "(iVar8 != 0) && (piVar6 != (int *)0x0)" (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) && (parenthesized_expression "(piVar6 != (int *)0x0)" ( (binary_expression "piVar6 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      do {\n        iVar8 = iVar8 + -1;\n        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);\n        if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }\n        piVar6 = (int *)*piVar6;\n      } while (iVar8 != 0 && piVar6 != (int *)0x0);\n    }" { (do_statement "do {\n        iVar8 = iVar8 + -1;\n        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);\n        if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }\n        piVar6 = (int *)*piVar6;\n      } while (iVar8 != 0 && piVar6 != (int *)0x0);" do (compound_statement "{\n        iVar8 = iVar8 + -1;\n        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);\n        if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }\n        piVar6 = (int *)*piVar6;\n      }" { (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (expression_statement "iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);" (assignment_expression "iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3)" identifier = (call_expression "(*pcVar3)(piVar6[3],piVar6[4],param_2,param_3)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(piVar6[3],piVar6[4],param_2,param_3)" ( (subscript_expression "piVar6[3]" identifier [ number_literal ]) , (subscript_expression "piVar6[4]" identifier [ number_literal ]) , identifier , identifier )))) ;) (if_statement "if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }" { (expression_statement "iVar8 = piVar6[2];" (assignment_expression "iVar8 = piVar6[2]" identifier = (subscript_expression "piVar6[2]" identifier [ number_literal ])) ;) (if_statement "if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n            piVar6[2] = param_4;\n            return iVar8;\n          }" { (expression_statement "piVar6[2] = param_4;" (assignment_expression "piVar6[2] = param_4" (subscript_expression "piVar6[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return iVar8;" return identifier ;) })) (if_statement "if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }" if (parenthesized_expression "((int *)piVar6[1] == (int *)0x0)" ( (binary_expression "(int *)piVar6[1] == (int *)0x0" (cast_expression "(int *)piVar6[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[1]" identifier [ number_literal ])) == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            *(int *)(param_1 + 8) = *piVar6;\n          }" { (expression_statement "*(int *)(param_1 + 8) = *piVar6;" (assignment_expression "*(int *)(param_1 + 8) = *piVar6" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (pointer_expression "*piVar6" * identifier)) ;) }) (else_clause "else {\n            *(int *)piVar6[1] = *piVar6;\n          }" else (compound_statement "{\n            *(int *)piVar6[1] = *piVar6;\n          }" { (expression_statement "*(int *)piVar6[1] = *piVar6;" (assignment_expression "*(int *)piVar6[1] = *piVar6" (pointer_expression "*(int *)piVar6[1]" * (cast_expression "(int *)piVar6[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[1]" identifier [ number_literal ]))) = (pointer_expression "*piVar6" * identifier)) ;) }))) (if_statement "if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }" if (parenthesized_expression "(*piVar6 != 0)" ( (binary_expression "*piVar6 != 0" (pointer_expression "*piVar6" * identifier) != number_literal) )) (compound_statement "{\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }" { (expression_statement "*(int *)(*piVar6 + 4) = piVar6[1];" (assignment_expression "*(int *)(*piVar6 + 4) = piVar6[1]" (pointer_expression "*(int *)(*piVar6 + 4)" * (cast_expression "(int *)(*piVar6 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar6 + 4)" ( (binary_expression "*piVar6 + 4" (pointer_expression "*piVar6" * identifier) + number_literal) )))) = (subscript_expression "piVar6[1]" identifier [ number_literal ])) ;) })) (expression_statement "piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));" (assignment_expression "piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10))" identifier = (cast_expression "(int *)(iVar4 + *(int *)(param_1 + 0x10))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + *(int *)(param_1 + 0x10))" ( (binary_expression "iVar4 + *(int *)(param_1 + 0x10)" identifier + (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) )))) ;) (if_statement "if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }" if (parenthesized_expression "((int *)piVar7[1] == piVar6)" ( (binary_expression "(int *)piVar7[1] == piVar6" (cast_expression "(int *)piVar7[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar7[1]" identifier [ number_literal ])) == identifier) )) (compound_statement "{\n            piVar7[1] = *piVar6;\n          }" { (expression_statement "piVar7[1] = *piVar6;" (assignment_expression "piVar7[1] = *piVar6" (subscript_expression "piVar7[1]" identifier [ number_literal ]) = (pointer_expression "*piVar6" * identifier)) ;) })) (expression_statement "iVar4 = *piVar7;" (assignment_expression "iVar4 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) (expression_statement "*piVar7 = iVar4 + -1;" (assignment_expression "*piVar7 = iVar4 + -1" (pointer_expression "*piVar7" * identifier) = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (if_statement "if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }" if (parenthesized_expression "(iVar4 + -1 < 1)" ( (binary_expression "iVar4 + -1 < 1" (binary_expression "iVar4 + -1" identifier + number_literal) < number_literal) )) (compound_statement "{\n            piVar7[1] = 0;\n          }" { (expression_statement "piVar7[1] = 0;" (assignment_expression "piVar7[1] = 0" (subscript_expression "piVar7[1]" identifier [ number_literal ]) = number_literal) ;) })) (if_statement "if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }" if (parenthesized_expression "((param_1[1] != '\0') && (piVar6[3] != 0))" ( (binary_expression "(param_1[1] != '\0') && (piVar6[3] != 0)" (parenthesized_expression "(param_1[1] != '\0')" ( (binary_expression "param_1[1] != '\0'" (subscript_expression "param_1[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(piVar6[3] != 0)" ( (binary_expression "piVar6[3] != 0" (subscript_expression "piVar6[3]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n            FUN_00044000(piVar6[3]);\n          }" { (expression_statement "FUN_00044000(piVar6[3]);" (call_expression "FUN_00044000(piVar6[3])" identifier (argument_list "(piVar6[3])" ( (subscript_expression "piVar6[3]" identifier [ number_literal ]) ))) ;) })) (expression_statement "FUN_00044000(piVar6);" (call_expression "FUN_00044000(piVar6)" identifier (argument_list "(piVar6)" ( identifier ))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 4);" (assignment_expression "iVar4 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 4) = iVar4 + -1;" (assignment_expression "*(int *)(param_1 + 4) = iVar4 + -1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (if_statement "if (0 < iVar4 + -1) {\n            return iVar8;\n          }" if (parenthesized_expression "(0 < iVar4 + -1)" ( (binary_expression "0 < iVar4 + -1" number_literal < (binary_expression "iVar4 + -1" identifier + number_literal)) )) (compound_statement "{\n            return iVar8;\n          }" { (return_statement "return iVar8;" return identifier ;) })) (expression_statement "FUN_0005b320();" (call_expression "FUN_0005b320()" identifier (argument_list "()" ( ))) ;) (return_statement "return iVar8;" return identifier ;) })) (expression_statement "piVar6 = (int *)*piVar6;" (assignment_expression "piVar6 = (int *)*piVar6" identifier = (cast_expression "(int *)*piVar6" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar6" * identifier))) ;) }) while (parenthesized_expression "(iVar8 != 0 && piVar6 != (int *)0x0)" ( (binary_expression "iVar8 != 0 && piVar6 != (int *)0x0" (binary_expression "iVar8 != 0" identifier != number_literal) && (binary_expression "piVar6 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) ;) })) })) (if_statement "if (param_4 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar8 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar8 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar8 == 0) {\n    iVar8 = FUN_0011a410();\n    if (iVar8 != 0) goto LAB_0011e007;\n    iVar8 = *(int *)(param_1 + 0xc);\n  }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar8 = FUN_0011a410();\n    if (iVar8 != 0) goto LAB_0011e007;\n    iVar8 = *(int *)(param_1 + 0xc);\n  }" { (expression_statement "iVar8 = FUN_0011a410();" (assignment_expression "iVar8 = FUN_0011a410()" identifier = (call_expression "FUN_0011a410()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar8 != 0) goto LAB_0011e007;" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0011e007;" goto statement_identifier ;)) (expression_statement "iVar8 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar8 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) })) (if_statement "if ((*(int *)(param_1 + 4) < iVar8) || (iVar8 = FUN_0011a410(), iVar8 == 0)) {\n    iVar8 = FUN_00067fc0();\n    if ((iVar8 != 0) || (piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0)) {\n      return param_4;\n    }\n    *piVar6 = 0;\n    piVar6[1] = 0;\n    piVar6[2] = 0;\n    piVar6[3] = 0;\n    piVar6[4] = 0;\n    if ((param_1[1] == '\0') || (param_2 == (void *)0x0)) {\n      piVar6[3] = (int)param_2;\n    }\n    else {\n      iVar8 = FUN_00067fc0();\n      if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }\n      memset(__s,0,param_3);\n      piVar6[3] = (int)__s;\n      memcpy(__s,param_2,param_3);\n    }\n    piVar6[4] = param_3;\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n    piVar7 = (int *)(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8);\n    iVar8 = piVar7[1];\n    if (iVar8 == 0) {\n      iVar8 = *(int *)(param_1 + 8);\n      *piVar6 = iVar8;\n      if (iVar8 != 0) {\n        *(int **)(iVar8 + 4) = piVar6;\n      }\n      piVar6[1] = 0;\n      *(int **)(param_1 + 8) = piVar6;\n    }\n    else {\n      *piVar6 = iVar8;\n      puVar1 = *(undefined4 **)(iVar8 + 4);\n      piVar6[1] = (int)puVar1;\n      if (puVar1 == (undefined4 *)0x0) {\n        *(int **)(param_1 + 8) = piVar6;\n      }\n      else {\n        *puVar1 = piVar6;\n      }\n      *(int **)(iVar8 + 4) = piVar6;\n    }\n    *piVar7 = *piVar7 + 1;\n    piVar7[1] = (int)piVar6;\n    piVar6[2] = param_4;\n    return 0;\n  }" if (parenthesized_expression "((*(int *)(param_1 + 4) < iVar8) || (iVar8 = FUN_0011a410(), iVar8 == 0))" ( (binary_expression "(*(int *)(param_1 + 4) < iVar8) || (iVar8 = FUN_0011a410(), iVar8 == 0)" (parenthesized_expression "(*(int *)(param_1 + 4) < iVar8)" ( (binary_expression "*(int *)(param_1 + 4) < iVar8" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) < identifier) )) || (parenthesized_expression "(iVar8 = FUN_0011a410(), iVar8 == 0)" ( (comma_expression "iVar8 = FUN_0011a410(), iVar8 == 0" (assignment_expression "iVar8 = FUN_0011a410()" identifier = (call_expression "FUN_0011a410()" identifier (argument_list "()" ( )))) , (binary_expression "iVar8 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    iVar8 = FUN_00067fc0();\n    if ((iVar8 != 0) || (piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0)) {\n      return param_4;\n    }\n    *piVar6 = 0;\n    piVar6[1] = 0;\n    piVar6[2] = 0;\n    piVar6[3] = 0;\n    piVar6[4] = 0;\n    if ((param_1[1] == '\0') || (param_2 == (void *)0x0)) {\n      piVar6[3] = (int)param_2;\n    }\n    else {\n      iVar8 = FUN_00067fc0();\n      if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }\n      memset(__s,0,param_3);\n      piVar6[3] = (int)__s;\n      memcpy(__s,param_2,param_3);\n    }\n    piVar6[4] = param_3;\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n    piVar7 = (int *)(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8);\n    iVar8 = piVar7[1];\n    if (iVar8 == 0) {\n      iVar8 = *(int *)(param_1 + 8);\n      *piVar6 = iVar8;\n      if (iVar8 != 0) {\n        *(int **)(iVar8 + 4) = piVar6;\n      }\n      piVar6[1] = 0;\n      *(int **)(param_1 + 8) = piVar6;\n    }\n    else {\n      *piVar6 = iVar8;\n      puVar1 = *(undefined4 **)(iVar8 + 4);\n      piVar6[1] = (int)puVar1;\n      if (puVar1 == (undefined4 *)0x0) {\n        *(int **)(param_1 + 8) = piVar6;\n      }\n      else {\n        *puVar1 = piVar6;\n      }\n      *(int **)(iVar8 + 4) = piVar6;\n    }\n    *piVar7 = *piVar7 + 1;\n    piVar7[1] = (int)piVar6;\n    piVar6[2] = param_4;\n    return 0;\n  }" { (expression_statement "iVar8 = FUN_00067fc0();" (assignment_expression "iVar8 = FUN_00067fc0()" identifier = (call_expression "FUN_00067fc0()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar8 != 0) || (piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0)) {\n      return param_4;\n    }" if (parenthesized_expression "((iVar8 != 0) || (piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0))" ( (binary_expression "(iVar8 != 0) || (piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0)" (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) || (parenthesized_expression "(piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0)" ( (comma_expression "piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0" (assignment_expression "piVar6 = (int *)FUN_00055780()" identifier = (cast_expression "(int *)FUN_00055780()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00055780()" identifier (argument_list "()" ( ))))) , (binary_expression "piVar6 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n      return param_4;\n    }" { (return_statement "return param_4;" return identifier ;) })) (expression_statement "*piVar6 = 0;" (assignment_expression "*piVar6 = 0" (pointer_expression "*piVar6" * identifier) = number_literal) ;) (expression_statement "piVar6[1] = 0;" (assignment_expression "piVar6[1] = 0" (subscript_expression "piVar6[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar6[2] = 0;" (assignment_expression "piVar6[2] = 0" (subscript_expression "piVar6[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar6[3] = 0;" (assignment_expression "piVar6[3] = 0" (subscript_expression "piVar6[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar6[4] = 0;" (assignment_expression "piVar6[4] = 0" (subscript_expression "piVar6[4]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if ((param_1[1] == '\0') || (param_2 == (void *)0x0)) {\n      piVar6[3] = (int)param_2;\n    }\n    else {\n      iVar8 = FUN_00067fc0();\n      if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }\n      memset(__s,0,param_3);\n      piVar6[3] = (int)__s;\n      memcpy(__s,param_2,param_3);\n    }" if (parenthesized_expression "((param_1[1] == '\0') || (param_2 == (void *)0x0))" ( (binary_expression "(param_1[1] == '\0') || (param_2 == (void *)0x0)" (parenthesized_expression "(param_1[1] == '\0')" ( (binary_expression "param_1[1] == '\0'" (subscript_expression "param_1[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(param_2 == (void *)0x0)" ( (binary_expression "param_2 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      piVar6[3] = (int)param_2;\n    }" { (expression_statement "piVar6[3] = (int)param_2;" (assignment_expression "piVar6[3] = (int)param_2" (subscript_expression "piVar6[3]" identifier [ number_literal ]) = (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n      iVar8 = FUN_00067fc0();\n      if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }\n      memset(__s,0,param_3);\n      piVar6[3] = (int)__s;\n      memcpy(__s,param_2,param_3);\n    }" else (compound_statement "{\n      iVar8 = FUN_00067fc0();\n      if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }\n      memset(__s,0,param_3);\n      piVar6[3] = (int)__s;\n      memcpy(__s,param_2,param_3);\n    }" { (expression_statement "iVar8 = FUN_00067fc0();" (assignment_expression "iVar8 = FUN_00067fc0()" identifier = (call_expression "FUN_00067fc0()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }" if (parenthesized_expression "((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0))" ( (binary_expression "(iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)" (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) || (parenthesized_expression "(__s = (void *)FUN_00055780(), __s == (void *)0x0)" ( (comma_expression "__s = (void *)FUN_00055780(), __s == (void *)0x0" (assignment_expression "__s = (void *)FUN_00055780()" identifier = (cast_expression "(void *)FUN_00055780()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00055780()" identifier (argument_list "()" ( ))))) , (binary_expression "__s == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }" { (expression_statement "piVar6[3] = 0;" (assignment_expression "piVar6[3] = 0" (subscript_expression "piVar6[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_00044000(piVar6);" (call_expression "FUN_00044000(piVar6)" identifier (argument_list "(piVar6)" ( identifier ))) ;) (return_statement "return param_4;" return identifier ;) })) (expression_statement "memset(__s,0,param_3);" (call_expression "memset(__s,0,param_3)" identifier (argument_list "(__s,0,param_3)" ( identifier , number_literal , identifier ))) ;) (expression_statement "piVar6[3] = (int)__s;" (assignment_expression "piVar6[3] = (int)__s" (subscript_expression "piVar6[3]" identifier [ number_literal ]) = (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "memcpy(__s,param_2,param_3);" (call_expression "memcpy(__s,param_2,param_3)" identifier (argument_list "(__s,param_2,param_3)" ( identifier , identifier , identifier ))) ;) }))) (expression_statement "piVar6[4] = param_3;" (assignment_expression "piVar6[4] = param_3" (subscript_expression "piVar6[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;" (assignment_expression "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 4) + 1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "piVar7 = (int *)(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8);" (assignment_expression "piVar7 = (int *)(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8)" identifier = (cast_expression "(int *)(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8)" ( (binary_expression "*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "(*(int *)(param_1 + 0xc) - 1U & uVar2) * 8" (parenthesized_expression "(*(int *)(param_1 + 0xc) - 1U & uVar2)" ( (binary_expression "*(int *)(param_1 + 0xc) - 1U & uVar2" (binary_expression "*(int *)(param_1 + 0xc) - 1U" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) - number_literal) & identifier) )) * number_literal)) )))) ;) (expression_statement "iVar8 = piVar7[1];" (assignment_expression "iVar8 = piVar7[1]" identifier = (subscript_expression "piVar7[1]" identifier [ number_literal ])) ;) (if_statement "if (iVar8 == 0) {\n      iVar8 = *(int *)(param_1 + 8);\n      *piVar6 = iVar8;\n      if (iVar8 != 0) {\n        *(int **)(iVar8 + 4) = piVar6;\n      }\n      piVar6[1] = 0;\n      *(int **)(param_1 + 8) = piVar6;\n    }\n    else {\n      *piVar6 = iVar8;\n      puVar1 = *(undefined4 **)(iVar8 + 4);\n      piVar6[1] = (int)puVar1;\n      if (puVar1 == (undefined4 *)0x0) {\n        *(int **)(param_1 + 8) = piVar6;\n      }\n      else {\n        *puVar1 = piVar6;\n      }\n      *(int **)(iVar8 + 4) = piVar6;\n    }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar8 = *(int *)(param_1 + 8);\n      *piVar6 = iVar8;\n      if (iVar8 != 0) {\n        *(int **)(iVar8 + 4) = piVar6;\n      }\n      piVar6[1] = 0;\n      *(int **)(param_1 + 8) = piVar6;\n    }" { (expression_statement "iVar8 = *(int *)(param_1 + 8);" (assignment_expression "iVar8 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "*piVar6 = iVar8;" (assignment_expression "*piVar6 = iVar8" (pointer_expression "*piVar6" * identifier) = identifier) ;) (if_statement "if (iVar8 != 0) {\n        *(int **)(iVar8 + 4) = piVar6;\n      }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n        *(int **)(iVar8 + 4) = piVar6;\n      }" { (expression_statement "*(int **)(iVar8 + 4) = piVar6;" (assignment_expression "*(int **)(iVar8 + 4) = piVar6" (pointer_expression "*(int **)(iVar8 + 4)" * (cast_expression "(int **)(iVar8 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar8 + 4)" ( (binary_expression "iVar8 + 4" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "piVar6[1] = 0;" (assignment_expression "piVar6[1] = 0" (subscript_expression "piVar6[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(int **)(param_1 + 8) = piVar6;" (assignment_expression "*(int **)(param_1 + 8) = piVar6" (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n      *piVar6 = iVar8;\n      puVar1 = *(undefined4 **)(iVar8 + 4);\n      piVar6[1] = (int)puVar1;\n      if (puVar1 == (undefined4 *)0x0) {\n        *(int **)(param_1 + 8) = piVar6;\n      }\n      else {\n        *puVar1 = piVar6;\n      }\n      *(int **)(iVar8 + 4) = piVar6;\n    }" else (compound_statement "{\n      *piVar6 = iVar8;\n      puVar1 = *(undefined4 **)(iVar8 + 4);\n      piVar6[1] = (int)puVar1;\n      if (puVar1 == (undefined4 *)0x0) {\n        *(int **)(param_1 + 8) = piVar6;\n      }\n      else {\n        *puVar1 = piVar6;\n      }\n      *(int **)(iVar8 + 4) = piVar6;\n    }" { (expression_statement "*piVar6 = iVar8;" (assignment_expression "*piVar6 = iVar8" (pointer_expression "*piVar6" * identifier) = identifier) ;) (expression_statement "puVar1 = *(undefined4 **)(iVar8 + 4);" (assignment_expression "puVar1 = *(undefined4 **)(iVar8 + 4)" identifier = (pointer_expression "*(undefined4 **)(iVar8 + 4)" * (cast_expression "(undefined4 **)(iVar8 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar8 + 4)" ( (binary_expression "iVar8 + 4" identifier + number_literal) ))))) ;) (expression_statement "piVar6[1] = (int)puVar1;" (assignment_expression "piVar6[1] = (int)puVar1" (subscript_expression "piVar6[1]" identifier [ number_literal ]) = (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n        *(int **)(param_1 + 8) = piVar6;\n      }\n      else {\n        *puVar1 = piVar6;\n      }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *(int **)(param_1 + 8) = piVar6;\n      }" { (expression_statement "*(int **)(param_1 + 8) = piVar6;" (assignment_expression "*(int **)(param_1 + 8) = piVar6" (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n        *puVar1 = piVar6;\n      }" else (compound_statement "{\n        *puVar1 = piVar6;\n      }" { (expression_statement "*puVar1 = piVar6;" (assignment_expression "*puVar1 = piVar6" (pointer_expression "*puVar1" * identifier) = identifier) ;) }))) (expression_statement "*(int **)(iVar8 + 4) = piVar6;" (assignment_expression "*(int **)(iVar8 + 4) = piVar6" (pointer_expression "*(int **)(iVar8 + 4)" * (cast_expression "(int **)(iVar8 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar8 + 4)" ( (binary_expression "iVar8 + 4" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "*piVar7 = *piVar7 + 1;" (assignment_expression "*piVar7 = *piVar7 + 1" (pointer_expression "*piVar7" * identifier) = (binary_expression "*piVar7 + 1" (pointer_expression "*piVar7" * identifier) + number_literal)) ;) (expression_statement "piVar7[1] = (int)piVar6;" (assignment_expression "piVar7[1] = (int)piVar6" (subscript_expression "piVar7[1]" identifier [ number_literal ]) = (cast_expression "(int)piVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar6[2] = param_4;" (assignment_expression "piVar6[2] = param_4" (subscript_expression "piVar6[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (labeled_statement "LAB_0011e007:\n  param_1[4] = '\0';" statement_identifier : (expression_statement "param_1[4] = '\0';" (assignment_expression "param_1[4] = '\0'" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;)) (expression_statement "param_1[5] = '\0';" (assignment_expression "param_1[5] = '\0'" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_1[6] = '\0';" (assignment_expression "param_1[6] = '\0'" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_1[7] = '\0';" (assignment_expression "param_1[7] = '\0'" (subscript_expression "param_1[7]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return param_4;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid * __regparm3 sqlite3Fts3HashInsert(Fts3Hash *pH,void *pKey,int nKey,void *data)\n\n{\n  Fts3HashElem *pFVar1;\n  Fts3HashElem *pFVar2;\n  uint uVar3;\n  uint uVar5;\n  int iVar6;\n  Fts3HashElem *pFVar7;\n  void *pvVar8;\n  _fts3ht *p_Var9;\n  int iVar10;\n  u64 in_stack_ffffffc4;\n  code *pcVar4;\n  \n  pcVar4 = fts3StrHash;\n  if (pH->keyClass != '\x01') {\n    pcVar4 = fts3BinHash;\n  }\n  uVar3 = (*pcVar4)(pKey,nKey);\n  uVar5 = pH->htsize - 1U & uVar3;\n  if (pH->ht != (_fts3ht *)0x0) {\n    p_Var9 = pH->ht + uVar5;\n    iVar10 = p_Var9->count;\n    pcVar4 = fts3StrCompare;\n    if (pH->keyClass != '\x01') {\n      pcVar4 = fts3BinCompare;\n    }\n    pFVar7 = p_Var9->chain;\n    if ((iVar10 != 0) && (pFVar7 != (Fts3HashElem *)0x0)) {\n      do {\n        iVar10 = iVar10 + -1;\n        iVar6 = (*pcVar4)(pFVar7->pKey,pFVar7->nKey,pKey,nKey);\n        if (iVar6 == 0) {\n          pvVar8 = pFVar7->data;\n          if (data != (void *)0x0) {\n            pFVar7->data = data;\n            return pvVar8;\n          }\n          if (pFVar7->prev == (Fts3HashElem *)0x0) {\n            pH->first = pFVar7->next;\n          }\n          else {\n            pFVar7->prev->next = pFVar7->next;\n          }\n          if (pFVar7->next != (Fts3HashElem *)0x0) {\n            pFVar7->next->prev = pFVar7->prev;\n          }\n          p_Var9 = pH->ht + uVar5;\n          if (p_Var9->chain == pFVar7) {\n            p_Var9->chain = pFVar7->next;\n          }\n          iVar10 = p_Var9->count + -1;\n          p_Var9->count = iVar10;\n          if (iVar10 < 1) {\n            p_Var9->chain = (Fts3HashElem *)0x0;\n          }\n          if ((pH->copyKey != '\0') && (pFVar7->pKey != (void *)0x0)) {\n            sqlite3_free(pFVar7->pKey);\n          }\n          sqlite3_free(pFVar7);\n          iVar10 = pH->count + -1;\n          pH->count = iVar10;\n          if (0 < iVar10) {\n            return pvVar8;\n          }\n          sqlite3Fts3HashClear(pH);\n          return pvVar8;\n        }\n        pFVar7 = pFVar7->next;\n      } while (iVar10 != 0 && pFVar7 != (Fts3HashElem *)0x0);\n    }\n  }\n  if (data == (void *)0x0) {\n    return (void *)0x0;\n  }\n  iVar10 = pH->htsize;\n  if (iVar10 == 0) {\n    iVar10 = fts3Rehash(pH,8);\n    if (iVar10 != 0) goto LAB_0011e007;\n    iVar10 = pH->htsize;\n  }\n  if ((pH->count < iVar10) || (iVar10 = fts3Rehash(pH,iVar10 * 2), iVar10 == 0)) {\n    iVar10 = sqlite3_initialize();\n    if ((iVar10 != 0) ||\n       (pFVar7 = (Fts3HashElem *)sqlite3Malloc(in_stack_ffffffc4), pFVar7 == (Fts3HashElem *)0x0)) {\n      return data;\n    }\n    pFVar7->next = (Fts3HashElem *)0x0;\n    pFVar7->prev = (Fts3HashElem *)0x0;\n    pFVar7->data = (void *)0x0;\n    pFVar7->pKey = (void *)0x0;\n    pFVar7->nKey = 0;\n    if ((pH->copyKey == '\0') || (pKey == (void *)0x0)) {\n      pFVar7->pKey = pKey;\n    }\n    else {\n      iVar10 = sqlite3_initialize();\n      if ((iVar10 != 0) || (pvVar8 = sqlite3Malloc(in_stack_ffffffc4), pvVar8 == (void *)0x0)) {\n        pFVar7->pKey = (void *)0x0;\n        sqlite3_free(pFVar7);\n        return data;\n      }\n      memset(pvVar8,0,nKey);\n      pFVar7->pKey = pvVar8;\n      memcpy(pvVar8,pKey,nKey);\n    }\n    pFVar7->nKey = nKey;\n    pH->count = pH->count + 1;\n    p_Var9 = pH->ht + (pH->htsize - 1U & uVar3);\n    pFVar1 = p_Var9->chain;\n    if (pFVar1 == (Fts3HashElem *)0x0) {\n      pFVar1 = pH->first;\n      pFVar7->next = pFVar1;\n      if (pFVar1 != (Fts3HashElem *)0x0) {\n        pFVar1->prev = pFVar7;\n      }\n      pFVar7->prev = (Fts3HashElem *)0x0;\n      pH->first = pFVar7;\n    }\n    else {\n      pFVar7->next = pFVar1;\n      pFVar2 = pFVar1->prev;\n      pFVar7->prev = pFVar2;\n      if (pFVar2 == (Fts3HashElem *)0x0) {\n        pH->first = pFVar7;\n      }\n      else {\n        pFVar2->next = pFVar7;\n      }\n      pFVar1->prev = pFVar7;\n    }\n    p_Var9->count = p_Var9->count + 1;\n    p_Var9->chain = pFVar7;\n    pFVar7->data = data;\n    return (void *)0x0;\n  }\nLAB_0011e007:\n  pH->count = 0;\n  return data;\n}\n\n" comment (function_definition "void * __regparm3 sqlite3Fts3HashInsert(Fts3Hash *pH,void *pKey,int nKey,void *data)\n\n{\n  Fts3HashElem *pFVar1;\n  Fts3HashElem *pFVar2;\n  uint uVar3;\n  uint uVar5;\n  int iVar6;\n  Fts3HashElem *pFVar7;\n  void *pvVar8;\n  _fts3ht *p_Var9;\n  int iVar10;\n  u64 in_stack_ffffffc4;\n  code *pcVar4;\n  \n  pcVar4 = fts3StrHash;\n  if (pH->keyClass != '\x01') {\n    pcVar4 = fts3BinHash;\n  }\n  uVar3 = (*pcVar4)(pKey,nKey);\n  uVar5 = pH->htsize - 1U & uVar3;\n  if (pH->ht != (_fts3ht *)0x0) {\n    p_Var9 = pH->ht + uVar5;\n    iVar10 = p_Var9->count;\n    pcVar4 = fts3StrCompare;\n    if (pH->keyClass != '\x01') {\n      pcVar4 = fts3BinCompare;\n    }\n    pFVar7 = p_Var9->chain;\n    if ((iVar10 != 0) && (pFVar7 != (Fts3HashElem *)0x0)) {\n      do {\n        iVar10 = iVar10 + -1;\n        iVar6 = (*pcVar4)(pFVar7->pKey,pFVar7->nKey,pKey,nKey);\n        if (iVar6 == 0) {\n          pvVar8 = pFVar7->data;\n          if (data != (void *)0x0) {\n            pFVar7->data = data;\n            return pvVar8;\n          }\n          if (pFVar7->prev == (Fts3HashElem *)0x0) {\n            pH->first = pFVar7->next;\n          }\n          else {\n            pFVar7->prev->next = pFVar7->next;\n          }\n          if (pFVar7->next != (Fts3HashElem *)0x0) {\n            pFVar7->next->prev = pFVar7->prev;\n          }\n          p_Var9 = pH->ht + uVar5;\n          if (p_Var9->chain == pFVar7) {\n            p_Var9->chain = pFVar7->next;\n          }\n          iVar10 = p_Var9->count + -1;\n          p_Var9->count = iVar10;\n          if (iVar10 < 1) {\n            p_Var9->chain = (Fts3HashElem *)0x0;\n          }\n          if ((pH->copyKey != '\0') && (pFVar7->pKey != (void *)0x0)) {\n            sqlite3_free(pFVar7->pKey);\n          }\n          sqlite3_free(pFVar7);\n          iVar10 = pH->count + -1;\n          pH->count = iVar10;\n          if (0 < iVar10) {\n            return pvVar8;\n          }\n          sqlite3Fts3HashClear(pH);\n          return pvVar8;\n        }\n        pFVar7 = pFVar7->next;\n      } while (iVar10 != 0 && pFVar7 != (Fts3HashElem *)0x0);\n    }\n  }\n  if (data == (void *)0x0) {\n    return (void *)0x0;\n  }\n  iVar10 = pH->htsize;\n  if (iVar10 == 0) {\n    iVar10 = fts3Rehash(pH,8);\n    if (iVar10 != 0) goto LAB_0011e007;\n    iVar10 = pH->htsize;\n  }\n  if ((pH->count < iVar10) || (iVar10 = fts3Rehash(pH,iVar10 * 2), iVar10 == 0)) {\n    iVar10 = sqlite3_initialize();\n    if ((iVar10 != 0) ||\n       (pFVar7 = (Fts3HashElem *)sqlite3Malloc(in_stack_ffffffc4), pFVar7 == (Fts3HashElem *)0x0)) {\n      return data;\n    }\n    pFVar7->next = (Fts3HashElem *)0x0;\n    pFVar7->prev = (Fts3HashElem *)0x0;\n    pFVar7->data = (void *)0x0;\n    pFVar7->pKey = (void *)0x0;\n    pFVar7->nKey = 0;\n    if ((pH->copyKey == '\0') || (pKey == (void *)0x0)) {\n      pFVar7->pKey = pKey;\n    }\n    else {\n      iVar10 = sqlite3_initialize();\n      if ((iVar10 != 0) || (pvVar8 = sqlite3Malloc(in_stack_ffffffc4), pvVar8 == (void *)0x0)) {\n        pFVar7->pKey = (void *)0x0;\n        sqlite3_free(pFVar7);\n        return data;\n      }\n      memset(pvVar8,0,nKey);\n      pFVar7->pKey = pvVar8;\n      memcpy(pvVar8,pKey,nKey);\n    }\n    pFVar7->nKey = nKey;\n    pH->count = pH->count + 1;\n    p_Var9 = pH->ht + (pH->htsize - 1U & uVar3);\n    pFVar1 = p_Var9->chain;\n    if (pFVar1 == (Fts3HashElem *)0x0) {\n      pFVar1 = pH->first;\n      pFVar7->next = pFVar1;\n      if (pFVar1 != (Fts3HashElem *)0x0) {\n        pFVar1->prev = pFVar7;\n      }\n      pFVar7->prev = (Fts3HashElem *)0x0;\n      pH->first = pFVar7;\n    }\n    else {\n      pFVar7->next = pFVar1;\n      pFVar2 = pFVar1->prev;\n      pFVar7->prev = pFVar2;\n      if (pFVar2 == (Fts3HashElem *)0x0) {\n        pH->first = pFVar7;\n      }\n      else {\n        pFVar2->next = pFVar7;\n      }\n      pFVar1->prev = pFVar7;\n    }\n    p_Var9->count = p_Var9->count + 1;\n    p_Var9->chain = pFVar7;\n    pFVar7->data = data;\n    return (void *)0x0;\n  }\nLAB_0011e007:\n  pH->count = 0;\n  return data;\n}" primitive_type (pointer_declarator "* __regparm3 sqlite3Fts3HashInsert(Fts3Hash *pH,void *pKey,int nKey,void *data)" * (ERROR "__regparm3" identifier) (function_declarator "sqlite3Fts3HashInsert(Fts3Hash *pH,void *pKey,int nKey,void *data)" identifier (parameter_list "(Fts3Hash *pH,void *pKey,int nKey,void *data)" ( (parameter_declaration "Fts3Hash *pH" type_identifier (pointer_declarator "*pH" * identifier)) , (parameter_declaration "void *pKey" primitive_type (pointer_declarator "*pKey" * identifier)) , (parameter_declaration "int nKey" primitive_type identifier) , (parameter_declaration "void *data" primitive_type (pointer_declarator "*data" * identifier)) )))) (compound_statement "{\n  Fts3HashElem *pFVar1;\n  Fts3HashElem *pFVar2;\n  uint uVar3;\n  uint uVar5;\n  int iVar6;\n  Fts3HashElem *pFVar7;\n  void *pvVar8;\n  _fts3ht *p_Var9;\n  int iVar10;\n  u64 in_stack_ffffffc4;\n  code *pcVar4;\n  \n  pcVar4 = fts3StrHash;\n  if (pH->keyClass != '\x01') {\n    pcVar4 = fts3BinHash;\n  }\n  uVar3 = (*pcVar4)(pKey,nKey);\n  uVar5 = pH->htsize - 1U & uVar3;\n  if (pH->ht != (_fts3ht *)0x0) {\n    p_Var9 = pH->ht + uVar5;\n    iVar10 = p_Var9->count;\n    pcVar4 = fts3StrCompare;\n    if (pH->keyClass != '\x01') {\n      pcVar4 = fts3BinCompare;\n    }\n    pFVar7 = p_Var9->chain;\n    if ((iVar10 != 0) && (pFVar7 != (Fts3HashElem *)0x0)) {\n      do {\n        iVar10 = iVar10 + -1;\n        iVar6 = (*pcVar4)(pFVar7->pKey,pFVar7->nKey,pKey,nKey);\n        if (iVar6 == 0) {\n          pvVar8 = pFVar7->data;\n          if (data != (void *)0x0) {\n            pFVar7->data = data;\n            return pvVar8;\n          }\n          if (pFVar7->prev == (Fts3HashElem *)0x0) {\n            pH->first = pFVar7->next;\n          }\n          else {\n            pFVar7->prev->next = pFVar7->next;\n          }\n          if (pFVar7->next != (Fts3HashElem *)0x0) {\n            pFVar7->next->prev = pFVar7->prev;\n          }\n          p_Var9 = pH->ht + uVar5;\n          if (p_Var9->chain == pFVar7) {\n            p_Var9->chain = pFVar7->next;\n          }\n          iVar10 = p_Var9->count + -1;\n          p_Var9->count = iVar10;\n          if (iVar10 < 1) {\n            p_Var9->chain = (Fts3HashElem *)0x0;\n          }\n          if ((pH->copyKey != '\0') && (pFVar7->pKey != (void *)0x0)) {\n            sqlite3_free(pFVar7->pKey);\n          }\n          sqlite3_free(pFVar7);\n          iVar10 = pH->count + -1;\n          pH->count = iVar10;\n          if (0 < iVar10) {\n            return pvVar8;\n          }\n          sqlite3Fts3HashClear(pH);\n          return pvVar8;\n        }\n        pFVar7 = pFVar7->next;\n      } while (iVar10 != 0 && pFVar7 != (Fts3HashElem *)0x0);\n    }\n  }\n  if (data == (void *)0x0) {\n    return (void *)0x0;\n  }\n  iVar10 = pH->htsize;\n  if (iVar10 == 0) {\n    iVar10 = fts3Rehash(pH,8);\n    if (iVar10 != 0) goto LAB_0011e007;\n    iVar10 = pH->htsize;\n  }\n  if ((pH->count < iVar10) || (iVar10 = fts3Rehash(pH,iVar10 * 2), iVar10 == 0)) {\n    iVar10 = sqlite3_initialize();\n    if ((iVar10 != 0) ||\n       (pFVar7 = (Fts3HashElem *)sqlite3Malloc(in_stack_ffffffc4), pFVar7 == (Fts3HashElem *)0x0)) {\n      return data;\n    }\n    pFVar7->next = (Fts3HashElem *)0x0;\n    pFVar7->prev = (Fts3HashElem *)0x0;\n    pFVar7->data = (void *)0x0;\n    pFVar7->pKey = (void *)0x0;\n    pFVar7->nKey = 0;\n    if ((pH->copyKey == '\0') || (pKey == (void *)0x0)) {\n      pFVar7->pKey = pKey;\n    }\n    else {\n      iVar10 = sqlite3_initialize();\n      if ((iVar10 != 0) || (pvVar8 = sqlite3Malloc(in_stack_ffffffc4), pvVar8 == (void *)0x0)) {\n        pFVar7->pKey = (void *)0x0;\n        sqlite3_free(pFVar7);\n        return data;\n      }\n      memset(pvVar8,0,nKey);\n      pFVar7->pKey = pvVar8;\n      memcpy(pvVar8,pKey,nKey);\n    }\n    pFVar7->nKey = nKey;\n    pH->count = pH->count + 1;\n    p_Var9 = pH->ht + (pH->htsize - 1U & uVar3);\n    pFVar1 = p_Var9->chain;\n    if (pFVar1 == (Fts3HashElem *)0x0) {\n      pFVar1 = pH->first;\n      pFVar7->next = pFVar1;\n      if (pFVar1 != (Fts3HashElem *)0x0) {\n        pFVar1->prev = pFVar7;\n      }\n      pFVar7->prev = (Fts3HashElem *)0x0;\n      pH->first = pFVar7;\n    }\n    else {\n      pFVar7->next = pFVar1;\n      pFVar2 = pFVar1->prev;\n      pFVar7->prev = pFVar2;\n      if (pFVar2 == (Fts3HashElem *)0x0) {\n        pH->first = pFVar7;\n      }\n      else {\n        pFVar2->next = pFVar7;\n      }\n      pFVar1->prev = pFVar7;\n    }\n    p_Var9->count = p_Var9->count + 1;\n    p_Var9->chain = pFVar7;\n    pFVar7->data = data;\n    return (void *)0x0;\n  }\nLAB_0011e007:\n  pH->count = 0;\n  return data;\n}" { (declaration "Fts3HashElem *pFVar1;" type_identifier (pointer_declarator "*pFVar1" * identifier) ;) (declaration "Fts3HashElem *pFVar2;" type_identifier (pointer_declarator "*pFVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "Fts3HashElem *pFVar7;" type_identifier (pointer_declarator "*pFVar7" * identifier) ;) (declaration "void *pvVar8;" primitive_type (pointer_declarator "*pvVar8" * identifier) ;) (declaration "_fts3ht *p_Var9;" type_identifier (pointer_declarator "*p_Var9" * identifier) ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "u64 in_stack_ffffffc4;" type_identifier identifier ;) (declaration "code *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (expression_statement "pcVar4 = fts3StrHash;" (assignment_expression "pcVar4 = fts3StrHash" identifier = identifier) ;) (if_statement "if (pH->keyClass != '\x01') {\n    pcVar4 = fts3BinHash;\n  }" if (parenthesized_expression "(pH->keyClass != '\x01')" ( (binary_expression "pH->keyClass != '\x01'" (field_expression "pH->keyClass" identifier -> field_identifier) != (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n    pcVar4 = fts3BinHash;\n  }" { (expression_statement "pcVar4 = fts3BinHash;" (assignment_expression "pcVar4 = fts3BinHash" identifier = identifier) ;) })) (expression_statement "uVar3 = (*pcVar4)(pKey,nKey);" (assignment_expression "uVar3 = (*pcVar4)(pKey,nKey)" identifier = (call_expression "(*pcVar4)(pKey,nKey)" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "(pKey,nKey)" ( identifier , identifier )))) ;) (expression_statement "uVar5 = pH->htsize - 1U & uVar3;" (assignment_expression "uVar5 = pH->htsize - 1U & uVar3" identifier = (binary_expression "pH->htsize - 1U & uVar3" (binary_expression "pH->htsize - 1U" (field_expression "pH->htsize" identifier -> field_identifier) - number_literal) & identifier)) ;) (if_statement "if (pH->ht != (_fts3ht *)0x0) {\n    p_Var9 = pH->ht + uVar5;\n    iVar10 = p_Var9->count;\n    pcVar4 = fts3StrCompare;\n    if (pH->keyClass != '\x01') {\n      pcVar4 = fts3BinCompare;\n    }\n    pFVar7 = p_Var9->chain;\n    if ((iVar10 != 0) && (pFVar7 != (Fts3HashElem *)0x0)) {\n      do {\n        iVar10 = iVar10 + -1;\n        iVar6 = (*pcVar4)(pFVar7->pKey,pFVar7->nKey,pKey,nKey);\n        if (iVar6 == 0) {\n          pvVar8 = pFVar7->data;\n          if (data != (void *)0x0) {\n            pFVar7->data = data;\n            return pvVar8;\n          }\n          if (pFVar7->prev == (Fts3HashElem *)0x0) {\n            pH->first = pFVar7->next;\n          }\n          else {\n            pFVar7->prev->next = pFVar7->next;\n          }\n          if (pFVar7->next != (Fts3HashElem *)0x0) {\n            pFVar7->next->prev = pFVar7->prev;\n          }\n          p_Var9 = pH->ht + uVar5;\n          if (p_Var9->chain == pFVar7) {\n            p_Var9->chain = pFVar7->next;\n          }\n          iVar10 = p_Var9->count + -1;\n          p_Var9->count = iVar10;\n          if (iVar10 < 1) {\n            p_Var9->chain = (Fts3HashElem *)0x0;\n          }\n          if ((pH->copyKey != '\0') && (pFVar7->pKey != (void *)0x0)) {\n            sqlite3_free(pFVar7->pKey);\n          }\n          sqlite3_free(pFVar7);\n          iVar10 = pH->count + -1;\n          pH->count = iVar10;\n          if (0 < iVar10) {\n            return pvVar8;\n          }\n          sqlite3Fts3HashClear(pH);\n          return pvVar8;\n        }\n        pFVar7 = pFVar7->next;\n      } while (iVar10 != 0 && pFVar7 != (Fts3HashElem *)0x0);\n    }\n  }" if (parenthesized_expression "(pH->ht != (_fts3ht *)0x0)" ( (binary_expression "pH->ht != (_fts3ht *)0x0" (field_expression "pH->ht" identifier -> field_identifier) != (cast_expression "(_fts3ht *)0x0" ( (type_descriptor "_fts3ht *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    p_Var9 = pH->ht + uVar5;\n    iVar10 = p_Var9->count;\n    pcVar4 = fts3StrCompare;\n    if (pH->keyClass != '\x01') {\n      pcVar4 = fts3BinCompare;\n    }\n    pFVar7 = p_Var9->chain;\n    if ((iVar10 != 0) && (pFVar7 != (Fts3HashElem *)0x0)) {\n      do {\n        iVar10 = iVar10 + -1;\n        iVar6 = (*pcVar4)(pFVar7->pKey,pFVar7->nKey,pKey,nKey);\n        if (iVar6 == 0) {\n          pvVar8 = pFVar7->data;\n          if (data != (void *)0x0) {\n            pFVar7->data = data;\n            return pvVar8;\n          }\n          if (pFVar7->prev == (Fts3HashElem *)0x0) {\n            pH->first = pFVar7->next;\n          }\n          else {\n            pFVar7->prev->next = pFVar7->next;\n          }\n          if (pFVar7->next != (Fts3HashElem *)0x0) {\n            pFVar7->next->prev = pFVar7->prev;\n          }\n          p_Var9 = pH->ht + uVar5;\n          if (p_Var9->chain == pFVar7) {\n            p_Var9->chain = pFVar7->next;\n          }\n          iVar10 = p_Var9->count + -1;\n          p_Var9->count = iVar10;\n          if (iVar10 < 1) {\n            p_Var9->chain = (Fts3HashElem *)0x0;\n          }\n          if ((pH->copyKey != '\0') && (pFVar7->pKey != (void *)0x0)) {\n            sqlite3_free(pFVar7->pKey);\n          }\n          sqlite3_free(pFVar7);\n          iVar10 = pH->count + -1;\n          pH->count = iVar10;\n          if (0 < iVar10) {\n            return pvVar8;\n          }\n          sqlite3Fts3HashClear(pH);\n          return pvVar8;\n        }\n        pFVar7 = pFVar7->next;\n      } while (iVar10 != 0 && pFVar7 != (Fts3HashElem *)0x0);\n    }\n  }" { (expression_statement "p_Var9 = pH->ht + uVar5;" (assignment_expression "p_Var9 = pH->ht + uVar5" identifier = (binary_expression "pH->ht + uVar5" (field_expression "pH->ht" identifier -> field_identifier) + identifier)) ;) (expression_statement "iVar10 = p_Var9->count;" (assignment_expression "iVar10 = p_Var9->count" identifier = (field_expression "p_Var9->count" identifier -> field_identifier)) ;) (expression_statement "pcVar4 = fts3StrCompare;" (assignment_expression "pcVar4 = fts3StrCompare" identifier = identifier) ;) (if_statement "if (pH->keyClass != '\x01') {\n      pcVar4 = fts3BinCompare;\n    }" if (parenthesized_expression "(pH->keyClass != '\x01')" ( (binary_expression "pH->keyClass != '\x01'" (field_expression "pH->keyClass" identifier -> field_identifier) != (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar4 = fts3BinCompare;\n    }" { (expression_statement "pcVar4 = fts3BinCompare;" (assignment_expression "pcVar4 = fts3BinCompare" identifier = identifier) ;) })) (expression_statement "pFVar7 = p_Var9->chain;" (assignment_expression "pFVar7 = p_Var9->chain" identifier = (field_expression "p_Var9->chain" identifier -> field_identifier)) ;) (if_statement "if ((iVar10 != 0) && (pFVar7 != (Fts3HashElem *)0x0)) {\n      do {\n        iVar10 = iVar10 + -1;\n        iVar6 = (*pcVar4)(pFVar7->pKey,pFVar7->nKey,pKey,nKey);\n        if (iVar6 == 0) {\n          pvVar8 = pFVar7->data;\n          if (data != (void *)0x0) {\n            pFVar7->data = data;\n            return pvVar8;\n          }\n          if (pFVar7->prev == (Fts3HashElem *)0x0) {\n            pH->first = pFVar7->next;\n          }\n          else {\n            pFVar7->prev->next = pFVar7->next;\n          }\n          if (pFVar7->next != (Fts3HashElem *)0x0) {\n            pFVar7->next->prev = pFVar7->prev;\n          }\n          p_Var9 = pH->ht + uVar5;\n          if (p_Var9->chain == pFVar7) {\n            p_Var9->chain = pFVar7->next;\n          }\n          iVar10 = p_Var9->count + -1;\n          p_Var9->count = iVar10;\n          if (iVar10 < 1) {\n            p_Var9->chain = (Fts3HashElem *)0x0;\n          }\n          if ((pH->copyKey != '\0') && (pFVar7->pKey != (void *)0x0)) {\n            sqlite3_free(pFVar7->pKey);\n          }\n          sqlite3_free(pFVar7);\n          iVar10 = pH->count + -1;\n          pH->count = iVar10;\n          if (0 < iVar10) {\n            return pvVar8;\n          }\n          sqlite3Fts3HashClear(pH);\n          return pvVar8;\n        }\n        pFVar7 = pFVar7->next;\n      } while (iVar10 != 0 && pFVar7 != (Fts3HashElem *)0x0);\n    }" if (parenthesized_expression "((iVar10 != 0) && (pFVar7 != (Fts3HashElem *)0x0))" ( (binary_expression "(iVar10 != 0) && (pFVar7 != (Fts3HashElem *)0x0)" (parenthesized_expression "(iVar10 != 0)" ( (binary_expression "iVar10 != 0" identifier != number_literal) )) && (parenthesized_expression "(pFVar7 != (Fts3HashElem *)0x0)" ( (binary_expression "pFVar7 != (Fts3HashElem *)0x0" identifier != (cast_expression "(Fts3HashElem *)0x0" ( (type_descriptor "Fts3HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      do {\n        iVar10 = iVar10 + -1;\n        iVar6 = (*pcVar4)(pFVar7->pKey,pFVar7->nKey,pKey,nKey);\n        if (iVar6 == 0) {\n          pvVar8 = pFVar7->data;\n          if (data != (void *)0x0) {\n            pFVar7->data = data;\n            return pvVar8;\n          }\n          if (pFVar7->prev == (Fts3HashElem *)0x0) {\n            pH->first = pFVar7->next;\n          }\n          else {\n            pFVar7->prev->next = pFVar7->next;\n          }\n          if (pFVar7->next != (Fts3HashElem *)0x0) {\n            pFVar7->next->prev = pFVar7->prev;\n          }\n          p_Var9 = pH->ht + uVar5;\n          if (p_Var9->chain == pFVar7) {\n            p_Var9->chain = pFVar7->next;\n          }\n          iVar10 = p_Var9->count + -1;\n          p_Var9->count = iVar10;\n          if (iVar10 < 1) {\n            p_Var9->chain = (Fts3HashElem *)0x0;\n          }\n          if ((pH->copyKey != '\0') && (pFVar7->pKey != (void *)0x0)) {\n            sqlite3_free(pFVar7->pKey);\n          }\n          sqlite3_free(pFVar7);\n          iVar10 = pH->count + -1;\n          pH->count = iVar10;\n          if (0 < iVar10) {\n            return pvVar8;\n          }\n          sqlite3Fts3HashClear(pH);\n          return pvVar8;\n        }\n        pFVar7 = pFVar7->next;\n      } while (iVar10 != 0 && pFVar7 != (Fts3HashElem *)0x0);\n    }" { (do_statement "do {\n        iVar10 = iVar10 + -1;\n        iVar6 = (*pcVar4)(pFVar7->pKey,pFVar7->nKey,pKey,nKey);\n        if (iVar6 == 0) {\n          pvVar8 = pFVar7->data;\n          if (data != (void *)0x0) {\n            pFVar7->data = data;\n            return pvVar8;\n          }\n          if (pFVar7->prev == (Fts3HashElem *)0x0) {\n            pH->first = pFVar7->next;\n          }\n          else {\n            pFVar7->prev->next = pFVar7->next;\n          }\n          if (pFVar7->next != (Fts3HashElem *)0x0) {\n            pFVar7->next->prev = pFVar7->prev;\n          }\n          p_Var9 = pH->ht + uVar5;\n          if (p_Var9->chain == pFVar7) {\n            p_Var9->chain = pFVar7->next;\n          }\n          iVar10 = p_Var9->count + -1;\n          p_Var9->count = iVar10;\n          if (iVar10 < 1) {\n            p_Var9->chain = (Fts3HashElem *)0x0;\n          }\n          if ((pH->copyKey != '\0') && (pFVar7->pKey != (void *)0x0)) {\n            sqlite3_free(pFVar7->pKey);\n          }\n          sqlite3_free(pFVar7);\n          iVar10 = pH->count + -1;\n          pH->count = iVar10;\n          if (0 < iVar10) {\n            return pvVar8;\n          }\n          sqlite3Fts3HashClear(pH);\n          return pvVar8;\n        }\n        pFVar7 = pFVar7->next;\n      } while (iVar10 != 0 && pFVar7 != (Fts3HashElem *)0x0);" do (compound_statement "{\n        iVar10 = iVar10 + -1;\n        iVar6 = (*pcVar4)(pFVar7->pKey,pFVar7->nKey,pKey,nKey);\n        if (iVar6 == 0) {\n          pvVar8 = pFVar7->data;\n          if (data != (void *)0x0) {\n            pFVar7->data = data;\n            return pvVar8;\n          }\n          if (pFVar7->prev == (Fts3HashElem *)0x0) {\n            pH->first = pFVar7->next;\n          }\n          else {\n            pFVar7->prev->next = pFVar7->next;\n          }\n          if (pFVar7->next != (Fts3HashElem *)0x0) {\n            pFVar7->next->prev = pFVar7->prev;\n          }\n          p_Var9 = pH->ht + uVar5;\n          if (p_Var9->chain == pFVar7) {\n            p_Var9->chain = pFVar7->next;\n          }\n          iVar10 = p_Var9->count + -1;\n          p_Var9->count = iVar10;\n          if (iVar10 < 1) {\n            p_Var9->chain = (Fts3HashElem *)0x0;\n          }\n          if ((pH->copyKey != '\0') && (pFVar7->pKey != (void *)0x0)) {\n            sqlite3_free(pFVar7->pKey);\n          }\n          sqlite3_free(pFVar7);\n          iVar10 = pH->count + -1;\n          pH->count = iVar10;\n          if (0 < iVar10) {\n            return pvVar8;\n          }\n          sqlite3Fts3HashClear(pH);\n          return pvVar8;\n        }\n        pFVar7 = pFVar7->next;\n      }" { (expression_statement "iVar10 = iVar10 + -1;" (assignment_expression "iVar10 = iVar10 + -1" identifier = (binary_expression "iVar10 + -1" identifier + number_literal)) ;) (expression_statement "iVar6 = (*pcVar4)(pFVar7->pKey,pFVar7->nKey,pKey,nKey);" (assignment_expression "iVar6 = (*pcVar4)(pFVar7->pKey,pFVar7->nKey,pKey,nKey)" identifier = (call_expression "(*pcVar4)(pFVar7->pKey,pFVar7->nKey,pKey,nKey)" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "(pFVar7->pKey,pFVar7->nKey,pKey,nKey)" ( (field_expression "pFVar7->pKey" identifier -> field_identifier) , (field_expression "pFVar7->nKey" identifier -> field_identifier) , identifier , identifier )))) ;) (if_statement "if (iVar6 == 0) {\n          pvVar8 = pFVar7->data;\n          if (data != (void *)0x0) {\n            pFVar7->data = data;\n            return pvVar8;\n          }\n          if (pFVar7->prev == (Fts3HashElem *)0x0) {\n            pH->first = pFVar7->next;\n          }\n          else {\n            pFVar7->prev->next = pFVar7->next;\n          }\n          if (pFVar7->next != (Fts3HashElem *)0x0) {\n            pFVar7->next->prev = pFVar7->prev;\n          }\n          p_Var9 = pH->ht + uVar5;\n          if (p_Var9->chain == pFVar7) {\n            p_Var9->chain = pFVar7->next;\n          }\n          iVar10 = p_Var9->count + -1;\n          p_Var9->count = iVar10;\n          if (iVar10 < 1) {\n            p_Var9->chain = (Fts3HashElem *)0x0;\n          }\n          if ((pH->copyKey != '\0') && (pFVar7->pKey != (void *)0x0)) {\n            sqlite3_free(pFVar7->pKey);\n          }\n          sqlite3_free(pFVar7);\n          iVar10 = pH->count + -1;\n          pH->count = iVar10;\n          if (0 < iVar10) {\n            return pvVar8;\n          }\n          sqlite3Fts3HashClear(pH);\n          return pvVar8;\n        }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n          pvVar8 = pFVar7->data;\n          if (data != (void *)0x0) {\n            pFVar7->data = data;\n            return pvVar8;\n          }\n          if (pFVar7->prev == (Fts3HashElem *)0x0) {\n            pH->first = pFVar7->next;\n          }\n          else {\n            pFVar7->prev->next = pFVar7->next;\n          }\n          if (pFVar7->next != (Fts3HashElem *)0x0) {\n            pFVar7->next->prev = pFVar7->prev;\n          }\n          p_Var9 = pH->ht + uVar5;\n          if (p_Var9->chain == pFVar7) {\n            p_Var9->chain = pFVar7->next;\n          }\n          iVar10 = p_Var9->count + -1;\n          p_Var9->count = iVar10;\n          if (iVar10 < 1) {\n            p_Var9->chain = (Fts3HashElem *)0x0;\n          }\n          if ((pH->copyKey != '\0') && (pFVar7->pKey != (void *)0x0)) {\n            sqlite3_free(pFVar7->pKey);\n          }\n          sqlite3_free(pFVar7);\n          iVar10 = pH->count + -1;\n          pH->count = iVar10;\n          if (0 < iVar10) {\n            return pvVar8;\n          }\n          sqlite3Fts3HashClear(pH);\n          return pvVar8;\n        }" { (expression_statement "pvVar8 = pFVar7->data;" (assignment_expression "pvVar8 = pFVar7->data" identifier = (field_expression "pFVar7->data" identifier -> field_identifier)) ;) (if_statement "if (data != (void *)0x0) {\n            pFVar7->data = data;\n            return pvVar8;\n          }" if (parenthesized_expression "(data != (void *)0x0)" ( (binary_expression "data != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            pFVar7->data = data;\n            return pvVar8;\n          }" { (expression_statement "pFVar7->data = data;" (assignment_expression "pFVar7->data = data" (field_expression "pFVar7->data" identifier -> field_identifier) = identifier) ;) (return_statement "return pvVar8;" return identifier ;) })) (if_statement "if (pFVar7->prev == (Fts3HashElem *)0x0) {\n            pH->first = pFVar7->next;\n          }\n          else {\n            pFVar7->prev->next = pFVar7->next;\n          }" if (parenthesized_expression "(pFVar7->prev == (Fts3HashElem *)0x0)" ( (binary_expression "pFVar7->prev == (Fts3HashElem *)0x0" (field_expression "pFVar7->prev" identifier -> field_identifier) == (cast_expression "(Fts3HashElem *)0x0" ( (type_descriptor "Fts3HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            pH->first = pFVar7->next;\n          }" { (expression_statement "pH->first = pFVar7->next;" (assignment_expression "pH->first = pFVar7->next" (field_expression "pH->first" identifier -> field_identifier) = (field_expression "pFVar7->next" identifier -> field_identifier)) ;) }) (else_clause "else {\n            pFVar7->prev->next = pFVar7->next;\n          }" else (compound_statement "{\n            pFVar7->prev->next = pFVar7->next;\n          }" { (expression_statement "pFVar7->prev->next = pFVar7->next;" (assignment_expression "pFVar7->prev->next = pFVar7->next" (field_expression "pFVar7->prev->next" (field_expression "pFVar7->prev" identifier -> field_identifier) -> field_identifier) = (field_expression "pFVar7->next" identifier -> field_identifier)) ;) }))) (if_statement "if (pFVar7->next != (Fts3HashElem *)0x0) {\n            pFVar7->next->prev = pFVar7->prev;\n          }" if (parenthesized_expression "(pFVar7->next != (Fts3HashElem *)0x0)" ( (binary_expression "pFVar7->next != (Fts3HashElem *)0x0" (field_expression "pFVar7->next" identifier -> field_identifier) != (cast_expression "(Fts3HashElem *)0x0" ( (type_descriptor "Fts3HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            pFVar7->next->prev = pFVar7->prev;\n          }" { (expression_statement "pFVar7->next->prev = pFVar7->prev;" (assignment_expression "pFVar7->next->prev = pFVar7->prev" (field_expression "pFVar7->next->prev" (field_expression "pFVar7->next" identifier -> field_identifier) -> field_identifier) = (field_expression "pFVar7->prev" identifier -> field_identifier)) ;) })) (expression_statement "p_Var9 = pH->ht + uVar5;" (assignment_expression "p_Var9 = pH->ht + uVar5" identifier = (binary_expression "pH->ht + uVar5" (field_expression "pH->ht" identifier -> field_identifier) + identifier)) ;) (if_statement "if (p_Var9->chain == pFVar7) {\n            p_Var9->chain = pFVar7->next;\n          }" if (parenthesized_expression "(p_Var9->chain == pFVar7)" ( (binary_expression "p_Var9->chain == pFVar7" (field_expression "p_Var9->chain" identifier -> field_identifier) == identifier) )) (compound_statement "{\n            p_Var9->chain = pFVar7->next;\n          }" { (expression_statement "p_Var9->chain = pFVar7->next;" (assignment_expression "p_Var9->chain = pFVar7->next" (field_expression "p_Var9->chain" identifier -> field_identifier) = (field_expression "pFVar7->next" identifier -> field_identifier)) ;) })) (expression_statement "iVar10 = p_Var9->count + -1;" (assignment_expression "iVar10 = p_Var9->count + -1" identifier = (binary_expression "p_Var9->count + -1" (field_expression "p_Var9->count" identifier -> field_identifier) + number_literal)) ;) (expression_statement "p_Var9->count = iVar10;" (assignment_expression "p_Var9->count = iVar10" (field_expression "p_Var9->count" identifier -> field_identifier) = identifier) ;) (if_statement "if (iVar10 < 1) {\n            p_Var9->chain = (Fts3HashElem *)0x0;\n          }" if (parenthesized_expression "(iVar10 < 1)" ( (binary_expression "iVar10 < 1" identifier < number_literal) )) (compound_statement "{\n            p_Var9->chain = (Fts3HashElem *)0x0;\n          }" { (expression_statement "p_Var9->chain = (Fts3HashElem *)0x0;" (assignment_expression "p_Var9->chain = (Fts3HashElem *)0x0" (field_expression "p_Var9->chain" identifier -> field_identifier) = (cast_expression "(Fts3HashElem *)0x0" ( (type_descriptor "Fts3HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (if_statement "if ((pH->copyKey != '\0') && (pFVar7->pKey != (void *)0x0)) {\n            sqlite3_free(pFVar7->pKey);\n          }" if (parenthesized_expression "((pH->copyKey != '\0') && (pFVar7->pKey != (void *)0x0))" ( (binary_expression "(pH->copyKey != '\0') && (pFVar7->pKey != (void *)0x0)" (parenthesized_expression "(pH->copyKey != '\0')" ( (binary_expression "pH->copyKey != '\0'" (field_expression "pH->copyKey" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(pFVar7->pKey != (void *)0x0)" ( (binary_expression "pFVar7->pKey != (void *)0x0" (field_expression "pFVar7->pKey" identifier -> field_identifier) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n            sqlite3_free(pFVar7->pKey);\n          }" { (expression_statement "sqlite3_free(pFVar7->pKey);" (call_expression "sqlite3_free(pFVar7->pKey)" identifier (argument_list "(pFVar7->pKey)" ( (field_expression "pFVar7->pKey" identifier -> field_identifier) ))) ;) })) (expression_statement "sqlite3_free(pFVar7);" (call_expression "sqlite3_free(pFVar7)" identifier (argument_list "(pFVar7)" ( identifier ))) ;) (expression_statement "iVar10 = pH->count + -1;" (assignment_expression "iVar10 = pH->count + -1" identifier = (binary_expression "pH->count + -1" (field_expression "pH->count" identifier -> field_identifier) + number_literal)) ;) (expression_statement "pH->count = iVar10;" (assignment_expression "pH->count = iVar10" (field_expression "pH->count" identifier -> field_identifier) = identifier) ;) (if_statement "if (0 < iVar10) {\n            return pvVar8;\n          }" if (parenthesized_expression "(0 < iVar10)" ( (binary_expression "0 < iVar10" number_literal < identifier) )) (compound_statement "{\n            return pvVar8;\n          }" { (return_statement "return pvVar8;" return identifier ;) })) (expression_statement "sqlite3Fts3HashClear(pH);" (call_expression "sqlite3Fts3HashClear(pH)" identifier (argument_list "(pH)" ( identifier ))) ;) (return_statement "return pvVar8;" return identifier ;) })) (expression_statement "pFVar7 = pFVar7->next;" (assignment_expression "pFVar7 = pFVar7->next" identifier = (field_expression "pFVar7->next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(iVar10 != 0 && pFVar7 != (Fts3HashElem *)0x0)" ( (binary_expression "iVar10 != 0 && pFVar7 != (Fts3HashElem *)0x0" (binary_expression "iVar10 != 0" identifier != number_literal) && (binary_expression "pFVar7 != (Fts3HashElem *)0x0" identifier != (cast_expression "(Fts3HashElem *)0x0" ( (type_descriptor "Fts3HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) )) ;) })) })) (if_statement "if (data == (void *)0x0) {\n    return (void *)0x0;\n  }" if (parenthesized_expression "(data == (void *)0x0)" ( (binary_expression "data == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return (void *)0x0;\n  }" { (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar10 = pH->htsize;" (assignment_expression "iVar10 = pH->htsize" identifier = (field_expression "pH->htsize" identifier -> field_identifier)) ;) (if_statement "if (iVar10 == 0) {\n    iVar10 = fts3Rehash(pH,8);\n    if (iVar10 != 0) goto LAB_0011e007;\n    iVar10 = pH->htsize;\n  }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar10 = fts3Rehash(pH,8);\n    if (iVar10 != 0) goto LAB_0011e007;\n    iVar10 = pH->htsize;\n  }" { (expression_statement "iVar10 = fts3Rehash(pH,8);" (assignment_expression "iVar10 = fts3Rehash(pH,8)" identifier = (call_expression "fts3Rehash(pH,8)" identifier (argument_list "(pH,8)" ( identifier , number_literal )))) ;) (if_statement "if (iVar10 != 0) goto LAB_0011e007;" if (parenthesized_expression "(iVar10 != 0)" ( (binary_expression "iVar10 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0011e007;" goto statement_identifier ;)) (expression_statement "iVar10 = pH->htsize;" (assignment_expression "iVar10 = pH->htsize" identifier = (field_expression "pH->htsize" identifier -> field_identifier)) ;) })) (if_statement "if ((pH->count < iVar10) || (iVar10 = fts3Rehash(pH,iVar10 * 2), iVar10 == 0)) {\n    iVar10 = sqlite3_initialize();\n    if ((iVar10 != 0) ||\n       (pFVar7 = (Fts3HashElem *)sqlite3Malloc(in_stack_ffffffc4), pFVar7 == (Fts3HashElem *)0x0)) {\n      return data;\n    }\n    pFVar7->next = (Fts3HashElem *)0x0;\n    pFVar7->prev = (Fts3HashElem *)0x0;\n    pFVar7->data = (void *)0x0;\n    pFVar7->pKey = (void *)0x0;\n    pFVar7->nKey = 0;\n    if ((pH->copyKey == '\0') || (pKey == (void *)0x0)) {\n      pFVar7->pKey = pKey;\n    }\n    else {\n      iVar10 = sqlite3_initialize();\n      if ((iVar10 != 0) || (pvVar8 = sqlite3Malloc(in_stack_ffffffc4), pvVar8 == (void *)0x0)) {\n        pFVar7->pKey = (void *)0x0;\n        sqlite3_free(pFVar7);\n        return data;\n      }\n      memset(pvVar8,0,nKey);\n      pFVar7->pKey = pvVar8;\n      memcpy(pvVar8,pKey,nKey);\n    }\n    pFVar7->nKey = nKey;\n    pH->count = pH->count + 1;\n    p_Var9 = pH->ht + (pH->htsize - 1U & uVar3);\n    pFVar1 = p_Var9->chain;\n    if (pFVar1 == (Fts3HashElem *)0x0) {\n      pFVar1 = pH->first;\n      pFVar7->next = pFVar1;\n      if (pFVar1 != (Fts3HashElem *)0x0) {\n        pFVar1->prev = pFVar7;\n      }\n      pFVar7->prev = (Fts3HashElem *)0x0;\n      pH->first = pFVar7;\n    }\n    else {\n      pFVar7->next = pFVar1;\n      pFVar2 = pFVar1->prev;\n      pFVar7->prev = pFVar2;\n      if (pFVar2 == (Fts3HashElem *)0x0) {\n        pH->first = pFVar7;\n      }\n      else {\n        pFVar2->next = pFVar7;\n      }\n      pFVar1->prev = pFVar7;\n    }\n    p_Var9->count = p_Var9->count + 1;\n    p_Var9->chain = pFVar7;\n    pFVar7->data = data;\n    return (void *)0x0;\n  }" if (parenthesized_expression "((pH->count < iVar10) || (iVar10 = fts3Rehash(pH,iVar10 * 2), iVar10 == 0))" ( (binary_expression "(pH->count < iVar10) || (iVar10 = fts3Rehash(pH,iVar10 * 2), iVar10 == 0)" (parenthesized_expression "(pH->count < iVar10)" ( (binary_expression "pH->count < iVar10" (field_expression "pH->count" identifier -> field_identifier) < identifier) )) || (parenthesized_expression "(iVar10 = fts3Rehash(pH,iVar10 * 2), iVar10 == 0)" ( (comma_expression "iVar10 = fts3Rehash(pH,iVar10 * 2), iVar10 == 0" (assignment_expression "iVar10 = fts3Rehash(pH,iVar10 * 2)" identifier = (call_expression "fts3Rehash(pH,iVar10 * 2)" identifier (argument_list "(pH,iVar10 * 2)" ( identifier , (binary_expression "iVar10 * 2" identifier * number_literal) )))) , (binary_expression "iVar10 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    iVar10 = sqlite3_initialize();\n    if ((iVar10 != 0) ||\n       (pFVar7 = (Fts3HashElem *)sqlite3Malloc(in_stack_ffffffc4), pFVar7 == (Fts3HashElem *)0x0)) {\n      return data;\n    }\n    pFVar7->next = (Fts3HashElem *)0x0;\n    pFVar7->prev = (Fts3HashElem *)0x0;\n    pFVar7->data = (void *)0x0;\n    pFVar7->pKey = (void *)0x0;\n    pFVar7->nKey = 0;\n    if ((pH->copyKey == '\0') || (pKey == (void *)0x0)) {\n      pFVar7->pKey = pKey;\n    }\n    else {\n      iVar10 = sqlite3_initialize();\n      if ((iVar10 != 0) || (pvVar8 = sqlite3Malloc(in_stack_ffffffc4), pvVar8 == (void *)0x0)) {\n        pFVar7->pKey = (void *)0x0;\n        sqlite3_free(pFVar7);\n        return data;\n      }\n      memset(pvVar8,0,nKey);\n      pFVar7->pKey = pvVar8;\n      memcpy(pvVar8,pKey,nKey);\n    }\n    pFVar7->nKey = nKey;\n    pH->count = pH->count + 1;\n    p_Var9 = pH->ht + (pH->htsize - 1U & uVar3);\n    pFVar1 = p_Var9->chain;\n    if (pFVar1 == (Fts3HashElem *)0x0) {\n      pFVar1 = pH->first;\n      pFVar7->next = pFVar1;\n      if (pFVar1 != (Fts3HashElem *)0x0) {\n        pFVar1->prev = pFVar7;\n      }\n      pFVar7->prev = (Fts3HashElem *)0x0;\n      pH->first = pFVar7;\n    }\n    else {\n      pFVar7->next = pFVar1;\n      pFVar2 = pFVar1->prev;\n      pFVar7->prev = pFVar2;\n      if (pFVar2 == (Fts3HashElem *)0x0) {\n        pH->first = pFVar7;\n      }\n      else {\n        pFVar2->next = pFVar7;\n      }\n      pFVar1->prev = pFVar7;\n    }\n    p_Var9->count = p_Var9->count + 1;\n    p_Var9->chain = pFVar7;\n    pFVar7->data = data;\n    return (void *)0x0;\n  }" { (expression_statement "iVar10 = sqlite3_initialize();" (assignment_expression "iVar10 = sqlite3_initialize()" identifier = (call_expression "sqlite3_initialize()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar10 != 0) ||\n       (pFVar7 = (Fts3HashElem *)sqlite3Malloc(in_stack_ffffffc4), pFVar7 == (Fts3HashElem *)0x0)) {\n      return data;\n    }" if (parenthesized_expression "((iVar10 != 0) ||\n       (pFVar7 = (Fts3HashElem *)sqlite3Malloc(in_stack_ffffffc4), pFVar7 == (Fts3HashElem *)0x0))" ( (binary_expression "(iVar10 != 0) ||\n       (pFVar7 = (Fts3HashElem *)sqlite3Malloc(in_stack_ffffffc4), pFVar7 == (Fts3HashElem *)0x0)" (parenthesized_expression "(iVar10 != 0)" ( (binary_expression "iVar10 != 0" identifier != number_literal) )) || (parenthesized_expression "(pFVar7 = (Fts3HashElem *)sqlite3Malloc(in_stack_ffffffc4), pFVar7 == (Fts3HashElem *)0x0)" ( (comma_expression "pFVar7 = (Fts3HashElem *)sqlite3Malloc(in_stack_ffffffc4), pFVar7 == (Fts3HashElem *)0x0" (assignment_expression "pFVar7 = (Fts3HashElem *)sqlite3Malloc(in_stack_ffffffc4)" identifier = (cast_expression "(Fts3HashElem *)sqlite3Malloc(in_stack_ffffffc4)" ( (type_descriptor "Fts3HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3Malloc(in_stack_ffffffc4)" identifier (argument_list "(in_stack_ffffffc4)" ( identifier ))))) , (binary_expression "pFVar7 == (Fts3HashElem *)0x0" identifier == (cast_expression "(Fts3HashElem *)0x0" ( (type_descriptor "Fts3HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n      return data;\n    }" { (return_statement "return data;" return identifier ;) })) (expression_statement "pFVar7->next = (Fts3HashElem *)0x0;" (assignment_expression "pFVar7->next = (Fts3HashElem *)0x0" (field_expression "pFVar7->next" identifier -> field_identifier) = (cast_expression "(Fts3HashElem *)0x0" ( (type_descriptor "Fts3HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pFVar7->prev = (Fts3HashElem *)0x0;" (assignment_expression "pFVar7->prev = (Fts3HashElem *)0x0" (field_expression "pFVar7->prev" identifier -> field_identifier) = (cast_expression "(Fts3HashElem *)0x0" ( (type_descriptor "Fts3HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pFVar7->data = (void *)0x0;" (assignment_expression "pFVar7->data = (void *)0x0" (field_expression "pFVar7->data" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pFVar7->pKey = (void *)0x0;" (assignment_expression "pFVar7->pKey = (void *)0x0" (field_expression "pFVar7->pKey" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pFVar7->nKey = 0;" (assignment_expression "pFVar7->nKey = 0" (field_expression "pFVar7->nKey" identifier -> field_identifier) = number_literal) ;) (if_statement "if ((pH->copyKey == '\0') || (pKey == (void *)0x0)) {\n      pFVar7->pKey = pKey;\n    }\n    else {\n      iVar10 = sqlite3_initialize();\n      if ((iVar10 != 0) || (pvVar8 = sqlite3Malloc(in_stack_ffffffc4), pvVar8 == (void *)0x0)) {\n        pFVar7->pKey = (void *)0x0;\n        sqlite3_free(pFVar7);\n        return data;\n      }\n      memset(pvVar8,0,nKey);\n      pFVar7->pKey = pvVar8;\n      memcpy(pvVar8,pKey,nKey);\n    }" if (parenthesized_expression "((pH->copyKey == '\0') || (pKey == (void *)0x0))" ( (binary_expression "(pH->copyKey == '\0') || (pKey == (void *)0x0)" (parenthesized_expression "(pH->copyKey == '\0')" ( (binary_expression "pH->copyKey == '\0'" (field_expression "pH->copyKey" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(pKey == (void *)0x0)" ( (binary_expression "pKey == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      pFVar7->pKey = pKey;\n    }" { (expression_statement "pFVar7->pKey = pKey;" (assignment_expression "pFVar7->pKey = pKey" (field_expression "pFVar7->pKey" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n      iVar10 = sqlite3_initialize();\n      if ((iVar10 != 0) || (pvVar8 = sqlite3Malloc(in_stack_ffffffc4), pvVar8 == (void *)0x0)) {\n        pFVar7->pKey = (void *)0x0;\n        sqlite3_free(pFVar7);\n        return data;\n      }\n      memset(pvVar8,0,nKey);\n      pFVar7->pKey = pvVar8;\n      memcpy(pvVar8,pKey,nKey);\n    }" else (compound_statement "{\n      iVar10 = sqlite3_initialize();\n      if ((iVar10 != 0) || (pvVar8 = sqlite3Malloc(in_stack_ffffffc4), pvVar8 == (void *)0x0)) {\n        pFVar7->pKey = (void *)0x0;\n        sqlite3_free(pFVar7);\n        return data;\n      }\n      memset(pvVar8,0,nKey);\n      pFVar7->pKey = pvVar8;\n      memcpy(pvVar8,pKey,nKey);\n    }" { (expression_statement "iVar10 = sqlite3_initialize();" (assignment_expression "iVar10 = sqlite3_initialize()" identifier = (call_expression "sqlite3_initialize()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar10 != 0) || (pvVar8 = sqlite3Malloc(in_stack_ffffffc4), pvVar8 == (void *)0x0)) {\n        pFVar7->pKey = (void *)0x0;\n        sqlite3_free(pFVar7);\n        return data;\n      }" if (parenthesized_expression "((iVar10 != 0) || (pvVar8 = sqlite3Malloc(in_stack_ffffffc4), pvVar8 == (void *)0x0))" ( (binary_expression "(iVar10 != 0) || (pvVar8 = sqlite3Malloc(in_stack_ffffffc4), pvVar8 == (void *)0x0)" (parenthesized_expression "(iVar10 != 0)" ( (binary_expression "iVar10 != 0" identifier != number_literal) )) || (parenthesized_expression "(pvVar8 = sqlite3Malloc(in_stack_ffffffc4), pvVar8 == (void *)0x0)" ( (comma_expression "pvVar8 = sqlite3Malloc(in_stack_ffffffc4), pvVar8 == (void *)0x0" (assignment_expression "pvVar8 = sqlite3Malloc(in_stack_ffffffc4)" identifier = (call_expression "sqlite3Malloc(in_stack_ffffffc4)" identifier (argument_list "(in_stack_ffffffc4)" ( identifier )))) , (binary_expression "pvVar8 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n        pFVar7->pKey = (void *)0x0;\n        sqlite3_free(pFVar7);\n        return data;\n      }" { (expression_statement "pFVar7->pKey = (void *)0x0;" (assignment_expression "pFVar7->pKey = (void *)0x0" (field_expression "pFVar7->pKey" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sqlite3_free(pFVar7);" (call_expression "sqlite3_free(pFVar7)" identifier (argument_list "(pFVar7)" ( identifier ))) ;) (return_statement "return data;" return identifier ;) })) (expression_statement "memset(pvVar8,0,nKey);" (call_expression "memset(pvVar8,0,nKey)" identifier (argument_list "(pvVar8,0,nKey)" ( identifier , number_literal , identifier ))) ;) (expression_statement "pFVar7->pKey = pvVar8;" (assignment_expression "pFVar7->pKey = pvVar8" (field_expression "pFVar7->pKey" identifier -> field_identifier) = identifier) ;) (expression_statement "memcpy(pvVar8,pKey,nKey);" (call_expression "memcpy(pvVar8,pKey,nKey)" identifier (argument_list "(pvVar8,pKey,nKey)" ( identifier , identifier , identifier ))) ;) }))) (expression_statement "pFVar7->nKey = nKey;" (assignment_expression "pFVar7->nKey = nKey" (field_expression "pFVar7->nKey" identifier -> field_identifier) = identifier) ;) (expression_statement "pH->count = pH->count + 1;" (assignment_expression "pH->count = pH->count + 1" (field_expression "pH->count" identifier -> field_identifier) = (binary_expression "pH->count + 1" (field_expression "pH->count" identifier -> field_identifier) + number_literal)) ;) (expression_statement "p_Var9 = pH->ht + (pH->htsize - 1U & uVar3);" (assignment_expression "p_Var9 = pH->ht + (pH->htsize - 1U & uVar3)" identifier = (binary_expression "pH->ht + (pH->htsize - 1U & uVar3)" (field_expression "pH->ht" identifier -> field_identifier) + (parenthesized_expression "(pH->htsize - 1U & uVar3)" ( (binary_expression "pH->htsize - 1U & uVar3" (binary_expression "pH->htsize - 1U" (field_expression "pH->htsize" identifier -> field_identifier) - number_literal) & identifier) )))) ;) (expression_statement "pFVar1 = p_Var9->chain;" (assignment_expression "pFVar1 = p_Var9->chain" identifier = (field_expression "p_Var9->chain" identifier -> field_identifier)) ;) (if_statement "if (pFVar1 == (Fts3HashElem *)0x0) {\n      pFVar1 = pH->first;\n      pFVar7->next = pFVar1;\n      if (pFVar1 != (Fts3HashElem *)0x0) {\n        pFVar1->prev = pFVar7;\n      }\n      pFVar7->prev = (Fts3HashElem *)0x0;\n      pH->first = pFVar7;\n    }\n    else {\n      pFVar7->next = pFVar1;\n      pFVar2 = pFVar1->prev;\n      pFVar7->prev = pFVar2;\n      if (pFVar2 == (Fts3HashElem *)0x0) {\n        pH->first = pFVar7;\n      }\n      else {\n        pFVar2->next = pFVar7;\n      }\n      pFVar1->prev = pFVar7;\n    }" if (parenthesized_expression "(pFVar1 == (Fts3HashElem *)0x0)" ( (binary_expression "pFVar1 == (Fts3HashElem *)0x0" identifier == (cast_expression "(Fts3HashElem *)0x0" ( (type_descriptor "Fts3HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pFVar1 = pH->first;\n      pFVar7->next = pFVar1;\n      if (pFVar1 != (Fts3HashElem *)0x0) {\n        pFVar1->prev = pFVar7;\n      }\n      pFVar7->prev = (Fts3HashElem *)0x0;\n      pH->first = pFVar7;\n    }" { (expression_statement "pFVar1 = pH->first;" (assignment_expression "pFVar1 = pH->first" identifier = (field_expression "pH->first" identifier -> field_identifier)) ;) (expression_statement "pFVar7->next = pFVar1;" (assignment_expression "pFVar7->next = pFVar1" (field_expression "pFVar7->next" identifier -> field_identifier) = identifier) ;) (if_statement "if (pFVar1 != (Fts3HashElem *)0x0) {\n        pFVar1->prev = pFVar7;\n      }" if (parenthesized_expression "(pFVar1 != (Fts3HashElem *)0x0)" ( (binary_expression "pFVar1 != (Fts3HashElem *)0x0" identifier != (cast_expression "(Fts3HashElem *)0x0" ( (type_descriptor "Fts3HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pFVar1->prev = pFVar7;\n      }" { (expression_statement "pFVar1->prev = pFVar7;" (assignment_expression "pFVar1->prev = pFVar7" (field_expression "pFVar1->prev" identifier -> field_identifier) = identifier) ;) })) (expression_statement "pFVar7->prev = (Fts3HashElem *)0x0;" (assignment_expression "pFVar7->prev = (Fts3HashElem *)0x0" (field_expression "pFVar7->prev" identifier -> field_identifier) = (cast_expression "(Fts3HashElem *)0x0" ( (type_descriptor "Fts3HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pH->first = pFVar7;" (assignment_expression "pH->first = pFVar7" (field_expression "pH->first" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n      pFVar7->next = pFVar1;\n      pFVar2 = pFVar1->prev;\n      pFVar7->prev = pFVar2;\n      if (pFVar2 == (Fts3HashElem *)0x0) {\n        pH->first = pFVar7;\n      }\n      else {\n        pFVar2->next = pFVar7;\n      }\n      pFVar1->prev = pFVar7;\n    }" else (compound_statement "{\n      pFVar7->next = pFVar1;\n      pFVar2 = pFVar1->prev;\n      pFVar7->prev = pFVar2;\n      if (pFVar2 == (Fts3HashElem *)0x0) {\n        pH->first = pFVar7;\n      }\n      else {\n        pFVar2->next = pFVar7;\n      }\n      pFVar1->prev = pFVar7;\n    }" { (expression_statement "pFVar7->next = pFVar1;" (assignment_expression "pFVar7->next = pFVar1" (field_expression "pFVar7->next" identifier -> field_identifier) = identifier) ;) (expression_statement "pFVar2 = pFVar1->prev;" (assignment_expression "pFVar2 = pFVar1->prev" identifier = (field_expression "pFVar1->prev" identifier -> field_identifier)) ;) (expression_statement "pFVar7->prev = pFVar2;" (assignment_expression "pFVar7->prev = pFVar2" (field_expression "pFVar7->prev" identifier -> field_identifier) = identifier) ;) (if_statement "if (pFVar2 == (Fts3HashElem *)0x0) {\n        pH->first = pFVar7;\n      }\n      else {\n        pFVar2->next = pFVar7;\n      }" if (parenthesized_expression "(pFVar2 == (Fts3HashElem *)0x0)" ( (binary_expression "pFVar2 == (Fts3HashElem *)0x0" identifier == (cast_expression "(Fts3HashElem *)0x0" ( (type_descriptor "Fts3HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pH->first = pFVar7;\n      }" { (expression_statement "pH->first = pFVar7;" (assignment_expression "pH->first = pFVar7" (field_expression "pH->first" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n        pFVar2->next = pFVar7;\n      }" else (compound_statement "{\n        pFVar2->next = pFVar7;\n      }" { (expression_statement "pFVar2->next = pFVar7;" (assignment_expression "pFVar2->next = pFVar7" (field_expression "pFVar2->next" identifier -> field_identifier) = identifier) ;) }))) (expression_statement "pFVar1->prev = pFVar7;" (assignment_expression "pFVar1->prev = pFVar7" (field_expression "pFVar1->prev" identifier -> field_identifier) = identifier) ;) }))) (expression_statement "p_Var9->count = p_Var9->count + 1;" (assignment_expression "p_Var9->count = p_Var9->count + 1" (field_expression "p_Var9->count" identifier -> field_identifier) = (binary_expression "p_Var9->count + 1" (field_expression "p_Var9->count" identifier -> field_identifier) + number_literal)) ;) (expression_statement "p_Var9->chain = pFVar7;" (assignment_expression "p_Var9->chain = pFVar7" (field_expression "p_Var9->chain" identifier -> field_identifier) = identifier) ;) (expression_statement "pFVar7->data = data;" (assignment_expression "pFVar7->data = data" (field_expression "pFVar7->data" identifier -> field_identifier) = identifier) ;) (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (labeled_statement "LAB_0011e007:\n  pH->count = 0;" statement_identifier : (expression_statement "pH->count = 0;" (assignment_expression "pH->count = 0" (field_expression "pH->count" identifier -> field_identifier) = number_literal) ;)) (return_statement "return data;" return identifier ;) })))
(translation_unit "int __regparm3 FUN_0011df30(char *param_1,void *param_2,size_t param_3,int param_4)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  int iVar4;\n  int iVar5;\n  void *__s;\n  int *piVar6;\n  int *piVar7;\n  int iVar8;\n  code *pcVar3;\n  \n  pcVar3 = FUN_000423a0;\n  if (*param_1 != '\x01') {\n    pcVar3 = FUN_0003ee50;\n  }\n  uVar2 = (*pcVar3)(param_2,param_3);\n  if (*(int *)(param_1 + 0x10) != 0) {\n    iVar4 = (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8;\n    piVar6 = (int *)(*(int *)(param_1 + 0x10) + iVar4);\n    iVar8 = *piVar6;\n    pcVar3 = FUN_000432e0;\n    if (*param_1 != '\x01') {\n      pcVar3 = FUN_00042ee0;\n    }\n    piVar6 = (int *)piVar6[1];\n    if ((iVar8 != 0) && (piVar6 != (int *)0x0)) {\n      do {\n        iVar8 = iVar8 + -1;\n        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);\n        if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }\n        piVar6 = (int *)*piVar6;\n      } while (iVar8 != 0 && piVar6 != (int *)0x0);\n    }\n  }\n  if (param_4 == 0) {\n    return 0;\n  }\n  iVar8 = *(int *)(param_1 + 0xc);\n  if (iVar8 == 0) {\n    iVar8 = FUN_0011a410();\n    if (iVar8 != 0) goto LAB_0011e007;\n    iVar8 = *(int *)(param_1 + 0xc);\n  }\n  if ((*(int *)(param_1 + 4) < iVar8) || (iVar8 = FUN_0011a410(), iVar8 == 0)) {\n    iVar8 = FUN_00067fc0();\n    if ((iVar8 != 0) || (piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0)) {\n      return param_4;\n    }\n    *piVar6 = 0;\n    piVar6[1] = 0;\n    piVar6[2] = 0;\n    piVar6[3] = 0;\n    piVar6[4] = 0;\n    if ((param_1[1] == '\0') || (param_2 == (void *)0x0)) {\n      piVar6[3] = (int)param_2;\n    }\n    else {\n      iVar8 = FUN_00067fc0();\n      if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }\n      memset(__s,0,param_3);\n      piVar6[3] = (int)__s;\n      memcpy(__s,param_2,param_3);\n    }\n    piVar6[4] = param_3;\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n    piVar7 = (int *)(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8);\n    iVar8 = piVar7[1];\n    if (iVar8 == 0) {\n      iVar8 = *(int *)(param_1 + 8);\n      *piVar6 = iVar8;\n      if (iVar8 != 0) {\n        *(int **)(iVar8 + 4) = piVar6;\n      }\n      piVar6[1] = 0;\n      *(int **)(param_1 + 8) = piVar6;\n    }\n    else {\n      *piVar6 = iVar8;\n      puVar1 = *(undefined4 **)(iVar8 + 4);\n      piVar6[1] = (int)puVar1;\n      if (puVar1 == (undefined4 *)0x0) {\n        *(int **)(param_1 + 8) = piVar6;\n      }\n      else {\n        *puVar1 = piVar6;\n      }\n      *(int **)(iVar8 + 4) = piVar6;\n    }\n    *piVar7 = *piVar7 + 1;\n    piVar7[1] = (int)piVar6;\n    piVar6[2] = param_4;\n    return 0;\n  }\nLAB_0011e007:\n  param_1[4] = '\0';\n  param_1[5] = '\0';\n  param_1[6] = '\0';\n  param_1[7] = '\0';\n  return param_4;\n}\n\n" (function_definition "int __regparm3 FUN_0011df30(char *param_1,void *param_2,size_t param_3,int param_4)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  int iVar4;\n  int iVar5;\n  void *__s;\n  int *piVar6;\n  int *piVar7;\n  int iVar8;\n  code *pcVar3;\n  \n  pcVar3 = FUN_000423a0;\n  if (*param_1 != '\x01') {\n    pcVar3 = FUN_0003ee50;\n  }\n  uVar2 = (*pcVar3)(param_2,param_3);\n  if (*(int *)(param_1 + 0x10) != 0) {\n    iVar4 = (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8;\n    piVar6 = (int *)(*(int *)(param_1 + 0x10) + iVar4);\n    iVar8 = *piVar6;\n    pcVar3 = FUN_000432e0;\n    if (*param_1 != '\x01') {\n      pcVar3 = FUN_00042ee0;\n    }\n    piVar6 = (int *)piVar6[1];\n    if ((iVar8 != 0) && (piVar6 != (int *)0x0)) {\n      do {\n        iVar8 = iVar8 + -1;\n        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);\n        if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }\n        piVar6 = (int *)*piVar6;\n      } while (iVar8 != 0 && piVar6 != (int *)0x0);\n    }\n  }\n  if (param_4 == 0) {\n    return 0;\n  }\n  iVar8 = *(int *)(param_1 + 0xc);\n  if (iVar8 == 0) {\n    iVar8 = FUN_0011a410();\n    if (iVar8 != 0) goto LAB_0011e007;\n    iVar8 = *(int *)(param_1 + 0xc);\n  }\n  if ((*(int *)(param_1 + 4) < iVar8) || (iVar8 = FUN_0011a410(), iVar8 == 0)) {\n    iVar8 = FUN_00067fc0();\n    if ((iVar8 != 0) || (piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0)) {\n      return param_4;\n    }\n    *piVar6 = 0;\n    piVar6[1] = 0;\n    piVar6[2] = 0;\n    piVar6[3] = 0;\n    piVar6[4] = 0;\n    if ((param_1[1] == '\0') || (param_2 == (void *)0x0)) {\n      piVar6[3] = (int)param_2;\n    }\n    else {\n      iVar8 = FUN_00067fc0();\n      if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }\n      memset(__s,0,param_3);\n      piVar6[3] = (int)__s;\n      memcpy(__s,param_2,param_3);\n    }\n    piVar6[4] = param_3;\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n    piVar7 = (int *)(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8);\n    iVar8 = piVar7[1];\n    if (iVar8 == 0) {\n      iVar8 = *(int *)(param_1 + 8);\n      *piVar6 = iVar8;\n      if (iVar8 != 0) {\n        *(int **)(iVar8 + 4) = piVar6;\n      }\n      piVar6[1] = 0;\n      *(int **)(param_1 + 8) = piVar6;\n    }\n    else {\n      *piVar6 = iVar8;\n      puVar1 = *(undefined4 **)(iVar8 + 4);\n      piVar6[1] = (int)puVar1;\n      if (puVar1 == (undefined4 *)0x0) {\n        *(int **)(param_1 + 8) = piVar6;\n      }\n      else {\n        *puVar1 = piVar6;\n      }\n      *(int **)(iVar8 + 4) = piVar6;\n    }\n    *piVar7 = *piVar7 + 1;\n    piVar7[1] = (int)piVar6;\n    piVar6[2] = param_4;\n    return 0;\n  }\nLAB_0011e007:\n  param_1[4] = '\0';\n  param_1[5] = '\0';\n  param_1[6] = '\0';\n  param_1[7] = '\0';\n  return param_4;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0011df30(char *param_1,void *param_2,size_t param_3,int param_4)" identifier (parameter_list "(char *param_1,void *param_2,size_t param_3,int param_4)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "void *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "size_t param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  uint uVar2;\n  int iVar4;\n  int iVar5;\n  void *__s;\n  int *piVar6;\n  int *piVar7;\n  int iVar8;\n  code *pcVar3;\n  \n  pcVar3 = FUN_000423a0;\n  if (*param_1 != '\x01') {\n    pcVar3 = FUN_0003ee50;\n  }\n  uVar2 = (*pcVar3)(param_2,param_3);\n  if (*(int *)(param_1 + 0x10) != 0) {\n    iVar4 = (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8;\n    piVar6 = (int *)(*(int *)(param_1 + 0x10) + iVar4);\n    iVar8 = *piVar6;\n    pcVar3 = FUN_000432e0;\n    if (*param_1 != '\x01') {\n      pcVar3 = FUN_00042ee0;\n    }\n    piVar6 = (int *)piVar6[1];\n    if ((iVar8 != 0) && (piVar6 != (int *)0x0)) {\n      do {\n        iVar8 = iVar8 + -1;\n        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);\n        if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }\n        piVar6 = (int *)*piVar6;\n      } while (iVar8 != 0 && piVar6 != (int *)0x0);\n    }\n  }\n  if (param_4 == 0) {\n    return 0;\n  }\n  iVar8 = *(int *)(param_1 + 0xc);\n  if (iVar8 == 0) {\n    iVar8 = FUN_0011a410();\n    if (iVar8 != 0) goto LAB_0011e007;\n    iVar8 = *(int *)(param_1 + 0xc);\n  }\n  if ((*(int *)(param_1 + 4) < iVar8) || (iVar8 = FUN_0011a410(), iVar8 == 0)) {\n    iVar8 = FUN_00067fc0();\n    if ((iVar8 != 0) || (piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0)) {\n      return param_4;\n    }\n    *piVar6 = 0;\n    piVar6[1] = 0;\n    piVar6[2] = 0;\n    piVar6[3] = 0;\n    piVar6[4] = 0;\n    if ((param_1[1] == '\0') || (param_2 == (void *)0x0)) {\n      piVar6[3] = (int)param_2;\n    }\n    else {\n      iVar8 = FUN_00067fc0();\n      if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }\n      memset(__s,0,param_3);\n      piVar6[3] = (int)__s;\n      memcpy(__s,param_2,param_3);\n    }\n    piVar6[4] = param_3;\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n    piVar7 = (int *)(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8);\n    iVar8 = piVar7[1];\n    if (iVar8 == 0) {\n      iVar8 = *(int *)(param_1 + 8);\n      *piVar6 = iVar8;\n      if (iVar8 != 0) {\n        *(int **)(iVar8 + 4) = piVar6;\n      }\n      piVar6[1] = 0;\n      *(int **)(param_1 + 8) = piVar6;\n    }\n    else {\n      *piVar6 = iVar8;\n      puVar1 = *(undefined4 **)(iVar8 + 4);\n      piVar6[1] = (int)puVar1;\n      if (puVar1 == (undefined4 *)0x0) {\n        *(int **)(param_1 + 8) = piVar6;\n      }\n      else {\n        *puVar1 = piVar6;\n      }\n      *(int **)(iVar8 + 4) = piVar6;\n    }\n    *piVar7 = *piVar7 + 1;\n    piVar7[1] = (int)piVar6;\n    piVar6[2] = param_4;\n    return 0;\n  }\nLAB_0011e007:\n  param_1[4] = '\0';\n  param_1[5] = '\0';\n  param_1[6] = '\0';\n  param_1[7] = '\0';\n  return param_4;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "void *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "pcVar3 = FUN_000423a0;" (assignment_expression "pcVar3 = FUN_000423a0" identifier = identifier) ;) (if_statement "if (*param_1 != '\x01') {\n    pcVar3 = FUN_0003ee50;\n  }" if (parenthesized_expression "(*param_1 != '\x01')" ( (binary_expression "*param_1 != '\x01'" (pointer_expression "*param_1" * identifier) != (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n    pcVar3 = FUN_0003ee50;\n  }" { (expression_statement "pcVar3 = FUN_0003ee50;" (assignment_expression "pcVar3 = FUN_0003ee50" identifier = identifier) ;) })) (expression_statement "uVar2 = (*pcVar3)(param_2,param_3);" (assignment_expression "uVar2 = (*pcVar3)(param_2,param_3)" identifier = (call_expression "(*pcVar3)(param_2,param_3)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(param_2,param_3)" ( identifier , identifier )))) ;) (if_statement "if (*(int *)(param_1 + 0x10) != 0) {\n    iVar4 = (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8;\n    piVar6 = (int *)(*(int *)(param_1 + 0x10) + iVar4);\n    iVar8 = *piVar6;\n    pcVar3 = FUN_000432e0;\n    if (*param_1 != '\x01') {\n      pcVar3 = FUN_00042ee0;\n    }\n    piVar6 = (int *)piVar6[1];\n    if ((iVar8 != 0) && (piVar6 != (int *)0x0)) {\n      do {\n        iVar8 = iVar8 + -1;\n        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);\n        if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }\n        piVar6 = (int *)*piVar6;\n      } while (iVar8 != 0 && piVar6 != (int *)0x0);\n    }\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0)" ( (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    iVar4 = (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8;\n    piVar6 = (int *)(*(int *)(param_1 + 0x10) + iVar4);\n    iVar8 = *piVar6;\n    pcVar3 = FUN_000432e0;\n    if (*param_1 != '\x01') {\n      pcVar3 = FUN_00042ee0;\n    }\n    piVar6 = (int *)piVar6[1];\n    if ((iVar8 != 0) && (piVar6 != (int *)0x0)) {\n      do {\n        iVar8 = iVar8 + -1;\n        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);\n        if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }\n        piVar6 = (int *)*piVar6;\n      } while (iVar8 != 0 && piVar6 != (int *)0x0);\n    }\n  }" { (expression_statement "iVar4 = (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8;" (assignment_expression "iVar4 = (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8" identifier = (binary_expression "(*(int *)(param_1 + 0xc) - 1U & uVar2) * 8" (parenthesized_expression "(*(int *)(param_1 + 0xc) - 1U & uVar2)" ( (binary_expression "*(int *)(param_1 + 0xc) - 1U & uVar2" (binary_expression "*(int *)(param_1 + 0xc) - 1U" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) - number_literal) & identifier) )) * number_literal)) ;) (expression_statement "piVar6 = (int *)(*(int *)(param_1 + 0x10) + iVar4);" (assignment_expression "piVar6 = (int *)(*(int *)(param_1 + 0x10) + iVar4)" identifier = (cast_expression "(int *)(*(int *)(param_1 + 0x10) + iVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + iVar4)" ( (binary_expression "*(int *)(param_1 + 0x10) + iVar4" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + identifier) )))) ;) (expression_statement "iVar8 = *piVar6;" (assignment_expression "iVar8 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) (expression_statement "pcVar3 = FUN_000432e0;" (assignment_expression "pcVar3 = FUN_000432e0" identifier = identifier) ;) (if_statement "if (*param_1 != '\x01') {\n      pcVar3 = FUN_00042ee0;\n    }" if (parenthesized_expression "(*param_1 != '\x01')" ( (binary_expression "*param_1 != '\x01'" (pointer_expression "*param_1" * identifier) != (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar3 = FUN_00042ee0;\n    }" { (expression_statement "pcVar3 = FUN_00042ee0;" (assignment_expression "pcVar3 = FUN_00042ee0" identifier = identifier) ;) })) (expression_statement "piVar6 = (int *)piVar6[1];" (assignment_expression "piVar6 = (int *)piVar6[1]" identifier = (cast_expression "(int *)piVar6[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[1]" identifier [ number_literal ]))) ;) (if_statement "if ((iVar8 != 0) && (piVar6 != (int *)0x0)) {\n      do {\n        iVar8 = iVar8 + -1;\n        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);\n        if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }\n        piVar6 = (int *)*piVar6;\n      } while (iVar8 != 0 && piVar6 != (int *)0x0);\n    }" if (parenthesized_expression "((iVar8 != 0) && (piVar6 != (int *)0x0))" ( (binary_expression "(iVar8 != 0) && (piVar6 != (int *)0x0)" (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) && (parenthesized_expression "(piVar6 != (int *)0x0)" ( (binary_expression "piVar6 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      do {\n        iVar8 = iVar8 + -1;\n        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);\n        if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }\n        piVar6 = (int *)*piVar6;\n      } while (iVar8 != 0 && piVar6 != (int *)0x0);\n    }" { (do_statement "do {\n        iVar8 = iVar8 + -1;\n        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);\n        if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }\n        piVar6 = (int *)*piVar6;\n      } while (iVar8 != 0 && piVar6 != (int *)0x0);" do (compound_statement "{\n        iVar8 = iVar8 + -1;\n        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);\n        if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }\n        piVar6 = (int *)*piVar6;\n      }" { (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (expression_statement "iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);" (assignment_expression "iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3)" identifier = (call_expression "(*pcVar3)(piVar6[3],piVar6[4],param_2,param_3)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(piVar6[3],piVar6[4],param_2,param_3)" ( (subscript_expression "piVar6[3]" identifier [ number_literal ]) , (subscript_expression "piVar6[4]" identifier [ number_literal ]) , identifier , identifier )))) ;) (if_statement "if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }" { (expression_statement "iVar8 = piVar6[2];" (assignment_expression "iVar8 = piVar6[2]" identifier = (subscript_expression "piVar6[2]" identifier [ number_literal ])) ;) (if_statement "if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n            piVar6[2] = param_4;\n            return iVar8;\n          }" { (expression_statement "piVar6[2] = param_4;" (assignment_expression "piVar6[2] = param_4" (subscript_expression "piVar6[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return iVar8;" return identifier ;) })) (if_statement "if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }" if (parenthesized_expression "((int *)piVar6[1] == (int *)0x0)" ( (binary_expression "(int *)piVar6[1] == (int *)0x0" (cast_expression "(int *)piVar6[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[1]" identifier [ number_literal ])) == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            *(int *)(param_1 + 8) = *piVar6;\n          }" { (expression_statement "*(int *)(param_1 + 8) = *piVar6;" (assignment_expression "*(int *)(param_1 + 8) = *piVar6" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (pointer_expression "*piVar6" * identifier)) ;) }) (else_clause "else {\n            *(int *)piVar6[1] = *piVar6;\n          }" else (compound_statement "{\n            *(int *)piVar6[1] = *piVar6;\n          }" { (expression_statement "*(int *)piVar6[1] = *piVar6;" (assignment_expression "*(int *)piVar6[1] = *piVar6" (pointer_expression "*(int *)piVar6[1]" * (cast_expression "(int *)piVar6[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar6[1]" identifier [ number_literal ]))) = (pointer_expression "*piVar6" * identifier)) ;) }))) (if_statement "if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }" if (parenthesized_expression "(*piVar6 != 0)" ( (binary_expression "*piVar6 != 0" (pointer_expression "*piVar6" * identifier) != number_literal) )) (compound_statement "{\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }" { (expression_statement "*(int *)(*piVar6 + 4) = piVar6[1];" (assignment_expression "*(int *)(*piVar6 + 4) = piVar6[1]" (pointer_expression "*(int *)(*piVar6 + 4)" * (cast_expression "(int *)(*piVar6 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar6 + 4)" ( (binary_expression "*piVar6 + 4" (pointer_expression "*piVar6" * identifier) + number_literal) )))) = (subscript_expression "piVar6[1]" identifier [ number_literal ])) ;) })) (expression_statement "piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));" (assignment_expression "piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10))" identifier = (cast_expression "(int *)(iVar4 + *(int *)(param_1 + 0x10))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + *(int *)(param_1 + 0x10))" ( (binary_expression "iVar4 + *(int *)(param_1 + 0x10)" identifier + (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) )))) ;) (if_statement "if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }" if (parenthesized_expression "((int *)piVar7[1] == piVar6)" ( (binary_expression "(int *)piVar7[1] == piVar6" (cast_expression "(int *)piVar7[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar7[1]" identifier [ number_literal ])) == identifier) )) (compound_statement "{\n            piVar7[1] = *piVar6;\n          }" { (expression_statement "piVar7[1] = *piVar6;" (assignment_expression "piVar7[1] = *piVar6" (subscript_expression "piVar7[1]" identifier [ number_literal ]) = (pointer_expression "*piVar6" * identifier)) ;) })) (expression_statement "iVar4 = *piVar7;" (assignment_expression "iVar4 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) (expression_statement "*piVar7 = iVar4 + -1;" (assignment_expression "*piVar7 = iVar4 + -1" (pointer_expression "*piVar7" * identifier) = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (if_statement "if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }" if (parenthesized_expression "(iVar4 + -1 < 1)" ( (binary_expression "iVar4 + -1 < 1" (binary_expression "iVar4 + -1" identifier + number_literal) < number_literal) )) (compound_statement "{\n            piVar7[1] = 0;\n          }" { (expression_statement "piVar7[1] = 0;" (assignment_expression "piVar7[1] = 0" (subscript_expression "piVar7[1]" identifier [ number_literal ]) = number_literal) ;) })) (if_statement "if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }" if (parenthesized_expression "((param_1[1] != '\0') && (piVar6[3] != 0))" ( (binary_expression "(param_1[1] != '\0') && (piVar6[3] != 0)" (parenthesized_expression "(param_1[1] != '\0')" ( (binary_expression "param_1[1] != '\0'" (subscript_expression "param_1[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(piVar6[3] != 0)" ( (binary_expression "piVar6[3] != 0" (subscript_expression "piVar6[3]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n            FUN_00044000(piVar6[3]);\n          }" { (expression_statement "FUN_00044000(piVar6[3]);" (call_expression "FUN_00044000(piVar6[3])" identifier (argument_list "(piVar6[3])" ( (subscript_expression "piVar6[3]" identifier [ number_literal ]) ))) ;) })) (expression_statement "FUN_00044000(piVar6);" (call_expression "FUN_00044000(piVar6)" identifier (argument_list "(piVar6)" ( identifier ))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 4);" (assignment_expression "iVar4 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 4) = iVar4 + -1;" (assignment_expression "*(int *)(param_1 + 4) = iVar4 + -1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (if_statement "if (0 < iVar4 + -1) {\n            return iVar8;\n          }" if (parenthesized_expression "(0 < iVar4 + -1)" ( (binary_expression "0 < iVar4 + -1" number_literal < (binary_expression "iVar4 + -1" identifier + number_literal)) )) (compound_statement "{\n            return iVar8;\n          }" { (return_statement "return iVar8;" return identifier ;) })) (expression_statement "FUN_0005b320();" (call_expression "FUN_0005b320()" identifier (argument_list "()" ( ))) ;) (return_statement "return iVar8;" return identifier ;) })) (expression_statement "piVar6 = (int *)*piVar6;" (assignment_expression "piVar6 = (int *)*piVar6" identifier = (cast_expression "(int *)*piVar6" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar6" * identifier))) ;) }) while (parenthesized_expression "(iVar8 != 0 && piVar6 != (int *)0x0)" ( (binary_expression "iVar8 != 0 && piVar6 != (int *)0x0" (binary_expression "iVar8 != 0" identifier != number_literal) && (binary_expression "piVar6 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) ;) })) })) (if_statement "if (param_4 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar8 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar8 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar8 == 0) {\n    iVar8 = FUN_0011a410();\n    if (iVar8 != 0) goto LAB_0011e007;\n    iVar8 = *(int *)(param_1 + 0xc);\n  }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar8 = FUN_0011a410();\n    if (iVar8 != 0) goto LAB_0011e007;\n    iVar8 = *(int *)(param_1 + 0xc);\n  }" { (expression_statement "iVar8 = FUN_0011a410();" (assignment_expression "iVar8 = FUN_0011a410()" identifier = (call_expression "FUN_0011a410()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar8 != 0) goto LAB_0011e007;" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0011e007;" goto statement_identifier ;)) (expression_statement "iVar8 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar8 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) })) (if_statement "if ((*(int *)(param_1 + 4) < iVar8) || (iVar8 = FUN_0011a410(), iVar8 == 0)) {\n    iVar8 = FUN_00067fc0();\n    if ((iVar8 != 0) || (piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0)) {\n      return param_4;\n    }\n    *piVar6 = 0;\n    piVar6[1] = 0;\n    piVar6[2] = 0;\n    piVar6[3] = 0;\n    piVar6[4] = 0;\n    if ((param_1[1] == '\0') || (param_2 == (void *)0x0)) {\n      piVar6[3] = (int)param_2;\n    }\n    else {\n      iVar8 = FUN_00067fc0();\n      if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }\n      memset(__s,0,param_3);\n      piVar6[3] = (int)__s;\n      memcpy(__s,param_2,param_3);\n    }\n    piVar6[4] = param_3;\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n    piVar7 = (int *)(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8);\n    iVar8 = piVar7[1];\n    if (iVar8 == 0) {\n      iVar8 = *(int *)(param_1 + 8);\n      *piVar6 = iVar8;\n      if (iVar8 != 0) {\n        *(int **)(iVar8 + 4) = piVar6;\n      }\n      piVar6[1] = 0;\n      *(int **)(param_1 + 8) = piVar6;\n    }\n    else {\n      *piVar6 = iVar8;\n      puVar1 = *(undefined4 **)(iVar8 + 4);\n      piVar6[1] = (int)puVar1;\n      if (puVar1 == (undefined4 *)0x0) {\n        *(int **)(param_1 + 8) = piVar6;\n      }\n      else {\n        *puVar1 = piVar6;\n      }\n      *(int **)(iVar8 + 4) = piVar6;\n    }\n    *piVar7 = *piVar7 + 1;\n    piVar7[1] = (int)piVar6;\n    piVar6[2] = param_4;\n    return 0;\n  }" if (parenthesized_expression "((*(int *)(param_1 + 4) < iVar8) || (iVar8 = FUN_0011a410(), iVar8 == 0))" ( (binary_expression "(*(int *)(param_1 + 4) < iVar8) || (iVar8 = FUN_0011a410(), iVar8 == 0)" (parenthesized_expression "(*(int *)(param_1 + 4) < iVar8)" ( (binary_expression "*(int *)(param_1 + 4) < iVar8" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) < identifier) )) || (parenthesized_expression "(iVar8 = FUN_0011a410(), iVar8 == 0)" ( (comma_expression "iVar8 = FUN_0011a410(), iVar8 == 0" (assignment_expression "iVar8 = FUN_0011a410()" identifier = (call_expression "FUN_0011a410()" identifier (argument_list "()" ( )))) , (binary_expression "iVar8 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    iVar8 = FUN_00067fc0();\n    if ((iVar8 != 0) || (piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0)) {\n      return param_4;\n    }\n    *piVar6 = 0;\n    piVar6[1] = 0;\n    piVar6[2] = 0;\n    piVar6[3] = 0;\n    piVar6[4] = 0;\n    if ((param_1[1] == '\0') || (param_2 == (void *)0x0)) {\n      piVar6[3] = (int)param_2;\n    }\n    else {\n      iVar8 = FUN_00067fc0();\n      if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }\n      memset(__s,0,param_3);\n      piVar6[3] = (int)__s;\n      memcpy(__s,param_2,param_3);\n    }\n    piVar6[4] = param_3;\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n    piVar7 = (int *)(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8);\n    iVar8 = piVar7[1];\n    if (iVar8 == 0) {\n      iVar8 = *(int *)(param_1 + 8);\n      *piVar6 = iVar8;\n      if (iVar8 != 0) {\n        *(int **)(iVar8 + 4) = piVar6;\n      }\n      piVar6[1] = 0;\n      *(int **)(param_1 + 8) = piVar6;\n    }\n    else {\n      *piVar6 = iVar8;\n      puVar1 = *(undefined4 **)(iVar8 + 4);\n      piVar6[1] = (int)puVar1;\n      if (puVar1 == (undefined4 *)0x0) {\n        *(int **)(param_1 + 8) = piVar6;\n      }\n      else {\n        *puVar1 = piVar6;\n      }\n      *(int **)(iVar8 + 4) = piVar6;\n    }\n    *piVar7 = *piVar7 + 1;\n    piVar7[1] = (int)piVar6;\n    piVar6[2] = param_4;\n    return 0;\n  }" { (expression_statement "iVar8 = FUN_00067fc0();" (assignment_expression "iVar8 = FUN_00067fc0()" identifier = (call_expression "FUN_00067fc0()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar8 != 0) || (piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0)) {\n      return param_4;\n    }" if (parenthesized_expression "((iVar8 != 0) || (piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0))" ( (binary_expression "(iVar8 != 0) || (piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0)" (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) || (parenthesized_expression "(piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0)" ( (comma_expression "piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0" (assignment_expression "piVar6 = (int *)FUN_00055780()" identifier = (cast_expression "(int *)FUN_00055780()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00055780()" identifier (argument_list "()" ( ))))) , (binary_expression "piVar6 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n      return param_4;\n    }" { (return_statement "return param_4;" return identifier ;) })) (expression_statement "*piVar6 = 0;" (assignment_expression "*piVar6 = 0" (pointer_expression "*piVar6" * identifier) = number_literal) ;) (expression_statement "piVar6[1] = 0;" (assignment_expression "piVar6[1] = 0" (subscript_expression "piVar6[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar6[2] = 0;" (assignment_expression "piVar6[2] = 0" (subscript_expression "piVar6[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar6[3] = 0;" (assignment_expression "piVar6[3] = 0" (subscript_expression "piVar6[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar6[4] = 0;" (assignment_expression "piVar6[4] = 0" (subscript_expression "piVar6[4]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if ((param_1[1] == '\0') || (param_2 == (void *)0x0)) {\n      piVar6[3] = (int)param_2;\n    }\n    else {\n      iVar8 = FUN_00067fc0();\n      if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }\n      memset(__s,0,param_3);\n      piVar6[3] = (int)__s;\n      memcpy(__s,param_2,param_3);\n    }" if (parenthesized_expression "((param_1[1] == '\0') || (param_2 == (void *)0x0))" ( (binary_expression "(param_1[1] == '\0') || (param_2 == (void *)0x0)" (parenthesized_expression "(param_1[1] == '\0')" ( (binary_expression "param_1[1] == '\0'" (subscript_expression "param_1[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(param_2 == (void *)0x0)" ( (binary_expression "param_2 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      piVar6[3] = (int)param_2;\n    }" { (expression_statement "piVar6[3] = (int)param_2;" (assignment_expression "piVar6[3] = (int)param_2" (subscript_expression "piVar6[3]" identifier [ number_literal ]) = (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n      iVar8 = FUN_00067fc0();\n      if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }\n      memset(__s,0,param_3);\n      piVar6[3] = (int)__s;\n      memcpy(__s,param_2,param_3);\n    }" else (compound_statement "{\n      iVar8 = FUN_00067fc0();\n      if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }\n      memset(__s,0,param_3);\n      piVar6[3] = (int)__s;\n      memcpy(__s,param_2,param_3);\n    }" { (expression_statement "iVar8 = FUN_00067fc0();" (assignment_expression "iVar8 = FUN_00067fc0()" identifier = (call_expression "FUN_00067fc0()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }" if (parenthesized_expression "((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0))" ( (binary_expression "(iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)" (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) || (parenthesized_expression "(__s = (void *)FUN_00055780(), __s == (void *)0x0)" ( (comma_expression "__s = (void *)FUN_00055780(), __s == (void *)0x0" (assignment_expression "__s = (void *)FUN_00055780()" identifier = (cast_expression "(void *)FUN_00055780()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00055780()" identifier (argument_list "()" ( ))))) , (binary_expression "__s == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }" { (expression_statement "piVar6[3] = 0;" (assignment_expression "piVar6[3] = 0" (subscript_expression "piVar6[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_00044000(piVar6);" (call_expression "FUN_00044000(piVar6)" identifier (argument_list "(piVar6)" ( identifier ))) ;) (return_statement "return param_4;" return identifier ;) })) (expression_statement "memset(__s,0,param_3);" (call_expression "memset(__s,0,param_3)" identifier (argument_list "(__s,0,param_3)" ( identifier , number_literal , identifier ))) ;) (expression_statement "piVar6[3] = (int)__s;" (assignment_expression "piVar6[3] = (int)__s" (subscript_expression "piVar6[3]" identifier [ number_literal ]) = (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "memcpy(__s,param_2,param_3);" (call_expression "memcpy(__s,param_2,param_3)" identifier (argument_list "(__s,param_2,param_3)" ( identifier , identifier , identifier ))) ;) }))) (expression_statement "piVar6[4] = param_3;" (assignment_expression "piVar6[4] = param_3" (subscript_expression "piVar6[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;" (assignment_expression "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 4) + 1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "piVar7 = (int *)(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8);" (assignment_expression "piVar7 = (int *)(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8)" identifier = (cast_expression "(int *)(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8)" ( (binary_expression "*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) + (binary_expression "(*(int *)(param_1 + 0xc) - 1U & uVar2) * 8" (parenthesized_expression "(*(int *)(param_1 + 0xc) - 1U & uVar2)" ( (binary_expression "*(int *)(param_1 + 0xc) - 1U & uVar2" (binary_expression "*(int *)(param_1 + 0xc) - 1U" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) - number_literal) & identifier) )) * number_literal)) )))) ;) (expression_statement "iVar8 = piVar7[1];" (assignment_expression "iVar8 = piVar7[1]" identifier = (subscript_expression "piVar7[1]" identifier [ number_literal ])) ;) (if_statement "if (iVar8 == 0) {\n      iVar8 = *(int *)(param_1 + 8);\n      *piVar6 = iVar8;\n      if (iVar8 != 0) {\n        *(int **)(iVar8 + 4) = piVar6;\n      }\n      piVar6[1] = 0;\n      *(int **)(param_1 + 8) = piVar6;\n    }\n    else {\n      *piVar6 = iVar8;\n      puVar1 = *(undefined4 **)(iVar8 + 4);\n      piVar6[1] = (int)puVar1;\n      if (puVar1 == (undefined4 *)0x0) {\n        *(int **)(param_1 + 8) = piVar6;\n      }\n      else {\n        *puVar1 = piVar6;\n      }\n      *(int **)(iVar8 + 4) = piVar6;\n    }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar8 = *(int *)(param_1 + 8);\n      *piVar6 = iVar8;\n      if (iVar8 != 0) {\n        *(int **)(iVar8 + 4) = piVar6;\n      }\n      piVar6[1] = 0;\n      *(int **)(param_1 + 8) = piVar6;\n    }" { (expression_statement "iVar8 = *(int *)(param_1 + 8);" (assignment_expression "iVar8 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "*piVar6 = iVar8;" (assignment_expression "*piVar6 = iVar8" (pointer_expression "*piVar6" * identifier) = identifier) ;) (if_statement "if (iVar8 != 0) {\n        *(int **)(iVar8 + 4) = piVar6;\n      }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n        *(int **)(iVar8 + 4) = piVar6;\n      }" { (expression_statement "*(int **)(iVar8 + 4) = piVar6;" (assignment_expression "*(int **)(iVar8 + 4) = piVar6" (pointer_expression "*(int **)(iVar8 + 4)" * (cast_expression "(int **)(iVar8 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar8 + 4)" ( (binary_expression "iVar8 + 4" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "piVar6[1] = 0;" (assignment_expression "piVar6[1] = 0" (subscript_expression "piVar6[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(int **)(param_1 + 8) = piVar6;" (assignment_expression "*(int **)(param_1 + 8) = piVar6" (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n      *piVar6 = iVar8;\n      puVar1 = *(undefined4 **)(iVar8 + 4);\n      piVar6[1] = (int)puVar1;\n      if (puVar1 == (undefined4 *)0x0) {\n        *(int **)(param_1 + 8) = piVar6;\n      }\n      else {\n        *puVar1 = piVar6;\n      }\n      *(int **)(iVar8 + 4) = piVar6;\n    }" else (compound_statement "{\n      *piVar6 = iVar8;\n      puVar1 = *(undefined4 **)(iVar8 + 4);\n      piVar6[1] = (int)puVar1;\n      if (puVar1 == (undefined4 *)0x0) {\n        *(int **)(param_1 + 8) = piVar6;\n      }\n      else {\n        *puVar1 = piVar6;\n      }\n      *(int **)(iVar8 + 4) = piVar6;\n    }" { (expression_statement "*piVar6 = iVar8;" (assignment_expression "*piVar6 = iVar8" (pointer_expression "*piVar6" * identifier) = identifier) ;) (expression_statement "puVar1 = *(undefined4 **)(iVar8 + 4);" (assignment_expression "puVar1 = *(undefined4 **)(iVar8 + 4)" identifier = (pointer_expression "*(undefined4 **)(iVar8 + 4)" * (cast_expression "(undefined4 **)(iVar8 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar8 + 4)" ( (binary_expression "iVar8 + 4" identifier + number_literal) ))))) ;) (expression_statement "piVar6[1] = (int)puVar1;" (assignment_expression "piVar6[1] = (int)puVar1" (subscript_expression "piVar6[1]" identifier [ number_literal ]) = (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n        *(int **)(param_1 + 8) = piVar6;\n      }\n      else {\n        *puVar1 = piVar6;\n      }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *(int **)(param_1 + 8) = piVar6;\n      }" { (expression_statement "*(int **)(param_1 + 8) = piVar6;" (assignment_expression "*(int **)(param_1 + 8) = piVar6" (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n        *puVar1 = piVar6;\n      }" else (compound_statement "{\n        *puVar1 = piVar6;\n      }" { (expression_statement "*puVar1 = piVar6;" (assignment_expression "*puVar1 = piVar6" (pointer_expression "*puVar1" * identifier) = identifier) ;) }))) (expression_statement "*(int **)(iVar8 + 4) = piVar6;" (assignment_expression "*(int **)(iVar8 + 4) = piVar6" (pointer_expression "*(int **)(iVar8 + 4)" * (cast_expression "(int **)(iVar8 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar8 + 4)" ( (binary_expression "iVar8 + 4" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "*piVar7 = *piVar7 + 1;" (assignment_expression "*piVar7 = *piVar7 + 1" (pointer_expression "*piVar7" * identifier) = (binary_expression "*piVar7 + 1" (pointer_expression "*piVar7" * identifier) + number_literal)) ;) (expression_statement "piVar7[1] = (int)piVar6;" (assignment_expression "piVar7[1] = (int)piVar6" (subscript_expression "piVar7[1]" identifier [ number_literal ]) = (cast_expression "(int)piVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar6[2] = param_4;" (assignment_expression "piVar6[2] = param_4" (subscript_expression "piVar6[2]" identifier [ number_literal ]) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (labeled_statement "LAB_0011e007:\n  param_1[4] = '\0';" statement_identifier : (expression_statement "param_1[4] = '\0';" (assignment_expression "param_1[4] = '\0'" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;)) (expression_statement "param_1[5] = '\0';" (assignment_expression "param_1[5] = '\0'" (subscript_expression "param_1[5]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_1[6] = '\0';" (assignment_expression "param_1[6] = '\0'" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "param_1[7] = '\0';" (assignment_expression "param_1[7] = '\0'" (subscript_expression "param_1[7]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return param_4;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - LIT) & IDENT) )) * LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) = (pointer_expression * IDENT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) == IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT + LIT)) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) && (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) )) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < IDENT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - LIT) & IDENT) )) * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return LIT ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_0011df30(char *param_1,void *param_2,size_t param_3,int param_4)\n\n{\n  undefined4 *puVar1;\n  uint uVar2;\n  int iVar4;\n  int iVar5;\n  void *__s;\n  int *piVar6;\n  int *piVar7;\n  int iVar8;\n  code *pcVar3;\n  \n  pcVar3 = FUN_000423a0;\n  if (*param_1 != '\x01') {\n    pcVar3 = FUN_0003ee50;\n  }\n  uVar2 = (*pcVar3)(param_2,param_3);\n  if (*(int *)(param_1 + 0x10) != 0) {\n    iVar4 = (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8;\n    piVar6 = (int *)(*(int *)(param_1 + 0x10) + iVar4);\n    iVar8 = *piVar6;\n    pcVar3 = FUN_000432e0;\n    if (*param_1 != '\x01') {\n      pcVar3 = FUN_00042ee0;\n    }\n    piVar6 = (int *)piVar6[1];\n    if ((iVar8 != 0) && (piVar6 != (int *)0x0)) {\n      do {\n        iVar8 = iVar8 + -1;\n        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);\n        if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }\n        piVar6 = (int *)*piVar6;\n      } while (iVar8 != 0 && piVar6 != (int *)0x0);\n    }\n  }\n  if (param_4 == 0) {\n    return 0;\n  }\n  iVar8 = *(int *)(param_1 + 0xc);\n  if (iVar8 == 0) {\n    iVar8 = FUN_0011a410();\n    if (iVar8 != 0) goto LAB_0011e007;\n    iVar8 = *(int *)(param_1 + 0xc);\n  }\n  if ((*(int *)(param_1 + 4) < iVar8) || (iVar8 = FUN_0011a410(), iVar8 == 0)) {\n    iVar8 = FUN_00067fc0();\n    if ((iVar8 != 0) || (piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0)) {\n      return param_4;\n    }\n    *piVar6 = 0;\n    piVar6[1] = 0;\n    piVar6[2] = 0;\n    piVar6[3] = 0;\n    piVar6[4] = 0;\n    if ((param_1[1] == '\0') || (param_2 == (void *)0x0)) {\n      piVar6[3] = (int)param_2;\n    }\n    else {\n      iVar8 = FUN_00067fc0();\n      if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }\n      memset(__s,0,param_3);\n      piVar6[3] = (int)__s;\n      memcpy(__s,param_2,param_3);\n    }\n    piVar6[4] = param_3;\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n    piVar7 = (int *)(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8);\n    iVar8 = piVar7[1];\n    if (iVar8 == 0) {\n      iVar8 = *(int *)(param_1 + 8);\n      *piVar6 = iVar8;\n      if (iVar8 != 0) {\n        *(int **)(iVar8 + 4) = piVar6;\n      }\n      piVar6[1] = 0;\n      *(int **)(param_1 + 8) = piVar6;\n    }\n    else {\n      *piVar6 = iVar8;\n      puVar1 = *(undefined4 **)(iVar8 + 4);\n      piVar6[1] = (int)puVar1;\n      if (puVar1 == (undefined4 *)0x0) {\n        *(int **)(param_1 + 8) = piVar6;\n      }\n      else {\n        *puVar1 = piVar6;\n      }\n      *(int **)(iVar8 + 4) = piVar6;\n    }\n    *piVar7 = *piVar7 + 1;\n    piVar7[1] = (int)piVar6;\n    piVar6[2] = param_4;\n    return 0;\n  }\nLAB_0011e007:\n  param_1[4] = '\0';\n  param_1[5] = '\0';\n  param_1[6] = '\0';\n  param_1[7] = '\0';\n  return param_4;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0011df30(char *param_1,void *param_2,size_t param_3,int param_4)" (identifier "FUN_0011df30") (parameter_list "(char *param_1,void *param_2,size_t param_3,int param_4)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "void *param_2" (primitive_type "void") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "size_t param_3" (primitive_type "size_t") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  uint uVar2;\n  int iVar4;\n  int iVar5;\n  void *__s;\n  int *piVar6;\n  int *piVar7;\n  int iVar8;\n  code *pcVar3;\n  \n  pcVar3 = FUN_000423a0;\n  if (*param_1 != '\x01') {\n    pcVar3 = FUN_0003ee50;\n  }\n  uVar2 = (*pcVar3)(param_2,param_3);\n  if (*(int *)(param_1 + 0x10) != 0) {\n    iVar4 = (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8;\n    piVar6 = (int *)(*(int *)(param_1 + 0x10) + iVar4);\n    iVar8 = *piVar6;\n    pcVar3 = FUN_000432e0;\n    if (*param_1 != '\x01') {\n      pcVar3 = FUN_00042ee0;\n    }\n    piVar6 = (int *)piVar6[1];\n    if ((iVar8 != 0) && (piVar6 != (int *)0x0)) {\n      do {\n        iVar8 = iVar8 + -1;\n        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);\n        if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }\n        piVar6 = (int *)*piVar6;\n      } while (iVar8 != 0 && piVar6 != (int *)0x0);\n    }\n  }\n  if (param_4 == 0) {\n    return 0;\n  }\n  iVar8 = *(int *)(param_1 + 0xc);\n  if (iVar8 == 0) {\n    iVar8 = FUN_0011a410();\n    if (iVar8 != 0) goto LAB_0011e007;\n    iVar8 = *(int *)(param_1 + 0xc);\n  }\n  if ((*(int *)(param_1 + 4) < iVar8) || (iVar8 = FUN_0011a410(), iVar8 == 0)) {\n    iVar8 = FUN_00067fc0();\n    if ((iVar8 != 0) || (piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0)) {\n      return param_4;\n    }\n    *piVar6 = 0;\n    piVar6[1] = 0;\n    piVar6[2] = 0;\n    piVar6[3] = 0;\n    piVar6[4] = 0;\n    if ((param_1[1] == '\0') || (param_2 == (void *)0x0)) {\n      piVar6[3] = (int)param_2;\n    }\n    else {\n      iVar8 = FUN_00067fc0();\n      if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }\n      memset(__s,0,param_3);\n      piVar6[3] = (int)__s;\n      memcpy(__s,param_2,param_3);\n    }\n    piVar6[4] = param_3;\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n    piVar7 = (int *)(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8);\n    iVar8 = piVar7[1];\n    if (iVar8 == 0) {\n      iVar8 = *(int *)(param_1 + 8);\n      *piVar6 = iVar8;\n      if (iVar8 != 0) {\n        *(int **)(iVar8 + 4) = piVar6;\n      }\n      piVar6[1] = 0;\n      *(int **)(param_1 + 8) = piVar6;\n    }\n    else {\n      *piVar6 = iVar8;\n      puVar1 = *(undefined4 **)(iVar8 + 4);\n      piVar6[1] = (int)puVar1;\n      if (puVar1 == (undefined4 *)0x0) {\n        *(int **)(param_1 + 8) = piVar6;\n      }\n      else {\n        *puVar1 = piVar6;\n      }\n      *(int **)(iVar8 + 4) = piVar6;\n    }\n    *piVar7 = *piVar7 + 1;\n    piVar7[1] = (int)piVar6;\n    piVar6[2] = param_4;\n    return 0;\n  }\nLAB_0011e007:\n  param_1[4] = '\0';\n  param_1[5] = '\0';\n  param_1[6] = '\0';\n  param_1[7] = '\0';\n  return param_4;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "void *__s;" (primitive_type "void") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "code *pcVar3;" (type_identifier "code") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (expression_statement "pcVar3 = FUN_000423a0;" (assignment_expression "pcVar3 = FUN_000423a0" (identifier "pcVar3") (= "=") (identifier "FUN_000423a0")) (; ";")) (if_statement "if (*param_1 != '\x01') {\n    pcVar3 = FUN_0003ee50;\n  }" (if "if") (parenthesized_expression "(*param_1 != '\x01')" (( "(") (binary_expression "*param_1 != '\x01'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")) (compound_statement "{\n    pcVar3 = FUN_0003ee50;\n  }" ({ "{") (expression_statement "pcVar3 = FUN_0003ee50;" (assignment_expression "pcVar3 = FUN_0003ee50" (identifier "pcVar3") (= "=") (identifier "FUN_0003ee50")) (; ";")) (} "}"))) (expression_statement "uVar2 = (*pcVar3)(param_2,param_3);" (assignment_expression "uVar2 = (*pcVar3)(param_2,param_3)" (identifier "uVar2") (= "=") (call_expression "(*pcVar3)(param_2,param_3)" (parenthesized_expression "(*pcVar3)" (( "(") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) () ")")) (argument_list "(param_2,param_3)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x10) != 0) {\n    iVar4 = (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8;\n    piVar6 = (int *)(*(int *)(param_1 + 0x10) + iVar4);\n    iVar8 = *piVar6;\n    pcVar3 = FUN_000432e0;\n    if (*param_1 != '\x01') {\n      pcVar3 = FUN_00042ee0;\n    }\n    piVar6 = (int *)piVar6[1];\n    if ((iVar8 != 0) && (piVar6 != (int *)0x0)) {\n      do {\n        iVar8 = iVar8 + -1;\n        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);\n        if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }\n        piVar6 = (int *)*piVar6;\n      } while (iVar8 != 0 && piVar6 != (int *)0x0);\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8;\n    piVar6 = (int *)(*(int *)(param_1 + 0x10) + iVar4);\n    iVar8 = *piVar6;\n    pcVar3 = FUN_000432e0;\n    if (*param_1 != '\x01') {\n      pcVar3 = FUN_00042ee0;\n    }\n    piVar6 = (int *)piVar6[1];\n    if ((iVar8 != 0) && (piVar6 != (int *)0x0)) {\n      do {\n        iVar8 = iVar8 + -1;\n        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);\n        if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }\n        piVar6 = (int *)*piVar6;\n      } while (iVar8 != 0 && piVar6 != (int *)0x0);\n    }\n  }" ({ "{") (expression_statement "iVar4 = (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8;" (assignment_expression "iVar4 = (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8" (identifier "iVar4") (= "=") (binary_expression "(*(int *)(param_1 + 0xc) - 1U & uVar2) * 8" (parenthesized_expression "(*(int *)(param_1 + 0xc) - 1U & uVar2)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) - 1U & uVar2" (binary_expression "*(int *)(param_1 + 0xc) - 1U" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (- "-") (number_literal "1U")) (& "&") (identifier "uVar2")) () ")")) (* "*") (number_literal "8"))) (; ";")) (expression_statement "piVar6 = (int *)(*(int *)(param_1 + 0x10) + iVar4);" (assignment_expression "piVar6 = (int *)(*(int *)(param_1 + 0x10) + iVar4)" (identifier "piVar6") (= "=") (cast_expression "(int *)(*(int *)(param_1 + 0x10) + iVar4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x10) + iVar4)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) + iVar4" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (identifier "iVar4")) () ")")))) (; ";")) (expression_statement "iVar8 = *piVar6;" (assignment_expression "iVar8 = *piVar6" (identifier "iVar8") (= "=") (pointer_expression "*piVar6" (* "*") (identifier "piVar6"))) (; ";")) (expression_statement "pcVar3 = FUN_000432e0;" (assignment_expression "pcVar3 = FUN_000432e0" (identifier "pcVar3") (= "=") (identifier "FUN_000432e0")) (; ";")) (if_statement "if (*param_1 != '\x01') {\n      pcVar3 = FUN_00042ee0;\n    }" (if "if") (parenthesized_expression "(*param_1 != '\x01')" (( "(") (binary_expression "*param_1 != '\x01'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")) (compound_statement "{\n      pcVar3 = FUN_00042ee0;\n    }" ({ "{") (expression_statement "pcVar3 = FUN_00042ee0;" (assignment_expression "pcVar3 = FUN_00042ee0" (identifier "pcVar3") (= "=") (identifier "FUN_00042ee0")) (; ";")) (} "}"))) (expression_statement "piVar6 = (int *)piVar6[1];" (assignment_expression "piVar6 = (int *)piVar6[1]" (identifier "piVar6") (= "=") (cast_expression "(int *)piVar6[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if ((iVar8 != 0) && (piVar6 != (int *)0x0)) {\n      do {\n        iVar8 = iVar8 + -1;\n        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);\n        if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }\n        piVar6 = (int *)*piVar6;\n      } while (iVar8 != 0 && piVar6 != (int *)0x0);\n    }" (if "if") (parenthesized_expression "((iVar8 != 0) && (piVar6 != (int *)0x0))" (( "(") (binary_expression "(iVar8 != 0) && (piVar6 != (int *)0x0)" (parenthesized_expression "(iVar8 != 0)" (( "(") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(piVar6 != (int *)0x0)" (( "(") (binary_expression "piVar6 != (int *)0x0" (identifier "piVar6") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n      do {\n        iVar8 = iVar8 + -1;\n        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);\n        if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }\n        piVar6 = (int *)*piVar6;\n      } while (iVar8 != 0 && piVar6 != (int *)0x0);\n    }" ({ "{") (do_statement "do {\n        iVar8 = iVar8 + -1;\n        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);\n        if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }\n        piVar6 = (int *)*piVar6;\n      } while (iVar8 != 0 && piVar6 != (int *)0x0);" (do "do") (compound_statement "{\n        iVar8 = iVar8 + -1;\n        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);\n        if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }\n        piVar6 = (int *)*piVar6;\n      }" ({ "{") (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + -1" (identifier "iVar8") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);" (assignment_expression "iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3)" (identifier "iVar5") (= "=") (call_expression "(*pcVar3)(piVar6[3],piVar6[4],param_2,param_3)" (parenthesized_expression "(*pcVar3)" (( "(") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) () ")")) (argument_list "(piVar6[3],piVar6[4],param_2,param_3)" (( "(") (subscript_expression "piVar6[3]" (identifier "piVar6") ([ "[") (number_literal "3") (] "]")) (, ",") (subscript_expression "piVar6[4]" (identifier "piVar6") ([ "[") (number_literal "4") (] "]")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar5 == 0) {\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          iVar8 = piVar6[2];\n          if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }\n          if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }\n          if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }\n          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));\n          if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }\n          iVar4 = *piVar7;\n          *piVar7 = iVar4 + -1;\n          if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }\n          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }\n          FUN_00044000(piVar6);\n          iVar4 = *(int *)(param_1 + 4);\n          *(int *)(param_1 + 4) = iVar4 + -1;\n          if (0 < iVar4 + -1) {\n            return iVar8;\n          }\n          FUN_0005b320();\n          return iVar8;\n        }" ({ "{") (expression_statement "iVar8 = piVar6[2];" (assignment_expression "iVar8 = piVar6[2]" (identifier "iVar8") (= "=") (subscript_expression "piVar6[2]" (identifier "piVar6") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if (param_4 != 0) {\n            piVar6[2] = param_4;\n            return iVar8;\n          }" (if "if") (parenthesized_expression "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            piVar6[2] = param_4;\n            return iVar8;\n          }" ({ "{") (expression_statement "piVar6[2] = param_4;" (assignment_expression "piVar6[2] = param_4" (subscript_expression "piVar6[2]" (identifier "piVar6") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_4")) (; ";")) (return_statement "return iVar8;" (return "return") (identifier "iVar8") (; ";")) (} "}"))) (if_statement "if ((int *)piVar6[1] == (int *)0x0) {\n            *(int *)(param_1 + 8) = *piVar6;\n          }\n          else {\n            *(int *)piVar6[1] = *piVar6;\n          }" (if "if") (parenthesized_expression "((int *)piVar6[1] == (int *)0x0)" (( "(") (binary_expression "(int *)piVar6[1] == (int *)0x0" (cast_expression "(int *)piVar6[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]"))) (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            *(int *)(param_1 + 8) = *piVar6;\n          }" ({ "{") (expression_statement "*(int *)(param_1 + 8) = *piVar6;" (assignment_expression "*(int *)(param_1 + 8) = *piVar6" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (pointer_expression "*piVar6" (* "*") (identifier "piVar6"))) (; ";")) (} "}")) (else_clause "else {\n            *(int *)piVar6[1] = *piVar6;\n          }" (else "else") (compound_statement "{\n            *(int *)piVar6[1] = *piVar6;\n          }" ({ "{") (expression_statement "*(int *)piVar6[1] = *piVar6;" (assignment_expression "*(int *)piVar6[1] = *piVar6" (pointer_expression "*(int *)piVar6[1]" (* "*") (cast_expression "(int *)piVar6[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]")))) (= "=") (pointer_expression "*piVar6" (* "*") (identifier "piVar6"))) (; ";")) (} "}")))) (if_statement "if (*piVar6 != 0) {\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }" (if "if") (parenthesized_expression "(*piVar6 != 0)" (( "(") (binary_expression "*piVar6 != 0" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            *(int *)(*piVar6 + 4) = piVar6[1];\n          }" ({ "{") (expression_statement "*(int *)(*piVar6 + 4) = piVar6[1];" (assignment_expression "*(int *)(*piVar6 + 4) = piVar6[1]" (pointer_expression "*(int *)(*piVar6 + 4)" (* "*") (cast_expression "(int *)(*piVar6 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar6 + 4)" (( "(") (binary_expression "*piVar6 + 4" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (+ "+") (number_literal "4")) () ")")))) (= "=") (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}"))) (expression_statement "piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));" (assignment_expression "piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10))" (identifier "piVar7") (= "=") (cast_expression "(int *)(iVar4 + *(int *)(param_1 + 0x10))" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + *(int *)(param_1 + 0x10))" (( "(") (binary_expression "iVar4 + *(int *)(param_1 + 0x10)" (identifier "iVar4") (+ "+") (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) () ")")))) (; ";")) (if_statement "if ((int *)piVar7[1] == piVar6) {\n            piVar7[1] = *piVar6;\n          }" (if "if") (parenthesized_expression "((int *)piVar7[1] == piVar6)" (( "(") (binary_expression "(int *)piVar7[1] == piVar6" (cast_expression "(int *)piVar7[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar7[1]" (identifier "piVar7") ([ "[") (number_literal "1") (] "]"))) (== "==") (identifier "piVar6")) () ")")) (compound_statement "{\n            piVar7[1] = *piVar6;\n          }" ({ "{") (expression_statement "piVar7[1] = *piVar6;" (assignment_expression "piVar7[1] = *piVar6" (subscript_expression "piVar7[1]" (identifier "piVar7") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "*piVar6" (* "*") (identifier "piVar6"))) (; ";")) (} "}"))) (expression_statement "iVar4 = *piVar7;" (assignment_expression "iVar4 = *piVar7" (identifier "iVar4") (= "=") (pointer_expression "*piVar7" (* "*") (identifier "piVar7"))) (; ";")) (expression_statement "*piVar7 = iVar4 + -1;" (assignment_expression "*piVar7 = iVar4 + -1" (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (iVar4 + -1 < 1) {\n            piVar7[1] = 0;\n          }" (if "if") (parenthesized_expression "(iVar4 + -1 < 1)" (( "(") (binary_expression "iVar4 + -1 < 1" (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1")) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n            piVar7[1] = 0;\n          }" ({ "{") (expression_statement "piVar7[1] = 0;" (assignment_expression "piVar7[1] = 0" (subscript_expression "piVar7[1]" (identifier "piVar7") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if ((param_1[1] != '\0') && (piVar6[3] != 0)) {\n            FUN_00044000(piVar6[3]);\n          }" (if "if") (parenthesized_expression "((param_1[1] != '\0') && (piVar6[3] != 0))" (( "(") (binary_expression "(param_1[1] != '\0') && (piVar6[3] != 0)" (parenthesized_expression "(param_1[1] != '\0')" (( "(") (binary_expression "param_1[1] != '\0'" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(piVar6[3] != 0)" (( "(") (binary_expression "piVar6[3] != 0" (subscript_expression "piVar6[3]" (identifier "piVar6") ([ "[") (number_literal "3") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n            FUN_00044000(piVar6[3]);\n          }" ({ "{") (expression_statement "FUN_00044000(piVar6[3]);" (call_expression "FUN_00044000(piVar6[3])" (identifier "FUN_00044000") (argument_list "(piVar6[3])" (( "(") (subscript_expression "piVar6[3]" (identifier "piVar6") ([ "[") (number_literal "3") (] "]")) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00044000(piVar6);" (call_expression "FUN_00044000(piVar6)" (identifier "FUN_00044000") (argument_list "(piVar6)" (( "(") (identifier "piVar6") () ")"))) (; ";")) (expression_statement "iVar4 = *(int *)(param_1 + 4);" (assignment_expression "iVar4 = *(int *)(param_1 + 4)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*(int *)(param_1 + 4) = iVar4 + -1;" (assignment_expression "*(int *)(param_1 + 4) = iVar4 + -1" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (0 < iVar4 + -1) {\n            return iVar8;\n          }" (if "if") (parenthesized_expression "(0 < iVar4 + -1)" (( "(") (binary_expression "0 < iVar4 + -1" (number_literal "0") (< "<") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) () ")")) (compound_statement "{\n            return iVar8;\n          }" ({ "{") (return_statement "return iVar8;" (return "return") (identifier "iVar8") (; ";")) (} "}"))) (expression_statement "FUN_0005b320();" (call_expression "FUN_0005b320()" (identifier "FUN_0005b320") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return iVar8;" (return "return") (identifier "iVar8") (; ";")) (} "}"))) (expression_statement "piVar6 = (int *)*piVar6;" (assignment_expression "piVar6 = (int *)*piVar6" (identifier "piVar6") (= "=") (cast_expression "(int *)*piVar6" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar6" (* "*") (identifier "piVar6")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar8 != 0 && piVar6 != (int *)0x0)" (( "(") (binary_expression "iVar8 != 0 && piVar6 != (int *)0x0" (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) (&& "&&") (binary_expression "piVar6 != (int *)0x0" (identifier "piVar6") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")")) (; ";")) (} "}"))) (} "}"))) (if_statement "if (param_4 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar8 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar8 = *(int *)(param_1 + 0xc)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (iVar8 == 0) {\n    iVar8 = FUN_0011a410();\n    if (iVar8 != 0) goto LAB_0011e007;\n    iVar8 = *(int *)(param_1 + 0xc);\n  }" (if "if") (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar8 = FUN_0011a410();\n    if (iVar8 != 0) goto LAB_0011e007;\n    iVar8 = *(int *)(param_1 + 0xc);\n  }" ({ "{") (expression_statement "iVar8 = FUN_0011a410();" (assignment_expression "iVar8 = FUN_0011a410()" (identifier "iVar8") (= "=") (call_expression "FUN_0011a410()" (identifier "FUN_0011a410") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar8 != 0) goto LAB_0011e007;" (if "if") (parenthesized_expression "(iVar8 != 0)" (( "(") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0011e007;" (goto "goto") (statement_identifier "LAB_0011e007") (; ";"))) (expression_statement "iVar8 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar8 = *(int *)(param_1 + 0xc)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (} "}"))) (if_statement "if ((*(int *)(param_1 + 4) < iVar8) || (iVar8 = FUN_0011a410(), iVar8 == 0)) {\n    iVar8 = FUN_00067fc0();\n    if ((iVar8 != 0) || (piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0)) {\n      return param_4;\n    }\n    *piVar6 = 0;\n    piVar6[1] = 0;\n    piVar6[2] = 0;\n    piVar6[3] = 0;\n    piVar6[4] = 0;\n    if ((param_1[1] == '\0') || (param_2 == (void *)0x0)) {\n      piVar6[3] = (int)param_2;\n    }\n    else {\n      iVar8 = FUN_00067fc0();\n      if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }\n      memset(__s,0,param_3);\n      piVar6[3] = (int)__s;\n      memcpy(__s,param_2,param_3);\n    }\n    piVar6[4] = param_3;\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n    piVar7 = (int *)(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8);\n    iVar8 = piVar7[1];\n    if (iVar8 == 0) {\n      iVar8 = *(int *)(param_1 + 8);\n      *piVar6 = iVar8;\n      if (iVar8 != 0) {\n        *(int **)(iVar8 + 4) = piVar6;\n      }\n      piVar6[1] = 0;\n      *(int **)(param_1 + 8) = piVar6;\n    }\n    else {\n      *piVar6 = iVar8;\n      puVar1 = *(undefined4 **)(iVar8 + 4);\n      piVar6[1] = (int)puVar1;\n      if (puVar1 == (undefined4 *)0x0) {\n        *(int **)(param_1 + 8) = piVar6;\n      }\n      else {\n        *puVar1 = piVar6;\n      }\n      *(int **)(iVar8 + 4) = piVar6;\n    }\n    *piVar7 = *piVar7 + 1;\n    piVar7[1] = (int)piVar6;\n    piVar6[2] = param_4;\n    return 0;\n  }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 4) < iVar8) || (iVar8 = FUN_0011a410(), iVar8 == 0))" (( "(") (binary_expression "(*(int *)(param_1 + 4) < iVar8) || (iVar8 = FUN_0011a410(), iVar8 == 0)" (parenthesized_expression "(*(int *)(param_1 + 4) < iVar8)" (( "(") (binary_expression "*(int *)(param_1 + 4) < iVar8" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (< "<") (identifier "iVar8")) () ")")) (|| "||") (parenthesized_expression "(iVar8 = FUN_0011a410(), iVar8 == 0)" (( "(") (comma_expression "iVar8 = FUN_0011a410(), iVar8 == 0" (assignment_expression "iVar8 = FUN_0011a410()" (identifier "iVar8") (= "=") (call_expression "FUN_0011a410()" (identifier "FUN_0011a410") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    iVar8 = FUN_00067fc0();\n    if ((iVar8 != 0) || (piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0)) {\n      return param_4;\n    }\n    *piVar6 = 0;\n    piVar6[1] = 0;\n    piVar6[2] = 0;\n    piVar6[3] = 0;\n    piVar6[4] = 0;\n    if ((param_1[1] == '\0') || (param_2 == (void *)0x0)) {\n      piVar6[3] = (int)param_2;\n    }\n    else {\n      iVar8 = FUN_00067fc0();\n      if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }\n      memset(__s,0,param_3);\n      piVar6[3] = (int)__s;\n      memcpy(__s,param_2,param_3);\n    }\n    piVar6[4] = param_3;\n    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n    piVar7 = (int *)(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8);\n    iVar8 = piVar7[1];\n    if (iVar8 == 0) {\n      iVar8 = *(int *)(param_1 + 8);\n      *piVar6 = iVar8;\n      if (iVar8 != 0) {\n        *(int **)(iVar8 + 4) = piVar6;\n      }\n      piVar6[1] = 0;\n      *(int **)(param_1 + 8) = piVar6;\n    }\n    else {\n      *piVar6 = iVar8;\n      puVar1 = *(undefined4 **)(iVar8 + 4);\n      piVar6[1] = (int)puVar1;\n      if (puVar1 == (undefined4 *)0x0) {\n        *(int **)(param_1 + 8) = piVar6;\n      }\n      else {\n        *puVar1 = piVar6;\n      }\n      *(int **)(iVar8 + 4) = piVar6;\n    }\n    *piVar7 = *piVar7 + 1;\n    piVar7[1] = (int)piVar6;\n    piVar6[2] = param_4;\n    return 0;\n  }" ({ "{") (expression_statement "iVar8 = FUN_00067fc0();" (assignment_expression "iVar8 = FUN_00067fc0()" (identifier "iVar8") (= "=") (call_expression "FUN_00067fc0()" (identifier "FUN_00067fc0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar8 != 0) || (piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0)) {\n      return param_4;\n    }" (if "if") (parenthesized_expression "((iVar8 != 0) || (piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0))" (( "(") (binary_expression "(iVar8 != 0) || (piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0)" (parenthesized_expression "(iVar8 != 0)" (( "(") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0)" (( "(") (comma_expression "piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0" (assignment_expression "piVar6 = (int *)FUN_00055780()" (identifier "piVar6") (= "=") (cast_expression "(int *)FUN_00055780()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00055780()" (identifier "FUN_00055780") (argument_list "()" (( "(") () ")"))))) (, ",") (binary_expression "piVar6 == (int *)0x0" (identifier "piVar6") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n      return param_4;\n    }" ({ "{") (return_statement "return param_4;" (return "return") (identifier "param_4") (; ";")) (} "}"))) (expression_statement "*piVar6 = 0;" (assignment_expression "*piVar6 = 0" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar6[1] = 0;" (assignment_expression "piVar6[1] = 0" (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar6[2] = 0;" (assignment_expression "piVar6[2] = 0" (subscript_expression "piVar6[2]" (identifier "piVar6") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar6[3] = 0;" (assignment_expression "piVar6[3] = 0" (subscript_expression "piVar6[3]" (identifier "piVar6") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar6[4] = 0;" (assignment_expression "piVar6[4] = 0" (subscript_expression "piVar6[4]" (identifier "piVar6") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if ((param_1[1] == '\0') || (param_2 == (void *)0x0)) {\n      piVar6[3] = (int)param_2;\n    }\n    else {\n      iVar8 = FUN_00067fc0();\n      if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }\n      memset(__s,0,param_3);\n      piVar6[3] = (int)__s;\n      memcpy(__s,param_2,param_3);\n    }" (if "if") (parenthesized_expression "((param_1[1] == '\0') || (param_2 == (void *)0x0))" (( "(") (binary_expression "(param_1[1] == '\0') || (param_2 == (void *)0x0)" (parenthesized_expression "(param_1[1] == '\0')" (( "(") (binary_expression "param_1[1] == '\0'" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(param_2 == (void *)0x0)" (( "(") (binary_expression "param_2 == (void *)0x0" (identifier "param_2") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n      piVar6[3] = (int)param_2;\n    }" ({ "{") (expression_statement "piVar6[3] = (int)param_2;" (assignment_expression "piVar6[3] = (int)param_2" (subscript_expression "piVar6[3]" (identifier "piVar6") ([ "[") (number_literal "3") (] "]")) (= "=") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) (; ";")) (} "}")) (else_clause "else {\n      iVar8 = FUN_00067fc0();\n      if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }\n      memset(__s,0,param_3);\n      piVar6[3] = (int)__s;\n      memcpy(__s,param_2,param_3);\n    }" (else "else") (compound_statement "{\n      iVar8 = FUN_00067fc0();\n      if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }\n      memset(__s,0,param_3);\n      piVar6[3] = (int)__s;\n      memcpy(__s,param_2,param_3);\n    }" ({ "{") (expression_statement "iVar8 = FUN_00067fc0();" (assignment_expression "iVar8 = FUN_00067fc0()" (identifier "iVar8") (= "=") (call_expression "FUN_00067fc0()" (identifier "FUN_00067fc0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }" (if "if") (parenthesized_expression "((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0))" (( "(") (binary_expression "(iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)" (parenthesized_expression "(iVar8 != 0)" (( "(") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(__s = (void *)FUN_00055780(), __s == (void *)0x0)" (( "(") (comma_expression "__s = (void *)FUN_00055780(), __s == (void *)0x0" (assignment_expression "__s = (void *)FUN_00055780()" (identifier "__s") (= "=") (cast_expression "(void *)FUN_00055780()" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00055780()" (identifier "FUN_00055780") (argument_list "()" (( "(") () ")"))))) (, ",") (binary_expression "__s == (void *)0x0" (identifier "__s") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n        piVar6[3] = 0;\n        FUN_00044000(piVar6);\n        return param_4;\n      }" ({ "{") (expression_statement "piVar6[3] = 0;" (assignment_expression "piVar6[3] = 0" (subscript_expression "piVar6[3]" (identifier "piVar6") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_00044000(piVar6);" (call_expression "FUN_00044000(piVar6)" (identifier "FUN_00044000") (argument_list "(piVar6)" (( "(") (identifier "piVar6") () ")"))) (; ";")) (return_statement "return param_4;" (return "return") (identifier "param_4") (; ";")) (} "}"))) (expression_statement "memset(__s,0,param_3);" (call_expression "memset(__s,0,param_3)" (identifier "memset") (argument_list "(__s,0,param_3)" (( "(") (identifier "__s") (, ",") (number_literal "0") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "piVar6[3] = (int)__s;" (assignment_expression "piVar6[3] = (int)__s" (subscript_expression "piVar6[3]" (identifier "piVar6") ([ "[") (number_literal "3") (] "]")) (= "=") (cast_expression "(int)__s" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s"))) (; ";")) (expression_statement "memcpy(__s,param_2,param_3);" (call_expression "memcpy(__s,param_2,param_3)" (identifier "memcpy") (argument_list "(__s,param_2,param_3)" (( "(") (identifier "__s") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (} "}")))) (expression_statement "piVar6[4] = param_3;" (assignment_expression "piVar6[4] = param_3" (subscript_expression "piVar6[4]" (identifier "piVar6") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;" (assignment_expression "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 4) + 1" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar7 = (int *)(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8);" (assignment_expression "piVar7 = (int *)(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8)" (identifier "piVar7") (= "=") (cast_expression "(int *)(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (binary_expression "(*(int *)(param_1 + 0xc) - 1U & uVar2) * 8" (parenthesized_expression "(*(int *)(param_1 + 0xc) - 1U & uVar2)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) - 1U & uVar2" (binary_expression "*(int *)(param_1 + 0xc) - 1U" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (- "-") (number_literal "1U")) (& "&") (identifier "uVar2")) () ")")) (* "*") (number_literal "8"))) () ")")))) (; ";")) (expression_statement "iVar8 = piVar7[1];" (assignment_expression "iVar8 = piVar7[1]" (identifier "iVar8") (= "=") (subscript_expression "piVar7[1]" (identifier "piVar7") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (iVar8 == 0) {\n      iVar8 = *(int *)(param_1 + 8);\n      *piVar6 = iVar8;\n      if (iVar8 != 0) {\n        *(int **)(iVar8 + 4) = piVar6;\n      }\n      piVar6[1] = 0;\n      *(int **)(param_1 + 8) = piVar6;\n    }\n    else {\n      *piVar6 = iVar8;\n      puVar1 = *(undefined4 **)(iVar8 + 4);\n      piVar6[1] = (int)puVar1;\n      if (puVar1 == (undefined4 *)0x0) {\n        *(int **)(param_1 + 8) = piVar6;\n      }\n      else {\n        *puVar1 = piVar6;\n      }\n      *(int **)(iVar8 + 4) = piVar6;\n    }" (if "if") (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar8 = *(int *)(param_1 + 8);\n      *piVar6 = iVar8;\n      if (iVar8 != 0) {\n        *(int **)(iVar8 + 4) = piVar6;\n      }\n      piVar6[1] = 0;\n      *(int **)(param_1 + 8) = piVar6;\n    }" ({ "{") (expression_statement "iVar8 = *(int *)(param_1 + 8);" (assignment_expression "iVar8 = *(int *)(param_1 + 8)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "*piVar6 = iVar8;" (assignment_expression "*piVar6 = iVar8" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (= "=") (identifier "iVar8")) (; ";")) (if_statement "if (iVar8 != 0) {\n        *(int **)(iVar8 + 4) = piVar6;\n      }" (if "if") (parenthesized_expression "(iVar8 != 0)" (( "(") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        *(int **)(iVar8 + 4) = piVar6;\n      }" ({ "{") (expression_statement "*(int **)(iVar8 + 4) = piVar6;" (assignment_expression "*(int **)(iVar8 + 4) = piVar6" (pointer_expression "*(int **)(iVar8 + 4)" (* "*") (cast_expression "(int **)(iVar8 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar8 + 4)" (( "(") (binary_expression "iVar8 + 4" (identifier "iVar8") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "piVar6")) (; ";")) (} "}"))) (expression_statement "piVar6[1] = 0;" (assignment_expression "piVar6[1] = 0" (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int **)(param_1 + 8) = piVar6;" (assignment_expression "*(int **)(param_1 + 8) = piVar6" (pointer_expression "*(int **)(param_1 + 8)" (* "*") (cast_expression "(int **)(param_1 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "piVar6")) (; ";")) (} "}")) (else_clause "else {\n      *piVar6 = iVar8;\n      puVar1 = *(undefined4 **)(iVar8 + 4);\n      piVar6[1] = (int)puVar1;\n      if (puVar1 == (undefined4 *)0x0) {\n        *(int **)(param_1 + 8) = piVar6;\n      }\n      else {\n        *puVar1 = piVar6;\n      }\n      *(int **)(iVar8 + 4) = piVar6;\n    }" (else "else") (compound_statement "{\n      *piVar6 = iVar8;\n      puVar1 = *(undefined4 **)(iVar8 + 4);\n      piVar6[1] = (int)puVar1;\n      if (puVar1 == (undefined4 *)0x0) {\n        *(int **)(param_1 + 8) = piVar6;\n      }\n      else {\n        *puVar1 = piVar6;\n      }\n      *(int **)(iVar8 + 4) = piVar6;\n    }" ({ "{") (expression_statement "*piVar6 = iVar8;" (assignment_expression "*piVar6 = iVar8" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (= "=") (identifier "iVar8")) (; ";")) (expression_statement "puVar1 = *(undefined4 **)(iVar8 + 4);" (assignment_expression "puVar1 = *(undefined4 **)(iVar8 + 4)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)(iVar8 + 4)" (* "*") (cast_expression "(undefined4 **)(iVar8 + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar8 + 4)" (( "(") (binary_expression "iVar8 + 4" (identifier "iVar8") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "piVar6[1] = (int)puVar1;" (assignment_expression "piVar6[1] = (int)puVar1" (subscript_expression "piVar6[1]" (identifier "piVar6") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1"))) (; ";")) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n        *(int **)(param_1 + 8) = piVar6;\n      }\n      else {\n        *puVar1 = piVar6;\n      }" (if "if") (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 == (undefined4 *)0x0" (identifier "puVar1") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        *(int **)(param_1 + 8) = piVar6;\n      }" ({ "{") (expression_statement "*(int **)(param_1 + 8) = piVar6;" (assignment_expression "*(int **)(param_1 + 8) = piVar6" (pointer_expression "*(int **)(param_1 + 8)" (* "*") (cast_expression "(int **)(param_1 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "piVar6")) (; ";")) (} "}")) (else_clause "else {\n        *puVar1 = piVar6;\n      }" (else "else") (compound_statement "{\n        *puVar1 = piVar6;\n      }" ({ "{") (expression_statement "*puVar1 = piVar6;" (assignment_expression "*puVar1 = piVar6" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "piVar6")) (; ";")) (} "}")))) (expression_statement "*(int **)(iVar8 + 4) = piVar6;" (assignment_expression "*(int **)(iVar8 + 4) = piVar6" (pointer_expression "*(int **)(iVar8 + 4)" (* "*") (cast_expression "(int **)(iVar8 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar8 + 4)" (( "(") (binary_expression "iVar8 + 4" (identifier "iVar8") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "piVar6")) (; ";")) (} "}")))) (expression_statement "*piVar7 = *piVar7 + 1;" (assignment_expression "*piVar7 = *piVar7 + 1" (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) (= "=") (binary_expression "*piVar7 + 1" (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar7[1] = (int)piVar6;" (assignment_expression "piVar7[1] = (int)piVar6" (subscript_expression "piVar7[1]" (identifier "piVar7") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(int)piVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar6"))) (; ";")) (expression_statement "piVar6[2] = param_4;" (assignment_expression "piVar6[2] = param_4" (subscript_expression "piVar6[2]" (identifier "piVar6") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_4")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (labeled_statement "LAB_0011e007:\n  param_1[4] = '\0';" (statement_identifier "LAB_0011e007") (: ":") (expression_statement "param_1[4] = '\0';" (assignment_expression "param_1[4] = '\0'" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";"))) (expression_statement "param_1[5] = '\0';" (assignment_expression "param_1[5] = '\0'" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "param_1[6] = '\0';" (assignment_expression "param_1[6] = '\0'" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "param_1[7] = '\0';" (assignment_expression "param_1[7] = '\0'" (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (return_statement "return param_4;" (return "return") (identifier "param_4") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void * __regparm3 function_1(type_1 *pH,void *var_12,int nKey,void *var_6)

{
  type_2 *var_16;
  type_2 *var_17;
  type_3 var_1;
  type_3 var_2;
  int var_5;
  type_2 *var_4;
  void *var_13;
  type_4 *p_Var9;
  int var_3;
  type_5 in_stack_ffffffc4;
  type_6 *pcVar4;
  
  pcVar4 = fts3StrHash;
  if (pH->keyClass != '\x01') {
    pcVar4 = fts3BinHash;
  }
  var_1 = (*pcVar4)(var_12,nKey);
  var_2 = pH->htsize - 1U & var_1;
  if (pH->ht != (type_4 *)0x0) {
    p_Var9 = pH->ht + var_2;
    var_3 = p_Var9->count;
    pcVar4 = fts3StrCompare;
    if (pH->keyClass != '\x01') {
      pcVar4 = fts3BinCompare;
    }
    var_4 = p_Var9->chain;
    if ((var_3 != 0) && (var_4 != (type_2 *)0x0)) {
      do {
        var_3 = var_3 + -1;
        var_5 = (*pcVar4)(var_4->var_12,var_4->nKey,var_12,nKey);
        if (var_5 == 0) {
          var_13 = var_4->var_6;
          if (var_6 != (void *)0x0) {
            var_4->var_6 = var_6;
            return var_13;
          }
          if (var_4->prev == (type_2 *)0x0) {
            pH->first = var_4->next;
          }
          else {
            var_4->prev->next = var_4->next;
          }
          if (var_4->next != (type_2 *)0x0) {
            var_4->next->prev = var_4->prev;
          }
          p_Var9 = pH->ht + var_2;
          if (p_Var9->chain == var_4) {
            p_Var9->chain = var_4->next;
          }
          var_3 = p_Var9->count + -1;
          p_Var9->count = var_3;
          if (var_3 < 1) {
            p_Var9->chain = (type_2 *)0x0;
          }
          if ((pH->copyKey != '\0') && (var_4->var_12 != (void *)0x0)) {
            var_7(var_4->var_12);
          }
          var_7(var_4);
          var_3 = pH->count + -1;
          pH->count = var_3;
          if (0 < var_3) {
            return var_13;
          }
          var_8(pH);
          return var_13;
        }
        var_4 = var_4->next;
      } while (var_3 != 0 && var_4 != (type_2 *)0x0);
    }
  }
  if (var_6 == (void *)0x0) {
    return (void *)0x0;
  }
  var_3 = pH->htsize;
  if (var_3 == 0) {
    var_3 = var_9(pH,8);
    if (var_3 != 0) goto LAB_0011e007;
    var_3 = pH->htsize;
  }
  if ((pH->count < var_3) || (var_3 = var_9(pH,var_3 * 2), var_3 == 0)) {
    var_3 = var_10();
    if ((var_3 != 0) ||
       (var_4 = (type_2 *)var_11(in_stack_ffffffc4), var_4 == (type_2 *)0x0)) {
      return var_6;
    }
    var_4->next = (type_2 *)0x0;
    var_4->prev = (type_2 *)0x0;
    var_4->var_6 = (void *)0x0;
    var_4->var_12 = (void *)0x0;
    var_4->nKey = 0;
    if ((pH->copyKey == '\0') || (var_12 == (void *)0x0)) {
      var_4->var_12 = var_12;
    }
    else {
      var_3 = var_10();
      if ((var_3 != 0) || (var_13 = var_11(in_stack_ffffffc4), var_13 == (void *)0x0)) {
        var_4->var_12 = (void *)0x0;
        var_7(var_4);
        return var_6;
      }
      var_14(var_13,0,nKey);
      var_4->var_12 = var_13;
      var_15(var_13,var_12,nKey);
    }
    var_4->nKey = nKey;
    pH->count = pH->count + 1;
    p_Var9 = pH->ht + (pH->htsize - 1U & var_1);
    var_16 = p_Var9->chain;
    if (var_16 == (type_2 *)0x0) {
      var_16 = pH->first;
      var_4->next = var_16;
      if (var_16 != (type_2 *)0x0) {
        var_16->prev = var_4;
      }
      var_4->prev = (type_2 *)0x0;
      pH->first = var_4;
    }
    else {
      var_4->next = var_16;
      var_17 = var_16->prev;
      var_4->prev = var_17;
      if (var_17 == (type_2 *)0x0) {
        pH->first = var_4;
      }
      else {
        var_17->next = var_4;
      }
      var_16->prev = var_4;
    }
    p_Var9->count = p_Var9->count + 1;
    p_Var9->chain = var_4;
    var_4->var_6 = var_6;
    return (void *)0x0;
  }
LAB_0011e007:
  pH->count = 0;
  return var_6;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3 MASKED(char *param_1,void *param_2,size_t param_3,int param_4)

{
  undefined4 *puVar1;
  uint uVar2;
  int iVar4;
  int iVar5;
  void *__s;
  int *piVar6;
  int *piVar7;
  int iVar8;
  code *pcVar3;
  
  pcVar3 = FUN_000423a0;
  if (*param_1 != '\x01') {
    pcVar3 = FUN_0003ee50;
  }
  uVar2 = (*pcVar3)(param_2,param_3);
  if (*(int *)(param_1 + 0x10) != 0) {
    iVar4 = (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8;
    piVar6 = (int *)(*(int *)(param_1 + 0x10) + iVar4);
    iVar8 = *piVar6;
    pcVar3 = FUN_000432e0;
    if (*param_1 != '\x01') {
      pcVar3 = FUN_00042ee0;
    }
    piVar6 = (int *)piVar6[1];
    if ((iVar8 != 0) && (piVar6 != (int *)0x0)) {
      do {
        iVar8 = iVar8 + -1;
        iVar5 = (*pcVar3)(piVar6[3],piVar6[4],param_2,param_3);
        if (iVar5 == 0) {
          iVar8 = piVar6[2];
          if (param_4 != 0) {
            piVar6[2] = param_4;
            return iVar8;
          }
          if ((int *)piVar6[1] == (int *)0x0) {
            *(int *)(param_1 + 8) = *piVar6;
          }
          else {
            *(int *)piVar6[1] = *piVar6;
          }
          if (*piVar6 != 0) {
            *(int *)(*piVar6 + 4) = piVar6[1];
          }
          piVar7 = (int *)(iVar4 + *(int *)(param_1 + 0x10));
          if ((int *)piVar7[1] == piVar6) {
            piVar7[1] = *piVar6;
          }
          iVar4 = *piVar7;
          *piVar7 = iVar4 + -1;
          if (iVar4 + -1 < 1) {
            piVar7[1] = 0;
          }
          if ((param_1[1] != '\0') && (piVar6[3] != 0)) {
            FUN_00044000(piVar6[3]);
          }
          FUN_00044000(piVar6);
          iVar4 = *(int *)(param_1 + 4);
          *(int *)(param_1 + 4) = iVar4 + -1;
          if (0 < iVar4 + -1) {
            return iVar8;
          }
          FUN_0005b320();
          return iVar8;
        }
        piVar6 = (int *)*piVar6;
      } while (iVar8 != 0 && piVar6 != (int *)0x0);
    }
  }
  if (param_4 == 0) {
    return 0;
  }
  iVar8 = *(int *)(param_1 + 0xc);
  if (iVar8 == 0) {
    iVar8 = FUN_0011a410();
    if (iVar8 != 0) goto LAB_0011e007;
    iVar8 = *(int *)(param_1 + 0xc);
  }
  if ((*(int *)(param_1 + 4) < iVar8) || (iVar8 = FUN_0011a410(), iVar8 == 0)) {
    iVar8 = FUN_00067fc0();
    if ((iVar8 != 0) || (piVar6 = (int *)FUN_00055780(), piVar6 == (int *)0x0)) {
      return param_4;
    }
    *piVar6 = 0;
    piVar6[1] = 0;
    piVar6[2] = 0;
    piVar6[3] = 0;
    piVar6[4] = 0;
    if ((param_1[1] == '\0') || (param_2 == (void *)0x0)) {
      piVar6[3] = (int)param_2;
    }
    else {
      iVar8 = FUN_00067fc0();
      if ((iVar8 != 0) || (__s = (void *)FUN_00055780(), __s == (void *)0x0)) {
        piVar6[3] = 0;
        FUN_00044000(piVar6);
        return param_4;
      }
      memset(__s,0,param_3);
      piVar6[3] = (int)__s;
      memcpy(__s,param_2,param_3);
    }
    piVar6[4] = param_3;
    *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;
    piVar7 = (int *)(*(int *)(param_1 + 0x10) + (*(int *)(param_1 + 0xc) - 1U & uVar2) * 8);
    iVar8 = piVar7[1];
    if (iVar8 == 0) {
      iVar8 = *(int *)(param_1 + 8);
      *piVar6 = iVar8;
      if (iVar8 != 0) {
        *(int **)(iVar8 + 4) = piVar6;
      }
      piVar6[1] = 0;
      *(int **)(param_1 + 8) = piVar6;
    }
    else {
      *piVar6 = iVar8;
      puVar1 = *(undefined4 **)(iVar8 + 4);
      piVar6[1] = (int)puVar1;
      if (puVar1 == (undefined4 *)0x0) {
        *(int **)(param_1 + 8) = piVar6;
      }
      else {
        *puVar1 = piVar6;
      }
      *(int **)(iVar8 + 4) = piVar6;
    }
    *piVar7 = *piVar7 + 1;
    piVar7[1] = (int)piVar6;
    piVar6[2] = param_4;
    return 0;
  }
LAB_0011e007:
  param_1[4] = '\0';
  param_1[5] = '\0';
  param_1[6] = '\0';
  param_1[7] = '\0';
  return param_4;
}

