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

void * __regparm3 sqlite3HashInsert(Hash *pH,char *pKey,void *data)

{
  byte bVar1;
  void *pvVar2;
  HashElem *pNew;
  HashElem *pHVar3;
  HashElem *pHVar4;
  _ht *p_Var5;
  uint uVar6;
  uint uVar7;
  uint uVar8;
  _ht *p_Var9;
  void *pvVar10;
  byte *pbVar11;
  int in_GS_OFFSET;
  u64 in_stack_ffffffb4;
  uint h;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x4645d;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  pHVar4 = findElementWithHash(pH,pKey,&h);
  pvVar2 = pHVar4->data;
  pvVar10 = pvVar2;
  if (pvVar2 != (void *)0x0) {
    if (data == (void *)0x0) {
      if (pHVar4->prev == (HashElem *)0x0) {
        pH->first = pHVar4->next;
      }
      else {
        pHVar4->prev->next = pHVar4->next;
      }
      if (pHVar4->next != (HashElem *)0x0) {
        pHVar4->next->prev = pHVar4->prev;
      }
      if (pH->ht != (_ht *)0x0) {
        p_Var5 = pH->ht + h;
        if (pHVar4 == p_Var5->chain) {
          p_Var5->chain = pHVar4->next;
        }
        p_Var5->count = p_Var5->count + -1;
      }
      sqlite3_free(pHVar4);
      uVar7 = pH->count - 1;
      pH->count = uVar7;
      if (uVar7 == 0) {
        sqlite3HashClear(pH);
      }
    }
    else {
      pHVar4->data = data;
      pHVar4->pKey = pKey;
    }
    goto LAB_00046498;
  }
  if ((data == (void *)0x0) ||
     (pHVar4 = (HashElem *)sqlite3Malloc(in_stack_ffffffb4), pvVar10 = data,
     pHVar4 == (HashElem *)0x0)) goto LAB_00046498;
  pHVar4->data = data;
  pHVar4->pKey = pKey;
  uVar7 = pH->count + 1;
  pH->count = uVar7;
  if ((uVar7 < 10) || (uVar7 <= pH->htsize * 2)) {
LAB_000464ef:
    p_Var9 = pH->ht;
  }
  else {
    uVar6 = 0x80;
    if (uVar7 * 0x10 < 0x401) {
      uVar6 = uVar7 * 2;
    }
    if (pH->htsize == uVar6) goto LAB_000464ef;
    if (sqlite3Hooks.xBenignBegin != (_func_void *)0x0) {
      (*sqlite3Hooks.xBenignBegin)();
    }
    p_Var5 = (_ht *)sqlite3Malloc(in_stack_ffffffb4);
    if (sqlite3Hooks.xBenignEnd != (_func_void *)0x0) {
      (*sqlite3Hooks.xBenignEnd)();
    }
    p_Var9 = pH->ht;
    if (p_Var5 != (_ht *)0x0) {
      sqlite3_free(p_Var9);
      pH->ht = p_Var5;
      uVar7 = (*sqlite3Config.m.xSize)(p_Var5);
      pH->htsize = uVar7 >> 3;
      memset(p_Var5,0,uVar7 & 0xfffffff8);
      pNew = pH->first;
      pH->first = (HashElem *)0x0;
      while (pNew != (HashElem *)0x0) {
        pbVar11 = (byte *)pNew->pKey;
        bVar1 = *pbVar11;
        p_Var9 = p_Var5;
        if (bVar1 != 0) {
          uVar6 = 0;
          do {
            pbVar11 = pbVar11 + 1;
            uVar8 = (uint)bVar1;
            bVar1 = *pbVar11;
            uVar6 = (uVar6 + ""[uVar8]) * -0x61c8864f;
          } while (bVar1 != 0);
          p_Var9 = p_Var5 + uVar6 % (uVar7 >> 3);
        }
        pHVar3 = pNew->next;
        insertElement((Hash *)&pH->first,p_Var9,pNew);
        pNew = pHVar3;
      }
      uVar7 = 0;
      bVar1 = *pKey;
      while (bVar1 != 0) {
        pKey = (char *)((byte *)pKey + 1);
        uVar7 = (uVar7 + ""[bVar1]) * -0x61c8864f;
        bVar1 = *pKey;
      }
      h = uVar7 % pH->htsize;
      goto LAB_000464ef;
    }
  }
  if (p_Var9 != (_ht *)0x0) {
    p_Var9 = p_Var9 + h;
  }
  insertElement((Hash *)&pH->first,p_Var9,pHVar4);
  pvVar10 = pvVar2;
LAB_00046498:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return pvVar10;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

uint __regparm3 FUN_00046450(uint *param_1,char *param_2,uint param_3)

{
  int *piVar1;
  int iVar2;
  char cVar3;
  uint uVar4;
  undefined4 *puVar5;
  uint *puVar6;
  int iVar7;
  uint uVar8;
  void *__s;
  uint uVar9;
  char *pcVar10;
  int in_GS_OFFSET;
  int local_24;
  
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  puVar6 = (uint *)FUN_00037c80();
  uVar4 = puVar6[2];
  uVar8 = uVar4;
  if (uVar4 == 0) {
    if ((param_3 != 0) && (iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0)) {
      *(uint *)(iVar7 + 8) = param_3;
      *(char **)(iVar7 + 0xc) = param_2;
      uVar8 = param_1[1] + 1;
      param_1[1] = uVar8;
      if ((9 < uVar8) && (*param_1 * 2 < uVar8)) {
        uVar9 = 0x80;
        if (uVar8 * 0x10 < 0x401) {
          uVar9 = uVar8 * 2;
        }
        if (*param_1 != uVar9) {
          if (DAT_0017ddd4 != (code *)0x0) {
            (*DAT_0017ddd4)();
          }
          __s = (void *)FUN_000421f0();
          if (DAT_0017ddd8 != (code *)0x0) {
            (*DAT_0017ddd8)();
          }
          if (__s != (void *)0x0) {
            FUN_00042800(param_1[3]);
            param_1[3] = (uint)__s;
            uVar8 = (*DAT_0017c418)(__s);
            *param_1 = uVar8 >> 3;
            memset(__s,0,uVar8 & 0xfffffff8);
            puVar5 = (undefined4 *)param_1[2];
            param_1[2] = 0;
            while (puVar5 != (undefined4 *)0x0) {
              pcVar10 = (char *)puVar5[3];
              cVar3 = *pcVar10;
              while (cVar3 != '\0') {
                pcVar10 = pcVar10 + 1;
                cVar3 = *pcVar10;
              }
              puVar5 = (undefined4 *)*puVar5;
              FUN_000463f0();
            }
            cVar3 = *param_2;
            while (cVar3 != '\0') {
              param_2 = param_2 + 1;
              cVar3 = *param_2;
            }
          }
        }
      }
      FUN_000463f0();
      uVar8 = uVar4;
    }
  }
  else if (param_3 == 0) {
    if ((uint *)puVar6[1] == (uint *)0x0) {
      param_1[2] = *puVar6;
    }
    else {
      *(uint *)puVar6[1] = *puVar6;
    }
    if (*puVar6 != 0) {
      *(uint *)(*puVar6 + 4) = puVar6[1];
    }
    if (param_1[3] != 0) {
      piVar1 = (int *)(param_1[3] + local_24 * 8);
      if (puVar6 == (uint *)piVar1[1]) {
        piVar1[1] = *puVar6;
      }
      *piVar1 = *piVar1 + -1;
    }
    FUN_00042800(puVar6);
    uVar4 = param_1[1];
    param_1[1] = uVar4 - 1;
    if (uVar4 - 1 == 0) {
      FUN_000434c0();
    }
  }
  else {
    puVar6[2] = param_3;
    puVar6[3] = (uint)param_2;
  }
  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar8;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00116110();
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00017230
ADD EBX,0x1359cb
SUB ESP,0x3c
MOV dword ptr [ESP + 0x8],EBX
MOV EBX,ECX
LEA ECX,[ESP + 0x28]
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x2c],EAX
XOR EAX,EAX
MOV EAX,ESI
CALL 0x00037c80
MOV EDI,dword ptr [EAX + 0x8]
TEST EDI,EDI
JZ 0x000464b8
TEST EBX,EBX
JZ 0x00046670
MOV dword ptr [EAX + 0x8],EBX
MOV dword ptr [EAX + 0xc],EBP
MOV ESI,dword ptr [ESP + 0x2c]
XOR ESI,dword ptr GS:[0x14]
MOV EAX,EDI
JNZ 0x000466ff
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST EBX,EBX
JZ 0x00046498
MOV EAX,0x10
XOR EDX,EDX
CALL 0x000421f0
MOV dword ptr [ESP + 0x10],EAX
TEST EAX,EAX
JZ 0x000466d0
MOV dword ptr [EAX + 0x8],EBX
LEA EBX,[ESI + 0x8]
MOV dword ptr [EAX + 0xc],EBP
MOV EAX,dword ptr [ESI + 0x4]
MOV dword ptr [ESP + 0xc],EBX
ADD EAX,0x1
MOV dword ptr [ESI + 0x4],EAX
CMP EAX,0x9
JA 0x00046510
MOV EDX,dword ptr [ESI + 0xc]
TEST EDX,EDX
JZ 0x000464fd
MOV EAX,dword ptr [ESP + 0x28]
LEA EDX,[EDX + EAX*0x8]
MOV ECX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ESP + 0xc]
CALL 0x000463f0
JMP 0x00046498
MOV EDX,dword ptr [ESI]
LEA ECX,[EDX + EDX*0x1]
CMP EAX,ECX
JBE 0x000464ef
MOV ECX,EAX
MOV EBX,0x80
ADD EAX,EAX
SHL ECX,0x4
CMP ECX,0x401
CMOVC EBX,EAX
CMP EDX,EBX
JZ 0x000464ef
MOV EAX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [EAX + 0x1fac]
TEST EAX,EAX
JZ 0x00046542
CALL EAX
LEA EAX,[EBX*0x8 + 0x0]
XOR EDX,EDX
CALL 0x000421f0
MOV dword ptr [ESP + 0x14],EAX
MOV EAX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [EAX + 0x1fb0]
TEST EAX,EAX
JZ 0x00046564
CALL EAX
MOV EBX,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [ESI + 0xc]
TEST EBX,EBX
JZ 0x000464f2
SUB ESP,0xc
PUSH EDX
CALL 0x00042800
MOV EAX,dword ptr [ESP + 0x18]
MOV dword ptr [ESI + 0xc],EBX
MOV dword ptr [ESP],EBX
CALL dword ptr [EAX + 0x5f0]
MOV ECX,EAX
AND EAX,0xfffffff8
SHR ECX,0x3
MOV dword ptr [ESP + 0x28],ECX
ADD ESP,0xc
MOV dword ptr [ESI],ECX
PUSH EAX
PUSH 0x0
PUSH EBX
MOV EBX,dword ptr [ESP + 0x18]
CALL 0x00015440
MOV ECX,dword ptr [ESI + 0x8]
ADD ESP,0x10
MOV dword ptr [ESI + 0x8],0x0
TEST ECX,ECX
JZ 0x0004662c
MOV EBX,dword ptr [ESP + 0x18]
MOV dword ptr [ESP + 0x1c],ESI
MOV dword ptr [ESP + 0x18],EDI
MOV ESI,dword ptr [ESP + 0x14]
MOV dword ptr [ESP + 0x14],EBP
LEA ESI,[ESI]
NOP
MOV EAX,dword ptr [ECX + 0xc]
MOVZX EDX,byte ptr [EAX]
LEA EDI,[EAX + 0x1]
TEST DL,DL
JZ 0x000466f8
MOV EBP,dword ptr [ESP + 0x8]
XOR EAX,EAX
LEA EBP,[EBP + 0xfffb08b8]
LEA ESI,[ESI]
MOVZX EDX,byte ptr [EBP + EDX*0x1]
ADD EDI,0x1
ADD EAX,EDX
MOVZX EDX,byte ptr [EDI + -0x1]
IMUL EAX,EAX,-0x61c8864f
TEST DL,DL
JNZ 0x000465f0
XOR EDX,EDX
DIV EBX
LEA EDX,[ESI + EDX*0x8]
MOV EDI,dword ptr [ECX]
MOV EAX,dword ptr [ESP + 0xc]
CALL 0x000463f0
MOV ECX,EDI
TEST EDI,EDI
JNZ 0x000465d0
MOV EDI,dword ptr [ESP + 0x18]
MOV ESI,dword ptr [ESP + 0x1c]
MOV EBP,dword ptr [ESP + 0x14]
MOV EBX,dword ptr [ESP + 0x8]
MOVZX EDX,byte ptr [EBP]
LEA ECX,[EBP + 0x1]
XOR EAX,EAX
LEA EBX,[EBX + 0xfffb08b8]
TEST DL,DL
JZ 0x0004665f
LEA ESI,[ESI]
NOP
MOVZX EDX,byte ptr [EBX + EDX*0x1]
ADD ECX,0x1
ADD EAX,EDX
MOVZX EDX,byte ptr [ECX + -0x1]
IMUL EAX,EAX,-0x61c8864f
TEST DL,DL
JNZ 0x00046648
XOR EDX,EDX
DIV dword ptr [ESI]
MOV dword ptr [ESP + 0x28],EDX
JMP 0x000464ef
MOV EDX,dword ptr [EAX + 0x4]
MOV ECX,dword ptr [ESP + 0x28]
MOV EBX,dword ptr [EAX]
TEST EDX,EDX
JZ 0x000466f0
MOV dword ptr [EDX],EBX
MOV EDX,dword ptr [EAX]
TEST EDX,EDX
JZ 0x0004668b
MOV EBX,dword ptr [EAX + 0x4]
MOV dword ptr [EDX + 0x4],EBX
MOV EDX,dword ptr [ESI + 0xc]
TEST EDX,EDX
JZ 0x0004669d
LEA EDX,[EDX + ECX*0x8]
CMP EAX,dword ptr [EDX + 0x4]
JZ 0x000466e0
SUB dword ptr [EDX],0x1
SUB ESP,0xc
PUSH EAX
CALL 0x00042800
MOV EAX,dword ptr [ESI + 0x4]
ADD ESP,0x10
SUB EAX,0x1
MOV dword ptr [ESI + 0x4],EAX
TEST EAX,EAX
JNZ 0x00046498
MOV EAX,ESI
CALL 0x000434c0
JMP 0x00046498
MOV EDI,EBX
JMP 0x00046498
MOV ECX,dword ptr [EAX]
MOV dword ptr [EDX + 0x4],ECX
JMP 0x0004669a
MOV dword ptr [ESI + 0x8],EBX
JMP 0x0004667f
MOV EDX,ESI
JMP 0x0004660f
CALL 0x00116110
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint __regparm3 FUN_00046450(uint *param_1,char *param_2,uint param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  uint uVar4;\n  undefined4 *puVar5;\n  uint *puVar6;\n  int iVar7;\n  uint uVar8;\n  void *__s;\n  uint uVar9;\n  char *pcVar10;\n  int in_GS_OFFSET;\n  int local_24;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar6 = (uint *)FUN_00037c80();\n  uVar4 = puVar6[2];\n  uVar8 = uVar4;\n  if (uVar4 == 0) {\n    if ((param_3 != 0) && (iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0)) {\n      *(uint *)(iVar7 + 8) = param_3;\n      *(char **)(iVar7 + 0xc) = param_2;\n      uVar8 = param_1[1] + 1;\n      param_1[1] = uVar8;\n      if ((9 < uVar8) && (*param_1 * 2 < uVar8)) {\n        uVar9 = 0x80;\n        if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }\n        if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }\n      }\n      FUN_000463f0();\n      uVar8 = uVar4;\n    }\n  }\n  else if (param_3 == 0) {\n    if ((uint *)puVar6[1] == (uint *)0x0) {\n      param_1[2] = *puVar6;\n    }\n    else {\n      *(uint *)puVar6[1] = *puVar6;\n    }\n    if (*puVar6 != 0) {\n      *(uint *)(*puVar6 + 4) = puVar6[1];\n    }\n    if (param_1[3] != 0) {\n      piVar1 = (int *)(param_1[3] + local_24 * 8);\n      if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }\n      *piVar1 = *piVar1 + -1;\n    }\n    FUN_00042800(puVar6);\n    uVar4 = param_1[1];\n    param_1[1] = uVar4 - 1;\n    if (uVar4 - 1 == 0) {\n      FUN_000434c0();\n    }\n  }\n  else {\n    puVar6[2] = param_3;\n    puVar6[3] = (uint)param_2;\n  }\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar8;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}\n\n" comment (function_definition "uint __regparm3 FUN_00046450(uint *param_1,char *param_2,uint param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  uint uVar4;\n  undefined4 *puVar5;\n  uint *puVar6;\n  int iVar7;\n  uint uVar8;\n  void *__s;\n  uint uVar9;\n  char *pcVar10;\n  int in_GS_OFFSET;\n  int local_24;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar6 = (uint *)FUN_00037c80();\n  uVar4 = puVar6[2];\n  uVar8 = uVar4;\n  if (uVar4 == 0) {\n    if ((param_3 != 0) && (iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0)) {\n      *(uint *)(iVar7 + 8) = param_3;\n      *(char **)(iVar7 + 0xc) = param_2;\n      uVar8 = param_1[1] + 1;\n      param_1[1] = uVar8;\n      if ((9 < uVar8) && (*param_1 * 2 < uVar8)) {\n        uVar9 = 0x80;\n        if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }\n        if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }\n      }\n      FUN_000463f0();\n      uVar8 = uVar4;\n    }\n  }\n  else if (param_3 == 0) {\n    if ((uint *)puVar6[1] == (uint *)0x0) {\n      param_1[2] = *puVar6;\n    }\n    else {\n      *(uint *)puVar6[1] = *puVar6;\n    }\n    if (*puVar6 != 0) {\n      *(uint *)(*puVar6 + 4) = puVar6[1];\n    }\n    if (param_1[3] != 0) {\n      piVar1 = (int *)(param_1[3] + local_24 * 8);\n      if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }\n      *piVar1 = *piVar1 + -1;\n    }\n    FUN_00042800(puVar6);\n    uVar4 = param_1[1];\n    param_1[1] = uVar4 - 1;\n    if (uVar4 - 1 == 0) {\n      FUN_000434c0();\n    }\n  }\n  else {\n    puVar6[2] = param_3;\n    puVar6[3] = (uint)param_2;\n  }\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar8;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00046450(uint *param_1,char *param_2,uint param_3)" identifier (parameter_list "(uint *param_1,char *param_2,uint param_3)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  uint uVar4;\n  undefined4 *puVar5;\n  uint *puVar6;\n  int iVar7;\n  uint uVar8;\n  void *__s;\n  uint uVar9;\n  char *pcVar10;\n  int in_GS_OFFSET;\n  int local_24;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar6 = (uint *)FUN_00037c80();\n  uVar4 = puVar6[2];\n  uVar8 = uVar4;\n  if (uVar4 == 0) {\n    if ((param_3 != 0) && (iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0)) {\n      *(uint *)(iVar7 + 8) = param_3;\n      *(char **)(iVar7 + 0xc) = param_2;\n      uVar8 = param_1[1] + 1;\n      param_1[1] = uVar8;\n      if ((9 < uVar8) && (*param_1 * 2 < uVar8)) {\n        uVar9 = 0x80;\n        if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }\n        if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }\n      }\n      FUN_000463f0();\n      uVar8 = uVar4;\n    }\n  }\n  else if (param_3 == 0) {\n    if ((uint *)puVar6[1] == (uint *)0x0) {\n      param_1[2] = *puVar6;\n    }\n    else {\n      *(uint *)puVar6[1] = *puVar6;\n    }\n    if (*puVar6 != 0) {\n      *(uint *)(*puVar6 + 4) = puVar6[1];\n    }\n    if (param_1[3] != 0) {\n      piVar1 = (int *)(param_1[3] + local_24 * 8);\n      if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }\n      *piVar1 = *piVar1 + -1;\n    }\n    FUN_00042800(puVar6);\n    uVar4 = param_1[1];\n    param_1[1] = uVar4 - 1;\n    if (uVar4 - 1 == 0) {\n      FUN_000434c0();\n    }\n  }\n  else {\n    puVar6[2] = param_3;\n    puVar6[3] = (uint)param_2;\n  }\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar8;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "void *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "puVar6 = (uint *)FUN_00037c80();" (assignment_expression "puVar6 = (uint *)FUN_00037c80()" identifier = (cast_expression "(uint *)FUN_00037c80()" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00037c80()" identifier (argument_list "()" ( ))))) ;) (expression_statement "uVar4 = puVar6[2];" (assignment_expression "uVar4 = puVar6[2]" identifier = (subscript_expression "puVar6[2]" identifier [ number_literal ])) ;) (expression_statement "uVar8 = uVar4;" (assignment_expression "uVar8 = uVar4" identifier = identifier) ;) (if_statement "if (uVar4 == 0) {\n    if ((param_3 != 0) && (iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0)) {\n      *(uint *)(iVar7 + 8) = param_3;\n      *(char **)(iVar7 + 0xc) = param_2;\n      uVar8 = param_1[1] + 1;\n      param_1[1] = uVar8;\n      if ((9 < uVar8) && (*param_1 * 2 < uVar8)) {\n        uVar9 = 0x80;\n        if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }\n        if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }\n      }\n      FUN_000463f0();\n      uVar8 = uVar4;\n    }\n  }\n  else if (param_3 == 0) {\n    if ((uint *)puVar6[1] == (uint *)0x0) {\n      param_1[2] = *puVar6;\n    }\n    else {\n      *(uint *)puVar6[1] = *puVar6;\n    }\n    if (*puVar6 != 0) {\n      *(uint *)(*puVar6 + 4) = puVar6[1];\n    }\n    if (param_1[3] != 0) {\n      piVar1 = (int *)(param_1[3] + local_24 * 8);\n      if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }\n      *piVar1 = *piVar1 + -1;\n    }\n    FUN_00042800(puVar6);\n    uVar4 = param_1[1];\n    param_1[1] = uVar4 - 1;\n    if (uVar4 - 1 == 0) {\n      FUN_000434c0();\n    }\n  }\n  else {\n    puVar6[2] = param_3;\n    puVar6[3] = (uint)param_2;\n  }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    if ((param_3 != 0) && (iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0)) {\n      *(uint *)(iVar7 + 8) = param_3;\n      *(char **)(iVar7 + 0xc) = param_2;\n      uVar8 = param_1[1] + 1;\n      param_1[1] = uVar8;\n      if ((9 < uVar8) && (*param_1 * 2 < uVar8)) {\n        uVar9 = 0x80;\n        if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }\n        if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }\n      }\n      FUN_000463f0();\n      uVar8 = uVar4;\n    }\n  }" { (if_statement "if ((param_3 != 0) && (iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0)) {\n      *(uint *)(iVar7 + 8) = param_3;\n      *(char **)(iVar7 + 0xc) = param_2;\n      uVar8 = param_1[1] + 1;\n      param_1[1] = uVar8;\n      if ((9 < uVar8) && (*param_1 * 2 < uVar8)) {\n        uVar9 = 0x80;\n        if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }\n        if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }\n      }\n      FUN_000463f0();\n      uVar8 = uVar4;\n    }" if (parenthesized_expression "((param_3 != 0) && (iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0))" ( (binary_expression "(param_3 != 0) && (iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0)" (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0)" ( (comma_expression "iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0" (assignment_expression "iVar7 = FUN_000421f0()" identifier = (call_expression "FUN_000421f0()" identifier (argument_list "()" ( )))) , (comma_expression "uVar8 = param_3, iVar7 != 0" (assignment_expression "uVar8 = param_3" identifier = identifier) , (binary_expression "iVar7 != 0" identifier != number_literal))) ))) )) (compound_statement "{\n      *(uint *)(iVar7 + 8) = param_3;\n      *(char **)(iVar7 + 0xc) = param_2;\n      uVar8 = param_1[1] + 1;\n      param_1[1] = uVar8;\n      if ((9 < uVar8) && (*param_1 * 2 < uVar8)) {\n        uVar9 = 0x80;\n        if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }\n        if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }\n      }\n      FUN_000463f0();\n      uVar8 = uVar4;\n    }" { (expression_statement "*(uint *)(iVar7 + 8) = param_3;" (assignment_expression "*(uint *)(iVar7 + 8) = param_3" (pointer_expression "*(uint *)(iVar7 + 8)" * (cast_expression "(uint *)(iVar7 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 8)" ( (binary_expression "iVar7 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(char **)(iVar7 + 0xc) = param_2;" (assignment_expression "*(char **)(iVar7 + 0xc) = param_2" (pointer_expression "*(char **)(iVar7 + 0xc)" * (cast_expression "(char **)(iVar7 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar7 + 0xc)" ( (binary_expression "iVar7 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar8 = param_1[1] + 1;" (assignment_expression "uVar8 = param_1[1] + 1" identifier = (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "param_1[1] = uVar8;" (assignment_expression "param_1[1] = uVar8" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((9 < uVar8) && (*param_1 * 2 < uVar8)) {\n        uVar9 = 0x80;\n        if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }\n        if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }\n      }" if (parenthesized_expression "((9 < uVar8) && (*param_1 * 2 < uVar8))" ( (binary_expression "(9 < uVar8) && (*param_1 * 2 < uVar8)" (parenthesized_expression "(9 < uVar8)" ( (binary_expression "9 < uVar8" number_literal < identifier) )) && (parenthesized_expression "(*param_1 * 2 < uVar8)" ( (binary_expression "*param_1 * 2 < uVar8" (binary_expression "*param_1 * 2" (pointer_expression "*param_1" * identifier) * number_literal) < identifier) ))) )) (compound_statement "{\n        uVar9 = 0x80;\n        if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }\n        if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }\n      }" { (expression_statement "uVar9 = 0x80;" (assignment_expression "uVar9 = 0x80" identifier = number_literal) ;) (if_statement "if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }" if (parenthesized_expression "(uVar8 * 0x10 < 0x401)" ( (binary_expression "uVar8 * 0x10 < 0x401" (binary_expression "uVar8 * 0x10" identifier * number_literal) < number_literal) )) (compound_statement "{\n          uVar9 = uVar8 * 2;\n        }" { (expression_statement "uVar9 = uVar8 * 2;" (assignment_expression "uVar9 = uVar8 * 2" identifier = (binary_expression "uVar8 * 2" identifier * number_literal)) ;) })) (if_statement "if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }" if (parenthesized_expression "(*param_1 != uVar9)" ( (binary_expression "*param_1 != uVar9" (pointer_expression "*param_1" * identifier) != identifier) )) (compound_statement "{\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }" { (if_statement "if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }" if (parenthesized_expression "(DAT_0017ddd4 != (code *)0x0)" ( (binary_expression "DAT_0017ddd4 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            (*DAT_0017ddd4)();\n          }" { (expression_statement "(*DAT_0017ddd4)();" (call_expression "(*DAT_0017ddd4)()" (parenthesized_expression "(*DAT_0017ddd4)" ( (pointer_expression "*DAT_0017ddd4" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "__s = (void *)FUN_000421f0();" (assignment_expression "__s = (void *)FUN_000421f0()" identifier = (cast_expression "(void *)FUN_000421f0()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000421f0()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }" if (parenthesized_expression "(DAT_0017ddd8 != (code *)0x0)" ( (binary_expression "DAT_0017ddd8 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            (*DAT_0017ddd8)();\n          }" { (expression_statement "(*DAT_0017ddd8)();" (call_expression "(*DAT_0017ddd8)()" (parenthesized_expression "(*DAT_0017ddd8)" ( (pointer_expression "*DAT_0017ddd8" * identifier) )) (argument_list "()" ( ))) ;) })) (if_statement "if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }" if (parenthesized_expression "(__s != (void *)0x0)" ( (binary_expression "__s != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }" { (expression_statement "FUN_00042800(param_1[3]);" (call_expression "FUN_00042800(param_1[3])" identifier (argument_list "(param_1[3])" ( (subscript_expression "param_1[3]" identifier [ number_literal ]) ))) ;) (expression_statement "param_1[3] = (uint)__s;" (assignment_expression "param_1[3] = (uint)__s" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (cast_expression "(uint)__s" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "uVar8 = (*DAT_0017c418)(__s);" (assignment_expression "uVar8 = (*DAT_0017c418)(__s)" identifier = (call_expression "(*DAT_0017c418)(__s)" (parenthesized_expression "(*DAT_0017c418)" ( (pointer_expression "*DAT_0017c418" * identifier) )) (argument_list "(__s)" ( identifier )))) ;) (expression_statement "*param_1 = uVar8 >> 3;" (assignment_expression "*param_1 = uVar8 >> 3" (pointer_expression "*param_1" * identifier) = (binary_expression "uVar8 >> 3" identifier >> number_literal)) ;) (expression_statement "memset(__s,0,uVar8 & 0xfffffff8);" (call_expression "memset(__s,0,uVar8 & 0xfffffff8)" identifier (argument_list "(__s,0,uVar8 & 0xfffffff8)" ( identifier , number_literal , (binary_expression "uVar8 & 0xfffffff8" identifier & number_literal) ))) ;) (expression_statement "puVar5 = (undefined4 *)param_1[2];" (assignment_expression "puVar5 = (undefined4 *)param_1[2]" identifier = (cast_expression "(undefined4 *)param_1[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (while_statement "while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }" while (parenthesized_expression "(puVar5 != (undefined4 *)0x0)" ( (binary_expression "puVar5 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }" { (expression_statement "pcVar10 = (char *)puVar5[3];" (assignment_expression "pcVar10 = (char *)puVar5[3]" identifier = (cast_expression "(char *)puVar5[3]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar5[3]" identifier [ number_literal ]))) ;) (expression_statement "cVar3 = *pcVar10;" (assignment_expression "cVar3 = *pcVar10" identifier = (pointer_expression "*pcVar10" * identifier)) ;) (while_statement "while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }" while (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }" { (expression_statement "pcVar10 = pcVar10 + 1;" (assignment_expression "pcVar10 = pcVar10 + 1" identifier = (binary_expression "pcVar10 + 1" identifier + number_literal)) ;) (expression_statement "cVar3 = *pcVar10;" (assignment_expression "cVar3 = *pcVar10" identifier = (pointer_expression "*pcVar10" * identifier)) ;) })) (expression_statement "puVar5 = (undefined4 *)*puVar5;" (assignment_expression "puVar5 = (undefined4 *)*puVar5" identifier = (cast_expression "(undefined4 *)*puVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) (expression_statement "FUN_000463f0();" (call_expression "FUN_000463f0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "cVar3 = *param_2;" (assignment_expression "cVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (while_statement "while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }" while (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }" { (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "cVar3 = *param_2;" (assignment_expression "cVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) })) })) })) (expression_statement "FUN_000463f0();" (call_expression "FUN_000463f0()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar8 = uVar4;" (assignment_expression "uVar8 = uVar4" identifier = identifier) ;) })) }) (else_clause "else if (param_3 == 0) {\n    if ((uint *)puVar6[1] == (uint *)0x0) {\n      param_1[2] = *puVar6;\n    }\n    else {\n      *(uint *)puVar6[1] = *puVar6;\n    }\n    if (*puVar6 != 0) {\n      *(uint *)(*puVar6 + 4) = puVar6[1];\n    }\n    if (param_1[3] != 0) {\n      piVar1 = (int *)(param_1[3] + local_24 * 8);\n      if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }\n      *piVar1 = *piVar1 + -1;\n    }\n    FUN_00042800(puVar6);\n    uVar4 = param_1[1];\n    param_1[1] = uVar4 - 1;\n    if (uVar4 - 1 == 0) {\n      FUN_000434c0();\n    }\n  }\n  else {\n    puVar6[2] = param_3;\n    puVar6[3] = (uint)param_2;\n  }" else (if_statement "if (param_3 == 0) {\n    if ((uint *)puVar6[1] == (uint *)0x0) {\n      param_1[2] = *puVar6;\n    }\n    else {\n      *(uint *)puVar6[1] = *puVar6;\n    }\n    if (*puVar6 != 0) {\n      *(uint *)(*puVar6 + 4) = puVar6[1];\n    }\n    if (param_1[3] != 0) {\n      piVar1 = (int *)(param_1[3] + local_24 * 8);\n      if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }\n      *piVar1 = *piVar1 + -1;\n    }\n    FUN_00042800(puVar6);\n    uVar4 = param_1[1];\n    param_1[1] = uVar4 - 1;\n    if (uVar4 - 1 == 0) {\n      FUN_000434c0();\n    }\n  }\n  else {\n    puVar6[2] = param_3;\n    puVar6[3] = (uint)param_2;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    if ((uint *)puVar6[1] == (uint *)0x0) {\n      param_1[2] = *puVar6;\n    }\n    else {\n      *(uint *)puVar6[1] = *puVar6;\n    }\n    if (*puVar6 != 0) {\n      *(uint *)(*puVar6 + 4) = puVar6[1];\n    }\n    if (param_1[3] != 0) {\n      piVar1 = (int *)(param_1[3] + local_24 * 8);\n      if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }\n      *piVar1 = *piVar1 + -1;\n    }\n    FUN_00042800(puVar6);\n    uVar4 = param_1[1];\n    param_1[1] = uVar4 - 1;\n    if (uVar4 - 1 == 0) {\n      FUN_000434c0();\n    }\n  }" { (if_statement "if ((uint *)puVar6[1] == (uint *)0x0) {\n      param_1[2] = *puVar6;\n    }\n    else {\n      *(uint *)puVar6[1] = *puVar6;\n    }" if (parenthesized_expression "((uint *)puVar6[1] == (uint *)0x0)" ( (binary_expression "(uint *)puVar6[1] == (uint *)0x0" (cast_expression "(uint *)puVar6[1]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar6[1]" identifier [ number_literal ])) == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      param_1[2] = *puVar6;\n    }" { (expression_statement "param_1[2] = *puVar6;" (assignment_expression "param_1[2] = *puVar6" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (pointer_expression "*puVar6" * identifier)) ;) }) (else_clause "else {\n      *(uint *)puVar6[1] = *puVar6;\n    }" else (compound_statement "{\n      *(uint *)puVar6[1] = *puVar6;\n    }" { (expression_statement "*(uint *)puVar6[1] = *puVar6;" (assignment_expression "*(uint *)puVar6[1] = *puVar6" (pointer_expression "*(uint *)puVar6[1]" * (cast_expression "(uint *)puVar6[1]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar6[1]" identifier [ number_literal ]))) = (pointer_expression "*puVar6" * identifier)) ;) }))) (if_statement "if (*puVar6 != 0) {\n      *(uint *)(*puVar6 + 4) = puVar6[1];\n    }" if (parenthesized_expression "(*puVar6 != 0)" ( (binary_expression "*puVar6 != 0" (pointer_expression "*puVar6" * identifier) != number_literal) )) (compound_statement "{\n      *(uint *)(*puVar6 + 4) = puVar6[1];\n    }" { (expression_statement "*(uint *)(*puVar6 + 4) = puVar6[1];" (assignment_expression "*(uint *)(*puVar6 + 4) = puVar6[1]" (pointer_expression "*(uint *)(*puVar6 + 4)" * (cast_expression "(uint *)(*puVar6 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*puVar6 + 4)" ( (binary_expression "*puVar6 + 4" (pointer_expression "*puVar6" * identifier) + number_literal) )))) = (subscript_expression "puVar6[1]" identifier [ number_literal ])) ;) })) (if_statement "if (param_1[3] != 0) {\n      piVar1 = (int *)(param_1[3] + local_24 * 8);\n      if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }\n      *piVar1 = *piVar1 + -1;\n    }" if (parenthesized_expression "(param_1[3] != 0)" ( (binary_expression "param_1[3] != 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      piVar1 = (int *)(param_1[3] + local_24 * 8);\n      if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }\n      *piVar1 = *piVar1 + -1;\n    }" { (expression_statement "piVar1 = (int *)(param_1[3] + local_24 * 8);" (assignment_expression "piVar1 = (int *)(param_1[3] + local_24 * 8)" identifier = (cast_expression "(int *)(param_1[3] + local_24 * 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[3] + local_24 * 8)" ( (binary_expression "param_1[3] + local_24 * 8" (subscript_expression "param_1[3]" identifier [ number_literal ]) + (binary_expression "local_24 * 8" identifier * number_literal)) )))) ;) (if_statement "if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }" if (parenthesized_expression "(puVar6 == (uint *)piVar1[1])" ( (binary_expression "puVar6 == (uint *)piVar1[1]" identifier == (cast_expression "(uint *)piVar1[1]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n        piVar1[1] = *puVar6;\n      }" { (expression_statement "piVar1[1] = *puVar6;" (assignment_expression "piVar1[1] = *puVar6" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = (pointer_expression "*puVar6" * identifier)) ;) })) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) })) (expression_statement "FUN_00042800(puVar6);" (call_expression "FUN_00042800(puVar6)" identifier (argument_list "(puVar6)" ( identifier ))) ;) (expression_statement "uVar4 = param_1[1];" (assignment_expression "uVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = uVar4 - 1;" (assignment_expression "param_1[1] = uVar4 - 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "uVar4 - 1" identifier - number_literal)) ;) (if_statement "if (uVar4 - 1 == 0) {\n      FUN_000434c0();\n    }" if (parenthesized_expression "(uVar4 - 1 == 0)" ( (binary_expression "uVar4 - 1 == 0" (binary_expression "uVar4 - 1" identifier - number_literal) == number_literal) )) (compound_statement "{\n      FUN_000434c0();\n    }" { (expression_statement "FUN_000434c0();" (call_expression "FUN_000434c0()" identifier (argument_list "()" ( ))) ;) })) }) (else_clause "else {\n    puVar6[2] = param_3;\n    puVar6[3] = (uint)param_2;\n  }" else (compound_statement "{\n    puVar6[2] = param_3;\n    puVar6[3] = (uint)param_2;\n  }" { (expression_statement "puVar6[2] = param_3;" (assignment_expression "puVar6[2] = param_3" (subscript_expression "puVar6[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6[3] = (uint)param_2;" (assignment_expression "puVar6[3] = (uint)param_2" (subscript_expression "puVar6[3]" identifier [ number_literal ]) = (cast_expression "(uint)param_2" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) }))))) (if_statement "if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar8;\n  }" if (parenthesized_expression "(iVar2 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar8;\n  }" { (return_statement "return uVar8;" return identifier ;) })) comment (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid * __regparm3 sqlite3HashInsert(Hash *pH,char *pKey,void *data)\n\n{\n  byte bVar1;\n  void *pvVar2;\n  HashElem *pNew;\n  HashElem *pHVar3;\n  HashElem *pHVar4;\n  _ht *p_Var5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  _ht *p_Var9;\n  void *pvVar10;\n  byte *pbVar11;\n  int in_GS_OFFSET;\n  u64 in_stack_ffffffb4;\n  uint h;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4645d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pHVar4 = findElementWithHash(pH,pKey,&h);\n  pvVar2 = pHVar4->data;\n  pvVar10 = pvVar2;\n  if (pvVar2 != (void *)0x0) {\n    if (data == (void *)0x0) {\n      if (pHVar4->prev == (HashElem *)0x0) {\n        pH->first = pHVar4->next;\n      }\n      else {\n        pHVar4->prev->next = pHVar4->next;\n      }\n      if (pHVar4->next != (HashElem *)0x0) {\n        pHVar4->next->prev = pHVar4->prev;\n      }\n      if (pH->ht != (_ht *)0x0) {\n        p_Var5 = pH->ht + h;\n        if (pHVar4 == p_Var5->chain) {\n          p_Var5->chain = pHVar4->next;\n        }\n        p_Var5->count = p_Var5->count + -1;\n      }\n      sqlite3_free(pHVar4);\n      uVar7 = pH->count - 1;\n      pH->count = uVar7;\n      if (uVar7 == 0) {\n        sqlite3HashClear(pH);\n      }\n    }\n    else {\n      pHVar4->data = data;\n      pHVar4->pKey = pKey;\n    }\n    goto LAB_00046498;\n  }\n  if ((data == (void *)0x0) ||\n     (pHVar4 = (HashElem *)sqlite3Malloc(in_stack_ffffffb4), pvVar10 = data,\n     pHVar4 == (HashElem *)0x0)) goto LAB_00046498;\n  pHVar4->data = data;\n  pHVar4->pKey = pKey;\n  uVar7 = pH->count + 1;\n  pH->count = uVar7;\n  if ((uVar7 < 10) || (uVar7 <= pH->htsize * 2)) {\nLAB_000464ef:\n    p_Var9 = pH->ht;\n  }\n  else {\n    uVar6 = 0x80;\n    if (uVar7 * 0x10 < 0x401) {\n      uVar6 = uVar7 * 2;\n    }\n    if (pH->htsize == uVar6) goto LAB_000464ef;\n    if (sqlite3Hooks.xBenignBegin != (_func_void *)0x0) {\n      (*sqlite3Hooks.xBenignBegin)();\n    }\n    p_Var5 = (_ht *)sqlite3Malloc(in_stack_ffffffb4);\n    if (sqlite3Hooks.xBenignEnd != (_func_void *)0x0) {\n      (*sqlite3Hooks.xBenignEnd)();\n    }\n    p_Var9 = pH->ht;\n    if (p_Var5 != (_ht *)0x0) {\n      sqlite3_free(p_Var9);\n      pH->ht = p_Var5;\n      uVar7 = (*sqlite3Config.m.xSize)(p_Var5);\n      pH->htsize = uVar7 >> 3;\n      memset(p_Var5,0,uVar7 & 0xfffffff8);\n      pNew = pH->first;\n      pH->first = (HashElem *)0x0;\n      while (pNew != (HashElem *)0x0) {\n        pbVar11 = (byte *)pNew->pKey;\n        bVar1 = *pbVar11;\n        p_Var9 = p_Var5;\n        if (bVar1 != 0) {\n          uVar6 = 0;\n          do {\n            pbVar11 = pbVar11 + 1;\n            uVar8 = (uint)bVar1;\n            bVar1 = *pbVar11;\n            uVar6 = (uVar6 + ""[uVar8]) * -0x61c8864f;\n          } while (bVar1 != 0);\n          p_Var9 = p_Var5 + uVar6 % (uVar7 >> 3);\n        }\n        pHVar3 = pNew->next;\n        insertElement((Hash *)&pH->first,p_Var9,pNew);\n        pNew = pHVar3;\n      }\n      uVar7 = 0;\n      bVar1 = *pKey;\n      while (bVar1 != 0) {\n        pKey = (char *)((byte *)pKey + 1);\n        uVar7 = (uVar7 + ""[bVar1]) * -0x61c8864f;\n        bVar1 = *pKey;\n      }\n      h = uVar7 % pH->htsize;\n      goto LAB_000464ef;\n    }\n  }\n  if (p_Var9 != (_ht *)0x0) {\n    p_Var9 = p_Var9 + h;\n  }\n  insertElement((Hash *)&pH->first,p_Var9,pHVar4);\n  pvVar10 = pvVar2;\nLAB_00046498:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pvVar10;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "void * __regparm3 sqlite3HashInsert(Hash *pH,char *pKey,void *data)\n\n{\n  byte bVar1;\n  void *pvVar2;\n  HashElem *pNew;\n  HashElem *pHVar3;\n  HashElem *pHVar4;\n  _ht *p_Var5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  _ht *p_Var9;\n  void *pvVar10;\n  byte *pbVar11;\n  int in_GS_OFFSET;\n  u64 in_stack_ffffffb4;\n  uint h;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4645d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pHVar4 = findElementWithHash(pH,pKey,&h);\n  pvVar2 = pHVar4->data;\n  pvVar10 = pvVar2;\n  if (pvVar2 != (void *)0x0) {\n    if (data == (void *)0x0) {\n      if (pHVar4->prev == (HashElem *)0x0) {\n        pH->first = pHVar4->next;\n      }\n      else {\n        pHVar4->prev->next = pHVar4->next;\n      }\n      if (pHVar4->next != (HashElem *)0x0) {\n        pHVar4->next->prev = pHVar4->prev;\n      }\n      if (pH->ht != (_ht *)0x0) {\n        p_Var5 = pH->ht + h;\n        if (pHVar4 == p_Var5->chain) {\n          p_Var5->chain = pHVar4->next;\n        }\n        p_Var5->count = p_Var5->count + -1;\n      }\n      sqlite3_free(pHVar4);\n      uVar7 = pH->count - 1;\n      pH->count = uVar7;\n      if (uVar7 == 0) {\n        sqlite3HashClear(pH);\n      }\n    }\n    else {\n      pHVar4->data = data;\n      pHVar4->pKey = pKey;\n    }\n    goto LAB_00046498;\n  }\n  if ((data == (void *)0x0) ||\n     (pHVar4 = (HashElem *)sqlite3Malloc(in_stack_ffffffb4), pvVar10 = data,\n     pHVar4 == (HashElem *)0x0)) goto LAB_00046498;\n  pHVar4->data = data;\n  pHVar4->pKey = pKey;\n  uVar7 = pH->count + 1;\n  pH->count = uVar7;\n  if ((uVar7 < 10) || (uVar7 <= pH->htsize * 2)) {\nLAB_000464ef:\n    p_Var9 = pH->ht;\n  }\n  else {\n    uVar6 = 0x80;\n    if (uVar7 * 0x10 < 0x401) {\n      uVar6 = uVar7 * 2;\n    }\n    if (pH->htsize == uVar6) goto LAB_000464ef;\n    if (sqlite3Hooks.xBenignBegin != (_func_void *)0x0) {\n      (*sqlite3Hooks.xBenignBegin)();\n    }\n    p_Var5 = (_ht *)sqlite3Malloc(in_stack_ffffffb4);\n    if (sqlite3Hooks.xBenignEnd != (_func_void *)0x0) {\n      (*sqlite3Hooks.xBenignEnd)();\n    }\n    p_Var9 = pH->ht;\n    if (p_Var5 != (_ht *)0x0) {\n      sqlite3_free(p_Var9);\n      pH->ht = p_Var5;\n      uVar7 = (*sqlite3Config.m.xSize)(p_Var5);\n      pH->htsize = uVar7 >> 3;\n      memset(p_Var5,0,uVar7 & 0xfffffff8);\n      pNew = pH->first;\n      pH->first = (HashElem *)0x0;\n      while (pNew != (HashElem *)0x0) {\n        pbVar11 = (byte *)pNew->pKey;\n        bVar1 = *pbVar11;\n        p_Var9 = p_Var5;\n        if (bVar1 != 0) {\n          uVar6 = 0;\n          do {\n            pbVar11 = pbVar11 + 1;\n            uVar8 = (uint)bVar1;\n            bVar1 = *pbVar11;\n            uVar6 = (uVar6 + ""[uVar8]) * -0x61c8864f;\n          } while (bVar1 != 0);\n          p_Var9 = p_Var5 + uVar6 % (uVar7 >> 3);\n        }\n        pHVar3 = pNew->next;\n        insertElement((Hash *)&pH->first,p_Var9,pNew);\n        pNew = pHVar3;\n      }\n      uVar7 = 0;\n      bVar1 = *pKey;\n      while (bVar1 != 0) {\n        pKey = (char *)((byte *)pKey + 1);\n        uVar7 = (uVar7 + ""[bVar1]) * -0x61c8864f;\n        bVar1 = *pKey;\n      }\n      h = uVar7 % pH->htsize;\n      goto LAB_000464ef;\n    }\n  }\n  if (p_Var9 != (_ht *)0x0) {\n    p_Var9 = p_Var9 + h;\n  }\n  insertElement((Hash *)&pH->first,p_Var9,pHVar4);\n  pvVar10 = pvVar2;\nLAB_00046498:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pvVar10;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (pointer_declarator "* __regparm3 sqlite3HashInsert(Hash *pH,char *pKey,void *data)" * (ERROR "__regparm3" identifier) (function_declarator "sqlite3HashInsert(Hash *pH,char *pKey,void *data)" identifier (parameter_list "(Hash *pH,char *pKey,void *data)" ( (parameter_declaration "Hash *pH" type_identifier (pointer_declarator "*pH" * identifier)) , (parameter_declaration "char *pKey" primitive_type (pointer_declarator "*pKey" * identifier)) , (parameter_declaration "void *data" primitive_type (pointer_declarator "*data" * identifier)) )))) (compound_statement "{\n  byte bVar1;\n  void *pvVar2;\n  HashElem *pNew;\n  HashElem *pHVar3;\n  HashElem *pHVar4;\n  _ht *p_Var5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  _ht *p_Var9;\n  void *pvVar10;\n  byte *pbVar11;\n  int in_GS_OFFSET;\n  u64 in_stack_ffffffb4;\n  uint h;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x4645d;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pHVar4 = findElementWithHash(pH,pKey,&h);\n  pvVar2 = pHVar4->data;\n  pvVar10 = pvVar2;\n  if (pvVar2 != (void *)0x0) {\n    if (data == (void *)0x0) {\n      if (pHVar4->prev == (HashElem *)0x0) {\n        pH->first = pHVar4->next;\n      }\n      else {\n        pHVar4->prev->next = pHVar4->next;\n      }\n      if (pHVar4->next != (HashElem *)0x0) {\n        pHVar4->next->prev = pHVar4->prev;\n      }\n      if (pH->ht != (_ht *)0x0) {\n        p_Var5 = pH->ht + h;\n        if (pHVar4 == p_Var5->chain) {\n          p_Var5->chain = pHVar4->next;\n        }\n        p_Var5->count = p_Var5->count + -1;\n      }\n      sqlite3_free(pHVar4);\n      uVar7 = pH->count - 1;\n      pH->count = uVar7;\n      if (uVar7 == 0) {\n        sqlite3HashClear(pH);\n      }\n    }\n    else {\n      pHVar4->data = data;\n      pHVar4->pKey = pKey;\n    }\n    goto LAB_00046498;\n  }\n  if ((data == (void *)0x0) ||\n     (pHVar4 = (HashElem *)sqlite3Malloc(in_stack_ffffffb4), pvVar10 = data,\n     pHVar4 == (HashElem *)0x0)) goto LAB_00046498;\n  pHVar4->data = data;\n  pHVar4->pKey = pKey;\n  uVar7 = pH->count + 1;\n  pH->count = uVar7;\n  if ((uVar7 < 10) || (uVar7 <= pH->htsize * 2)) {\nLAB_000464ef:\n    p_Var9 = pH->ht;\n  }\n  else {\n    uVar6 = 0x80;\n    if (uVar7 * 0x10 < 0x401) {\n      uVar6 = uVar7 * 2;\n    }\n    if (pH->htsize == uVar6) goto LAB_000464ef;\n    if (sqlite3Hooks.xBenignBegin != (_func_void *)0x0) {\n      (*sqlite3Hooks.xBenignBegin)();\n    }\n    p_Var5 = (_ht *)sqlite3Malloc(in_stack_ffffffb4);\n    if (sqlite3Hooks.xBenignEnd != (_func_void *)0x0) {\n      (*sqlite3Hooks.xBenignEnd)();\n    }\n    p_Var9 = pH->ht;\n    if (p_Var5 != (_ht *)0x0) {\n      sqlite3_free(p_Var9);\n      pH->ht = p_Var5;\n      uVar7 = (*sqlite3Config.m.xSize)(p_Var5);\n      pH->htsize = uVar7 >> 3;\n      memset(p_Var5,0,uVar7 & 0xfffffff8);\n      pNew = pH->first;\n      pH->first = (HashElem *)0x0;\n      while (pNew != (HashElem *)0x0) {\n        pbVar11 = (byte *)pNew->pKey;\n        bVar1 = *pbVar11;\n        p_Var9 = p_Var5;\n        if (bVar1 != 0) {\n          uVar6 = 0;\n          do {\n            pbVar11 = pbVar11 + 1;\n            uVar8 = (uint)bVar1;\n            bVar1 = *pbVar11;\n            uVar6 = (uVar6 + ""[uVar8]) * -0x61c8864f;\n          } while (bVar1 != 0);\n          p_Var9 = p_Var5 + uVar6 % (uVar7 >> 3);\n        }\n        pHVar3 = pNew->next;\n        insertElement((Hash *)&pH->first,p_Var9,pNew);\n        pNew = pHVar3;\n      }\n      uVar7 = 0;\n      bVar1 = *pKey;\n      while (bVar1 != 0) {\n        pKey = (char *)((byte *)pKey + 1);\n        uVar7 = (uVar7 + ""[bVar1]) * -0x61c8864f;\n        bVar1 = *pKey;\n      }\n      h = uVar7 % pH->htsize;\n      goto LAB_000464ef;\n    }\n  }\n  if (p_Var9 != (_ht *)0x0) {\n    p_Var9 = p_Var9 + h;\n  }\n  insertElement((Hash *)&pH->first,p_Var9,pHVar4);\n  pvVar10 = pvVar2;\nLAB_00046498:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pvVar10;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "HashElem *pNew;" type_identifier (pointer_declarator "*pNew" * identifier) ;) (declaration "HashElem *pHVar3;" type_identifier (pointer_declarator "*pHVar3" * identifier) ;) (declaration "HashElem *pHVar4;" type_identifier (pointer_declarator "*pHVar4" * identifier) ;) (declaration "_ht *p_Var5;" type_identifier (pointer_declarator "*p_Var5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "_ht *p_Var9;" type_identifier (pointer_declarator "*p_Var9" * identifier) ;) (declaration "void *pvVar10;" primitive_type (pointer_declarator "*pvVar10" * identifier) ;) (declaration "byte *pbVar11;" type_identifier (pointer_declarator "*pbVar11" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "u64 in_stack_ffffffb4;" type_identifier identifier ;) (declaration "uint h;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x4645d;" (assignment_expression "uStack_14 = 0x4645d" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "pHVar4 = findElementWithHash(pH,pKey,&h);" (assignment_expression "pHVar4 = findElementWithHash(pH,pKey,&h)" identifier = (call_expression "findElementWithHash(pH,pKey,&h)" identifier (argument_list "(pH,pKey,&h)" ( identifier , identifier , (pointer_expression "&h" & identifier) )))) ;) (expression_statement "pvVar2 = pHVar4->data;" (assignment_expression "pvVar2 = pHVar4->data" identifier = (field_expression "pHVar4->data" identifier -> field_identifier)) ;) (expression_statement "pvVar10 = pvVar2;" (assignment_expression "pvVar10 = pvVar2" identifier = identifier) ;) (if_statement "if (pvVar2 != (void *)0x0) {\n    if (data == (void *)0x0) {\n      if (pHVar4->prev == (HashElem *)0x0) {\n        pH->first = pHVar4->next;\n      }\n      else {\n        pHVar4->prev->next = pHVar4->next;\n      }\n      if (pHVar4->next != (HashElem *)0x0) {\n        pHVar4->next->prev = pHVar4->prev;\n      }\n      if (pH->ht != (_ht *)0x0) {\n        p_Var5 = pH->ht + h;\n        if (pHVar4 == p_Var5->chain) {\n          p_Var5->chain = pHVar4->next;\n        }\n        p_Var5->count = p_Var5->count + -1;\n      }\n      sqlite3_free(pHVar4);\n      uVar7 = pH->count - 1;\n      pH->count = uVar7;\n      if (uVar7 == 0) {\n        sqlite3HashClear(pH);\n      }\n    }\n    else {\n      pHVar4->data = data;\n      pHVar4->pKey = pKey;\n    }\n    goto LAB_00046498;\n  }" if (parenthesized_expression "(pvVar2 != (void *)0x0)" ( (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (data == (void *)0x0) {\n      if (pHVar4->prev == (HashElem *)0x0) {\n        pH->first = pHVar4->next;\n      }\n      else {\n        pHVar4->prev->next = pHVar4->next;\n      }\n      if (pHVar4->next != (HashElem *)0x0) {\n        pHVar4->next->prev = pHVar4->prev;\n      }\n      if (pH->ht != (_ht *)0x0) {\n        p_Var5 = pH->ht + h;\n        if (pHVar4 == p_Var5->chain) {\n          p_Var5->chain = pHVar4->next;\n        }\n        p_Var5->count = p_Var5->count + -1;\n      }\n      sqlite3_free(pHVar4);\n      uVar7 = pH->count - 1;\n      pH->count = uVar7;\n      if (uVar7 == 0) {\n        sqlite3HashClear(pH);\n      }\n    }\n    else {\n      pHVar4->data = data;\n      pHVar4->pKey = pKey;\n    }\n    goto LAB_00046498;\n  }" { (if_statement "if (data == (void *)0x0) {\n      if (pHVar4->prev == (HashElem *)0x0) {\n        pH->first = pHVar4->next;\n      }\n      else {\n        pHVar4->prev->next = pHVar4->next;\n      }\n      if (pHVar4->next != (HashElem *)0x0) {\n        pHVar4->next->prev = pHVar4->prev;\n      }\n      if (pH->ht != (_ht *)0x0) {\n        p_Var5 = pH->ht + h;\n        if (pHVar4 == p_Var5->chain) {\n          p_Var5->chain = pHVar4->next;\n        }\n        p_Var5->count = p_Var5->count + -1;\n      }\n      sqlite3_free(pHVar4);\n      uVar7 = pH->count - 1;\n      pH->count = uVar7;\n      if (uVar7 == 0) {\n        sqlite3HashClear(pH);\n      }\n    }\n    else {\n      pHVar4->data = data;\n      pHVar4->pKey = pKey;\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      if (pHVar4->prev == (HashElem *)0x0) {\n        pH->first = pHVar4->next;\n      }\n      else {\n        pHVar4->prev->next = pHVar4->next;\n      }\n      if (pHVar4->next != (HashElem *)0x0) {\n        pHVar4->next->prev = pHVar4->prev;\n      }\n      if (pH->ht != (_ht *)0x0) {\n        p_Var5 = pH->ht + h;\n        if (pHVar4 == p_Var5->chain) {\n          p_Var5->chain = pHVar4->next;\n        }\n        p_Var5->count = p_Var5->count + -1;\n      }\n      sqlite3_free(pHVar4);\n      uVar7 = pH->count - 1;\n      pH->count = uVar7;\n      if (uVar7 == 0) {\n        sqlite3HashClear(pH);\n      }\n    }" { (if_statement "if (pHVar4->prev == (HashElem *)0x0) {\n        pH->first = pHVar4->next;\n      }\n      else {\n        pHVar4->prev->next = pHVar4->next;\n      }" if (parenthesized_expression "(pHVar4->prev == (HashElem *)0x0)" ( (binary_expression "pHVar4->prev == (HashElem *)0x0" (field_expression "pHVar4->prev" identifier -> field_identifier) == (cast_expression "(HashElem *)0x0" ( (type_descriptor "HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pH->first = pHVar4->next;\n      }" { (expression_statement "pH->first = pHVar4->next;" (assignment_expression "pH->first = pHVar4->next" (field_expression "pH->first" identifier -> field_identifier) = (field_expression "pHVar4->next" identifier -> field_identifier)) ;) }) (else_clause "else {\n        pHVar4->prev->next = pHVar4->next;\n      }" else (compound_statement "{\n        pHVar4->prev->next = pHVar4->next;\n      }" { (expression_statement "pHVar4->prev->next = pHVar4->next;" (assignment_expression "pHVar4->prev->next = pHVar4->next" (field_expression "pHVar4->prev->next" (field_expression "pHVar4->prev" identifier -> field_identifier) -> field_identifier) = (field_expression "pHVar4->next" identifier -> field_identifier)) ;) }))) (if_statement "if (pHVar4->next != (HashElem *)0x0) {\n        pHVar4->next->prev = pHVar4->prev;\n      }" if (parenthesized_expression "(pHVar4->next != (HashElem *)0x0)" ( (binary_expression "pHVar4->next != (HashElem *)0x0" (field_expression "pHVar4->next" identifier -> field_identifier) != (cast_expression "(HashElem *)0x0" ( (type_descriptor "HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pHVar4->next->prev = pHVar4->prev;\n      }" { (expression_statement "pHVar4->next->prev = pHVar4->prev;" (assignment_expression "pHVar4->next->prev = pHVar4->prev" (field_expression "pHVar4->next->prev" (field_expression "pHVar4->next" identifier -> field_identifier) -> field_identifier) = (field_expression "pHVar4->prev" identifier -> field_identifier)) ;) })) (if_statement "if (pH->ht != (_ht *)0x0) {\n        p_Var5 = pH->ht + h;\n        if (pHVar4 == p_Var5->chain) {\n          p_Var5->chain = pHVar4->next;\n        }\n        p_Var5->count = p_Var5->count + -1;\n      }" if (parenthesized_expression "(pH->ht != (_ht *)0x0)" ( (binary_expression "pH->ht != (_ht *)0x0" (field_expression "pH->ht" identifier -> field_identifier) != (cast_expression "(_ht *)0x0" ( (type_descriptor "_ht *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        p_Var5 = pH->ht + h;\n        if (pHVar4 == p_Var5->chain) {\n          p_Var5->chain = pHVar4->next;\n        }\n        p_Var5->count = p_Var5->count + -1;\n      }" { (expression_statement "p_Var5 = pH->ht + h;" (assignment_expression "p_Var5 = pH->ht + h" identifier = (binary_expression "pH->ht + h" (field_expression "pH->ht" identifier -> field_identifier) + identifier)) ;) (if_statement "if (pHVar4 == p_Var5->chain) {\n          p_Var5->chain = pHVar4->next;\n        }" if (parenthesized_expression "(pHVar4 == p_Var5->chain)" ( (binary_expression "pHVar4 == p_Var5->chain" identifier == (field_expression "p_Var5->chain" identifier -> field_identifier)) )) (compound_statement "{\n          p_Var5->chain = pHVar4->next;\n        }" { (expression_statement "p_Var5->chain = pHVar4->next;" (assignment_expression "p_Var5->chain = pHVar4->next" (field_expression "p_Var5->chain" identifier -> field_identifier) = (field_expression "pHVar4->next" identifier -> field_identifier)) ;) })) (expression_statement "p_Var5->count = p_Var5->count + -1;" (assignment_expression "p_Var5->count = p_Var5->count + -1" (field_expression "p_Var5->count" identifier -> field_identifier) = (binary_expression "p_Var5->count + -1" (field_expression "p_Var5->count" identifier -> field_identifier) + number_literal)) ;) })) (expression_statement "sqlite3_free(pHVar4);" (call_expression "sqlite3_free(pHVar4)" identifier (argument_list "(pHVar4)" ( identifier ))) ;) (expression_statement "uVar7 = pH->count - 1;" (assignment_expression "uVar7 = pH->count - 1" identifier = (binary_expression "pH->count - 1" (field_expression "pH->count" identifier -> field_identifier) - number_literal)) ;) (expression_statement "pH->count = uVar7;" (assignment_expression "pH->count = uVar7" (field_expression "pH->count" identifier -> field_identifier) = identifier) ;) (if_statement "if (uVar7 == 0) {\n        sqlite3HashClear(pH);\n      }" if (parenthesized_expression "(uVar7 == 0)" ( (binary_expression "uVar7 == 0" identifier == number_literal) )) (compound_statement "{\n        sqlite3HashClear(pH);\n      }" { (expression_statement "sqlite3HashClear(pH);" (call_expression "sqlite3HashClear(pH)" identifier (argument_list "(pH)" ( identifier ))) ;) })) }) (else_clause "else {\n      pHVar4->data = data;\n      pHVar4->pKey = pKey;\n    }" else (compound_statement "{\n      pHVar4->data = data;\n      pHVar4->pKey = pKey;\n    }" { (expression_statement "pHVar4->data = data;" (assignment_expression "pHVar4->data = data" (field_expression "pHVar4->data" identifier -> field_identifier) = identifier) ;) (expression_statement "pHVar4->pKey = pKey;" (assignment_expression "pHVar4->pKey = pKey" (field_expression "pHVar4->pKey" identifier -> field_identifier) = identifier) ;) }))) (goto_statement "goto LAB_00046498;" goto statement_identifier ;) })) (if_statement "if ((data == (void *)0x0) ||\n     (pHVar4 = (HashElem *)sqlite3Malloc(in_stack_ffffffb4), pvVar10 = data,\n     pHVar4 == (HashElem *)0x0)) goto LAB_00046498;" if (parenthesized_expression "((data == (void *)0x0) ||\n     (pHVar4 = (HashElem *)sqlite3Malloc(in_stack_ffffffb4), pvVar10 = data,\n     pHVar4 == (HashElem *)0x0))" ( (binary_expression "(data == (void *)0x0) ||\n     (pHVar4 = (HashElem *)sqlite3Malloc(in_stack_ffffffb4), pvVar10 = data,\n     pHVar4 == (HashElem *)0x0)" (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)) )) || (parenthesized_expression "(pHVar4 = (HashElem *)sqlite3Malloc(in_stack_ffffffb4), pvVar10 = data,\n     pHVar4 == (HashElem *)0x0)" ( (comma_expression "pHVar4 = (HashElem *)sqlite3Malloc(in_stack_ffffffb4), pvVar10 = data,\n     pHVar4 == (HashElem *)0x0" (assignment_expression "pHVar4 = (HashElem *)sqlite3Malloc(in_stack_ffffffb4)" identifier = (cast_expression "(HashElem *)sqlite3Malloc(in_stack_ffffffb4)" ( (type_descriptor "HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3Malloc(in_stack_ffffffb4)" identifier (argument_list "(in_stack_ffffffb4)" ( identifier ))))) , (comma_expression "pvVar10 = data,\n     pHVar4 == (HashElem *)0x0" (assignment_expression "pvVar10 = data" identifier = identifier) , (binary_expression "pHVar4 == (HashElem *)0x0" identifier == (cast_expression "(HashElem *)0x0" ( (type_descriptor "HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)))) ))) )) (goto_statement "goto LAB_00046498;" goto statement_identifier ;)) (expression_statement "pHVar4->data = data;" (assignment_expression "pHVar4->data = data" (field_expression "pHVar4->data" identifier -> field_identifier) = identifier) ;) (expression_statement "pHVar4->pKey = pKey;" (assignment_expression "pHVar4->pKey = pKey" (field_expression "pHVar4->pKey" identifier -> field_identifier) = identifier) ;) (expression_statement "uVar7 = pH->count + 1;" (assignment_expression "uVar7 = pH->count + 1" identifier = (binary_expression "pH->count + 1" (field_expression "pH->count" identifier -> field_identifier) + number_literal)) ;) (expression_statement "pH->count = uVar7;" (assignment_expression "pH->count = uVar7" (field_expression "pH->count" identifier -> field_identifier) = identifier) ;) (if_statement "if ((uVar7 < 10) || (uVar7 <= pH->htsize * 2)) {\nLAB_000464ef:\n    p_Var9 = pH->ht;\n  }\n  else {\n    uVar6 = 0x80;\n    if (uVar7 * 0x10 < 0x401) {\n      uVar6 = uVar7 * 2;\n    }\n    if (pH->htsize == uVar6) goto LAB_000464ef;\n    if (sqlite3Hooks.xBenignBegin != (_func_void *)0x0) {\n      (*sqlite3Hooks.xBenignBegin)();\n    }\n    p_Var5 = (_ht *)sqlite3Malloc(in_stack_ffffffb4);\n    if (sqlite3Hooks.xBenignEnd != (_func_void *)0x0) {\n      (*sqlite3Hooks.xBenignEnd)();\n    }\n    p_Var9 = pH->ht;\n    if (p_Var5 != (_ht *)0x0) {\n      sqlite3_free(p_Var9);\n      pH->ht = p_Var5;\n      uVar7 = (*sqlite3Config.m.xSize)(p_Var5);\n      pH->htsize = uVar7 >> 3;\n      memset(p_Var5,0,uVar7 & 0xfffffff8);\n      pNew = pH->first;\n      pH->first = (HashElem *)0x0;\n      while (pNew != (HashElem *)0x0) {\n        pbVar11 = (byte *)pNew->pKey;\n        bVar1 = *pbVar11;\n        p_Var9 = p_Var5;\n        if (bVar1 != 0) {\n          uVar6 = 0;\n          do {\n            pbVar11 = pbVar11 + 1;\n            uVar8 = (uint)bVar1;\n            bVar1 = *pbVar11;\n            uVar6 = (uVar6 + ""[uVar8]) * -0x61c8864f;\n          } while (bVar1 != 0);\n          p_Var9 = p_Var5 + uVar6 % (uVar7 >> 3);\n        }\n        pHVar3 = pNew->next;\n        insertElement((Hash *)&pH->first,p_Var9,pNew);\n        pNew = pHVar3;\n      }\n      uVar7 = 0;\n      bVar1 = *pKey;\n      while (bVar1 != 0) {\n        pKey = (char *)((byte *)pKey + 1);\n        uVar7 = (uVar7 + ""[bVar1]) * -0x61c8864f;\n        bVar1 = *pKey;\n      }\n      h = uVar7 % pH->htsize;\n      goto LAB_000464ef;\n    }\n  }" if (parenthesized_expression "((uVar7 < 10) || (uVar7 <= pH->htsize * 2))" ( (binary_expression "(uVar7 < 10) || (uVar7 <= pH->htsize * 2)" (parenthesized_expression "(uVar7 < 10)" ( (binary_expression "uVar7 < 10" identifier < number_literal) )) || (parenthesized_expression "(uVar7 <= pH->htsize * 2)" ( (binary_expression "uVar7 <= pH->htsize * 2" identifier <= (binary_expression "pH->htsize * 2" (field_expression "pH->htsize" identifier -> field_identifier) * number_literal)) ))) )) (compound_statement "{\nLAB_000464ef:\n    p_Var9 = pH->ht;\n  }" { (labeled_statement "LAB_000464ef:\n    p_Var9 = pH->ht;" statement_identifier : (expression_statement "p_Var9 = pH->ht;" (assignment_expression "p_Var9 = pH->ht" identifier = (field_expression "pH->ht" identifier -> field_identifier)) ;)) }) (else_clause "else {\n    uVar6 = 0x80;\n    if (uVar7 * 0x10 < 0x401) {\n      uVar6 = uVar7 * 2;\n    }\n    if (pH->htsize == uVar6) goto LAB_000464ef;\n    if (sqlite3Hooks.xBenignBegin != (_func_void *)0x0) {\n      (*sqlite3Hooks.xBenignBegin)();\n    }\n    p_Var5 = (_ht *)sqlite3Malloc(in_stack_ffffffb4);\n    if (sqlite3Hooks.xBenignEnd != (_func_void *)0x0) {\n      (*sqlite3Hooks.xBenignEnd)();\n    }\n    p_Var9 = pH->ht;\n    if (p_Var5 != (_ht *)0x0) {\n      sqlite3_free(p_Var9);\n      pH->ht = p_Var5;\n      uVar7 = (*sqlite3Config.m.xSize)(p_Var5);\n      pH->htsize = uVar7 >> 3;\n      memset(p_Var5,0,uVar7 & 0xfffffff8);\n      pNew = pH->first;\n      pH->first = (HashElem *)0x0;\n      while (pNew != (HashElem *)0x0) {\n        pbVar11 = (byte *)pNew->pKey;\n        bVar1 = *pbVar11;\n        p_Var9 = p_Var5;\n        if (bVar1 != 0) {\n          uVar6 = 0;\n          do {\n            pbVar11 = pbVar11 + 1;\n            uVar8 = (uint)bVar1;\n            bVar1 = *pbVar11;\n            uVar6 = (uVar6 + ""[uVar8]) * -0x61c8864f;\n          } while (bVar1 != 0);\n          p_Var9 = p_Var5 + uVar6 % (uVar7 >> 3);\n        }\n        pHVar3 = pNew->next;\n        insertElement((Hash *)&pH->first,p_Var9,pNew);\n        pNew = pHVar3;\n      }\n      uVar7 = 0;\n      bVar1 = *pKey;\n      while (bVar1 != 0) {\n        pKey = (char *)((byte *)pKey + 1);\n        uVar7 = (uVar7 + ""[bVar1]) * -0x61c8864f;\n        bVar1 = *pKey;\n      }\n      h = uVar7 % pH->htsize;\n      goto LAB_000464ef;\n    }\n  }" else (compound_statement "{\n    uVar6 = 0x80;\n    if (uVar7 * 0x10 < 0x401) {\n      uVar6 = uVar7 * 2;\n    }\n    if (pH->htsize == uVar6) goto LAB_000464ef;\n    if (sqlite3Hooks.xBenignBegin != (_func_void *)0x0) {\n      (*sqlite3Hooks.xBenignBegin)();\n    }\n    p_Var5 = (_ht *)sqlite3Malloc(in_stack_ffffffb4);\n    if (sqlite3Hooks.xBenignEnd != (_func_void *)0x0) {\n      (*sqlite3Hooks.xBenignEnd)();\n    }\n    p_Var9 = pH->ht;\n    if (p_Var5 != (_ht *)0x0) {\n      sqlite3_free(p_Var9);\n      pH->ht = p_Var5;\n      uVar7 = (*sqlite3Config.m.xSize)(p_Var5);\n      pH->htsize = uVar7 >> 3;\n      memset(p_Var5,0,uVar7 & 0xfffffff8);\n      pNew = pH->first;\n      pH->first = (HashElem *)0x0;\n      while (pNew != (HashElem *)0x0) {\n        pbVar11 = (byte *)pNew->pKey;\n        bVar1 = *pbVar11;\n        p_Var9 = p_Var5;\n        if (bVar1 != 0) {\n          uVar6 = 0;\n          do {\n            pbVar11 = pbVar11 + 1;\n            uVar8 = (uint)bVar1;\n            bVar1 = *pbVar11;\n            uVar6 = (uVar6 + ""[uVar8]) * -0x61c8864f;\n          } while (bVar1 != 0);\n          p_Var9 = p_Var5 + uVar6 % (uVar7 >> 3);\n        }\n        pHVar3 = pNew->next;\n        insertElement((Hash *)&pH->first,p_Var9,pNew);\n        pNew = pHVar3;\n      }\n      uVar7 = 0;\n      bVar1 = *pKey;\n      while (bVar1 != 0) {\n        pKey = (char *)((byte *)pKey + 1);\n        uVar7 = (uVar7 + ""[bVar1]) * -0x61c8864f;\n        bVar1 = *pKey;\n      }\n      h = uVar7 % pH->htsize;\n      goto LAB_000464ef;\n    }\n  }" { (expression_statement "uVar6 = 0x80;" (assignment_expression "uVar6 = 0x80" identifier = number_literal) ;) (if_statement "if (uVar7 * 0x10 < 0x401) {\n      uVar6 = uVar7 * 2;\n    }" if (parenthesized_expression "(uVar7 * 0x10 < 0x401)" ( (binary_expression "uVar7 * 0x10 < 0x401" (binary_expression "uVar7 * 0x10" identifier * number_literal) < number_literal) )) (compound_statement "{\n      uVar6 = uVar7 * 2;\n    }" { (expression_statement "uVar6 = uVar7 * 2;" (assignment_expression "uVar6 = uVar7 * 2" identifier = (binary_expression "uVar7 * 2" identifier * number_literal)) ;) })) (if_statement "if (pH->htsize == uVar6) goto LAB_000464ef;" if (parenthesized_expression "(pH->htsize == uVar6)" ( (binary_expression "pH->htsize == uVar6" (field_expression "pH->htsize" identifier -> field_identifier) == identifier) )) (goto_statement "goto LAB_000464ef;" goto statement_identifier ;)) (if_statement "if (sqlite3Hooks.xBenignBegin != (_func_void *)0x0) {\n      (*sqlite3Hooks.xBenignBegin)();\n    }" if (parenthesized_expression "(sqlite3Hooks.xBenignBegin != (_func_void *)0x0)" ( (binary_expression "sqlite3Hooks.xBenignBegin != (_func_void *)0x0" (field_expression "sqlite3Hooks.xBenignBegin" identifier . field_identifier) != (cast_expression "(_func_void *)0x0" ( (type_descriptor "_func_void *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*sqlite3Hooks.xBenignBegin)();\n    }" { (expression_statement "(*sqlite3Hooks.xBenignBegin)();" (call_expression "(*sqlite3Hooks.xBenignBegin)()" (parenthesized_expression "(*sqlite3Hooks.xBenignBegin)" ( (pointer_expression "*sqlite3Hooks.xBenignBegin" * (field_expression "sqlite3Hooks.xBenignBegin" identifier . field_identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "p_Var5 = (_ht *)sqlite3Malloc(in_stack_ffffffb4);" (assignment_expression "p_Var5 = (_ht *)sqlite3Malloc(in_stack_ffffffb4)" identifier = (cast_expression "(_ht *)sqlite3Malloc(in_stack_ffffffb4)" ( (type_descriptor "_ht *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3Malloc(in_stack_ffffffb4)" identifier (argument_list "(in_stack_ffffffb4)" ( identifier ))))) ;) (if_statement "if (sqlite3Hooks.xBenignEnd != (_func_void *)0x0) {\n      (*sqlite3Hooks.xBenignEnd)();\n    }" if (parenthesized_expression "(sqlite3Hooks.xBenignEnd != (_func_void *)0x0)" ( (binary_expression "sqlite3Hooks.xBenignEnd != (_func_void *)0x0" (field_expression "sqlite3Hooks.xBenignEnd" identifier . field_identifier) != (cast_expression "(_func_void *)0x0" ( (type_descriptor "_func_void *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*sqlite3Hooks.xBenignEnd)();\n    }" { (expression_statement "(*sqlite3Hooks.xBenignEnd)();" (call_expression "(*sqlite3Hooks.xBenignEnd)()" (parenthesized_expression "(*sqlite3Hooks.xBenignEnd)" ( (pointer_expression "*sqlite3Hooks.xBenignEnd" * (field_expression "sqlite3Hooks.xBenignEnd" identifier . field_identifier)) )) (argument_list "()" ( ))) ;) })) (expression_statement "p_Var9 = pH->ht;" (assignment_expression "p_Var9 = pH->ht" identifier = (field_expression "pH->ht" identifier -> field_identifier)) ;) (if_statement "if (p_Var5 != (_ht *)0x0) {\n      sqlite3_free(p_Var9);\n      pH->ht = p_Var5;\n      uVar7 = (*sqlite3Config.m.xSize)(p_Var5);\n      pH->htsize = uVar7 >> 3;\n      memset(p_Var5,0,uVar7 & 0xfffffff8);\n      pNew = pH->first;\n      pH->first = (HashElem *)0x0;\n      while (pNew != (HashElem *)0x0) {\n        pbVar11 = (byte *)pNew->pKey;\n        bVar1 = *pbVar11;\n        p_Var9 = p_Var5;\n        if (bVar1 != 0) {\n          uVar6 = 0;\n          do {\n            pbVar11 = pbVar11 + 1;\n            uVar8 = (uint)bVar1;\n            bVar1 = *pbVar11;\n            uVar6 = (uVar6 + ""[uVar8]) * -0x61c8864f;\n          } while (bVar1 != 0);\n          p_Var9 = p_Var5 + uVar6 % (uVar7 >> 3);\n        }\n        pHVar3 = pNew->next;\n        insertElement((Hash *)&pH->first,p_Var9,pNew);\n        pNew = pHVar3;\n      }\n      uVar7 = 0;\n      bVar1 = *pKey;\n      while (bVar1 != 0) {\n        pKey = (char *)((byte *)pKey + 1);\n        uVar7 = (uVar7 + ""[bVar1]) * -0x61c8864f;\n        bVar1 = *pKey;\n      }\n      h = uVar7 % pH->htsize;\n      goto LAB_000464ef;\n    }" if (parenthesized_expression "(p_Var5 != (_ht *)0x0)" ( (binary_expression "p_Var5 != (_ht *)0x0" identifier != (cast_expression "(_ht *)0x0" ( (type_descriptor "_ht *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sqlite3_free(p_Var9);\n      pH->ht = p_Var5;\n      uVar7 = (*sqlite3Config.m.xSize)(p_Var5);\n      pH->htsize = uVar7 >> 3;\n      memset(p_Var5,0,uVar7 & 0xfffffff8);\n      pNew = pH->first;\n      pH->first = (HashElem *)0x0;\n      while (pNew != (HashElem *)0x0) {\n        pbVar11 = (byte *)pNew->pKey;\n        bVar1 = *pbVar11;\n        p_Var9 = p_Var5;\n        if (bVar1 != 0) {\n          uVar6 = 0;\n          do {\n            pbVar11 = pbVar11 + 1;\n            uVar8 = (uint)bVar1;\n            bVar1 = *pbVar11;\n            uVar6 = (uVar6 + ""[uVar8]) * -0x61c8864f;\n          } while (bVar1 != 0);\n          p_Var9 = p_Var5 + uVar6 % (uVar7 >> 3);\n        }\n        pHVar3 = pNew->next;\n        insertElement((Hash *)&pH->first,p_Var9,pNew);\n        pNew = pHVar3;\n      }\n      uVar7 = 0;\n      bVar1 = *pKey;\n      while (bVar1 != 0) {\n        pKey = (char *)((byte *)pKey + 1);\n        uVar7 = (uVar7 + ""[bVar1]) * -0x61c8864f;\n        bVar1 = *pKey;\n      }\n      h = uVar7 % pH->htsize;\n      goto LAB_000464ef;\n    }" { (expression_statement "sqlite3_free(p_Var9);" (call_expression "sqlite3_free(p_Var9)" identifier (argument_list "(p_Var9)" ( identifier ))) ;) (expression_statement "pH->ht = p_Var5;" (assignment_expression "pH->ht = p_Var5" (field_expression "pH->ht" identifier -> field_identifier) = identifier) ;) (expression_statement "uVar7 = (*sqlite3Config.m.xSize)(p_Var5);" (assignment_expression "uVar7 = (*sqlite3Config.m.xSize)(p_Var5)" identifier = (call_expression "(*sqlite3Config.m.xSize)(p_Var5)" (parenthesized_expression "(*sqlite3Config.m.xSize)" ( (pointer_expression "*sqlite3Config.m.xSize" * (field_expression "sqlite3Config.m.xSize" (field_expression "sqlite3Config.m" identifier . field_identifier) . field_identifier)) )) (argument_list "(p_Var5)" ( identifier )))) ;) (expression_statement "pH->htsize = uVar7 >> 3;" (assignment_expression "pH->htsize = uVar7 >> 3" (field_expression "pH->htsize" identifier -> field_identifier) = (binary_expression "uVar7 >> 3" identifier >> number_literal)) ;) (expression_statement "memset(p_Var5,0,uVar7 & 0xfffffff8);" (call_expression "memset(p_Var5,0,uVar7 & 0xfffffff8)" identifier (argument_list "(p_Var5,0,uVar7 & 0xfffffff8)" ( identifier , number_literal , (binary_expression "uVar7 & 0xfffffff8" identifier & number_literal) ))) ;) (expression_statement "pNew = pH->first;" (assignment_expression "pNew = pH->first" identifier = (field_expression "pH->first" identifier -> field_identifier)) ;) (expression_statement "pH->first = (HashElem *)0x0;" (assignment_expression "pH->first = (HashElem *)0x0" (field_expression "pH->first" identifier -> field_identifier) = (cast_expression "(HashElem *)0x0" ( (type_descriptor "HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (while_statement "while (pNew != (HashElem *)0x0) {\n        pbVar11 = (byte *)pNew->pKey;\n        bVar1 = *pbVar11;\n        p_Var9 = p_Var5;\n        if (bVar1 != 0) {\n          uVar6 = 0;\n          do {\n            pbVar11 = pbVar11 + 1;\n            uVar8 = (uint)bVar1;\n            bVar1 = *pbVar11;\n            uVar6 = (uVar6 + ""[uVar8]) * -0x61c8864f;\n          } while (bVar1 != 0);\n          p_Var9 = p_Var5 + uVar6 % (uVar7 >> 3);\n        }\n        pHVar3 = pNew->next;\n        insertElement((Hash *)&pH->first,p_Var9,pNew);\n        pNew = pHVar3;\n      }" while (parenthesized_expression "(pNew != (HashElem *)0x0)" ( (binary_expression "pNew != (HashElem *)0x0" identifier != (cast_expression "(HashElem *)0x0" ( (type_descriptor "HashElem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pbVar11 = (byte *)pNew->pKey;\n        bVar1 = *pbVar11;\n        p_Var9 = p_Var5;\n        if (bVar1 != 0) {\n          uVar6 = 0;\n          do {\n            pbVar11 = pbVar11 + 1;\n            uVar8 = (uint)bVar1;\n            bVar1 = *pbVar11;\n            uVar6 = (uVar6 + ""[uVar8]) * -0x61c8864f;\n          } while (bVar1 != 0);\n          p_Var9 = p_Var5 + uVar6 % (uVar7 >> 3);\n        }\n        pHVar3 = pNew->next;\n        insertElement((Hash *)&pH->first,p_Var9,pNew);\n        pNew = pHVar3;\n      }" { (expression_statement "pbVar11 = (byte *)pNew->pKey;" (assignment_expression "pbVar11 = (byte *)pNew->pKey" identifier = (cast_expression "(byte *)pNew->pKey" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pNew->pKey" identifier -> field_identifier))) ;) (expression_statement "bVar1 = *pbVar11;" (assignment_expression "bVar1 = *pbVar11" identifier = (pointer_expression "*pbVar11" * identifier)) ;) (expression_statement "p_Var9 = p_Var5;" (assignment_expression "p_Var9 = p_Var5" identifier = identifier) ;) (if_statement "if (bVar1 != 0) {\n          uVar6 = 0;\n          do {\n            pbVar11 = pbVar11 + 1;\n            uVar8 = (uint)bVar1;\n            bVar1 = *pbVar11;\n            uVar6 = (uVar6 + ""[uVar8]) * -0x61c8864f;\n          } while (bVar1 != 0);\n          p_Var9 = p_Var5 + uVar6 % (uVar7 >> 3);\n        }" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar6 = 0;\n          do {\n            pbVar11 = pbVar11 + 1;\n            uVar8 = (uint)bVar1;\n            bVar1 = *pbVar11;\n            uVar6 = (uVar6 + ""[uVar8]) * -0x61c8864f;\n          } while (bVar1 != 0);\n          p_Var9 = p_Var5 + uVar6 % (uVar7 >> 3);\n        }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n            pbVar11 = pbVar11 + 1;\n            uVar8 = (uint)bVar1;\n            bVar1 = *pbVar11;\n            uVar6 = (uVar6 + ""[uVar8]) * -0x61c8864f;\n          } while (bVar1 != 0);" do (compound_statement "{\n            pbVar11 = pbVar11 + 1;\n            uVar8 = (uint)bVar1;\n            bVar1 = *pbVar11;\n            uVar6 = (uVar6 + ""[uVar8]) * -0x61c8864f;\n          }" { (expression_statement "pbVar11 = pbVar11 + 1;" (assignment_expression "pbVar11 = pbVar11 + 1" identifier = (binary_expression "pbVar11 + 1" identifier + number_literal)) ;) (expression_statement "uVar8 = (uint)bVar1;" (assignment_expression "uVar8 = (uint)bVar1" identifier = (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "bVar1 = *pbVar11;" (assignment_expression "bVar1 = *pbVar11" identifier = (pointer_expression "*pbVar11" * identifier)) ;) (expression_statement "uVar6 = (uVar6 + ""[uVar8]) * -0x61c8864f;" (assignment_expression "uVar6 = (uVar6 + ""[uVar8]) * -0x61c8864f" identifier = (binary_expression "(uVar6 + ""[uVar8]) * -0x61c8864f" (parenthesized_expression "(uVar6 + ""[uVar8])" ( (binary_expression "uVar6 + ""[uVar8]" identifier + (subscript_expression """[uVar8]" (string_literal """" " ") [ identifier ])) )) * number_literal)) ;) }) while (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) ;) (expression_statement "p_Var9 = p_Var5 + uVar6 % (uVar7 >> 3);" (assignment_expression "p_Var9 = p_Var5 + uVar6 % (uVar7 >> 3)" identifier = (binary_expression "p_Var5 + uVar6 % (uVar7 >> 3)" identifier + (binary_expression "uVar6 % (uVar7 >> 3)" identifier % (parenthesized_expression "(uVar7 >> 3)" ( (binary_expression "uVar7 >> 3" identifier >> number_literal) ))))) ;) })) (expression_statement "pHVar3 = pNew->next;" (assignment_expression "pHVar3 = pNew->next" identifier = (field_expression "pNew->next" identifier -> field_identifier)) ;) (expression_statement "insertElement((Hash *)&pH->first,p_Var9,pNew);" (call_expression "insertElement((Hash *)&pH->first,p_Var9,pNew)" identifier (argument_list "((Hash *)&pH->first,p_Var9,pNew)" ( (cast_expression "(Hash *)&pH->first" ( (type_descriptor "Hash *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pH->first" & (field_expression "pH->first" identifier -> field_identifier))) , identifier , identifier ))) ;) (expression_statement "pNew = pHVar3;" (assignment_expression "pNew = pHVar3" identifier = identifier) ;) })) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "bVar1 = *pKey;" (assignment_expression "bVar1 = *pKey" identifier = (pointer_expression "*pKey" * identifier)) ;) (while_statement "while (bVar1 != 0) {\n        pKey = (char *)((byte *)pKey + 1);\n        uVar7 = (uVar7 + ""[bVar1]) * -0x61c8864f;\n        bVar1 = *pKey;\n      }" while (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        pKey = (char *)((byte *)pKey + 1);\n        uVar7 = (uVar7 + ""[bVar1]) * -0x61c8864f;\n        bVar1 = *pKey;\n      }" { (expression_statement "pKey = (char *)((byte *)pKey + 1);" (assignment_expression "pKey = (char *)((byte *)pKey + 1)" identifier = (cast_expression "(char *)((byte *)pKey + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((byte *)pKey + 1)" ( (binary_expression "(byte *)pKey + 1" (cast_expression "(byte *)pKey" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) + number_literal) )))) ;) (expression_statement "uVar7 = (uVar7 + ""[bVar1]) * -0x61c8864f;" (assignment_expression "uVar7 = (uVar7 + ""[bVar1]) * -0x61c8864f" identifier = (binary_expression "(uVar7 + ""[bVar1]) * -0x61c8864f" (parenthesized_expression "(uVar7 + ""[bVar1])" ( (binary_expression "uVar7 + ""[bVar1]" identifier + (subscript_expression """[bVar1]" (string_literal """" " ") [ identifier ])) )) * number_literal)) ;) (expression_statement "bVar1 = *pKey;" (assignment_expression "bVar1 = *pKey" identifier = (pointer_expression "*pKey" * identifier)) ;) })) (expression_statement "h = uVar7 % pH->htsize;" (assignment_expression "h = uVar7 % pH->htsize" identifier = (binary_expression "uVar7 % pH->htsize" identifier % (field_expression "pH->htsize" identifier -> field_identifier))) ;) (goto_statement "goto LAB_000464ef;" goto statement_identifier ;) })) }))) (if_statement "if (p_Var9 != (_ht *)0x0) {\n    p_Var9 = p_Var9 + h;\n  }" if (parenthesized_expression "(p_Var9 != (_ht *)0x0)" ( (binary_expression "p_Var9 != (_ht *)0x0" identifier != (cast_expression "(_ht *)0x0" ( (type_descriptor "_ht *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    p_Var9 = p_Var9 + h;\n  }" { (expression_statement "p_Var9 = p_Var9 + h;" (assignment_expression "p_Var9 = p_Var9 + h" identifier = (binary_expression "p_Var9 + h" identifier + identifier)) ;) })) (expression_statement "insertElement((Hash *)&pH->first,p_Var9,pHVar4);" (call_expression "insertElement((Hash *)&pH->first,p_Var9,pHVar4)" identifier (argument_list "((Hash *)&pH->first,p_Var9,pHVar4)" ( (cast_expression "(Hash *)&pH->first" ( (type_descriptor "Hash *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pH->first" & (field_expression "pH->first" identifier -> field_identifier))) , identifier , identifier ))) ;) (expression_statement "pvVar10 = pvVar2;" (assignment_expression "pvVar10 = pvVar2" identifier = identifier) ;) (labeled_statement "LAB_00046498:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pvVar10;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pvVar10;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return pvVar10;\n  }" { (return_statement "return pvVar10;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "uint __regparm3 FUN_00046450(uint *param_1,char *param_2,uint param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  uint uVar4;\n  undefined4 *puVar5;\n  uint *puVar6;\n  int iVar7;\n  uint uVar8;\n  void *__s;\n  uint uVar9;\n  char *pcVar10;\n  int in_GS_OFFSET;\n  int local_24;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar6 = (uint *)FUN_00037c80();\n  uVar4 = puVar6[2];\n  uVar8 = uVar4;\n  if (uVar4 == 0) {\n    if ((param_3 != 0) && (iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0)) {\n      *(uint *)(iVar7 + 8) = param_3;\n      *(char **)(iVar7 + 0xc) = param_2;\n      uVar8 = param_1[1] + 1;\n      param_1[1] = uVar8;\n      if ((9 < uVar8) && (*param_1 * 2 < uVar8)) {\n        uVar9 = 0x80;\n        if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }\n        if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }\n      }\n      FUN_000463f0();\n      uVar8 = uVar4;\n    }\n  }\n  else if (param_3 == 0) {\n    if ((uint *)puVar6[1] == (uint *)0x0) {\n      param_1[2] = *puVar6;\n    }\n    else {\n      *(uint *)puVar6[1] = *puVar6;\n    }\n    if (*puVar6 != 0) {\n      *(uint *)(*puVar6 + 4) = puVar6[1];\n    }\n    if (param_1[3] != 0) {\n      piVar1 = (int *)(param_1[3] + local_24 * 8);\n      if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }\n      *piVar1 = *piVar1 + -1;\n    }\n    FUN_00042800(puVar6);\n    uVar4 = param_1[1];\n    param_1[1] = uVar4 - 1;\n    if (uVar4 - 1 == 0) {\n      FUN_000434c0();\n    }\n  }\n  else {\n    puVar6[2] = param_3;\n    puVar6[3] = (uint)param_2;\n  }\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar8;\n  }\n                    \n  FUN_00116110();\n}\n\n" (function_definition "uint __regparm3 FUN_00046450(uint *param_1,char *param_2,uint param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  uint uVar4;\n  undefined4 *puVar5;\n  uint *puVar6;\n  int iVar7;\n  uint uVar8;\n  void *__s;\n  uint uVar9;\n  char *pcVar10;\n  int in_GS_OFFSET;\n  int local_24;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar6 = (uint *)FUN_00037c80();\n  uVar4 = puVar6[2];\n  uVar8 = uVar4;\n  if (uVar4 == 0) {\n    if ((param_3 != 0) && (iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0)) {\n      *(uint *)(iVar7 + 8) = param_3;\n      *(char **)(iVar7 + 0xc) = param_2;\n      uVar8 = param_1[1] + 1;\n      param_1[1] = uVar8;\n      if ((9 < uVar8) && (*param_1 * 2 < uVar8)) {\n        uVar9 = 0x80;\n        if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }\n        if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }\n      }\n      FUN_000463f0();\n      uVar8 = uVar4;\n    }\n  }\n  else if (param_3 == 0) {\n    if ((uint *)puVar6[1] == (uint *)0x0) {\n      param_1[2] = *puVar6;\n    }\n    else {\n      *(uint *)puVar6[1] = *puVar6;\n    }\n    if (*puVar6 != 0) {\n      *(uint *)(*puVar6 + 4) = puVar6[1];\n    }\n    if (param_1[3] != 0) {\n      piVar1 = (int *)(param_1[3] + local_24 * 8);\n      if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }\n      *piVar1 = *piVar1 + -1;\n    }\n    FUN_00042800(puVar6);\n    uVar4 = param_1[1];\n    param_1[1] = uVar4 - 1;\n    if (uVar4 - 1 == 0) {\n      FUN_000434c0();\n    }\n  }\n  else {\n    puVar6[2] = param_3;\n    puVar6[3] = (uint)param_2;\n  }\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar8;\n  }\n                    \n  FUN_00116110();\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00046450(uint *param_1,char *param_2,uint param_3)" identifier (parameter_list "(uint *param_1,char *param_2,uint param_3)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  uint uVar4;\n  undefined4 *puVar5;\n  uint *puVar6;\n  int iVar7;\n  uint uVar8;\n  void *__s;\n  uint uVar9;\n  char *pcVar10;\n  int in_GS_OFFSET;\n  int local_24;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar6 = (uint *)FUN_00037c80();\n  uVar4 = puVar6[2];\n  uVar8 = uVar4;\n  if (uVar4 == 0) {\n    if ((param_3 != 0) && (iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0)) {\n      *(uint *)(iVar7 + 8) = param_3;\n      *(char **)(iVar7 + 0xc) = param_2;\n      uVar8 = param_1[1] + 1;\n      param_1[1] = uVar8;\n      if ((9 < uVar8) && (*param_1 * 2 < uVar8)) {\n        uVar9 = 0x80;\n        if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }\n        if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }\n      }\n      FUN_000463f0();\n      uVar8 = uVar4;\n    }\n  }\n  else if (param_3 == 0) {\n    if ((uint *)puVar6[1] == (uint *)0x0) {\n      param_1[2] = *puVar6;\n    }\n    else {\n      *(uint *)puVar6[1] = *puVar6;\n    }\n    if (*puVar6 != 0) {\n      *(uint *)(*puVar6 + 4) = puVar6[1];\n    }\n    if (param_1[3] != 0) {\n      piVar1 = (int *)(param_1[3] + local_24 * 8);\n      if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }\n      *piVar1 = *piVar1 + -1;\n    }\n    FUN_00042800(puVar6);\n    uVar4 = param_1[1];\n    param_1[1] = uVar4 - 1;\n    if (uVar4 - 1 == 0) {\n      FUN_000434c0();\n    }\n  }\n  else {\n    puVar6[2] = param_3;\n    puVar6[3] = (uint)param_2;\n  }\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar8;\n  }\n                    \n  FUN_00116110();\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "void *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "puVar6 = (uint *)FUN_00037c80();" (assignment_expression "puVar6 = (uint *)FUN_00037c80()" identifier = (cast_expression "(uint *)FUN_00037c80()" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00037c80()" identifier (argument_list "()" ( ))))) ;) (expression_statement "uVar4 = puVar6[2];" (assignment_expression "uVar4 = puVar6[2]" identifier = (subscript_expression "puVar6[2]" identifier [ number_literal ])) ;) (expression_statement "uVar8 = uVar4;" (assignment_expression "uVar8 = uVar4" identifier = identifier) ;) (if_statement "if (uVar4 == 0) {\n    if ((param_3 != 0) && (iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0)) {\n      *(uint *)(iVar7 + 8) = param_3;\n      *(char **)(iVar7 + 0xc) = param_2;\n      uVar8 = param_1[1] + 1;\n      param_1[1] = uVar8;\n      if ((9 < uVar8) && (*param_1 * 2 < uVar8)) {\n        uVar9 = 0x80;\n        if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }\n        if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }\n      }\n      FUN_000463f0();\n      uVar8 = uVar4;\n    }\n  }\n  else if (param_3 == 0) {\n    if ((uint *)puVar6[1] == (uint *)0x0) {\n      param_1[2] = *puVar6;\n    }\n    else {\n      *(uint *)puVar6[1] = *puVar6;\n    }\n    if (*puVar6 != 0) {\n      *(uint *)(*puVar6 + 4) = puVar6[1];\n    }\n    if (param_1[3] != 0) {\n      piVar1 = (int *)(param_1[3] + local_24 * 8);\n      if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }\n      *piVar1 = *piVar1 + -1;\n    }\n    FUN_00042800(puVar6);\n    uVar4 = param_1[1];\n    param_1[1] = uVar4 - 1;\n    if (uVar4 - 1 == 0) {\n      FUN_000434c0();\n    }\n  }\n  else {\n    puVar6[2] = param_3;\n    puVar6[3] = (uint)param_2;\n  }" if (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    if ((param_3 != 0) && (iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0)) {\n      *(uint *)(iVar7 + 8) = param_3;\n      *(char **)(iVar7 + 0xc) = param_2;\n      uVar8 = param_1[1] + 1;\n      param_1[1] = uVar8;\n      if ((9 < uVar8) && (*param_1 * 2 < uVar8)) {\n        uVar9 = 0x80;\n        if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }\n        if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }\n      }\n      FUN_000463f0();\n      uVar8 = uVar4;\n    }\n  }" { (if_statement "if ((param_3 != 0) && (iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0)) {\n      *(uint *)(iVar7 + 8) = param_3;\n      *(char **)(iVar7 + 0xc) = param_2;\n      uVar8 = param_1[1] + 1;\n      param_1[1] = uVar8;\n      if ((9 < uVar8) && (*param_1 * 2 < uVar8)) {\n        uVar9 = 0x80;\n        if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }\n        if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }\n      }\n      FUN_000463f0();\n      uVar8 = uVar4;\n    }" if (parenthesized_expression "((param_3 != 0) && (iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0))" ( (binary_expression "(param_3 != 0) && (iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0)" (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0)" ( (comma_expression "iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0" (assignment_expression "iVar7 = FUN_000421f0()" identifier = (call_expression "FUN_000421f0()" identifier (argument_list "()" ( )))) , (comma_expression "uVar8 = param_3, iVar7 != 0" (assignment_expression "uVar8 = param_3" identifier = identifier) , (binary_expression "iVar7 != 0" identifier != number_literal))) ))) )) (compound_statement "{\n      *(uint *)(iVar7 + 8) = param_3;\n      *(char **)(iVar7 + 0xc) = param_2;\n      uVar8 = param_1[1] + 1;\n      param_1[1] = uVar8;\n      if ((9 < uVar8) && (*param_1 * 2 < uVar8)) {\n        uVar9 = 0x80;\n        if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }\n        if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }\n      }\n      FUN_000463f0();\n      uVar8 = uVar4;\n    }" { (expression_statement "*(uint *)(iVar7 + 8) = param_3;" (assignment_expression "*(uint *)(iVar7 + 8) = param_3" (pointer_expression "*(uint *)(iVar7 + 8)" * (cast_expression "(uint *)(iVar7 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 8)" ( (binary_expression "iVar7 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(char **)(iVar7 + 0xc) = param_2;" (assignment_expression "*(char **)(iVar7 + 0xc) = param_2" (pointer_expression "*(char **)(iVar7 + 0xc)" * (cast_expression "(char **)(iVar7 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar7 + 0xc)" ( (binary_expression "iVar7 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar8 = param_1[1] + 1;" (assignment_expression "uVar8 = param_1[1] + 1" identifier = (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "param_1[1] = uVar8;" (assignment_expression "param_1[1] = uVar8" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((9 < uVar8) && (*param_1 * 2 < uVar8)) {\n        uVar9 = 0x80;\n        if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }\n        if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }\n      }" if (parenthesized_expression "((9 < uVar8) && (*param_1 * 2 < uVar8))" ( (binary_expression "(9 < uVar8) && (*param_1 * 2 < uVar8)" (parenthesized_expression "(9 < uVar8)" ( (binary_expression "9 < uVar8" number_literal < identifier) )) && (parenthesized_expression "(*param_1 * 2 < uVar8)" ( (binary_expression "*param_1 * 2 < uVar8" (binary_expression "*param_1 * 2" (pointer_expression "*param_1" * identifier) * number_literal) < identifier) ))) )) (compound_statement "{\n        uVar9 = 0x80;\n        if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }\n        if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }\n      }" { (expression_statement "uVar9 = 0x80;" (assignment_expression "uVar9 = 0x80" identifier = number_literal) ;) (if_statement "if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }" if (parenthesized_expression "(uVar8 * 0x10 < 0x401)" ( (binary_expression "uVar8 * 0x10 < 0x401" (binary_expression "uVar8 * 0x10" identifier * number_literal) < number_literal) )) (compound_statement "{\n          uVar9 = uVar8 * 2;\n        }" { (expression_statement "uVar9 = uVar8 * 2;" (assignment_expression "uVar9 = uVar8 * 2" identifier = (binary_expression "uVar8 * 2" identifier * number_literal)) ;) })) (if_statement "if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }" if (parenthesized_expression "(*param_1 != uVar9)" ( (binary_expression "*param_1 != uVar9" (pointer_expression "*param_1" * identifier) != identifier) )) (compound_statement "{\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }" { (if_statement "if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }" if (parenthesized_expression "(DAT_0017ddd4 != (code *)0x0)" ( (binary_expression "DAT_0017ddd4 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            (*DAT_0017ddd4)();\n          }" { (expression_statement "(*DAT_0017ddd4)();" (call_expression "(*DAT_0017ddd4)()" (parenthesized_expression "(*DAT_0017ddd4)" ( (pointer_expression "*DAT_0017ddd4" * identifier) )) (argument_list "()" ( ))) ;) })) (expression_statement "__s = (void *)FUN_000421f0();" (assignment_expression "__s = (void *)FUN_000421f0()" identifier = (cast_expression "(void *)FUN_000421f0()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000421f0()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }" if (parenthesized_expression "(DAT_0017ddd8 != (code *)0x0)" ( (binary_expression "DAT_0017ddd8 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            (*DAT_0017ddd8)();\n          }" { (expression_statement "(*DAT_0017ddd8)();" (call_expression "(*DAT_0017ddd8)()" (parenthesized_expression "(*DAT_0017ddd8)" ( (pointer_expression "*DAT_0017ddd8" * identifier) )) (argument_list "()" ( ))) ;) })) (if_statement "if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }" if (parenthesized_expression "(__s != (void *)0x0)" ( (binary_expression "__s != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }" { (expression_statement "FUN_00042800(param_1[3]);" (call_expression "FUN_00042800(param_1[3])" identifier (argument_list "(param_1[3])" ( (subscript_expression "param_1[3]" identifier [ number_literal ]) ))) ;) (expression_statement "param_1[3] = (uint)__s;" (assignment_expression "param_1[3] = (uint)__s" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (cast_expression "(uint)__s" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "uVar8 = (*DAT_0017c418)(__s);" (assignment_expression "uVar8 = (*DAT_0017c418)(__s)" identifier = (call_expression "(*DAT_0017c418)(__s)" (parenthesized_expression "(*DAT_0017c418)" ( (pointer_expression "*DAT_0017c418" * identifier) )) (argument_list "(__s)" ( identifier )))) ;) (expression_statement "*param_1 = uVar8 >> 3;" (assignment_expression "*param_1 = uVar8 >> 3" (pointer_expression "*param_1" * identifier) = (binary_expression "uVar8 >> 3" identifier >> number_literal)) ;) (expression_statement "memset(__s,0,uVar8 & 0xfffffff8);" (call_expression "memset(__s,0,uVar8 & 0xfffffff8)" identifier (argument_list "(__s,0,uVar8 & 0xfffffff8)" ( identifier , number_literal , (binary_expression "uVar8 & 0xfffffff8" identifier & number_literal) ))) ;) (expression_statement "puVar5 = (undefined4 *)param_1[2];" (assignment_expression "puVar5 = (undefined4 *)param_1[2]" identifier = (cast_expression "(undefined4 *)param_1[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (while_statement "while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }" while (parenthesized_expression "(puVar5 != (undefined4 *)0x0)" ( (binary_expression "puVar5 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }" { (expression_statement "pcVar10 = (char *)puVar5[3];" (assignment_expression "pcVar10 = (char *)puVar5[3]" identifier = (cast_expression "(char *)puVar5[3]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar5[3]" identifier [ number_literal ]))) ;) (expression_statement "cVar3 = *pcVar10;" (assignment_expression "cVar3 = *pcVar10" identifier = (pointer_expression "*pcVar10" * identifier)) ;) (while_statement "while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }" while (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }" { (expression_statement "pcVar10 = pcVar10 + 1;" (assignment_expression "pcVar10 = pcVar10 + 1" identifier = (binary_expression "pcVar10 + 1" identifier + number_literal)) ;) (expression_statement "cVar3 = *pcVar10;" (assignment_expression "cVar3 = *pcVar10" identifier = (pointer_expression "*pcVar10" * identifier)) ;) })) (expression_statement "puVar5 = (undefined4 *)*puVar5;" (assignment_expression "puVar5 = (undefined4 *)*puVar5" identifier = (cast_expression "(undefined4 *)*puVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) (expression_statement "FUN_000463f0();" (call_expression "FUN_000463f0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "cVar3 = *param_2;" (assignment_expression "cVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (while_statement "while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }" while (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }" { (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "cVar3 = *param_2;" (assignment_expression "cVar3 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) })) })) })) })) (expression_statement "FUN_000463f0();" (call_expression "FUN_000463f0()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar8 = uVar4;" (assignment_expression "uVar8 = uVar4" identifier = identifier) ;) })) }) (else_clause "else if (param_3 == 0) {\n    if ((uint *)puVar6[1] == (uint *)0x0) {\n      param_1[2] = *puVar6;\n    }\n    else {\n      *(uint *)puVar6[1] = *puVar6;\n    }\n    if (*puVar6 != 0) {\n      *(uint *)(*puVar6 + 4) = puVar6[1];\n    }\n    if (param_1[3] != 0) {\n      piVar1 = (int *)(param_1[3] + local_24 * 8);\n      if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }\n      *piVar1 = *piVar1 + -1;\n    }\n    FUN_00042800(puVar6);\n    uVar4 = param_1[1];\n    param_1[1] = uVar4 - 1;\n    if (uVar4 - 1 == 0) {\n      FUN_000434c0();\n    }\n  }\n  else {\n    puVar6[2] = param_3;\n    puVar6[3] = (uint)param_2;\n  }" else (if_statement "if (param_3 == 0) {\n    if ((uint *)puVar6[1] == (uint *)0x0) {\n      param_1[2] = *puVar6;\n    }\n    else {\n      *(uint *)puVar6[1] = *puVar6;\n    }\n    if (*puVar6 != 0) {\n      *(uint *)(*puVar6 + 4) = puVar6[1];\n    }\n    if (param_1[3] != 0) {\n      piVar1 = (int *)(param_1[3] + local_24 * 8);\n      if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }\n      *piVar1 = *piVar1 + -1;\n    }\n    FUN_00042800(puVar6);\n    uVar4 = param_1[1];\n    param_1[1] = uVar4 - 1;\n    if (uVar4 - 1 == 0) {\n      FUN_000434c0();\n    }\n  }\n  else {\n    puVar6[2] = param_3;\n    puVar6[3] = (uint)param_2;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    if ((uint *)puVar6[1] == (uint *)0x0) {\n      param_1[2] = *puVar6;\n    }\n    else {\n      *(uint *)puVar6[1] = *puVar6;\n    }\n    if (*puVar6 != 0) {\n      *(uint *)(*puVar6 + 4) = puVar6[1];\n    }\n    if (param_1[3] != 0) {\n      piVar1 = (int *)(param_1[3] + local_24 * 8);\n      if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }\n      *piVar1 = *piVar1 + -1;\n    }\n    FUN_00042800(puVar6);\n    uVar4 = param_1[1];\n    param_1[1] = uVar4 - 1;\n    if (uVar4 - 1 == 0) {\n      FUN_000434c0();\n    }\n  }" { (if_statement "if ((uint *)puVar6[1] == (uint *)0x0) {\n      param_1[2] = *puVar6;\n    }\n    else {\n      *(uint *)puVar6[1] = *puVar6;\n    }" if (parenthesized_expression "((uint *)puVar6[1] == (uint *)0x0)" ( (binary_expression "(uint *)puVar6[1] == (uint *)0x0" (cast_expression "(uint *)puVar6[1]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar6[1]" identifier [ number_literal ])) == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      param_1[2] = *puVar6;\n    }" { (expression_statement "param_1[2] = *puVar6;" (assignment_expression "param_1[2] = *puVar6" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (pointer_expression "*puVar6" * identifier)) ;) }) (else_clause "else {\n      *(uint *)puVar6[1] = *puVar6;\n    }" else (compound_statement "{\n      *(uint *)puVar6[1] = *puVar6;\n    }" { (expression_statement "*(uint *)puVar6[1] = *puVar6;" (assignment_expression "*(uint *)puVar6[1] = *puVar6" (pointer_expression "*(uint *)puVar6[1]" * (cast_expression "(uint *)puVar6[1]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar6[1]" identifier [ number_literal ]))) = (pointer_expression "*puVar6" * identifier)) ;) }))) (if_statement "if (*puVar6 != 0) {\n      *(uint *)(*puVar6 + 4) = puVar6[1];\n    }" if (parenthesized_expression "(*puVar6 != 0)" ( (binary_expression "*puVar6 != 0" (pointer_expression "*puVar6" * identifier) != number_literal) )) (compound_statement "{\n      *(uint *)(*puVar6 + 4) = puVar6[1];\n    }" { (expression_statement "*(uint *)(*puVar6 + 4) = puVar6[1];" (assignment_expression "*(uint *)(*puVar6 + 4) = puVar6[1]" (pointer_expression "*(uint *)(*puVar6 + 4)" * (cast_expression "(uint *)(*puVar6 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*puVar6 + 4)" ( (binary_expression "*puVar6 + 4" (pointer_expression "*puVar6" * identifier) + number_literal) )))) = (subscript_expression "puVar6[1]" identifier [ number_literal ])) ;) })) (if_statement "if (param_1[3] != 0) {\n      piVar1 = (int *)(param_1[3] + local_24 * 8);\n      if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }\n      *piVar1 = *piVar1 + -1;\n    }" if (parenthesized_expression "(param_1[3] != 0)" ( (binary_expression "param_1[3] != 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      piVar1 = (int *)(param_1[3] + local_24 * 8);\n      if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }\n      *piVar1 = *piVar1 + -1;\n    }" { (expression_statement "piVar1 = (int *)(param_1[3] + local_24 * 8);" (assignment_expression "piVar1 = (int *)(param_1[3] + local_24 * 8)" identifier = (cast_expression "(int *)(param_1[3] + local_24 * 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[3] + local_24 * 8)" ( (binary_expression "param_1[3] + local_24 * 8" (subscript_expression "param_1[3]" identifier [ number_literal ]) + (binary_expression "local_24 * 8" identifier * number_literal)) )))) ;) (if_statement "if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }" if (parenthesized_expression "(puVar6 == (uint *)piVar1[1])" ( (binary_expression "puVar6 == (uint *)piVar1[1]" identifier == (cast_expression "(uint *)piVar1[1]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) )) (compound_statement "{\n        piVar1[1] = *puVar6;\n      }" { (expression_statement "piVar1[1] = *puVar6;" (assignment_expression "piVar1[1] = *puVar6" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = (pointer_expression "*puVar6" * identifier)) ;) })) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) })) (expression_statement "FUN_00042800(puVar6);" (call_expression "FUN_00042800(puVar6)" identifier (argument_list "(puVar6)" ( identifier ))) ;) (expression_statement "uVar4 = param_1[1];" (assignment_expression "uVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = uVar4 - 1;" (assignment_expression "param_1[1] = uVar4 - 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "uVar4 - 1" identifier - number_literal)) ;) (if_statement "if (uVar4 - 1 == 0) {\n      FUN_000434c0();\n    }" if (parenthesized_expression "(uVar4 - 1 == 0)" ( (binary_expression "uVar4 - 1 == 0" (binary_expression "uVar4 - 1" identifier - number_literal) == number_literal) )) (compound_statement "{\n      FUN_000434c0();\n    }" { (expression_statement "FUN_000434c0();" (call_expression "FUN_000434c0()" identifier (argument_list "()" ( ))) ;) })) }) (else_clause "else {\n    puVar6[2] = param_3;\n    puVar6[3] = (uint)param_2;\n  }" else (compound_statement "{\n    puVar6[2] = param_3;\n    puVar6[3] = (uint)param_2;\n  }" { (expression_statement "puVar6[2] = param_3;" (assignment_expression "puVar6[2] = param_3" (subscript_expression "puVar6[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar6[3] = (uint)param_2;" (assignment_expression "puVar6[3] = (uint)param_2" (subscript_expression "puVar6[3]" identifier [ number_literal ]) = (cast_expression "(uint)param_2" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) }))))) (if_statement "if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar8;\n  }" if (parenthesized_expression "(iVar2 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar8;\n  }" { (return_statement "return uVar8;" return identifier ;) })) (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })))
(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) ))) (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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE 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 IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT != LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = 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 IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) * LIT) < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT * LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT >> LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression IDENT & LIT) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) })) })) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (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 ])) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }))))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "uint __regparm3 FUN_00046450(uint *param_1,char *param_2,uint param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  uint uVar4;\n  undefined4 *puVar5;\n  uint *puVar6;\n  int iVar7;\n  uint uVar8;\n  void *__s;\n  uint uVar9;\n  char *pcVar10;\n  int in_GS_OFFSET;\n  int local_24;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar6 = (uint *)FUN_00037c80();\n  uVar4 = puVar6[2];\n  uVar8 = uVar4;\n  if (uVar4 == 0) {\n    if ((param_3 != 0) && (iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0)) {\n      *(uint *)(iVar7 + 8) = param_3;\n      *(char **)(iVar7 + 0xc) = param_2;\n      uVar8 = param_1[1] + 1;\n      param_1[1] = uVar8;\n      if ((9 < uVar8) && (*param_1 * 2 < uVar8)) {\n        uVar9 = 0x80;\n        if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }\n        if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }\n      }\n      FUN_000463f0();\n      uVar8 = uVar4;\n    }\n  }\n  else if (param_3 == 0) {\n    if ((uint *)puVar6[1] == (uint *)0x0) {\n      param_1[2] = *puVar6;\n    }\n    else {\n      *(uint *)puVar6[1] = *puVar6;\n    }\n    if (*puVar6 != 0) {\n      *(uint *)(*puVar6 + 4) = puVar6[1];\n    }\n    if (param_1[3] != 0) {\n      piVar1 = (int *)(param_1[3] + local_24 * 8);\n      if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }\n      *piVar1 = *piVar1 + -1;\n    }\n    FUN_00042800(puVar6);\n    uVar4 = param_1[1];\n    param_1[1] = uVar4 - 1;\n    if (uVar4 - 1 == 0) {\n      FUN_000434c0();\n    }\n  }\n  else {\n    puVar6[2] = param_3;\n    puVar6[3] = (uint)param_2;\n  }\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar8;\n  }\n                    \n  FUN_00116110();\n}" (type_identifier "uint") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00046450(uint *param_1,char *param_2,uint param_3)" (identifier "FUN_00046450") (parameter_list "(uint *param_1,char *param_2,uint param_3)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  uint uVar4;\n  undefined4 *puVar5;\n  uint *puVar6;\n  int iVar7;\n  uint uVar8;\n  void *__s;\n  uint uVar9;\n  char *pcVar10;\n  int in_GS_OFFSET;\n  int local_24;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar6 = (uint *)FUN_00037c80();\n  uVar4 = puVar6[2];\n  uVar8 = uVar4;\n  if (uVar4 == 0) {\n    if ((param_3 != 0) && (iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0)) {\n      *(uint *)(iVar7 + 8) = param_3;\n      *(char **)(iVar7 + 0xc) = param_2;\n      uVar8 = param_1[1] + 1;\n      param_1[1] = uVar8;\n      if ((9 < uVar8) && (*param_1 * 2 < uVar8)) {\n        uVar9 = 0x80;\n        if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }\n        if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }\n      }\n      FUN_000463f0();\n      uVar8 = uVar4;\n    }\n  }\n  else if (param_3 == 0) {\n    if ((uint *)puVar6[1] == (uint *)0x0) {\n      param_1[2] = *puVar6;\n    }\n    else {\n      *(uint *)puVar6[1] = *puVar6;\n    }\n    if (*puVar6 != 0) {\n      *(uint *)(*puVar6 + 4) = puVar6[1];\n    }\n    if (param_1[3] != 0) {\n      piVar1 = (int *)(param_1[3] + local_24 * 8);\n      if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }\n      *piVar1 = *piVar1 + -1;\n    }\n    FUN_00042800(puVar6);\n    uVar4 = param_1[1];\n    param_1[1] = uVar4 - 1;\n    if (uVar4 - 1 == 0) {\n      FUN_000434c0();\n    }\n  }\n  else {\n    puVar6[2] = param_3;\n    puVar6[3] = (uint)param_2;\n  }\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar8;\n  }\n                    \n  FUN_00116110();\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char cVar3;" (primitive_type "char") (identifier "cVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "uint *puVar6;" (type_identifier "uint") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "void *__s;" (primitive_type "void") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "char *pcVar10;" (primitive_type "char") (pointer_declarator "*pcVar10" (* "*") (identifier "pcVar10")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "puVar6 = (uint *)FUN_00037c80();" (assignment_expression "puVar6 = (uint *)FUN_00037c80()" (identifier "puVar6") (= "=") (cast_expression "(uint *)FUN_00037c80()" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00037c80()" (identifier "FUN_00037c80") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar4 = puVar6[2];" (assignment_expression "uVar4 = puVar6[2]" (identifier "uVar4") (= "=") (subscript_expression "puVar6[2]" (identifier "puVar6") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar8 = uVar4;" (assignment_expression "uVar8 = uVar4" (identifier "uVar8") (= "=") (identifier "uVar4")) (; ";")) (if_statement "if (uVar4 == 0) {\n    if ((param_3 != 0) && (iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0)) {\n      *(uint *)(iVar7 + 8) = param_3;\n      *(char **)(iVar7 + 0xc) = param_2;\n      uVar8 = param_1[1] + 1;\n      param_1[1] = uVar8;\n      if ((9 < uVar8) && (*param_1 * 2 < uVar8)) {\n        uVar9 = 0x80;\n        if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }\n        if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }\n      }\n      FUN_000463f0();\n      uVar8 = uVar4;\n    }\n  }\n  else if (param_3 == 0) {\n    if ((uint *)puVar6[1] == (uint *)0x0) {\n      param_1[2] = *puVar6;\n    }\n    else {\n      *(uint *)puVar6[1] = *puVar6;\n    }\n    if (*puVar6 != 0) {\n      *(uint *)(*puVar6 + 4) = puVar6[1];\n    }\n    if (param_1[3] != 0) {\n      piVar1 = (int *)(param_1[3] + local_24 * 8);\n      if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }\n      *piVar1 = *piVar1 + -1;\n    }\n    FUN_00042800(puVar6);\n    uVar4 = param_1[1];\n    param_1[1] = uVar4 - 1;\n    if (uVar4 - 1 == 0) {\n      FUN_000434c0();\n    }\n  }\n  else {\n    puVar6[2] = param_3;\n    puVar6[3] = (uint)param_2;\n  }" (if "if") (parenthesized_expression "(uVar4 == 0)" (( "(") (binary_expression "uVar4 == 0" (identifier "uVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if ((param_3 != 0) && (iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0)) {\n      *(uint *)(iVar7 + 8) = param_3;\n      *(char **)(iVar7 + 0xc) = param_2;\n      uVar8 = param_1[1] + 1;\n      param_1[1] = uVar8;\n      if ((9 < uVar8) && (*param_1 * 2 < uVar8)) {\n        uVar9 = 0x80;\n        if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }\n        if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }\n      }\n      FUN_000463f0();\n      uVar8 = uVar4;\n    }\n  }" ({ "{") (if_statement "if ((param_3 != 0) && (iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0)) {\n      *(uint *)(iVar7 + 8) = param_3;\n      *(char **)(iVar7 + 0xc) = param_2;\n      uVar8 = param_1[1] + 1;\n      param_1[1] = uVar8;\n      if ((9 < uVar8) && (*param_1 * 2 < uVar8)) {\n        uVar9 = 0x80;\n        if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }\n        if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }\n      }\n      FUN_000463f0();\n      uVar8 = uVar4;\n    }" (if "if") (parenthesized_expression "((param_3 != 0) && (iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0))" (( "(") (binary_expression "(param_3 != 0) && (iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0)" (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0)" (( "(") (comma_expression "iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0" (assignment_expression "iVar7 = FUN_000421f0()" (identifier "iVar7") (= "=") (call_expression "FUN_000421f0()" (identifier "FUN_000421f0") (argument_list "()" (( "(") () ")")))) (, ",") (comma_expression "uVar8 = param_3, iVar7 != 0" (assignment_expression "uVar8 = param_3" (identifier "uVar8") (= "=") (identifier "param_3")) (, ",") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")))) () ")"))) () ")")) (compound_statement "{\n      *(uint *)(iVar7 + 8) = param_3;\n      *(char **)(iVar7 + 0xc) = param_2;\n      uVar8 = param_1[1] + 1;\n      param_1[1] = uVar8;\n      if ((9 < uVar8) && (*param_1 * 2 < uVar8)) {\n        uVar9 = 0x80;\n        if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }\n        if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }\n      }\n      FUN_000463f0();\n      uVar8 = uVar4;\n    }" ({ "{") (expression_statement "*(uint *)(iVar7 + 8) = param_3;" (assignment_expression "*(uint *)(iVar7 + 8) = param_3" (pointer_expression "*(uint *)(iVar7 + 8)" (* "*") (cast_expression "(uint *)(iVar7 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 8)" (( "(") (binary_expression "iVar7 + 8" (identifier "iVar7") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(char **)(iVar7 + 0xc) = param_2;" (assignment_expression "*(char **)(iVar7 + 0xc) = param_2" (pointer_expression "*(char **)(iVar7 + 0xc)" (* "*") (cast_expression "(char **)(iVar7 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar7 + 0xc)" (( "(") (binary_expression "iVar7 + 0xc" (identifier "iVar7") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "uVar8 = param_1[1] + 1;" (assignment_expression "uVar8 = param_1[1] + 1" (identifier "uVar8") (= "=") (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_1[1] = uVar8;" (assignment_expression "param_1[1] = uVar8" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar8")) (; ";")) (if_statement "if ((9 < uVar8) && (*param_1 * 2 < uVar8)) {\n        uVar9 = 0x80;\n        if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }\n        if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }\n      }" (if "if") (parenthesized_expression "((9 < uVar8) && (*param_1 * 2 < uVar8))" (( "(") (binary_expression "(9 < uVar8) && (*param_1 * 2 < uVar8)" (parenthesized_expression "(9 < uVar8)" (( "(") (binary_expression "9 < uVar8" (number_literal "9") (< "<") (identifier "uVar8")) () ")")) (&& "&&") (parenthesized_expression "(*param_1 * 2 < uVar8)" (( "(") (binary_expression "*param_1 * 2 < uVar8" (binary_expression "*param_1 * 2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (* "*") (number_literal "2")) (< "<") (identifier "uVar8")) () ")"))) () ")")) (compound_statement "{\n        uVar9 = 0x80;\n        if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }\n        if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }\n      }" ({ "{") (expression_statement "uVar9 = 0x80;" (assignment_expression "uVar9 = 0x80" (identifier "uVar9") (= "=") (number_literal "0x80")) (; ";")) (if_statement "if (uVar8 * 0x10 < 0x401) {\n          uVar9 = uVar8 * 2;\n        }" (if "if") (parenthesized_expression "(uVar8 * 0x10 < 0x401)" (( "(") (binary_expression "uVar8 * 0x10 < 0x401" (binary_expression "uVar8 * 0x10" (identifier "uVar8") (* "*") (number_literal "0x10")) (< "<") (number_literal "0x401")) () ")")) (compound_statement "{\n          uVar9 = uVar8 * 2;\n        }" ({ "{") (expression_statement "uVar9 = uVar8 * 2;" (assignment_expression "uVar9 = uVar8 * 2" (identifier "uVar9") (= "=") (binary_expression "uVar8 * 2" (identifier "uVar8") (* "*") (number_literal "2"))) (; ";")) (} "}"))) (if_statement "if (*param_1 != uVar9) {\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }" (if "if") (parenthesized_expression "(*param_1 != uVar9)" (( "(") (binary_expression "*param_1 != uVar9" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (identifier "uVar9")) () ")")) (compound_statement "{\n          if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }\n          __s = (void *)FUN_000421f0();\n          if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }\n          if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }\n        }" ({ "{") (if_statement "if (DAT_0017ddd4 != (code *)0x0) {\n            (*DAT_0017ddd4)();\n          }" (if "if") (parenthesized_expression "(DAT_0017ddd4 != (code *)0x0)" (( "(") (binary_expression "DAT_0017ddd4 != (code *)0x0" (identifier "DAT_0017ddd4") (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            (*DAT_0017ddd4)();\n          }" ({ "{") (expression_statement "(*DAT_0017ddd4)();" (call_expression "(*DAT_0017ddd4)()" (parenthesized_expression "(*DAT_0017ddd4)" (( "(") (pointer_expression "*DAT_0017ddd4" (* "*") (identifier "DAT_0017ddd4")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "__s = (void *)FUN_000421f0();" (assignment_expression "__s = (void *)FUN_000421f0()" (identifier "__s") (= "=") (cast_expression "(void *)FUN_000421f0()" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000421f0()" (identifier "FUN_000421f0") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (DAT_0017ddd8 != (code *)0x0) {\n            (*DAT_0017ddd8)();\n          }" (if "if") (parenthesized_expression "(DAT_0017ddd8 != (code *)0x0)" (( "(") (binary_expression "DAT_0017ddd8 != (code *)0x0" (identifier "DAT_0017ddd8") (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            (*DAT_0017ddd8)();\n          }" ({ "{") (expression_statement "(*DAT_0017ddd8)();" (call_expression "(*DAT_0017ddd8)()" (parenthesized_expression "(*DAT_0017ddd8)" (( "(") (pointer_expression "*DAT_0017ddd8" (* "*") (identifier "DAT_0017ddd8")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (__s != (void *)0x0) {\n            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }" (if "if") (parenthesized_expression "(__s != (void *)0x0)" (( "(") (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            FUN_00042800(param_1[3]);\n            param_1[3] = (uint)__s;\n            uVar8 = (*DAT_0017c418)(__s);\n            *param_1 = uVar8 >> 3;\n            memset(__s,0,uVar8 & 0xfffffff8);\n            puVar5 = (undefined4 *)param_1[2];\n            param_1[2] = 0;\n            while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }\n            cVar3 = *param_2;\n            while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }\n          }" ({ "{") (expression_statement "FUN_00042800(param_1[3]);" (call_expression "FUN_00042800(param_1[3])" (identifier "FUN_00042800") (argument_list "(param_1[3])" (( "(") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) () ")"))) (; ";")) (expression_statement "param_1[3] = (uint)__s;" (assignment_expression "param_1[3] = (uint)__s" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (cast_expression "(uint)__s" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "__s"))) (; ";")) (expression_statement "uVar8 = (*DAT_0017c418)(__s);" (assignment_expression "uVar8 = (*DAT_0017c418)(__s)" (identifier "uVar8") (= "=") (call_expression "(*DAT_0017c418)(__s)" (parenthesized_expression "(*DAT_0017c418)" (( "(") (pointer_expression "*DAT_0017c418" (* "*") (identifier "DAT_0017c418")) () ")")) (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "*param_1 = uVar8 >> 3;" (assignment_expression "*param_1 = uVar8 >> 3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "uVar8 >> 3" (identifier "uVar8") (>> ">>") (number_literal "3"))) (; ";")) (expression_statement "memset(__s,0,uVar8 & 0xfffffff8);" (call_expression "memset(__s,0,uVar8 & 0xfffffff8)" (identifier "memset") (argument_list "(__s,0,uVar8 & 0xfffffff8)" (( "(") (identifier "__s") (, ",") (number_literal "0") (, ",") (binary_expression "uVar8 & 0xfffffff8" (identifier "uVar8") (& "&") (number_literal "0xfffffff8")) () ")"))) (; ";")) (expression_statement "puVar5 = (undefined4 *)param_1[2];" (assignment_expression "puVar5 = (undefined4 *)param_1[2]" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)param_1[2]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (while_statement "while (puVar5 != (undefined4 *)0x0) {\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }" (while "while") (parenthesized_expression "(puVar5 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar5 != (undefined4 *)0x0" (identifier "puVar5") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n              pcVar10 = (char *)puVar5[3];\n              cVar3 = *pcVar10;\n              while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }\n              puVar5 = (undefined4 *)*puVar5;\n              FUN_000463f0();\n            }" ({ "{") (expression_statement "pcVar10 = (char *)puVar5[3];" (assignment_expression "pcVar10 = (char *)puVar5[3]" (identifier "pcVar10") (= "=") (cast_expression "(char *)puVar5[3]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar5[3]" (identifier "puVar5") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "cVar3 = *pcVar10;" (assignment_expression "cVar3 = *pcVar10" (identifier "cVar3") (= "=") (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10"))) (; ";")) (while_statement "while (cVar3 != '\0') {\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }" (while "while") (parenthesized_expression "(cVar3 != '\0')" (( "(") (binary_expression "cVar3 != '\0'" (identifier "cVar3") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n                pcVar10 = pcVar10 + 1;\n                cVar3 = *pcVar10;\n              }" ({ "{") (expression_statement "pcVar10 = pcVar10 + 1;" (assignment_expression "pcVar10 = pcVar10 + 1" (identifier "pcVar10") (= "=") (binary_expression "pcVar10 + 1" (identifier "pcVar10") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar3 = *pcVar10;" (assignment_expression "cVar3 = *pcVar10" (identifier "cVar3") (= "=") (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10"))) (; ";")) (} "}"))) (expression_statement "puVar5 = (undefined4 *)*puVar5;" (assignment_expression "puVar5 = (undefined4 *)*puVar5" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)*puVar5" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")))) (; ";")) (expression_statement "FUN_000463f0();" (call_expression "FUN_000463f0()" (identifier "FUN_000463f0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "cVar3 = *param_2;" (assignment_expression "cVar3 = *param_2" (identifier "cVar3") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (while_statement "while (cVar3 != '\0') {\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }" (while "while") (parenthesized_expression "(cVar3 != '\0')" (( "(") (binary_expression "cVar3 != '\0'" (identifier "cVar3") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n              param_2 = param_2 + 1;\n              cVar3 = *param_2;\n            }" ({ "{") (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar3 = *param_2;" (assignment_expression "cVar3 = *param_2" (identifier "cVar3") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (} "}"))) (} "}"))) (} "}"))) (} "}"))) (expression_statement "FUN_000463f0();" (call_expression "FUN_000463f0()" (identifier "FUN_000463f0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar8 = uVar4;" (assignment_expression "uVar8 = uVar4" (identifier "uVar8") (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (} "}")) (else_clause "else if (param_3 == 0) {\n    if ((uint *)puVar6[1] == (uint *)0x0) {\n      param_1[2] = *puVar6;\n    }\n    else {\n      *(uint *)puVar6[1] = *puVar6;\n    }\n    if (*puVar6 != 0) {\n      *(uint *)(*puVar6 + 4) = puVar6[1];\n    }\n    if (param_1[3] != 0) {\n      piVar1 = (int *)(param_1[3] + local_24 * 8);\n      if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }\n      *piVar1 = *piVar1 + -1;\n    }\n    FUN_00042800(puVar6);\n    uVar4 = param_1[1];\n    param_1[1] = uVar4 - 1;\n    if (uVar4 - 1 == 0) {\n      FUN_000434c0();\n    }\n  }\n  else {\n    puVar6[2] = param_3;\n    puVar6[3] = (uint)param_2;\n  }" (else "else") (if_statement "if (param_3 == 0) {\n    if ((uint *)puVar6[1] == (uint *)0x0) {\n      param_1[2] = *puVar6;\n    }\n    else {\n      *(uint *)puVar6[1] = *puVar6;\n    }\n    if (*puVar6 != 0) {\n      *(uint *)(*puVar6 + 4) = puVar6[1];\n    }\n    if (param_1[3] != 0) {\n      piVar1 = (int *)(param_1[3] + local_24 * 8);\n      if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }\n      *piVar1 = *piVar1 + -1;\n    }\n    FUN_00042800(puVar6);\n    uVar4 = param_1[1];\n    param_1[1] = uVar4 - 1;\n    if (uVar4 - 1 == 0) {\n      FUN_000434c0();\n    }\n  }\n  else {\n    puVar6[2] = param_3;\n    puVar6[3] = (uint)param_2;\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if ((uint *)puVar6[1] == (uint *)0x0) {\n      param_1[2] = *puVar6;\n    }\n    else {\n      *(uint *)puVar6[1] = *puVar6;\n    }\n    if (*puVar6 != 0) {\n      *(uint *)(*puVar6 + 4) = puVar6[1];\n    }\n    if (param_1[3] != 0) {\n      piVar1 = (int *)(param_1[3] + local_24 * 8);\n      if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }\n      *piVar1 = *piVar1 + -1;\n    }\n    FUN_00042800(puVar6);\n    uVar4 = param_1[1];\n    param_1[1] = uVar4 - 1;\n    if (uVar4 - 1 == 0) {\n      FUN_000434c0();\n    }\n  }" ({ "{") (if_statement "if ((uint *)puVar6[1] == (uint *)0x0) {\n      param_1[2] = *puVar6;\n    }\n    else {\n      *(uint *)puVar6[1] = *puVar6;\n    }" (if "if") (parenthesized_expression "((uint *)puVar6[1] == (uint *)0x0)" (( "(") (binary_expression "(uint *)puVar6[1] == (uint *)0x0" (cast_expression "(uint *)puVar6[1]" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]"))) (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      param_1[2] = *puVar6;\n    }" ({ "{") (expression_statement "param_1[2] = *puVar6;" (assignment_expression "param_1[2] = *puVar6" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) (; ";")) (} "}")) (else_clause "else {\n      *(uint *)puVar6[1] = *puVar6;\n    }" (else "else") (compound_statement "{\n      *(uint *)puVar6[1] = *puVar6;\n    }" ({ "{") (expression_statement "*(uint *)puVar6[1] = *puVar6;" (assignment_expression "*(uint *)puVar6[1] = *puVar6" (pointer_expression "*(uint *)puVar6[1]" (* "*") (cast_expression "(uint *)puVar6[1]" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]")))) (= "=") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) (; ";")) (} "}")))) (if_statement "if (*puVar6 != 0) {\n      *(uint *)(*puVar6 + 4) = puVar6[1];\n    }" (if "if") (parenthesized_expression "(*puVar6 != 0)" (( "(") (binary_expression "*puVar6 != 0" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(uint *)(*puVar6 + 4) = puVar6[1];\n    }" ({ "{") (expression_statement "*(uint *)(*puVar6 + 4) = puVar6[1];" (assignment_expression "*(uint *)(*puVar6 + 4) = puVar6[1]" (pointer_expression "*(uint *)(*puVar6 + 4)" (* "*") (cast_expression "(uint *)(*puVar6 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*puVar6 + 4)" (( "(") (binary_expression "*puVar6 + 4" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (+ "+") (number_literal "4")) () ")")))) (= "=") (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}"))) (if_statement "if (param_1[3] != 0) {\n      piVar1 = (int *)(param_1[3] + local_24 * 8);\n      if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }\n      *piVar1 = *piVar1 + -1;\n    }" (if "if") (parenthesized_expression "(param_1[3] != 0)" (( "(") (binary_expression "param_1[3] != 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      piVar1 = (int *)(param_1[3] + local_24 * 8);\n      if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }\n      *piVar1 = *piVar1 + -1;\n    }" ({ "{") (expression_statement "piVar1 = (int *)(param_1[3] + local_24 * 8);" (assignment_expression "piVar1 = (int *)(param_1[3] + local_24 * 8)" (identifier "piVar1") (= "=") (cast_expression "(int *)(param_1[3] + local_24 * 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[3] + local_24 * 8)" (( "(") (binary_expression "param_1[3] + local_24 * 8" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (+ "+") (binary_expression "local_24 * 8" (identifier "local_24") (* "*") (number_literal "8"))) () ")")))) (; ";")) (if_statement "if (puVar6 == (uint *)piVar1[1]) {\n        piVar1[1] = *puVar6;\n      }" (if "if") (parenthesized_expression "(puVar6 == (uint *)piVar1[1])" (( "(") (binary_expression "puVar6 == (uint *)piVar1[1]" (identifier "puVar6") (== "==") (cast_expression "(uint *)piVar1[1]" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n        piVar1[1] = *puVar6;\n      }" ({ "{") (expression_statement "piVar1[1] = *puVar6;" (assignment_expression "piVar1[1] = *puVar6" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) (; ";")) (} "}"))) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "-1"))) (; ";")) (} "}"))) (expression_statement "FUN_00042800(puVar6);" (call_expression "FUN_00042800(puVar6)" (identifier "FUN_00042800") (argument_list "(puVar6)" (( "(") (identifier "puVar6") () ")"))) (; ";")) (expression_statement "uVar4 = param_1[1];" (assignment_expression "uVar4 = param_1[1]" (identifier "uVar4") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "param_1[1] = uVar4 - 1;" (assignment_expression "param_1[1] = uVar4 - 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "uVar4 - 1" (identifier "uVar4") (- "-") (number_literal "1"))) (; ";")) (if_statement "if (uVar4 - 1 == 0) {\n      FUN_000434c0();\n    }" (if "if") (parenthesized_expression "(uVar4 - 1 == 0)" (( "(") (binary_expression "uVar4 - 1 == 0" (binary_expression "uVar4 - 1" (identifier "uVar4") (- "-") (number_literal "1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_000434c0();\n    }" ({ "{") (expression_statement "FUN_000434c0();" (call_expression "FUN_000434c0()" (identifier "FUN_000434c0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    puVar6[2] = param_3;\n    puVar6[3] = (uint)param_2;\n  }" (else "else") (compound_statement "{\n    puVar6[2] = param_3;\n    puVar6[3] = (uint)param_2;\n  }" ({ "{") (expression_statement "puVar6[2] = param_3;" (assignment_expression "puVar6[2] = param_3" (subscript_expression "puVar6[2]" (identifier "puVar6") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "puVar6[3] = (uint)param_2;" (assignment_expression "puVar6[3] = (uint)param_2" (subscript_expression "puVar6[3]" (identifier "puVar6") ([ "[") (number_literal "3") (] "]")) (= "=") (cast_expression "(uint)param_2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "param_2"))) (; ";")) (} "}")))))) (if_statement "if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar8;\n  }" (if "if") (parenthesized_expression "(iVar2 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar2 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar2") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return uVar8;\n  }" ({ "{") (return_statement "return uVar8;" (return "return") (identifier "uVar8") (; ";")) (} "}"))) (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" (identifier "FUN_00116110") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void * __regparm3 function_1(type_1 *pH,char *pKey,void *var_4)

{
  type_2 var_15;
  void *var_3;
  type_3 *var_14;
  type_3 *pHVar3;
  type_3 *var_6;
  type_4 *var_12;
  type_5 var_11;
  type_5 var_8;
  type_5 uVar8;
  type_4 *var_18;
  void *pvVar10;
  type_2 *var_16;
  int var_1;
  type_6 in_stack_ffffffb4;
  type_5 var_5;
  int var_19;
  type_7 uStack_14;
  
  uStack_14 = 0x4645d;
  var_19 = *(int *)(var_1 + 0x14);
  var_6 = var_2(pH,pKey,&var_5);
  var_3 = var_6->var_4;
  pvVar10 = var_3;
  if (var_3 != (void *)0x0) {
    if (var_4 == (void *)0x0) {
      if (var_6->prev == (type_3 *)0x0) {
        pH->first = var_6->next;
      }
      else {
        var_6->prev->next = var_6->next;
      }
      if (var_6->next != (type_3 *)0x0) {
        var_6->next->prev = var_6->prev;
      }
      if (pH->ht != (type_4 *)0x0) {
        var_12 = pH->ht + var_5;
        if (var_6 == var_12->chain) {
          var_12->chain = var_6->next;
        }
        var_12->count = var_12->count + -1;
      }
      var_7(var_6);
      var_8 = pH->count - 1;
      pH->count = var_8;
      if (var_8 == 0) {
        var_9(pH);
      }
    }
    else {
      var_6->var_4 = var_4;
      var_6->pKey = pKey;
    }
    goto LAB_00046498;
  }
  if ((var_4 == (void *)0x0) ||
     (var_6 = (type_3 *)var_10(in_stack_ffffffb4), pvVar10 = var_4,
     var_6 == (type_3 *)0x0)) goto LAB_00046498;
  var_6->var_4 = var_4;
  var_6->pKey = pKey;
  var_8 = pH->count + 1;
  pH->count = var_8;
  if ((var_8 < 10) || (var_8 <= pH->htsize * 2)) {
LAB_000464ef:
    var_18 = pH->ht;
  }
  else {
    var_11 = 0x80;
    if (var_8 * 0x10 < 0x401) {
      var_11 = var_8 * 2;
    }
    if (pH->htsize == var_11) goto LAB_000464ef;
    if (sqlite3Hooks.xBenignBegin != (type_8 *)0x0) {
      (*sqlite3Hooks.xBenignBegin)();
    }
    var_12 = (type_4 *)var_10(in_stack_ffffffb4);
    if (sqlite3Hooks.xBenignEnd != (type_8 *)0x0) {
      (*sqlite3Hooks.xBenignEnd)();
    }
    var_18 = pH->ht;
    if (var_12 != (type_4 *)0x0) {
      var_7(var_18);
      pH->ht = var_12;
      var_8 = (*sqlite3Config.m.xSize)(var_12);
      pH->htsize = var_8 >> 3;
      var_13(var_12,0,var_8 & 0xfffffff8);
      var_14 = pH->first;
      pH->first = (type_3 *)0x0;
      while (var_14 != (type_3 *)0x0) {
        var_16 = (type_2 *)var_14->pKey;
        var_15 = *var_16;
        var_18 = var_12;
        if (var_15 != 0) {
          var_11 = 0;
          do {
            var_16 = var_16 + 1;
            uVar8 = (type_5)var_15;
            var_15 = *var_16;
            var_11 = (var_11 + ""[uVar8]) * -0x61c8864f;
          } while (var_15 != 0);
          var_18 = var_12 + var_11 % (var_8 >> 3);
        }
        pHVar3 = var_14->next;
        var_17((type_1 *)&pH->first,var_18,var_14);
        var_14 = pHVar3;
      }
      var_8 = 0;
      var_15 = *pKey;
      while (var_15 != 0) {
        pKey = (char *)((type_2 *)pKey + 1);
        var_8 = (var_8 + ""[var_15]) * -0x61c8864f;
        var_15 = *pKey;
      }
      var_5 = var_8 % pH->htsize;
      goto LAB_000464ef;
    }
  }
  if (var_18 != (type_4 *)0x0) {
    var_18 = var_18 + var_5;
  }
  var_17((type_1 *)&pH->first,var_18,var_6);
  pvVar10 = var_3;
LAB_00046498:
  if (var_19 == *(int *)(var_1 + 0x14)) {
    return pvVar10;
  }
                    /* WARNING: Subroutine does not return */
  var_20();
}


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

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

uint __regparm3 MASKED(uint *param_1,char *param_2,uint param_3)

{
  int *piVar1;
  int iVar2;
  char cVar3;
  uint uVar4;
  undefined4 *puVar5;
  uint *puVar6;
  int iVar7;
  uint uVar8;
  void *__s;
  uint uVar9;
  char *pcVar10;
  int in_GS_OFFSET;
  int local_24;
  
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  puVar6 = (uint *)FUN_00037c80();
  uVar4 = puVar6[2];
  uVar8 = uVar4;
  if (uVar4 == 0) {
    if ((param_3 != 0) && (iVar7 = FUN_000421f0(), uVar8 = param_3, iVar7 != 0)) {
      *(uint *)(iVar7 + 8) = param_3;
      *(char **)(iVar7 + 0xc) = param_2;
      uVar8 = param_1[1] + 1;
      param_1[1] = uVar8;
      if ((9 < uVar8) && (*param_1 * 2 < uVar8)) {
        uVar9 = 0x80;
        if (uVar8 * 0x10 < 0x401) {
          uVar9 = uVar8 * 2;
        }
        if (*param_1 != uVar9) {
          if (DAT_0017ddd4 != (code *)0x0) {
            (*DAT_0017ddd4)();
          }
          __s = (void *)FUN_000421f0();
          if (DAT_0017ddd8 != (code *)0x0) {
            (*DAT_0017ddd8)();
          }
          if (__s != (void *)0x0) {
            FUN_00042800(param_1[3]);
            param_1[3] = (uint)__s;
            uVar8 = (*DAT_0017c418)(__s);
            *param_1 = uVar8 >> 3;
            memset(__s,0,uVar8 & 0xfffffff8);
            puVar5 = (undefined4 *)param_1[2];
            param_1[2] = 0;
            while (puVar5 != (undefined4 *)0x0) {
              pcVar10 = (char *)puVar5[3];
              cVar3 = *pcVar10;
              while (cVar3 != '\0') {
                pcVar10 = pcVar10 + 1;
                cVar3 = *pcVar10;
              }
              puVar5 = (undefined4 *)*puVar5;
              FUN_000463f0();
            }
            cVar3 = *param_2;
            while (cVar3 != '\0') {
              param_2 = param_2 + 1;
              cVar3 = *param_2;
            }
          }
        }
      }
      FUN_000463f0();
      uVar8 = uVar4;
    }
  }
  else if (param_3 == 0) {
    if ((uint *)puVar6[1] == (uint *)0x0) {
      param_1[2] = *puVar6;
    }
    else {
      *(uint *)puVar6[1] = *puVar6;
    }
    if (*puVar6 != 0) {
      *(uint *)(*puVar6 + 4) = puVar6[1];
    }
    if (param_1[3] != 0) {
      piVar1 = (int *)(param_1[3] + local_24 * 8);
      if (puVar6 == (uint *)piVar1[1]) {
        piVar1[1] = *puVar6;
      }
      *piVar1 = *piVar1 + -1;
    }
    FUN_00042800(puVar6);
    uVar4 = param_1[1];
    param_1[1] = uVar4 - 1;
    if (uVar4 - 1 == 0) {
      FUN_000434c0();
    }
  }
  else {
    puVar6[2] = param_3;
    puVar6[3] = (uint)param_2;
  }
  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar8;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00116110();
}

