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

void __regparm3 insertCell(MemPage *pPage,int i,u8 *pCell,int sz,u8 *pTemp,Pgno iChild,int *pRC)

{
  uint uVar1;
  u8 *puVar2;
  u8 *puVar3;
  byte bVar4;
  uint *puVar5;
  u8 uVar6;
  int iVar7;
  uint uVar8;
  uint *__dest;
  uint uVar9;
  int in_GS_OFFSET;
  MemPage *in_stack_ffffffb4;
  int in_stack_ffffffb8;
  u8 local_38;
  int rc;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x8091f;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if ((pPage->nOverflow != '\0') || ((int)(uint)pPage->nFree <= sz + 1)) {
    if (pTemp != (u8 *)0x0) {
      memcpy(pTemp,pCell,sz);
      pCell = pTemp;
    }
    if (iChild != 0) {
      *(Pgno *)pCell =
           iChild >> 0x18 | (iChild & 0xff0000) >> 8 | (iChild & 0xff00) << 8 | iChild << 0x18;
    }
    bVar4 = pPage->nOverflow;
    pPage->nOverflow = bVar4 + 1;
    pPage->apOvfl[bVar4] = pCell;
    pPage->aiOvfl[bVar4] = (u16)i;
    goto LAB_0008099c;
  }
  iVar7 = sqlite3PagerWrite(pPage->pDbPage);
  if (iVar7 == 0) {
    rc = 0;
    puVar5 = (uint *)pPage->aData;
    uVar1 = (uint)pPage->cellOffset + (uint)pPage->nCell * 2;
    uVar8 = (uint)pPage->hdrOffset;
    puVar2 = (u8 *)((int)puVar5 + uVar8 + 5);
    puVar3 = (u8 *)((int)puVar5 + uVar8 + 6);
    uVar9 = (uint)CONCAT11(*puVar2,*puVar3);
    if (uVar9 < uVar1) {
      if ((uVar9 == 0) && (pPage->pBt->usableSize == 0x10000)) {
        uVar9 = 0x10000;
        goto LAB_00080a45;
      }
      iVar7 = sqlite3CorruptError(0xfcb0);
      if (iVar7 != 0) goto LAB_00080b90;
      local_38 = '\0';
      iVar7 = 0;
      uVar6 = '\0';
      __dest = puVar5;
    }
    else {
LAB_00080a45:
      if (((*(u8 *)((int)puVar5 + uVar8 + 2) != '\0') || (*(u8 *)((int)puVar5 + uVar8 + 1) != '\0'))
         && (uVar1 + 1 < uVar9)) {
        __dest = (uint *)pageFindSlot(pPage,sz,&rc);
        if (__dest != (uint *)0x0) {
          iVar7 = (int)__dest - (int)puVar5;
          uVar6 = (u8)((uint)iVar7 >> 8);
          local_38 = (u8)iVar7;
          goto LAB_00080a99;
        }
        iVar7 = rc;
        if (rc != 0) goto LAB_00080b90;
      }
      if ((int)uVar9 < (int)(uVar1 + 2 + sz)) {
        rc = defragmentPage(in_stack_ffffffb4,in_stack_ffffffb8);
        iVar7 = rc;
        if (rc != 0) goto LAB_00080b90;
        uVar9 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;
      }
      iVar7 = uVar9 - sz;
      local_38 = (u8)iVar7;
      uVar6 = (u8)((uint)iVar7 >> 8);
      *puVar2 = uVar6;
      *puVar3 = local_38;
      __dest = (uint *)((int)puVar5 + iVar7);
    }
LAB_00080a99:
    pPage->nFree = (pPage->nFree - (short)sz) - 2;
    if (iChild == 0) {
      memcpy(__dest,pCell,sz);
    }
    else {
      memcpy((u8 *)((int)puVar5 + iVar7 + 4),pCell + 4,sz - 4);
      *__dest = iChild >> 0x18 | (iChild & 0xff0000) >> 8 | (iChild & 0xff00) << 8 | iChild << 0x18;
    }
    puVar2 = pPage->aCellIdx + i * 2;
    memmove(puVar2 + 2,puVar2,((uint)pPage->nCell - i) * 2);
    *puVar2 = uVar6;
    puVar2[1] = local_38;
    pPage->nCell = pPage->nCell + 1;
    puVar2 = (u8 *)((int)puVar5 + pPage->hdrOffset + 4);
    uVar6 = *puVar2 + '\x01';
    *puVar2 = uVar6;
    if (uVar6 == '\0') {
      puVar2 = (u8 *)((int)puVar5 + pPage->hdrOffset + 3);
      *puVar2 = *puVar2 + '\x01';
    }
    if (pPage->pBt->autoVacuum != '\0') {
      ptrmapPutOvflPtr(pPage,(MemPage *)&pPage->aDataEnd,pCell,pRC);
    }
  }
  else {
LAB_00080b90:
    *pRC = iVar7;
  }
LAB_0008099c:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Removing unreachable block (ram,0x00080b8c) */

void __regparm3
FUN_00080910(int param_1,int param_2,uint *param_3,size_t param_4,uint *param_5,uint param_6,
            int *param_7)

{
  uint uVar1;
  undefined1 *puVar2;
  undefined1 *puVar3;
  char *pcVar4;
  int iVar5;
  uint *puVar6;
  undefined1 uVar7;
  char cVar8;
  int iVar9;
  uint uVar10;
  uint *__dest;
  uint uVar11;
  int in_GS_OFFSET;
  undefined1 local_38;
  
  iVar5 = *(int *)(in_GS_OFFSET + 0x14);
  if ((*(char *)(param_1 + 0xc) != '\0') ||
     ((int)(uint)*(ushort *)(param_1 + 0x14) <= (int)(param_4 + 1))) {
    if (param_5 != (uint *)0x0) {
      memcpy(param_5,param_3,param_4);
      param_3 = param_5;
    }
    if (param_6 != 0) {
      *param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |
                 param_6 << 0x18;
    }
    iVar9 = *(byte *)(param_1 + 0xc) + 8;
    *(byte *)(param_1 + 0xc) = *(byte *)(param_1 + 0xc) + 1;
    *(uint **)(param_1 + 4 + iVar9 * 4) = param_3;
    *(short *)(param_1 + 10 + iVar9 * 2) = (short)param_2;
    goto LAB_0008099c;
  }
  iVar9 = FUN_0007af80();
  if (iVar9 == 0) {
    puVar6 = *(uint **)(param_1 + 0x38);
    uVar1 = (uint)*(ushort *)(param_1 + 0x12) + (uint)*(ushort *)(param_1 + 0x16) * 2;
    uVar10 = (uint)*(byte *)(param_1 + 9);
    puVar2 = (undefined1 *)((int)puVar6 + uVar10 + 5);
    puVar3 = (undefined1 *)((int)puVar6 + uVar10 + 6);
    uVar11 = (uint)CONCAT11(*puVar2,*puVar3);
    if (uVar11 < uVar1) {
      if ((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)) {
        uVar11 = 0x10000;
        goto LAB_00080a45;
      }
      iVar9 = FUN_00052b70();
      if (iVar9 != 0) goto LAB_00080b90;
      local_38 = 0;
      iVar9 = 0;
      uVar7 = 0;
      __dest = puVar6;
    }
    else {
LAB_00080a45:
      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&
           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||
         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {
        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {
          iVar9 = FUN_00054080();
          if (iVar9 != 0) goto LAB_00080b90;
          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;
        }
        iVar9 = uVar11 - param_4;
        local_38 = (undefined1)iVar9;
        uVar7 = (undefined1)((uint)iVar9 >> 8);
        *puVar2 = uVar7;
        *puVar3 = local_38;
        __dest = (uint *)((int)puVar6 + iVar9);
      }
      else {
        iVar9 = (int)__dest - (int)puVar6;
        uVar7 = (undefined1)((uint)iVar9 >> 8);
        local_38 = (undefined1)iVar9;
      }
    }
    *(short *)(param_1 + 0x14) = (*(short *)(param_1 + 0x14) - (short)param_4) + -2;
    if (param_6 == 0) {
      memcpy(__dest,param_3,param_4);
    }
    else {
      memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);
      *__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |
                param_6 << 0x18;
    }
    puVar2 = (undefined1 *)(*(int *)(param_1 + 0x40) + param_2 * 2);
    memmove(puVar2 + 2,puVar2,((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2);
    *puVar2 = uVar7;
    puVar2[1] = local_38;
    *(short *)(param_1 + 0x16) = *(short *)(param_1 + 0x16) + 1;
    pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 4);
    cVar8 = *pcVar4 + '\x01';
    *pcVar4 = cVar8;
    if (cVar8 == '\0') {
      pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3);
      *pcVar4 = *pcVar4 + '\x01';
    }
    if (*(char *)(*(int *)(param_1 + 0x34) + 0x11) != '\0') {
      FUN_0007f730(param_7);
    }
  }
  else {
LAB_00080b90:
    *param_7 = iVar9;
  }
LAB_0008099c:
  if (iVar5 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_000f6410();
  }
  return;
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
MOV EDI,ECX
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00014d20
ADD EBX,0xca5b5
SUB ESP,0x3c
MOVZX ECX,byte ptr [ESI + 0xc]
MOV EAX,dword ptr [ESP + 0x5c]
MOV EDX,dword ptr [ESP + 0x54]
MOV dword ptr [ESP + 0xc],EAX
MOV dword ptr [ESP + 0x8],EBX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x2c],EAX
XOR EAX,EAX
TEST CL,CL
JNZ 0x0008095b
MOV EAX,dword ptr [ESP + 0x50]
LEA EBX,[EAX + 0x1]
MOVZX EAX,word ptr [ESI + 0x14]
CMP EBX,EAX
JL 0x000809c8
TEST EDX,EDX
JZ 0x0008097e
SUB ESP,0x4
PUSH dword ptr [ESP + 0x54]
PUSH EDI
PUSH EDX
MOV EBX,dword ptr [ESP + 0x18]
MOV dword ptr [ESP + 0x1c],EDX
CALL 0x000140d0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
MOV EDI,EDX
MOV EDX,dword ptr [ESP + 0x58]
TEST EDX,EDX
JNZ 0x000809b8
MOVZX EAX,byte ptr [ESI + 0xc]
LEA EDX,[EAX + 0x1]
ADD EAX,0x8
MOV byte ptr [ESI + 0xc],DL
MOV dword ptr [ESI + EAX*0x4 + 0x4],EDI
MOV word ptr [ESI + EAX*0x2 + 0xa],BP
MOV EAX,dword ptr [ESP + 0x2c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x00080c7b
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x58]
BSWAP EAX
MOV dword ptr [EDI],EAX
JMP 0x00080986
MOV EAX,dword ptr [ESI + 0x48]
MOV byte ptr [ESP + 0x10],CL
CALL 0x0007af80
MOVZX ECX,byte ptr [ESP + 0x10]
TEST EAX,EAX
JNZ 0x00080b90
MOVZX EDX,word ptr [ESI + 0x16]
MOVZX EAX,word ptr [ESI + 0x12]
MOV dword ptr [ESP + 0x28],0x0
MOV EBX,dword ptr [ESI + 0x38]
LEA EAX,[EAX + EDX*0x2]
MOV dword ptr [ESP + 0x14],EAX
MOVZX EAX,byte ptr [ESI + 0x9]
MOV dword ptr [ESP + 0x10],EBX
LEA EDX,[EBX + EAX*0x1 + 0x5]
LEA EBX,[EBX + EAX*0x1 + 0x6]
MOV dword ptr [ESP + 0x18],EBX
MOV EBX,dword ptr [ESP + 0x18]
MOV dword ptr [ESP + 0x1c],EDX
MOVZX EDX,byte ptr [EDX]
MOVZX EBX,byte ptr [EBX]
SHL EDX,0x8
OR EBX,EDX
CMP dword ptr [ESP + 0x14],EBX
JLE 0x00080a45
TEST EBX,EBX
JNZ 0x00080bd8
MOV EDX,dword ptr [ESI + 0x34]
CMP dword ptr [EDX + 0x24],0x10000
JNZ 0x00080bd8
MOV EBX,0x10000
MOV ECX,dword ptr [ESP + 0x10]
CMP byte ptr [ECX + EAX*0x1 + 0x2],0x0
JZ 0x00080ba0
MOV EAX,dword ptr [ESP + 0x14]
ADD EAX,0x1
CMP EAX,EBX
JL 0x00080c50
MOV EAX,dword ptr [ESP + 0x14]
MOV ECX,dword ptr [ESP + 0x50]
LEA EAX,[EAX + ECX*0x1 + 0x2]
CMP EBX,EAX
JL 0x00080c00
SUB EBX,dword ptr [ESP + 0x50]
MOV EDX,dword ptr [ESP + 0x1c]
MOV EAX,EBX
MOV byte ptr [ESP + 0x14],BL
SAR EAX,0x8
MOV byte ptr [EDX],AL
MOV ECX,EAX
MOV EAX,dword ptr [ESP + 0x18]
MOV byte ptr [EAX],BL
MOV EAX,dword ptr [ESP + 0x10]
LEA EDX,[EAX + EBX*0x1]
MOVZX EAX,word ptr [ESI + 0x14]
SUB AX,word ptr [ESP + 0x50]
SUB EAX,0x2
MOV word ptr [ESI + 0x14],AX
MOV EAX,dword ptr [ESP + 0x58]
TEST EAX,EAX
JZ 0x00080bb0
MOV EAX,dword ptr [ESP + 0x10]
MOV byte ptr [ESP + 0x18],CL
SUB ESP,0x4
MOV dword ptr [ESP + 0x20],EDX
LEA EBX,[EAX + EBX*0x1 + 0x4]
MOV EAX,dword ptr [ESP + 0x54]
SUB EAX,0x4
MOV ECX,EAX
LEA EAX,[EDI + 0x4]
PUSH ECX
PUSH EAX
PUSH EBX
MOV EBX,dword ptr [ESP + 0x18]
CALL 0x000140d0
MOV EAX,dword ptr [ESP + 0x68]
MOV EDX,dword ptr [ESP + 0x2c]
ADD ESP,0x10
MOVZX ECX,byte ptr [ESP + 0x18]
BSWAP EAX
MOV dword ptr [EDX],EAX
MOV EAX,dword ptr [ESI + 0x40]
MOV byte ptr [ESP + 0x1c],CL
SUB ESP,0x4
LEA EDX,[EAX + EBP*0x2]
MOVZX EAX,word ptr [ESI + 0x16]
SUB EAX,EBP
ADD EAX,EAX
PUSH EAX
LEA EAX,[EDX + 0x2]
PUSH EDX
MOV dword ptr [ESP + 0x24],EDX
PUSH EAX
MOV EBX,dword ptr [ESP + 0x18]
CALL 0x000140b0
MOV EDX,dword ptr [ESP + 0x28]
MOVZX ECX,byte ptr [ESP + 0x2c]
MOVZX EAX,byte ptr [ESP + 0x24]
MOV byte ptr [EDX],CL
MOV ECX,dword ptr [ESP + 0x20]
ADD ESP,0x10
MOV byte ptr [EDX + 0x1],AL
MOVZX EAX,byte ptr [ESI + 0x9]
ADD word ptr [ESI + 0x16],0x1
LEA EDX,[ECX + EAX*0x1 + 0x4]
MOVZX EAX,byte ptr [EDX]
ADD EAX,0x1
MOV byte ptr [EDX],AL
TEST AL,AL
JNZ 0x00080b58
MOVZX EAX,byte ptr [ESI + 0x9]
ADD byte ptr [ECX + EAX*0x1 + 0x3],0x1
MOV EAX,dword ptr [ESI + 0x34]
CMP byte ptr [EAX + 0x11],0x0
JZ 0x0008099c
SUB ESP,0xc
LEA EDX,[ESI + 0x3c]
MOV ECX,EDI
MOV EAX,ESI
PUSH dword ptr [ESP + 0x18]
CALL 0x0007f730
ADD ESP,0x10
JMP 0x0008099c
MOV EAX,dword ptr [ESP + 0x28]
TEST EAX,EAX
JZ 0x00080a63
LEA ESI,[ESI]
MOV EDI,dword ptr [ESP + 0xc]
MOV dword ptr [EDI],EAX
JMP 0x0008099c
CMP byte ptr [ECX + EAX*0x1 + 0x1],0x0
JNZ 0x00080a54
JMP 0x00080a63
MOV byte ptr [ESP + 0x18],CL
SUB ESP,0x4
PUSH dword ptr [ESP + 0x54]
PUSH EDI
PUSH EDX
MOV EBX,dword ptr [ESP + 0x18]
CALL 0x000140d0
ADD ESP,0x10
MOVZX ECX,byte ptr [ESP + 0x18]
JMP 0x00080af4
MOV EAX,0xfcb0
MOV byte ptr [ESP + 0x14],CL
CALL 0x00052b70
MOVZX ECX,byte ptr [ESP + 0x14]
TEST EAX,EAX
JNZ 0x00080b90
MOV byte ptr [ESP + 0x14],0x0
MOV EDX,dword ptr [ESP + 0x10]
XOR EBX,EBX
JMP 0x00080a99
MOV EAX,dword ptr [ESP + 0x50]
MOVZX EDX,word ptr [ESI + 0x14]
ADD EAX,0x2
SUB EDX,EAX
MOV EAX,0x4
CMP EDX,0x4
CMOVG EDX,EAX
MOV EAX,ESI
CALL 0x00054080
MOV dword ptr [ESP + 0x28],EAX
TEST EAX,EAX
JNZ 0x00080b90
MOV EAX,dword ptr [ESP + 0x1c]
MOV ECX,dword ptr [ESP + 0x18]
MOVZX EAX,byte ptr [EAX]
MOVZX EDX,byte ptr [ECX]
SHL EAX,0x8
OR EAX,EDX
LEA EBX,[EAX + -0x1]
MOVZX EBX,BX
ADD EBX,0x1
JMP 0x00080a77
MOV EDX,dword ptr [ESP + 0x50]
LEA ECX,[ESP + 0x28]
MOV EAX,ESI
CALL 0x00053f70
MOV EDX,EAX
TEST EAX,EAX
JZ 0x00080b80
MOV EBX,EAX
SUB EBX,dword ptr [ESP + 0x10]
MOVZX ECX,BH
MOV byte ptr [ESP + 0x14],BL
JMP 0x00080a99
CALL 0x000f6410
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Removing unreachable block (ram,0x00080b8c) */\n\nvoid __regparm3\nFUN_00080910(int param_1,int param_2,uint *param_3,size_t param_4,uint *param_5,uint param_6,\n            int *param_7)\n\n{\n  uint uVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  char *pcVar4;\n  int iVar5;\n  uint *puVar6;\n  undefined1 uVar7;\n  char cVar8;\n  int iVar9;\n  uint uVar10;\n  uint *__dest;\n  uint uVar11;\n  int in_GS_OFFSET;\n  undefined1 local_38;\n  \n  iVar5 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*(char *)(param_1 + 0xc) != '\0') ||\n     ((int)(uint)*(ushort *)(param_1 + 0x14) <= (int)(param_4 + 1))) {\n    if (param_5 != (uint *)0x0) {\n      memcpy(param_5,param_3,param_4);\n      param_3 = param_5;\n    }\n    if (param_6 != 0) {\n      *param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18;\n    }\n    iVar9 = *(byte *)(param_1 + 0xc) + 8;\n    *(byte *)(param_1 + 0xc) = *(byte *)(param_1 + 0xc) + 1;\n    *(uint **)(param_1 + 4 + iVar9 * 4) = param_3;\n    *(short *)(param_1 + 10 + iVar9 * 2) = (short)param_2;\n    goto LAB_0008099c;\n  }\n  iVar9 = FUN_0007af80();\n  if (iVar9 == 0) {\n    puVar6 = *(uint **)(param_1 + 0x38);\n    uVar1 = (uint)*(ushort *)(param_1 + 0x12) + (uint)*(ushort *)(param_1 + 0x16) * 2;\n    uVar10 = (uint)*(byte *)(param_1 + 9);\n    puVar2 = (undefined1 *)((int)puVar6 + uVar10 + 5);\n    puVar3 = (undefined1 *)((int)puVar6 + uVar10 + 6);\n    uVar11 = (uint)CONCAT11(*puVar2,*puVar3);\n    if (uVar11 < uVar1) {\n      if ((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)) {\n        uVar11 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar9 = FUN_00052b70();\n      if (iVar9 != 0) goto LAB_00080b90;\n      local_38 = 0;\n      iVar9 = 0;\n      uVar7 = 0;\n      __dest = puVar6;\n    }\n    else {\nLAB_00080a45:\n      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }\n    }\n    *(short *)(param_1 + 0x14) = (*(short *)(param_1 + 0x14) - (short)param_4) + -2;\n    if (param_6 == 0) {\n      memcpy(__dest,param_3,param_4);\n    }\n    else {\n      memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);\n      *__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18;\n    }\n    puVar2 = (undefined1 *)(*(int *)(param_1 + 0x40) + param_2 * 2);\n    memmove(puVar2 + 2,puVar2,((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2);\n    *puVar2 = uVar7;\n    puVar2[1] = local_38;\n    *(short *)(param_1 + 0x16) = *(short *)(param_1 + 0x16) + 1;\n    pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 4);\n    cVar8 = *pcVar4 + '\x01';\n    *pcVar4 = cVar8;\n    if (cVar8 == '\0') {\n      pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3);\n      *pcVar4 = *pcVar4 + '\x01';\n    }\n    if (*(char *)(*(int *)(param_1 + 0x34) + 0x11) != '\0') {\n      FUN_0007f730(param_7);\n    }\n  }\n  else {\nLAB_00080b90:\n    *param_7 = iVar9;\n  }\nLAB_0008099c:\n  if (iVar5 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f6410();\n  }\n  return;\n}\n\n" comment comment (function_definition "void __regparm3\nFUN_00080910(int param_1,int param_2,uint *param_3,size_t param_4,uint *param_5,uint param_6,\n            int *param_7)\n\n{\n  uint uVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  char *pcVar4;\n  int iVar5;\n  uint *puVar6;\n  undefined1 uVar7;\n  char cVar8;\n  int iVar9;\n  uint uVar10;\n  uint *__dest;\n  uint uVar11;\n  int in_GS_OFFSET;\n  undefined1 local_38;\n  \n  iVar5 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*(char *)(param_1 + 0xc) != '\0') ||\n     ((int)(uint)*(ushort *)(param_1 + 0x14) <= (int)(param_4 + 1))) {\n    if (param_5 != (uint *)0x0) {\n      memcpy(param_5,param_3,param_4);\n      param_3 = param_5;\n    }\n    if (param_6 != 0) {\n      *param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18;\n    }\n    iVar9 = *(byte *)(param_1 + 0xc) + 8;\n    *(byte *)(param_1 + 0xc) = *(byte *)(param_1 + 0xc) + 1;\n    *(uint **)(param_1 + 4 + iVar9 * 4) = param_3;\n    *(short *)(param_1 + 10 + iVar9 * 2) = (short)param_2;\n    goto LAB_0008099c;\n  }\n  iVar9 = FUN_0007af80();\n  if (iVar9 == 0) {\n    puVar6 = *(uint **)(param_1 + 0x38);\n    uVar1 = (uint)*(ushort *)(param_1 + 0x12) + (uint)*(ushort *)(param_1 + 0x16) * 2;\n    uVar10 = (uint)*(byte *)(param_1 + 9);\n    puVar2 = (undefined1 *)((int)puVar6 + uVar10 + 5);\n    puVar3 = (undefined1 *)((int)puVar6 + uVar10 + 6);\n    uVar11 = (uint)CONCAT11(*puVar2,*puVar3);\n    if (uVar11 < uVar1) {\n      if ((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)) {\n        uVar11 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar9 = FUN_00052b70();\n      if (iVar9 != 0) goto LAB_00080b90;\n      local_38 = 0;\n      iVar9 = 0;\n      uVar7 = 0;\n      __dest = puVar6;\n    }\n    else {\nLAB_00080a45:\n      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }\n    }\n    *(short *)(param_1 + 0x14) = (*(short *)(param_1 + 0x14) - (short)param_4) + -2;\n    if (param_6 == 0) {\n      memcpy(__dest,param_3,param_4);\n    }\n    else {\n      memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);\n      *__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18;\n    }\n    puVar2 = (undefined1 *)(*(int *)(param_1 + 0x40) + param_2 * 2);\n    memmove(puVar2 + 2,puVar2,((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2);\n    *puVar2 = uVar7;\n    puVar2[1] = local_38;\n    *(short *)(param_1 + 0x16) = *(short *)(param_1 + 0x16) + 1;\n    pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 4);\n    cVar8 = *pcVar4 + '\x01';\n    *pcVar4 = cVar8;\n    if (cVar8 == '\0') {\n      pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3);\n      *pcVar4 = *pcVar4 + '\x01';\n    }\n    if (*(char *)(*(int *)(param_1 + 0x34) + 0x11) != '\0') {\n      FUN_0007f730(param_7);\n    }\n  }\n  else {\nLAB_00080b90:\n    *param_7 = iVar9;\n  }\nLAB_0008099c:\n  if (iVar5 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f6410();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00080910(int param_1,int param_2,uint *param_3,size_t param_4,uint *param_5,uint param_6,\n            int *param_7)" identifier (parameter_list "(int param_1,int param_2,uint *param_3,size_t param_4,uint *param_5,uint param_6,\n            int *param_7)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "size_t param_4" primitive_type identifier) , (parameter_declaration "uint *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "uint param_6" type_identifier identifier) , (parameter_declaration "int *param_7" primitive_type (pointer_declarator "*param_7" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  char *pcVar4;\n  int iVar5;\n  uint *puVar6;\n  undefined1 uVar7;\n  char cVar8;\n  int iVar9;\n  uint uVar10;\n  uint *__dest;\n  uint uVar11;\n  int in_GS_OFFSET;\n  undefined1 local_38;\n  \n  iVar5 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*(char *)(param_1 + 0xc) != '\0') ||\n     ((int)(uint)*(ushort *)(param_1 + 0x14) <= (int)(param_4 + 1))) {\n    if (param_5 != (uint *)0x0) {\n      memcpy(param_5,param_3,param_4);\n      param_3 = param_5;\n    }\n    if (param_6 != 0) {\n      *param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18;\n    }\n    iVar9 = *(byte *)(param_1 + 0xc) + 8;\n    *(byte *)(param_1 + 0xc) = *(byte *)(param_1 + 0xc) + 1;\n    *(uint **)(param_1 + 4 + iVar9 * 4) = param_3;\n    *(short *)(param_1 + 10 + iVar9 * 2) = (short)param_2;\n    goto LAB_0008099c;\n  }\n  iVar9 = FUN_0007af80();\n  if (iVar9 == 0) {\n    puVar6 = *(uint **)(param_1 + 0x38);\n    uVar1 = (uint)*(ushort *)(param_1 + 0x12) + (uint)*(ushort *)(param_1 + 0x16) * 2;\n    uVar10 = (uint)*(byte *)(param_1 + 9);\n    puVar2 = (undefined1 *)((int)puVar6 + uVar10 + 5);\n    puVar3 = (undefined1 *)((int)puVar6 + uVar10 + 6);\n    uVar11 = (uint)CONCAT11(*puVar2,*puVar3);\n    if (uVar11 < uVar1) {\n      if ((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)) {\n        uVar11 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar9 = FUN_00052b70();\n      if (iVar9 != 0) goto LAB_00080b90;\n      local_38 = 0;\n      iVar9 = 0;\n      uVar7 = 0;\n      __dest = puVar6;\n    }\n    else {\nLAB_00080a45:\n      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }\n    }\n    *(short *)(param_1 + 0x14) = (*(short *)(param_1 + 0x14) - (short)param_4) + -2;\n    if (param_6 == 0) {\n      memcpy(__dest,param_3,param_4);\n    }\n    else {\n      memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);\n      *__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18;\n    }\n    puVar2 = (undefined1 *)(*(int *)(param_1 + 0x40) + param_2 * 2);\n    memmove(puVar2 + 2,puVar2,((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2);\n    *puVar2 = uVar7;\n    puVar2[1] = local_38;\n    *(short *)(param_1 + 0x16) = *(short *)(param_1 + 0x16) + 1;\n    pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 4);\n    cVar8 = *pcVar4 + '\x01';\n    *pcVar4 = cVar8;\n    if (cVar8 == '\0') {\n      pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3);\n      *pcVar4 = *pcVar4 + '\x01';\n    }\n    if (*(char *)(*(int *)(param_1 + 0x34) + 0x11) != '\0') {\n      FUN_0007f730(param_7);\n    }\n  }\n  else {\nLAB_00080b90:\n    *param_7 = iVar9;\n  }\nLAB_0008099c:\n  if (iVar5 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f6410();\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined1 uVar7;" type_identifier identifier ;) (declaration "char cVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "uint *__dest;" type_identifier (pointer_declarator "*__dest" * identifier) ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_38;" type_identifier identifier ;) (expression_statement "iVar5 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar5 = *(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) ))))) ;) (if_statement "if ((*(char *)(param_1 + 0xc) != '\0') ||\n     ((int)(uint)*(ushort *)(param_1 + 0x14) <= (int)(param_4 + 1))) {\n    if (param_5 != (uint *)0x0) {\n      memcpy(param_5,param_3,param_4);\n      param_3 = param_5;\n    }\n    if (param_6 != 0) {\n      *param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18;\n    }\n    iVar9 = *(byte *)(param_1 + 0xc) + 8;\n    *(byte *)(param_1 + 0xc) = *(byte *)(param_1 + 0xc) + 1;\n    *(uint **)(param_1 + 4 + iVar9 * 4) = param_3;\n    *(short *)(param_1 + 10 + iVar9 * 2) = (short)param_2;\n    goto LAB_0008099c;\n  }" if (parenthesized_expression "((*(char *)(param_1 + 0xc) != '\0') ||\n     ((int)(uint)*(ushort *)(param_1 + 0x14) <= (int)(param_4 + 1)))" ( (binary_expression "(*(char *)(param_1 + 0xc) != '\0') ||\n     ((int)(uint)*(ushort *)(param_1 + 0x14) <= (int)(param_4 + 1))" (parenthesized_expression "(*(char *)(param_1 + 0xc) != '\0')" ( (binary_expression "*(char *)(param_1 + 0xc) != '\0'" (pointer_expression "*(char *)(param_1 + 0xc)" * (cast_expression "(char *)(param_1 + 0xc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "((int)(uint)*(ushort *)(param_1 + 0x14) <= (int)(param_4 + 1))" ( (binary_expression "(int)(uint)*(ushort *)(param_1 + 0x14) <= (int)(param_4 + 1)" (binary_expression "(int)(uint)*(ushort *)(param_1 + 0x14)" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * (cast_expression "(ushort *)(param_1 + 0x14)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) <= (cast_expression "(int)(param_4 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_4 + 1)" ( (binary_expression "param_4 + 1" identifier + number_literal) )))) ))) )) (compound_statement "{\n    if (param_5 != (uint *)0x0) {\n      memcpy(param_5,param_3,param_4);\n      param_3 = param_5;\n    }\n    if (param_6 != 0) {\n      *param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18;\n    }\n    iVar9 = *(byte *)(param_1 + 0xc) + 8;\n    *(byte *)(param_1 + 0xc) = *(byte *)(param_1 + 0xc) + 1;\n    *(uint **)(param_1 + 4 + iVar9 * 4) = param_3;\n    *(short *)(param_1 + 10 + iVar9 * 2) = (short)param_2;\n    goto LAB_0008099c;\n  }" { (if_statement "if (param_5 != (uint *)0x0) {\n      memcpy(param_5,param_3,param_4);\n      param_3 = param_5;\n    }" if (parenthesized_expression "(param_5 != (uint *)0x0)" ( (binary_expression "param_5 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      memcpy(param_5,param_3,param_4);\n      param_3 = param_5;\n    }" { (expression_statement "memcpy(param_5,param_3,param_4);" (call_expression "memcpy(param_5,param_3,param_4)" identifier (argument_list "(param_5,param_3,param_4)" ( identifier , identifier , identifier ))) ;) (expression_statement "param_3 = param_5;" (assignment_expression "param_3 = param_5" identifier = identifier) ;) })) (if_statement "if (param_6 != 0) {\n      *param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18;\n    }" if (parenthesized_expression "(param_6 != 0)" ( (binary_expression "param_6 != 0" identifier != number_literal) )) (compound_statement "{\n      *param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18;\n    }" { (expression_statement "*param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18;" (assignment_expression "*param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18" (pointer_expression "*param_3" * identifier) = (binary_expression "param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18" (binary_expression "param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8" (binary_expression "param_6 >> 0x18 | (param_6 & 0xff0000) >> 8" (binary_expression "param_6 >> 0x18" identifier >> number_literal) | (binary_expression "(param_6 & 0xff0000) >> 8" (parenthesized_expression "(param_6 & 0xff0000)" ( (binary_expression "param_6 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(param_6 & 0xff00) << 8" (parenthesized_expression "(param_6 & 0xff00)" ( (binary_expression "param_6 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "param_6 << 0x18" identifier << number_literal))) ;) })) (expression_statement "iVar9 = *(byte *)(param_1 + 0xc) + 8;" (assignment_expression "iVar9 = *(byte *)(param_1 + 0xc) + 8" identifier = (binary_expression "*(byte *)(param_1 + 0xc) + 8" (pointer_expression "*(byte *)(param_1 + 0xc)" * (cast_expression "(byte *)(param_1 + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(byte *)(param_1 + 0xc) = *(byte *)(param_1 + 0xc) + 1;" (assignment_expression "*(byte *)(param_1 + 0xc) = *(byte *)(param_1 + 0xc) + 1" (pointer_expression "*(byte *)(param_1 + 0xc)" * (cast_expression "(byte *)(param_1 + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_1 + 0xc) + 1" (pointer_expression "*(byte *)(param_1 + 0xc)" * (cast_expression "(byte *)(param_1 + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(uint **)(param_1 + 4 + iVar9 * 4) = param_3;" (assignment_expression "*(uint **)(param_1 + 4 + iVar9 * 4) = param_3" (pointer_expression "*(uint **)(param_1 + 4 + iVar9 * 4)" * (cast_expression "(uint **)(param_1 + 4 + iVar9 * 4)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4 + iVar9 * 4)" ( (binary_expression "param_1 + 4 + iVar9 * 4" (binary_expression "param_1 + 4" identifier + number_literal) + (binary_expression "iVar9 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "*(short *)(param_1 + 10 + iVar9 * 2) = (short)param_2;" (assignment_expression "*(short *)(param_1 + 10 + iVar9 * 2) = (short)param_2" (pointer_expression "*(short *)(param_1 + 10 + iVar9 * 2)" * (cast_expression "(short *)(param_1 + 10 + iVar9 * 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10 + iVar9 * 2)" ( (binary_expression "param_1 + 10 + iVar9 * 2" (binary_expression "param_1 + 10" identifier + number_literal) + (binary_expression "iVar9 * 2" identifier * number_literal)) )))) = (cast_expression "(short)param_2" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (goto_statement "goto LAB_0008099c;" goto statement_identifier ;) })) (expression_statement "iVar9 = FUN_0007af80();" (assignment_expression "iVar9 = FUN_0007af80()" identifier = (call_expression "FUN_0007af80()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar9 == 0) {\n    puVar6 = *(uint **)(param_1 + 0x38);\n    uVar1 = (uint)*(ushort *)(param_1 + 0x12) + (uint)*(ushort *)(param_1 + 0x16) * 2;\n    uVar10 = (uint)*(byte *)(param_1 + 9);\n    puVar2 = (undefined1 *)((int)puVar6 + uVar10 + 5);\n    puVar3 = (undefined1 *)((int)puVar6 + uVar10 + 6);\n    uVar11 = (uint)CONCAT11(*puVar2,*puVar3);\n    if (uVar11 < uVar1) {\n      if ((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)) {\n        uVar11 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar9 = FUN_00052b70();\n      if (iVar9 != 0) goto LAB_00080b90;\n      local_38 = 0;\n      iVar9 = 0;\n      uVar7 = 0;\n      __dest = puVar6;\n    }\n    else {\nLAB_00080a45:\n      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }\n    }\n    *(short *)(param_1 + 0x14) = (*(short *)(param_1 + 0x14) - (short)param_4) + -2;\n    if (param_6 == 0) {\n      memcpy(__dest,param_3,param_4);\n    }\n    else {\n      memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);\n      *__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18;\n    }\n    puVar2 = (undefined1 *)(*(int *)(param_1 + 0x40) + param_2 * 2);\n    memmove(puVar2 + 2,puVar2,((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2);\n    *puVar2 = uVar7;\n    puVar2[1] = local_38;\n    *(short *)(param_1 + 0x16) = *(short *)(param_1 + 0x16) + 1;\n    pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 4);\n    cVar8 = *pcVar4 + '\x01';\n    *pcVar4 = cVar8;\n    if (cVar8 == '\0') {\n      pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3);\n      *pcVar4 = *pcVar4 + '\x01';\n    }\n    if (*(char *)(*(int *)(param_1 + 0x34) + 0x11) != '\0') {\n      FUN_0007f730(param_7);\n    }\n  }\n  else {\nLAB_00080b90:\n    *param_7 = iVar9;\n  }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar6 = *(uint **)(param_1 + 0x38);\n    uVar1 = (uint)*(ushort *)(param_1 + 0x12) + (uint)*(ushort *)(param_1 + 0x16) * 2;\n    uVar10 = (uint)*(byte *)(param_1 + 9);\n    puVar2 = (undefined1 *)((int)puVar6 + uVar10 + 5);\n    puVar3 = (undefined1 *)((int)puVar6 + uVar10 + 6);\n    uVar11 = (uint)CONCAT11(*puVar2,*puVar3);\n    if (uVar11 < uVar1) {\n      if ((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)) {\n        uVar11 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar9 = FUN_00052b70();\n      if (iVar9 != 0) goto LAB_00080b90;\n      local_38 = 0;\n      iVar9 = 0;\n      uVar7 = 0;\n      __dest = puVar6;\n    }\n    else {\nLAB_00080a45:\n      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }\n    }\n    *(short *)(param_1 + 0x14) = (*(short *)(param_1 + 0x14) - (short)param_4) + -2;\n    if (param_6 == 0) {\n      memcpy(__dest,param_3,param_4);\n    }\n    else {\n      memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);\n      *__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18;\n    }\n    puVar2 = (undefined1 *)(*(int *)(param_1 + 0x40) + param_2 * 2);\n    memmove(puVar2 + 2,puVar2,((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2);\n    *puVar2 = uVar7;\n    puVar2[1] = local_38;\n    *(short *)(param_1 + 0x16) = *(short *)(param_1 + 0x16) + 1;\n    pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 4);\n    cVar8 = *pcVar4 + '\x01';\n    *pcVar4 = cVar8;\n    if (cVar8 == '\0') {\n      pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3);\n      *pcVar4 = *pcVar4 + '\x01';\n    }\n    if (*(char *)(*(int *)(param_1 + 0x34) + 0x11) != '\0') {\n      FUN_0007f730(param_7);\n    }\n  }" { (expression_statement "puVar6 = *(uint **)(param_1 + 0x38);" (assignment_expression "puVar6 = *(uint **)(param_1 + 0x38)" identifier = (pointer_expression "*(uint **)(param_1 + 0x38)" * (cast_expression "(uint **)(param_1 + 0x38)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = (uint)*(ushort *)(param_1 + 0x12) + (uint)*(ushort *)(param_1 + 0x16) * 2;" (assignment_expression "uVar1 = (uint)*(ushort *)(param_1 + 0x12) + (uint)*(ushort *)(param_1 + 0x16) * 2" identifier = (binary_expression "(uint)*(ushort *)(param_1 + 0x12) + (uint)*(ushort *)(param_1 + 0x16) * 2" (binary_expression "(uint)*(ushort *)(param_1 + 0x12)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_1 + 0x12)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x12)" ( (binary_expression "param_1 + 0x12" identifier + number_literal) )))) + (binary_expression "(uint)*(ushort *)(param_1 + 0x16) * 2" (binary_expression "(uint)*(ushort *)(param_1 + 0x16)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_1 + 0x16)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x16)" ( (binary_expression "param_1 + 0x16" identifier + number_literal) )))) * number_literal))) ;) (expression_statement "uVar10 = (uint)*(byte *)(param_1 + 9);" (assignment_expression "uVar10 = (uint)*(byte *)(param_1 + 9)" identifier = (binary_expression "(uint)*(byte *)(param_1 + 9)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_1 + 9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 9)" ( (binary_expression "param_1 + 9" identifier + number_literal) ))))) ;) (expression_statement "puVar2 = (undefined1 *)((int)puVar6 + uVar10 + 5);" (assignment_expression "puVar2 = (undefined1 *)((int)puVar6 + uVar10 + 5)" identifier = (cast_expression "(undefined1 *)((int)puVar6 + uVar10 + 5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar6 + uVar10 + 5)" ( (binary_expression "(int)puVar6 + uVar10 + 5" (binary_expression "(int)puVar6 + uVar10" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "puVar3 = (undefined1 *)((int)puVar6 + uVar10 + 6);" (assignment_expression "puVar3 = (undefined1 *)((int)puVar6 + uVar10 + 6)" identifier = (cast_expression "(undefined1 *)((int)puVar6 + uVar10 + 6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar6 + uVar10 + 6)" ( (binary_expression "(int)puVar6 + uVar10 + 6" (binary_expression "(int)puVar6 + uVar10" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "uVar11 = (uint)CONCAT11(*puVar2,*puVar3);" (assignment_expression "uVar11 = (uint)CONCAT11(*puVar2,*puVar3)" identifier = (cast_expression "(uint)CONCAT11(*puVar2,*puVar3)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CONCAT11(*puVar2,*puVar3)" identifier (argument_list "(*puVar2,*puVar3)" ( (pointer_expression "*puVar2" * identifier) , (pointer_expression "*puVar3" * identifier) ))))) ;) (if_statement "if (uVar11 < uVar1) {\n      if ((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)) {\n        uVar11 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar9 = FUN_00052b70();\n      if (iVar9 != 0) goto LAB_00080b90;\n      local_38 = 0;\n      iVar9 = 0;\n      uVar7 = 0;\n      __dest = puVar6;\n    }\n    else {\nLAB_00080a45:\n      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }\n    }" if (parenthesized_expression "(uVar11 < uVar1)" ( (binary_expression "uVar11 < uVar1" identifier < identifier) )) (compound_statement "{\n      if ((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)) {\n        uVar11 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar9 = FUN_00052b70();\n      if (iVar9 != 0) goto LAB_00080b90;\n      local_38 = 0;\n      iVar9 = 0;\n      uVar7 = 0;\n      __dest = puVar6;\n    }" { (if_statement "if ((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)) {\n        uVar11 = 0x10000;\n        goto LAB_00080a45;\n      }" if (parenthesized_expression "((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000))" ( (binary_expression "(uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)" (parenthesized_expression "(uVar11 == 0)" ( (binary_expression "uVar11 == 0" identifier == number_literal) )) && (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)" ( (binary_expression "*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000" (pointer_expression "*(int *)(*(int *)(param_1 + 0x34) + 0x24)" * (cast_expression "(int *)(*(int *)(param_1 + 0x34) + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x34) + 0x24)" ( (binary_expression "*(int *)(param_1 + 0x34) + 0x24" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n        uVar11 = 0x10000;\n        goto LAB_00080a45;\n      }" { (expression_statement "uVar11 = 0x10000;" (assignment_expression "uVar11 = 0x10000" identifier = number_literal) ;) (goto_statement "goto LAB_00080a45;" goto statement_identifier ;) })) (expression_statement "iVar9 = FUN_00052b70();" (assignment_expression "iVar9 = FUN_00052b70()" identifier = (call_expression "FUN_00052b70()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar9 != 0) goto LAB_00080b90;" if (parenthesized_expression "(iVar9 != 0)" ( (binary_expression "iVar9 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00080b90;" goto statement_identifier ;)) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "__dest = puVar6;" (assignment_expression "__dest = puVar6" identifier = identifier) ;) }) (else_clause "else {\nLAB_00080a45:\n      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }\n    }" else (compound_statement "{\nLAB_00080a45:\n      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }\n    }" { (labeled_statement "LAB_00080a45:\n      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }" statement_identifier : (if_statement "if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }" if (parenthesized_expression "((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0))" ( (binary_expression "(((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)" (parenthesized_expression "(((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1))" ( (binary_expression "((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)" (parenthesized_expression "((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0'))" ( (binary_expression "(*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')" (parenthesized_expression "(*(char *)((int)puVar6 + uVar10 + 2) == '\0')" ( (binary_expression "*(char *)((int)puVar6 + uVar10 + 2) == '\0'" (pointer_expression "*(char *)((int)puVar6 + uVar10 + 2)" * (cast_expression "(char *)((int)puVar6 + uVar10 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar6 + uVar10 + 2)" ( (binary_expression "(int)puVar6 + uVar10 + 2" (binary_expression "(int)puVar6 + uVar10" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(*(char *)((int)puVar6 + uVar10 + 1) == '\0')" ( (binary_expression "*(char *)((int)puVar6 + uVar10 + 1) == '\0'" (pointer_expression "*(char *)((int)puVar6 + uVar10 + 1)" * (cast_expression "(char *)((int)puVar6 + uVar10 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar6 + uVar10 + 1)" ( (binary_expression "(int)puVar6 + uVar10 + 1" (binary_expression "(int)puVar6 + uVar10" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) || (parenthesized_expression "(uVar11 <= uVar1 + 1)" ( (binary_expression "uVar11 <= uVar1 + 1" identifier <= (binary_expression "uVar1 + 1" identifier + number_literal)) ))) )) || (parenthesized_expression "(__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)" ( (comma_expression "__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0" (assignment_expression "__dest = (uint *)FUN_00053f70()" identifier = (cast_expression "(uint *)FUN_00053f70()" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00053f70()" identifier (argument_list "()" ( ))))) , (binary_expression "__dest == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }" { (if_statement "if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }" if (parenthesized_expression "((int)uVar11 < (int)(uVar1 + 2 + param_4))" ( (binary_expression "(int)uVar11 < (int)(uVar1 + 2 + param_4)" (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)(uVar1 + 2 + param_4)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar1 + 2 + param_4)" ( (binary_expression "uVar1 + 2 + param_4" (binary_expression "uVar1 + 2" identifier + number_literal) + identifier) )))) )) (compound_statement "{\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }" { (expression_statement "iVar9 = FUN_00054080();" (assignment_expression "iVar9 = FUN_00054080()" identifier = (call_expression "FUN_00054080()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar9 != 0) goto LAB_00080b90;" if (parenthesized_expression "(iVar9 != 0)" ( (binary_expression "iVar9 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00080b90;" goto statement_identifier ;)) (expression_statement "uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;" (assignment_expression "uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1" identifier = (binary_expression "(CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1" (parenthesized_expression "(CONCAT11(*puVar2,*puVar3) - 1 & 0xffff)" ( (binary_expression "CONCAT11(*puVar2,*puVar3) - 1 & 0xffff" (binary_expression "CONCAT11(*puVar2,*puVar3) - 1" (call_expression "CONCAT11(*puVar2,*puVar3)" identifier (argument_list "(*puVar2,*puVar3)" ( (pointer_expression "*puVar2" * identifier) , (pointer_expression "*puVar3" * identifier) ))) - number_literal) & number_literal) )) + number_literal)) ;) })) (expression_statement "iVar9 = uVar11 - param_4;" (assignment_expression "iVar9 = uVar11 - param_4" identifier = (binary_expression "uVar11 - param_4" identifier - identifier)) ;) (expression_statement "local_38 = (undefined1)iVar9;" (assignment_expression "local_38 = (undefined1)iVar9" identifier = (cast_expression "(undefined1)iVar9" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "uVar7 = (undefined1)((uint)iVar9 >> 8);" (assignment_expression "uVar7 = (undefined1)((uint)iVar9 >> 8)" identifier = (call_expression "(undefined1)((uint)iVar9 >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)iVar9 >> 8)" ( (binary_expression "(uint)iVar9 >> 8" (cast_expression "(uint)iVar9" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*puVar2 = uVar7;" (assignment_expression "*puVar2 = uVar7" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "*puVar3 = local_38;" (assignment_expression "*puVar3 = local_38" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "__dest = (uint *)((int)puVar6 + iVar9);" (assignment_expression "__dest = (uint *)((int)puVar6 + iVar9)" identifier = (cast_expression "(uint *)((int)puVar6 + iVar9)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar6 + iVar9)" ( (binary_expression "(int)puVar6 + iVar9" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) }) (else_clause "else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }" else (compound_statement "{\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }" { (expression_statement "iVar9 = (int)__dest - (int)puVar6;" (assignment_expression "iVar9 = (int)__dest - (int)puVar6" identifier = (binary_expression "(int)__dest - (int)puVar6" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "uVar7 = (undefined1)((uint)iVar9 >> 8);" (assignment_expression "uVar7 = (undefined1)((uint)iVar9 >> 8)" identifier = (call_expression "(undefined1)((uint)iVar9 >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)iVar9 >> 8)" ( (binary_expression "(uint)iVar9 >> 8" (cast_expression "(uint)iVar9" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "local_38 = (undefined1)iVar9;" (assignment_expression "local_38 = (undefined1)iVar9" identifier = (cast_expression "(undefined1)iVar9" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) })))) }))) (expression_statement "*(short *)(param_1 + 0x14) = (*(short *)(param_1 + 0x14) - (short)param_4) + -2;" (assignment_expression "*(short *)(param_1 + 0x14) = (*(short *)(param_1 + 0x14) - (short)param_4) + -2" (pointer_expression "*(short *)(param_1 + 0x14)" * (cast_expression "(short *)(param_1 + 0x14)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (binary_expression "(*(short *)(param_1 + 0x14) - (short)param_4) + -2" (parenthesized_expression "(*(short *)(param_1 + 0x14) - (short)param_4)" ( (binary_expression "*(short *)(param_1 + 0x14) - (short)param_4" (pointer_expression "*(short *)(param_1 + 0x14)" * (cast_expression "(short *)(param_1 + 0x14)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) - (cast_expression "(short)param_4" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) )) + number_literal)) ;) (if_statement "if (param_6 == 0) {\n      memcpy(__dest,param_3,param_4);\n    }\n    else {\n      memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);\n      *__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18;\n    }" if (parenthesized_expression "(param_6 == 0)" ( (binary_expression "param_6 == 0" identifier == number_literal) )) (compound_statement "{\n      memcpy(__dest,param_3,param_4);\n    }" { (expression_statement "memcpy(__dest,param_3,param_4);" (call_expression "memcpy(__dest,param_3,param_4)" identifier (argument_list "(__dest,param_3,param_4)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n      memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);\n      *__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18;\n    }" else (compound_statement "{\n      memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);\n      *__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18;\n    }" { (expression_statement "memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);" (call_expression "memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4)" identifier (argument_list "((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4)" ( (cast_expression "(void *)((int)puVar6 + iVar9 + 4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar6 + iVar9 + 4)" ( (binary_expression "(int)puVar6 + iVar9 + 4" (binary_expression "(int)puVar6 + iVar9" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) ))) , (binary_expression "param_3 + 1" identifier + number_literal) , (binary_expression "param_4 - 4" identifier - number_literal) ))) ;) (expression_statement "*__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18;" (assignment_expression "*__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18" (pointer_expression "*__dest" * identifier) = (binary_expression "param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18" (binary_expression "param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8" (binary_expression "param_6 >> 0x18 | (param_6 & 0xff0000) >> 8" (binary_expression "param_6 >> 0x18" identifier >> number_literal) | (binary_expression "(param_6 & 0xff0000) >> 8" (parenthesized_expression "(param_6 & 0xff0000)" ( (binary_expression "param_6 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(param_6 & 0xff00) << 8" (parenthesized_expression "(param_6 & 0xff00)" ( (binary_expression "param_6 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "param_6 << 0x18" identifier << number_literal))) ;) }))) (expression_statement "puVar2 = (undefined1 *)(*(int *)(param_1 + 0x40) + param_2 * 2);" (assignment_expression "puVar2 = (undefined1 *)(*(int *)(param_1 + 0x40) + param_2 * 2)" identifier = (cast_expression "(undefined1 *)(*(int *)(param_1 + 0x40) + param_2 * 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x40) + param_2 * 2)" ( (binary_expression "*(int *)(param_1 + 0x40) + param_2 * 2" (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) + (binary_expression "param_2 * 2" identifier * number_literal)) )))) ;) (expression_statement "memmove(puVar2 + 2,puVar2,((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2);" (call_expression "memmove(puVar2 + 2,puVar2,((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2)" identifier (argument_list "(puVar2 + 2,puVar2,((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2)" ( (binary_expression "puVar2 + 2" identifier + number_literal) , identifier , (binary_expression "((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2" (parenthesized_expression "((uint)*(ushort *)(param_1 + 0x16) - param_2)" ( (binary_expression "(uint)*(ushort *)(param_1 + 0x16) - param_2" (binary_expression "(uint)*(ushort *)(param_1 + 0x16)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_1 + 0x16)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x16)" ( (binary_expression "param_1 + 0x16" identifier + number_literal) )))) - identifier) )) * number_literal) ))) ;) (expression_statement "*puVar2 = uVar7;" (assignment_expression "*puVar2 = uVar7" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "puVar2[1] = local_38;" (assignment_expression "puVar2[1] = local_38" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(short *)(param_1 + 0x16) = *(short *)(param_1 + 0x16) + 1;" (assignment_expression "*(short *)(param_1 + 0x16) = *(short *)(param_1 + 0x16) + 1" (pointer_expression "*(short *)(param_1 + 0x16)" * (cast_expression "(short *)(param_1 + 0x16)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x16)" ( (binary_expression "param_1 + 0x16" identifier + number_literal) )))) = (binary_expression "*(short *)(param_1 + 0x16) + 1" (pointer_expression "*(short *)(param_1 + 0x16)" * (cast_expression "(short *)(param_1 + 0x16)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x16)" ( (binary_expression "param_1 + 0x16" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 4);" (assignment_expression "pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 4)" identifier = (cast_expression "(char *)((int)puVar6 + *(byte *)(param_1 + 9) + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar6 + *(byte *)(param_1 + 9) + 4)" ( (binary_expression "(int)puVar6 + *(byte *)(param_1 + 9) + 4" (binary_expression "(int)puVar6 + *(byte *)(param_1 + 9)" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(byte *)(param_1 + 9)" * (cast_expression "(byte *)(param_1 + 9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 9)" ( (binary_expression "param_1 + 9" identifier + number_literal) ))))) + number_literal) )))) ;) (expression_statement "cVar8 = *pcVar4 + '\x01';" (assignment_expression "cVar8 = *pcVar4 + '\x01'" identifier = (binary_expression "*pcVar4 + '\x01'" (pointer_expression "*pcVar4" * identifier) + (char_literal "'\x01'" ' escape_sequence '))) ;) (expression_statement "*pcVar4 = cVar8;" (assignment_expression "*pcVar4 = cVar8" (pointer_expression "*pcVar4" * identifier) = identifier) ;) (if_statement "if (cVar8 == '\0') {\n      pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3);\n      *pcVar4 = *pcVar4 + '\x01';\n    }" if (parenthesized_expression "(cVar8 == '\0')" ( (binary_expression "cVar8 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3);\n      *pcVar4 = *pcVar4 + '\x01';\n    }" { (expression_statement "pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3);" (assignment_expression "pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3)" identifier = (cast_expression "(char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar6 + *(byte *)(param_1 + 9) + 3)" ( (binary_expression "(int)puVar6 + *(byte *)(param_1 + 9) + 3" (binary_expression "(int)puVar6 + *(byte *)(param_1 + 9)" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(byte *)(param_1 + 9)" * (cast_expression "(byte *)(param_1 + 9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 9)" ( (binary_expression "param_1 + 9" identifier + number_literal) ))))) + number_literal) )))) ;) (expression_statement "*pcVar4 = *pcVar4 + '\x01';" (assignment_expression "*pcVar4 = *pcVar4 + '\x01'" (pointer_expression "*pcVar4" * identifier) = (binary_expression "*pcVar4 + '\x01'" (pointer_expression "*pcVar4" * identifier) + (char_literal "'\x01'" ' escape_sequence '))) ;) })) (if_statement "if (*(char *)(*(int *)(param_1 + 0x34) + 0x11) != '\0') {\n      FUN_0007f730(param_7);\n    }" if (parenthesized_expression "(*(char *)(*(int *)(param_1 + 0x34) + 0x11) != '\0')" ( (binary_expression "*(char *)(*(int *)(param_1 + 0x34) + 0x11) != '\0'" (pointer_expression "*(char *)(*(int *)(param_1 + 0x34) + 0x11)" * (cast_expression "(char *)(*(int *)(param_1 + 0x34) + 0x11)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x34) + 0x11)" ( (binary_expression "*(int *)(param_1 + 0x34) + 0x11" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      FUN_0007f730(param_7);\n    }" { (expression_statement "FUN_0007f730(param_7);" (call_expression "FUN_0007f730(param_7)" identifier (argument_list "(param_7)" ( identifier ))) ;) })) }) (else_clause "else {\nLAB_00080b90:\n    *param_7 = iVar9;\n  }" else (compound_statement "{\nLAB_00080b90:\n    *param_7 = iVar9;\n  }" { (labeled_statement "LAB_00080b90:\n    *param_7 = iVar9;" statement_identifier : (expression_statement "*param_7 = iVar9;" (assignment_expression "*param_7 = iVar9" (pointer_expression "*param_7" * identifier) = identifier) ;)) }))) (labeled_statement "LAB_0008099c:\n  if (iVar5 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f6410();\n  }" statement_identifier : (if_statement "if (iVar5 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f6410();\n  }" if (parenthesized_expression "(iVar5 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar5 != *(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                    /* WARNING: Subroutine does not return */\n    FUN_000f6410();\n  }" { comment (expression_statement "FUN_000f6410();" (call_expression "FUN_000f6410()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 insertCell(MemPage *pPage,int i,u8 *pCell,int sz,u8 *pTemp,Pgno iChild,int *pRC)\n\n{\n  uint uVar1;\n  u8 *puVar2;\n  u8 *puVar3;\n  byte bVar4;\n  uint *puVar5;\n  u8 uVar6;\n  int iVar7;\n  uint uVar8;\n  uint *__dest;\n  uint uVar9;\n  int in_GS_OFFSET;\n  MemPage *in_stack_ffffffb4;\n  int in_stack_ffffffb8;\n  u8 local_38;\n  int rc;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x8091f;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((pPage->nOverflow != '\0') || ((int)(uint)pPage->nFree <= sz + 1)) {\n    if (pTemp != (u8 *)0x0) {\n      memcpy(pTemp,pCell,sz);\n      pCell = pTemp;\n    }\n    if (iChild != 0) {\n      *(Pgno *)pCell =\n           iChild >> 0x18 | (iChild & 0xff0000) >> 8 | (iChild & 0xff00) << 8 | iChild << 0x18;\n    }\n    bVar4 = pPage->nOverflow;\n    pPage->nOverflow = bVar4 + 1;\n    pPage->apOvfl[bVar4] = pCell;\n    pPage->aiOvfl[bVar4] = (u16)i;\n    goto LAB_0008099c;\n  }\n  iVar7 = sqlite3PagerWrite(pPage->pDbPage);\n  if (iVar7 == 0) {\n    rc = 0;\n    puVar5 = (uint *)pPage->aData;\n    uVar1 = (uint)pPage->cellOffset + (uint)pPage->nCell * 2;\n    uVar8 = (uint)pPage->hdrOffset;\n    puVar2 = (u8 *)((int)puVar5 + uVar8 + 5);\n    puVar3 = (u8 *)((int)puVar5 + uVar8 + 6);\n    uVar9 = (uint)CONCAT11(*puVar2,*puVar3);\n    if (uVar9 < uVar1) {\n      if ((uVar9 == 0) && (pPage->pBt->usableSize == 0x10000)) {\n        uVar9 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar7 = sqlite3CorruptError(0xfcb0);\n      if (iVar7 != 0) goto LAB_00080b90;\n      local_38 = '\0';\n      iVar7 = 0;\n      uVar6 = '\0';\n      __dest = puVar5;\n    }\n    else {\nLAB_00080a45:\n      if (((*(u8 *)((int)puVar5 + uVar8 + 2) != '\0') || (*(u8 *)((int)puVar5 + uVar8 + 1) != '\0'))\n         && (uVar1 + 1 < uVar9)) {\n        __dest = (uint *)pageFindSlot(pPage,sz,&rc);\n        if (__dest != (uint *)0x0) {\n          iVar7 = (int)__dest - (int)puVar5;\n          uVar6 = (u8)((uint)iVar7 >> 8);\n          local_38 = (u8)iVar7;\n          goto LAB_00080a99;\n        }\n        iVar7 = rc;\n        if (rc != 0) goto LAB_00080b90;\n      }\n      if ((int)uVar9 < (int)(uVar1 + 2 + sz)) {\n        rc = defragmentPage(in_stack_ffffffb4,in_stack_ffffffb8);\n        iVar7 = rc;\n        if (rc != 0) goto LAB_00080b90;\n        uVar9 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n      }\n      iVar7 = uVar9 - sz;\n      local_38 = (u8)iVar7;\n      uVar6 = (u8)((uint)iVar7 >> 8);\n      *puVar2 = uVar6;\n      *puVar3 = local_38;\n      __dest = (uint *)((int)puVar5 + iVar7);\n    }\nLAB_00080a99:\n    pPage->nFree = (pPage->nFree - (short)sz) - 2;\n    if (iChild == 0) {\n      memcpy(__dest,pCell,sz);\n    }\n    else {\n      memcpy((u8 *)((int)puVar5 + iVar7 + 4),pCell + 4,sz - 4);\n      *__dest = iChild >> 0x18 | (iChild & 0xff0000) >> 8 | (iChild & 0xff00) << 8 | iChild << 0x18;\n    }\n    puVar2 = pPage->aCellIdx + i * 2;\n    memmove(puVar2 + 2,puVar2,((uint)pPage->nCell - i) * 2);\n    *puVar2 = uVar6;\n    puVar2[1] = local_38;\n    pPage->nCell = pPage->nCell + 1;\n    puVar2 = (u8 *)((int)puVar5 + pPage->hdrOffset + 4);\n    uVar6 = *puVar2 + '\x01';\n    *puVar2 = uVar6;\n    if (uVar6 == '\0') {\n      puVar2 = (u8 *)((int)puVar5 + pPage->hdrOffset + 3);\n      *puVar2 = *puVar2 + '\x01';\n    }\n    if (pPage->pBt->autoVacuum != '\0') {\n      ptrmapPutOvflPtr(pPage,(MemPage *)&pPage->aDataEnd,pCell,pRC);\n    }\n  }\n  else {\nLAB_00080b90:\n    *pRC = iVar7;\n  }\nLAB_0008099c:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "void __regparm3 insertCell(MemPage *pPage,int i,u8 *pCell,int sz,u8 *pTemp,Pgno iChild,int *pRC)\n\n{\n  uint uVar1;\n  u8 *puVar2;\n  u8 *puVar3;\n  byte bVar4;\n  uint *puVar5;\n  u8 uVar6;\n  int iVar7;\n  uint uVar8;\n  uint *__dest;\n  uint uVar9;\n  int in_GS_OFFSET;\n  MemPage *in_stack_ffffffb4;\n  int in_stack_ffffffb8;\n  u8 local_38;\n  int rc;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x8091f;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((pPage->nOverflow != '\0') || ((int)(uint)pPage->nFree <= sz + 1)) {\n    if (pTemp != (u8 *)0x0) {\n      memcpy(pTemp,pCell,sz);\n      pCell = pTemp;\n    }\n    if (iChild != 0) {\n      *(Pgno *)pCell =\n           iChild >> 0x18 | (iChild & 0xff0000) >> 8 | (iChild & 0xff00) << 8 | iChild << 0x18;\n    }\n    bVar4 = pPage->nOverflow;\n    pPage->nOverflow = bVar4 + 1;\n    pPage->apOvfl[bVar4] = pCell;\n    pPage->aiOvfl[bVar4] = (u16)i;\n    goto LAB_0008099c;\n  }\n  iVar7 = sqlite3PagerWrite(pPage->pDbPage);\n  if (iVar7 == 0) {\n    rc = 0;\n    puVar5 = (uint *)pPage->aData;\n    uVar1 = (uint)pPage->cellOffset + (uint)pPage->nCell * 2;\n    uVar8 = (uint)pPage->hdrOffset;\n    puVar2 = (u8 *)((int)puVar5 + uVar8 + 5);\n    puVar3 = (u8 *)((int)puVar5 + uVar8 + 6);\n    uVar9 = (uint)CONCAT11(*puVar2,*puVar3);\n    if (uVar9 < uVar1) {\n      if ((uVar9 == 0) && (pPage->pBt->usableSize == 0x10000)) {\n        uVar9 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar7 = sqlite3CorruptError(0xfcb0);\n      if (iVar7 != 0) goto LAB_00080b90;\n      local_38 = '\0';\n      iVar7 = 0;\n      uVar6 = '\0';\n      __dest = puVar5;\n    }\n    else {\nLAB_00080a45:\n      if (((*(u8 *)((int)puVar5 + uVar8 + 2) != '\0') || (*(u8 *)((int)puVar5 + uVar8 + 1) != '\0'))\n         && (uVar1 + 1 < uVar9)) {\n        __dest = (uint *)pageFindSlot(pPage,sz,&rc);\n        if (__dest != (uint *)0x0) {\n          iVar7 = (int)__dest - (int)puVar5;\n          uVar6 = (u8)((uint)iVar7 >> 8);\n          local_38 = (u8)iVar7;\n          goto LAB_00080a99;\n        }\n        iVar7 = rc;\n        if (rc != 0) goto LAB_00080b90;\n      }\n      if ((int)uVar9 < (int)(uVar1 + 2 + sz)) {\n        rc = defragmentPage(in_stack_ffffffb4,in_stack_ffffffb8);\n        iVar7 = rc;\n        if (rc != 0) goto LAB_00080b90;\n        uVar9 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n      }\n      iVar7 = uVar9 - sz;\n      local_38 = (u8)iVar7;\n      uVar6 = (u8)((uint)iVar7 >> 8);\n      *puVar2 = uVar6;\n      *puVar3 = local_38;\n      __dest = (uint *)((int)puVar5 + iVar7);\n    }\nLAB_00080a99:\n    pPage->nFree = (pPage->nFree - (short)sz) - 2;\n    if (iChild == 0) {\n      memcpy(__dest,pCell,sz);\n    }\n    else {\n      memcpy((u8 *)((int)puVar5 + iVar7 + 4),pCell + 4,sz - 4);\n      *__dest = iChild >> 0x18 | (iChild & 0xff0000) >> 8 | (iChild & 0xff00) << 8 | iChild << 0x18;\n    }\n    puVar2 = pPage->aCellIdx + i * 2;\n    memmove(puVar2 + 2,puVar2,((uint)pPage->nCell - i) * 2);\n    *puVar2 = uVar6;\n    puVar2[1] = local_38;\n    pPage->nCell = pPage->nCell + 1;\n    puVar2 = (u8 *)((int)puVar5 + pPage->hdrOffset + 4);\n    uVar6 = *puVar2 + '\x01';\n    *puVar2 = uVar6;\n    if (uVar6 == '\0') {\n      puVar2 = (u8 *)((int)puVar5 + pPage->hdrOffset + 3);\n      *puVar2 = *puVar2 + '\x01';\n    }\n    if (pPage->pBt->autoVacuum != '\0') {\n      ptrmapPutOvflPtr(pPage,(MemPage *)&pPage->aDataEnd,pCell,pRC);\n    }\n  }\n  else {\nLAB_00080b90:\n    *pRC = iVar7;\n  }\nLAB_0008099c:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "insertCell(MemPage *pPage,int i,u8 *pCell,int sz,u8 *pTemp,Pgno iChild,int *pRC)" identifier (parameter_list "(MemPage *pPage,int i,u8 *pCell,int sz,u8 *pTemp,Pgno iChild,int *pRC)" ( (parameter_declaration "MemPage *pPage" type_identifier (pointer_declarator "*pPage" * identifier)) , (parameter_declaration "int i" primitive_type identifier) , (parameter_declaration "u8 *pCell" type_identifier (pointer_declarator "*pCell" * identifier)) , (parameter_declaration "int sz" primitive_type identifier) , (parameter_declaration "u8 *pTemp" type_identifier (pointer_declarator "*pTemp" * identifier)) , (parameter_declaration "Pgno iChild" type_identifier identifier) , (parameter_declaration "int *pRC" primitive_type (pointer_declarator "*pRC" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  u8 *puVar2;\n  u8 *puVar3;\n  byte bVar4;\n  uint *puVar5;\n  u8 uVar6;\n  int iVar7;\n  uint uVar8;\n  uint *__dest;\n  uint uVar9;\n  int in_GS_OFFSET;\n  MemPage *in_stack_ffffffb4;\n  int in_stack_ffffffb8;\n  u8 local_38;\n  int rc;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x8091f;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((pPage->nOverflow != '\0') || ((int)(uint)pPage->nFree <= sz + 1)) {\n    if (pTemp != (u8 *)0x0) {\n      memcpy(pTemp,pCell,sz);\n      pCell = pTemp;\n    }\n    if (iChild != 0) {\n      *(Pgno *)pCell =\n           iChild >> 0x18 | (iChild & 0xff0000) >> 8 | (iChild & 0xff00) << 8 | iChild << 0x18;\n    }\n    bVar4 = pPage->nOverflow;\n    pPage->nOverflow = bVar4 + 1;\n    pPage->apOvfl[bVar4] = pCell;\n    pPage->aiOvfl[bVar4] = (u16)i;\n    goto LAB_0008099c;\n  }\n  iVar7 = sqlite3PagerWrite(pPage->pDbPage);\n  if (iVar7 == 0) {\n    rc = 0;\n    puVar5 = (uint *)pPage->aData;\n    uVar1 = (uint)pPage->cellOffset + (uint)pPage->nCell * 2;\n    uVar8 = (uint)pPage->hdrOffset;\n    puVar2 = (u8 *)((int)puVar5 + uVar8 + 5);\n    puVar3 = (u8 *)((int)puVar5 + uVar8 + 6);\n    uVar9 = (uint)CONCAT11(*puVar2,*puVar3);\n    if (uVar9 < uVar1) {\n      if ((uVar9 == 0) && (pPage->pBt->usableSize == 0x10000)) {\n        uVar9 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar7 = sqlite3CorruptError(0xfcb0);\n      if (iVar7 != 0) goto LAB_00080b90;\n      local_38 = '\0';\n      iVar7 = 0;\n      uVar6 = '\0';\n      __dest = puVar5;\n    }\n    else {\nLAB_00080a45:\n      if (((*(u8 *)((int)puVar5 + uVar8 + 2) != '\0') || (*(u8 *)((int)puVar5 + uVar8 + 1) != '\0'))\n         && (uVar1 + 1 < uVar9)) {\n        __dest = (uint *)pageFindSlot(pPage,sz,&rc);\n        if (__dest != (uint *)0x0) {\n          iVar7 = (int)__dest - (int)puVar5;\n          uVar6 = (u8)((uint)iVar7 >> 8);\n          local_38 = (u8)iVar7;\n          goto LAB_00080a99;\n        }\n        iVar7 = rc;\n        if (rc != 0) goto LAB_00080b90;\n      }\n      if ((int)uVar9 < (int)(uVar1 + 2 + sz)) {\n        rc = defragmentPage(in_stack_ffffffb4,in_stack_ffffffb8);\n        iVar7 = rc;\n        if (rc != 0) goto LAB_00080b90;\n        uVar9 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n      }\n      iVar7 = uVar9 - sz;\n      local_38 = (u8)iVar7;\n      uVar6 = (u8)((uint)iVar7 >> 8);\n      *puVar2 = uVar6;\n      *puVar3 = local_38;\n      __dest = (uint *)((int)puVar5 + iVar7);\n    }\nLAB_00080a99:\n    pPage->nFree = (pPage->nFree - (short)sz) - 2;\n    if (iChild == 0) {\n      memcpy(__dest,pCell,sz);\n    }\n    else {\n      memcpy((u8 *)((int)puVar5 + iVar7 + 4),pCell + 4,sz - 4);\n      *__dest = iChild >> 0x18 | (iChild & 0xff0000) >> 8 | (iChild & 0xff00) << 8 | iChild << 0x18;\n    }\n    puVar2 = pPage->aCellIdx + i * 2;\n    memmove(puVar2 + 2,puVar2,((uint)pPage->nCell - i) * 2);\n    *puVar2 = uVar6;\n    puVar2[1] = local_38;\n    pPage->nCell = pPage->nCell + 1;\n    puVar2 = (u8 *)((int)puVar5 + pPage->hdrOffset + 4);\n    uVar6 = *puVar2 + '\x01';\n    *puVar2 = uVar6;\n    if (uVar6 == '\0') {\n      puVar2 = (u8 *)((int)puVar5 + pPage->hdrOffset + 3);\n      *puVar2 = *puVar2 + '\x01';\n    }\n    if (pPage->pBt->autoVacuum != '\0') {\n      ptrmapPutOvflPtr(pPage,(MemPage *)&pPage->aDataEnd,pCell,pRC);\n    }\n  }\n  else {\nLAB_00080b90:\n    *pRC = iVar7;\n  }\nLAB_0008099c:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "u8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "u8 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "u8 uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint *__dest;" type_identifier (pointer_declarator "*__dest" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "MemPage *in_stack_ffffffb4;" type_identifier (pointer_declarator "*in_stack_ffffffb4" * identifier) ;) (declaration "int in_stack_ffffffb8;" primitive_type identifier ;) (declaration "u8 local_38;" type_identifier identifier ;) (declaration "int rc;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x8091f;" (assignment_expression "uStack_14 = 0x8091f" 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) ))))) ;) (if_statement "if ((pPage->nOverflow != '\0') || ((int)(uint)pPage->nFree <= sz + 1)) {\n    if (pTemp != (u8 *)0x0) {\n      memcpy(pTemp,pCell,sz);\n      pCell = pTemp;\n    }\n    if (iChild != 0) {\n      *(Pgno *)pCell =\n           iChild >> 0x18 | (iChild & 0xff0000) >> 8 | (iChild & 0xff00) << 8 | iChild << 0x18;\n    }\n    bVar4 = pPage->nOverflow;\n    pPage->nOverflow = bVar4 + 1;\n    pPage->apOvfl[bVar4] = pCell;\n    pPage->aiOvfl[bVar4] = (u16)i;\n    goto LAB_0008099c;\n  }" if (parenthesized_expression "((pPage->nOverflow != '\0') || ((int)(uint)pPage->nFree <= sz + 1))" ( (binary_expression "(pPage->nOverflow != '\0') || ((int)(uint)pPage->nFree <= sz + 1)" (parenthesized_expression "(pPage->nOverflow != '\0')" ( (binary_expression "pPage->nOverflow != '\0'" (field_expression "pPage->nOverflow" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "((int)(uint)pPage->nFree <= sz + 1)" ( (binary_expression "(int)(uint)pPage->nFree <= sz + 1" (cast_expression "(int)(uint)pPage->nFree" ( (type_descriptor "int" primitive_type) ) (cast_expression "(uint)pPage->nFree" ( (type_descriptor "uint" type_identifier) ) (field_expression "pPage->nFree" identifier -> field_identifier))) <= (binary_expression "sz + 1" identifier + number_literal)) ))) )) (compound_statement "{\n    if (pTemp != (u8 *)0x0) {\n      memcpy(pTemp,pCell,sz);\n      pCell = pTemp;\n    }\n    if (iChild != 0) {\n      *(Pgno *)pCell =\n           iChild >> 0x18 | (iChild & 0xff0000) >> 8 | (iChild & 0xff00) << 8 | iChild << 0x18;\n    }\n    bVar4 = pPage->nOverflow;\n    pPage->nOverflow = bVar4 + 1;\n    pPage->apOvfl[bVar4] = pCell;\n    pPage->aiOvfl[bVar4] = (u16)i;\n    goto LAB_0008099c;\n  }" { (if_statement "if (pTemp != (u8 *)0x0) {\n      memcpy(pTemp,pCell,sz);\n      pCell = pTemp;\n    }" if (parenthesized_expression "(pTemp != (u8 *)0x0)" ( (binary_expression "pTemp != (u8 *)0x0" identifier != (cast_expression "(u8 *)0x0" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      memcpy(pTemp,pCell,sz);\n      pCell = pTemp;\n    }" { (expression_statement "memcpy(pTemp,pCell,sz);" (call_expression "memcpy(pTemp,pCell,sz)" identifier (argument_list "(pTemp,pCell,sz)" ( identifier , identifier , identifier ))) ;) (expression_statement "pCell = pTemp;" (assignment_expression "pCell = pTemp" identifier = identifier) ;) })) (if_statement "if (iChild != 0) {\n      *(Pgno *)pCell =\n           iChild >> 0x18 | (iChild & 0xff0000) >> 8 | (iChild & 0xff00) << 8 | iChild << 0x18;\n    }" if (parenthesized_expression "(iChild != 0)" ( (binary_expression "iChild != 0" identifier != number_literal) )) (compound_statement "{\n      *(Pgno *)pCell =\n           iChild >> 0x18 | (iChild & 0xff0000) >> 8 | (iChild & 0xff00) << 8 | iChild << 0x18;\n    }" { (expression_statement "*(Pgno *)pCell =\n           iChild >> 0x18 | (iChild & 0xff0000) >> 8 | (iChild & 0xff00) << 8 | iChild << 0x18;" (assignment_expression "*(Pgno *)pCell =\n           iChild >> 0x18 | (iChild & 0xff0000) >> 8 | (iChild & 0xff00) << 8 | iChild << 0x18" (pointer_expression "*(Pgno *)pCell" * (cast_expression "(Pgno *)pCell" ( (type_descriptor "Pgno *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "iChild >> 0x18 | (iChild & 0xff0000) >> 8 | (iChild & 0xff00) << 8 | iChild << 0x18" (binary_expression "iChild >> 0x18 | (iChild & 0xff0000) >> 8 | (iChild & 0xff00) << 8" (binary_expression "iChild >> 0x18 | (iChild & 0xff0000) >> 8" (binary_expression "iChild >> 0x18" identifier >> number_literal) | (binary_expression "(iChild & 0xff0000) >> 8" (parenthesized_expression "(iChild & 0xff0000)" ( (binary_expression "iChild & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(iChild & 0xff00) << 8" (parenthesized_expression "(iChild & 0xff00)" ( (binary_expression "iChild & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "iChild << 0x18" identifier << number_literal))) ;) })) (expression_statement "bVar4 = pPage->nOverflow;" (assignment_expression "bVar4 = pPage->nOverflow" identifier = (field_expression "pPage->nOverflow" identifier -> field_identifier)) ;) (expression_statement "pPage->nOverflow = bVar4 + 1;" (assignment_expression "pPage->nOverflow = bVar4 + 1" (field_expression "pPage->nOverflow" identifier -> field_identifier) = (binary_expression "bVar4 + 1" identifier + number_literal)) ;) (expression_statement "pPage->apOvfl[bVar4] = pCell;" (assignment_expression "pPage->apOvfl[bVar4] = pCell" (subscript_expression "pPage->apOvfl[bVar4]" (field_expression "pPage->apOvfl" identifier -> field_identifier) [ identifier ]) = identifier) ;) (expression_statement "pPage->aiOvfl[bVar4] = (u16)i;" (assignment_expression "pPage->aiOvfl[bVar4] = (u16)i" (subscript_expression "pPage->aiOvfl[bVar4]" (field_expression "pPage->aiOvfl" identifier -> field_identifier) [ identifier ]) = (cast_expression "(u16)i" ( (type_descriptor "u16" type_identifier) ) identifier)) ;) (goto_statement "goto LAB_0008099c;" goto statement_identifier ;) })) (expression_statement "iVar7 = sqlite3PagerWrite(pPage->pDbPage);" (assignment_expression "iVar7 = sqlite3PagerWrite(pPage->pDbPage)" identifier = (call_expression "sqlite3PagerWrite(pPage->pDbPage)" identifier (argument_list "(pPage->pDbPage)" ( (field_expression "pPage->pDbPage" identifier -> field_identifier) )))) ;) (if_statement "if (iVar7 == 0) {\n    rc = 0;\n    puVar5 = (uint *)pPage->aData;\n    uVar1 = (uint)pPage->cellOffset + (uint)pPage->nCell * 2;\n    uVar8 = (uint)pPage->hdrOffset;\n    puVar2 = (u8 *)((int)puVar5 + uVar8 + 5);\n    puVar3 = (u8 *)((int)puVar5 + uVar8 + 6);\n    uVar9 = (uint)CONCAT11(*puVar2,*puVar3);\n    if (uVar9 < uVar1) {\n      if ((uVar9 == 0) && (pPage->pBt->usableSize == 0x10000)) {\n        uVar9 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar7 = sqlite3CorruptError(0xfcb0);\n      if (iVar7 != 0) goto LAB_00080b90;\n      local_38 = '\0';\n      iVar7 = 0;\n      uVar6 = '\0';\n      __dest = puVar5;\n    }\n    else {\nLAB_00080a45:\n      if (((*(u8 *)((int)puVar5 + uVar8 + 2) != '\0') || (*(u8 *)((int)puVar5 + uVar8 + 1) != '\0'))\n         && (uVar1 + 1 < uVar9)) {\n        __dest = (uint *)pageFindSlot(pPage,sz,&rc);\n        if (__dest != (uint *)0x0) {\n          iVar7 = (int)__dest - (int)puVar5;\n          uVar6 = (u8)((uint)iVar7 >> 8);\n          local_38 = (u8)iVar7;\n          goto LAB_00080a99;\n        }\n        iVar7 = rc;\n        if (rc != 0) goto LAB_00080b90;\n      }\n      if ((int)uVar9 < (int)(uVar1 + 2 + sz)) {\n        rc = defragmentPage(in_stack_ffffffb4,in_stack_ffffffb8);\n        iVar7 = rc;\n        if (rc != 0) goto LAB_00080b90;\n        uVar9 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n      }\n      iVar7 = uVar9 - sz;\n      local_38 = (u8)iVar7;\n      uVar6 = (u8)((uint)iVar7 >> 8);\n      *puVar2 = uVar6;\n      *puVar3 = local_38;\n      __dest = (uint *)((int)puVar5 + iVar7);\n    }\nLAB_00080a99:\n    pPage->nFree = (pPage->nFree - (short)sz) - 2;\n    if (iChild == 0) {\n      memcpy(__dest,pCell,sz);\n    }\n    else {\n      memcpy((u8 *)((int)puVar5 + iVar7 + 4),pCell + 4,sz - 4);\n      *__dest = iChild >> 0x18 | (iChild & 0xff0000) >> 8 | (iChild & 0xff00) << 8 | iChild << 0x18;\n    }\n    puVar2 = pPage->aCellIdx + i * 2;\n    memmove(puVar2 + 2,puVar2,((uint)pPage->nCell - i) * 2);\n    *puVar2 = uVar6;\n    puVar2[1] = local_38;\n    pPage->nCell = pPage->nCell + 1;\n    puVar2 = (u8 *)((int)puVar5 + pPage->hdrOffset + 4);\n    uVar6 = *puVar2 + '\x01';\n    *puVar2 = uVar6;\n    if (uVar6 == '\0') {\n      puVar2 = (u8 *)((int)puVar5 + pPage->hdrOffset + 3);\n      *puVar2 = *puVar2 + '\x01';\n    }\n    if (pPage->pBt->autoVacuum != '\0') {\n      ptrmapPutOvflPtr(pPage,(MemPage *)&pPage->aDataEnd,pCell,pRC);\n    }\n  }\n  else {\nLAB_00080b90:\n    *pRC = iVar7;\n  }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n    rc = 0;\n    puVar5 = (uint *)pPage->aData;\n    uVar1 = (uint)pPage->cellOffset + (uint)pPage->nCell * 2;\n    uVar8 = (uint)pPage->hdrOffset;\n    puVar2 = (u8 *)((int)puVar5 + uVar8 + 5);\n    puVar3 = (u8 *)((int)puVar5 + uVar8 + 6);\n    uVar9 = (uint)CONCAT11(*puVar2,*puVar3);\n    if (uVar9 < uVar1) {\n      if ((uVar9 == 0) && (pPage->pBt->usableSize == 0x10000)) {\n        uVar9 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar7 = sqlite3CorruptError(0xfcb0);\n      if (iVar7 != 0) goto LAB_00080b90;\n      local_38 = '\0';\n      iVar7 = 0;\n      uVar6 = '\0';\n      __dest = puVar5;\n    }\n    else {\nLAB_00080a45:\n      if (((*(u8 *)((int)puVar5 + uVar8 + 2) != '\0') || (*(u8 *)((int)puVar5 + uVar8 + 1) != '\0'))\n         && (uVar1 + 1 < uVar9)) {\n        __dest = (uint *)pageFindSlot(pPage,sz,&rc);\n        if (__dest != (uint *)0x0) {\n          iVar7 = (int)__dest - (int)puVar5;\n          uVar6 = (u8)((uint)iVar7 >> 8);\n          local_38 = (u8)iVar7;\n          goto LAB_00080a99;\n        }\n        iVar7 = rc;\n        if (rc != 0) goto LAB_00080b90;\n      }\n      if ((int)uVar9 < (int)(uVar1 + 2 + sz)) {\n        rc = defragmentPage(in_stack_ffffffb4,in_stack_ffffffb8);\n        iVar7 = rc;\n        if (rc != 0) goto LAB_00080b90;\n        uVar9 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n      }\n      iVar7 = uVar9 - sz;\n      local_38 = (u8)iVar7;\n      uVar6 = (u8)((uint)iVar7 >> 8);\n      *puVar2 = uVar6;\n      *puVar3 = local_38;\n      __dest = (uint *)((int)puVar5 + iVar7);\n    }\nLAB_00080a99:\n    pPage->nFree = (pPage->nFree - (short)sz) - 2;\n    if (iChild == 0) {\n      memcpy(__dest,pCell,sz);\n    }\n    else {\n      memcpy((u8 *)((int)puVar5 + iVar7 + 4),pCell + 4,sz - 4);\n      *__dest = iChild >> 0x18 | (iChild & 0xff0000) >> 8 | (iChild & 0xff00) << 8 | iChild << 0x18;\n    }\n    puVar2 = pPage->aCellIdx + i * 2;\n    memmove(puVar2 + 2,puVar2,((uint)pPage->nCell - i) * 2);\n    *puVar2 = uVar6;\n    puVar2[1] = local_38;\n    pPage->nCell = pPage->nCell + 1;\n    puVar2 = (u8 *)((int)puVar5 + pPage->hdrOffset + 4);\n    uVar6 = *puVar2 + '\x01';\n    *puVar2 = uVar6;\n    if (uVar6 == '\0') {\n      puVar2 = (u8 *)((int)puVar5 + pPage->hdrOffset + 3);\n      *puVar2 = *puVar2 + '\x01';\n    }\n    if (pPage->pBt->autoVacuum != '\0') {\n      ptrmapPutOvflPtr(pPage,(MemPage *)&pPage->aDataEnd,pCell,pRC);\n    }\n  }" { (expression_statement "rc = 0;" (assignment_expression "rc = 0" identifier = number_literal) ;) (expression_statement "puVar5 = (uint *)pPage->aData;" (assignment_expression "puVar5 = (uint *)pPage->aData" identifier = (cast_expression "(uint *)pPage->aData" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pPage->aData" identifier -> field_identifier))) ;) (expression_statement "uVar1 = (uint)pPage->cellOffset + (uint)pPage->nCell * 2;" (assignment_expression "uVar1 = (uint)pPage->cellOffset + (uint)pPage->nCell * 2" identifier = (binary_expression "(uint)pPage->cellOffset + (uint)pPage->nCell * 2" (cast_expression "(uint)pPage->cellOffset" ( (type_descriptor "uint" type_identifier) ) (field_expression "pPage->cellOffset" identifier -> field_identifier)) + (binary_expression "(uint)pPage->nCell * 2" (cast_expression "(uint)pPage->nCell" ( (type_descriptor "uint" type_identifier) ) (field_expression "pPage->nCell" identifier -> field_identifier)) * number_literal))) ;) (expression_statement "uVar8 = (uint)pPage->hdrOffset;" (assignment_expression "uVar8 = (uint)pPage->hdrOffset" identifier = (cast_expression "(uint)pPage->hdrOffset" ( (type_descriptor "uint" type_identifier) ) (field_expression "pPage->hdrOffset" identifier -> field_identifier))) ;) (expression_statement "puVar2 = (u8 *)((int)puVar5 + uVar8 + 5);" (assignment_expression "puVar2 = (u8 *)((int)puVar5 + uVar8 + 5)" identifier = (cast_expression "(u8 *)((int)puVar5 + uVar8 + 5)" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + uVar8 + 5)" ( (binary_expression "(int)puVar5 + uVar8 + 5" (binary_expression "(int)puVar5 + uVar8" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "puVar3 = (u8 *)((int)puVar5 + uVar8 + 6);" (assignment_expression "puVar3 = (u8 *)((int)puVar5 + uVar8 + 6)" identifier = (cast_expression "(u8 *)((int)puVar5 + uVar8 + 6)" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + uVar8 + 6)" ( (binary_expression "(int)puVar5 + uVar8 + 6" (binary_expression "(int)puVar5 + uVar8" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "uVar9 = (uint)CONCAT11(*puVar2,*puVar3);" (assignment_expression "uVar9 = (uint)CONCAT11(*puVar2,*puVar3)" identifier = (cast_expression "(uint)CONCAT11(*puVar2,*puVar3)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CONCAT11(*puVar2,*puVar3)" identifier (argument_list "(*puVar2,*puVar3)" ( (pointer_expression "*puVar2" * identifier) , (pointer_expression "*puVar3" * identifier) ))))) ;) (if_statement "if (uVar9 < uVar1) {\n      if ((uVar9 == 0) && (pPage->pBt->usableSize == 0x10000)) {\n        uVar9 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar7 = sqlite3CorruptError(0xfcb0);\n      if (iVar7 != 0) goto LAB_00080b90;\n      local_38 = '\0';\n      iVar7 = 0;\n      uVar6 = '\0';\n      __dest = puVar5;\n    }\n    else {\nLAB_00080a45:\n      if (((*(u8 *)((int)puVar5 + uVar8 + 2) != '\0') || (*(u8 *)((int)puVar5 + uVar8 + 1) != '\0'))\n         && (uVar1 + 1 < uVar9)) {\n        __dest = (uint *)pageFindSlot(pPage,sz,&rc);\n        if (__dest != (uint *)0x0) {\n          iVar7 = (int)__dest - (int)puVar5;\n          uVar6 = (u8)((uint)iVar7 >> 8);\n          local_38 = (u8)iVar7;\n          goto LAB_00080a99;\n        }\n        iVar7 = rc;\n        if (rc != 0) goto LAB_00080b90;\n      }\n      if ((int)uVar9 < (int)(uVar1 + 2 + sz)) {\n        rc = defragmentPage(in_stack_ffffffb4,in_stack_ffffffb8);\n        iVar7 = rc;\n        if (rc != 0) goto LAB_00080b90;\n        uVar9 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n      }\n      iVar7 = uVar9 - sz;\n      local_38 = (u8)iVar7;\n      uVar6 = (u8)((uint)iVar7 >> 8);\n      *puVar2 = uVar6;\n      *puVar3 = local_38;\n      __dest = (uint *)((int)puVar5 + iVar7);\n    }" if (parenthesized_expression "(uVar9 < uVar1)" ( (binary_expression "uVar9 < uVar1" identifier < identifier) )) (compound_statement "{\n      if ((uVar9 == 0) && (pPage->pBt->usableSize == 0x10000)) {\n        uVar9 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar7 = sqlite3CorruptError(0xfcb0);\n      if (iVar7 != 0) goto LAB_00080b90;\n      local_38 = '\0';\n      iVar7 = 0;\n      uVar6 = '\0';\n      __dest = puVar5;\n    }" { (if_statement "if ((uVar9 == 0) && (pPage->pBt->usableSize == 0x10000)) {\n        uVar9 = 0x10000;\n        goto LAB_00080a45;\n      }" if (parenthesized_expression "((uVar9 == 0) && (pPage->pBt->usableSize == 0x10000))" ( (binary_expression "(uVar9 == 0) && (pPage->pBt->usableSize == 0x10000)" (parenthesized_expression "(uVar9 == 0)" ( (binary_expression "uVar9 == 0" identifier == number_literal) )) && (parenthesized_expression "(pPage->pBt->usableSize == 0x10000)" ( (binary_expression "pPage->pBt->usableSize == 0x10000" (field_expression "pPage->pBt->usableSize" (field_expression "pPage->pBt" identifier -> field_identifier) -> field_identifier) == number_literal) ))) )) (compound_statement "{\n        uVar9 = 0x10000;\n        goto LAB_00080a45;\n      }" { (expression_statement "uVar9 = 0x10000;" (assignment_expression "uVar9 = 0x10000" identifier = number_literal) ;) (goto_statement "goto LAB_00080a45;" goto statement_identifier ;) })) (expression_statement "iVar7 = sqlite3CorruptError(0xfcb0);" (assignment_expression "iVar7 = sqlite3CorruptError(0xfcb0)" identifier = (call_expression "sqlite3CorruptError(0xfcb0)" identifier (argument_list "(0xfcb0)" ( number_literal )))) ;) (if_statement "if (iVar7 != 0) goto LAB_00080b90;" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00080b90;" goto statement_identifier ;)) (expression_statement "local_38 = '\0';" (assignment_expression "local_38 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "uVar6 = '\0';" (assignment_expression "uVar6 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "__dest = puVar5;" (assignment_expression "__dest = puVar5" identifier = identifier) ;) }) (else_clause "else {\nLAB_00080a45:\n      if (((*(u8 *)((int)puVar5 + uVar8 + 2) != '\0') || (*(u8 *)((int)puVar5 + uVar8 + 1) != '\0'))\n         && (uVar1 + 1 < uVar9)) {\n        __dest = (uint *)pageFindSlot(pPage,sz,&rc);\n        if (__dest != (uint *)0x0) {\n          iVar7 = (int)__dest - (int)puVar5;\n          uVar6 = (u8)((uint)iVar7 >> 8);\n          local_38 = (u8)iVar7;\n          goto LAB_00080a99;\n        }\n        iVar7 = rc;\n        if (rc != 0) goto LAB_00080b90;\n      }\n      if ((int)uVar9 < (int)(uVar1 + 2 + sz)) {\n        rc = defragmentPage(in_stack_ffffffb4,in_stack_ffffffb8);\n        iVar7 = rc;\n        if (rc != 0) goto LAB_00080b90;\n        uVar9 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n      }\n      iVar7 = uVar9 - sz;\n      local_38 = (u8)iVar7;\n      uVar6 = (u8)((uint)iVar7 >> 8);\n      *puVar2 = uVar6;\n      *puVar3 = local_38;\n      __dest = (uint *)((int)puVar5 + iVar7);\n    }" else (compound_statement "{\nLAB_00080a45:\n      if (((*(u8 *)((int)puVar5 + uVar8 + 2) != '\0') || (*(u8 *)((int)puVar5 + uVar8 + 1) != '\0'))\n         && (uVar1 + 1 < uVar9)) {\n        __dest = (uint *)pageFindSlot(pPage,sz,&rc);\n        if (__dest != (uint *)0x0) {\n          iVar7 = (int)__dest - (int)puVar5;\n          uVar6 = (u8)((uint)iVar7 >> 8);\n          local_38 = (u8)iVar7;\n          goto LAB_00080a99;\n        }\n        iVar7 = rc;\n        if (rc != 0) goto LAB_00080b90;\n      }\n      if ((int)uVar9 < (int)(uVar1 + 2 + sz)) {\n        rc = defragmentPage(in_stack_ffffffb4,in_stack_ffffffb8);\n        iVar7 = rc;\n        if (rc != 0) goto LAB_00080b90;\n        uVar9 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n      }\n      iVar7 = uVar9 - sz;\n      local_38 = (u8)iVar7;\n      uVar6 = (u8)((uint)iVar7 >> 8);\n      *puVar2 = uVar6;\n      *puVar3 = local_38;\n      __dest = (uint *)((int)puVar5 + iVar7);\n    }" { (labeled_statement "LAB_00080a45:\n      if (((*(u8 *)((int)puVar5 + uVar8 + 2) != '\0') || (*(u8 *)((int)puVar5 + uVar8 + 1) != '\0'))\n         && (uVar1 + 1 < uVar9)) {\n        __dest = (uint *)pageFindSlot(pPage,sz,&rc);\n        if (__dest != (uint *)0x0) {\n          iVar7 = (int)__dest - (int)puVar5;\n          uVar6 = (u8)((uint)iVar7 >> 8);\n          local_38 = (u8)iVar7;\n          goto LAB_00080a99;\n        }\n        iVar7 = rc;\n        if (rc != 0) goto LAB_00080b90;\n      }" statement_identifier : (if_statement "if (((*(u8 *)((int)puVar5 + uVar8 + 2) != '\0') || (*(u8 *)((int)puVar5 + uVar8 + 1) != '\0'))\n         && (uVar1 + 1 < uVar9)) {\n        __dest = (uint *)pageFindSlot(pPage,sz,&rc);\n        if (__dest != (uint *)0x0) {\n          iVar7 = (int)__dest - (int)puVar5;\n          uVar6 = (u8)((uint)iVar7 >> 8);\n          local_38 = (u8)iVar7;\n          goto LAB_00080a99;\n        }\n        iVar7 = rc;\n        if (rc != 0) goto LAB_00080b90;\n      }" if (parenthesized_expression "(((*(u8 *)((int)puVar5 + uVar8 + 2) != '\0') || (*(u8 *)((int)puVar5 + uVar8 + 1) != '\0'))\n         && (uVar1 + 1 < uVar9))" ( (binary_expression "((*(u8 *)((int)puVar5 + uVar8 + 2) != '\0') || (*(u8 *)((int)puVar5 + uVar8 + 1) != '\0'))\n         && (uVar1 + 1 < uVar9)" (parenthesized_expression "((*(u8 *)((int)puVar5 + uVar8 + 2) != '\0') || (*(u8 *)((int)puVar5 + uVar8 + 1) != '\0'))" ( (binary_expression "(*(u8 *)((int)puVar5 + uVar8 + 2) != '\0') || (*(u8 *)((int)puVar5 + uVar8 + 1) != '\0')" (parenthesized_expression "(*(u8 *)((int)puVar5 + uVar8 + 2) != '\0')" ( (binary_expression "*(u8 *)((int)puVar5 + uVar8 + 2) != '\0'" (pointer_expression "*(u8 *)((int)puVar5 + uVar8 + 2)" * (cast_expression "(u8 *)((int)puVar5 + uVar8 + 2)" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + uVar8 + 2)" ( (binary_expression "(int)puVar5 + uVar8 + 2" (binary_expression "(int)puVar5 + uVar8" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(*(u8 *)((int)puVar5 + uVar8 + 1) != '\0')" ( (binary_expression "*(u8 *)((int)puVar5 + uVar8 + 1) != '\0'" (pointer_expression "*(u8 *)((int)puVar5 + uVar8 + 1)" * (cast_expression "(u8 *)((int)puVar5 + uVar8 + 1)" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + uVar8 + 1)" ( (binary_expression "(int)puVar5 + uVar8 + 1" (binary_expression "(int)puVar5 + uVar8" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) && (parenthesized_expression "(uVar1 + 1 < uVar9)" ( (binary_expression "uVar1 + 1 < uVar9" (binary_expression "uVar1 + 1" identifier + number_literal) < identifier) ))) )) (compound_statement "{\n        __dest = (uint *)pageFindSlot(pPage,sz,&rc);\n        if (__dest != (uint *)0x0) {\n          iVar7 = (int)__dest - (int)puVar5;\n          uVar6 = (u8)((uint)iVar7 >> 8);\n          local_38 = (u8)iVar7;\n          goto LAB_00080a99;\n        }\n        iVar7 = rc;\n        if (rc != 0) goto LAB_00080b90;\n      }" { (expression_statement "__dest = (uint *)pageFindSlot(pPage,sz,&rc);" (assignment_expression "__dest = (uint *)pageFindSlot(pPage,sz,&rc)" identifier = (cast_expression "(uint *)pageFindSlot(pPage,sz,&rc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "pageFindSlot(pPage,sz,&rc)" identifier (argument_list "(pPage,sz,&rc)" ( identifier , identifier , (pointer_expression "&rc" & identifier) ))))) ;) (if_statement "if (__dest != (uint *)0x0) {\n          iVar7 = (int)__dest - (int)puVar5;\n          uVar6 = (u8)((uint)iVar7 >> 8);\n          local_38 = (u8)iVar7;\n          goto LAB_00080a99;\n        }" if (parenthesized_expression "(__dest != (uint *)0x0)" ( (binary_expression "__dest != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar7 = (int)__dest - (int)puVar5;\n          uVar6 = (u8)((uint)iVar7 >> 8);\n          local_38 = (u8)iVar7;\n          goto LAB_00080a99;\n        }" { (expression_statement "iVar7 = (int)__dest - (int)puVar5;" (assignment_expression "iVar7 = (int)__dest - (int)puVar5" identifier = (binary_expression "(int)__dest - (int)puVar5" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "uVar6 = (u8)((uint)iVar7 >> 8);" (assignment_expression "uVar6 = (u8)((uint)iVar7 >> 8)" identifier = (call_expression "(u8)((uint)iVar7 >> 8)" (parenthesized_expression "(u8)" ( identifier )) (argument_list "((uint)iVar7 >> 8)" ( (binary_expression "(uint)iVar7 >> 8" (cast_expression "(uint)iVar7" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "local_38 = (u8)iVar7;" (assignment_expression "local_38 = (u8)iVar7" identifier = (cast_expression "(u8)iVar7" ( (type_descriptor "u8" type_identifier) ) identifier)) ;) (goto_statement "goto LAB_00080a99;" goto statement_identifier ;) })) (expression_statement "iVar7 = rc;" (assignment_expression "iVar7 = rc" identifier = identifier) ;) (if_statement "if (rc != 0) goto LAB_00080b90;" if (parenthesized_expression "(rc != 0)" ( (binary_expression "rc != 0" identifier != number_literal) )) (goto_statement "goto LAB_00080b90;" goto statement_identifier ;)) }))) (if_statement "if ((int)uVar9 < (int)(uVar1 + 2 + sz)) {\n        rc = defragmentPage(in_stack_ffffffb4,in_stack_ffffffb8);\n        iVar7 = rc;\n        if (rc != 0) goto LAB_00080b90;\n        uVar9 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n      }" if (parenthesized_expression "((int)uVar9 < (int)(uVar1 + 2 + sz))" ( (binary_expression "(int)uVar9 < (int)(uVar1 + 2 + sz)" (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)(uVar1 + 2 + sz)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar1 + 2 + sz)" ( (binary_expression "uVar1 + 2 + sz" (binary_expression "uVar1 + 2" identifier + number_literal) + identifier) )))) )) (compound_statement "{\n        rc = defragmentPage(in_stack_ffffffb4,in_stack_ffffffb8);\n        iVar7 = rc;\n        if (rc != 0) goto LAB_00080b90;\n        uVar9 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n      }" { (expression_statement "rc = defragmentPage(in_stack_ffffffb4,in_stack_ffffffb8);" (assignment_expression "rc = defragmentPage(in_stack_ffffffb4,in_stack_ffffffb8)" identifier = (call_expression "defragmentPage(in_stack_ffffffb4,in_stack_ffffffb8)" identifier (argument_list "(in_stack_ffffffb4,in_stack_ffffffb8)" ( identifier , identifier )))) ;) (expression_statement "iVar7 = rc;" (assignment_expression "iVar7 = rc" identifier = identifier) ;) (if_statement "if (rc != 0) goto LAB_00080b90;" if (parenthesized_expression "(rc != 0)" ( (binary_expression "rc != 0" identifier != number_literal) )) (goto_statement "goto LAB_00080b90;" goto statement_identifier ;)) (expression_statement "uVar9 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;" (assignment_expression "uVar9 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1" identifier = (binary_expression "(CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1" (parenthesized_expression "(CONCAT11(*puVar2,*puVar3) - 1 & 0xffff)" ( (binary_expression "CONCAT11(*puVar2,*puVar3) - 1 & 0xffff" (binary_expression "CONCAT11(*puVar2,*puVar3) - 1" (call_expression "CONCAT11(*puVar2,*puVar3)" identifier (argument_list "(*puVar2,*puVar3)" ( (pointer_expression "*puVar2" * identifier) , (pointer_expression "*puVar3" * identifier) ))) - number_literal) & number_literal) )) + number_literal)) ;) })) (expression_statement "iVar7 = uVar9 - sz;" (assignment_expression "iVar7 = uVar9 - sz" identifier = (binary_expression "uVar9 - sz" identifier - identifier)) ;) (expression_statement "local_38 = (u8)iVar7;" (assignment_expression "local_38 = (u8)iVar7" identifier = (cast_expression "(u8)iVar7" ( (type_descriptor "u8" type_identifier) ) identifier)) ;) (expression_statement "uVar6 = (u8)((uint)iVar7 >> 8);" (assignment_expression "uVar6 = (u8)((uint)iVar7 >> 8)" identifier = (call_expression "(u8)((uint)iVar7 >> 8)" (parenthesized_expression "(u8)" ( identifier )) (argument_list "((uint)iVar7 >> 8)" ( (binary_expression "(uint)iVar7 >> 8" (cast_expression "(uint)iVar7" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*puVar2 = uVar6;" (assignment_expression "*puVar2 = uVar6" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "*puVar3 = local_38;" (assignment_expression "*puVar3 = local_38" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "__dest = (uint *)((int)puVar5 + iVar7);" (assignment_expression "__dest = (uint *)((int)puVar5 + iVar7)" identifier = (cast_expression "(uint *)((int)puVar5 + iVar7)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + iVar7)" ( (binary_expression "(int)puVar5 + iVar7" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) }))) (labeled_statement "LAB_00080a99:\n    pPage->nFree = (pPage->nFree - (short)sz) - 2;" statement_identifier : (expression_statement "pPage->nFree = (pPage->nFree - (short)sz) - 2;" (assignment_expression "pPage->nFree = (pPage->nFree - (short)sz) - 2" (field_expression "pPage->nFree" identifier -> field_identifier) = (binary_expression "(pPage->nFree - (short)sz) - 2" (parenthesized_expression "(pPage->nFree - (short)sz)" ( (binary_expression "pPage->nFree - (short)sz" (field_expression "pPage->nFree" identifier -> field_identifier) - (cast_expression "(short)sz" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) )) - number_literal)) ;)) (if_statement "if (iChild == 0) {\n      memcpy(__dest,pCell,sz);\n    }\n    else {\n      memcpy((u8 *)((int)puVar5 + iVar7 + 4),pCell + 4,sz - 4);\n      *__dest = iChild >> 0x18 | (iChild & 0xff0000) >> 8 | (iChild & 0xff00) << 8 | iChild << 0x18;\n    }" if (parenthesized_expression "(iChild == 0)" ( (binary_expression "iChild == 0" identifier == number_literal) )) (compound_statement "{\n      memcpy(__dest,pCell,sz);\n    }" { (expression_statement "memcpy(__dest,pCell,sz);" (call_expression "memcpy(__dest,pCell,sz)" identifier (argument_list "(__dest,pCell,sz)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n      memcpy((u8 *)((int)puVar5 + iVar7 + 4),pCell + 4,sz - 4);\n      *__dest = iChild >> 0x18 | (iChild & 0xff0000) >> 8 | (iChild & 0xff00) << 8 | iChild << 0x18;\n    }" else (compound_statement "{\n      memcpy((u8 *)((int)puVar5 + iVar7 + 4),pCell + 4,sz - 4);\n      *__dest = iChild >> 0x18 | (iChild & 0xff0000) >> 8 | (iChild & 0xff00) << 8 | iChild << 0x18;\n    }" { (expression_statement "memcpy((u8 *)((int)puVar5 + iVar7 + 4),pCell + 4,sz - 4);" (call_expression "memcpy((u8 *)((int)puVar5 + iVar7 + 4),pCell + 4,sz - 4)" identifier (argument_list "((u8 *)((int)puVar5 + iVar7 + 4),pCell + 4,sz - 4)" ( (cast_expression "(u8 *)((int)puVar5 + iVar7 + 4)" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + iVar7 + 4)" ( (binary_expression "(int)puVar5 + iVar7 + 4" (binary_expression "(int)puVar5 + iVar7" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) ))) , (binary_expression "pCell + 4" identifier + number_literal) , (binary_expression "sz - 4" identifier - number_literal) ))) ;) (expression_statement "*__dest = iChild >> 0x18 | (iChild & 0xff0000) >> 8 | (iChild & 0xff00) << 8 | iChild << 0x18;" (assignment_expression "*__dest = iChild >> 0x18 | (iChild & 0xff0000) >> 8 | (iChild & 0xff00) << 8 | iChild << 0x18" (pointer_expression "*__dest" * identifier) = (binary_expression "iChild >> 0x18 | (iChild & 0xff0000) >> 8 | (iChild & 0xff00) << 8 | iChild << 0x18" (binary_expression "iChild >> 0x18 | (iChild & 0xff0000) >> 8 | (iChild & 0xff00) << 8" (binary_expression "iChild >> 0x18 | (iChild & 0xff0000) >> 8" (binary_expression "iChild >> 0x18" identifier >> number_literal) | (binary_expression "(iChild & 0xff0000) >> 8" (parenthesized_expression "(iChild & 0xff0000)" ( (binary_expression "iChild & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(iChild & 0xff00) << 8" (parenthesized_expression "(iChild & 0xff00)" ( (binary_expression "iChild & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "iChild << 0x18" identifier << number_literal))) ;) }))) (expression_statement "puVar2 = pPage->aCellIdx + i * 2;" (assignment_expression "puVar2 = pPage->aCellIdx + i * 2" identifier = (binary_expression "pPage->aCellIdx + i * 2" (field_expression "pPage->aCellIdx" identifier -> field_identifier) + (binary_expression "i * 2" identifier * number_literal))) ;) (expression_statement "memmove(puVar2 + 2,puVar2,((uint)pPage->nCell - i) * 2);" (call_expression "memmove(puVar2 + 2,puVar2,((uint)pPage->nCell - i) * 2)" identifier (argument_list "(puVar2 + 2,puVar2,((uint)pPage->nCell - i) * 2)" ( (binary_expression "puVar2 + 2" identifier + number_literal) , identifier , (binary_expression "((uint)pPage->nCell - i) * 2" (parenthesized_expression "((uint)pPage->nCell - i)" ( (binary_expression "(uint)pPage->nCell - i" (cast_expression "(uint)pPage->nCell" ( (type_descriptor "uint" type_identifier) ) (field_expression "pPage->nCell" identifier -> field_identifier)) - identifier) )) * number_literal) ))) ;) (expression_statement "*puVar2 = uVar6;" (assignment_expression "*puVar2 = uVar6" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "puVar2[1] = local_38;" (assignment_expression "puVar2[1] = local_38" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "pPage->nCell = pPage->nCell + 1;" (assignment_expression "pPage->nCell = pPage->nCell + 1" (field_expression "pPage->nCell" identifier -> field_identifier) = (binary_expression "pPage->nCell + 1" (field_expression "pPage->nCell" identifier -> field_identifier) + number_literal)) ;) (expression_statement "puVar2 = (u8 *)((int)puVar5 + pPage->hdrOffset + 4);" (assignment_expression "puVar2 = (u8 *)((int)puVar5 + pPage->hdrOffset + 4)" identifier = (cast_expression "(u8 *)((int)puVar5 + pPage->hdrOffset + 4)" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + pPage->hdrOffset + 4)" ( (binary_expression "(int)puVar5 + pPage->hdrOffset + 4" (binary_expression "(int)puVar5 + pPage->hdrOffset" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + (field_expression "pPage->hdrOffset" identifier -> field_identifier)) + number_literal) )))) ;) (expression_statement "uVar6 = *puVar2 + '\x01';" (assignment_expression "uVar6 = *puVar2 + '\x01'" identifier = (binary_expression "*puVar2 + '\x01'" (pointer_expression "*puVar2" * identifier) + (char_literal "'\x01'" ' escape_sequence '))) ;) (expression_statement "*puVar2 = uVar6;" (assignment_expression "*puVar2 = uVar6" (pointer_expression "*puVar2" * identifier) = identifier) ;) (if_statement "if (uVar6 == '\0') {\n      puVar2 = (u8 *)((int)puVar5 + pPage->hdrOffset + 3);\n      *puVar2 = *puVar2 + '\x01';\n    }" if (parenthesized_expression "(uVar6 == '\0')" ( (binary_expression "uVar6 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      puVar2 = (u8 *)((int)puVar5 + pPage->hdrOffset + 3);\n      *puVar2 = *puVar2 + '\x01';\n    }" { (expression_statement "puVar2 = (u8 *)((int)puVar5 + pPage->hdrOffset + 3);" (assignment_expression "puVar2 = (u8 *)((int)puVar5 + pPage->hdrOffset + 3)" identifier = (cast_expression "(u8 *)((int)puVar5 + pPage->hdrOffset + 3)" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar5 + pPage->hdrOffset + 3)" ( (binary_expression "(int)puVar5 + pPage->hdrOffset + 3" (binary_expression "(int)puVar5 + pPage->hdrOffset" (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier) + (field_expression "pPage->hdrOffset" identifier -> field_identifier)) + number_literal) )))) ;) (expression_statement "*puVar2 = *puVar2 + '\x01';" (assignment_expression "*puVar2 = *puVar2 + '\x01'" (pointer_expression "*puVar2" * identifier) = (binary_expression "*puVar2 + '\x01'" (pointer_expression "*puVar2" * identifier) + (char_literal "'\x01'" ' escape_sequence '))) ;) })) (if_statement "if (pPage->pBt->autoVacuum != '\0') {\n      ptrmapPutOvflPtr(pPage,(MemPage *)&pPage->aDataEnd,pCell,pRC);\n    }" if (parenthesized_expression "(pPage->pBt->autoVacuum != '\0')" ( (binary_expression "pPage->pBt->autoVacuum != '\0'" (field_expression "pPage->pBt->autoVacuum" (field_expression "pPage->pBt" identifier -> field_identifier) -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      ptrmapPutOvflPtr(pPage,(MemPage *)&pPage->aDataEnd,pCell,pRC);\n    }" { (expression_statement "ptrmapPutOvflPtr(pPage,(MemPage *)&pPage->aDataEnd,pCell,pRC);" (call_expression "ptrmapPutOvflPtr(pPage,(MemPage *)&pPage->aDataEnd,pCell,pRC)" identifier (argument_list "(pPage,(MemPage *)&pPage->aDataEnd,pCell,pRC)" ( identifier , (cast_expression "(MemPage *)&pPage->aDataEnd" ( (type_descriptor "MemPage *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pPage->aDataEnd" & (field_expression "pPage->aDataEnd" identifier -> field_identifier))) , identifier , identifier ))) ;) })) }) (else_clause "else {\nLAB_00080b90:\n    *pRC = iVar7;\n  }" else (compound_statement "{\nLAB_00080b90:\n    *pRC = iVar7;\n  }" { (labeled_statement "LAB_00080b90:\n    *pRC = iVar7;" statement_identifier : (expression_statement "*pRC = iVar7;" (assignment_expression "*pRC = iVar7" (pointer_expression "*pRC" * identifier) = identifier) ;)) }))) (labeled_statement "LAB_0008099c:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\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;\n  }" { (return_statement "return;" return ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void __regparm3\nFUN_00080910(int param_1,int param_2,uint *param_3,size_t param_4,uint *param_5,uint param_6,\n            int *param_7)\n\n{\n  uint uVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  char *pcVar4;\n  int iVar5;\n  uint *puVar6;\n  undefined1 uVar7;\n  char cVar8;\n  int iVar9;\n  uint uVar10;\n  uint *__dest;\n  uint uVar11;\n  int in_GS_OFFSET;\n  undefined1 local_38;\n  \n  iVar5 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*(char *)(param_1 + 0xc) != '\0') ||\n     ((int)(uint)*(ushort *)(param_1 + 0x14) <= (int)(param_4 + 1))) {\n    if (param_5 != (uint *)0x0) {\n      memcpy(param_5,param_3,param_4);\n      param_3 = param_5;\n    }\n    if (param_6 != 0) {\n      *param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18;\n    }\n    iVar9 = *(byte *)(param_1 + 0xc) + 8;\n    *(byte *)(param_1 + 0xc) = *(byte *)(param_1 + 0xc) + 1;\n    *(uint **)(param_1 + 4 + iVar9 * 4) = param_3;\n    *(short *)(param_1 + 10 + iVar9 * 2) = (short)param_2;\n    goto LAB_0008099c;\n  }\n  iVar9 = FUN_0007af80();\n  if (iVar9 == 0) {\n    puVar6 = *(uint **)(param_1 + 0x38);\n    uVar1 = (uint)*(ushort *)(param_1 + 0x12) + (uint)*(ushort *)(param_1 + 0x16) * 2;\n    uVar10 = (uint)*(byte *)(param_1 + 9);\n    puVar2 = (undefined1 *)((int)puVar6 + uVar10 + 5);\n    puVar3 = (undefined1 *)((int)puVar6 + uVar10 + 6);\n    uVar11 = (uint)CONCAT11(*puVar2,*puVar3);\n    if (uVar11 < uVar1) {\n      if ((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)) {\n        uVar11 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar9 = FUN_00052b70();\n      if (iVar9 != 0) goto LAB_00080b90;\n      local_38 = 0;\n      iVar9 = 0;\n      uVar7 = 0;\n      __dest = puVar6;\n    }\n    else {\nLAB_00080a45:\n      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }\n    }\n    *(short *)(param_1 + 0x14) = (*(short *)(param_1 + 0x14) - (short)param_4) + -2;\n    if (param_6 == 0) {\n      memcpy(__dest,param_3,param_4);\n    }\n    else {\n      memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);\n      *__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18;\n    }\n    puVar2 = (undefined1 *)(*(int *)(param_1 + 0x40) + param_2 * 2);\n    memmove(puVar2 + 2,puVar2,((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2);\n    *puVar2 = uVar7;\n    puVar2[1] = local_38;\n    *(short *)(param_1 + 0x16) = *(short *)(param_1 + 0x16) + 1;\n    pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 4);\n    cVar8 = *pcVar4 + '\x01';\n    *pcVar4 = cVar8;\n    if (cVar8 == '\0') {\n      pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3);\n      *pcVar4 = *pcVar4 + '\x01';\n    }\n    if (*(char *)(*(int *)(param_1 + 0x34) + 0x11) != '\0') {\n      FUN_0007f730(param_7);\n    }\n  }\n  else {\nLAB_00080b90:\n    *param_7 = iVar9;\n  }\nLAB_0008099c:\n  if (iVar5 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }\n  return;\n}\n\n" (function_definition "void __regparm3\nFUN_00080910(int param_1,int param_2,uint *param_3,size_t param_4,uint *param_5,uint param_6,\n            int *param_7)\n\n{\n  uint uVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  char *pcVar4;\n  int iVar5;\n  uint *puVar6;\n  undefined1 uVar7;\n  char cVar8;\n  int iVar9;\n  uint uVar10;\n  uint *__dest;\n  uint uVar11;\n  int in_GS_OFFSET;\n  undefined1 local_38;\n  \n  iVar5 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*(char *)(param_1 + 0xc) != '\0') ||\n     ((int)(uint)*(ushort *)(param_1 + 0x14) <= (int)(param_4 + 1))) {\n    if (param_5 != (uint *)0x0) {\n      memcpy(param_5,param_3,param_4);\n      param_3 = param_5;\n    }\n    if (param_6 != 0) {\n      *param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18;\n    }\n    iVar9 = *(byte *)(param_1 + 0xc) + 8;\n    *(byte *)(param_1 + 0xc) = *(byte *)(param_1 + 0xc) + 1;\n    *(uint **)(param_1 + 4 + iVar9 * 4) = param_3;\n    *(short *)(param_1 + 10 + iVar9 * 2) = (short)param_2;\n    goto LAB_0008099c;\n  }\n  iVar9 = FUN_0007af80();\n  if (iVar9 == 0) {\n    puVar6 = *(uint **)(param_1 + 0x38);\n    uVar1 = (uint)*(ushort *)(param_1 + 0x12) + (uint)*(ushort *)(param_1 + 0x16) * 2;\n    uVar10 = (uint)*(byte *)(param_1 + 9);\n    puVar2 = (undefined1 *)((int)puVar6 + uVar10 + 5);\n    puVar3 = (undefined1 *)((int)puVar6 + uVar10 + 6);\n    uVar11 = (uint)CONCAT11(*puVar2,*puVar3);\n    if (uVar11 < uVar1) {\n      if ((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)) {\n        uVar11 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar9 = FUN_00052b70();\n      if (iVar9 != 0) goto LAB_00080b90;\n      local_38 = 0;\n      iVar9 = 0;\n      uVar7 = 0;\n      __dest = puVar6;\n    }\n    else {\nLAB_00080a45:\n      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }\n    }\n    *(short *)(param_1 + 0x14) = (*(short *)(param_1 + 0x14) - (short)param_4) + -2;\n    if (param_6 == 0) {\n      memcpy(__dest,param_3,param_4);\n    }\n    else {\n      memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);\n      *__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18;\n    }\n    puVar2 = (undefined1 *)(*(int *)(param_1 + 0x40) + param_2 * 2);\n    memmove(puVar2 + 2,puVar2,((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2);\n    *puVar2 = uVar7;\n    puVar2[1] = local_38;\n    *(short *)(param_1 + 0x16) = *(short *)(param_1 + 0x16) + 1;\n    pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 4);\n    cVar8 = *pcVar4 + '\x01';\n    *pcVar4 = cVar8;\n    if (cVar8 == '\0') {\n      pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3);\n      *pcVar4 = *pcVar4 + '\x01';\n    }\n    if (*(char *)(*(int *)(param_1 + 0x34) + 0x11) != '\0') {\n      FUN_0007f730(param_7);\n    }\n  }\n  else {\nLAB_00080b90:\n    *param_7 = iVar9;\n  }\nLAB_0008099c:\n  if (iVar5 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00080910(int param_1,int param_2,uint *param_3,size_t param_4,uint *param_5,uint param_6,\n            int *param_7)" identifier (parameter_list "(int param_1,int param_2,uint *param_3,size_t param_4,uint *param_5,uint param_6,\n            int *param_7)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "size_t param_4" primitive_type identifier) , (parameter_declaration "uint *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "uint param_6" type_identifier identifier) , (parameter_declaration "int *param_7" primitive_type (pointer_declarator "*param_7" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  char *pcVar4;\n  int iVar5;\n  uint *puVar6;\n  undefined1 uVar7;\n  char cVar8;\n  int iVar9;\n  uint uVar10;\n  uint *__dest;\n  uint uVar11;\n  int in_GS_OFFSET;\n  undefined1 local_38;\n  \n  iVar5 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*(char *)(param_1 + 0xc) != '\0') ||\n     ((int)(uint)*(ushort *)(param_1 + 0x14) <= (int)(param_4 + 1))) {\n    if (param_5 != (uint *)0x0) {\n      memcpy(param_5,param_3,param_4);\n      param_3 = param_5;\n    }\n    if (param_6 != 0) {\n      *param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18;\n    }\n    iVar9 = *(byte *)(param_1 + 0xc) + 8;\n    *(byte *)(param_1 + 0xc) = *(byte *)(param_1 + 0xc) + 1;\n    *(uint **)(param_1 + 4 + iVar9 * 4) = param_3;\n    *(short *)(param_1 + 10 + iVar9 * 2) = (short)param_2;\n    goto LAB_0008099c;\n  }\n  iVar9 = FUN_0007af80();\n  if (iVar9 == 0) {\n    puVar6 = *(uint **)(param_1 + 0x38);\n    uVar1 = (uint)*(ushort *)(param_1 + 0x12) + (uint)*(ushort *)(param_1 + 0x16) * 2;\n    uVar10 = (uint)*(byte *)(param_1 + 9);\n    puVar2 = (undefined1 *)((int)puVar6 + uVar10 + 5);\n    puVar3 = (undefined1 *)((int)puVar6 + uVar10 + 6);\n    uVar11 = (uint)CONCAT11(*puVar2,*puVar3);\n    if (uVar11 < uVar1) {\n      if ((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)) {\n        uVar11 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar9 = FUN_00052b70();\n      if (iVar9 != 0) goto LAB_00080b90;\n      local_38 = 0;\n      iVar9 = 0;\n      uVar7 = 0;\n      __dest = puVar6;\n    }\n    else {\nLAB_00080a45:\n      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }\n    }\n    *(short *)(param_1 + 0x14) = (*(short *)(param_1 + 0x14) - (short)param_4) + -2;\n    if (param_6 == 0) {\n      memcpy(__dest,param_3,param_4);\n    }\n    else {\n      memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);\n      *__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18;\n    }\n    puVar2 = (undefined1 *)(*(int *)(param_1 + 0x40) + param_2 * 2);\n    memmove(puVar2 + 2,puVar2,((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2);\n    *puVar2 = uVar7;\n    puVar2[1] = local_38;\n    *(short *)(param_1 + 0x16) = *(short *)(param_1 + 0x16) + 1;\n    pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 4);\n    cVar8 = *pcVar4 + '\x01';\n    *pcVar4 = cVar8;\n    if (cVar8 == '\0') {\n      pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3);\n      *pcVar4 = *pcVar4 + '\x01';\n    }\n    if (*(char *)(*(int *)(param_1 + 0x34) + 0x11) != '\0') {\n      FUN_0007f730(param_7);\n    }\n  }\n  else {\nLAB_00080b90:\n    *param_7 = iVar9;\n  }\nLAB_0008099c:\n  if (iVar5 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined1 uVar7;" type_identifier identifier ;) (declaration "char cVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "uint *__dest;" type_identifier (pointer_declarator "*__dest" * identifier) ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_38;" type_identifier identifier ;) (expression_statement "iVar5 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar5 = *(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) ))))) ;) (if_statement "if ((*(char *)(param_1 + 0xc) != '\0') ||\n     ((int)(uint)*(ushort *)(param_1 + 0x14) <= (int)(param_4 + 1))) {\n    if (param_5 != (uint *)0x0) {\n      memcpy(param_5,param_3,param_4);\n      param_3 = param_5;\n    }\n    if (param_6 != 0) {\n      *param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18;\n    }\n    iVar9 = *(byte *)(param_1 + 0xc) + 8;\n    *(byte *)(param_1 + 0xc) = *(byte *)(param_1 + 0xc) + 1;\n    *(uint **)(param_1 + 4 + iVar9 * 4) = param_3;\n    *(short *)(param_1 + 10 + iVar9 * 2) = (short)param_2;\n    goto LAB_0008099c;\n  }" if (parenthesized_expression "((*(char *)(param_1 + 0xc) != '\0') ||\n     ((int)(uint)*(ushort *)(param_1 + 0x14) <= (int)(param_4 + 1)))" ( (binary_expression "(*(char *)(param_1 + 0xc) != '\0') ||\n     ((int)(uint)*(ushort *)(param_1 + 0x14) <= (int)(param_4 + 1))" (parenthesized_expression "(*(char *)(param_1 + 0xc) != '\0')" ( (binary_expression "*(char *)(param_1 + 0xc) != '\0'" (pointer_expression "*(char *)(param_1 + 0xc)" * (cast_expression "(char *)(param_1 + 0xc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "((int)(uint)*(ushort *)(param_1 + 0x14) <= (int)(param_4 + 1))" ( (binary_expression "(int)(uint)*(ushort *)(param_1 + 0x14) <= (int)(param_4 + 1)" (binary_expression "(int)(uint)*(ushort *)(param_1 + 0x14)" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * (cast_expression "(ushort *)(param_1 + 0x14)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) <= (cast_expression "(int)(param_4 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_4 + 1)" ( (binary_expression "param_4 + 1" identifier + number_literal) )))) ))) )) (compound_statement "{\n    if (param_5 != (uint *)0x0) {\n      memcpy(param_5,param_3,param_4);\n      param_3 = param_5;\n    }\n    if (param_6 != 0) {\n      *param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18;\n    }\n    iVar9 = *(byte *)(param_1 + 0xc) + 8;\n    *(byte *)(param_1 + 0xc) = *(byte *)(param_1 + 0xc) + 1;\n    *(uint **)(param_1 + 4 + iVar9 * 4) = param_3;\n    *(short *)(param_1 + 10 + iVar9 * 2) = (short)param_2;\n    goto LAB_0008099c;\n  }" { (if_statement "if (param_5 != (uint *)0x0) {\n      memcpy(param_5,param_3,param_4);\n      param_3 = param_5;\n    }" if (parenthesized_expression "(param_5 != (uint *)0x0)" ( (binary_expression "param_5 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      memcpy(param_5,param_3,param_4);\n      param_3 = param_5;\n    }" { (expression_statement "memcpy(param_5,param_3,param_4);" (call_expression "memcpy(param_5,param_3,param_4)" identifier (argument_list "(param_5,param_3,param_4)" ( identifier , identifier , identifier ))) ;) (expression_statement "param_3 = param_5;" (assignment_expression "param_3 = param_5" identifier = identifier) ;) })) (if_statement "if (param_6 != 0) {\n      *param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18;\n    }" if (parenthesized_expression "(param_6 != 0)" ( (binary_expression "param_6 != 0" identifier != number_literal) )) (compound_statement "{\n      *param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18;\n    }" { (expression_statement "*param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18;" (assignment_expression "*param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18" (pointer_expression "*param_3" * identifier) = (binary_expression "param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18" (binary_expression "param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8" (binary_expression "param_6 >> 0x18 | (param_6 & 0xff0000) >> 8" (binary_expression "param_6 >> 0x18" identifier >> number_literal) | (binary_expression "(param_6 & 0xff0000) >> 8" (parenthesized_expression "(param_6 & 0xff0000)" ( (binary_expression "param_6 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(param_6 & 0xff00) << 8" (parenthesized_expression "(param_6 & 0xff00)" ( (binary_expression "param_6 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "param_6 << 0x18" identifier << number_literal))) ;) })) (expression_statement "iVar9 = *(byte *)(param_1 + 0xc) + 8;" (assignment_expression "iVar9 = *(byte *)(param_1 + 0xc) + 8" identifier = (binary_expression "*(byte *)(param_1 + 0xc) + 8" (pointer_expression "*(byte *)(param_1 + 0xc)" * (cast_expression "(byte *)(param_1 + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(byte *)(param_1 + 0xc) = *(byte *)(param_1 + 0xc) + 1;" (assignment_expression "*(byte *)(param_1 + 0xc) = *(byte *)(param_1 + 0xc) + 1" (pointer_expression "*(byte *)(param_1 + 0xc)" * (cast_expression "(byte *)(param_1 + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_1 + 0xc) + 1" (pointer_expression "*(byte *)(param_1 + 0xc)" * (cast_expression "(byte *)(param_1 + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(uint **)(param_1 + 4 + iVar9 * 4) = param_3;" (assignment_expression "*(uint **)(param_1 + 4 + iVar9 * 4) = param_3" (pointer_expression "*(uint **)(param_1 + 4 + iVar9 * 4)" * (cast_expression "(uint **)(param_1 + 4 + iVar9 * 4)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4 + iVar9 * 4)" ( (binary_expression "param_1 + 4 + iVar9 * 4" (binary_expression "param_1 + 4" identifier + number_literal) + (binary_expression "iVar9 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "*(short *)(param_1 + 10 + iVar9 * 2) = (short)param_2;" (assignment_expression "*(short *)(param_1 + 10 + iVar9 * 2) = (short)param_2" (pointer_expression "*(short *)(param_1 + 10 + iVar9 * 2)" * (cast_expression "(short *)(param_1 + 10 + iVar9 * 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10 + iVar9 * 2)" ( (binary_expression "param_1 + 10 + iVar9 * 2" (binary_expression "param_1 + 10" identifier + number_literal) + (binary_expression "iVar9 * 2" identifier * number_literal)) )))) = (cast_expression "(short)param_2" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (goto_statement "goto LAB_0008099c;" goto statement_identifier ;) })) (expression_statement "iVar9 = FUN_0007af80();" (assignment_expression "iVar9 = FUN_0007af80()" identifier = (call_expression "FUN_0007af80()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar9 == 0) {\n    puVar6 = *(uint **)(param_1 + 0x38);\n    uVar1 = (uint)*(ushort *)(param_1 + 0x12) + (uint)*(ushort *)(param_1 + 0x16) * 2;\n    uVar10 = (uint)*(byte *)(param_1 + 9);\n    puVar2 = (undefined1 *)((int)puVar6 + uVar10 + 5);\n    puVar3 = (undefined1 *)((int)puVar6 + uVar10 + 6);\n    uVar11 = (uint)CONCAT11(*puVar2,*puVar3);\n    if (uVar11 < uVar1) {\n      if ((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)) {\n        uVar11 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar9 = FUN_00052b70();\n      if (iVar9 != 0) goto LAB_00080b90;\n      local_38 = 0;\n      iVar9 = 0;\n      uVar7 = 0;\n      __dest = puVar6;\n    }\n    else {\nLAB_00080a45:\n      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }\n    }\n    *(short *)(param_1 + 0x14) = (*(short *)(param_1 + 0x14) - (short)param_4) + -2;\n    if (param_6 == 0) {\n      memcpy(__dest,param_3,param_4);\n    }\n    else {\n      memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);\n      *__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18;\n    }\n    puVar2 = (undefined1 *)(*(int *)(param_1 + 0x40) + param_2 * 2);\n    memmove(puVar2 + 2,puVar2,((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2);\n    *puVar2 = uVar7;\n    puVar2[1] = local_38;\n    *(short *)(param_1 + 0x16) = *(short *)(param_1 + 0x16) + 1;\n    pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 4);\n    cVar8 = *pcVar4 + '\x01';\n    *pcVar4 = cVar8;\n    if (cVar8 == '\0') {\n      pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3);\n      *pcVar4 = *pcVar4 + '\x01';\n    }\n    if (*(char *)(*(int *)(param_1 + 0x34) + 0x11) != '\0') {\n      FUN_0007f730(param_7);\n    }\n  }\n  else {\nLAB_00080b90:\n    *param_7 = iVar9;\n  }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar6 = *(uint **)(param_1 + 0x38);\n    uVar1 = (uint)*(ushort *)(param_1 + 0x12) + (uint)*(ushort *)(param_1 + 0x16) * 2;\n    uVar10 = (uint)*(byte *)(param_1 + 9);\n    puVar2 = (undefined1 *)((int)puVar6 + uVar10 + 5);\n    puVar3 = (undefined1 *)((int)puVar6 + uVar10 + 6);\n    uVar11 = (uint)CONCAT11(*puVar2,*puVar3);\n    if (uVar11 < uVar1) {\n      if ((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)) {\n        uVar11 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar9 = FUN_00052b70();\n      if (iVar9 != 0) goto LAB_00080b90;\n      local_38 = 0;\n      iVar9 = 0;\n      uVar7 = 0;\n      __dest = puVar6;\n    }\n    else {\nLAB_00080a45:\n      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }\n    }\n    *(short *)(param_1 + 0x14) = (*(short *)(param_1 + 0x14) - (short)param_4) + -2;\n    if (param_6 == 0) {\n      memcpy(__dest,param_3,param_4);\n    }\n    else {\n      memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);\n      *__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18;\n    }\n    puVar2 = (undefined1 *)(*(int *)(param_1 + 0x40) + param_2 * 2);\n    memmove(puVar2 + 2,puVar2,((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2);\n    *puVar2 = uVar7;\n    puVar2[1] = local_38;\n    *(short *)(param_1 + 0x16) = *(short *)(param_1 + 0x16) + 1;\n    pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 4);\n    cVar8 = *pcVar4 + '\x01';\n    *pcVar4 = cVar8;\n    if (cVar8 == '\0') {\n      pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3);\n      *pcVar4 = *pcVar4 + '\x01';\n    }\n    if (*(char *)(*(int *)(param_1 + 0x34) + 0x11) != '\0') {\n      FUN_0007f730(param_7);\n    }\n  }" { (expression_statement "puVar6 = *(uint **)(param_1 + 0x38);" (assignment_expression "puVar6 = *(uint **)(param_1 + 0x38)" identifier = (pointer_expression "*(uint **)(param_1 + 0x38)" * (cast_expression "(uint **)(param_1 + 0x38)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = (uint)*(ushort *)(param_1 + 0x12) + (uint)*(ushort *)(param_1 + 0x16) * 2;" (assignment_expression "uVar1 = (uint)*(ushort *)(param_1 + 0x12) + (uint)*(ushort *)(param_1 + 0x16) * 2" identifier = (binary_expression "(uint)*(ushort *)(param_1 + 0x12) + (uint)*(ushort *)(param_1 + 0x16) * 2" (binary_expression "(uint)*(ushort *)(param_1 + 0x12)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_1 + 0x12)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x12)" ( (binary_expression "param_1 + 0x12" identifier + number_literal) )))) + (binary_expression "(uint)*(ushort *)(param_1 + 0x16) * 2" (binary_expression "(uint)*(ushort *)(param_1 + 0x16)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_1 + 0x16)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x16)" ( (binary_expression "param_1 + 0x16" identifier + number_literal) )))) * number_literal))) ;) (expression_statement "uVar10 = (uint)*(byte *)(param_1 + 9);" (assignment_expression "uVar10 = (uint)*(byte *)(param_1 + 9)" identifier = (binary_expression "(uint)*(byte *)(param_1 + 9)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(param_1 + 9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 9)" ( (binary_expression "param_1 + 9" identifier + number_literal) ))))) ;) (expression_statement "puVar2 = (undefined1 *)((int)puVar6 + uVar10 + 5);" (assignment_expression "puVar2 = (undefined1 *)((int)puVar6 + uVar10 + 5)" identifier = (cast_expression "(undefined1 *)((int)puVar6 + uVar10 + 5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar6 + uVar10 + 5)" ( (binary_expression "(int)puVar6 + uVar10 + 5" (binary_expression "(int)puVar6 + uVar10" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "puVar3 = (undefined1 *)((int)puVar6 + uVar10 + 6);" (assignment_expression "puVar3 = (undefined1 *)((int)puVar6 + uVar10 + 6)" identifier = (cast_expression "(undefined1 *)((int)puVar6 + uVar10 + 6)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar6 + uVar10 + 6)" ( (binary_expression "(int)puVar6 + uVar10 + 6" (binary_expression "(int)puVar6 + uVar10" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "uVar11 = (uint)CONCAT11(*puVar2,*puVar3);" (assignment_expression "uVar11 = (uint)CONCAT11(*puVar2,*puVar3)" identifier = (cast_expression "(uint)CONCAT11(*puVar2,*puVar3)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CONCAT11(*puVar2,*puVar3)" identifier (argument_list "(*puVar2,*puVar3)" ( (pointer_expression "*puVar2" * identifier) , (pointer_expression "*puVar3" * identifier) ))))) ;) (if_statement "if (uVar11 < uVar1) {\n      if ((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)) {\n        uVar11 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar9 = FUN_00052b70();\n      if (iVar9 != 0) goto LAB_00080b90;\n      local_38 = 0;\n      iVar9 = 0;\n      uVar7 = 0;\n      __dest = puVar6;\n    }\n    else {\nLAB_00080a45:\n      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }\n    }" if (parenthesized_expression "(uVar11 < uVar1)" ( (binary_expression "uVar11 < uVar1" identifier < identifier) )) (compound_statement "{\n      if ((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)) {\n        uVar11 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar9 = FUN_00052b70();\n      if (iVar9 != 0) goto LAB_00080b90;\n      local_38 = 0;\n      iVar9 = 0;\n      uVar7 = 0;\n      __dest = puVar6;\n    }" { (if_statement "if ((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)) {\n        uVar11 = 0x10000;\n        goto LAB_00080a45;\n      }" if (parenthesized_expression "((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000))" ( (binary_expression "(uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)" (parenthesized_expression "(uVar11 == 0)" ( (binary_expression "uVar11 == 0" identifier == number_literal) )) && (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)" ( (binary_expression "*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000" (pointer_expression "*(int *)(*(int *)(param_1 + 0x34) + 0x24)" * (cast_expression "(int *)(*(int *)(param_1 + 0x34) + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x34) + 0x24)" ( (binary_expression "*(int *)(param_1 + 0x34) + 0x24" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n        uVar11 = 0x10000;\n        goto LAB_00080a45;\n      }" { (expression_statement "uVar11 = 0x10000;" (assignment_expression "uVar11 = 0x10000" identifier = number_literal) ;) (goto_statement "goto LAB_00080a45;" goto statement_identifier ;) })) (expression_statement "iVar9 = FUN_00052b70();" (assignment_expression "iVar9 = FUN_00052b70()" identifier = (call_expression "FUN_00052b70()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar9 != 0) goto LAB_00080b90;" if (parenthesized_expression "(iVar9 != 0)" ( (binary_expression "iVar9 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00080b90;" goto statement_identifier ;)) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "__dest = puVar6;" (assignment_expression "__dest = puVar6" identifier = identifier) ;) }) (else_clause "else {\nLAB_00080a45:\n      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }\n    }" else (compound_statement "{\nLAB_00080a45:\n      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }\n    }" { (labeled_statement "LAB_00080a45:\n      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }" statement_identifier : (if_statement "if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }" if (parenthesized_expression "((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0))" ( (binary_expression "(((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)" (parenthesized_expression "(((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1))" ( (binary_expression "((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)" (parenthesized_expression "((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0'))" ( (binary_expression "(*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')" (parenthesized_expression "(*(char *)((int)puVar6 + uVar10 + 2) == '\0')" ( (binary_expression "*(char *)((int)puVar6 + uVar10 + 2) == '\0'" (pointer_expression "*(char *)((int)puVar6 + uVar10 + 2)" * (cast_expression "(char *)((int)puVar6 + uVar10 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar6 + uVar10 + 2)" ( (binary_expression "(int)puVar6 + uVar10 + 2" (binary_expression "(int)puVar6 + uVar10" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(*(char *)((int)puVar6 + uVar10 + 1) == '\0')" ( (binary_expression "*(char *)((int)puVar6 + uVar10 + 1) == '\0'" (pointer_expression "*(char *)((int)puVar6 + uVar10 + 1)" * (cast_expression "(char *)((int)puVar6 + uVar10 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar6 + uVar10 + 1)" ( (binary_expression "(int)puVar6 + uVar10 + 1" (binary_expression "(int)puVar6 + uVar10" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) || (parenthesized_expression "(uVar11 <= uVar1 + 1)" ( (binary_expression "uVar11 <= uVar1 + 1" identifier <= (binary_expression "uVar1 + 1" identifier + number_literal)) ))) )) || (parenthesized_expression "(__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)" ( (comma_expression "__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0" (assignment_expression "__dest = (uint *)FUN_00053f70()" identifier = (cast_expression "(uint *)FUN_00053f70()" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00053f70()" identifier (argument_list "()" ( ))))) , (binary_expression "__dest == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }" { (if_statement "if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }" if (parenthesized_expression "((int)uVar11 < (int)(uVar1 + 2 + param_4))" ( (binary_expression "(int)uVar11 < (int)(uVar1 + 2 + param_4)" (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)(uVar1 + 2 + param_4)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar1 + 2 + param_4)" ( (binary_expression "uVar1 + 2 + param_4" (binary_expression "uVar1 + 2" identifier + number_literal) + identifier) )))) )) (compound_statement "{\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }" { (expression_statement "iVar9 = FUN_00054080();" (assignment_expression "iVar9 = FUN_00054080()" identifier = (call_expression "FUN_00054080()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar9 != 0) goto LAB_00080b90;" if (parenthesized_expression "(iVar9 != 0)" ( (binary_expression "iVar9 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00080b90;" goto statement_identifier ;)) (expression_statement "uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;" (assignment_expression "uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1" identifier = (binary_expression "(CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1" (parenthesized_expression "(CONCAT11(*puVar2,*puVar3) - 1 & 0xffff)" ( (binary_expression "CONCAT11(*puVar2,*puVar3) - 1 & 0xffff" (binary_expression "CONCAT11(*puVar2,*puVar3) - 1" (call_expression "CONCAT11(*puVar2,*puVar3)" identifier (argument_list "(*puVar2,*puVar3)" ( (pointer_expression "*puVar2" * identifier) , (pointer_expression "*puVar3" * identifier) ))) - number_literal) & number_literal) )) + number_literal)) ;) })) (expression_statement "iVar9 = uVar11 - param_4;" (assignment_expression "iVar9 = uVar11 - param_4" identifier = (binary_expression "uVar11 - param_4" identifier - identifier)) ;) (expression_statement "local_38 = (undefined1)iVar9;" (assignment_expression "local_38 = (undefined1)iVar9" identifier = (cast_expression "(undefined1)iVar9" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "uVar7 = (undefined1)((uint)iVar9 >> 8);" (assignment_expression "uVar7 = (undefined1)((uint)iVar9 >> 8)" identifier = (call_expression "(undefined1)((uint)iVar9 >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)iVar9 >> 8)" ( (binary_expression "(uint)iVar9 >> 8" (cast_expression "(uint)iVar9" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*puVar2 = uVar7;" (assignment_expression "*puVar2 = uVar7" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "*puVar3 = local_38;" (assignment_expression "*puVar3 = local_38" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "__dest = (uint *)((int)puVar6 + iVar9);" (assignment_expression "__dest = (uint *)((int)puVar6 + iVar9)" identifier = (cast_expression "(uint *)((int)puVar6 + iVar9)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar6 + iVar9)" ( (binary_expression "(int)puVar6 + iVar9" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) }) (else_clause "else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }" else (compound_statement "{\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }" { (expression_statement "iVar9 = (int)__dest - (int)puVar6;" (assignment_expression "iVar9 = (int)__dest - (int)puVar6" identifier = (binary_expression "(int)__dest - (int)puVar6" (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "uVar7 = (undefined1)((uint)iVar9 >> 8);" (assignment_expression "uVar7 = (undefined1)((uint)iVar9 >> 8)" identifier = (call_expression "(undefined1)((uint)iVar9 >> 8)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "((uint)iVar9 >> 8)" ( (binary_expression "(uint)iVar9 >> 8" (cast_expression "(uint)iVar9" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "local_38 = (undefined1)iVar9;" (assignment_expression "local_38 = (undefined1)iVar9" identifier = (cast_expression "(undefined1)iVar9" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) })))) }))) (expression_statement "*(short *)(param_1 + 0x14) = (*(short *)(param_1 + 0x14) - (short)param_4) + -2;" (assignment_expression "*(short *)(param_1 + 0x14) = (*(short *)(param_1 + 0x14) - (short)param_4) + -2" (pointer_expression "*(short *)(param_1 + 0x14)" * (cast_expression "(short *)(param_1 + 0x14)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = (binary_expression "(*(short *)(param_1 + 0x14) - (short)param_4) + -2" (parenthesized_expression "(*(short *)(param_1 + 0x14) - (short)param_4)" ( (binary_expression "*(short *)(param_1 + 0x14) - (short)param_4" (pointer_expression "*(short *)(param_1 + 0x14)" * (cast_expression "(short *)(param_1 + 0x14)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) - (cast_expression "(short)param_4" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) )) + number_literal)) ;) (if_statement "if (param_6 == 0) {\n      memcpy(__dest,param_3,param_4);\n    }\n    else {\n      memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);\n      *__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18;\n    }" if (parenthesized_expression "(param_6 == 0)" ( (binary_expression "param_6 == 0" identifier == number_literal) )) (compound_statement "{\n      memcpy(__dest,param_3,param_4);\n    }" { (expression_statement "memcpy(__dest,param_3,param_4);" (call_expression "memcpy(__dest,param_3,param_4)" identifier (argument_list "(__dest,param_3,param_4)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n      memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);\n      *__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18;\n    }" else (compound_statement "{\n      memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);\n      *__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18;\n    }" { (expression_statement "memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);" (call_expression "memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4)" identifier (argument_list "((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4)" ( (cast_expression "(void *)((int)puVar6 + iVar9 + 4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar6 + iVar9 + 4)" ( (binary_expression "(int)puVar6 + iVar9 + 4" (binary_expression "(int)puVar6 + iVar9" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) ))) , (binary_expression "param_3 + 1" identifier + number_literal) , (binary_expression "param_4 - 4" identifier - number_literal) ))) ;) (expression_statement "*__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18;" (assignment_expression "*__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18" (pointer_expression "*__dest" * identifier) = (binary_expression "param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18" (binary_expression "param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8" (binary_expression "param_6 >> 0x18 | (param_6 & 0xff0000) >> 8" (binary_expression "param_6 >> 0x18" identifier >> number_literal) | (binary_expression "(param_6 & 0xff0000) >> 8" (parenthesized_expression "(param_6 & 0xff0000)" ( (binary_expression "param_6 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(param_6 & 0xff00) << 8" (parenthesized_expression "(param_6 & 0xff00)" ( (binary_expression "param_6 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "param_6 << 0x18" identifier << number_literal))) ;) }))) (expression_statement "puVar2 = (undefined1 *)(*(int *)(param_1 + 0x40) + param_2 * 2);" (assignment_expression "puVar2 = (undefined1 *)(*(int *)(param_1 + 0x40) + param_2 * 2)" identifier = (cast_expression "(undefined1 *)(*(int *)(param_1 + 0x40) + param_2 * 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x40) + param_2 * 2)" ( (binary_expression "*(int *)(param_1 + 0x40) + param_2 * 2" (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) + (binary_expression "param_2 * 2" identifier * number_literal)) )))) ;) (expression_statement "memmove(puVar2 + 2,puVar2,((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2);" (call_expression "memmove(puVar2 + 2,puVar2,((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2)" identifier (argument_list "(puVar2 + 2,puVar2,((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2)" ( (binary_expression "puVar2 + 2" identifier + number_literal) , identifier , (binary_expression "((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2" (parenthesized_expression "((uint)*(ushort *)(param_1 + 0x16) - param_2)" ( (binary_expression "(uint)*(ushort *)(param_1 + 0x16) - param_2" (binary_expression "(uint)*(ushort *)(param_1 + 0x16)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_1 + 0x16)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x16)" ( (binary_expression "param_1 + 0x16" identifier + number_literal) )))) - identifier) )) * number_literal) ))) ;) (expression_statement "*puVar2 = uVar7;" (assignment_expression "*puVar2 = uVar7" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "puVar2[1] = local_38;" (assignment_expression "puVar2[1] = local_38" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(short *)(param_1 + 0x16) = *(short *)(param_1 + 0x16) + 1;" (assignment_expression "*(short *)(param_1 + 0x16) = *(short *)(param_1 + 0x16) + 1" (pointer_expression "*(short *)(param_1 + 0x16)" * (cast_expression "(short *)(param_1 + 0x16)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x16)" ( (binary_expression "param_1 + 0x16" identifier + number_literal) )))) = (binary_expression "*(short *)(param_1 + 0x16) + 1" (pointer_expression "*(short *)(param_1 + 0x16)" * (cast_expression "(short *)(param_1 + 0x16)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x16)" ( (binary_expression "param_1 + 0x16" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 4);" (assignment_expression "pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 4)" identifier = (cast_expression "(char *)((int)puVar6 + *(byte *)(param_1 + 9) + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar6 + *(byte *)(param_1 + 9) + 4)" ( (binary_expression "(int)puVar6 + *(byte *)(param_1 + 9) + 4" (binary_expression "(int)puVar6 + *(byte *)(param_1 + 9)" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(byte *)(param_1 + 9)" * (cast_expression "(byte *)(param_1 + 9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 9)" ( (binary_expression "param_1 + 9" identifier + number_literal) ))))) + number_literal) )))) ;) (expression_statement "cVar8 = *pcVar4 + '\x01';" (assignment_expression "cVar8 = *pcVar4 + '\x01'" identifier = (binary_expression "*pcVar4 + '\x01'" (pointer_expression "*pcVar4" * identifier) + (char_literal "'\x01'" ' escape_sequence '))) ;) (expression_statement "*pcVar4 = cVar8;" (assignment_expression "*pcVar4 = cVar8" (pointer_expression "*pcVar4" * identifier) = identifier) ;) (if_statement "if (cVar8 == '\0') {\n      pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3);\n      *pcVar4 = *pcVar4 + '\x01';\n    }" if (parenthesized_expression "(cVar8 == '\0')" ( (binary_expression "cVar8 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3);\n      *pcVar4 = *pcVar4 + '\x01';\n    }" { (expression_statement "pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3);" (assignment_expression "pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3)" identifier = (cast_expression "(char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar6 + *(byte *)(param_1 + 9) + 3)" ( (binary_expression "(int)puVar6 + *(byte *)(param_1 + 9) + 3" (binary_expression "(int)puVar6 + *(byte *)(param_1 + 9)" (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(byte *)(param_1 + 9)" * (cast_expression "(byte *)(param_1 + 9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 9)" ( (binary_expression "param_1 + 9" identifier + number_literal) ))))) + number_literal) )))) ;) (expression_statement "*pcVar4 = *pcVar4 + '\x01';" (assignment_expression "*pcVar4 = *pcVar4 + '\x01'" (pointer_expression "*pcVar4" * identifier) = (binary_expression "*pcVar4 + '\x01'" (pointer_expression "*pcVar4" * identifier) + (char_literal "'\x01'" ' escape_sequence '))) ;) })) (if_statement "if (*(char *)(*(int *)(param_1 + 0x34) + 0x11) != '\0') {\n      FUN_0007f730(param_7);\n    }" if (parenthesized_expression "(*(char *)(*(int *)(param_1 + 0x34) + 0x11) != '\0')" ( (binary_expression "*(char *)(*(int *)(param_1 + 0x34) + 0x11) != '\0'" (pointer_expression "*(char *)(*(int *)(param_1 + 0x34) + 0x11)" * (cast_expression "(char *)(*(int *)(param_1 + 0x34) + 0x11)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x34) + 0x11)" ( (binary_expression "*(int *)(param_1 + 0x34) + 0x11" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      FUN_0007f730(param_7);\n    }" { (expression_statement "FUN_0007f730(param_7);" (call_expression "FUN_0007f730(param_7)" identifier (argument_list "(param_7)" ( identifier ))) ;) })) }) (else_clause "else {\nLAB_00080b90:\n    *param_7 = iVar9;\n  }" else (compound_statement "{\nLAB_00080b90:\n    *param_7 = iVar9;\n  }" { (labeled_statement "LAB_00080b90:\n    *param_7 = iVar9;" statement_identifier : (expression_statement "*param_7 = iVar9;" (assignment_expression "*param_7 = iVar9" (pointer_expression "*param_7" * identifier) = identifier) ;)) }))) (labeled_statement "LAB_0008099c:\n  if (iVar5 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }" statement_identifier : (if_statement "if (iVar5 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }" if (parenthesized_expression "(iVar5 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar5 != *(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                    \n    FUN_000f6410();\n  }" { (expression_statement "FUN_000f6410();" (call_expression "FUN_000f6410()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE 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) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( IDENT ))) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) )) (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 IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) = (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (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 *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (pointer_expression * IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) ))) )) || (parenthesized_expression ( (binary_expression IDENT <= (binary_expression IDENT + LIT)) ))) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (pointer_expression * IDENT) ))) - LIT) & LIT) )) + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })))) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT)) )) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) ))) , (binary_expression IDENT + LIT) , (binary_expression IDENT - LIT) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT) )) * LIT) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) + (char_literal ' escape_sequence '))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + (char_literal ' escape_sequence '))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) }))) (labeled_statement statement_identifier : (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 { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return ;) })))
(function_definition "void __regparm3\nFUN_00080910(int param_1,int param_2,uint *param_3,size_t param_4,uint *param_5,uint param_6,\n            int *param_7)\n\n{\n  uint uVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  char *pcVar4;\n  int iVar5;\n  uint *puVar6;\n  undefined1 uVar7;\n  char cVar8;\n  int iVar9;\n  uint uVar10;\n  uint *__dest;\n  uint uVar11;\n  int in_GS_OFFSET;\n  undefined1 local_38;\n  \n  iVar5 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*(char *)(param_1 + 0xc) != '\0') ||\n     ((int)(uint)*(ushort *)(param_1 + 0x14) <= (int)(param_4 + 1))) {\n    if (param_5 != (uint *)0x0) {\n      memcpy(param_5,param_3,param_4);\n      param_3 = param_5;\n    }\n    if (param_6 != 0) {\n      *param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18;\n    }\n    iVar9 = *(byte *)(param_1 + 0xc) + 8;\n    *(byte *)(param_1 + 0xc) = *(byte *)(param_1 + 0xc) + 1;\n    *(uint **)(param_1 + 4 + iVar9 * 4) = param_3;\n    *(short *)(param_1 + 10 + iVar9 * 2) = (short)param_2;\n    goto LAB_0008099c;\n  }\n  iVar9 = FUN_0007af80();\n  if (iVar9 == 0) {\n    puVar6 = *(uint **)(param_1 + 0x38);\n    uVar1 = (uint)*(ushort *)(param_1 + 0x12) + (uint)*(ushort *)(param_1 + 0x16) * 2;\n    uVar10 = (uint)*(byte *)(param_1 + 9);\n    puVar2 = (undefined1 *)((int)puVar6 + uVar10 + 5);\n    puVar3 = (undefined1 *)((int)puVar6 + uVar10 + 6);\n    uVar11 = (uint)CONCAT11(*puVar2,*puVar3);\n    if (uVar11 < uVar1) {\n      if ((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)) {\n        uVar11 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar9 = FUN_00052b70();\n      if (iVar9 != 0) goto LAB_00080b90;\n      local_38 = 0;\n      iVar9 = 0;\n      uVar7 = 0;\n      __dest = puVar6;\n    }\n    else {\nLAB_00080a45:\n      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }\n    }\n    *(short *)(param_1 + 0x14) = (*(short *)(param_1 + 0x14) - (short)param_4) + -2;\n    if (param_6 == 0) {\n      memcpy(__dest,param_3,param_4);\n    }\n    else {\n      memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);\n      *__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18;\n    }\n    puVar2 = (undefined1 *)(*(int *)(param_1 + 0x40) + param_2 * 2);\n    memmove(puVar2 + 2,puVar2,((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2);\n    *puVar2 = uVar7;\n    puVar2[1] = local_38;\n    *(short *)(param_1 + 0x16) = *(short *)(param_1 + 0x16) + 1;\n    pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 4);\n    cVar8 = *pcVar4 + '\x01';\n    *pcVar4 = cVar8;\n    if (cVar8 == '\0') {\n      pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3);\n      *pcVar4 = *pcVar4 + '\x01';\n    }\n    if (*(char *)(*(int *)(param_1 + 0x34) + 0x11) != '\0') {\n      FUN_0007f730(param_7);\n    }\n  }\n  else {\nLAB_00080b90:\n    *param_7 = iVar9;\n  }\nLAB_0008099c:\n  if (iVar5 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00080910(int param_1,int param_2,uint *param_3,size_t param_4,uint *param_5,uint param_6,\n            int *param_7)" (identifier "FUN_00080910") (parameter_list "(int param_1,int param_2,uint *param_3,size_t param_4,uint *param_5,uint param_6,\n            int *param_7)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint *param_3" (type_identifier "uint") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "size_t param_4" (primitive_type "size_t") (identifier "param_4")) (, ",") (parameter_declaration "uint *param_5" (type_identifier "uint") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) (, ",") (parameter_declaration "uint param_6" (type_identifier "uint") (identifier "param_6")) (, ",") (parameter_declaration "int *param_7" (primitive_type "int") (pointer_declarator "*param_7" (* "*") (identifier "param_7"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  char *pcVar4;\n  int iVar5;\n  uint *puVar6;\n  undefined1 uVar7;\n  char cVar8;\n  int iVar9;\n  uint uVar10;\n  uint *__dest;\n  uint uVar11;\n  int in_GS_OFFSET;\n  undefined1 local_38;\n  \n  iVar5 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*(char *)(param_1 + 0xc) != '\0') ||\n     ((int)(uint)*(ushort *)(param_1 + 0x14) <= (int)(param_4 + 1))) {\n    if (param_5 != (uint *)0x0) {\n      memcpy(param_5,param_3,param_4);\n      param_3 = param_5;\n    }\n    if (param_6 != 0) {\n      *param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18;\n    }\n    iVar9 = *(byte *)(param_1 + 0xc) + 8;\n    *(byte *)(param_1 + 0xc) = *(byte *)(param_1 + 0xc) + 1;\n    *(uint **)(param_1 + 4 + iVar9 * 4) = param_3;\n    *(short *)(param_1 + 10 + iVar9 * 2) = (short)param_2;\n    goto LAB_0008099c;\n  }\n  iVar9 = FUN_0007af80();\n  if (iVar9 == 0) {\n    puVar6 = *(uint **)(param_1 + 0x38);\n    uVar1 = (uint)*(ushort *)(param_1 + 0x12) + (uint)*(ushort *)(param_1 + 0x16) * 2;\n    uVar10 = (uint)*(byte *)(param_1 + 9);\n    puVar2 = (undefined1 *)((int)puVar6 + uVar10 + 5);\n    puVar3 = (undefined1 *)((int)puVar6 + uVar10 + 6);\n    uVar11 = (uint)CONCAT11(*puVar2,*puVar3);\n    if (uVar11 < uVar1) {\n      if ((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)) {\n        uVar11 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar9 = FUN_00052b70();\n      if (iVar9 != 0) goto LAB_00080b90;\n      local_38 = 0;\n      iVar9 = 0;\n      uVar7 = 0;\n      __dest = puVar6;\n    }\n    else {\nLAB_00080a45:\n      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }\n    }\n    *(short *)(param_1 + 0x14) = (*(short *)(param_1 + 0x14) - (short)param_4) + -2;\n    if (param_6 == 0) {\n      memcpy(__dest,param_3,param_4);\n    }\n    else {\n      memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);\n      *__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18;\n    }\n    puVar2 = (undefined1 *)(*(int *)(param_1 + 0x40) + param_2 * 2);\n    memmove(puVar2 + 2,puVar2,((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2);\n    *puVar2 = uVar7;\n    puVar2[1] = local_38;\n    *(short *)(param_1 + 0x16) = *(short *)(param_1 + 0x16) + 1;\n    pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 4);\n    cVar8 = *pcVar4 + '\x01';\n    *pcVar4 = cVar8;\n    if (cVar8 == '\0') {\n      pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3);\n      *pcVar4 = *pcVar4 + '\x01';\n    }\n    if (*(char *)(*(int *)(param_1 + 0x34) + 0x11) != '\0') {\n      FUN_0007f730(param_7);\n    }\n  }\n  else {\nLAB_00080b90:\n    *param_7 = iVar9;\n  }\nLAB_0008099c:\n  if (iVar5 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined1 *puVar2;" (type_identifier "undefined1") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined1 *puVar3;" (type_identifier "undefined1") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint *puVar6;" (type_identifier "uint") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined1 uVar7;" (type_identifier "undefined1") (identifier "uVar7") (; ";")) (declaration "char cVar8;" (primitive_type "char") (identifier "cVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "uint uVar10;" (type_identifier "uint") (identifier "uVar10") (; ";")) (declaration "uint *__dest;" (type_identifier "uint") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "uint uVar11;" (type_identifier "uint") (identifier "uVar11") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined1 local_38;" (type_identifier "undefined1") (identifier "local_38") (; ";")) (expression_statement "iVar5 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar5 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar5") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if ((*(char *)(param_1 + 0xc) != '\0') ||\n     ((int)(uint)*(ushort *)(param_1 + 0x14) <= (int)(param_4 + 1))) {\n    if (param_5 != (uint *)0x0) {\n      memcpy(param_5,param_3,param_4);\n      param_3 = param_5;\n    }\n    if (param_6 != 0) {\n      *param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18;\n    }\n    iVar9 = *(byte *)(param_1 + 0xc) + 8;\n    *(byte *)(param_1 + 0xc) = *(byte *)(param_1 + 0xc) + 1;\n    *(uint **)(param_1 + 4 + iVar9 * 4) = param_3;\n    *(short *)(param_1 + 10 + iVar9 * 2) = (short)param_2;\n    goto LAB_0008099c;\n  }" (if "if") (parenthesized_expression "((*(char *)(param_1 + 0xc) != '\0') ||\n     ((int)(uint)*(ushort *)(param_1 + 0x14) <= (int)(param_4 + 1)))" (( "(") (binary_expression "(*(char *)(param_1 + 0xc) != '\0') ||\n     ((int)(uint)*(ushort *)(param_1 + 0x14) <= (int)(param_4 + 1))" (parenthesized_expression "(*(char *)(param_1 + 0xc) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0xc) != '\0'" (pointer_expression "*(char *)(param_1 + 0xc)" (* "*") (cast_expression "(char *)(param_1 + 0xc)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "((int)(uint)*(ushort *)(param_1 + 0x14) <= (int)(param_4 + 1))" (( "(") (binary_expression "(int)(uint)*(ushort *)(param_1 + 0x14) <= (int)(param_4 + 1)" (binary_expression "(int)(uint)*(ushort *)(param_1 + 0x14)" (cast_expression "(int)(uint)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")"))) (* "*") (cast_expression "(ushort *)(param_1 + 0x14)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (<= "<=") (cast_expression "(int)(param_4 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(param_4 + 1)" (( "(") (binary_expression "param_4 + 1" (identifier "param_4") (+ "+") (number_literal "1")) () ")")))) () ")"))) () ")")) (compound_statement "{\n    if (param_5 != (uint *)0x0) {\n      memcpy(param_5,param_3,param_4);\n      param_3 = param_5;\n    }\n    if (param_6 != 0) {\n      *param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18;\n    }\n    iVar9 = *(byte *)(param_1 + 0xc) + 8;\n    *(byte *)(param_1 + 0xc) = *(byte *)(param_1 + 0xc) + 1;\n    *(uint **)(param_1 + 4 + iVar9 * 4) = param_3;\n    *(short *)(param_1 + 10 + iVar9 * 2) = (short)param_2;\n    goto LAB_0008099c;\n  }" ({ "{") (if_statement "if (param_5 != (uint *)0x0) {\n      memcpy(param_5,param_3,param_4);\n      param_3 = param_5;\n    }" (if "if") (parenthesized_expression "(param_5 != (uint *)0x0)" (( "(") (binary_expression "param_5 != (uint *)0x0" (identifier "param_5") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      memcpy(param_5,param_3,param_4);\n      param_3 = param_5;\n    }" ({ "{") (expression_statement "memcpy(param_5,param_3,param_4);" (call_expression "memcpy(param_5,param_3,param_4)" (identifier "memcpy") (argument_list "(param_5,param_3,param_4)" (( "(") (identifier "param_5") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (expression_statement "param_3 = param_5;" (assignment_expression "param_3 = param_5" (identifier "param_3") (= "=") (identifier "param_5")) (; ";")) (} "}"))) (if_statement "if (param_6 != 0) {\n      *param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18;\n    }" (if "if") (parenthesized_expression "(param_6 != 0)" (( "(") (binary_expression "param_6 != 0" (identifier "param_6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18;\n    }" ({ "{") (expression_statement "*param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18;" (assignment_expression "*param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (binary_expression "param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                 param_6 << 0x18" (binary_expression "param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8" (binary_expression "param_6 >> 0x18 | (param_6 & 0xff0000) >> 8" (binary_expression "param_6 >> 0x18" (identifier "param_6") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(param_6 & 0xff0000) >> 8" (parenthesized_expression "(param_6 & 0xff0000)" (( "(") (binary_expression "param_6 & 0xff0000" (identifier "param_6") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(param_6 & 0xff00) << 8" (parenthesized_expression "(param_6 & 0xff00)" (( "(") (binary_expression "param_6 & 0xff00" (identifier "param_6") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "param_6 << 0x18" (identifier "param_6") (<< "<<") (number_literal "0x18")))) (; ";")) (} "}"))) (expression_statement "iVar9 = *(byte *)(param_1 + 0xc) + 8;" (assignment_expression "iVar9 = *(byte *)(param_1 + 0xc) + 8" (identifier "iVar9") (= "=") (binary_expression "*(byte *)(param_1 + 0xc) + 8" (pointer_expression "*(byte *)(param_1 + 0xc)" (* "*") (cast_expression "(byte *)(param_1 + 0xc)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "8"))) (; ";")) (expression_statement "*(byte *)(param_1 + 0xc) = *(byte *)(param_1 + 0xc) + 1;" (assignment_expression "*(byte *)(param_1 + 0xc) = *(byte *)(param_1 + 0xc) + 1" (pointer_expression "*(byte *)(param_1 + 0xc)" (* "*") (cast_expression "(byte *)(param_1 + 0xc)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "*(byte *)(param_1 + 0xc) + 1" (pointer_expression "*(byte *)(param_1 + 0xc)" (* "*") (cast_expression "(byte *)(param_1 + 0xc)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(uint **)(param_1 + 4 + iVar9 * 4) = param_3;" (assignment_expression "*(uint **)(param_1 + 4 + iVar9 * 4) = param_3" (pointer_expression "*(uint **)(param_1 + 4 + iVar9 * 4)" (* "*") (cast_expression "(uint **)(param_1 + 4 + iVar9 * 4)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4 + iVar9 * 4)" (( "(") (binary_expression "param_1 + 4 + iVar9 * 4" (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) (+ "+") (binary_expression "iVar9 * 4" (identifier "iVar9") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(short *)(param_1 + 10 + iVar9 * 2) = (short)param_2;" (assignment_expression "*(short *)(param_1 + 10 + iVar9 * 2) = (short)param_2" (pointer_expression "*(short *)(param_1 + 10 + iVar9 * 2)" (* "*") (cast_expression "(short *)(param_1 + 10 + iVar9 * 2)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 10 + iVar9 * 2)" (( "(") (binary_expression "param_1 + 10 + iVar9 * 2" (binary_expression "param_1 + 10" (identifier "param_1") (+ "+") (number_literal "10")) (+ "+") (binary_expression "iVar9 * 2" (identifier "iVar9") (* "*") (number_literal "2"))) () ")")))) (= "=") (cast_expression "(short)param_2" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "param_2"))) (; ";")) (goto_statement "goto LAB_0008099c;" (goto "goto") (statement_identifier "LAB_0008099c") (; ";")) (} "}"))) (expression_statement "iVar9 = FUN_0007af80();" (assignment_expression "iVar9 = FUN_0007af80()" (identifier "iVar9") (= "=") (call_expression "FUN_0007af80()" (identifier "FUN_0007af80") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar9 == 0) {\n    puVar6 = *(uint **)(param_1 + 0x38);\n    uVar1 = (uint)*(ushort *)(param_1 + 0x12) + (uint)*(ushort *)(param_1 + 0x16) * 2;\n    uVar10 = (uint)*(byte *)(param_1 + 9);\n    puVar2 = (undefined1 *)((int)puVar6 + uVar10 + 5);\n    puVar3 = (undefined1 *)((int)puVar6 + uVar10 + 6);\n    uVar11 = (uint)CONCAT11(*puVar2,*puVar3);\n    if (uVar11 < uVar1) {\n      if ((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)) {\n        uVar11 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar9 = FUN_00052b70();\n      if (iVar9 != 0) goto LAB_00080b90;\n      local_38 = 0;\n      iVar9 = 0;\n      uVar7 = 0;\n      __dest = puVar6;\n    }\n    else {\nLAB_00080a45:\n      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }\n    }\n    *(short *)(param_1 + 0x14) = (*(short *)(param_1 + 0x14) - (short)param_4) + -2;\n    if (param_6 == 0) {\n      memcpy(__dest,param_3,param_4);\n    }\n    else {\n      memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);\n      *__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18;\n    }\n    puVar2 = (undefined1 *)(*(int *)(param_1 + 0x40) + param_2 * 2);\n    memmove(puVar2 + 2,puVar2,((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2);\n    *puVar2 = uVar7;\n    puVar2[1] = local_38;\n    *(short *)(param_1 + 0x16) = *(short *)(param_1 + 0x16) + 1;\n    pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 4);\n    cVar8 = *pcVar4 + '\x01';\n    *pcVar4 = cVar8;\n    if (cVar8 == '\0') {\n      pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3);\n      *pcVar4 = *pcVar4 + '\x01';\n    }\n    if (*(char *)(*(int *)(param_1 + 0x34) + 0x11) != '\0') {\n      FUN_0007f730(param_7);\n    }\n  }\n  else {\nLAB_00080b90:\n    *param_7 = iVar9;\n  }" (if "if") (parenthesized_expression "(iVar9 == 0)" (( "(") (binary_expression "iVar9 == 0" (identifier "iVar9") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar6 = *(uint **)(param_1 + 0x38);\n    uVar1 = (uint)*(ushort *)(param_1 + 0x12) + (uint)*(ushort *)(param_1 + 0x16) * 2;\n    uVar10 = (uint)*(byte *)(param_1 + 9);\n    puVar2 = (undefined1 *)((int)puVar6 + uVar10 + 5);\n    puVar3 = (undefined1 *)((int)puVar6 + uVar10 + 6);\n    uVar11 = (uint)CONCAT11(*puVar2,*puVar3);\n    if (uVar11 < uVar1) {\n      if ((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)) {\n        uVar11 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar9 = FUN_00052b70();\n      if (iVar9 != 0) goto LAB_00080b90;\n      local_38 = 0;\n      iVar9 = 0;\n      uVar7 = 0;\n      __dest = puVar6;\n    }\n    else {\nLAB_00080a45:\n      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }\n    }\n    *(short *)(param_1 + 0x14) = (*(short *)(param_1 + 0x14) - (short)param_4) + -2;\n    if (param_6 == 0) {\n      memcpy(__dest,param_3,param_4);\n    }\n    else {\n      memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);\n      *__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18;\n    }\n    puVar2 = (undefined1 *)(*(int *)(param_1 + 0x40) + param_2 * 2);\n    memmove(puVar2 + 2,puVar2,((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2);\n    *puVar2 = uVar7;\n    puVar2[1] = local_38;\n    *(short *)(param_1 + 0x16) = *(short *)(param_1 + 0x16) + 1;\n    pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 4);\n    cVar8 = *pcVar4 + '\x01';\n    *pcVar4 = cVar8;\n    if (cVar8 == '\0') {\n      pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3);\n      *pcVar4 = *pcVar4 + '\x01';\n    }\n    if (*(char *)(*(int *)(param_1 + 0x34) + 0x11) != '\0') {\n      FUN_0007f730(param_7);\n    }\n  }" ({ "{") (expression_statement "puVar6 = *(uint **)(param_1 + 0x38);" (assignment_expression "puVar6 = *(uint **)(param_1 + 0x38)" (identifier "puVar6") (= "=") (pointer_expression "*(uint **)(param_1 + 0x38)" (* "*") (cast_expression "(uint **)(param_1 + 0x38)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (expression_statement "uVar1 = (uint)*(ushort *)(param_1 + 0x12) + (uint)*(ushort *)(param_1 + 0x16) * 2;" (assignment_expression "uVar1 = (uint)*(ushort *)(param_1 + 0x12) + (uint)*(ushort *)(param_1 + 0x16) * 2" (identifier "uVar1") (= "=") (binary_expression "(uint)*(ushort *)(param_1 + 0x12) + (uint)*(ushort *)(param_1 + 0x16) * 2" (binary_expression "(uint)*(ushort *)(param_1 + 0x12)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(ushort *)(param_1 + 0x12)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x12)" (( "(") (binary_expression "param_1 + 0x12" (identifier "param_1") (+ "+") (number_literal "0x12")) () ")")))) (+ "+") (binary_expression "(uint)*(ushort *)(param_1 + 0x16) * 2" (binary_expression "(uint)*(ushort *)(param_1 + 0x16)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(ushort *)(param_1 + 0x16)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x16)" (( "(") (binary_expression "param_1 + 0x16" (identifier "param_1") (+ "+") (number_literal "0x16")) () ")")))) (* "*") (number_literal "2")))) (; ";")) (expression_statement "uVar10 = (uint)*(byte *)(param_1 + 9);" (assignment_expression "uVar10 = (uint)*(byte *)(param_1 + 9)" (identifier "uVar10") (= "=") (binary_expression "(uint)*(byte *)(param_1 + 9)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(param_1 + 9)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 9)" (( "(") (binary_expression "param_1 + 9" (identifier "param_1") (+ "+") (number_literal "9")) () ")"))))) (; ";")) (expression_statement "puVar2 = (undefined1 *)((int)puVar6 + uVar10 + 5);" (assignment_expression "puVar2 = (undefined1 *)((int)puVar6 + uVar10 + 5)" (identifier "puVar2") (= "=") (cast_expression "(undefined1 *)((int)puVar6 + uVar10 + 5)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar6 + uVar10 + 5)" (( "(") (binary_expression "(int)puVar6 + uVar10 + 5" (binary_expression "(int)puVar6 + uVar10" (cast_expression "(int)puVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar6")) (+ "+") (identifier "uVar10")) (+ "+") (number_literal "5")) () ")")))) (; ";")) (expression_statement "puVar3 = (undefined1 *)((int)puVar6 + uVar10 + 6);" (assignment_expression "puVar3 = (undefined1 *)((int)puVar6 + uVar10 + 6)" (identifier "puVar3") (= "=") (cast_expression "(undefined1 *)((int)puVar6 + uVar10 + 6)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar6 + uVar10 + 6)" (( "(") (binary_expression "(int)puVar6 + uVar10 + 6" (binary_expression "(int)puVar6 + uVar10" (cast_expression "(int)puVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar6")) (+ "+") (identifier "uVar10")) (+ "+") (number_literal "6")) () ")")))) (; ";")) (expression_statement "uVar11 = (uint)CONCAT11(*puVar2,*puVar3);" (assignment_expression "uVar11 = (uint)CONCAT11(*puVar2,*puVar3)" (identifier "uVar11") (= "=") (cast_expression "(uint)CONCAT11(*puVar2,*puVar3)" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (call_expression "CONCAT11(*puVar2,*puVar3)" (identifier "CONCAT11") (argument_list "(*puVar2,*puVar3)" (( "(") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (, ",") (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) () ")"))))) (; ";")) (if_statement "if (uVar11 < uVar1) {\n      if ((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)) {\n        uVar11 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar9 = FUN_00052b70();\n      if (iVar9 != 0) goto LAB_00080b90;\n      local_38 = 0;\n      iVar9 = 0;\n      uVar7 = 0;\n      __dest = puVar6;\n    }\n    else {\nLAB_00080a45:\n      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }\n    }" (if "if") (parenthesized_expression "(uVar11 < uVar1)" (( "(") (binary_expression "uVar11 < uVar1" (identifier "uVar11") (< "<") (identifier "uVar1")) () ")")) (compound_statement "{\n      if ((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)) {\n        uVar11 = 0x10000;\n        goto LAB_00080a45;\n      }\n      iVar9 = FUN_00052b70();\n      if (iVar9 != 0) goto LAB_00080b90;\n      local_38 = 0;\n      iVar9 = 0;\n      uVar7 = 0;\n      __dest = puVar6;\n    }" ({ "{") (if_statement "if ((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)) {\n        uVar11 = 0x10000;\n        goto LAB_00080a45;\n      }" (if "if") (parenthesized_expression "((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000))" (( "(") (binary_expression "(uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)" (parenthesized_expression "(uVar11 == 0)" (( "(") (binary_expression "uVar11 == 0" (identifier "uVar11") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)" (( "(") (binary_expression "*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000" (pointer_expression "*(int *)(*(int *)(param_1 + 0x34) + 0x24)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x34) + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x34) + 0x24)" (( "(") (binary_expression "*(int *)(param_1 + 0x34) + 0x24" (pointer_expression "*(int *)(param_1 + 0x34)" (* "*") (cast_expression "(int *)(param_1 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (+ "+") (number_literal "0x24")) () ")")))) (== "==") (number_literal "0x10000")) () ")"))) () ")")) (compound_statement "{\n        uVar11 = 0x10000;\n        goto LAB_00080a45;\n      }" ({ "{") (expression_statement "uVar11 = 0x10000;" (assignment_expression "uVar11 = 0x10000" (identifier "uVar11") (= "=") (number_literal "0x10000")) (; ";")) (goto_statement "goto LAB_00080a45;" (goto "goto") (statement_identifier "LAB_00080a45") (; ";")) (} "}"))) (expression_statement "iVar9 = FUN_00052b70();" (assignment_expression "iVar9 = FUN_00052b70()" (identifier "iVar9") (= "=") (call_expression "FUN_00052b70()" (identifier "FUN_00052b70") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar9 != 0) goto LAB_00080b90;" (if "if") (parenthesized_expression "(iVar9 != 0)" (( "(") (binary_expression "iVar9 != 0" (identifier "iVar9") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00080b90;" (goto "goto") (statement_identifier "LAB_00080b90") (; ";"))) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" (identifier "local_38") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" (identifier "iVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "__dest = puVar6;" (assignment_expression "__dest = puVar6" (identifier "__dest") (= "=") (identifier "puVar6")) (; ";")) (} "}")) (else_clause "else {\nLAB_00080a45:\n      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }\n    }" (else "else") (compound_statement "{\nLAB_00080a45:\n      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }\n    }" ({ "{") (labeled_statement "LAB_00080a45:\n      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }" (statement_identifier "LAB_00080a45") (: ":") (if_statement "if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }\n      else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }" (if "if") (parenthesized_expression "((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0))" (( "(") (binary_expression "(((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||\n         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)" (parenthesized_expression "(((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1))" (( "(") (binary_expression "((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)" (parenthesized_expression "((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0'))" (( "(") (binary_expression "(*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&\n           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')" (parenthesized_expression "(*(char *)((int)puVar6 + uVar10 + 2) == '\0')" (( "(") (binary_expression "*(char *)((int)puVar6 + uVar10 + 2) == '\0'" (pointer_expression "*(char *)((int)puVar6 + uVar10 + 2)" (* "*") (cast_expression "(char *)((int)puVar6 + uVar10 + 2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar6 + uVar10 + 2)" (( "(") (binary_expression "(int)puVar6 + uVar10 + 2" (binary_expression "(int)puVar6 + uVar10" (cast_expression "(int)puVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar6")) (+ "+") (identifier "uVar10")) (+ "+") (number_literal "2")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(*(char *)((int)puVar6 + uVar10 + 1) == '\0')" (( "(") (binary_expression "*(char *)((int)puVar6 + uVar10 + 1) == '\0'" (pointer_expression "*(char *)((int)puVar6 + uVar10 + 1)" (* "*") (cast_expression "(char *)((int)puVar6 + uVar10 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar6 + uVar10 + 1)" (( "(") (binary_expression "(int)puVar6 + uVar10 + 1" (binary_expression "(int)puVar6 + uVar10" (cast_expression "(int)puVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar6")) (+ "+") (identifier "uVar10")) (+ "+") (number_literal "1")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (|| "||") (parenthesized_expression "(uVar11 <= uVar1 + 1)" (( "(") (binary_expression "uVar11 <= uVar1 + 1" (identifier "uVar11") (<= "<=") (binary_expression "uVar1 + 1" (identifier "uVar1") (+ "+") (number_literal "1"))) () ")"))) () ")")) (|| "||") (parenthesized_expression "(__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)" (( "(") (comma_expression "__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0" (assignment_expression "__dest = (uint *)FUN_00053f70()" (identifier "__dest") (= "=") (cast_expression "(uint *)FUN_00053f70()" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00053f70()" (identifier "FUN_00053f70") (argument_list "()" (( "(") () ")"))))) (, ",") (binary_expression "__dest == (uint *)0x0" (identifier "__dest") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }\n        iVar9 = uVar11 - param_4;\n        local_38 = (undefined1)iVar9;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        *puVar2 = uVar7;\n        *puVar3 = local_38;\n        __dest = (uint *)((int)puVar6 + iVar9);\n      }" ({ "{") (if_statement "if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }" (if "if") (parenthesized_expression "((int)uVar11 < (int)(uVar1 + 2 + param_4))" (( "(") (binary_expression "(int)uVar11 < (int)(uVar1 + 2 + param_4)" (cast_expression "(int)uVar11" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar11")) (< "<") (cast_expression "(int)(uVar1 + 2 + param_4)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uVar1 + 2 + param_4)" (( "(") (binary_expression "uVar1 + 2 + param_4" (binary_expression "uVar1 + 2" (identifier "uVar1") (+ "+") (number_literal "2")) (+ "+") (identifier "param_4")) () ")")))) () ")")) (compound_statement "{\n          iVar9 = FUN_00054080();\n          if (iVar9 != 0) goto LAB_00080b90;\n          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;\n        }" ({ "{") (expression_statement "iVar9 = FUN_00054080();" (assignment_expression "iVar9 = FUN_00054080()" (identifier "iVar9") (= "=") (call_expression "FUN_00054080()" (identifier "FUN_00054080") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar9 != 0) goto LAB_00080b90;" (if "if") (parenthesized_expression "(iVar9 != 0)" (( "(") (binary_expression "iVar9 != 0" (identifier "iVar9") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00080b90;" (goto "goto") (statement_identifier "LAB_00080b90") (; ";"))) (expression_statement "uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;" (assignment_expression "uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1" (identifier "uVar11") (= "=") (binary_expression "(CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1" (parenthesized_expression "(CONCAT11(*puVar2,*puVar3) - 1 & 0xffff)" (( "(") (binary_expression "CONCAT11(*puVar2,*puVar3) - 1 & 0xffff" (binary_expression "CONCAT11(*puVar2,*puVar3) - 1" (call_expression "CONCAT11(*puVar2,*puVar3)" (identifier "CONCAT11") (argument_list "(*puVar2,*puVar3)" (( "(") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (, ",") (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) () ")"))) (- "-") (number_literal "1")) (& "&") (number_literal "0xffff")) () ")")) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "iVar9 = uVar11 - param_4;" (assignment_expression "iVar9 = uVar11 - param_4" (identifier "iVar9") (= "=") (binary_expression "uVar11 - param_4" (identifier "uVar11") (- "-") (identifier "param_4"))) (; ";")) (expression_statement "local_38 = (undefined1)iVar9;" (assignment_expression "local_38 = (undefined1)iVar9" (identifier "local_38") (= "=") (cast_expression "(undefined1)iVar9" (( "(") (type_descriptor "undefined1" (type_identifier "undefined1")) () ")") (identifier "iVar9"))) (; ";")) (expression_statement "uVar7 = (undefined1)((uint)iVar9 >> 8);" (assignment_expression "uVar7 = (undefined1)((uint)iVar9 >> 8)" (identifier "uVar7") (= "=") (call_expression "(undefined1)((uint)iVar9 >> 8)" (parenthesized_expression "(undefined1)" (( "(") (identifier "undefined1") () ")")) (argument_list "((uint)iVar9 >> 8)" (( "(") (binary_expression "(uint)iVar9 >> 8" (cast_expression "(uint)iVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "iVar9")) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "*puVar2 = uVar7;" (assignment_expression "*puVar2 = uVar7" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "*puVar3 = local_38;" (assignment_expression "*puVar3 = local_38" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "local_38")) (; ";")) (expression_statement "__dest = (uint *)((int)puVar6 + iVar9);" (assignment_expression "__dest = (uint *)((int)puVar6 + iVar9)" (identifier "__dest") (= "=") (cast_expression "(uint *)((int)puVar6 + iVar9)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar6 + iVar9)" (( "(") (binary_expression "(int)puVar6 + iVar9" (cast_expression "(int)puVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar6")) (+ "+") (identifier "iVar9")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }" (else "else") (compound_statement "{\n        iVar9 = (int)__dest - (int)puVar6;\n        uVar7 = (undefined1)((uint)iVar9 >> 8);\n        local_38 = (undefined1)iVar9;\n      }" ({ "{") (expression_statement "iVar9 = (int)__dest - (int)puVar6;" (assignment_expression "iVar9 = (int)__dest - (int)puVar6" (identifier "iVar9") (= "=") (binary_expression "(int)__dest - (int)puVar6" (cast_expression "(int)__dest" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__dest")) (- "-") (cast_expression "(int)puVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar6")))) (; ";")) (expression_statement "uVar7 = (undefined1)((uint)iVar9 >> 8);" (assignment_expression "uVar7 = (undefined1)((uint)iVar9 >> 8)" (identifier "uVar7") (= "=") (call_expression "(undefined1)((uint)iVar9 >> 8)" (parenthesized_expression "(undefined1)" (( "(") (identifier "undefined1") () ")")) (argument_list "((uint)iVar9 >> 8)" (( "(") (binary_expression "(uint)iVar9 >> 8" (cast_expression "(uint)iVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "iVar9")) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "local_38 = (undefined1)iVar9;" (assignment_expression "local_38 = (undefined1)iVar9" (identifier "local_38") (= "=") (cast_expression "(undefined1)iVar9" (( "(") (type_descriptor "undefined1" (type_identifier "undefined1")) () ")") (identifier "iVar9"))) (; ";")) (} "}"))))) (} "}")))) (expression_statement "*(short *)(param_1 + 0x14) = (*(short *)(param_1 + 0x14) - (short)param_4) + -2;" (assignment_expression "*(short *)(param_1 + 0x14) = (*(short *)(param_1 + 0x14) - (short)param_4) + -2" (pointer_expression "*(short *)(param_1 + 0x14)" (* "*") (cast_expression "(short *)(param_1 + 0x14)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "(*(short *)(param_1 + 0x14) - (short)param_4) + -2" (parenthesized_expression "(*(short *)(param_1 + 0x14) - (short)param_4)" (( "(") (binary_expression "*(short *)(param_1 + 0x14) - (short)param_4" (pointer_expression "*(short *)(param_1 + 0x14)" (* "*") (cast_expression "(short *)(param_1 + 0x14)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (- "-") (cast_expression "(short)param_4" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "param_4"))) () ")")) (+ "+") (number_literal "-2"))) (; ";")) (if_statement "if (param_6 == 0) {\n      memcpy(__dest,param_3,param_4);\n    }\n    else {\n      memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);\n      *__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18;\n    }" (if "if") (parenthesized_expression "(param_6 == 0)" (( "(") (binary_expression "param_6 == 0" (identifier "param_6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      memcpy(__dest,param_3,param_4);\n    }" ({ "{") (expression_statement "memcpy(__dest,param_3,param_4);" (call_expression "memcpy(__dest,param_3,param_4)" (identifier "memcpy") (argument_list "(__dest,param_3,param_4)" (( "(") (identifier "__dest") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);\n      *__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18;\n    }" (else "else") (compound_statement "{\n      memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);\n      *__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18;\n    }" ({ "{") (expression_statement "memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);" (call_expression "memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4)" (identifier "memcpy") (argument_list "((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4)" (( "(") (cast_expression "(void *)((int)puVar6 + iVar9 + 4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar6 + iVar9 + 4)" (( "(") (binary_expression "(int)puVar6 + iVar9 + 4" (binary_expression "(int)puVar6 + iVar9" (cast_expression "(int)puVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar6")) (+ "+") (identifier "iVar9")) (+ "+") (number_literal "4")) () ")"))) (, ",") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1")) (, ",") (binary_expression "param_4 - 4" (identifier "param_4") (- "-") (number_literal "4")) () ")"))) (; ";")) (expression_statement "*__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18;" (assignment_expression "*__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18" (pointer_expression "*__dest" (* "*") (identifier "__dest")) (= "=") (binary_expression "param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |\n                param_6 << 0x18" (binary_expression "param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8" (binary_expression "param_6 >> 0x18 | (param_6 & 0xff0000) >> 8" (binary_expression "param_6 >> 0x18" (identifier "param_6") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(param_6 & 0xff0000) >> 8" (parenthesized_expression "(param_6 & 0xff0000)" (( "(") (binary_expression "param_6 & 0xff0000" (identifier "param_6") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(param_6 & 0xff00) << 8" (parenthesized_expression "(param_6 & 0xff00)" (( "(") (binary_expression "param_6 & 0xff00" (identifier "param_6") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "param_6 << 0x18" (identifier "param_6") (<< "<<") (number_literal "0x18")))) (; ";")) (} "}")))) (expression_statement "puVar2 = (undefined1 *)(*(int *)(param_1 + 0x40) + param_2 * 2);" (assignment_expression "puVar2 = (undefined1 *)(*(int *)(param_1 + 0x40) + param_2 * 2)" (identifier "puVar2") (= "=") (cast_expression "(undefined1 *)(*(int *)(param_1 + 0x40) + param_2 * 2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x40) + param_2 * 2)" (( "(") (binary_expression "*(int *)(param_1 + 0x40) + param_2 * 2" (pointer_expression "*(int *)(param_1 + 0x40)" (* "*") (cast_expression "(int *)(param_1 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (+ "+") (binary_expression "param_2 * 2" (identifier "param_2") (* "*") (number_literal "2"))) () ")")))) (; ";")) (expression_statement "memmove(puVar2 + 2,puVar2,((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2);" (call_expression "memmove(puVar2 + 2,puVar2,((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2)" (identifier "memmove") (argument_list "(puVar2 + 2,puVar2,((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2)" (( "(") (binary_expression "puVar2 + 2" (identifier "puVar2") (+ "+") (number_literal "2")) (, ",") (identifier "puVar2") (, ",") (binary_expression "((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2" (parenthesized_expression "((uint)*(ushort *)(param_1 + 0x16) - param_2)" (( "(") (binary_expression "(uint)*(ushort *)(param_1 + 0x16) - param_2" (binary_expression "(uint)*(ushort *)(param_1 + 0x16)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(ushort *)(param_1 + 0x16)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x16)" (( "(") (binary_expression "param_1 + 0x16" (identifier "param_1") (+ "+") (number_literal "0x16")) () ")")))) (- "-") (identifier "param_2")) () ")")) (* "*") (number_literal "2")) () ")"))) (; ";")) (expression_statement "*puVar2 = uVar7;" (assignment_expression "*puVar2 = uVar7" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "puVar2[1] = local_38;" (assignment_expression "puVar2[1] = local_38" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "local_38")) (; ";")) (expression_statement "*(short *)(param_1 + 0x16) = *(short *)(param_1 + 0x16) + 1;" (assignment_expression "*(short *)(param_1 + 0x16) = *(short *)(param_1 + 0x16) + 1" (pointer_expression "*(short *)(param_1 + 0x16)" (* "*") (cast_expression "(short *)(param_1 + 0x16)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x16)" (( "(") (binary_expression "param_1 + 0x16" (identifier "param_1") (+ "+") (number_literal "0x16")) () ")")))) (= "=") (binary_expression "*(short *)(param_1 + 0x16) + 1" (pointer_expression "*(short *)(param_1 + 0x16)" (* "*") (cast_expression "(short *)(param_1 + 0x16)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x16)" (( "(") (binary_expression "param_1 + 0x16" (identifier "param_1") (+ "+") (number_literal "0x16")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 4);" (assignment_expression "pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 4)" (identifier "pcVar4") (= "=") (cast_expression "(char *)((int)puVar6 + *(byte *)(param_1 + 9) + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar6 + *(byte *)(param_1 + 9) + 4)" (( "(") (binary_expression "(int)puVar6 + *(byte *)(param_1 + 9) + 4" (binary_expression "(int)puVar6 + *(byte *)(param_1 + 9)" (cast_expression "(int)puVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar6")) (+ "+") (pointer_expression "*(byte *)(param_1 + 9)" (* "*") (cast_expression "(byte *)(param_1 + 9)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 9)" (( "(") (binary_expression "param_1 + 9" (identifier "param_1") (+ "+") (number_literal "9")) () ")"))))) (+ "+") (number_literal "4")) () ")")))) (; ";")) (expression_statement "cVar8 = *pcVar4 + '\x01';" (assignment_expression "cVar8 = *pcVar4 + '\x01'" (identifier "cVar8") (= "=") (binary_expression "*pcVar4 + '\x01'" (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) (+ "+") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'")))) (; ";")) (expression_statement "*pcVar4 = cVar8;" (assignment_expression "*pcVar4 = cVar8" (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) (= "=") (identifier "cVar8")) (; ";")) (if_statement "if (cVar8 == '\0') {\n      pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3);\n      *pcVar4 = *pcVar4 + '\x01';\n    }" (if "if") (parenthesized_expression "(cVar8 == '\0')" (( "(") (binary_expression "cVar8 == '\0'" (identifier "cVar8") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3);\n      *pcVar4 = *pcVar4 + '\x01';\n    }" ({ "{") (expression_statement "pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3);" (assignment_expression "pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3)" (identifier "pcVar4") (= "=") (cast_expression "(char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar6 + *(byte *)(param_1 + 9) + 3)" (( "(") (binary_expression "(int)puVar6 + *(byte *)(param_1 + 9) + 3" (binary_expression "(int)puVar6 + *(byte *)(param_1 + 9)" (cast_expression "(int)puVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar6")) (+ "+") (pointer_expression "*(byte *)(param_1 + 9)" (* "*") (cast_expression "(byte *)(param_1 + 9)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 9)" (( "(") (binary_expression "param_1 + 9" (identifier "param_1") (+ "+") (number_literal "9")) () ")"))))) (+ "+") (number_literal "3")) () ")")))) (; ";")) (expression_statement "*pcVar4 = *pcVar4 + '\x01';" (assignment_expression "*pcVar4 = *pcVar4 + '\x01'" (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) (= "=") (binary_expression "*pcVar4 + '\x01'" (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) (+ "+") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'")))) (; ";")) (} "}"))) (if_statement "if (*(char *)(*(int *)(param_1 + 0x34) + 0x11) != '\0') {\n      FUN_0007f730(param_7);\n    }" (if "if") (parenthesized_expression "(*(char *)(*(int *)(param_1 + 0x34) + 0x11) != '\0')" (( "(") (binary_expression "*(char *)(*(int *)(param_1 + 0x34) + 0x11) != '\0'" (pointer_expression "*(char *)(*(int *)(param_1 + 0x34) + 0x11)" (* "*") (cast_expression "(char *)(*(int *)(param_1 + 0x34) + 0x11)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x34) + 0x11)" (( "(") (binary_expression "*(int *)(param_1 + 0x34) + 0x11" (pointer_expression "*(int *)(param_1 + 0x34)" (* "*") (cast_expression "(int *)(param_1 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (+ "+") (number_literal "0x11")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      FUN_0007f730(param_7);\n    }" ({ "{") (expression_statement "FUN_0007f730(param_7);" (call_expression "FUN_0007f730(param_7)" (identifier "FUN_0007f730") (argument_list "(param_7)" (( "(") (identifier "param_7") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\nLAB_00080b90:\n    *param_7 = iVar9;\n  }" (else "else") (compound_statement "{\nLAB_00080b90:\n    *param_7 = iVar9;\n  }" ({ "{") (labeled_statement "LAB_00080b90:\n    *param_7 = iVar9;" (statement_identifier "LAB_00080b90") (: ":") (expression_statement "*param_7 = iVar9;" (assignment_expression "*param_7 = iVar9" (pointer_expression "*param_7" (* "*") (identifier "param_7")) (= "=") (identifier "iVar9")) (; ";"))) (} "}")))) (labeled_statement "LAB_0008099c:\n  if (iVar5 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }" (statement_identifier "LAB_0008099c") (: ":") (if_statement "if (iVar5 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }" (if "if") (parenthesized_expression "(iVar5 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar5 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar5") (!= "!=") (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                    \n    FUN_000f6410();\n  }" ({ "{") (expression_statement "FUN_000f6410();" (call_expression "FUN_000f6410()" (identifier "FUN_000f6410") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(type_1 *pPage,int var_19,type_2 *var_18,int var_2,type_2 *var_3,type_3 var_5,int *pRC)

{
  type_4 var_12;
  type_2 *var_21;
  type_2 *puVar3;
  type_5 var_6;
  type_4 *puVar5;
  type_2 var_22;
  int var_8;
  type_4 var_9;
  type_4 *var_15;
  type_4 var_11;
  int var_1;
  type_1 *in_stack_ffffffb4;
  int in_stack_ffffffb8;
  type_2 local_38;
  int var_16;
  int var_24;
  type_6 uStack_14;
  
  uStack_14 = 0x8091f;
  var_24 = *(int *)(var_1 + 0x14);
  if ((pPage->nOverflow != '\0') || ((int)(type_4)pPage->nFree <= var_2 + 1)) {
    if (var_3 != (type_2 *)0x0) {
      var_4(var_3,var_18,var_2);
      var_18 = var_3;
    }
    if (var_5 != 0) {
      *(type_3 *)var_18 =
           var_5 >> 0x18 | (var_5 & 0xff0000) >> 8 | (var_5 & 0xff00) << 8 | var_5 << 0x18;
    }
    var_6 = pPage->nOverflow;
    pPage->nOverflow = var_6 + 1;
    pPage->apOvfl[var_6] = var_18;
    pPage->aiOvfl[var_6] = (type_7)var_19;
    goto LAB_0008099c;
  }
  var_8 = var_7(pPage->pDbPage);
  if (var_8 == 0) {
    var_16 = 0;
    puVar5 = (type_4 *)pPage->aData;
    var_12 = (type_4)pPage->cellOffset + (type_4)pPage->nCell * 2;
    var_9 = (type_4)pPage->hdrOffset;
    var_21 = (type_2 *)((int)puVar5 + var_9 + 5);
    puVar3 = (type_2 *)((int)puVar5 + var_9 + 6);
    var_11 = (type_4)var_10(*var_21,*puVar3);
    if (var_11 < var_12) {
      if ((var_11 == 0) && (pPage->pBt->usableSize == 0x10000)) {
        var_11 = 0x10000;
        goto LAB_00080a45;
      }
      var_8 = var_13(0xfcb0);
      if (var_8 != 0) goto LAB_00080b90;
      local_38 = '\0';
      var_8 = 0;
      var_22 = '\0';
      var_15 = puVar5;
    }
    else {
LAB_00080a45:
      if (((*(type_2 *)((int)puVar5 + var_9 + 2) != '\0') || (*(type_2 *)((int)puVar5 + var_9 + 1) != '\0'))
         && (var_12 + 1 < var_11)) {
        var_15 = (type_4 *)var_14(pPage,var_2,&var_16);
        if (var_15 != (type_4 *)0x0) {
          var_8 = (int)var_15 - (int)puVar5;
          var_22 = (type_2)((type_4)var_8 >> 8);
          local_38 = (type_2)var_8;
          goto LAB_00080a99;
        }
        var_8 = var_16;
        if (var_16 != 0) goto LAB_00080b90;
      }
      if ((int)var_11 < (int)(var_12 + 2 + var_2)) {
        var_16 = var_17(in_stack_ffffffb4,in_stack_ffffffb8);
        var_8 = var_16;
        if (var_16 != 0) goto LAB_00080b90;
        var_11 = (var_10(*var_21,*puVar3) - 1 & 0xffff) + 1;
      }
      var_8 = var_11 - var_2;
      local_38 = (type_2)var_8;
      var_22 = (type_2)((type_4)var_8 >> 8);
      *var_21 = var_22;
      *puVar3 = local_38;
      var_15 = (type_4 *)((int)puVar5 + var_8);
    }
LAB_00080a99:
    pPage->nFree = (pPage->nFree - (short)var_2) - 2;
    if (var_5 == 0) {
      var_4(var_15,var_18,var_2);
    }
    else {
      var_4((type_2 *)((int)puVar5 + var_8 + 4),var_18 + 4,var_2 - 4);
      *var_15 = var_5 >> 0x18 | (var_5 & 0xff0000) >> 8 | (var_5 & 0xff00) << 8 | var_5 << 0x18;
    }
    var_21 = pPage->aCellIdx + var_19 * 2;
    var_20(var_21 + 2,var_21,((type_4)pPage->nCell - var_19) * 2);
    *var_21 = var_22;
    var_21[1] = local_38;
    pPage->nCell = pPage->nCell + 1;
    var_21 = (type_2 *)((int)puVar5 + pPage->hdrOffset + 4);
    var_22 = *var_21 + '\x01';
    *var_21 = var_22;
    if (var_22 == '\0') {
      var_21 = (type_2 *)((int)puVar5 + pPage->hdrOffset + 3);
      *var_21 = *var_21 + '\x01';
    }
    if (pPage->pBt->autoVacuum != '\0') {
      var_23(pPage,(type_1 *)&pPage->aDataEnd,var_18,pRC);
    }
  }
  else {
LAB_00080b90:
    *pRC = var_8;
  }
LAB_0008099c:
  if (var_24 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_25();
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Removing unreachable block (ram,0x00080b8c) */

void __regparm3
MASKED(int param_1,int param_2,uint *param_3,size_t param_4,uint *param_5,uint param_6,
            int *param_7)

{
  uint uVar1;
  undefined1 *puVar2;
  undefined1 *puVar3;
  char *pcVar4;
  int iVar5;
  uint *puVar6;
  undefined1 uVar7;
  char cVar8;
  int iVar9;
  uint uVar10;
  uint *__dest;
  uint uVar11;
  int in_GS_OFFSET;
  undefined1 local_38;
  
  iVar5 = *(int *)(in_GS_OFFSET + 0x14);
  if ((*(char *)(param_1 + 0xc) != '\0') ||
     ((int)(uint)*(ushort *)(param_1 + 0x14) <= (int)(param_4 + 1))) {
    if (param_5 != (uint *)0x0) {
      memcpy(param_5,param_3,param_4);
      param_3 = param_5;
    }
    if (param_6 != 0) {
      *param_3 = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |
                 param_6 << 0x18;
    }
    iVar9 = *(byte *)(param_1 + 0xc) + 8;
    *(byte *)(param_1 + 0xc) = *(byte *)(param_1 + 0xc) + 1;
    *(uint **)(param_1 + 4 + iVar9 * 4) = param_3;
    *(short *)(param_1 + 10 + iVar9 * 2) = (short)param_2;
    goto LAB_0008099c;
  }
  iVar9 = FUN_0007af80();
  if (iVar9 == 0) {
    puVar6 = *(uint **)(param_1 + 0x38);
    uVar1 = (uint)*(ushort *)(param_1 + 0x12) + (uint)*(ushort *)(param_1 + 0x16) * 2;
    uVar10 = (uint)*(byte *)(param_1 + 9);
    puVar2 = (undefined1 *)((int)puVar6 + uVar10 + 5);
    puVar3 = (undefined1 *)((int)puVar6 + uVar10 + 6);
    uVar11 = (uint)CONCAT11(*puVar2,*puVar3);
    if (uVar11 < uVar1) {
      if ((uVar11 == 0) && (*(int *)(*(int *)(param_1 + 0x34) + 0x24) == 0x10000)) {
        uVar11 = 0x10000;
        goto LAB_00080a45;
      }
      iVar9 = FUN_00052b70();
      if (iVar9 != 0) goto LAB_00080b90;
      local_38 = 0;
      iVar9 = 0;
      uVar7 = 0;
      __dest = puVar6;
    }
    else {
LAB_00080a45:
      if ((((*(char *)((int)puVar6 + uVar10 + 2) == '\0') &&
           (*(char *)((int)puVar6 + uVar10 + 1) == '\0')) || (uVar11 <= uVar1 + 1)) ||
         (__dest = (uint *)FUN_00053f70(), __dest == (uint *)0x0)) {
        if ((int)uVar11 < (int)(uVar1 + 2 + param_4)) {
          iVar9 = FUN_00054080();
          if (iVar9 != 0) goto LAB_00080b90;
          uVar11 = (CONCAT11(*puVar2,*puVar3) - 1 & 0xffff) + 1;
        }
        iVar9 = uVar11 - param_4;
        local_38 = (undefined1)iVar9;
        uVar7 = (undefined1)((uint)iVar9 >> 8);
        *puVar2 = uVar7;
        *puVar3 = local_38;
        __dest = (uint *)((int)puVar6 + iVar9);
      }
      else {
        iVar9 = (int)__dest - (int)puVar6;
        uVar7 = (undefined1)((uint)iVar9 >> 8);
        local_38 = (undefined1)iVar9;
      }
    }
    *(short *)(param_1 + 0x14) = (*(short *)(param_1 + 0x14) - (short)param_4) + -2;
    if (param_6 == 0) {
      memcpy(__dest,param_3,param_4);
    }
    else {
      memcpy((void *)((int)puVar6 + iVar9 + 4),param_3 + 1,param_4 - 4);
      *__dest = param_6 >> 0x18 | (param_6 & 0xff0000) >> 8 | (param_6 & 0xff00) << 8 |
                param_6 << 0x18;
    }
    puVar2 = (undefined1 *)(*(int *)(param_1 + 0x40) + param_2 * 2);
    memmove(puVar2 + 2,puVar2,((uint)*(ushort *)(param_1 + 0x16) - param_2) * 2);
    *puVar2 = uVar7;
    puVar2[1] = local_38;
    *(short *)(param_1 + 0x16) = *(short *)(param_1 + 0x16) + 1;
    pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 4);
    cVar8 = *pcVar4 + '\x01';
    *pcVar4 = cVar8;
    if (cVar8 == '\0') {
      pcVar4 = (char *)((int)puVar6 + *(byte *)(param_1 + 9) + 3);
      *pcVar4 = *pcVar4 + '\x01';
    }
    if (*(char *)(*(int *)(param_1 + 0x34) + 0x11) != '\0') {
      FUN_0007f730(param_7);
    }
  }
  else {
LAB_00080b90:
    *param_7 = iVar9;
  }
LAB_0008099c:
  if (iVar5 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_000f6410();
  }
  return;
}

