
/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */

int __regparm3 sqlite3InitOne(sqlite3 *db,int iDb,char **pzErrMsg,u32 mFlags)

{
  int *piVar1;
  u16 *puVar2;
  u32 *pMeta;
  int iVar3;
  Db *pDVar4;
  sqlite3_xauth p_Var5;
  uint uVar6;
  bool bVar7;
  int iVar8;
  byte bVar9;
  Schema *pSVar10;
  char *pcVar11;
  Btree *pBVar12;
  u8 uVar13;
  int iVar14;
  int in_GS_OFFSET;
  bool bVar15;
  int local_80;
  InitData initData;
  char *azArg [4];
  int meta [5];
  
  iVar3 = *(int *)(in_GS_OFFSET + 0x14);
  azArg[3] = (char *)0x0;
  pcVar11 = "sqlite_master";
  if (iDb == 1) {
    pcVar11 = "sqlite_temp_master";
  }
  initData.rc = 0;
  azArg[1] = "1";
  azArg[2] = "CREATE TABLE x(type text,name text,tbl_name text,rootpage int,sql text)";
  initData.mInitFlags = mFlags;
  initData.nInitRow = 0;
  (db->init).busy = '\x01';
  initData.db = db;
  initData.pzErrMsg = pzErrMsg;
  initData.iDb = iDb;
  azArg[0] = pcVar11;
  sqlite3InitCallback(&initData,3,azArg,(char **)0x0);
  iVar8 = initData.rc;
  local_80 = initData.rc;
  if (initData.rc != 0) goto LAB_000afce8;
  pDVar4 = db->aDb;
  pBVar12 = pDVar4[iDb].pBt;
  if (pBVar12 == (Btree *)0x0) {
    puVar2 = &(pDVar4[1].pSchema)->schemaFlags;
    *puVar2 = *puVar2 | 1;
    goto LAB_000afd0b;
  }
  if (pBVar12->sharable != '\0') {
    sqlite3BtreeEnter(pBVar12);
    pBVar12 = pDVar4[iDb].pBt;
  }
  bVar7 = false;
  if (pBVar12->inTrans == '\0') {
    local_80 = sqlite3BtreeBeginTrans(pBVar12,0,(int *)0x0);
    if (local_80 == 0) {
      pBVar12 = pDVar4[iDb].pBt;
      bVar7 = true;
      goto LAB_000afb5f;
    }
    pcVar11 = sqlite3ErrStr(local_80);
    sqlite3SetString(pzErrMsg,db,pcVar11);
    pBVar12 = pDVar4[iDb].pBt;
    if (pBVar12->sharable != '\0') {
      piVar1 = &pBVar12->wantToLock;
      *piVar1 = *piVar1 + -1;
      if (*piVar1 != 0) goto LAB_000afce8;
      goto LAB_000afef0;
    }
  }
  else {
LAB_000afb5f:
    iVar14 = 0;
    while( true ) {
      pMeta = (u32 *)(meta + iVar14);
      iVar14 = iVar14 + 1;
      sqlite3BtreeGetMeta(pBVar12,iVar14,pMeta);
      if (iVar14 == 5) break;
      pBVar12 = pDVar4[iDb].pBt;
    }
    if ((db->flags & 0x2000000) != 0) {
      meta[0] = 0;
      meta[1] = 0;
      meta[2] = 0;
      meta[3] = 0;
      meta[4] = 0;
    }
    (pDVar4[iDb].pSchema)->schema_cookie = meta[0];
    if (meta[4] == 0) {
      puVar2 = &(db->aDb[iDb].pSchema)->schemaFlags;
      *puVar2 = *puVar2 | 4;
      bVar9 = db->enc;
LAB_000afd44:
      (pDVar4[iDb].pSchema)->enc = bVar9;
      pSVar10 = pDVar4[iDb].pSchema;
      iVar14 = pSVar10->cache_size;
joined_r0x000afbdd:
      if (iVar14 == 0) {
        if (meta[2] < 0) {
          iVar14 = -meta[2];
          bVar15 = meta[2] != -0x80000000;
          meta[2] = 0x7fffffff;
          if (bVar15) {
            meta[2] = iVar14;
          }
        }
        else if (meta[2] == 0) {
          meta[2] = -2000;
        }
        pSVar10->cache_size = meta[2];
        sqlite3BtreeSetCacheSize(pDVar4[iDb].pBt,(pDVar4[iDb].pSchema)->cache_size);
        pSVar10 = pDVar4[iDb].pSchema;
      }
      pSVar10->file_format = (u8)meta[1];
      bVar9 = (pDVar4[iDb].pSchema)->file_format;
      if (bVar9 == 0) {
        (pDVar4[iDb].pSchema)->file_format = '\x01';
        bVar9 = (pDVar4[iDb].pSchema)->file_format;
      }
      if (4 < bVar9) {
        sqlite3SetString(pzErrMsg,db,"unsupported file format");
        local_80 = 1;
        goto LAB_000afcbe;
      }
      if ((iDb == 0) && (3 < meta[1])) {
        *(uint *)&db->flags = (uint)db->flags & 0xfffffffd;
      }
      pcVar11 = sqlite3MPrintf(db,"SELECT name, rootpage, sql FROM \"%w\".%s ORDER BY rowid",
                               db->aDb[iDb].zDbSName,pcVar11);
      p_Var5 = db->xAuth;
      db->xAuth = (sqlite3_xauth)0x0;
      local_80 = sqlite3_exec(db,pcVar11,sqlite3InitCallback,&initData,(char **)0x0);
      db->xAuth = p_Var5;
      if (local_80 == 0) {
        local_80 = initData.rc;
        if (pcVar11 != (char *)0x0) goto LAB_000afc8d;
LAB_000afc96:
        if (local_80 != 0) goto LAB_000afc9e;
        sqlite3AnalysisLoad(db,iDb);
        if (db->mallocFailed != '\0') goto LAB_000afca4;
      }
      else {
        if (pcVar11 != (char *)0x0) {
LAB_000afc8d:
          sqlite3DbFreeNN(db,pcVar11);
          goto LAB_000afc96;
        }
LAB_000afc9e:
        if (db->mallocFailed != '\0') {
LAB_000afca4:
          local_80 = 7;
          sqlite3ResetAllSchemasOfConnection(db);
        }
        if ((db->flags & 0x8000000) == 0) goto LAB_000afcbe;
      }
      puVar2 = &(db->aDb[iDb].pSchema)->schemaFlags;
      *puVar2 = *puVar2 | 1;
      pBVar12 = pDVar4[iDb].pBt;
      local_80 = iVar8;
    }
    else {
      if (iDb == 0) {
        uVar13 = (u8)(meta[4] & 3U);
        if ((meta[4] & 3U) == 0) {
          uVar13 = '\x01';
        }
        db->enc = uVar13;
        pDVar4->pSchema->enc = uVar13;
        pSVar10 = pDVar4->pSchema;
        iVar14 = pSVar10->cache_size;
        goto joined_r0x000afbdd;
      }
      bVar9 = db->enc;
      if (meta[4] == (uint)bVar9) goto LAB_000afd44;
      sqlite3SetString(pzErrMsg,db,
                       "attached databases must use the same text encoding as main database");
      local_80 = 1;
LAB_000afcbe:
      pBVar12 = pDVar4[iDb].pBt;
    }
    if (bVar7) {
      sqlite3BtreeCommit(pBVar12);
      pBVar12 = pDVar4[iDb].pBt;
    }
    if (pBVar12->sharable != '\0') {
      piVar1 = &pBVar12->wantToLock;
      *piVar1 = *piVar1 + -1;
      if (*piVar1 == 0) {
LAB_000afef0:
        sqlite3BtreeLeave(pBVar12);
      }
    }
    if (local_80 == 0) goto LAB_000afd0b;
  }
LAB_000afce8:
  if (((local_80 == 7) || (local_80 == 0xc0a)) &&
     (uVar6._0_1_ = db->temp_store, uVar6._1_1_ = db->mallocFailed, uVar6._2_1_ = db->bBenignMalloc,
     uVar6._3_1_ = db->dfltLockMode, (uVar6 & 0xffff00) == 0)) {
    sqlite3OomFault(db);
  }
  sqlite3ResetOneSchema(db,iDb);
LAB_000afd0b:
  (db->init).busy = '\0';
  if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return local_80;
}



int FUN_000afa70(undefined4 param_1)

{
  int *piVar1;
  ushort *puVar2;
  undefined4 uVar3;
  bool bVar4;
  int iVar5;
  byte bVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  undefined1 uVar10;
  int iVar11;
  int iVar12;
  int unaff_EBP;
  int iVar13;
  int iVar14;
  int in_GS_OFFSET;
  bool bVar15;
  undefined8 uVar16;
  int local_80;
  int local_5c [2];
  int local_54;
  int local_50;
  undefined4 local_4c;
  undefined4 local_48;
  int local_44;
  int local_40;
  int local_3c;
  undefined4 local_38;
  undefined4 local_34;
  int local_30;
  int local_2c;
  undefined4 local_28;
  uint local_24;
  int local_20;
  
  uVar16 = FUN_000f5a04();
  iVar11 = (int)((ulonglong)uVar16 >> 0x20);
  iVar7 = (int)uVar16;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_38 = 0;
  iVar9 = unaff_EBP + 0x47ba9;
  if (iVar11 == 1) {
    iVar9 = unaff_EBP + 0x48b79;
  }
  local_50 = 0;
  local_40 = unaff_EBP + 0x4adba;
  local_3c = unaff_EBP + 0x568a2;
  local_4c = param_1;
  local_48 = 0;
  *(undefined1 *)(iVar7 + 0xa1) = 1;
  local_5c[0] = iVar7;
  local_54 = iVar11;
  local_44 = iVar9;
  FUN_000c3720(local_5c,3,&local_44,0);
  iVar5 = local_50;
  local_80 = local_50;
  if (local_50 != 0) goto LAB_000afce8;
  iVar13 = iVar11 * 0x10;
  iVar14 = iVar13 + *(int *)(iVar7 + 0x10);
  iVar12 = *(int *)(iVar14 + 4);
  if (iVar12 == 0) {
    puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e);
    *puVar2 = *puVar2 | 1;
    goto LAB_000afd0b;
  }
  if (*(char *)(iVar12 + 9) != '\0') {
    FUN_0002cb40();
    iVar12 = *(int *)(iVar14 + 4);
  }
  bVar4 = false;
  if (*(char *)(iVar12 + 8) == '\0') {
    local_80 = FUN_0007e3b0();
    if (local_80 == 0) {
      bVar4 = true;
      goto LAB_000afb5f;
    }
    FUN_00032150();
    FUN_000288e0();
    if (*(char *)(*(int *)(iVar14 + 4) + 9) != '\0') {
      piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc);
      *piVar1 = *piVar1 + -1;
      if (*piVar1 != 0) goto LAB_000afce8;
      goto LAB_000afef0;
    }
  }
  else {
LAB_000afb5f:
    iVar12 = 0;
    do {
      iVar12 = iVar12 + 1;
      FUN_00038620();
    } while (iVar12 != 5);
    if ((*(byte *)(iVar7 + 0x1f) & 2) != 0) {
      local_34 = 0;
      local_30 = 0;
      local_2c = 0;
      local_28 = 0;
      local_24 = 0;
    }
    **(undefined4 **)(iVar14 + 0xc) = local_34;
    if (local_24 == 0) {
      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);
      *puVar2 = *puVar2 | 4;
      bVar6 = *(byte *)(iVar7 + 0x4a);
LAB_000afd44:
      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;
      iVar8 = *(int *)(iVar14 + 0xc);
      iVar12 = *(int *)(iVar8 + 0x50);
joined_r0x000afbdd:
      if (iVar12 == 0) {
        if (local_2c < 0) {
          iVar12 = -local_2c;
          bVar15 = local_2c != -0x80000000;
          local_2c = 0x7fffffff;
          if (bVar15) {
            local_2c = iVar12;
          }
        }
        else if (local_2c == 0) {
          local_2c = -2000;
        }
        *(int *)(iVar8 + 0x50) = local_2c;
        FUN_0002cfc0();
        iVar8 = *(int *)(iVar14 + 0xc);
      }
      *(char *)(iVar8 + 0x4c) = (char)local_30;
      bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);
      if (bVar6 == 0) {
        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;
        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);
      }
      if (4 < bVar6) {
        FUN_000288e0();
        local_80 = 1;
        goto LAB_000afcbe;
      }
      if ((iVar11 == 0) && (3 < local_30)) {
        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;
      }
      iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,
                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);
      uVar3 = *(undefined4 *)(iVar7 + 0x13c);
      *(undefined4 *)(iVar7 + 0x13c) = 0;
      local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);
      *(undefined4 *)(iVar7 + 0x13c) = uVar3;
      if (local_80 == 0) {
        local_80 = local_50;
        if (iVar9 != 0) goto LAB_000afc8d;
LAB_000afc96:
        if (local_80 != 0) goto LAB_000afc9e;
        FUN_000af930();
        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;
      }
      else {
        if (iVar9 != 0) {
LAB_000afc8d:
          FUN_00026590();
          goto LAB_000afc96;
        }
LAB_000afc9e:
        if (*(char *)(iVar7 + 0x4d) != '\0') {
LAB_000afca4:
          local_80 = 7;
          FUN_0003b610();
        }
        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;
      }
      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);
      *puVar2 = *puVar2 | 1;
      iVar9 = *(int *)(iVar14 + 4);
      local_80 = iVar5;
    }
    else {
      if (iVar11 == 0) {
        uVar10 = (undefined1)(local_24 & 3);
        if ((local_24 & 3) == 0) {
          uVar10 = 1;
        }
        *(undefined1 *)(iVar7 + 0x4a) = uVar10;
        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;
        iVar8 = *(int *)(iVar14 + 0xc);
        iVar12 = *(int *)(iVar8 + 0x50);
        goto joined_r0x000afbdd;
      }
      bVar6 = *(byte *)(iVar7 + 0x4a);
      if (local_24 == bVar6) goto LAB_000afd44;
      FUN_000288e0();
      local_80 = 1;
LAB_000afcbe:
      iVar9 = *(int *)(iVar14 + 4);
    }
    if (bVar4) {
      FUN_00086700();
      iVar9 = *(int *)(iVar14 + 4);
    }
    if (*(char *)(iVar9 + 9) != '\0') {
      piVar1 = (int *)(iVar9 + 0xc);
      *piVar1 = *piVar1 + -1;
      if (*piVar1 == 0) {
LAB_000afef0:
        FUN_0002cbd0();
      }
    }
    if (local_80 == 0) goto LAB_000afd0b;
  }
LAB_000afce8:
  if (((local_80 == 7) || (local_80 == 0xc0a)) && ((*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0)) {
    FUN_00028380();
  }
  FUN_0003b710();
LAB_000afd0b:
  *(undefined1 *)(iVar7 + 0xa1) = 0;
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_000f6410();
  }
  return local_80;
}


PUSH EBP
CALL 0x000f5a04
ADD EBP,0x9b45e
PUSH EDI
MOV EDI,EDX
PUSH ESI
MOV ESI,EAX
PUSH EBX
SUB ESP,0x7c
MOV dword ptr [ESP + 0x10],EDX
MOV dword ptr [ESP + 0x24],ECX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x6c],EAX
XOR EAX,EAX
CMP EDX,0x1
LEA EAX,[EBP + 0xfffac74b]
MOV dword ptr [ESP + 0x30],ESI
LEA EDX,[EBP + 0xfffad71b]
MOV dword ptr [ESP + 0x54],0x0
CMOVZ EAX,EDX
MOV dword ptr [ESP + 0x38],EDI
MOV dword ptr [ESP + 0x3c],0x0
MOV dword ptr [ESP + 0x18],EAX
MOV dword ptr [ESP + 0x48],EAX
LEA EAX,[EBP + 0xfffaf95c]
MOV dword ptr [ESP + 0x4c],EAX
LEA EAX,[EBP + 0xfffbb444]
MOV dword ptr [ESP + 0x50],EAX
MOV EAX,dword ptr [ESP + 0x90]
MOV dword ptr [ESP + 0x34],ECX
MOV dword ptr [ESP + 0x40],EAX
MOV dword ptr [ESP + 0x44],0x0
MOV byte ptr [ESI + 0xa1],0x1
PUSH 0x0
LEA EAX,[ESP + 0x4c]
PUSH EAX
PUSH 0x3
LEA EAX,[ESP + 0x3c]
MOV dword ptr [ESP + 0x28],EAX
PUSH EAX
CALL 0x000c3720
MOV EAX,dword ptr [ESP + 0x4c]
MOV dword ptr [ESP + 0x1c],EAX
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000afce8
MOV EDX,dword ptr [ESI + 0x10]
SHL EDI,0x4
MOV dword ptr [ESP + 0x14],EDI
ADD EDI,EDX
MOV EAX,dword ptr [EDI + 0x4]
TEST EAX,EAX
JZ 0x000afeb8
CMP byte ptr [EAX + 0x9],0x0
JZ 0x000afb4d
CALL 0x0002cb40
MOV EAX,dword ptr [EDI + 0x4]
CMP byte ptr [EAX + 0x8],0x0
MOV dword ptr [ESP + 0x20],0x0
JZ 0x000afdc8
LEA EDX,[ESP + 0x58]
MOV dword ptr [ESP + 0x28],ESI
XOR EBX,EBX
MOV dword ptr [ESP + 0x2c],EDX
MOV ESI,EDX
LEA ECX,[ESI + EBX*0x4]
ADD EBX,0x1
MOV EDX,EBX
CALL 0x00038620
CMP EBX,0x5
JZ 0x000afb90
MOV EAX,dword ptr [EDI + 0x4]
JMP 0x000afb6f
MOV ESI,dword ptr [ESP + 0x28]
TEST byte ptr [ESI + 0x1f],0x2
JNZ 0x000afdf0
MOV EDX,dword ptr [ESP + 0x58]
MOV EAX,dword ptr [EDI + 0xc]
MOV dword ptr [EAX],EDX
MOV EAX,dword ptr [ESP + 0x68]
TEST EAX,EAX
JZ 0x000afd30
MOV EDX,dword ptr [ESP + 0x10]
TEST EDX,EDX
JNZ 0x000afe20
MOV EDX,EAX
MOV EAX,0x1
AND EDX,0x3
CMOVZ EDX,EAX
MOV byte ptr [ESI + 0x4a],DL
MOV EAX,dword ptr [EDI + 0xc]
MOV byte ptr [EAX + 0x4d],DL
MOV EAX,dword ptr [EDI + 0xc]
MOV EBX,dword ptr [EAX + 0x50]
TEST EBX,EBX
JZ 0x000afd58
LEA ESI,[ESI]
NOP
MOV EDX,dword ptr [ESP + 0x5c]
MOV byte ptr [EAX + 0x4c],DL
MOV ECX,dword ptr [EDI + 0xc]
MOVZX EAX,byte ptr [ECX + 0x4c]
TEST AL,AL
JNZ 0x000afc05
MOV byte ptr [ECX + 0x4c],0x1
MOV EAX,dword ptr [EDI + 0xc]
MOVZX EAX,byte ptr [EAX + 0x4c]
CMP AL,0x4
JA 0x000afec8
MOV ECX,dword ptr [ESP + 0x10]
TEST ECX,ECX
JNZ 0x000afc1e
CMP EDX,0x3
JG 0x000afe60
PUSH dword ptr [ESP + 0x18]
MOV EBX,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [ESI + 0x10]
PUSH dword ptr [EAX + EBX*0x1]
LEA EAX,[EBP + 0xfffbb4d0]
MOV EBX,EBP
PUSH EAX
PUSH ESI
CALL 0x0005fe40
MOV EDX,dword ptr [ESI + 0x13c]
MOV dword ptr [ESI + 0x13c],0x0
MOV ECX,EAX
LEA EAX,[EBP + 0xfff7884c]
MOV dword ptr [ESP],0x0
MOV dword ptr [ESP + 0x34],EDX
PUSH dword ptr [ESP + 0x2c]
PUSH EAX
PUSH ECX
MOV dword ptr [ESP + 0x34],ECX
PUSH ESI
CALL 0x000af460
MOV EDX,dword ptr [ESP + 0x44]
ADD ESP,0x20
MOV ECX,dword ptr [ESP + 0x18]
TEST EAX,EAX
MOV EBX,EAX
MOV dword ptr [ESI + 0x13c],EDX
JZ 0x000afdb0
TEST ECX,ECX
JZ 0x000afc9e
MOV EDX,ECX
MOV EAX,ESI
CALL 0x00026590
TEST EBX,EBX
JZ 0x000afe70
CMP byte ptr [ESI + 0x4d],0x0
JZ 0x000afcb0
MOV EAX,ESI
MOV EBX,0x7
CALL 0x0003b610
TEST byte ptr [ESI + 0x1f],0x8
JNZ 0x000afe85
MOV dword ptr [ESP + 0xc],EBX
MOV EDX,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [EDI + 0x4]
TEST EDX,EDX
JNZ 0x000afea4
CMP byte ptr [EAX + 0x9],0x0
JZ 0x000afcdd
SUB dword ptr [EAX + 0xc],0x1
JZ 0x000afef0
MOV EAX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JZ 0x000afd0b
LEA ESI,[ESI]
MOV EAX,dword ptr [ESP + 0xc]
CMP EAX,0x7
JZ 0x000afd90
CMP EAX,0xc0a
JZ 0x000afd90
MOV EDX,dword ptr [ESP + 0x10]
MOV EAX,ESI
CALL 0x0003b710
MOV byte ptr [ESI + 0xa1],0x0
MOV EAX,dword ptr [ESP + 0xc]
MOV ESI,dword ptr [ESP + 0x6c]
XOR ESI,dword ptr GS:[0x14]
JNZ 0x000aff2a
ADD ESP,0x7c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESI + 0x10]
MOV EBX,dword ptr [ESP + 0x14]
MOV EAX,dword ptr [EAX + EBX*0x1 + 0xc]
OR word ptr [EAX + 0x4e],0x4
MOVZX EDX,byte ptr [ESI + 0x4a]
MOV EAX,dword ptr [EDI + 0xc]
MOV byte ptr [EAX + 0x4d],DL
MOV EAX,dword ptr [EDI + 0xc]
MOV EBX,dword ptr [EAX + 0x50]
TEST EBX,EBX
JNZ 0x000afbe8
MOV EDX,dword ptr [ESP + 0x60]
TEST EDX,EDX
JNS 0x000afe50
MOV ECX,EDX
NEG ECX
CMP EDX,0x80000000
MOV EDX,0x7fffffff
CMOVNZ EDX,ECX
MOV dword ptr [EAX + 0x50],EDX
MOV EAX,dword ptr [EDI + 0xc]
MOV EDX,dword ptr [EAX + 0x50]
MOV EAX,dword ptr [EDI + 0x4]
CALL 0x0002cfc0
MOV EAX,dword ptr [EDI + 0xc]
JMP 0x000afbe8
TEST dword ptr [ESI + 0x4c],0xffff00
JNZ 0x000afd00
MOV EAX,ESI
CALL 0x00028380
JMP 0x000afd00
MOV EBX,dword ptr [ESP + 0x3c]
TEST ECX,ECX
JNZ 0x000afc8d
JMP 0x000afc96
XOR ECX,ECX
XOR EDX,EDX
CALL 0x0007e3b0
MOV EBX,EAX
TEST EAX,EAX
JNZ 0x000aff00
MOV EAX,dword ptr [EDI + 0x4]
MOV dword ptr [ESP + 0x20],0x1
JMP 0x000afb5f
MOV EAX,dword ptr [ESP + 0x2c]
XOR EDX,EDX
MOV dword ptr [EAX],0x0
MOV dword ptr [EAX + 0x4],0x0
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [EAX + 0xc],0x0
MOV dword ptr [EAX + 0x10],0x0
JMP 0x000afba2
MOVZX ECX,byte ptr [ESI + 0x4a]
MOV EDX,ECX
CMP EAX,ECX
JZ 0x000afd44
MOV EAX,dword ptr [ESP + 0x24]
LEA ECX,[EBP + 0xfffbb48c]
MOV EDX,ESI
CALL 0x000288e0
MOV dword ptr [ESP + 0xc],0x1
JMP 0x000afcbe
MOV ECX,0xfffff830
CMOVZ EDX,ECX
JMP 0x000afd76
AND dword ptr [ESI + 0x1c],0xfffffffd
JMP 0x000afc1e
MOV EDX,dword ptr [ESP + 0x10]
MOV EAX,ESI
CALL 0x000af930
CMP byte ptr [ESI + 0x4d],0x0
JNZ 0x000afca4
MOV EAX,dword ptr [ESI + 0x10]
MOV EBX,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [EAX + EBX*0x1 + 0xc]
OR word ptr [EAX + 0x4e],0x1
MOV EAX,dword ptr [EDI + 0x4]
TEST EDX,EDX
JZ 0x000afccd
CALL 0x00086700
MOV EAX,dword ptr [EDI + 0x4]
JMP 0x000afccd
MOV EAX,dword ptr [EDX + 0x1c]
OR word ptr [EAX + 0x4e],0x1
JMP 0x000afd0b
MOV EAX,dword ptr [ESP + 0x24]
LEA ECX,[EBP + 0xfffaeb0f]
MOV EDX,ESI
CALL 0x000288e0
MOV dword ptr [ESP + 0xc],0x1
JMP 0x000afcbe
MOV dword ptr [ESP + 0xc],EBX
LEA ESI,[ESI]
CALL 0x0002cbd0
JMP 0x000afcdd
CALL 0x00032150
MOV EDX,ESI
MOV ECX,EAX
MOV EAX,dword ptr [ESP + 0x24]
CALL 0x000288e0
MOV EAX,dword ptr [EDI + 0x4]
CMP byte ptr [EAX + 0x9],0x0
JZ 0x000aff21
SUB dword ptr [EAX + 0xc],0x1
JZ 0x000afee6
MOV dword ptr [ESP + 0xc],EBX
JMP 0x000afce8
CALL 0x000f6410
(translation_unit "int FUN_000afa70(undefined4 param_1)\n\n{\n  int *piVar1;\n  ushort *puVar2;\n  undefined4 uVar3;\n  bool bVar4;\n  int iVar5;\n  byte bVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined1 uVar10;\n  int iVar11;\n  int iVar12;\n  int unaff_EBP;\n  int iVar13;\n  int iVar14;\n  int in_GS_OFFSET;\n  bool bVar15;\n  undefined8 uVar16;\n  int local_80;\n  int local_5c [2];\n  int local_54;\n  int local_50;\n  undefined4 local_4c;\n  undefined4 local_48;\n  int local_44;\n  int local_40;\n  int local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  undefined4 local_28;\n  uint local_24;\n  int local_20;\n  \n  uVar16 = FUN_000f5a04();\n  iVar11 = (int)((ulonglong)uVar16 >> 0x20);\n  iVar7 = (int)uVar16;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_38 = 0;\n  iVar9 = unaff_EBP + 0x47ba9;\n  if (iVar11 == 1) {\n    iVar9 = unaff_EBP + 0x48b79;\n  }\n  local_50 = 0;\n  local_40 = unaff_EBP + 0x4adba;\n  local_3c = unaff_EBP + 0x568a2;\n  local_4c = param_1;\n  local_48 = 0;\n  *(undefined1 *)(iVar7 + 0xa1) = 1;\n  local_5c[0] = iVar7;\n  local_54 = iVar11;\n  local_44 = iVar9;\n  FUN_000c3720(local_5c,3,&local_44,0);\n  iVar5 = local_50;\n  local_80 = local_50;\n  if (local_50 != 0) goto LAB_000afce8;\n  iVar13 = iVar11 * 0x10;\n  iVar14 = iVar13 + *(int *)(iVar7 + 0x10);\n  iVar12 = *(int *)(iVar14 + 4);\n  if (iVar12 == 0) {\n    puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e);\n    *puVar2 = *puVar2 | 1;\n    goto LAB_000afd0b;\n  }\n  if (*(char *)(iVar12 + 9) != '\0') {\n    FUN_0002cb40();\n    iVar12 = *(int *)(iVar14 + 4);\n  }\n  bVar4 = false;\n  if (*(char *)(iVar12 + 8) == '\0') {\n    local_80 = FUN_0007e3b0();\n    if (local_80 == 0) {\n      bVar4 = true;\n      goto LAB_000afb5f;\n    }\n    FUN_00032150();\n    FUN_000288e0();\n    if (*(char *)(*(int *)(iVar14 + 4) + 9) != '\0') {\n      piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }\n  }\n  else {\nLAB_000afb5f:\n    iVar12 = 0;\n    do {\n      iVar12 = iVar12 + 1;\n      FUN_00038620();\n    } while (iVar12 != 5);\n    if ((*(byte *)(iVar7 + 0x1f) & 2) != 0) {\n      local_34 = 0;\n      local_30 = 0;\n      local_2c = 0;\n      local_28 = 0;\n      local_24 = 0;\n    }\n    **(undefined4 **)(iVar14 + 0xc) = local_34;\n    if (local_24 == 0) {\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 4;\n      bVar6 = *(byte *)(iVar7 + 0x4a);\nLAB_000afd44:\n      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;\n      iVar8 = *(int *)(iVar14 + 0xc);\n      iVar12 = *(int *)(iVar8 + 0x50);\njoined_r0x000afbdd:\n      if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }\n      *(char *)(iVar8 + 0x4c) = (char)local_30;\n      bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      if (bVar6 == 0) {\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }\n      if (4 < bVar6) {\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iVar11 == 0) && (3 < local_30)) {\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }\n      iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);\n      uVar3 = *(undefined4 *)(iVar7 + 0x13c);\n      *(undefined4 *)(iVar7 + 0x13c) = 0;\n      local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);\n      *(undefined4 *)(iVar7 + 0x13c) = uVar3;\n      if (local_80 == 0) {\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 1;\n      iVar9 = *(int *)(iVar14 + 4);\n      local_80 = iVar5;\n    }\n    else {\n      if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }\n      bVar6 = *(byte *)(iVar7 + 0x4a);\n      if (local_24 == bVar6) goto LAB_000afd44;\n      FUN_000288e0();\n      local_80 = 1;\nLAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (bVar4) {\n      FUN_00086700();\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (*(char *)(iVar9 + 9) != '\0') {\n      piVar1 = (int *)(iVar9 + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        FUN_0002cbd0();\n      }\n    }\n    if (local_80 == 0) goto LAB_000afd0b;\n  }\nLAB_000afce8:\n  if (((local_80 == 7) || (local_80 == 0xc0a)) && ((*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0)) {\n    FUN_00028380();\n  }\n  FUN_0003b710();\nLAB_000afd0b:\n  *(undefined1 *)(iVar7 + 0xa1) = 0;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f6410();\n  }\n  return local_80;\n}\n\n" (function_definition "int FUN_000afa70(undefined4 param_1)\n\n{\n  int *piVar1;\n  ushort *puVar2;\n  undefined4 uVar3;\n  bool bVar4;\n  int iVar5;\n  byte bVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined1 uVar10;\n  int iVar11;\n  int iVar12;\n  int unaff_EBP;\n  int iVar13;\n  int iVar14;\n  int in_GS_OFFSET;\n  bool bVar15;\n  undefined8 uVar16;\n  int local_80;\n  int local_5c [2];\n  int local_54;\n  int local_50;\n  undefined4 local_4c;\n  undefined4 local_48;\n  int local_44;\n  int local_40;\n  int local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  undefined4 local_28;\n  uint local_24;\n  int local_20;\n  \n  uVar16 = FUN_000f5a04();\n  iVar11 = (int)((ulonglong)uVar16 >> 0x20);\n  iVar7 = (int)uVar16;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_38 = 0;\n  iVar9 = unaff_EBP + 0x47ba9;\n  if (iVar11 == 1) {\n    iVar9 = unaff_EBP + 0x48b79;\n  }\n  local_50 = 0;\n  local_40 = unaff_EBP + 0x4adba;\n  local_3c = unaff_EBP + 0x568a2;\n  local_4c = param_1;\n  local_48 = 0;\n  *(undefined1 *)(iVar7 + 0xa1) = 1;\n  local_5c[0] = iVar7;\n  local_54 = iVar11;\n  local_44 = iVar9;\n  FUN_000c3720(local_5c,3,&local_44,0);\n  iVar5 = local_50;\n  local_80 = local_50;\n  if (local_50 != 0) goto LAB_000afce8;\n  iVar13 = iVar11 * 0x10;\n  iVar14 = iVar13 + *(int *)(iVar7 + 0x10);\n  iVar12 = *(int *)(iVar14 + 4);\n  if (iVar12 == 0) {\n    puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e);\n    *puVar2 = *puVar2 | 1;\n    goto LAB_000afd0b;\n  }\n  if (*(char *)(iVar12 + 9) != '\0') {\n    FUN_0002cb40();\n    iVar12 = *(int *)(iVar14 + 4);\n  }\n  bVar4 = false;\n  if (*(char *)(iVar12 + 8) == '\0') {\n    local_80 = FUN_0007e3b0();\n    if (local_80 == 0) {\n      bVar4 = true;\n      goto LAB_000afb5f;\n    }\n    FUN_00032150();\n    FUN_000288e0();\n    if (*(char *)(*(int *)(iVar14 + 4) + 9) != '\0') {\n      piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }\n  }\n  else {\nLAB_000afb5f:\n    iVar12 = 0;\n    do {\n      iVar12 = iVar12 + 1;\n      FUN_00038620();\n    } while (iVar12 != 5);\n    if ((*(byte *)(iVar7 + 0x1f) & 2) != 0) {\n      local_34 = 0;\n      local_30 = 0;\n      local_2c = 0;\n      local_28 = 0;\n      local_24 = 0;\n    }\n    **(undefined4 **)(iVar14 + 0xc) = local_34;\n    if (local_24 == 0) {\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 4;\n      bVar6 = *(byte *)(iVar7 + 0x4a);\nLAB_000afd44:\n      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;\n      iVar8 = *(int *)(iVar14 + 0xc);\n      iVar12 = *(int *)(iVar8 + 0x50);\njoined_r0x000afbdd:\n      if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }\n      *(char *)(iVar8 + 0x4c) = (char)local_30;\n      bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      if (bVar6 == 0) {\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }\n      if (4 < bVar6) {\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iVar11 == 0) && (3 < local_30)) {\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }\n      iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);\n      uVar3 = *(undefined4 *)(iVar7 + 0x13c);\n      *(undefined4 *)(iVar7 + 0x13c) = 0;\n      local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);\n      *(undefined4 *)(iVar7 + 0x13c) = uVar3;\n      if (local_80 == 0) {\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 1;\n      iVar9 = *(int *)(iVar14 + 4);\n      local_80 = iVar5;\n    }\n    else {\n      if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }\n      bVar6 = *(byte *)(iVar7 + 0x4a);\n      if (local_24 == bVar6) goto LAB_000afd44;\n      FUN_000288e0();\n      local_80 = 1;\nLAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (bVar4) {\n      FUN_00086700();\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (*(char *)(iVar9 + 9) != '\0') {\n      piVar1 = (int *)(iVar9 + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        FUN_0002cbd0();\n      }\n    }\n    if (local_80 == 0) goto LAB_000afd0b;\n  }\nLAB_000afce8:\n  if (((local_80 == 7) || (local_80 == 0xc0a)) && ((*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0)) {\n    FUN_00028380();\n  }\n  FUN_0003b710();\nLAB_000afd0b:\n  *(undefined1 *)(iVar7 + 0xa1) = 0;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f6410();\n  }\n  return local_80;\n}" primitive_type (function_declarator "FUN_000afa70(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  ushort *puVar2;\n  undefined4 uVar3;\n  bool bVar4;\n  int iVar5;\n  byte bVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined1 uVar10;\n  int iVar11;\n  int iVar12;\n  int unaff_EBP;\n  int iVar13;\n  int iVar14;\n  int in_GS_OFFSET;\n  bool bVar15;\n  undefined8 uVar16;\n  int local_80;\n  int local_5c [2];\n  int local_54;\n  int local_50;\n  undefined4 local_4c;\n  undefined4 local_48;\n  int local_44;\n  int local_40;\n  int local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  undefined4 local_28;\n  uint local_24;\n  int local_20;\n  \n  uVar16 = FUN_000f5a04();\n  iVar11 = (int)((ulonglong)uVar16 >> 0x20);\n  iVar7 = (int)uVar16;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_38 = 0;\n  iVar9 = unaff_EBP + 0x47ba9;\n  if (iVar11 == 1) {\n    iVar9 = unaff_EBP + 0x48b79;\n  }\n  local_50 = 0;\n  local_40 = unaff_EBP + 0x4adba;\n  local_3c = unaff_EBP + 0x568a2;\n  local_4c = param_1;\n  local_48 = 0;\n  *(undefined1 *)(iVar7 + 0xa1) = 1;\n  local_5c[0] = iVar7;\n  local_54 = iVar11;\n  local_44 = iVar9;\n  FUN_000c3720(local_5c,3,&local_44,0);\n  iVar5 = local_50;\n  local_80 = local_50;\n  if (local_50 != 0) goto LAB_000afce8;\n  iVar13 = iVar11 * 0x10;\n  iVar14 = iVar13 + *(int *)(iVar7 + 0x10);\n  iVar12 = *(int *)(iVar14 + 4);\n  if (iVar12 == 0) {\n    puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e);\n    *puVar2 = *puVar2 | 1;\n    goto LAB_000afd0b;\n  }\n  if (*(char *)(iVar12 + 9) != '\0') {\n    FUN_0002cb40();\n    iVar12 = *(int *)(iVar14 + 4);\n  }\n  bVar4 = false;\n  if (*(char *)(iVar12 + 8) == '\0') {\n    local_80 = FUN_0007e3b0();\n    if (local_80 == 0) {\n      bVar4 = true;\n      goto LAB_000afb5f;\n    }\n    FUN_00032150();\n    FUN_000288e0();\n    if (*(char *)(*(int *)(iVar14 + 4) + 9) != '\0') {\n      piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }\n  }\n  else {\nLAB_000afb5f:\n    iVar12 = 0;\n    do {\n      iVar12 = iVar12 + 1;\n      FUN_00038620();\n    } while (iVar12 != 5);\n    if ((*(byte *)(iVar7 + 0x1f) & 2) != 0) {\n      local_34 = 0;\n      local_30 = 0;\n      local_2c = 0;\n      local_28 = 0;\n      local_24 = 0;\n    }\n    **(undefined4 **)(iVar14 + 0xc) = local_34;\n    if (local_24 == 0) {\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 4;\n      bVar6 = *(byte *)(iVar7 + 0x4a);\nLAB_000afd44:\n      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;\n      iVar8 = *(int *)(iVar14 + 0xc);\n      iVar12 = *(int *)(iVar8 + 0x50);\njoined_r0x000afbdd:\n      if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }\n      *(char *)(iVar8 + 0x4c) = (char)local_30;\n      bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      if (bVar6 == 0) {\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }\n      if (4 < bVar6) {\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iVar11 == 0) && (3 < local_30)) {\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }\n      iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);\n      uVar3 = *(undefined4 *)(iVar7 + 0x13c);\n      *(undefined4 *)(iVar7 + 0x13c) = 0;\n      local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);\n      *(undefined4 *)(iVar7 + 0x13c) = uVar3;\n      if (local_80 == 0) {\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 1;\n      iVar9 = *(int *)(iVar14 + 4);\n      local_80 = iVar5;\n    }\n    else {\n      if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }\n      bVar6 = *(byte *)(iVar7 + 0x4a);\n      if (local_24 == bVar6) goto LAB_000afd44;\n      FUN_000288e0();\n      local_80 = 1;\nLAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (bVar4) {\n      FUN_00086700();\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (*(char *)(iVar9 + 9) != '\0') {\n      piVar1 = (int *)(iVar9 + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        FUN_0002cbd0();\n      }\n    }\n    if (local_80 == 0) goto LAB_000afd0b;\n  }\nLAB_000afce8:\n  if (((local_80 == 7) || (local_80 == 0xc0a)) && ((*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0)) {\n    FUN_00028380();\n  }\n  FUN_0003b710();\nLAB_000afd0b:\n  *(undefined1 *)(iVar7 + 0xa1) = 0;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f6410();\n  }\n  return local_80;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "ushort *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "undefined1 uVar10;" type_identifier identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar15;" primitive_type identifier ;) (declaration "undefined8 uVar16;" type_identifier identifier ;) (declaration "int local_80;" primitive_type identifier ;) (declaration "int local_5c [2];" primitive_type (array_declarator "local_5c [2]" identifier [ number_literal ]) ;) (declaration "int local_54;" primitive_type identifier ;) (declaration "int local_50;" primitive_type identifier ;) (declaration "undefined4 local_4c;" type_identifier identifier ;) (declaration "undefined4 local_48;" type_identifier identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "undefined4 local_38;" type_identifier identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "uint local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "uVar16 = FUN_000f5a04();" (assignment_expression "uVar16 = FUN_000f5a04()" identifier = (call_expression "FUN_000f5a04()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar11 = (int)((ulonglong)uVar16 >> 0x20);" (assignment_expression "iVar11 = (int)((ulonglong)uVar16 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar16 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar16 >> 0x20)" ( (binary_expression "(ulonglong)uVar16 >> 0x20" (cast_expression "(ulonglong)uVar16" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "iVar7 = (int)uVar16;" (assignment_expression "iVar7 = (int)uVar16" identifier = (cast_expression "(int)uVar16" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "iVar9 = unaff_EBP + 0x47ba9;" (assignment_expression "iVar9 = unaff_EBP + 0x47ba9" identifier = (binary_expression "unaff_EBP + 0x47ba9" identifier + number_literal)) ;) (if_statement "if (iVar11 == 1) {\n    iVar9 = unaff_EBP + 0x48b79;\n  }" if (parenthesized_expression "(iVar11 == 1)" ( (binary_expression "iVar11 == 1" identifier == number_literal) )) (compound_statement "{\n    iVar9 = unaff_EBP + 0x48b79;\n  }" { (expression_statement "iVar9 = unaff_EBP + 0x48b79;" (assignment_expression "iVar9 = unaff_EBP + 0x48b79" identifier = (binary_expression "unaff_EBP + 0x48b79" identifier + number_literal)) ;) })) (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" identifier = number_literal) ;) (expression_statement "local_40 = unaff_EBP + 0x4adba;" (assignment_expression "local_40 = unaff_EBP + 0x4adba" identifier = (binary_expression "unaff_EBP + 0x4adba" identifier + number_literal)) ;) (expression_statement "local_3c = unaff_EBP + 0x568a2;" (assignment_expression "local_3c = unaff_EBP + 0x568a2" identifier = (binary_expression "unaff_EBP + 0x568a2" identifier + number_literal)) ;) (expression_statement "local_4c = param_1;" (assignment_expression "local_4c = param_1" identifier = identifier) ;) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (expression_statement "*(undefined1 *)(iVar7 + 0xa1) = 1;" (assignment_expression "*(undefined1 *)(iVar7 + 0xa1) = 1" (pointer_expression "*(undefined1 *)(iVar7 + 0xa1)" * (cast_expression "(undefined1 *)(iVar7 + 0xa1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0xa1)" ( (binary_expression "iVar7 + 0xa1" identifier + number_literal) )))) = number_literal) ;) (expression_statement "local_5c[0] = iVar7;" (assignment_expression "local_5c[0] = iVar7" (subscript_expression "local_5c[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_54 = iVar11;" (assignment_expression "local_54 = iVar11" identifier = identifier) ;) (expression_statement "local_44 = iVar9;" (assignment_expression "local_44 = iVar9" identifier = identifier) ;) (expression_statement "FUN_000c3720(local_5c,3,&local_44,0);" (call_expression "FUN_000c3720(local_5c,3,&local_44,0)" identifier (argument_list "(local_5c,3,&local_44,0)" ( identifier , number_literal , (pointer_expression "&local_44" & identifier) , number_literal ))) ;) (expression_statement "iVar5 = local_50;" (assignment_expression "iVar5 = local_50" identifier = identifier) ;) (expression_statement "local_80 = local_50;" (assignment_expression "local_80 = local_50" identifier = identifier) ;) (if_statement "if (local_50 != 0) goto LAB_000afce8;" if (parenthesized_expression "(local_50 != 0)" ( (binary_expression "local_50 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000afce8;" goto statement_identifier ;)) (expression_statement "iVar13 = iVar11 * 0x10;" (assignment_expression "iVar13 = iVar11 * 0x10" identifier = (binary_expression "iVar11 * 0x10" identifier * number_literal)) ;) (expression_statement "iVar14 = iVar13 + *(int *)(iVar7 + 0x10);" (assignment_expression "iVar14 = iVar13 + *(int *)(iVar7 + 0x10)" identifier = (binary_expression "iVar13 + *(int *)(iVar7 + 0x10)" identifier + (pointer_expression "*(int *)(iVar7 + 0x10)" * (cast_expression "(int *)(iVar7 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x10)" ( (binary_expression "iVar7 + 0x10" identifier + number_literal) )))))) ;) (expression_statement "iVar12 = *(int *)(iVar14 + 4);" (assignment_expression "iVar12 = *(int *)(iVar14 + 4)" identifier = (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) ))))) ;) (if_statement "if (iVar12 == 0) {\n    puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e);\n    *puVar2 = *puVar2 | 1;\n    goto LAB_000afd0b;\n  }" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e);\n    *puVar2 = *puVar2 | 1;\n    goto LAB_000afd0b;\n  }" { (expression_statement "puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e);" (assignment_expression "puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e)" identifier = (cast_expression "(ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e)" ( (binary_expression "*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e" (pointer_expression "*(int *)(*(int *)(iVar7 + 0x10) + 0x1c)" * (cast_expression "(int *)(*(int *)(iVar7 + 0x10) + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar7 + 0x10) + 0x1c)" ( (binary_expression "*(int *)(iVar7 + 0x10) + 0x1c" (pointer_expression "*(int *)(iVar7 + 0x10)" * (cast_expression "(int *)(iVar7 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x10)" ( (binary_expression "iVar7 + 0x10" identifier + number_literal) )))) + number_literal) )))) + number_literal) )))) ;) (expression_statement "*puVar2 = *puVar2 | 1;" (assignment_expression "*puVar2 = *puVar2 | 1" (pointer_expression "*puVar2" * identifier) = (binary_expression "*puVar2 | 1" (pointer_expression "*puVar2" * identifier) | number_literal)) ;) (goto_statement "goto LAB_000afd0b;" goto statement_identifier ;) })) (if_statement "if (*(char *)(iVar12 + 9) != '\0') {\n    FUN_0002cb40();\n    iVar12 = *(int *)(iVar14 + 4);\n  }" if (parenthesized_expression "(*(char *)(iVar12 + 9) != '\0')" ( (binary_expression "*(char *)(iVar12 + 9) != '\0'" (pointer_expression "*(char *)(iVar12 + 9)" * (cast_expression "(char *)(iVar12 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 9)" ( (binary_expression "iVar12 + 9" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0002cb40();\n    iVar12 = *(int *)(iVar14 + 4);\n  }" { (expression_statement "FUN_0002cb40();" (call_expression "FUN_0002cb40()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar12 = *(int *)(iVar14 + 4);" (assignment_expression "iVar12 = *(int *)(iVar14 + 4)" identifier = (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) ))))) ;) })) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" identifier = false) ;) (if_statement "if (*(char *)(iVar12 + 8) == '\0') {\n    local_80 = FUN_0007e3b0();\n    if (local_80 == 0) {\n      bVar4 = true;\n      goto LAB_000afb5f;\n    }\n    FUN_00032150();\n    FUN_000288e0();\n    if (*(char *)(*(int *)(iVar14 + 4) + 9) != '\0') {\n      piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }\n  }\n  else {\nLAB_000afb5f:\n    iVar12 = 0;\n    do {\n      iVar12 = iVar12 + 1;\n      FUN_00038620();\n    } while (iVar12 != 5);\n    if ((*(byte *)(iVar7 + 0x1f) & 2) != 0) {\n      local_34 = 0;\n      local_30 = 0;\n      local_2c = 0;\n      local_28 = 0;\n      local_24 = 0;\n    }\n    **(undefined4 **)(iVar14 + 0xc) = local_34;\n    if (local_24 == 0) {\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 4;\n      bVar6 = *(byte *)(iVar7 + 0x4a);\nLAB_000afd44:\n      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;\n      iVar8 = *(int *)(iVar14 + 0xc);\n      iVar12 = *(int *)(iVar8 + 0x50);\njoined_r0x000afbdd:\n      if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }\n      *(char *)(iVar8 + 0x4c) = (char)local_30;\n      bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      if (bVar6 == 0) {\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }\n      if (4 < bVar6) {\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iVar11 == 0) && (3 < local_30)) {\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }\n      iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);\n      uVar3 = *(undefined4 *)(iVar7 + 0x13c);\n      *(undefined4 *)(iVar7 + 0x13c) = 0;\n      local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);\n      *(undefined4 *)(iVar7 + 0x13c) = uVar3;\n      if (local_80 == 0) {\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 1;\n      iVar9 = *(int *)(iVar14 + 4);\n      local_80 = iVar5;\n    }\n    else {\n      if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }\n      bVar6 = *(byte *)(iVar7 + 0x4a);\n      if (local_24 == bVar6) goto LAB_000afd44;\n      FUN_000288e0();\n      local_80 = 1;\nLAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (bVar4) {\n      FUN_00086700();\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (*(char *)(iVar9 + 9) != '\0') {\n      piVar1 = (int *)(iVar9 + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        FUN_0002cbd0();\n      }\n    }\n    if (local_80 == 0) goto LAB_000afd0b;\n  }" if (parenthesized_expression "(*(char *)(iVar12 + 8) == '\0')" ( (binary_expression "*(char *)(iVar12 + 8) == '\0'" (pointer_expression "*(char *)(iVar12 + 8)" * (cast_expression "(char *)(iVar12 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 8)" ( (binary_expression "iVar12 + 8" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_80 = FUN_0007e3b0();\n    if (local_80 == 0) {\n      bVar4 = true;\n      goto LAB_000afb5f;\n    }\n    FUN_00032150();\n    FUN_000288e0();\n    if (*(char *)(*(int *)(iVar14 + 4) + 9) != '\0') {\n      piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }\n  }" { (expression_statement "local_80 = FUN_0007e3b0();" (assignment_expression "local_80 = FUN_0007e3b0()" identifier = (call_expression "FUN_0007e3b0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (local_80 == 0) {\n      bVar4 = true;\n      goto LAB_000afb5f;\n    }" if (parenthesized_expression "(local_80 == 0)" ( (binary_expression "local_80 == 0" identifier == number_literal) )) (compound_statement "{\n      bVar4 = true;\n      goto LAB_000afb5f;\n    }" { (expression_statement "bVar4 = true;" (assignment_expression "bVar4 = true" identifier = true) ;) (goto_statement "goto LAB_000afb5f;" goto statement_identifier ;) })) (expression_statement "FUN_00032150();" (call_expression "FUN_00032150()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_000288e0();" (call_expression "FUN_000288e0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(char *)(*(int *)(iVar14 + 4) + 9) != '\0') {\n      piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }" if (parenthesized_expression "(*(char *)(*(int *)(iVar14 + 4) + 9) != '\0')" ( (binary_expression "*(char *)(*(int *)(iVar14 + 4) + 9) != '\0'" (pointer_expression "*(char *)(*(int *)(iVar14 + 4) + 9)" * (cast_expression "(char *)(*(int *)(iVar14 + 4) + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar14 + 4) + 9)" ( (binary_expression "*(int *)(iVar14 + 4) + 9" (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) )))) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }" { (expression_statement "piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc);" (assignment_expression "piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc)" identifier = (cast_expression "(int *)(*(int *)(iVar14 + 4) + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar14 + 4) + 0xc)" ( (binary_expression "*(int *)(iVar14 + 4) + 0xc" (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (if_statement "if (*piVar1 != 0) goto LAB_000afce8;" if (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) (goto_statement "goto LAB_000afce8;" goto statement_identifier ;)) (goto_statement "goto LAB_000afef0;" goto statement_identifier ;) })) }) (else_clause "else {\nLAB_000afb5f:\n    iVar12 = 0;\n    do {\n      iVar12 = iVar12 + 1;\n      FUN_00038620();\n    } while (iVar12 != 5);\n    if ((*(byte *)(iVar7 + 0x1f) & 2) != 0) {\n      local_34 = 0;\n      local_30 = 0;\n      local_2c = 0;\n      local_28 = 0;\n      local_24 = 0;\n    }\n    **(undefined4 **)(iVar14 + 0xc) = local_34;\n    if (local_24 == 0) {\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 4;\n      bVar6 = *(byte *)(iVar7 + 0x4a);\nLAB_000afd44:\n      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;\n      iVar8 = *(int *)(iVar14 + 0xc);\n      iVar12 = *(int *)(iVar8 + 0x50);\njoined_r0x000afbdd:\n      if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }\n      *(char *)(iVar8 + 0x4c) = (char)local_30;\n      bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      if (bVar6 == 0) {\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }\n      if (4 < bVar6) {\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iVar11 == 0) && (3 < local_30)) {\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }\n      iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);\n      uVar3 = *(undefined4 *)(iVar7 + 0x13c);\n      *(undefined4 *)(iVar7 + 0x13c) = 0;\n      local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);\n      *(undefined4 *)(iVar7 + 0x13c) = uVar3;\n      if (local_80 == 0) {\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 1;\n      iVar9 = *(int *)(iVar14 + 4);\n      local_80 = iVar5;\n    }\n    else {\n      if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }\n      bVar6 = *(byte *)(iVar7 + 0x4a);\n      if (local_24 == bVar6) goto LAB_000afd44;\n      FUN_000288e0();\n      local_80 = 1;\nLAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (bVar4) {\n      FUN_00086700();\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (*(char *)(iVar9 + 9) != '\0') {\n      piVar1 = (int *)(iVar9 + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        FUN_0002cbd0();\n      }\n    }\n    if (local_80 == 0) goto LAB_000afd0b;\n  }" else (compound_statement "{\nLAB_000afb5f:\n    iVar12 = 0;\n    do {\n      iVar12 = iVar12 + 1;\n      FUN_00038620();\n    } while (iVar12 != 5);\n    if ((*(byte *)(iVar7 + 0x1f) & 2) != 0) {\n      local_34 = 0;\n      local_30 = 0;\n      local_2c = 0;\n      local_28 = 0;\n      local_24 = 0;\n    }\n    **(undefined4 **)(iVar14 + 0xc) = local_34;\n    if (local_24 == 0) {\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 4;\n      bVar6 = *(byte *)(iVar7 + 0x4a);\nLAB_000afd44:\n      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;\n      iVar8 = *(int *)(iVar14 + 0xc);\n      iVar12 = *(int *)(iVar8 + 0x50);\njoined_r0x000afbdd:\n      if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }\n      *(char *)(iVar8 + 0x4c) = (char)local_30;\n      bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      if (bVar6 == 0) {\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }\n      if (4 < bVar6) {\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iVar11 == 0) && (3 < local_30)) {\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }\n      iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);\n      uVar3 = *(undefined4 *)(iVar7 + 0x13c);\n      *(undefined4 *)(iVar7 + 0x13c) = 0;\n      local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);\n      *(undefined4 *)(iVar7 + 0x13c) = uVar3;\n      if (local_80 == 0) {\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 1;\n      iVar9 = *(int *)(iVar14 + 4);\n      local_80 = iVar5;\n    }\n    else {\n      if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }\n      bVar6 = *(byte *)(iVar7 + 0x4a);\n      if (local_24 == bVar6) goto LAB_000afd44;\n      FUN_000288e0();\n      local_80 = 1;\nLAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (bVar4) {\n      FUN_00086700();\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (*(char *)(iVar9 + 9) != '\0') {\n      piVar1 = (int *)(iVar9 + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        FUN_0002cbd0();\n      }\n    }\n    if (local_80 == 0) goto LAB_000afd0b;\n  }" { (labeled_statement "LAB_000afb5f:\n    iVar12 = 0;" statement_identifier : (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;)) (do_statement "do {\n      iVar12 = iVar12 + 1;\n      FUN_00038620();\n    } while (iVar12 != 5);" do (compound_statement "{\n      iVar12 = iVar12 + 1;\n      FUN_00038620();\n    }" { (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00038620();" (call_expression "FUN_00038620()" identifier (argument_list "()" ( ))) ;) }) while (parenthesized_expression "(iVar12 != 5)" ( (binary_expression "iVar12 != 5" identifier != number_literal) )) ;) (if_statement "if ((*(byte *)(iVar7 + 0x1f) & 2) != 0) {\n      local_34 = 0;\n      local_30 = 0;\n      local_2c = 0;\n      local_28 = 0;\n      local_24 = 0;\n    }" if (parenthesized_expression "((*(byte *)(iVar7 + 0x1f) & 2) != 0)" ( (binary_expression "(*(byte *)(iVar7 + 0x1f) & 2) != 0" (parenthesized_expression "(*(byte *)(iVar7 + 0x1f) & 2)" ( (binary_expression "*(byte *)(iVar7 + 0x1f) & 2" (pointer_expression "*(byte *)(iVar7 + 0x1f)" * (cast_expression "(byte *)(iVar7 + 0x1f)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x1f)" ( (binary_expression "iVar7 + 0x1f" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      local_34 = 0;\n      local_30 = 0;\n      local_2c = 0;\n      local_28 = 0;\n      local_24 = 0;\n    }" { (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) })) (expression_statement "**(undefined4 **)(iVar14 + 0xc) = local_34;" (assignment_expression "**(undefined4 **)(iVar14 + 0xc) = local_34" (pointer_expression "**(undefined4 **)(iVar14 + 0xc)" * (pointer_expression "*(undefined4 **)(iVar14 + 0xc)" * (cast_expression "(undefined4 **)(iVar14 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar14 + 0xc)" ( (binary_expression "iVar14 + 0xc" identifier + number_literal) ))))) = identifier) ;) (if_statement "if (local_24 == 0) {\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 4;\n      bVar6 = *(byte *)(iVar7 + 0x4a);\nLAB_000afd44:\n      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;\n      iVar8 = *(int *)(iVar14 + 0xc);\n      iVar12 = *(int *)(iVar8 + 0x50);\njoined_r0x000afbdd:\n      if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }\n      *(char *)(iVar8 + 0x4c) = (char)local_30;\n      bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      if (bVar6 == 0) {\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }\n      if (4 < bVar6) {\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iVar11 == 0) && (3 < local_30)) {\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }\n      iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);\n      uVar3 = *(undefined4 *)(iVar7 + 0x13c);\n      *(undefined4 *)(iVar7 + 0x13c) = 0;\n      local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);\n      *(undefined4 *)(iVar7 + 0x13c) = uVar3;\n      if (local_80 == 0) {\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 1;\n      iVar9 = *(int *)(iVar14 + 4);\n      local_80 = iVar5;\n    }\n    else {\n      if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }\n      bVar6 = *(byte *)(iVar7 + 0x4a);\n      if (local_24 == bVar6) goto LAB_000afd44;\n      FUN_000288e0();\n      local_80 = 1;\nLAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);\n    }" if (parenthesized_expression "(local_24 == 0)" ( (binary_expression "local_24 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 4;\n      bVar6 = *(byte *)(iVar7 + 0x4a);\nLAB_000afd44:\n      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;\n      iVar8 = *(int *)(iVar14 + 0xc);\n      iVar12 = *(int *)(iVar8 + 0x50);\njoined_r0x000afbdd:\n      if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }\n      *(char *)(iVar8 + 0x4c) = (char)local_30;\n      bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      if (bVar6 == 0) {\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }\n      if (4 < bVar6) {\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iVar11 == 0) && (3 < local_30)) {\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }\n      iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);\n      uVar3 = *(undefined4 *)(iVar7 + 0x13c);\n      *(undefined4 *)(iVar7 + 0x13c) = 0;\n      local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);\n      *(undefined4 *)(iVar7 + 0x13c) = uVar3;\n      if (local_80 == 0) {\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 1;\n      iVar9 = *(int *)(iVar14 + 4);\n      local_80 = iVar5;\n    }" { (expression_statement "puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);" (assignment_expression "puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e)" identifier = (cast_expression "(ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e)" ( (binary_expression "*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e" (pointer_expression "*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13)" * (cast_expression "(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar7 + 0x10) + 0xc + iVar13)" ( (binary_expression "*(int *)(iVar7 + 0x10) + 0xc + iVar13" (binary_expression "*(int *)(iVar7 + 0x10) + 0xc" (pointer_expression "*(int *)(iVar7 + 0x10)" * (cast_expression "(int *)(iVar7 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x10)" ( (binary_expression "iVar7 + 0x10" identifier + number_literal) )))) + number_literal) + identifier) )))) + number_literal) )))) ;) (expression_statement "*puVar2 = *puVar2 | 4;" (assignment_expression "*puVar2 = *puVar2 | 4" (pointer_expression "*puVar2" * identifier) = (binary_expression "*puVar2 | 4" (pointer_expression "*puVar2" * identifier) | number_literal)) ;) (expression_statement "bVar6 = *(byte *)(iVar7 + 0x4a);" (assignment_expression "bVar6 = *(byte *)(iVar7 + 0x4a)" identifier = (pointer_expression "*(byte *)(iVar7 + 0x4a)" * (cast_expression "(byte *)(iVar7 + 0x4a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x4a)" ( (binary_expression "iVar7 + 0x4a" identifier + number_literal) ))))) ;) (labeled_statement "LAB_000afd44:\n      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;" statement_identifier : (expression_statement "*(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;" (assignment_expression "*(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6" (pointer_expression "*(byte *)(*(int *)(iVar14 + 0xc) + 0x4d)" * (cast_expression "(byte *)(*(int *)(iVar14 + 0xc) + 0x4d)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar14 + 0xc) + 0x4d)" ( (binary_expression "*(int *)(iVar14 + 0xc) + 0x4d" (pointer_expression "*(int *)(iVar14 + 0xc)" * (cast_expression "(int *)(iVar14 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0xc)" ( (binary_expression "iVar14 + 0xc" identifier + number_literal) )))) + number_literal) )))) = identifier) ;)) (expression_statement "iVar8 = *(int *)(iVar14 + 0xc);" (assignment_expression "iVar8 = *(int *)(iVar14 + 0xc)" identifier = (pointer_expression "*(int *)(iVar14 + 0xc)" * (cast_expression "(int *)(iVar14 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0xc)" ( (binary_expression "iVar14 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar12 = *(int *)(iVar8 + 0x50);" (assignment_expression "iVar12 = *(int *)(iVar8 + 0x50)" identifier = (pointer_expression "*(int *)(iVar8 + 0x50)" * (cast_expression "(int *)(iVar8 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x50)" ( (binary_expression "iVar8 + 0x50" identifier + number_literal) ))))) ;) (labeled_statement "joined_r0x000afbdd:\n      if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }" statement_identifier : (if_statement "if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (compound_statement "{\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }" { (if_statement "if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }" if (parenthesized_expression "(local_2c < 0)" ( (binary_expression "local_2c < 0" identifier < number_literal) )) (compound_statement "{\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }" { (expression_statement "iVar12 = -local_2c;" (assignment_expression "iVar12 = -local_2c" identifier = (unary_expression "-local_2c" - identifier)) ;) (expression_statement "bVar15 = local_2c != -0x80000000;" (assignment_expression "bVar15 = local_2c != -0x80000000" identifier = (binary_expression "local_2c != -0x80000000" identifier != number_literal)) ;) (expression_statement "local_2c = 0x7fffffff;" (assignment_expression "local_2c = 0x7fffffff" identifier = number_literal) ;) (if_statement "if (bVar15) {\n            local_2c = iVar12;\n          }" if (parenthesized_expression "(bVar15)" ( identifier )) (compound_statement "{\n            local_2c = iVar12;\n          }" { (expression_statement "local_2c = iVar12;" (assignment_expression "local_2c = iVar12" identifier = identifier) ;) })) }) (else_clause "else if (local_2c == 0) {\n          local_2c = -2000;\n        }" else (if_statement "if (local_2c == 0) {\n          local_2c = -2000;\n        }" if (parenthesized_expression "(local_2c == 0)" ( (binary_expression "local_2c == 0" identifier == number_literal) )) (compound_statement "{\n          local_2c = -2000;\n        }" { (expression_statement "local_2c = -2000;" (assignment_expression "local_2c = -2000" identifier = number_literal) ;) })))) (expression_statement "*(int *)(iVar8 + 0x50) = local_2c;" (assignment_expression "*(int *)(iVar8 + 0x50) = local_2c" (pointer_expression "*(int *)(iVar8 + 0x50)" * (cast_expression "(int *)(iVar8 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x50)" ( (binary_expression "iVar8 + 0x50" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_0002cfc0();" (call_expression "FUN_0002cfc0()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar8 = *(int *)(iVar14 + 0xc);" (assignment_expression "iVar8 = *(int *)(iVar14 + 0xc)" identifier = (pointer_expression "*(int *)(iVar14 + 0xc)" * (cast_expression "(int *)(iVar14 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0xc)" ( (binary_expression "iVar14 + 0xc" identifier + number_literal) ))))) ;) }))) (expression_statement "*(char *)(iVar8 + 0x4c) = (char)local_30;" (assignment_expression "*(char *)(iVar8 + 0x4c) = (char)local_30" (pointer_expression "*(char *)(iVar8 + 0x4c)" * (cast_expression "(char *)(iVar8 + 0x4c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x4c)" ( (binary_expression "iVar8 + 0x4c" identifier + number_literal) )))) = (cast_expression "(char)local_30" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);" (assignment_expression "bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c)" identifier = (pointer_expression "*(byte *)(*(int *)(iVar14 + 0xc) + 0x4c)" * (cast_expression "(byte *)(*(int *)(iVar14 + 0xc) + 0x4c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar14 + 0xc) + 0x4c)" ( (binary_expression "*(int *)(iVar14 + 0xc) + 0x4c" (pointer_expression "*(int *)(iVar14 + 0xc)" * (cast_expression "(int *)(iVar14 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0xc)" ( (binary_expression "iVar14 + 0xc" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (bVar6 == 0) {\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }" if (parenthesized_expression "(bVar6 == 0)" ( (binary_expression "bVar6 == 0" identifier == number_literal) )) (compound_statement "{\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }" { (expression_statement "*(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;" (assignment_expression "*(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1" (pointer_expression "*(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c)" * (cast_expression "(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar14 + 0xc) + 0x4c)" ( (binary_expression "*(int *)(iVar14 + 0xc) + 0x4c" (pointer_expression "*(int *)(iVar14 + 0xc)" * (cast_expression "(int *)(iVar14 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0xc)" ( (binary_expression "iVar14 + 0xc" identifier + number_literal) )))) + number_literal) )))) = number_literal) ;) (expression_statement "bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);" (assignment_expression "bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c)" identifier = (pointer_expression "*(byte *)(*(int *)(iVar14 + 0xc) + 0x4c)" * (cast_expression "(byte *)(*(int *)(iVar14 + 0xc) + 0x4c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar14 + 0xc) + 0x4c)" ( (binary_expression "*(int *)(iVar14 + 0xc) + 0x4c" (pointer_expression "*(int *)(iVar14 + 0xc)" * (cast_expression "(int *)(iVar14 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0xc)" ( (binary_expression "iVar14 + 0xc" identifier + number_literal) )))) + number_literal) ))))) ;) })) (if_statement "if (4 < bVar6) {\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }" if (parenthesized_expression "(4 < bVar6)" ( (binary_expression "4 < bVar6" number_literal < identifier) )) (compound_statement "{\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }" { (expression_statement "FUN_000288e0();" (call_expression "FUN_000288e0()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_80 = 1;" (assignment_expression "local_80 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_000afcbe;" goto statement_identifier ;) })) (if_statement "if ((iVar11 == 0) && (3 < local_30)) {\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }" if (parenthesized_expression "((iVar11 == 0) && (3 < local_30))" ( (binary_expression "(iVar11 == 0) && (3 < local_30)" (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) && (parenthesized_expression "(3 < local_30)" ( (binary_expression "3 < local_30" number_literal < identifier) ))) )) (compound_statement "{\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }" { (expression_statement "*(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;" (assignment_expression "*(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd" (pointer_expression "*(uint *)(iVar7 + 0x1c)" * (cast_expression "(uint *)(iVar7 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x1c)" ( (binary_expression "iVar7 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(uint *)(iVar7 + 0x1c) & 0xfffffffd" (pointer_expression "*(uint *)(iVar7 + 0x1c)" * (cast_expression "(uint *)(iVar7 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x1c)" ( (binary_expression "iVar7 + 0x1c" identifier + number_literal) )))) & number_literal)) ;) })) (expression_statement "iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);" (assignment_expression "iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9)" identifier = (call_expression "FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9)" identifier (argument_list "(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9)" ( identifier , (binary_expression "unaff_EBP + 0x5692e" identifier + number_literal) , (pointer_expression "*(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13)" * (cast_expression "(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar7 + 0x10) + iVar13)" ( (binary_expression "*(int *)(iVar7 + 0x10) + iVar13" (pointer_expression "*(int *)(iVar7 + 0x10)" * (cast_expression "(int *)(iVar7 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x10)" ( (binary_expression "iVar7 + 0x10" identifier + number_literal) )))) + identifier) )))) , identifier )))) ;) (expression_statement "uVar3 = *(undefined4 *)(iVar7 + 0x13c);" (assignment_expression "uVar3 = *(undefined4 *)(iVar7 + 0x13c)" identifier = (pointer_expression "*(undefined4 *)(iVar7 + 0x13c)" * (cast_expression "(undefined4 *)(iVar7 + 0x13c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x13c)" ( (binary_expression "iVar7 + 0x13c" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar7 + 0x13c) = 0;" (assignment_expression "*(undefined4 *)(iVar7 + 0x13c) = 0" (pointer_expression "*(undefined4 *)(iVar7 + 0x13c)" * (cast_expression "(undefined4 *)(iVar7 + 0x13c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x13c)" ( (binary_expression "iVar7 + 0x13c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);" (assignment_expression "local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0)" identifier = (call_expression "FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0)" identifier (argument_list "(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0)" ( identifier , identifier , (binary_expression "unaff_EBP + 0x13caa" identifier + number_literal) , identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(iVar7 + 0x13c) = uVar3;" (assignment_expression "*(undefined4 *)(iVar7 + 0x13c) = uVar3" (pointer_expression "*(undefined4 *)(iVar7 + 0x13c)" * (cast_expression "(undefined4 *)(iVar7 + 0x13c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x13c)" ( (binary_expression "iVar7 + 0x13c" identifier + number_literal) )))) = identifier) ;) (if_statement "if (local_80 == 0) {\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }" if (parenthesized_expression "(local_80 == 0)" ( (binary_expression "local_80 == 0" identifier == number_literal) )) (compound_statement "{\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }" { (expression_statement "local_80 = local_50;" (assignment_expression "local_80 = local_50" identifier = identifier) ;) (if_statement "if (iVar9 != 0) goto LAB_000afc8d;" if (parenthesized_expression "(iVar9 != 0)" ( (binary_expression "iVar9 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000afc8d;" goto statement_identifier ;)) (labeled_statement "LAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;" statement_identifier : (if_statement "if (local_80 != 0) goto LAB_000afc9e;" if (parenthesized_expression "(local_80 != 0)" ( (binary_expression "local_80 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000afc9e;" goto statement_identifier ;))) (expression_statement "FUN_000af930();" (call_expression "FUN_000af930()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;" if (parenthesized_expression "(*(char *)(iVar7 + 0x4d) != '\0')" ( (binary_expression "*(char *)(iVar7 + 0x4d) != '\0'" (pointer_expression "*(char *)(iVar7 + 0x4d)" * (cast_expression "(char *)(iVar7 + 0x4d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x4d)" ( (binary_expression "iVar7 + 0x4d" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000afca4;" goto statement_identifier ;)) }) (else_clause "else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }" else (compound_statement "{\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }" { (if_statement "if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }" if (parenthesized_expression "(iVar9 != 0)" ( (binary_expression "iVar9 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }" { (labeled_statement "LAB_000afc8d:\n          FUN_00026590();" statement_identifier : (expression_statement "FUN_00026590();" (call_expression "FUN_00026590()" identifier (argument_list "()" ( ))) ;)) (goto_statement "goto LAB_000afc96;" goto statement_identifier ;) })) (labeled_statement "LAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }" statement_identifier : (if_statement "if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }" if (parenthesized_expression "(*(char *)(iVar7 + 0x4d) != '\0')" ( (binary_expression "*(char *)(iVar7 + 0x4d) != '\0'" (pointer_expression "*(char *)(iVar7 + 0x4d)" * (cast_expression "(char *)(iVar7 + 0x4d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x4d)" ( (binary_expression "iVar7 + 0x4d" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }" { (labeled_statement "LAB_000afca4:\n          local_80 = 7;" statement_identifier : (expression_statement "local_80 = 7;" (assignment_expression "local_80 = 7" identifier = number_literal) ;)) (expression_statement "FUN_0003b610();" (call_expression "FUN_0003b610()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;" if (parenthesized_expression "((*(byte *)(iVar7 + 0x1f) & 8) == 0)" ( (binary_expression "(*(byte *)(iVar7 + 0x1f) & 8) == 0" (parenthesized_expression "(*(byte *)(iVar7 + 0x1f) & 8)" ( (binary_expression "*(byte *)(iVar7 + 0x1f) & 8" (pointer_expression "*(byte *)(iVar7 + 0x1f)" * (cast_expression "(byte *)(iVar7 + 0x1f)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x1f)" ( (binary_expression "iVar7 + 0x1f" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (goto_statement "goto LAB_000afcbe;" goto statement_identifier ;)) }))) (expression_statement "puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);" (assignment_expression "puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e)" identifier = (cast_expression "(ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e)" ( (binary_expression "*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e" (pointer_expression "*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13)" * (cast_expression "(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar7 + 0x10) + 0xc + iVar13)" ( (binary_expression "*(int *)(iVar7 + 0x10) + 0xc + iVar13" (binary_expression "*(int *)(iVar7 + 0x10) + 0xc" (pointer_expression "*(int *)(iVar7 + 0x10)" * (cast_expression "(int *)(iVar7 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x10)" ( (binary_expression "iVar7 + 0x10" identifier + number_literal) )))) + number_literal) + identifier) )))) + number_literal) )))) ;) (expression_statement "*puVar2 = *puVar2 | 1;" (assignment_expression "*puVar2 = *puVar2 | 1" (pointer_expression "*puVar2" * identifier) = (binary_expression "*puVar2 | 1" (pointer_expression "*puVar2" * identifier) | number_literal)) ;) (expression_statement "iVar9 = *(int *)(iVar14 + 4);" (assignment_expression "iVar9 = *(int *)(iVar14 + 4)" identifier = (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) ))))) ;) (expression_statement "local_80 = iVar5;" (assignment_expression "local_80 = iVar5" identifier = identifier) ;) }) (else_clause "else {\n      if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }\n      bVar6 = *(byte *)(iVar7 + 0x4a);\n      if (local_24 == bVar6) goto LAB_000afd44;\n      FUN_000288e0();\n      local_80 = 1;\nLAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);\n    }" else (compound_statement "{\n      if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }\n      bVar6 = *(byte *)(iVar7 + 0x4a);\n      if (local_24 == bVar6) goto LAB_000afd44;\n      FUN_000288e0();\n      local_80 = 1;\nLAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);\n    }" { (if_statement "if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }" if (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }" { (expression_statement "uVar10 = (undefined1)(local_24 & 3);" (assignment_expression "uVar10 = (undefined1)(local_24 & 3)" identifier = (call_expression "(undefined1)(local_24 & 3)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "(local_24 & 3)" ( (binary_expression "local_24 & 3" identifier & number_literal) )))) ;) (if_statement "if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }" if (parenthesized_expression "((local_24 & 3) == 0)" ( (binary_expression "(local_24 & 3) == 0" (parenthesized_expression "(local_24 & 3)" ( (binary_expression "local_24 & 3" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n          uVar10 = 1;\n        }" { (expression_statement "uVar10 = 1;" (assignment_expression "uVar10 = 1" identifier = number_literal) ;) })) (expression_statement "*(undefined1 *)(iVar7 + 0x4a) = uVar10;" (assignment_expression "*(undefined1 *)(iVar7 + 0x4a) = uVar10" (pointer_expression "*(undefined1 *)(iVar7 + 0x4a)" * (cast_expression "(undefined1 *)(iVar7 + 0x4a)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x4a)" ( (binary_expression "iVar7 + 0x4a" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;" (assignment_expression "*(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10" (pointer_expression "*(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d)" * (cast_expression "(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar14 + 0xc) + 0x4d)" ( (binary_expression "*(int *)(iVar14 + 0xc) + 0x4d" (pointer_expression "*(int *)(iVar14 + 0xc)" * (cast_expression "(int *)(iVar14 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0xc)" ( (binary_expression "iVar14 + 0xc" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) (expression_statement "iVar8 = *(int *)(iVar14 + 0xc);" (assignment_expression "iVar8 = *(int *)(iVar14 + 0xc)" identifier = (pointer_expression "*(int *)(iVar14 + 0xc)" * (cast_expression "(int *)(iVar14 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0xc)" ( (binary_expression "iVar14 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar12 = *(int *)(iVar8 + 0x50);" (assignment_expression "iVar12 = *(int *)(iVar8 + 0x50)" identifier = (pointer_expression "*(int *)(iVar8 + 0x50)" * (cast_expression "(int *)(iVar8 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x50)" ( (binary_expression "iVar8 + 0x50" identifier + number_literal) ))))) ;) (goto_statement "goto joined_r0x000afbdd;" goto statement_identifier ;) })) (expression_statement "bVar6 = *(byte *)(iVar7 + 0x4a);" (assignment_expression "bVar6 = *(byte *)(iVar7 + 0x4a)" identifier = (pointer_expression "*(byte *)(iVar7 + 0x4a)" * (cast_expression "(byte *)(iVar7 + 0x4a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x4a)" ( (binary_expression "iVar7 + 0x4a" identifier + number_literal) ))))) ;) (if_statement "if (local_24 == bVar6) goto LAB_000afd44;" if (parenthesized_expression "(local_24 == bVar6)" ( (binary_expression "local_24 == bVar6" identifier == identifier) )) (goto_statement "goto LAB_000afd44;" goto statement_identifier ;)) (expression_statement "FUN_000288e0();" (call_expression "FUN_000288e0()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_80 = 1;" (assignment_expression "local_80 = 1" identifier = number_literal) ;) (labeled_statement "LAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);" statement_identifier : (expression_statement "iVar9 = *(int *)(iVar14 + 4);" (assignment_expression "iVar9 = *(int *)(iVar14 + 4)" identifier = (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) ))))) ;)) }))) (if_statement "if (bVar4) {\n      FUN_00086700();\n      iVar9 = *(int *)(iVar14 + 4);\n    }" if (parenthesized_expression "(bVar4)" ( identifier )) (compound_statement "{\n      FUN_00086700();\n      iVar9 = *(int *)(iVar14 + 4);\n    }" { (expression_statement "FUN_00086700();" (call_expression "FUN_00086700()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar9 = *(int *)(iVar14 + 4);" (assignment_expression "iVar9 = *(int *)(iVar14 + 4)" identifier = (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) ))))) ;) })) (if_statement "if (*(char *)(iVar9 + 9) != '\0') {\n      piVar1 = (int *)(iVar9 + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        FUN_0002cbd0();\n      }\n    }" if (parenthesized_expression "(*(char *)(iVar9 + 9) != '\0')" ( (binary_expression "*(char *)(iVar9 + 9) != '\0'" (pointer_expression "*(char *)(iVar9 + 9)" * (cast_expression "(char *)(iVar9 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 9)" ( (binary_expression "iVar9 + 9" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar1 = (int *)(iVar9 + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        FUN_0002cbd0();\n      }\n    }" { (expression_statement "piVar1 = (int *)(iVar9 + 0xc);" (assignment_expression "piVar1 = (int *)(iVar9 + 0xc)" identifier = (cast_expression "(int *)(iVar9 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0xc)" ( (binary_expression "iVar9 + 0xc" identifier + number_literal) )))) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (if_statement "if (*piVar1 == 0) {\nLAB_000afef0:\n        FUN_0002cbd0();\n      }" if (parenthesized_expression "(*piVar1 == 0)" ( (binary_expression "*piVar1 == 0" (pointer_expression "*piVar1" * identifier) == number_literal) )) (compound_statement "{\nLAB_000afef0:\n        FUN_0002cbd0();\n      }" { (labeled_statement "LAB_000afef0:\n        FUN_0002cbd0();" statement_identifier : (expression_statement "FUN_0002cbd0();" (call_expression "FUN_0002cbd0()" identifier (argument_list "()" ( ))) ;)) })) })) (if_statement "if (local_80 == 0) goto LAB_000afd0b;" if (parenthesized_expression "(local_80 == 0)" ( (binary_expression "local_80 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000afd0b;" goto statement_identifier ;)) }))) (labeled_statement "LAB_000afce8:\n  if (((local_80 == 7) || (local_80 == 0xc0a)) && ((*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0)) {\n    FUN_00028380();\n  }" statement_identifier : (if_statement "if (((local_80 == 7) || (local_80 == 0xc0a)) && ((*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0)) {\n    FUN_00028380();\n  }" if (parenthesized_expression "(((local_80 == 7) || (local_80 == 0xc0a)) && ((*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0))" ( (binary_expression "((local_80 == 7) || (local_80 == 0xc0a)) && ((*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0)" (parenthesized_expression "((local_80 == 7) || (local_80 == 0xc0a))" ( (binary_expression "(local_80 == 7) || (local_80 == 0xc0a)" (parenthesized_expression "(local_80 == 7)" ( (binary_expression "local_80 == 7" identifier == number_literal) )) || (parenthesized_expression "(local_80 == 0xc0a)" ( (binary_expression "local_80 == 0xc0a" identifier == number_literal) ))) )) && (parenthesized_expression "((*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0)" ( (binary_expression "(*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0" (parenthesized_expression "(*(uint *)(iVar7 + 0x4c) & 0xffff00)" ( (binary_expression "*(uint *)(iVar7 + 0x4c) & 0xffff00" (pointer_expression "*(uint *)(iVar7 + 0x4c)" * (cast_expression "(uint *)(iVar7 + 0x4c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x4c)" ( (binary_expression "iVar7 + 0x4c" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    FUN_00028380();\n  }" { (expression_statement "FUN_00028380();" (call_expression "FUN_00028380()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "FUN_0003b710();" (call_expression "FUN_0003b710()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_000afd0b:\n  *(undefined1 *)(iVar7 + 0xa1) = 0;" statement_identifier : (expression_statement "*(undefined1 *)(iVar7 + 0xa1) = 0;" (assignment_expression "*(undefined1 *)(iVar7 + 0xa1) = 0" (pointer_expression "*(undefined1 *)(iVar7 + 0xa1)" * (cast_expression "(undefined1 *)(iVar7 + 0xa1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0xa1)" ( (binary_expression "iVar7 + 0xa1" identifier + number_literal) )))) = number_literal) ;)) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000f6410();\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                    /* WARNING: Subroutine does not return */\n    FUN_000f6410();\n  }" { comment (expression_statement "FUN_000f6410();" (call_expression "FUN_000f6410()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return local_80;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */\n\nint __regparm3 sqlite3InitOne(sqlite3 *db,int iDb,char **pzErrMsg,u32 mFlags)\n\n{\n  int *piVar1;\n  u16 *puVar2;\n  u32 *pMeta;\n  int iVar3;\n  Db *pDVar4;\n  sqlite3_xauth p_Var5;\n  uint uVar6;\n  bool bVar7;\n  int iVar8;\n  byte bVar9;\n  Schema *pSVar10;\n  char *pcVar11;\n  Btree *pBVar12;\n  u8 uVar13;\n  int iVar14;\n  int in_GS_OFFSET;\n  bool bVar15;\n  int local_80;\n  InitData initData;\n  char *azArg [4];\n  int meta [5];\n  \n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  azArg[3] = (char *)0x0;\n  pcVar11 = "sqlite_master";\n  if (iDb == 1) {\n    pcVar11 = "sqlite_temp_master";\n  }\n  initData.rc = 0;\n  azArg[1] = "1";\n  azArg[2] = "CREATE TABLE x(type text,name text,tbl_name text,rootpage int,sql text)";\n  initData.mInitFlags = mFlags;\n  initData.nInitRow = 0;\n  (db->init).busy = '\x01';\n  initData.db = db;\n  initData.pzErrMsg = pzErrMsg;\n  initData.iDb = iDb;\n  azArg[0] = pcVar11;\n  sqlite3InitCallback(&initData,3,azArg,(char **)0x0);\n  iVar8 = initData.rc;\n  local_80 = initData.rc;\n  if (initData.rc != 0) goto LAB_000afce8;\n  pDVar4 = db->aDb;\n  pBVar12 = pDVar4[iDb].pBt;\n  if (pBVar12 == (Btree *)0x0) {\n    puVar2 = &(pDVar4[1].pSchema)->schemaFlags;\n    *puVar2 = *puVar2 | 1;\n    goto LAB_000afd0b;\n  }\n  if (pBVar12->sharable != '\0') {\n    sqlite3BtreeEnter(pBVar12);\n    pBVar12 = pDVar4[iDb].pBt;\n  }\n  bVar7 = false;\n  if (pBVar12->inTrans == '\0') {\n    local_80 = sqlite3BtreeBeginTrans(pBVar12,0,(int *)0x0);\n    if (local_80 == 0) {\n      pBVar12 = pDVar4[iDb].pBt;\n      bVar7 = true;\n      goto LAB_000afb5f;\n    }\n    pcVar11 = sqlite3ErrStr(local_80);\n    sqlite3SetString(pzErrMsg,db,pcVar11);\n    pBVar12 = pDVar4[iDb].pBt;\n    if (pBVar12->sharable != '\0') {\n      piVar1 = &pBVar12->wantToLock;\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }\n  }\n  else {\nLAB_000afb5f:\n    iVar14 = 0;\n    while( true ) {\n      pMeta = (u32 *)(meta + iVar14);\n      iVar14 = iVar14 + 1;\n      sqlite3BtreeGetMeta(pBVar12,iVar14,pMeta);\n      if (iVar14 == 5) break;\n      pBVar12 = pDVar4[iDb].pBt;\n    }\n    if ((db->flags & 0x2000000) != 0) {\n      meta[0] = 0;\n      meta[1] = 0;\n      meta[2] = 0;\n      meta[3] = 0;\n      meta[4] = 0;\n    }\n    (pDVar4[iDb].pSchema)->schema_cookie = meta[0];\n    if (meta[4] == 0) {\n      puVar2 = &(db->aDb[iDb].pSchema)->schemaFlags;\n      *puVar2 = *puVar2 | 4;\n      bVar9 = db->enc;\nLAB_000afd44:\n      (pDVar4[iDb].pSchema)->enc = bVar9;\n      pSVar10 = pDVar4[iDb].pSchema;\n      iVar14 = pSVar10->cache_size;\njoined_r0x000afbdd:\n      if (iVar14 == 0) {\n        if (meta[2] < 0) {\n          iVar14 = -meta[2];\n          bVar15 = meta[2] != -0x80000000;\n          meta[2] = 0x7fffffff;\n          if (bVar15) {\n            meta[2] = iVar14;\n          }\n        }\n        else if (meta[2] == 0) {\n          meta[2] = -2000;\n        }\n        pSVar10->cache_size = meta[2];\n        sqlite3BtreeSetCacheSize(pDVar4[iDb].pBt,(pDVar4[iDb].pSchema)->cache_size);\n        pSVar10 = pDVar4[iDb].pSchema;\n      }\n      pSVar10->file_format = (u8)meta[1];\n      bVar9 = (pDVar4[iDb].pSchema)->file_format;\n      if (bVar9 == 0) {\n        (pDVar4[iDb].pSchema)->file_format = '\x01';\n        bVar9 = (pDVar4[iDb].pSchema)->file_format;\n      }\n      if (4 < bVar9) {\n        sqlite3SetString(pzErrMsg,db,"unsupported file format");\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iDb == 0) && (3 < meta[1])) {\n        *(uint *)&db->flags = (uint)db->flags & 0xfffffffd;\n      }\n      pcVar11 = sqlite3MPrintf(db,"SELECT name, rootpage, sql FROM \"%w\".%s ORDER BY rowid",\n                               db->aDb[iDb].zDbSName,pcVar11);\n      p_Var5 = db->xAuth;\n      db->xAuth = (sqlite3_xauth)0x0;\n      local_80 = sqlite3_exec(db,pcVar11,sqlite3InitCallback,&initData,(char **)0x0);\n      db->xAuth = p_Var5;\n      if (local_80 == 0) {\n        local_80 = initData.rc;\n        if (pcVar11 != (char *)0x0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        sqlite3AnalysisLoad(db,iDb);\n        if (db->mallocFailed != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (pcVar11 != (char *)0x0) {\nLAB_000afc8d:\n          sqlite3DbFreeNN(db,pcVar11);\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (db->mallocFailed != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          sqlite3ResetAllSchemasOfConnection(db);\n        }\n        if ((db->flags & 0x8000000) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = &(db->aDb[iDb].pSchema)->schemaFlags;\n      *puVar2 = *puVar2 | 1;\n      pBVar12 = pDVar4[iDb].pBt;\n      local_80 = iVar8;\n    }\n    else {\n      if (iDb == 0) {\n        uVar13 = (u8)(meta[4] & 3U);\n        if ((meta[4] & 3U) == 0) {\n          uVar13 = '\x01';\n        }\n        db->enc = uVar13;\n        pDVar4->pSchema->enc = uVar13;\n        pSVar10 = pDVar4->pSchema;\n        iVar14 = pSVar10->cache_size;\n        goto joined_r0x000afbdd;\n      }\n      bVar9 = db->enc;\n      if (meta[4] == (uint)bVar9) goto LAB_000afd44;\n      sqlite3SetString(pzErrMsg,db,\n                       "attached databases must use the same text encoding as main database");\n      local_80 = 1;\nLAB_000afcbe:\n      pBVar12 = pDVar4[iDb].pBt;\n    }\n    if (bVar7) {\n      sqlite3BtreeCommit(pBVar12);\n      pBVar12 = pDVar4[iDb].pBt;\n    }\n    if (pBVar12->sharable != '\0') {\n      piVar1 = &pBVar12->wantToLock;\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        sqlite3BtreeLeave(pBVar12);\n      }\n    }\n    if (local_80 == 0) goto LAB_000afd0b;\n  }\nLAB_000afce8:\n  if (((local_80 == 7) || (local_80 == 0xc0a)) &&\n     (uVar6._0_1_ = db->temp_store, uVar6._1_1_ = db->mallocFailed, uVar6._2_1_ = db->bBenignMalloc,\n     uVar6._3_1_ = db->dfltLockMode, (uVar6 & 0xffff00) == 0)) {\n    sqlite3OomFault(db);\n  }\n  sqlite3ResetOneSchema(db,iDb);\nLAB_000afd0b:\n  (db->init).busy = '\0';\n  if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return local_80;\n}\n\n" comment (function_definition "int __regparm3 sqlite3InitOne(sqlite3 *db,int iDb,char **pzErrMsg,u32 mFlags)\n\n{\n  int *piVar1;\n  u16 *puVar2;\n  u32 *pMeta;\n  int iVar3;\n  Db *pDVar4;\n  sqlite3_xauth p_Var5;\n  uint uVar6;\n  bool bVar7;\n  int iVar8;\n  byte bVar9;\n  Schema *pSVar10;\n  char *pcVar11;\n  Btree *pBVar12;\n  u8 uVar13;\n  int iVar14;\n  int in_GS_OFFSET;\n  bool bVar15;\n  int local_80;\n  InitData initData;\n  char *azArg [4];\n  int meta [5];\n  \n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  azArg[3] = (char *)0x0;\n  pcVar11 = "sqlite_master";\n  if (iDb == 1) {\n    pcVar11 = "sqlite_temp_master";\n  }\n  initData.rc = 0;\n  azArg[1] = "1";\n  azArg[2] = "CREATE TABLE x(type text,name text,tbl_name text,rootpage int,sql text)";\n  initData.mInitFlags = mFlags;\n  initData.nInitRow = 0;\n  (db->init).busy = '\x01';\n  initData.db = db;\n  initData.pzErrMsg = pzErrMsg;\n  initData.iDb = iDb;\n  azArg[0] = pcVar11;\n  sqlite3InitCallback(&initData,3,azArg,(char **)0x0);\n  iVar8 = initData.rc;\n  local_80 = initData.rc;\n  if (initData.rc != 0) goto LAB_000afce8;\n  pDVar4 = db->aDb;\n  pBVar12 = pDVar4[iDb].pBt;\n  if (pBVar12 == (Btree *)0x0) {\n    puVar2 = &(pDVar4[1].pSchema)->schemaFlags;\n    *puVar2 = *puVar2 | 1;\n    goto LAB_000afd0b;\n  }\n  if (pBVar12->sharable != '\0') {\n    sqlite3BtreeEnter(pBVar12);\n    pBVar12 = pDVar4[iDb].pBt;\n  }\n  bVar7 = false;\n  if (pBVar12->inTrans == '\0') {\n    local_80 = sqlite3BtreeBeginTrans(pBVar12,0,(int *)0x0);\n    if (local_80 == 0) {\n      pBVar12 = pDVar4[iDb].pBt;\n      bVar7 = true;\n      goto LAB_000afb5f;\n    }\n    pcVar11 = sqlite3ErrStr(local_80);\n    sqlite3SetString(pzErrMsg,db,pcVar11);\n    pBVar12 = pDVar4[iDb].pBt;\n    if (pBVar12->sharable != '\0') {\n      piVar1 = &pBVar12->wantToLock;\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }\n  }\n  else {\nLAB_000afb5f:\n    iVar14 = 0;\n    while( true ) {\n      pMeta = (u32 *)(meta + iVar14);\n      iVar14 = iVar14 + 1;\n      sqlite3BtreeGetMeta(pBVar12,iVar14,pMeta);\n      if (iVar14 == 5) break;\n      pBVar12 = pDVar4[iDb].pBt;\n    }\n    if ((db->flags & 0x2000000) != 0) {\n      meta[0] = 0;\n      meta[1] = 0;\n      meta[2] = 0;\n      meta[3] = 0;\n      meta[4] = 0;\n    }\n    (pDVar4[iDb].pSchema)->schema_cookie = meta[0];\n    if (meta[4] == 0) {\n      puVar2 = &(db->aDb[iDb].pSchema)->schemaFlags;\n      *puVar2 = *puVar2 | 4;\n      bVar9 = db->enc;\nLAB_000afd44:\n      (pDVar4[iDb].pSchema)->enc = bVar9;\n      pSVar10 = pDVar4[iDb].pSchema;\n      iVar14 = pSVar10->cache_size;\njoined_r0x000afbdd:\n      if (iVar14 == 0) {\n        if (meta[2] < 0) {\n          iVar14 = -meta[2];\n          bVar15 = meta[2] != -0x80000000;\n          meta[2] = 0x7fffffff;\n          if (bVar15) {\n            meta[2] = iVar14;\n          }\n        }\n        else if (meta[2] == 0) {\n          meta[2] = -2000;\n        }\n        pSVar10->cache_size = meta[2];\n        sqlite3BtreeSetCacheSize(pDVar4[iDb].pBt,(pDVar4[iDb].pSchema)->cache_size);\n        pSVar10 = pDVar4[iDb].pSchema;\n      }\n      pSVar10->file_format = (u8)meta[1];\n      bVar9 = (pDVar4[iDb].pSchema)->file_format;\n      if (bVar9 == 0) {\n        (pDVar4[iDb].pSchema)->file_format = '\x01';\n        bVar9 = (pDVar4[iDb].pSchema)->file_format;\n      }\n      if (4 < bVar9) {\n        sqlite3SetString(pzErrMsg,db,"unsupported file format");\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iDb == 0) && (3 < meta[1])) {\n        *(uint *)&db->flags = (uint)db->flags & 0xfffffffd;\n      }\n      pcVar11 = sqlite3MPrintf(db,"SELECT name, rootpage, sql FROM \"%w\".%s ORDER BY rowid",\n                               db->aDb[iDb].zDbSName,pcVar11);\n      p_Var5 = db->xAuth;\n      db->xAuth = (sqlite3_xauth)0x0;\n      local_80 = sqlite3_exec(db,pcVar11,sqlite3InitCallback,&initData,(char **)0x0);\n      db->xAuth = p_Var5;\n      if (local_80 == 0) {\n        local_80 = initData.rc;\n        if (pcVar11 != (char *)0x0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        sqlite3AnalysisLoad(db,iDb);\n        if (db->mallocFailed != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (pcVar11 != (char *)0x0) {\nLAB_000afc8d:\n          sqlite3DbFreeNN(db,pcVar11);\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (db->mallocFailed != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          sqlite3ResetAllSchemasOfConnection(db);\n        }\n        if ((db->flags & 0x8000000) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = &(db->aDb[iDb].pSchema)->schemaFlags;\n      *puVar2 = *puVar2 | 1;\n      pBVar12 = pDVar4[iDb].pBt;\n      local_80 = iVar8;\n    }\n    else {\n      if (iDb == 0) {\n        uVar13 = (u8)(meta[4] & 3U);\n        if ((meta[4] & 3U) == 0) {\n          uVar13 = '\x01';\n        }\n        db->enc = uVar13;\n        pDVar4->pSchema->enc = uVar13;\n        pSVar10 = pDVar4->pSchema;\n        iVar14 = pSVar10->cache_size;\n        goto joined_r0x000afbdd;\n      }\n      bVar9 = db->enc;\n      if (meta[4] == (uint)bVar9) goto LAB_000afd44;\n      sqlite3SetString(pzErrMsg,db,\n                       "attached databases must use the same text encoding as main database");\n      local_80 = 1;\nLAB_000afcbe:\n      pBVar12 = pDVar4[iDb].pBt;\n    }\n    if (bVar7) {\n      sqlite3BtreeCommit(pBVar12);\n      pBVar12 = pDVar4[iDb].pBt;\n    }\n    if (pBVar12->sharable != '\0') {\n      piVar1 = &pBVar12->wantToLock;\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        sqlite3BtreeLeave(pBVar12);\n      }\n    }\n    if (local_80 == 0) goto LAB_000afd0b;\n  }\nLAB_000afce8:\n  if (((local_80 == 7) || (local_80 == 0xc0a)) &&\n     (uVar6._0_1_ = db->temp_store, uVar6._1_1_ = db->mallocFailed, uVar6._2_1_ = db->bBenignMalloc,\n     uVar6._3_1_ = db->dfltLockMode, (uVar6 & 0xffff00) == 0)) {\n    sqlite3OomFault(db);\n  }\n  sqlite3ResetOneSchema(db,iDb);\nLAB_000afd0b:\n  (db->init).busy = '\0';\n  if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return local_80;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3InitOne(sqlite3 *db,int iDb,char **pzErrMsg,u32 mFlags)" identifier (parameter_list "(sqlite3 *db,int iDb,char **pzErrMsg,u32 mFlags)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "int iDb" primitive_type identifier) , (parameter_declaration "char **pzErrMsg" primitive_type (pointer_declarator "**pzErrMsg" * (pointer_declarator "*pzErrMsg" * identifier))) , (parameter_declaration "u32 mFlags" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  u16 *puVar2;\n  u32 *pMeta;\n  int iVar3;\n  Db *pDVar4;\n  sqlite3_xauth p_Var5;\n  uint uVar6;\n  bool bVar7;\n  int iVar8;\n  byte bVar9;\n  Schema *pSVar10;\n  char *pcVar11;\n  Btree *pBVar12;\n  u8 uVar13;\n  int iVar14;\n  int in_GS_OFFSET;\n  bool bVar15;\n  int local_80;\n  InitData initData;\n  char *azArg [4];\n  int meta [5];\n  \n  iVar3 = *(int *)(in_GS_OFFSET + 0x14);\n  azArg[3] = (char *)0x0;\n  pcVar11 = "sqlite_master";\n  if (iDb == 1) {\n    pcVar11 = "sqlite_temp_master";\n  }\n  initData.rc = 0;\n  azArg[1] = "1";\n  azArg[2] = "CREATE TABLE x(type text,name text,tbl_name text,rootpage int,sql text)";\n  initData.mInitFlags = mFlags;\n  initData.nInitRow = 0;\n  (db->init).busy = '\x01';\n  initData.db = db;\n  initData.pzErrMsg = pzErrMsg;\n  initData.iDb = iDb;\n  azArg[0] = pcVar11;\n  sqlite3InitCallback(&initData,3,azArg,(char **)0x0);\n  iVar8 = initData.rc;\n  local_80 = initData.rc;\n  if (initData.rc != 0) goto LAB_000afce8;\n  pDVar4 = db->aDb;\n  pBVar12 = pDVar4[iDb].pBt;\n  if (pBVar12 == (Btree *)0x0) {\n    puVar2 = &(pDVar4[1].pSchema)->schemaFlags;\n    *puVar2 = *puVar2 | 1;\n    goto LAB_000afd0b;\n  }\n  if (pBVar12->sharable != '\0') {\n    sqlite3BtreeEnter(pBVar12);\n    pBVar12 = pDVar4[iDb].pBt;\n  }\n  bVar7 = false;\n  if (pBVar12->inTrans == '\0') {\n    local_80 = sqlite3BtreeBeginTrans(pBVar12,0,(int *)0x0);\n    if (local_80 == 0) {\n      pBVar12 = pDVar4[iDb].pBt;\n      bVar7 = true;\n      goto LAB_000afb5f;\n    }\n    pcVar11 = sqlite3ErrStr(local_80);\n    sqlite3SetString(pzErrMsg,db,pcVar11);\n    pBVar12 = pDVar4[iDb].pBt;\n    if (pBVar12->sharable != '\0') {\n      piVar1 = &pBVar12->wantToLock;\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }\n  }\n  else {\nLAB_000afb5f:\n    iVar14 = 0;\n    while( true ) {\n      pMeta = (u32 *)(meta + iVar14);\n      iVar14 = iVar14 + 1;\n      sqlite3BtreeGetMeta(pBVar12,iVar14,pMeta);\n      if (iVar14 == 5) break;\n      pBVar12 = pDVar4[iDb].pBt;\n    }\n    if ((db->flags & 0x2000000) != 0) {\n      meta[0] = 0;\n      meta[1] = 0;\n      meta[2] = 0;\n      meta[3] = 0;\n      meta[4] = 0;\n    }\n    (pDVar4[iDb].pSchema)->schema_cookie = meta[0];\n    if (meta[4] == 0) {\n      puVar2 = &(db->aDb[iDb].pSchema)->schemaFlags;\n      *puVar2 = *puVar2 | 4;\n      bVar9 = db->enc;\nLAB_000afd44:\n      (pDVar4[iDb].pSchema)->enc = bVar9;\n      pSVar10 = pDVar4[iDb].pSchema;\n      iVar14 = pSVar10->cache_size;\njoined_r0x000afbdd:\n      if (iVar14 == 0) {\n        if (meta[2] < 0) {\n          iVar14 = -meta[2];\n          bVar15 = meta[2] != -0x80000000;\n          meta[2] = 0x7fffffff;\n          if (bVar15) {\n            meta[2] = iVar14;\n          }\n        }\n        else if (meta[2] == 0) {\n          meta[2] = -2000;\n        }\n        pSVar10->cache_size = meta[2];\n        sqlite3BtreeSetCacheSize(pDVar4[iDb].pBt,(pDVar4[iDb].pSchema)->cache_size);\n        pSVar10 = pDVar4[iDb].pSchema;\n      }\n      pSVar10->file_format = (u8)meta[1];\n      bVar9 = (pDVar4[iDb].pSchema)->file_format;\n      if (bVar9 == 0) {\n        (pDVar4[iDb].pSchema)->file_format = '\x01';\n        bVar9 = (pDVar4[iDb].pSchema)->file_format;\n      }\n      if (4 < bVar9) {\n        sqlite3SetString(pzErrMsg,db,"unsupported file format");\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iDb == 0) && (3 < meta[1])) {\n        *(uint *)&db->flags = (uint)db->flags & 0xfffffffd;\n      }\n      pcVar11 = sqlite3MPrintf(db,"SELECT name, rootpage, sql FROM \"%w\".%s ORDER BY rowid",\n                               db->aDb[iDb].zDbSName,pcVar11);\n      p_Var5 = db->xAuth;\n      db->xAuth = (sqlite3_xauth)0x0;\n      local_80 = sqlite3_exec(db,pcVar11,sqlite3InitCallback,&initData,(char **)0x0);\n      db->xAuth = p_Var5;\n      if (local_80 == 0) {\n        local_80 = initData.rc;\n        if (pcVar11 != (char *)0x0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        sqlite3AnalysisLoad(db,iDb);\n        if (db->mallocFailed != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (pcVar11 != (char *)0x0) {\nLAB_000afc8d:\n          sqlite3DbFreeNN(db,pcVar11);\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (db->mallocFailed != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          sqlite3ResetAllSchemasOfConnection(db);\n        }\n        if ((db->flags & 0x8000000) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = &(db->aDb[iDb].pSchema)->schemaFlags;\n      *puVar2 = *puVar2 | 1;\n      pBVar12 = pDVar4[iDb].pBt;\n      local_80 = iVar8;\n    }\n    else {\n      if (iDb == 0) {\n        uVar13 = (u8)(meta[4] & 3U);\n        if ((meta[4] & 3U) == 0) {\n          uVar13 = '\x01';\n        }\n        db->enc = uVar13;\n        pDVar4->pSchema->enc = uVar13;\n        pSVar10 = pDVar4->pSchema;\n        iVar14 = pSVar10->cache_size;\n        goto joined_r0x000afbdd;\n      }\n      bVar9 = db->enc;\n      if (meta[4] == (uint)bVar9) goto LAB_000afd44;\n      sqlite3SetString(pzErrMsg,db,\n                       "attached databases must use the same text encoding as main database");\n      local_80 = 1;\nLAB_000afcbe:\n      pBVar12 = pDVar4[iDb].pBt;\n    }\n    if (bVar7) {\n      sqlite3BtreeCommit(pBVar12);\n      pBVar12 = pDVar4[iDb].pBt;\n    }\n    if (pBVar12->sharable != '\0') {\n      piVar1 = &pBVar12->wantToLock;\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        sqlite3BtreeLeave(pBVar12);\n      }\n    }\n    if (local_80 == 0) goto LAB_000afd0b;\n  }\nLAB_000afce8:\n  if (((local_80 == 7) || (local_80 == 0xc0a)) &&\n     (uVar6._0_1_ = db->temp_store, uVar6._1_1_ = db->mallocFailed, uVar6._2_1_ = db->bBenignMalloc,\n     uVar6._3_1_ = db->dfltLockMode, (uVar6 & 0xffff00) == 0)) {\n    sqlite3OomFault(db);\n  }\n  sqlite3ResetOneSchema(db,iDb);\nLAB_000afd0b:\n  (db->init).busy = '\0';\n  if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return local_80;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "u16 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "u32 *pMeta;" type_identifier (pointer_declarator "*pMeta" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "Db *pDVar4;" type_identifier (pointer_declarator "*pDVar4" * identifier) ;) (declaration "sqlite3_xauth p_Var5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "byte bVar9;" type_identifier identifier ;) (declaration "Schema *pSVar10;" type_identifier (pointer_declarator "*pSVar10" * identifier) ;) (declaration "char *pcVar11;" primitive_type (pointer_declarator "*pcVar11" * identifier) ;) (declaration "Btree *pBVar12;" type_identifier (pointer_declarator "*pBVar12" * identifier) ;) (declaration "u8 uVar13;" type_identifier identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar15;" primitive_type identifier ;) (declaration "int local_80;" primitive_type identifier ;) (declaration "InitData initData;" type_identifier identifier ;) (declaration "char *azArg [4];" primitive_type (pointer_declarator "*azArg [4]" * (array_declarator "azArg [4]" identifier [ number_literal ])) ;) (declaration "int meta [5];" primitive_type (array_declarator "meta [5]" identifier [ number_literal ]) ;) (expression_statement "iVar3 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar3 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "azArg[3] = (char *)0x0;" (assignment_expression "azArg[3] = (char *)0x0" (subscript_expression "azArg[3]" identifier [ number_literal ]) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar11 = "sqlite_master";" (assignment_expression "pcVar11 = "sqlite_master"" identifier = (string_literal ""sqlite_master"" " string_content ")) ;) (if_statement "if (iDb == 1) {\n    pcVar11 = "sqlite_temp_master";\n  }" if (parenthesized_expression "(iDb == 1)" ( (binary_expression "iDb == 1" identifier == number_literal) )) (compound_statement "{\n    pcVar11 = "sqlite_temp_master";\n  }" { (expression_statement "pcVar11 = "sqlite_temp_master";" (assignment_expression "pcVar11 = "sqlite_temp_master"" identifier = (string_literal ""sqlite_temp_master"" " string_content ")) ;) })) (expression_statement "initData.rc = 0;" (assignment_expression "initData.rc = 0" (field_expression "initData.rc" identifier . field_identifier) = number_literal) ;) (expression_statement "azArg[1] = "1";" (assignment_expression "azArg[1] = "1"" (subscript_expression "azArg[1]" identifier [ number_literal ]) = (string_literal ""1"" " string_content ")) ;) (expression_statement "azArg[2] = "CREATE TABLE x(type text,name text,tbl_name text,rootpage int,sql text)";" (assignment_expression "azArg[2] = "CREATE TABLE x(type text,name text,tbl_name text,rootpage int,sql text)"" (subscript_expression "azArg[2]" identifier [ number_literal ]) = (string_literal ""CREATE TABLE x(type text,name text,tbl_name text,rootpage int,sql text)"" " string_content ")) ;) (expression_statement "initData.mInitFlags = mFlags;" (assignment_expression "initData.mInitFlags = mFlags" (field_expression "initData.mInitFlags" identifier . field_identifier) = identifier) ;) (expression_statement "initData.nInitRow = 0;" (assignment_expression "initData.nInitRow = 0" (field_expression "initData.nInitRow" identifier . field_identifier) = number_literal) ;) (expression_statement "(db->init).busy = '\x01';" (assignment_expression "(db->init).busy = '\x01'" (field_expression "(db->init).busy" (parenthesized_expression "(db->init)" ( (field_expression "db->init" identifier -> field_identifier) )) . field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "initData.db = db;" (assignment_expression "initData.db = db" (field_expression "initData.db" identifier . field_identifier) = identifier) ;) (expression_statement "initData.pzErrMsg = pzErrMsg;" (assignment_expression "initData.pzErrMsg = pzErrMsg" (field_expression "initData.pzErrMsg" identifier . field_identifier) = identifier) ;) (expression_statement "initData.iDb = iDb;" (assignment_expression "initData.iDb = iDb" (field_expression "initData.iDb" identifier . field_identifier) = identifier) ;) (expression_statement "azArg[0] = pcVar11;" (assignment_expression "azArg[0] = pcVar11" (subscript_expression "azArg[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "sqlite3InitCallback(&initData,3,azArg,(char **)0x0);" (call_expression "sqlite3InitCallback(&initData,3,azArg,(char **)0x0)" identifier (argument_list "(&initData,3,azArg,(char **)0x0)" ( (pointer_expression "&initData" & identifier) , number_literal , identifier , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) ))) ;) (expression_statement "iVar8 = initData.rc;" (assignment_expression "iVar8 = initData.rc" identifier = (field_expression "initData.rc" identifier . field_identifier)) ;) (expression_statement "local_80 = initData.rc;" (assignment_expression "local_80 = initData.rc" identifier = (field_expression "initData.rc" identifier . field_identifier)) ;) (if_statement "if (initData.rc != 0) goto LAB_000afce8;" if (parenthesized_expression "(initData.rc != 0)" ( (binary_expression "initData.rc != 0" (field_expression "initData.rc" identifier . field_identifier) != number_literal) )) (goto_statement "goto LAB_000afce8;" goto statement_identifier ;)) (expression_statement "pDVar4 = db->aDb;" (assignment_expression "pDVar4 = db->aDb" identifier = (field_expression "db->aDb" identifier -> field_identifier)) ;) (expression_statement "pBVar12 = pDVar4[iDb].pBt;" (assignment_expression "pBVar12 = pDVar4[iDb].pBt" identifier = (field_expression "pDVar4[iDb].pBt" (subscript_expression "pDVar4[iDb]" identifier [ identifier ]) . field_identifier)) ;) (if_statement "if (pBVar12 == (Btree *)0x0) {\n    puVar2 = &(pDVar4[1].pSchema)->schemaFlags;\n    *puVar2 = *puVar2 | 1;\n    goto LAB_000afd0b;\n  }" if (parenthesized_expression "(pBVar12 == (Btree *)0x0)" ( (binary_expression "pBVar12 == (Btree *)0x0" identifier == (cast_expression "(Btree *)0x0" ( (type_descriptor "Btree *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar2 = &(pDVar4[1].pSchema)->schemaFlags;\n    *puVar2 = *puVar2 | 1;\n    goto LAB_000afd0b;\n  }" { (expression_statement "puVar2 = &(pDVar4[1].pSchema)->schemaFlags;" (assignment_expression "puVar2 = &(pDVar4[1].pSchema)->schemaFlags" identifier = (pointer_expression "&(pDVar4[1].pSchema)->schemaFlags" & (field_expression "(pDVar4[1].pSchema)->schemaFlags" (parenthesized_expression "(pDVar4[1].pSchema)" ( (field_expression "pDVar4[1].pSchema" (subscript_expression "pDVar4[1]" identifier [ number_literal ]) . field_identifier) )) -> field_identifier))) ;) (expression_statement "*puVar2 = *puVar2 | 1;" (assignment_expression "*puVar2 = *puVar2 | 1" (pointer_expression "*puVar2" * identifier) = (binary_expression "*puVar2 | 1" (pointer_expression "*puVar2" * identifier) | number_literal)) ;) (goto_statement "goto LAB_000afd0b;" goto statement_identifier ;) })) (if_statement "if (pBVar12->sharable != '\0') {\n    sqlite3BtreeEnter(pBVar12);\n    pBVar12 = pDVar4[iDb].pBt;\n  }" if (parenthesized_expression "(pBVar12->sharable != '\0')" ( (binary_expression "pBVar12->sharable != '\0'" (field_expression "pBVar12->sharable" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    sqlite3BtreeEnter(pBVar12);\n    pBVar12 = pDVar4[iDb].pBt;\n  }" { (expression_statement "sqlite3BtreeEnter(pBVar12);" (call_expression "sqlite3BtreeEnter(pBVar12)" identifier (argument_list "(pBVar12)" ( identifier ))) ;) (expression_statement "pBVar12 = pDVar4[iDb].pBt;" (assignment_expression "pBVar12 = pDVar4[iDb].pBt" identifier = (field_expression "pDVar4[iDb].pBt" (subscript_expression "pDVar4[iDb]" identifier [ identifier ]) . field_identifier)) ;) })) (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" identifier = false) ;) (if_statement "if (pBVar12->inTrans == '\0') {\n    local_80 = sqlite3BtreeBeginTrans(pBVar12,0,(int *)0x0);\n    if (local_80 == 0) {\n      pBVar12 = pDVar4[iDb].pBt;\n      bVar7 = true;\n      goto LAB_000afb5f;\n    }\n    pcVar11 = sqlite3ErrStr(local_80);\n    sqlite3SetString(pzErrMsg,db,pcVar11);\n    pBVar12 = pDVar4[iDb].pBt;\n    if (pBVar12->sharable != '\0') {\n      piVar1 = &pBVar12->wantToLock;\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }\n  }\n  else {\nLAB_000afb5f:\n    iVar14 = 0;\n    while( true ) {\n      pMeta = (u32 *)(meta + iVar14);\n      iVar14 = iVar14 + 1;\n      sqlite3BtreeGetMeta(pBVar12,iVar14,pMeta);\n      if (iVar14 == 5) break;\n      pBVar12 = pDVar4[iDb].pBt;\n    }\n    if ((db->flags & 0x2000000) != 0) {\n      meta[0] = 0;\n      meta[1] = 0;\n      meta[2] = 0;\n      meta[3] = 0;\n      meta[4] = 0;\n    }\n    (pDVar4[iDb].pSchema)->schema_cookie = meta[0];\n    if (meta[4] == 0) {\n      puVar2 = &(db->aDb[iDb].pSchema)->schemaFlags;\n      *puVar2 = *puVar2 | 4;\n      bVar9 = db->enc;\nLAB_000afd44:\n      (pDVar4[iDb].pSchema)->enc = bVar9;\n      pSVar10 = pDVar4[iDb].pSchema;\n      iVar14 = pSVar10->cache_size;\njoined_r0x000afbdd:\n      if (iVar14 == 0) {\n        if (meta[2] < 0) {\n          iVar14 = -meta[2];\n          bVar15 = meta[2] != -0x80000000;\n          meta[2] = 0x7fffffff;\n          if (bVar15) {\n            meta[2] = iVar14;\n          }\n        }\n        else if (meta[2] == 0) {\n          meta[2] = -2000;\n        }\n        pSVar10->cache_size = meta[2];\n        sqlite3BtreeSetCacheSize(pDVar4[iDb].pBt,(pDVar4[iDb].pSchema)->cache_size);\n        pSVar10 = pDVar4[iDb].pSchema;\n      }\n      pSVar10->file_format = (u8)meta[1];\n      bVar9 = (pDVar4[iDb].pSchema)->file_format;\n      if (bVar9 == 0) {\n        (pDVar4[iDb].pSchema)->file_format = '\x01';\n        bVar9 = (pDVar4[iDb].pSchema)->file_format;\n      }\n      if (4 < bVar9) {\n        sqlite3SetString(pzErrMsg,db,"unsupported file format");\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iDb == 0) && (3 < meta[1])) {\n        *(uint *)&db->flags = (uint)db->flags & 0xfffffffd;\n      }\n      pcVar11 = sqlite3MPrintf(db,"SELECT name, rootpage, sql FROM \"%w\".%s ORDER BY rowid",\n                               db->aDb[iDb].zDbSName,pcVar11);\n      p_Var5 = db->xAuth;\n      db->xAuth = (sqlite3_xauth)0x0;\n      local_80 = sqlite3_exec(db,pcVar11,sqlite3InitCallback,&initData,(char **)0x0);\n      db->xAuth = p_Var5;\n      if (local_80 == 0) {\n        local_80 = initData.rc;\n        if (pcVar11 != (char *)0x0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        sqlite3AnalysisLoad(db,iDb);\n        if (db->mallocFailed != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (pcVar11 != (char *)0x0) {\nLAB_000afc8d:\n          sqlite3DbFreeNN(db,pcVar11);\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (db->mallocFailed != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          sqlite3ResetAllSchemasOfConnection(db);\n        }\n        if ((db->flags & 0x8000000) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = &(db->aDb[iDb].pSchema)->schemaFlags;\n      *puVar2 = *puVar2 | 1;\n      pBVar12 = pDVar4[iDb].pBt;\n      local_80 = iVar8;\n    }\n    else {\n      if (iDb == 0) {\n        uVar13 = (u8)(meta[4] & 3U);\n        if ((meta[4] & 3U) == 0) {\n          uVar13 = '\x01';\n        }\n        db->enc = uVar13;\n        pDVar4->pSchema->enc = uVar13;\n        pSVar10 = pDVar4->pSchema;\n        iVar14 = pSVar10->cache_size;\n        goto joined_r0x000afbdd;\n      }\n      bVar9 = db->enc;\n      if (meta[4] == (uint)bVar9) goto LAB_000afd44;\n      sqlite3SetString(pzErrMsg,db,\n                       "attached databases must use the same text encoding as main database");\n      local_80 = 1;\nLAB_000afcbe:\n      pBVar12 = pDVar4[iDb].pBt;\n    }\n    if (bVar7) {\n      sqlite3BtreeCommit(pBVar12);\n      pBVar12 = pDVar4[iDb].pBt;\n    }\n    if (pBVar12->sharable != '\0') {\n      piVar1 = &pBVar12->wantToLock;\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        sqlite3BtreeLeave(pBVar12);\n      }\n    }\n    if (local_80 == 0) goto LAB_000afd0b;\n  }" if (parenthesized_expression "(pBVar12->inTrans == '\0')" ( (binary_expression "pBVar12->inTrans == '\0'" (field_expression "pBVar12->inTrans" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_80 = sqlite3BtreeBeginTrans(pBVar12,0,(int *)0x0);\n    if (local_80 == 0) {\n      pBVar12 = pDVar4[iDb].pBt;\n      bVar7 = true;\n      goto LAB_000afb5f;\n    }\n    pcVar11 = sqlite3ErrStr(local_80);\n    sqlite3SetString(pzErrMsg,db,pcVar11);\n    pBVar12 = pDVar4[iDb].pBt;\n    if (pBVar12->sharable != '\0') {\n      piVar1 = &pBVar12->wantToLock;\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }\n  }" { (expression_statement "local_80 = sqlite3BtreeBeginTrans(pBVar12,0,(int *)0x0);" (assignment_expression "local_80 = sqlite3BtreeBeginTrans(pBVar12,0,(int *)0x0)" identifier = (call_expression "sqlite3BtreeBeginTrans(pBVar12,0,(int *)0x0)" identifier (argument_list "(pBVar12,0,(int *)0x0)" ( identifier , number_literal , (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (if_statement "if (local_80 == 0) {\n      pBVar12 = pDVar4[iDb].pBt;\n      bVar7 = true;\n      goto LAB_000afb5f;\n    }" if (parenthesized_expression "(local_80 == 0)" ( (binary_expression "local_80 == 0" identifier == number_literal) )) (compound_statement "{\n      pBVar12 = pDVar4[iDb].pBt;\n      bVar7 = true;\n      goto LAB_000afb5f;\n    }" { (expression_statement "pBVar12 = pDVar4[iDb].pBt;" (assignment_expression "pBVar12 = pDVar4[iDb].pBt" identifier = (field_expression "pDVar4[iDb].pBt" (subscript_expression "pDVar4[iDb]" identifier [ identifier ]) . field_identifier)) ;) (expression_statement "bVar7 = true;" (assignment_expression "bVar7 = true" identifier = true) ;) (goto_statement "goto LAB_000afb5f;" goto statement_identifier ;) })) (expression_statement "pcVar11 = sqlite3ErrStr(local_80);" (assignment_expression "pcVar11 = sqlite3ErrStr(local_80)" identifier = (call_expression "sqlite3ErrStr(local_80)" identifier (argument_list "(local_80)" ( identifier )))) ;) (expression_statement "sqlite3SetString(pzErrMsg,db,pcVar11);" (call_expression "sqlite3SetString(pzErrMsg,db,pcVar11)" identifier (argument_list "(pzErrMsg,db,pcVar11)" ( identifier , identifier , identifier ))) ;) (expression_statement "pBVar12 = pDVar4[iDb].pBt;" (assignment_expression "pBVar12 = pDVar4[iDb].pBt" identifier = (field_expression "pDVar4[iDb].pBt" (subscript_expression "pDVar4[iDb]" identifier [ identifier ]) . field_identifier)) ;) (if_statement "if (pBVar12->sharable != '\0') {\n      piVar1 = &pBVar12->wantToLock;\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }" if (parenthesized_expression "(pBVar12->sharable != '\0')" ( (binary_expression "pBVar12->sharable != '\0'" (field_expression "pBVar12->sharable" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar1 = &pBVar12->wantToLock;\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }" { (expression_statement "piVar1 = &pBVar12->wantToLock;" (assignment_expression "piVar1 = &pBVar12->wantToLock" identifier = (pointer_expression "&pBVar12->wantToLock" & (field_expression "pBVar12->wantToLock" identifier -> field_identifier))) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (if_statement "if (*piVar1 != 0) goto LAB_000afce8;" if (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) (goto_statement "goto LAB_000afce8;" goto statement_identifier ;)) (goto_statement "goto LAB_000afef0;" goto statement_identifier ;) })) }) (else_clause "else {\nLAB_000afb5f:\n    iVar14 = 0;\n    while( true ) {\n      pMeta = (u32 *)(meta + iVar14);\n      iVar14 = iVar14 + 1;\n      sqlite3BtreeGetMeta(pBVar12,iVar14,pMeta);\n      if (iVar14 == 5) break;\n      pBVar12 = pDVar4[iDb].pBt;\n    }\n    if ((db->flags & 0x2000000) != 0) {\n      meta[0] = 0;\n      meta[1] = 0;\n      meta[2] = 0;\n      meta[3] = 0;\n      meta[4] = 0;\n    }\n    (pDVar4[iDb].pSchema)->schema_cookie = meta[0];\n    if (meta[4] == 0) {\n      puVar2 = &(db->aDb[iDb].pSchema)->schemaFlags;\n      *puVar2 = *puVar2 | 4;\n      bVar9 = db->enc;\nLAB_000afd44:\n      (pDVar4[iDb].pSchema)->enc = bVar9;\n      pSVar10 = pDVar4[iDb].pSchema;\n      iVar14 = pSVar10->cache_size;\njoined_r0x000afbdd:\n      if (iVar14 == 0) {\n        if (meta[2] < 0) {\n          iVar14 = -meta[2];\n          bVar15 = meta[2] != -0x80000000;\n          meta[2] = 0x7fffffff;\n          if (bVar15) {\n            meta[2] = iVar14;\n          }\n        }\n        else if (meta[2] == 0) {\n          meta[2] = -2000;\n        }\n        pSVar10->cache_size = meta[2];\n        sqlite3BtreeSetCacheSize(pDVar4[iDb].pBt,(pDVar4[iDb].pSchema)->cache_size);\n        pSVar10 = pDVar4[iDb].pSchema;\n      }\n      pSVar10->file_format = (u8)meta[1];\n      bVar9 = (pDVar4[iDb].pSchema)->file_format;\n      if (bVar9 == 0) {\n        (pDVar4[iDb].pSchema)->file_format = '\x01';\n        bVar9 = (pDVar4[iDb].pSchema)->file_format;\n      }\n      if (4 < bVar9) {\n        sqlite3SetString(pzErrMsg,db,"unsupported file format");\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iDb == 0) && (3 < meta[1])) {\n        *(uint *)&db->flags = (uint)db->flags & 0xfffffffd;\n      }\n      pcVar11 = sqlite3MPrintf(db,"SELECT name, rootpage, sql FROM \"%w\".%s ORDER BY rowid",\n                               db->aDb[iDb].zDbSName,pcVar11);\n      p_Var5 = db->xAuth;\n      db->xAuth = (sqlite3_xauth)0x0;\n      local_80 = sqlite3_exec(db,pcVar11,sqlite3InitCallback,&initData,(char **)0x0);\n      db->xAuth = p_Var5;\n      if (local_80 == 0) {\n        local_80 = initData.rc;\n        if (pcVar11 != (char *)0x0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        sqlite3AnalysisLoad(db,iDb);\n        if (db->mallocFailed != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (pcVar11 != (char *)0x0) {\nLAB_000afc8d:\n          sqlite3DbFreeNN(db,pcVar11);\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (db->mallocFailed != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          sqlite3ResetAllSchemasOfConnection(db);\n        }\n        if ((db->flags & 0x8000000) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = &(db->aDb[iDb].pSchema)->schemaFlags;\n      *puVar2 = *puVar2 | 1;\n      pBVar12 = pDVar4[iDb].pBt;\n      local_80 = iVar8;\n    }\n    else {\n      if (iDb == 0) {\n        uVar13 = (u8)(meta[4] & 3U);\n        if ((meta[4] & 3U) == 0) {\n          uVar13 = '\x01';\n        }\n        db->enc = uVar13;\n        pDVar4->pSchema->enc = uVar13;\n        pSVar10 = pDVar4->pSchema;\n        iVar14 = pSVar10->cache_size;\n        goto joined_r0x000afbdd;\n      }\n      bVar9 = db->enc;\n      if (meta[4] == (uint)bVar9) goto LAB_000afd44;\n      sqlite3SetString(pzErrMsg,db,\n                       "attached databases must use the same text encoding as main database");\n      local_80 = 1;\nLAB_000afcbe:\n      pBVar12 = pDVar4[iDb].pBt;\n    }\n    if (bVar7) {\n      sqlite3BtreeCommit(pBVar12);\n      pBVar12 = pDVar4[iDb].pBt;\n    }\n    if (pBVar12->sharable != '\0') {\n      piVar1 = &pBVar12->wantToLock;\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        sqlite3BtreeLeave(pBVar12);\n      }\n    }\n    if (local_80 == 0) goto LAB_000afd0b;\n  }" else (compound_statement "{\nLAB_000afb5f:\n    iVar14 = 0;\n    while( true ) {\n      pMeta = (u32 *)(meta + iVar14);\n      iVar14 = iVar14 + 1;\n      sqlite3BtreeGetMeta(pBVar12,iVar14,pMeta);\n      if (iVar14 == 5) break;\n      pBVar12 = pDVar4[iDb].pBt;\n    }\n    if ((db->flags & 0x2000000) != 0) {\n      meta[0] = 0;\n      meta[1] = 0;\n      meta[2] = 0;\n      meta[3] = 0;\n      meta[4] = 0;\n    }\n    (pDVar4[iDb].pSchema)->schema_cookie = meta[0];\n    if (meta[4] == 0) {\n      puVar2 = &(db->aDb[iDb].pSchema)->schemaFlags;\n      *puVar2 = *puVar2 | 4;\n      bVar9 = db->enc;\nLAB_000afd44:\n      (pDVar4[iDb].pSchema)->enc = bVar9;\n      pSVar10 = pDVar4[iDb].pSchema;\n      iVar14 = pSVar10->cache_size;\njoined_r0x000afbdd:\n      if (iVar14 == 0) {\n        if (meta[2] < 0) {\n          iVar14 = -meta[2];\n          bVar15 = meta[2] != -0x80000000;\n          meta[2] = 0x7fffffff;\n          if (bVar15) {\n            meta[2] = iVar14;\n          }\n        }\n        else if (meta[2] == 0) {\n          meta[2] = -2000;\n        }\n        pSVar10->cache_size = meta[2];\n        sqlite3BtreeSetCacheSize(pDVar4[iDb].pBt,(pDVar4[iDb].pSchema)->cache_size);\n        pSVar10 = pDVar4[iDb].pSchema;\n      }\n      pSVar10->file_format = (u8)meta[1];\n      bVar9 = (pDVar4[iDb].pSchema)->file_format;\n      if (bVar9 == 0) {\n        (pDVar4[iDb].pSchema)->file_format = '\x01';\n        bVar9 = (pDVar4[iDb].pSchema)->file_format;\n      }\n      if (4 < bVar9) {\n        sqlite3SetString(pzErrMsg,db,"unsupported file format");\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iDb == 0) && (3 < meta[1])) {\n        *(uint *)&db->flags = (uint)db->flags & 0xfffffffd;\n      }\n      pcVar11 = sqlite3MPrintf(db,"SELECT name, rootpage, sql FROM \"%w\".%s ORDER BY rowid",\n                               db->aDb[iDb].zDbSName,pcVar11);\n      p_Var5 = db->xAuth;\n      db->xAuth = (sqlite3_xauth)0x0;\n      local_80 = sqlite3_exec(db,pcVar11,sqlite3InitCallback,&initData,(char **)0x0);\n      db->xAuth = p_Var5;\n      if (local_80 == 0) {\n        local_80 = initData.rc;\n        if (pcVar11 != (char *)0x0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        sqlite3AnalysisLoad(db,iDb);\n        if (db->mallocFailed != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (pcVar11 != (char *)0x0) {\nLAB_000afc8d:\n          sqlite3DbFreeNN(db,pcVar11);\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (db->mallocFailed != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          sqlite3ResetAllSchemasOfConnection(db);\n        }\n        if ((db->flags & 0x8000000) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = &(db->aDb[iDb].pSchema)->schemaFlags;\n      *puVar2 = *puVar2 | 1;\n      pBVar12 = pDVar4[iDb].pBt;\n      local_80 = iVar8;\n    }\n    else {\n      if (iDb == 0) {\n        uVar13 = (u8)(meta[4] & 3U);\n        if ((meta[4] & 3U) == 0) {\n          uVar13 = '\x01';\n        }\n        db->enc = uVar13;\n        pDVar4->pSchema->enc = uVar13;\n        pSVar10 = pDVar4->pSchema;\n        iVar14 = pSVar10->cache_size;\n        goto joined_r0x000afbdd;\n      }\n      bVar9 = db->enc;\n      if (meta[4] == (uint)bVar9) goto LAB_000afd44;\n      sqlite3SetString(pzErrMsg,db,\n                       "attached databases must use the same text encoding as main database");\n      local_80 = 1;\nLAB_000afcbe:\n      pBVar12 = pDVar4[iDb].pBt;\n    }\n    if (bVar7) {\n      sqlite3BtreeCommit(pBVar12);\n      pBVar12 = pDVar4[iDb].pBt;\n    }\n    if (pBVar12->sharable != '\0') {\n      piVar1 = &pBVar12->wantToLock;\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        sqlite3BtreeLeave(pBVar12);\n      }\n    }\n    if (local_80 == 0) goto LAB_000afd0b;\n  }" { (labeled_statement "LAB_000afb5f:\n    iVar14 = 0;" statement_identifier : (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;)) (while_statement "while( true ) {\n      pMeta = (u32 *)(meta + iVar14);\n      iVar14 = iVar14 + 1;\n      sqlite3BtreeGetMeta(pBVar12,iVar14,pMeta);\n      if (iVar14 == 5) break;\n      pBVar12 = pDVar4[iDb].pBt;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      pMeta = (u32 *)(meta + iVar14);\n      iVar14 = iVar14 + 1;\n      sqlite3BtreeGetMeta(pBVar12,iVar14,pMeta);\n      if (iVar14 == 5) break;\n      pBVar12 = pDVar4[iDb].pBt;\n    }" { (expression_statement "pMeta = (u32 *)(meta + iVar14);" (assignment_expression "pMeta = (u32 *)(meta + iVar14)" identifier = (cast_expression "(u32 *)(meta + iVar14)" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(meta + iVar14)" ( (binary_expression "meta + iVar14" identifier + identifier) )))) ;) (expression_statement "iVar14 = iVar14 + 1;" (assignment_expression "iVar14 = iVar14 + 1" identifier = (binary_expression "iVar14 + 1" identifier + number_literal)) ;) (expression_statement "sqlite3BtreeGetMeta(pBVar12,iVar14,pMeta);" (call_expression "sqlite3BtreeGetMeta(pBVar12,iVar14,pMeta)" identifier (argument_list "(pBVar12,iVar14,pMeta)" ( identifier , identifier , identifier ))) ;) (if_statement "if (iVar14 == 5) break;" if (parenthesized_expression "(iVar14 == 5)" ( (binary_expression "iVar14 == 5" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "pBVar12 = pDVar4[iDb].pBt;" (assignment_expression "pBVar12 = pDVar4[iDb].pBt" identifier = (field_expression "pDVar4[iDb].pBt" (subscript_expression "pDVar4[iDb]" identifier [ identifier ]) . field_identifier)) ;) })) (if_statement "if ((db->flags & 0x2000000) != 0) {\n      meta[0] = 0;\n      meta[1] = 0;\n      meta[2] = 0;\n      meta[3] = 0;\n      meta[4] = 0;\n    }" if (parenthesized_expression "((db->flags & 0x2000000) != 0)" ( (binary_expression "(db->flags & 0x2000000) != 0" (parenthesized_expression "(db->flags & 0x2000000)" ( (binary_expression "db->flags & 0x2000000" (field_expression "db->flags" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n      meta[0] = 0;\n      meta[1] = 0;\n      meta[2] = 0;\n      meta[3] = 0;\n      meta[4] = 0;\n    }" { (expression_statement "meta[0] = 0;" (assignment_expression "meta[0] = 0" (subscript_expression "meta[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "meta[1] = 0;" (assignment_expression "meta[1] = 0" (subscript_expression "meta[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "meta[2] = 0;" (assignment_expression "meta[2] = 0" (subscript_expression "meta[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "meta[3] = 0;" (assignment_expression "meta[3] = 0" (subscript_expression "meta[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "meta[4] = 0;" (assignment_expression "meta[4] = 0" (subscript_expression "meta[4]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "(pDVar4[iDb].pSchema)->schema_cookie = meta[0];" (assignment_expression "(pDVar4[iDb].pSchema)->schema_cookie = meta[0]" (field_expression "(pDVar4[iDb].pSchema)->schema_cookie" (parenthesized_expression "(pDVar4[iDb].pSchema)" ( (field_expression "pDVar4[iDb].pSchema" (subscript_expression "pDVar4[iDb]" identifier [ identifier ]) . field_identifier) )) -> field_identifier) = (subscript_expression "meta[0]" identifier [ number_literal ])) ;) (if_statement "if (meta[4] == 0) {\n      puVar2 = &(db->aDb[iDb].pSchema)->schemaFlags;\n      *puVar2 = *puVar2 | 4;\n      bVar9 = db->enc;\nLAB_000afd44:\n      (pDVar4[iDb].pSchema)->enc = bVar9;\n      pSVar10 = pDVar4[iDb].pSchema;\n      iVar14 = pSVar10->cache_size;\njoined_r0x000afbdd:\n      if (iVar14 == 0) {\n        if (meta[2] < 0) {\n          iVar14 = -meta[2];\n          bVar15 = meta[2] != -0x80000000;\n          meta[2] = 0x7fffffff;\n          if (bVar15) {\n            meta[2] = iVar14;\n          }\n        }\n        else if (meta[2] == 0) {\n          meta[2] = -2000;\n        }\n        pSVar10->cache_size = meta[2];\n        sqlite3BtreeSetCacheSize(pDVar4[iDb].pBt,(pDVar4[iDb].pSchema)->cache_size);\n        pSVar10 = pDVar4[iDb].pSchema;\n      }\n      pSVar10->file_format = (u8)meta[1];\n      bVar9 = (pDVar4[iDb].pSchema)->file_format;\n      if (bVar9 == 0) {\n        (pDVar4[iDb].pSchema)->file_format = '\x01';\n        bVar9 = (pDVar4[iDb].pSchema)->file_format;\n      }\n      if (4 < bVar9) {\n        sqlite3SetString(pzErrMsg,db,"unsupported file format");\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iDb == 0) && (3 < meta[1])) {\n        *(uint *)&db->flags = (uint)db->flags & 0xfffffffd;\n      }\n      pcVar11 = sqlite3MPrintf(db,"SELECT name, rootpage, sql FROM \"%w\".%s ORDER BY rowid",\n                               db->aDb[iDb].zDbSName,pcVar11);\n      p_Var5 = db->xAuth;\n      db->xAuth = (sqlite3_xauth)0x0;\n      local_80 = sqlite3_exec(db,pcVar11,sqlite3InitCallback,&initData,(char **)0x0);\n      db->xAuth = p_Var5;\n      if (local_80 == 0) {\n        local_80 = initData.rc;\n        if (pcVar11 != (char *)0x0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        sqlite3AnalysisLoad(db,iDb);\n        if (db->mallocFailed != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (pcVar11 != (char *)0x0) {\nLAB_000afc8d:\n          sqlite3DbFreeNN(db,pcVar11);\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (db->mallocFailed != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          sqlite3ResetAllSchemasOfConnection(db);\n        }\n        if ((db->flags & 0x8000000) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = &(db->aDb[iDb].pSchema)->schemaFlags;\n      *puVar2 = *puVar2 | 1;\n      pBVar12 = pDVar4[iDb].pBt;\n      local_80 = iVar8;\n    }\n    else {\n      if (iDb == 0) {\n        uVar13 = (u8)(meta[4] & 3U);\n        if ((meta[4] & 3U) == 0) {\n          uVar13 = '\x01';\n        }\n        db->enc = uVar13;\n        pDVar4->pSchema->enc = uVar13;\n        pSVar10 = pDVar4->pSchema;\n        iVar14 = pSVar10->cache_size;\n        goto joined_r0x000afbdd;\n      }\n      bVar9 = db->enc;\n      if (meta[4] == (uint)bVar9) goto LAB_000afd44;\n      sqlite3SetString(pzErrMsg,db,\n                       "attached databases must use the same text encoding as main database");\n      local_80 = 1;\nLAB_000afcbe:\n      pBVar12 = pDVar4[iDb].pBt;\n    }" if (parenthesized_expression "(meta[4] == 0)" ( (binary_expression "meta[4] == 0" (subscript_expression "meta[4]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      puVar2 = &(db->aDb[iDb].pSchema)->schemaFlags;\n      *puVar2 = *puVar2 | 4;\n      bVar9 = db->enc;\nLAB_000afd44:\n      (pDVar4[iDb].pSchema)->enc = bVar9;\n      pSVar10 = pDVar4[iDb].pSchema;\n      iVar14 = pSVar10->cache_size;\njoined_r0x000afbdd:\n      if (iVar14 == 0) {\n        if (meta[2] < 0) {\n          iVar14 = -meta[2];\n          bVar15 = meta[2] != -0x80000000;\n          meta[2] = 0x7fffffff;\n          if (bVar15) {\n            meta[2] = iVar14;\n          }\n        }\n        else if (meta[2] == 0) {\n          meta[2] = -2000;\n        }\n        pSVar10->cache_size = meta[2];\n        sqlite3BtreeSetCacheSize(pDVar4[iDb].pBt,(pDVar4[iDb].pSchema)->cache_size);\n        pSVar10 = pDVar4[iDb].pSchema;\n      }\n      pSVar10->file_format = (u8)meta[1];\n      bVar9 = (pDVar4[iDb].pSchema)->file_format;\n      if (bVar9 == 0) {\n        (pDVar4[iDb].pSchema)->file_format = '\x01';\n        bVar9 = (pDVar4[iDb].pSchema)->file_format;\n      }\n      if (4 < bVar9) {\n        sqlite3SetString(pzErrMsg,db,"unsupported file format");\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iDb == 0) && (3 < meta[1])) {\n        *(uint *)&db->flags = (uint)db->flags & 0xfffffffd;\n      }\n      pcVar11 = sqlite3MPrintf(db,"SELECT name, rootpage, sql FROM \"%w\".%s ORDER BY rowid",\n                               db->aDb[iDb].zDbSName,pcVar11);\n      p_Var5 = db->xAuth;\n      db->xAuth = (sqlite3_xauth)0x0;\n      local_80 = sqlite3_exec(db,pcVar11,sqlite3InitCallback,&initData,(char **)0x0);\n      db->xAuth = p_Var5;\n      if (local_80 == 0) {\n        local_80 = initData.rc;\n        if (pcVar11 != (char *)0x0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        sqlite3AnalysisLoad(db,iDb);\n        if (db->mallocFailed != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (pcVar11 != (char *)0x0) {\nLAB_000afc8d:\n          sqlite3DbFreeNN(db,pcVar11);\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (db->mallocFailed != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          sqlite3ResetAllSchemasOfConnection(db);\n        }\n        if ((db->flags & 0x8000000) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = &(db->aDb[iDb].pSchema)->schemaFlags;\n      *puVar2 = *puVar2 | 1;\n      pBVar12 = pDVar4[iDb].pBt;\n      local_80 = iVar8;\n    }" { (expression_statement "puVar2 = &(db->aDb[iDb].pSchema)->schemaFlags;" (assignment_expression "puVar2 = &(db->aDb[iDb].pSchema)->schemaFlags" identifier = (pointer_expression "&(db->aDb[iDb].pSchema)->schemaFlags" & (field_expression "(db->aDb[iDb].pSchema)->schemaFlags" (parenthesized_expression "(db->aDb[iDb].pSchema)" ( (field_expression "db->aDb[iDb].pSchema" (subscript_expression "db->aDb[iDb]" (field_expression "db->aDb" identifier -> field_identifier) [ identifier ]) . field_identifier) )) -> field_identifier))) ;) (expression_statement "*puVar2 = *puVar2 | 4;" (assignment_expression "*puVar2 = *puVar2 | 4" (pointer_expression "*puVar2" * identifier) = (binary_expression "*puVar2 | 4" (pointer_expression "*puVar2" * identifier) | number_literal)) ;) (expression_statement "bVar9 = db->enc;" (assignment_expression "bVar9 = db->enc" identifier = (field_expression "db->enc" identifier -> field_identifier)) ;) (labeled_statement "LAB_000afd44:\n      (pDVar4[iDb].pSchema)->enc = bVar9;" statement_identifier : (expression_statement "(pDVar4[iDb].pSchema)->enc = bVar9;" (assignment_expression "(pDVar4[iDb].pSchema)->enc = bVar9" (field_expression "(pDVar4[iDb].pSchema)->enc" (parenthesized_expression "(pDVar4[iDb].pSchema)" ( (field_expression "pDVar4[iDb].pSchema" (subscript_expression "pDVar4[iDb]" identifier [ identifier ]) . field_identifier) )) -> field_identifier) = identifier) ;)) (expression_statement "pSVar10 = pDVar4[iDb].pSchema;" (assignment_expression "pSVar10 = pDVar4[iDb].pSchema" identifier = (field_expression "pDVar4[iDb].pSchema" (subscript_expression "pDVar4[iDb]" identifier [ identifier ]) . field_identifier)) ;) (expression_statement "iVar14 = pSVar10->cache_size;" (assignment_expression "iVar14 = pSVar10->cache_size" identifier = (field_expression "pSVar10->cache_size" identifier -> field_identifier)) ;) (labeled_statement "joined_r0x000afbdd:\n      if (iVar14 == 0) {\n        if (meta[2] < 0) {\n          iVar14 = -meta[2];\n          bVar15 = meta[2] != -0x80000000;\n          meta[2] = 0x7fffffff;\n          if (bVar15) {\n            meta[2] = iVar14;\n          }\n        }\n        else if (meta[2] == 0) {\n          meta[2] = -2000;\n        }\n        pSVar10->cache_size = meta[2];\n        sqlite3BtreeSetCacheSize(pDVar4[iDb].pBt,(pDVar4[iDb].pSchema)->cache_size);\n        pSVar10 = pDVar4[iDb].pSchema;\n      }" statement_identifier : (if_statement "if (iVar14 == 0) {\n        if (meta[2] < 0) {\n          iVar14 = -meta[2];\n          bVar15 = meta[2] != -0x80000000;\n          meta[2] = 0x7fffffff;\n          if (bVar15) {\n            meta[2] = iVar14;\n          }\n        }\n        else if (meta[2] == 0) {\n          meta[2] = -2000;\n        }\n        pSVar10->cache_size = meta[2];\n        sqlite3BtreeSetCacheSize(pDVar4[iDb].pBt,(pDVar4[iDb].pSchema)->cache_size);\n        pSVar10 = pDVar4[iDb].pSchema;\n      }" if (parenthesized_expression "(iVar14 == 0)" ( (binary_expression "iVar14 == 0" identifier == number_literal) )) (compound_statement "{\n        if (meta[2] < 0) {\n          iVar14 = -meta[2];\n          bVar15 = meta[2] != -0x80000000;\n          meta[2] = 0x7fffffff;\n          if (bVar15) {\n            meta[2] = iVar14;\n          }\n        }\n        else if (meta[2] == 0) {\n          meta[2] = -2000;\n        }\n        pSVar10->cache_size = meta[2];\n        sqlite3BtreeSetCacheSize(pDVar4[iDb].pBt,(pDVar4[iDb].pSchema)->cache_size);\n        pSVar10 = pDVar4[iDb].pSchema;\n      }" { (if_statement "if (meta[2] < 0) {\n          iVar14 = -meta[2];\n          bVar15 = meta[2] != -0x80000000;\n          meta[2] = 0x7fffffff;\n          if (bVar15) {\n            meta[2] = iVar14;\n          }\n        }\n        else if (meta[2] == 0) {\n          meta[2] = -2000;\n        }" if (parenthesized_expression "(meta[2] < 0)" ( (binary_expression "meta[2] < 0" (subscript_expression "meta[2]" identifier [ number_literal ]) < number_literal) )) (compound_statement "{\n          iVar14 = -meta[2];\n          bVar15 = meta[2] != -0x80000000;\n          meta[2] = 0x7fffffff;\n          if (bVar15) {\n            meta[2] = iVar14;\n          }\n        }" { (expression_statement "iVar14 = -meta[2];" (assignment_expression "iVar14 = -meta[2]" identifier = (unary_expression "-meta[2]" - (subscript_expression "meta[2]" identifier [ number_literal ]))) ;) (expression_statement "bVar15 = meta[2] != -0x80000000;" (assignment_expression "bVar15 = meta[2] != -0x80000000" identifier = (binary_expression "meta[2] != -0x80000000" (subscript_expression "meta[2]" identifier [ number_literal ]) != number_literal)) ;) (expression_statement "meta[2] = 0x7fffffff;" (assignment_expression "meta[2] = 0x7fffffff" (subscript_expression "meta[2]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (bVar15) {\n            meta[2] = iVar14;\n          }" if (parenthesized_expression "(bVar15)" ( identifier )) (compound_statement "{\n            meta[2] = iVar14;\n          }" { (expression_statement "meta[2] = iVar14;" (assignment_expression "meta[2] = iVar14" (subscript_expression "meta[2]" identifier [ number_literal ]) = identifier) ;) })) }) (else_clause "else if (meta[2] == 0) {\n          meta[2] = -2000;\n        }" else (if_statement "if (meta[2] == 0) {\n          meta[2] = -2000;\n        }" if (parenthesized_expression "(meta[2] == 0)" ( (binary_expression "meta[2] == 0" (subscript_expression "meta[2]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n          meta[2] = -2000;\n        }" { (expression_statement "meta[2] = -2000;" (assignment_expression "meta[2] = -2000" (subscript_expression "meta[2]" identifier [ number_literal ]) = number_literal) ;) })))) (expression_statement "pSVar10->cache_size = meta[2];" (assignment_expression "pSVar10->cache_size = meta[2]" (field_expression "pSVar10->cache_size" identifier -> field_identifier) = (subscript_expression "meta[2]" identifier [ number_literal ])) ;) (expression_statement "sqlite3BtreeSetCacheSize(pDVar4[iDb].pBt,(pDVar4[iDb].pSchema)->cache_size);" (call_expression "sqlite3BtreeSetCacheSize(pDVar4[iDb].pBt,(pDVar4[iDb].pSchema)->cache_size)" identifier (argument_list "(pDVar4[iDb].pBt,(pDVar4[iDb].pSchema)->cache_size)" ( (field_expression "pDVar4[iDb].pBt" (subscript_expression "pDVar4[iDb]" identifier [ identifier ]) . field_identifier) , (field_expression "(pDVar4[iDb].pSchema)->cache_size" (parenthesized_expression "(pDVar4[iDb].pSchema)" ( (field_expression "pDVar4[iDb].pSchema" (subscript_expression "pDVar4[iDb]" identifier [ identifier ]) . field_identifier) )) -> field_identifier) ))) ;) (expression_statement "pSVar10 = pDVar4[iDb].pSchema;" (assignment_expression "pSVar10 = pDVar4[iDb].pSchema" identifier = (field_expression "pDVar4[iDb].pSchema" (subscript_expression "pDVar4[iDb]" identifier [ identifier ]) . field_identifier)) ;) }))) (expression_statement "pSVar10->file_format = (u8)meta[1];" (assignment_expression "pSVar10->file_format = (u8)meta[1]" (field_expression "pSVar10->file_format" identifier -> field_identifier) = (cast_expression "(u8)meta[1]" ( (type_descriptor "u8" type_identifier) ) (subscript_expression "meta[1]" identifier [ number_literal ]))) ;) (expression_statement "bVar9 = (pDVar4[iDb].pSchema)->file_format;" (assignment_expression "bVar9 = (pDVar4[iDb].pSchema)->file_format" identifier = (field_expression "(pDVar4[iDb].pSchema)->file_format" (parenthesized_expression "(pDVar4[iDb].pSchema)" ( (field_expression "pDVar4[iDb].pSchema" (subscript_expression "pDVar4[iDb]" identifier [ identifier ]) . field_identifier) )) -> field_identifier)) ;) (if_statement "if (bVar9 == 0) {\n        (pDVar4[iDb].pSchema)->file_format = '\x01';\n        bVar9 = (pDVar4[iDb].pSchema)->file_format;\n      }" if (parenthesized_expression "(bVar9 == 0)" ( (binary_expression "bVar9 == 0" identifier == number_literal) )) (compound_statement "{\n        (pDVar4[iDb].pSchema)->file_format = '\x01';\n        bVar9 = (pDVar4[iDb].pSchema)->file_format;\n      }" { (expression_statement "(pDVar4[iDb].pSchema)->file_format = '\x01';" (assignment_expression "(pDVar4[iDb].pSchema)->file_format = '\x01'" (field_expression "(pDVar4[iDb].pSchema)->file_format" (parenthesized_expression "(pDVar4[iDb].pSchema)" ( (field_expression "pDVar4[iDb].pSchema" (subscript_expression "pDVar4[iDb]" identifier [ identifier ]) . field_identifier) )) -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "bVar9 = (pDVar4[iDb].pSchema)->file_format;" (assignment_expression "bVar9 = (pDVar4[iDb].pSchema)->file_format" identifier = (field_expression "(pDVar4[iDb].pSchema)->file_format" (parenthesized_expression "(pDVar4[iDb].pSchema)" ( (field_expression "pDVar4[iDb].pSchema" (subscript_expression "pDVar4[iDb]" identifier [ identifier ]) . field_identifier) )) -> field_identifier)) ;) })) (if_statement "if (4 < bVar9) {\n        sqlite3SetString(pzErrMsg,db,"unsupported file format");\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }" if (parenthesized_expression "(4 < bVar9)" ( (binary_expression "4 < bVar9" number_literal < identifier) )) (compound_statement "{\n        sqlite3SetString(pzErrMsg,db,"unsupported file format");\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }" { (expression_statement "sqlite3SetString(pzErrMsg,db,"unsupported file format");" (call_expression "sqlite3SetString(pzErrMsg,db,"unsupported file format")" identifier (argument_list "(pzErrMsg,db,"unsupported file format")" ( identifier , identifier , (string_literal ""unsupported file format"" " string_content ") ))) ;) (expression_statement "local_80 = 1;" (assignment_expression "local_80 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_000afcbe;" goto statement_identifier ;) })) (if_statement "if ((iDb == 0) && (3 < meta[1])) {\n        *(uint *)&db->flags = (uint)db->flags & 0xfffffffd;\n      }" if (parenthesized_expression "((iDb == 0) && (3 < meta[1]))" ( (binary_expression "(iDb == 0) && (3 < meta[1])" (parenthesized_expression "(iDb == 0)" ( (binary_expression "iDb == 0" identifier == number_literal) )) && (parenthesized_expression "(3 < meta[1])" ( (binary_expression "3 < meta[1]" number_literal < (subscript_expression "meta[1]" identifier [ number_literal ])) ))) )) (compound_statement "{\n        *(uint *)&db->flags = (uint)db->flags & 0xfffffffd;\n      }" { (expression_statement "*(uint *)&db->flags = (uint)db->flags & 0xfffffffd;" (assignment_expression "*(uint *)&db->flags = (uint)db->flags & 0xfffffffd" (pointer_expression "*(uint *)&db->flags" * (cast_expression "(uint *)&db->flags" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&db->flags" & (field_expression "db->flags" identifier -> field_identifier)))) = (binary_expression "(uint)db->flags & 0xfffffffd" (cast_expression "(uint)db->flags" ( (type_descriptor "uint" type_identifier) ) (field_expression "db->flags" identifier -> field_identifier)) & number_literal)) ;) })) (expression_statement "pcVar11 = sqlite3MPrintf(db,"SELECT name, rootpage, sql FROM \"%w\".%s ORDER BY rowid",\n                               db->aDb[iDb].zDbSName,pcVar11);" (assignment_expression "pcVar11 = sqlite3MPrintf(db,"SELECT name, rootpage, sql FROM \"%w\".%s ORDER BY rowid",\n                               db->aDb[iDb].zDbSName,pcVar11)" identifier = (call_expression "sqlite3MPrintf(db,"SELECT name, rootpage, sql FROM \"%w\".%s ORDER BY rowid",\n                               db->aDb[iDb].zDbSName,pcVar11)" identifier (argument_list "(db,"SELECT name, rootpage, sql FROM \"%w\".%s ORDER BY rowid",\n                               db->aDb[iDb].zDbSName,pcVar11)" ( identifier , (string_literal ""SELECT name, rootpage, sql FROM \"%w\".%s ORDER BY rowid"" " string_content escape_sequence string_content escape_sequence string_content ") , (field_expression "db->aDb[iDb].zDbSName" (subscript_expression "db->aDb[iDb]" (field_expression "db->aDb" identifier -> field_identifier) [ identifier ]) . field_identifier) , identifier )))) ;) (expression_statement "p_Var5 = db->xAuth;" (assignment_expression "p_Var5 = db->xAuth" identifier = (field_expression "db->xAuth" identifier -> field_identifier)) ;) (expression_statement "db->xAuth = (sqlite3_xauth)0x0;" (assignment_expression "db->xAuth = (sqlite3_xauth)0x0" (field_expression "db->xAuth" identifier -> field_identifier) = (cast_expression "(sqlite3_xauth)0x0" ( (type_descriptor "sqlite3_xauth" type_identifier) ) number_literal)) ;) (expression_statement "local_80 = sqlite3_exec(db,pcVar11,sqlite3InitCallback,&initData,(char **)0x0);" (assignment_expression "local_80 = sqlite3_exec(db,pcVar11,sqlite3InitCallback,&initData,(char **)0x0)" identifier = (call_expression "sqlite3_exec(db,pcVar11,sqlite3InitCallback,&initData,(char **)0x0)" identifier (argument_list "(db,pcVar11,sqlite3InitCallback,&initData,(char **)0x0)" ( identifier , identifier , identifier , (pointer_expression "&initData" & identifier) , (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) )))) ;) (expression_statement "db->xAuth = p_Var5;" (assignment_expression "db->xAuth = p_Var5" (field_expression "db->xAuth" identifier -> field_identifier) = identifier) ;) (if_statement "if (local_80 == 0) {\n        local_80 = initData.rc;\n        if (pcVar11 != (char *)0x0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        sqlite3AnalysisLoad(db,iDb);\n        if (db->mallocFailed != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (pcVar11 != (char *)0x0) {\nLAB_000afc8d:\n          sqlite3DbFreeNN(db,pcVar11);\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (db->mallocFailed != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          sqlite3ResetAllSchemasOfConnection(db);\n        }\n        if ((db->flags & 0x8000000) == 0) goto LAB_000afcbe;\n      }" if (parenthesized_expression "(local_80 == 0)" ( (binary_expression "local_80 == 0" identifier == number_literal) )) (compound_statement "{\n        local_80 = initData.rc;\n        if (pcVar11 != (char *)0x0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        sqlite3AnalysisLoad(db,iDb);\n        if (db->mallocFailed != '\0') goto LAB_000afca4;\n      }" { (expression_statement "local_80 = initData.rc;" (assignment_expression "local_80 = initData.rc" identifier = (field_expression "initData.rc" identifier . field_identifier)) ;) (if_statement "if (pcVar11 != (char *)0x0) goto LAB_000afc8d;" if (parenthesized_expression "(pcVar11 != (char *)0x0)" ( (binary_expression "pcVar11 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000afc8d;" goto statement_identifier ;)) (labeled_statement "LAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;" statement_identifier : (if_statement "if (local_80 != 0) goto LAB_000afc9e;" if (parenthesized_expression "(local_80 != 0)" ( (binary_expression "local_80 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000afc9e;" goto statement_identifier ;))) (expression_statement "sqlite3AnalysisLoad(db,iDb);" (call_expression "sqlite3AnalysisLoad(db,iDb)" identifier (argument_list "(db,iDb)" ( identifier , identifier ))) ;) (if_statement "if (db->mallocFailed != '\0') goto LAB_000afca4;" if (parenthesized_expression "(db->mallocFailed != '\0')" ( (binary_expression "db->mallocFailed != '\0'" (field_expression "db->mallocFailed" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000afca4;" goto statement_identifier ;)) }) (else_clause "else {\n        if (pcVar11 != (char *)0x0) {\nLAB_000afc8d:\n          sqlite3DbFreeNN(db,pcVar11);\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (db->mallocFailed != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          sqlite3ResetAllSchemasOfConnection(db);\n        }\n        if ((db->flags & 0x8000000) == 0) goto LAB_000afcbe;\n      }" else (compound_statement "{\n        if (pcVar11 != (char *)0x0) {\nLAB_000afc8d:\n          sqlite3DbFreeNN(db,pcVar11);\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (db->mallocFailed != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          sqlite3ResetAllSchemasOfConnection(db);\n        }\n        if ((db->flags & 0x8000000) == 0) goto LAB_000afcbe;\n      }" { (if_statement "if (pcVar11 != (char *)0x0) {\nLAB_000afc8d:\n          sqlite3DbFreeNN(db,pcVar11);\n          goto LAB_000afc96;\n        }" if (parenthesized_expression "(pcVar11 != (char *)0x0)" ( (binary_expression "pcVar11 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_000afc8d:\n          sqlite3DbFreeNN(db,pcVar11);\n          goto LAB_000afc96;\n        }" { (labeled_statement "LAB_000afc8d:\n          sqlite3DbFreeNN(db,pcVar11);" statement_identifier : (expression_statement "sqlite3DbFreeNN(db,pcVar11);" (call_expression "sqlite3DbFreeNN(db,pcVar11)" identifier (argument_list "(db,pcVar11)" ( identifier , identifier ))) ;)) (goto_statement "goto LAB_000afc96;" goto statement_identifier ;) })) (labeled_statement "LAB_000afc9e:\n        if (db->mallocFailed != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          sqlite3ResetAllSchemasOfConnection(db);\n        }" statement_identifier : (if_statement "if (db->mallocFailed != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          sqlite3ResetAllSchemasOfConnection(db);\n        }" if (parenthesized_expression "(db->mallocFailed != '\0')" ( (binary_expression "db->mallocFailed != '\0'" (field_expression "db->mallocFailed" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_000afca4:\n          local_80 = 7;\n          sqlite3ResetAllSchemasOfConnection(db);\n        }" { (labeled_statement "LAB_000afca4:\n          local_80 = 7;" statement_identifier : (expression_statement "local_80 = 7;" (assignment_expression "local_80 = 7" identifier = number_literal) ;)) (expression_statement "sqlite3ResetAllSchemasOfConnection(db);" (call_expression "sqlite3ResetAllSchemasOfConnection(db)" identifier (argument_list "(db)" ( identifier ))) ;) }))) (if_statement "if ((db->flags & 0x8000000) == 0) goto LAB_000afcbe;" if (parenthesized_expression "((db->flags & 0x8000000) == 0)" ( (binary_expression "(db->flags & 0x8000000) == 0" (parenthesized_expression "(db->flags & 0x8000000)" ( (binary_expression "db->flags & 0x8000000" (field_expression "db->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (goto_statement "goto LAB_000afcbe;" goto statement_identifier ;)) }))) (expression_statement "puVar2 = &(db->aDb[iDb].pSchema)->schemaFlags;" (assignment_expression "puVar2 = &(db->aDb[iDb].pSchema)->schemaFlags" identifier = (pointer_expression "&(db->aDb[iDb].pSchema)->schemaFlags" & (field_expression "(db->aDb[iDb].pSchema)->schemaFlags" (parenthesized_expression "(db->aDb[iDb].pSchema)" ( (field_expression "db->aDb[iDb].pSchema" (subscript_expression "db->aDb[iDb]" (field_expression "db->aDb" identifier -> field_identifier) [ identifier ]) . field_identifier) )) -> field_identifier))) ;) (expression_statement "*puVar2 = *puVar2 | 1;" (assignment_expression "*puVar2 = *puVar2 | 1" (pointer_expression "*puVar2" * identifier) = (binary_expression "*puVar2 | 1" (pointer_expression "*puVar2" * identifier) | number_literal)) ;) (expression_statement "pBVar12 = pDVar4[iDb].pBt;" (assignment_expression "pBVar12 = pDVar4[iDb].pBt" identifier = (field_expression "pDVar4[iDb].pBt" (subscript_expression "pDVar4[iDb]" identifier [ identifier ]) . field_identifier)) ;) (expression_statement "local_80 = iVar8;" (assignment_expression "local_80 = iVar8" identifier = identifier) ;) }) (else_clause "else {\n      if (iDb == 0) {\n        uVar13 = (u8)(meta[4] & 3U);\n        if ((meta[4] & 3U) == 0) {\n          uVar13 = '\x01';\n        }\n        db->enc = uVar13;\n        pDVar4->pSchema->enc = uVar13;\n        pSVar10 = pDVar4->pSchema;\n        iVar14 = pSVar10->cache_size;\n        goto joined_r0x000afbdd;\n      }\n      bVar9 = db->enc;\n      if (meta[4] == (uint)bVar9) goto LAB_000afd44;\n      sqlite3SetString(pzErrMsg,db,\n                       "attached databases must use the same text encoding as main database");\n      local_80 = 1;\nLAB_000afcbe:\n      pBVar12 = pDVar4[iDb].pBt;\n    }" else (compound_statement "{\n      if (iDb == 0) {\n        uVar13 = (u8)(meta[4] & 3U);\n        if ((meta[4] & 3U) == 0) {\n          uVar13 = '\x01';\n        }\n        db->enc = uVar13;\n        pDVar4->pSchema->enc = uVar13;\n        pSVar10 = pDVar4->pSchema;\n        iVar14 = pSVar10->cache_size;\n        goto joined_r0x000afbdd;\n      }\n      bVar9 = db->enc;\n      if (meta[4] == (uint)bVar9) goto LAB_000afd44;\n      sqlite3SetString(pzErrMsg,db,\n                       "attached databases must use the same text encoding as main database");\n      local_80 = 1;\nLAB_000afcbe:\n      pBVar12 = pDVar4[iDb].pBt;\n    }" { (if_statement "if (iDb == 0) {\n        uVar13 = (u8)(meta[4] & 3U);\n        if ((meta[4] & 3U) == 0) {\n          uVar13 = '\x01';\n        }\n        db->enc = uVar13;\n        pDVar4->pSchema->enc = uVar13;\n        pSVar10 = pDVar4->pSchema;\n        iVar14 = pSVar10->cache_size;\n        goto joined_r0x000afbdd;\n      }" if (parenthesized_expression "(iDb == 0)" ( (binary_expression "iDb == 0" identifier == number_literal) )) (compound_statement "{\n        uVar13 = (u8)(meta[4] & 3U);\n        if ((meta[4] & 3U) == 0) {\n          uVar13 = '\x01';\n        }\n        db->enc = uVar13;\n        pDVar4->pSchema->enc = uVar13;\n        pSVar10 = pDVar4->pSchema;\n        iVar14 = pSVar10->cache_size;\n        goto joined_r0x000afbdd;\n      }" { (expression_statement "uVar13 = (u8)(meta[4] & 3U);" (assignment_expression "uVar13 = (u8)(meta[4] & 3U)" identifier = (call_expression "(u8)(meta[4] & 3U)" (parenthesized_expression "(u8)" ( identifier )) (argument_list "(meta[4] & 3U)" ( (binary_expression "meta[4] & 3U" (subscript_expression "meta[4]" identifier [ number_literal ]) & number_literal) )))) ;) (if_statement "if ((meta[4] & 3U) == 0) {\n          uVar13 = '\x01';\n        }" if (parenthesized_expression "((meta[4] & 3U) == 0)" ( (binary_expression "(meta[4] & 3U) == 0" (parenthesized_expression "(meta[4] & 3U)" ( (binary_expression "meta[4] & 3U" (subscript_expression "meta[4]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n          uVar13 = '\x01';\n        }" { (expression_statement "uVar13 = '\x01';" (assignment_expression "uVar13 = '\x01'" identifier = (char_literal "'\x01'" ' escape_sequence ')) ;) })) (expression_statement "db->enc = uVar13;" (assignment_expression "db->enc = uVar13" (field_expression "db->enc" identifier -> field_identifier) = identifier) ;) (expression_statement "pDVar4->pSchema->enc = uVar13;" (assignment_expression "pDVar4->pSchema->enc = uVar13" (field_expression "pDVar4->pSchema->enc" (field_expression "pDVar4->pSchema" identifier -> field_identifier) -> field_identifier) = identifier) ;) (expression_statement "pSVar10 = pDVar4->pSchema;" (assignment_expression "pSVar10 = pDVar4->pSchema" identifier = (field_expression "pDVar4->pSchema" identifier -> field_identifier)) ;) (expression_statement "iVar14 = pSVar10->cache_size;" (assignment_expression "iVar14 = pSVar10->cache_size" identifier = (field_expression "pSVar10->cache_size" identifier -> field_identifier)) ;) (goto_statement "goto joined_r0x000afbdd;" goto statement_identifier ;) })) (expression_statement "bVar9 = db->enc;" (assignment_expression "bVar9 = db->enc" identifier = (field_expression "db->enc" identifier -> field_identifier)) ;) (if_statement "if (meta[4] == (uint)bVar9) goto LAB_000afd44;" if (parenthesized_expression "(meta[4] == (uint)bVar9)" ( (binary_expression "meta[4] == (uint)bVar9" (subscript_expression "meta[4]" identifier [ number_literal ]) == (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier)) )) (goto_statement "goto LAB_000afd44;" goto statement_identifier ;)) (expression_statement "sqlite3SetString(pzErrMsg,db,\n                       "attached databases must use the same text encoding as main database");" (call_expression "sqlite3SetString(pzErrMsg,db,\n                       "attached databases must use the same text encoding as main database")" identifier (argument_list "(pzErrMsg,db,\n                       "attached databases must use the same text encoding as main database")" ( identifier , identifier , (string_literal ""attached databases must use the same text encoding as main database"" " string_content ") ))) ;) (expression_statement "local_80 = 1;" (assignment_expression "local_80 = 1" identifier = number_literal) ;) (labeled_statement "LAB_000afcbe:\n      pBVar12 = pDVar4[iDb].pBt;" statement_identifier : (expression_statement "pBVar12 = pDVar4[iDb].pBt;" (assignment_expression "pBVar12 = pDVar4[iDb].pBt" identifier = (field_expression "pDVar4[iDb].pBt" (subscript_expression "pDVar4[iDb]" identifier [ identifier ]) . field_identifier)) ;)) }))) (if_statement "if (bVar7) {\n      sqlite3BtreeCommit(pBVar12);\n      pBVar12 = pDVar4[iDb].pBt;\n    }" if (parenthesized_expression "(bVar7)" ( identifier )) (compound_statement "{\n      sqlite3BtreeCommit(pBVar12);\n      pBVar12 = pDVar4[iDb].pBt;\n    }" { (expression_statement "sqlite3BtreeCommit(pBVar12);" (call_expression "sqlite3BtreeCommit(pBVar12)" identifier (argument_list "(pBVar12)" ( identifier ))) ;) (expression_statement "pBVar12 = pDVar4[iDb].pBt;" (assignment_expression "pBVar12 = pDVar4[iDb].pBt" identifier = (field_expression "pDVar4[iDb].pBt" (subscript_expression "pDVar4[iDb]" identifier [ identifier ]) . field_identifier)) ;) })) (if_statement "if (pBVar12->sharable != '\0') {\n      piVar1 = &pBVar12->wantToLock;\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        sqlite3BtreeLeave(pBVar12);\n      }\n    }" if (parenthesized_expression "(pBVar12->sharable != '\0')" ( (binary_expression "pBVar12->sharable != '\0'" (field_expression "pBVar12->sharable" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar1 = &pBVar12->wantToLock;\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        sqlite3BtreeLeave(pBVar12);\n      }\n    }" { (expression_statement "piVar1 = &pBVar12->wantToLock;" (assignment_expression "piVar1 = &pBVar12->wantToLock" identifier = (pointer_expression "&pBVar12->wantToLock" & (field_expression "pBVar12->wantToLock" identifier -> field_identifier))) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (if_statement "if (*piVar1 == 0) {\nLAB_000afef0:\n        sqlite3BtreeLeave(pBVar12);\n      }" if (parenthesized_expression "(*piVar1 == 0)" ( (binary_expression "*piVar1 == 0" (pointer_expression "*piVar1" * identifier) == number_literal) )) (compound_statement "{\nLAB_000afef0:\n        sqlite3BtreeLeave(pBVar12);\n      }" { (labeled_statement "LAB_000afef0:\n        sqlite3BtreeLeave(pBVar12);" statement_identifier : (expression_statement "sqlite3BtreeLeave(pBVar12);" (call_expression "sqlite3BtreeLeave(pBVar12)" identifier (argument_list "(pBVar12)" ( identifier ))) ;)) })) })) (if_statement "if (local_80 == 0) goto LAB_000afd0b;" if (parenthesized_expression "(local_80 == 0)" ( (binary_expression "local_80 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000afd0b;" goto statement_identifier ;)) }))) (labeled_statement "LAB_000afce8:\n  if (((local_80 == 7) || (local_80 == 0xc0a)) &&\n     (uVar6._0_1_ = db->temp_store, uVar6._1_1_ = db->mallocFailed, uVar6._2_1_ = db->bBenignMalloc,\n     uVar6._3_1_ = db->dfltLockMode, (uVar6 & 0xffff00) == 0)) {\n    sqlite3OomFault(db);\n  }" statement_identifier : (if_statement "if (((local_80 == 7) || (local_80 == 0xc0a)) &&\n     (uVar6._0_1_ = db->temp_store, uVar6._1_1_ = db->mallocFailed, uVar6._2_1_ = db->bBenignMalloc,\n     uVar6._3_1_ = db->dfltLockMode, (uVar6 & 0xffff00) == 0)) {\n    sqlite3OomFault(db);\n  }" if (parenthesized_expression "(((local_80 == 7) || (local_80 == 0xc0a)) &&\n     (uVar6._0_1_ = db->temp_store, uVar6._1_1_ = db->mallocFailed, uVar6._2_1_ = db->bBenignMalloc,\n     uVar6._3_1_ = db->dfltLockMode, (uVar6 & 0xffff00) == 0))" ( (binary_expression "((local_80 == 7) || (local_80 == 0xc0a)) &&\n     (uVar6._0_1_ = db->temp_store, uVar6._1_1_ = db->mallocFailed, uVar6._2_1_ = db->bBenignMalloc,\n     uVar6._3_1_ = db->dfltLockMode, (uVar6 & 0xffff00) == 0)" (parenthesized_expression "((local_80 == 7) || (local_80 == 0xc0a))" ( (binary_expression "(local_80 == 7) || (local_80 == 0xc0a)" (parenthesized_expression "(local_80 == 7)" ( (binary_expression "local_80 == 7" identifier == number_literal) )) || (parenthesized_expression "(local_80 == 0xc0a)" ( (binary_expression "local_80 == 0xc0a" identifier == number_literal) ))) )) && (parenthesized_expression "(uVar6._0_1_ = db->temp_store, uVar6._1_1_ = db->mallocFailed, uVar6._2_1_ = db->bBenignMalloc,\n     uVar6._3_1_ = db->dfltLockMode, (uVar6 & 0xffff00) == 0)" ( (comma_expression "uVar6._0_1_ = db->temp_store, uVar6._1_1_ = db->mallocFailed, uVar6._2_1_ = db->bBenignMalloc,\n     uVar6._3_1_ = db->dfltLockMode, (uVar6 & 0xffff00) == 0" (assignment_expression "uVar6._0_1_ = db->temp_store" (field_expression "uVar6._0_1_" identifier . field_identifier) = (field_expression "db->temp_store" identifier -> field_identifier)) , (comma_expression "uVar6._1_1_ = db->mallocFailed, uVar6._2_1_ = db->bBenignMalloc,\n     uVar6._3_1_ = db->dfltLockMode, (uVar6 & 0xffff00) == 0" (assignment_expression "uVar6._1_1_ = db->mallocFailed" (field_expression "uVar6._1_1_" identifier . field_identifier) = (field_expression "db->mallocFailed" identifier -> field_identifier)) , (comma_expression "uVar6._2_1_ = db->bBenignMalloc,\n     uVar6._3_1_ = db->dfltLockMode, (uVar6 & 0xffff00) == 0" (assignment_expression "uVar6._2_1_ = db->bBenignMalloc" (field_expression "uVar6._2_1_" identifier . field_identifier) = (field_expression "db->bBenignMalloc" identifier -> field_identifier)) , (comma_expression "uVar6._3_1_ = db->dfltLockMode, (uVar6 & 0xffff00) == 0" (assignment_expression "uVar6._3_1_ = db->dfltLockMode" (field_expression "uVar6._3_1_" identifier . field_identifier) = (field_expression "db->dfltLockMode" identifier -> field_identifier)) , (binary_expression "(uVar6 & 0xffff00) == 0" (parenthesized_expression "(uVar6 & 0xffff00)" ( (binary_expression "uVar6 & 0xffff00" identifier & number_literal) )) == number_literal))))) ))) )) (compound_statement "{\n    sqlite3OomFault(db);\n  }" { (expression_statement "sqlite3OomFault(db);" (call_expression "sqlite3OomFault(db)" identifier (argument_list "(db)" ( identifier ))) ;) }))) (expression_statement "sqlite3ResetOneSchema(db,iDb);" (call_expression "sqlite3ResetOneSchema(db,iDb)" identifier (argument_list "(db,iDb)" ( identifier , identifier ))) ;) (labeled_statement "LAB_000afd0b:\n  (db->init).busy = '\0';" statement_identifier : (expression_statement "(db->init).busy = '\0';" (assignment_expression "(db->init).busy = '\0'" (field_expression "(db->init).busy" (parenthesized_expression "(db->init)" ( (field_expression "db->init" identifier -> field_identifier) )) . field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;)) (if_statement "if (iVar3 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar3 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar3 != *(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    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return local_80;" return identifier ;) })))
(translation_unit "int FUN_000afa70(undefined4 param_1)\n\n{\n  int *piVar1;\n  ushort *puVar2;\n  undefined4 uVar3;\n  bool bVar4;\n  int iVar5;\n  byte bVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined1 uVar10;\n  int iVar11;\n  int iVar12;\n  int unaff_EBP;\n  int iVar13;\n  int iVar14;\n  int in_GS_OFFSET;\n  bool bVar15;\n  undefined8 uVar16;\n  int local_80;\n  int local_5c [2];\n  int local_54;\n  int local_50;\n  undefined4 local_4c;\n  undefined4 local_48;\n  int local_44;\n  int local_40;\n  int local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  undefined4 local_28;\n  uint local_24;\n  int local_20;\n  \n  uVar16 = FUN_000f5a04();\n  iVar11 = (int)((ulonglong)uVar16 >> 0x20);\n  iVar7 = (int)uVar16;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_38 = 0;\n  iVar9 = unaff_EBP + 0x47ba9;\n  if (iVar11 == 1) {\n    iVar9 = unaff_EBP + 0x48b79;\n  }\n  local_50 = 0;\n  local_40 = unaff_EBP + 0x4adba;\n  local_3c = unaff_EBP + 0x568a2;\n  local_4c = param_1;\n  local_48 = 0;\n  *(undefined1 *)(iVar7 + 0xa1) = 1;\n  local_5c[0] = iVar7;\n  local_54 = iVar11;\n  local_44 = iVar9;\n  FUN_000c3720(local_5c,3,&local_44,0);\n  iVar5 = local_50;\n  local_80 = local_50;\n  if (local_50 != 0) goto LAB_000afce8;\n  iVar13 = iVar11 * 0x10;\n  iVar14 = iVar13 + *(int *)(iVar7 + 0x10);\n  iVar12 = *(int *)(iVar14 + 4);\n  if (iVar12 == 0) {\n    puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e);\n    *puVar2 = *puVar2 | 1;\n    goto LAB_000afd0b;\n  }\n  if (*(char *)(iVar12 + 9) != '\0') {\n    FUN_0002cb40();\n    iVar12 = *(int *)(iVar14 + 4);\n  }\n  bVar4 = false;\n  if (*(char *)(iVar12 + 8) == '\0') {\n    local_80 = FUN_0007e3b0();\n    if (local_80 == 0) {\n      bVar4 = true;\n      goto LAB_000afb5f;\n    }\n    FUN_00032150();\n    FUN_000288e0();\n    if (*(char *)(*(int *)(iVar14 + 4) + 9) != '\0') {\n      piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }\n  }\n  else {\nLAB_000afb5f:\n    iVar12 = 0;\n    do {\n      iVar12 = iVar12 + 1;\n      FUN_00038620();\n    } while (iVar12 != 5);\n    if ((*(byte *)(iVar7 + 0x1f) & 2) != 0) {\n      local_34 = 0;\n      local_30 = 0;\n      local_2c = 0;\n      local_28 = 0;\n      local_24 = 0;\n    }\n    **(undefined4 **)(iVar14 + 0xc) = local_34;\n    if (local_24 == 0) {\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 4;\n      bVar6 = *(byte *)(iVar7 + 0x4a);\nLAB_000afd44:\n      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;\n      iVar8 = *(int *)(iVar14 + 0xc);\n      iVar12 = *(int *)(iVar8 + 0x50);\njoined_r0x000afbdd:\n      if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }\n      *(char *)(iVar8 + 0x4c) = (char)local_30;\n      bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      if (bVar6 == 0) {\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }\n      if (4 < bVar6) {\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iVar11 == 0) && (3 < local_30)) {\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }\n      iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);\n      uVar3 = *(undefined4 *)(iVar7 + 0x13c);\n      *(undefined4 *)(iVar7 + 0x13c) = 0;\n      local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);\n      *(undefined4 *)(iVar7 + 0x13c) = uVar3;\n      if (local_80 == 0) {\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 1;\n      iVar9 = *(int *)(iVar14 + 4);\n      local_80 = iVar5;\n    }\n    else {\n      if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }\n      bVar6 = *(byte *)(iVar7 + 0x4a);\n      if (local_24 == bVar6) goto LAB_000afd44;\n      FUN_000288e0();\n      local_80 = 1;\nLAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (bVar4) {\n      FUN_00086700();\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (*(char *)(iVar9 + 9) != '\0') {\n      piVar1 = (int *)(iVar9 + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        FUN_0002cbd0();\n      }\n    }\n    if (local_80 == 0) goto LAB_000afd0b;\n  }\nLAB_000afce8:\n  if (((local_80 == 7) || (local_80 == 0xc0a)) && ((*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0)) {\n    FUN_00028380();\n  }\n  FUN_0003b710();\nLAB_000afd0b:\n  *(undefined1 *)(iVar7 + 0xa1) = 0;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }\n  return local_80;\n}\n\n" (function_definition "int FUN_000afa70(undefined4 param_1)\n\n{\n  int *piVar1;\n  ushort *puVar2;\n  undefined4 uVar3;\n  bool bVar4;\n  int iVar5;\n  byte bVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined1 uVar10;\n  int iVar11;\n  int iVar12;\n  int unaff_EBP;\n  int iVar13;\n  int iVar14;\n  int in_GS_OFFSET;\n  bool bVar15;\n  undefined8 uVar16;\n  int local_80;\n  int local_5c [2];\n  int local_54;\n  int local_50;\n  undefined4 local_4c;\n  undefined4 local_48;\n  int local_44;\n  int local_40;\n  int local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  undefined4 local_28;\n  uint local_24;\n  int local_20;\n  \n  uVar16 = FUN_000f5a04();\n  iVar11 = (int)((ulonglong)uVar16 >> 0x20);\n  iVar7 = (int)uVar16;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_38 = 0;\n  iVar9 = unaff_EBP + 0x47ba9;\n  if (iVar11 == 1) {\n    iVar9 = unaff_EBP + 0x48b79;\n  }\n  local_50 = 0;\n  local_40 = unaff_EBP + 0x4adba;\n  local_3c = unaff_EBP + 0x568a2;\n  local_4c = param_1;\n  local_48 = 0;\n  *(undefined1 *)(iVar7 + 0xa1) = 1;\n  local_5c[0] = iVar7;\n  local_54 = iVar11;\n  local_44 = iVar9;\n  FUN_000c3720(local_5c,3,&local_44,0);\n  iVar5 = local_50;\n  local_80 = local_50;\n  if (local_50 != 0) goto LAB_000afce8;\n  iVar13 = iVar11 * 0x10;\n  iVar14 = iVar13 + *(int *)(iVar7 + 0x10);\n  iVar12 = *(int *)(iVar14 + 4);\n  if (iVar12 == 0) {\n    puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e);\n    *puVar2 = *puVar2 | 1;\n    goto LAB_000afd0b;\n  }\n  if (*(char *)(iVar12 + 9) != '\0') {\n    FUN_0002cb40();\n    iVar12 = *(int *)(iVar14 + 4);\n  }\n  bVar4 = false;\n  if (*(char *)(iVar12 + 8) == '\0') {\n    local_80 = FUN_0007e3b0();\n    if (local_80 == 0) {\n      bVar4 = true;\n      goto LAB_000afb5f;\n    }\n    FUN_00032150();\n    FUN_000288e0();\n    if (*(char *)(*(int *)(iVar14 + 4) + 9) != '\0') {\n      piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }\n  }\n  else {\nLAB_000afb5f:\n    iVar12 = 0;\n    do {\n      iVar12 = iVar12 + 1;\n      FUN_00038620();\n    } while (iVar12 != 5);\n    if ((*(byte *)(iVar7 + 0x1f) & 2) != 0) {\n      local_34 = 0;\n      local_30 = 0;\n      local_2c = 0;\n      local_28 = 0;\n      local_24 = 0;\n    }\n    **(undefined4 **)(iVar14 + 0xc) = local_34;\n    if (local_24 == 0) {\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 4;\n      bVar6 = *(byte *)(iVar7 + 0x4a);\nLAB_000afd44:\n      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;\n      iVar8 = *(int *)(iVar14 + 0xc);\n      iVar12 = *(int *)(iVar8 + 0x50);\njoined_r0x000afbdd:\n      if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }\n      *(char *)(iVar8 + 0x4c) = (char)local_30;\n      bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      if (bVar6 == 0) {\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }\n      if (4 < bVar6) {\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iVar11 == 0) && (3 < local_30)) {\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }\n      iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);\n      uVar3 = *(undefined4 *)(iVar7 + 0x13c);\n      *(undefined4 *)(iVar7 + 0x13c) = 0;\n      local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);\n      *(undefined4 *)(iVar7 + 0x13c) = uVar3;\n      if (local_80 == 0) {\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 1;\n      iVar9 = *(int *)(iVar14 + 4);\n      local_80 = iVar5;\n    }\n    else {\n      if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }\n      bVar6 = *(byte *)(iVar7 + 0x4a);\n      if (local_24 == bVar6) goto LAB_000afd44;\n      FUN_000288e0();\n      local_80 = 1;\nLAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (bVar4) {\n      FUN_00086700();\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (*(char *)(iVar9 + 9) != '\0') {\n      piVar1 = (int *)(iVar9 + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        FUN_0002cbd0();\n      }\n    }\n    if (local_80 == 0) goto LAB_000afd0b;\n  }\nLAB_000afce8:\n  if (((local_80 == 7) || (local_80 == 0xc0a)) && ((*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0)) {\n    FUN_00028380();\n  }\n  FUN_0003b710();\nLAB_000afd0b:\n  *(undefined1 *)(iVar7 + 0xa1) = 0;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }\n  return local_80;\n}" primitive_type (function_declarator "FUN_000afa70(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  ushort *puVar2;\n  undefined4 uVar3;\n  bool bVar4;\n  int iVar5;\n  byte bVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined1 uVar10;\n  int iVar11;\n  int iVar12;\n  int unaff_EBP;\n  int iVar13;\n  int iVar14;\n  int in_GS_OFFSET;\n  bool bVar15;\n  undefined8 uVar16;\n  int local_80;\n  int local_5c [2];\n  int local_54;\n  int local_50;\n  undefined4 local_4c;\n  undefined4 local_48;\n  int local_44;\n  int local_40;\n  int local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  undefined4 local_28;\n  uint local_24;\n  int local_20;\n  \n  uVar16 = FUN_000f5a04();\n  iVar11 = (int)((ulonglong)uVar16 >> 0x20);\n  iVar7 = (int)uVar16;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_38 = 0;\n  iVar9 = unaff_EBP + 0x47ba9;\n  if (iVar11 == 1) {\n    iVar9 = unaff_EBP + 0x48b79;\n  }\n  local_50 = 0;\n  local_40 = unaff_EBP + 0x4adba;\n  local_3c = unaff_EBP + 0x568a2;\n  local_4c = param_1;\n  local_48 = 0;\n  *(undefined1 *)(iVar7 + 0xa1) = 1;\n  local_5c[0] = iVar7;\n  local_54 = iVar11;\n  local_44 = iVar9;\n  FUN_000c3720(local_5c,3,&local_44,0);\n  iVar5 = local_50;\n  local_80 = local_50;\n  if (local_50 != 0) goto LAB_000afce8;\n  iVar13 = iVar11 * 0x10;\n  iVar14 = iVar13 + *(int *)(iVar7 + 0x10);\n  iVar12 = *(int *)(iVar14 + 4);\n  if (iVar12 == 0) {\n    puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e);\n    *puVar2 = *puVar2 | 1;\n    goto LAB_000afd0b;\n  }\n  if (*(char *)(iVar12 + 9) != '\0') {\n    FUN_0002cb40();\n    iVar12 = *(int *)(iVar14 + 4);\n  }\n  bVar4 = false;\n  if (*(char *)(iVar12 + 8) == '\0') {\n    local_80 = FUN_0007e3b0();\n    if (local_80 == 0) {\n      bVar4 = true;\n      goto LAB_000afb5f;\n    }\n    FUN_00032150();\n    FUN_000288e0();\n    if (*(char *)(*(int *)(iVar14 + 4) + 9) != '\0') {\n      piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }\n  }\n  else {\nLAB_000afb5f:\n    iVar12 = 0;\n    do {\n      iVar12 = iVar12 + 1;\n      FUN_00038620();\n    } while (iVar12 != 5);\n    if ((*(byte *)(iVar7 + 0x1f) & 2) != 0) {\n      local_34 = 0;\n      local_30 = 0;\n      local_2c = 0;\n      local_28 = 0;\n      local_24 = 0;\n    }\n    **(undefined4 **)(iVar14 + 0xc) = local_34;\n    if (local_24 == 0) {\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 4;\n      bVar6 = *(byte *)(iVar7 + 0x4a);\nLAB_000afd44:\n      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;\n      iVar8 = *(int *)(iVar14 + 0xc);\n      iVar12 = *(int *)(iVar8 + 0x50);\njoined_r0x000afbdd:\n      if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }\n      *(char *)(iVar8 + 0x4c) = (char)local_30;\n      bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      if (bVar6 == 0) {\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }\n      if (4 < bVar6) {\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iVar11 == 0) && (3 < local_30)) {\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }\n      iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);\n      uVar3 = *(undefined4 *)(iVar7 + 0x13c);\n      *(undefined4 *)(iVar7 + 0x13c) = 0;\n      local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);\n      *(undefined4 *)(iVar7 + 0x13c) = uVar3;\n      if (local_80 == 0) {\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 1;\n      iVar9 = *(int *)(iVar14 + 4);\n      local_80 = iVar5;\n    }\n    else {\n      if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }\n      bVar6 = *(byte *)(iVar7 + 0x4a);\n      if (local_24 == bVar6) goto LAB_000afd44;\n      FUN_000288e0();\n      local_80 = 1;\nLAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (bVar4) {\n      FUN_00086700();\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (*(char *)(iVar9 + 9) != '\0') {\n      piVar1 = (int *)(iVar9 + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        FUN_0002cbd0();\n      }\n    }\n    if (local_80 == 0) goto LAB_000afd0b;\n  }\nLAB_000afce8:\n  if (((local_80 == 7) || (local_80 == 0xc0a)) && ((*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0)) {\n    FUN_00028380();\n  }\n  FUN_0003b710();\nLAB_000afd0b:\n  *(undefined1 *)(iVar7 + 0xa1) = 0;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }\n  return local_80;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "ushort *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "bool bVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "undefined1 uVar10;" type_identifier identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar15;" primitive_type identifier ;) (declaration "undefined8 uVar16;" type_identifier identifier ;) (declaration "int local_80;" primitive_type identifier ;) (declaration "int local_5c [2];" primitive_type (array_declarator "local_5c [2]" identifier [ number_literal ]) ;) (declaration "int local_54;" primitive_type identifier ;) (declaration "int local_50;" primitive_type identifier ;) (declaration "undefined4 local_4c;" type_identifier identifier ;) (declaration "undefined4 local_48;" type_identifier identifier ;) (declaration "int local_44;" primitive_type identifier ;) (declaration "int local_40;" primitive_type identifier ;) (declaration "int local_3c;" primitive_type identifier ;) (declaration "undefined4 local_38;" type_identifier identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "uint local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "uVar16 = FUN_000f5a04();" (assignment_expression "uVar16 = FUN_000f5a04()" identifier = (call_expression "FUN_000f5a04()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar11 = (int)((ulonglong)uVar16 >> 0x20);" (assignment_expression "iVar11 = (int)((ulonglong)uVar16 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar16 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar16 >> 0x20)" ( (binary_expression "(ulonglong)uVar16 >> 0x20" (cast_expression "(ulonglong)uVar16" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "iVar7 = (int)uVar16;" (assignment_expression "iVar7 = (int)uVar16" identifier = (cast_expression "(int)uVar16" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "iVar9 = unaff_EBP + 0x47ba9;" (assignment_expression "iVar9 = unaff_EBP + 0x47ba9" identifier = (binary_expression "unaff_EBP + 0x47ba9" identifier + number_literal)) ;) (if_statement "if (iVar11 == 1) {\n    iVar9 = unaff_EBP + 0x48b79;\n  }" if (parenthesized_expression "(iVar11 == 1)" ( (binary_expression "iVar11 == 1" identifier == number_literal) )) (compound_statement "{\n    iVar9 = unaff_EBP + 0x48b79;\n  }" { (expression_statement "iVar9 = unaff_EBP + 0x48b79;" (assignment_expression "iVar9 = unaff_EBP + 0x48b79" identifier = (binary_expression "unaff_EBP + 0x48b79" identifier + number_literal)) ;) })) (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" identifier = number_literal) ;) (expression_statement "local_40 = unaff_EBP + 0x4adba;" (assignment_expression "local_40 = unaff_EBP + 0x4adba" identifier = (binary_expression "unaff_EBP + 0x4adba" identifier + number_literal)) ;) (expression_statement "local_3c = unaff_EBP + 0x568a2;" (assignment_expression "local_3c = unaff_EBP + 0x568a2" identifier = (binary_expression "unaff_EBP + 0x568a2" identifier + number_literal)) ;) (expression_statement "local_4c = param_1;" (assignment_expression "local_4c = param_1" identifier = identifier) ;) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" identifier = number_literal) ;) (expression_statement "*(undefined1 *)(iVar7 + 0xa1) = 1;" (assignment_expression "*(undefined1 *)(iVar7 + 0xa1) = 1" (pointer_expression "*(undefined1 *)(iVar7 + 0xa1)" * (cast_expression "(undefined1 *)(iVar7 + 0xa1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0xa1)" ( (binary_expression "iVar7 + 0xa1" identifier + number_literal) )))) = number_literal) ;) (expression_statement "local_5c[0] = iVar7;" (assignment_expression "local_5c[0] = iVar7" (subscript_expression "local_5c[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "local_54 = iVar11;" (assignment_expression "local_54 = iVar11" identifier = identifier) ;) (expression_statement "local_44 = iVar9;" (assignment_expression "local_44 = iVar9" identifier = identifier) ;) (expression_statement "FUN_000c3720(local_5c,3,&local_44,0);" (call_expression "FUN_000c3720(local_5c,3,&local_44,0)" identifier (argument_list "(local_5c,3,&local_44,0)" ( identifier , number_literal , (pointer_expression "&local_44" & identifier) , number_literal ))) ;) (expression_statement "iVar5 = local_50;" (assignment_expression "iVar5 = local_50" identifier = identifier) ;) (expression_statement "local_80 = local_50;" (assignment_expression "local_80 = local_50" identifier = identifier) ;) (if_statement "if (local_50 != 0) goto LAB_000afce8;" if (parenthesized_expression "(local_50 != 0)" ( (binary_expression "local_50 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000afce8;" goto statement_identifier ;)) (expression_statement "iVar13 = iVar11 * 0x10;" (assignment_expression "iVar13 = iVar11 * 0x10" identifier = (binary_expression "iVar11 * 0x10" identifier * number_literal)) ;) (expression_statement "iVar14 = iVar13 + *(int *)(iVar7 + 0x10);" (assignment_expression "iVar14 = iVar13 + *(int *)(iVar7 + 0x10)" identifier = (binary_expression "iVar13 + *(int *)(iVar7 + 0x10)" identifier + (pointer_expression "*(int *)(iVar7 + 0x10)" * (cast_expression "(int *)(iVar7 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x10)" ( (binary_expression "iVar7 + 0x10" identifier + number_literal) )))))) ;) (expression_statement "iVar12 = *(int *)(iVar14 + 4);" (assignment_expression "iVar12 = *(int *)(iVar14 + 4)" identifier = (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) ))))) ;) (if_statement "if (iVar12 == 0) {\n    puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e);\n    *puVar2 = *puVar2 | 1;\n    goto LAB_000afd0b;\n  }" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e);\n    *puVar2 = *puVar2 | 1;\n    goto LAB_000afd0b;\n  }" { (expression_statement "puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e);" (assignment_expression "puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e)" identifier = (cast_expression "(ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e)" ( (binary_expression "*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e" (pointer_expression "*(int *)(*(int *)(iVar7 + 0x10) + 0x1c)" * (cast_expression "(int *)(*(int *)(iVar7 + 0x10) + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar7 + 0x10) + 0x1c)" ( (binary_expression "*(int *)(iVar7 + 0x10) + 0x1c" (pointer_expression "*(int *)(iVar7 + 0x10)" * (cast_expression "(int *)(iVar7 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x10)" ( (binary_expression "iVar7 + 0x10" identifier + number_literal) )))) + number_literal) )))) + number_literal) )))) ;) (expression_statement "*puVar2 = *puVar2 | 1;" (assignment_expression "*puVar2 = *puVar2 | 1" (pointer_expression "*puVar2" * identifier) = (binary_expression "*puVar2 | 1" (pointer_expression "*puVar2" * identifier) | number_literal)) ;) (goto_statement "goto LAB_000afd0b;" goto statement_identifier ;) })) (if_statement "if (*(char *)(iVar12 + 9) != '\0') {\n    FUN_0002cb40();\n    iVar12 = *(int *)(iVar14 + 4);\n  }" if (parenthesized_expression "(*(char *)(iVar12 + 9) != '\0')" ( (binary_expression "*(char *)(iVar12 + 9) != '\0'" (pointer_expression "*(char *)(iVar12 + 9)" * (cast_expression "(char *)(iVar12 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 9)" ( (binary_expression "iVar12 + 9" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0002cb40();\n    iVar12 = *(int *)(iVar14 + 4);\n  }" { (expression_statement "FUN_0002cb40();" (call_expression "FUN_0002cb40()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar12 = *(int *)(iVar14 + 4);" (assignment_expression "iVar12 = *(int *)(iVar14 + 4)" identifier = (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) ))))) ;) })) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" identifier = false) ;) (if_statement "if (*(char *)(iVar12 + 8) == '\0') {\n    local_80 = FUN_0007e3b0();\n    if (local_80 == 0) {\n      bVar4 = true;\n      goto LAB_000afb5f;\n    }\n    FUN_00032150();\n    FUN_000288e0();\n    if (*(char *)(*(int *)(iVar14 + 4) + 9) != '\0') {\n      piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }\n  }\n  else {\nLAB_000afb5f:\n    iVar12 = 0;\n    do {\n      iVar12 = iVar12 + 1;\n      FUN_00038620();\n    } while (iVar12 != 5);\n    if ((*(byte *)(iVar7 + 0x1f) & 2) != 0) {\n      local_34 = 0;\n      local_30 = 0;\n      local_2c = 0;\n      local_28 = 0;\n      local_24 = 0;\n    }\n    **(undefined4 **)(iVar14 + 0xc) = local_34;\n    if (local_24 == 0) {\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 4;\n      bVar6 = *(byte *)(iVar7 + 0x4a);\nLAB_000afd44:\n      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;\n      iVar8 = *(int *)(iVar14 + 0xc);\n      iVar12 = *(int *)(iVar8 + 0x50);\njoined_r0x000afbdd:\n      if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }\n      *(char *)(iVar8 + 0x4c) = (char)local_30;\n      bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      if (bVar6 == 0) {\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }\n      if (4 < bVar6) {\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iVar11 == 0) && (3 < local_30)) {\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }\n      iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);\n      uVar3 = *(undefined4 *)(iVar7 + 0x13c);\n      *(undefined4 *)(iVar7 + 0x13c) = 0;\n      local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);\n      *(undefined4 *)(iVar7 + 0x13c) = uVar3;\n      if (local_80 == 0) {\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 1;\n      iVar9 = *(int *)(iVar14 + 4);\n      local_80 = iVar5;\n    }\n    else {\n      if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }\n      bVar6 = *(byte *)(iVar7 + 0x4a);\n      if (local_24 == bVar6) goto LAB_000afd44;\n      FUN_000288e0();\n      local_80 = 1;\nLAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (bVar4) {\n      FUN_00086700();\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (*(char *)(iVar9 + 9) != '\0') {\n      piVar1 = (int *)(iVar9 + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        FUN_0002cbd0();\n      }\n    }\n    if (local_80 == 0) goto LAB_000afd0b;\n  }" if (parenthesized_expression "(*(char *)(iVar12 + 8) == '\0')" ( (binary_expression "*(char *)(iVar12 + 8) == '\0'" (pointer_expression "*(char *)(iVar12 + 8)" * (cast_expression "(char *)(iVar12 + 8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 8)" ( (binary_expression "iVar12 + 8" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_80 = FUN_0007e3b0();\n    if (local_80 == 0) {\n      bVar4 = true;\n      goto LAB_000afb5f;\n    }\n    FUN_00032150();\n    FUN_000288e0();\n    if (*(char *)(*(int *)(iVar14 + 4) + 9) != '\0') {\n      piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }\n  }" { (expression_statement "local_80 = FUN_0007e3b0();" (assignment_expression "local_80 = FUN_0007e3b0()" identifier = (call_expression "FUN_0007e3b0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (local_80 == 0) {\n      bVar4 = true;\n      goto LAB_000afb5f;\n    }" if (parenthesized_expression "(local_80 == 0)" ( (binary_expression "local_80 == 0" identifier == number_literal) )) (compound_statement "{\n      bVar4 = true;\n      goto LAB_000afb5f;\n    }" { (expression_statement "bVar4 = true;" (assignment_expression "bVar4 = true" identifier = true) ;) (goto_statement "goto LAB_000afb5f;" goto statement_identifier ;) })) (expression_statement "FUN_00032150();" (call_expression "FUN_00032150()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_000288e0();" (call_expression "FUN_000288e0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(char *)(*(int *)(iVar14 + 4) + 9) != '\0') {\n      piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }" if (parenthesized_expression "(*(char *)(*(int *)(iVar14 + 4) + 9) != '\0')" ( (binary_expression "*(char *)(*(int *)(iVar14 + 4) + 9) != '\0'" (pointer_expression "*(char *)(*(int *)(iVar14 + 4) + 9)" * (cast_expression "(char *)(*(int *)(iVar14 + 4) + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar14 + 4) + 9)" ( (binary_expression "*(int *)(iVar14 + 4) + 9" (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) )))) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }" { (expression_statement "piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc);" (assignment_expression "piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc)" identifier = (cast_expression "(int *)(*(int *)(iVar14 + 4) + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar14 + 4) + 0xc)" ( (binary_expression "*(int *)(iVar14 + 4) + 0xc" (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (if_statement "if (*piVar1 != 0) goto LAB_000afce8;" if (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) (goto_statement "goto LAB_000afce8;" goto statement_identifier ;)) (goto_statement "goto LAB_000afef0;" goto statement_identifier ;) })) }) (else_clause "else {\nLAB_000afb5f:\n    iVar12 = 0;\n    do {\n      iVar12 = iVar12 + 1;\n      FUN_00038620();\n    } while (iVar12 != 5);\n    if ((*(byte *)(iVar7 + 0x1f) & 2) != 0) {\n      local_34 = 0;\n      local_30 = 0;\n      local_2c = 0;\n      local_28 = 0;\n      local_24 = 0;\n    }\n    **(undefined4 **)(iVar14 + 0xc) = local_34;\n    if (local_24 == 0) {\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 4;\n      bVar6 = *(byte *)(iVar7 + 0x4a);\nLAB_000afd44:\n      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;\n      iVar8 = *(int *)(iVar14 + 0xc);\n      iVar12 = *(int *)(iVar8 + 0x50);\njoined_r0x000afbdd:\n      if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }\n      *(char *)(iVar8 + 0x4c) = (char)local_30;\n      bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      if (bVar6 == 0) {\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }\n      if (4 < bVar6) {\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iVar11 == 0) && (3 < local_30)) {\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }\n      iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);\n      uVar3 = *(undefined4 *)(iVar7 + 0x13c);\n      *(undefined4 *)(iVar7 + 0x13c) = 0;\n      local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);\n      *(undefined4 *)(iVar7 + 0x13c) = uVar3;\n      if (local_80 == 0) {\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 1;\n      iVar9 = *(int *)(iVar14 + 4);\n      local_80 = iVar5;\n    }\n    else {\n      if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }\n      bVar6 = *(byte *)(iVar7 + 0x4a);\n      if (local_24 == bVar6) goto LAB_000afd44;\n      FUN_000288e0();\n      local_80 = 1;\nLAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (bVar4) {\n      FUN_00086700();\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (*(char *)(iVar9 + 9) != '\0') {\n      piVar1 = (int *)(iVar9 + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        FUN_0002cbd0();\n      }\n    }\n    if (local_80 == 0) goto LAB_000afd0b;\n  }" else (compound_statement "{\nLAB_000afb5f:\n    iVar12 = 0;\n    do {\n      iVar12 = iVar12 + 1;\n      FUN_00038620();\n    } while (iVar12 != 5);\n    if ((*(byte *)(iVar7 + 0x1f) & 2) != 0) {\n      local_34 = 0;\n      local_30 = 0;\n      local_2c = 0;\n      local_28 = 0;\n      local_24 = 0;\n    }\n    **(undefined4 **)(iVar14 + 0xc) = local_34;\n    if (local_24 == 0) {\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 4;\n      bVar6 = *(byte *)(iVar7 + 0x4a);\nLAB_000afd44:\n      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;\n      iVar8 = *(int *)(iVar14 + 0xc);\n      iVar12 = *(int *)(iVar8 + 0x50);\njoined_r0x000afbdd:\n      if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }\n      *(char *)(iVar8 + 0x4c) = (char)local_30;\n      bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      if (bVar6 == 0) {\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }\n      if (4 < bVar6) {\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iVar11 == 0) && (3 < local_30)) {\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }\n      iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);\n      uVar3 = *(undefined4 *)(iVar7 + 0x13c);\n      *(undefined4 *)(iVar7 + 0x13c) = 0;\n      local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);\n      *(undefined4 *)(iVar7 + 0x13c) = uVar3;\n      if (local_80 == 0) {\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 1;\n      iVar9 = *(int *)(iVar14 + 4);\n      local_80 = iVar5;\n    }\n    else {\n      if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }\n      bVar6 = *(byte *)(iVar7 + 0x4a);\n      if (local_24 == bVar6) goto LAB_000afd44;\n      FUN_000288e0();\n      local_80 = 1;\nLAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (bVar4) {\n      FUN_00086700();\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (*(char *)(iVar9 + 9) != '\0') {\n      piVar1 = (int *)(iVar9 + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        FUN_0002cbd0();\n      }\n    }\n    if (local_80 == 0) goto LAB_000afd0b;\n  }" { (labeled_statement "LAB_000afb5f:\n    iVar12 = 0;" statement_identifier : (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;)) (do_statement "do {\n      iVar12 = iVar12 + 1;\n      FUN_00038620();\n    } while (iVar12 != 5);" do (compound_statement "{\n      iVar12 = iVar12 + 1;\n      FUN_00038620();\n    }" { (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" identifier = (binary_expression "iVar12 + 1" identifier + number_literal)) ;) (expression_statement "FUN_00038620();" (call_expression "FUN_00038620()" identifier (argument_list "()" ( ))) ;) }) while (parenthesized_expression "(iVar12 != 5)" ( (binary_expression "iVar12 != 5" identifier != number_literal) )) ;) (if_statement "if ((*(byte *)(iVar7 + 0x1f) & 2) != 0) {\n      local_34 = 0;\n      local_30 = 0;\n      local_2c = 0;\n      local_28 = 0;\n      local_24 = 0;\n    }" if (parenthesized_expression "((*(byte *)(iVar7 + 0x1f) & 2) != 0)" ( (binary_expression "(*(byte *)(iVar7 + 0x1f) & 2) != 0" (parenthesized_expression "(*(byte *)(iVar7 + 0x1f) & 2)" ( (binary_expression "*(byte *)(iVar7 + 0x1f) & 2" (pointer_expression "*(byte *)(iVar7 + 0x1f)" * (cast_expression "(byte *)(iVar7 + 0x1f)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x1f)" ( (binary_expression "iVar7 + 0x1f" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      local_34 = 0;\n      local_30 = 0;\n      local_2c = 0;\n      local_28 = 0;\n      local_24 = 0;\n    }" { (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) })) (expression_statement "**(undefined4 **)(iVar14 + 0xc) = local_34;" (assignment_expression "**(undefined4 **)(iVar14 + 0xc) = local_34" (pointer_expression "**(undefined4 **)(iVar14 + 0xc)" * (pointer_expression "*(undefined4 **)(iVar14 + 0xc)" * (cast_expression "(undefined4 **)(iVar14 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar14 + 0xc)" ( (binary_expression "iVar14 + 0xc" identifier + number_literal) ))))) = identifier) ;) (if_statement "if (local_24 == 0) {\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 4;\n      bVar6 = *(byte *)(iVar7 + 0x4a);\nLAB_000afd44:\n      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;\n      iVar8 = *(int *)(iVar14 + 0xc);\n      iVar12 = *(int *)(iVar8 + 0x50);\njoined_r0x000afbdd:\n      if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }\n      *(char *)(iVar8 + 0x4c) = (char)local_30;\n      bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      if (bVar6 == 0) {\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }\n      if (4 < bVar6) {\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iVar11 == 0) && (3 < local_30)) {\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }\n      iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);\n      uVar3 = *(undefined4 *)(iVar7 + 0x13c);\n      *(undefined4 *)(iVar7 + 0x13c) = 0;\n      local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);\n      *(undefined4 *)(iVar7 + 0x13c) = uVar3;\n      if (local_80 == 0) {\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 1;\n      iVar9 = *(int *)(iVar14 + 4);\n      local_80 = iVar5;\n    }\n    else {\n      if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }\n      bVar6 = *(byte *)(iVar7 + 0x4a);\n      if (local_24 == bVar6) goto LAB_000afd44;\n      FUN_000288e0();\n      local_80 = 1;\nLAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);\n    }" if (parenthesized_expression "(local_24 == 0)" ( (binary_expression "local_24 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 4;\n      bVar6 = *(byte *)(iVar7 + 0x4a);\nLAB_000afd44:\n      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;\n      iVar8 = *(int *)(iVar14 + 0xc);\n      iVar12 = *(int *)(iVar8 + 0x50);\njoined_r0x000afbdd:\n      if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }\n      *(char *)(iVar8 + 0x4c) = (char)local_30;\n      bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      if (bVar6 == 0) {\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }\n      if (4 < bVar6) {\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iVar11 == 0) && (3 < local_30)) {\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }\n      iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);\n      uVar3 = *(undefined4 *)(iVar7 + 0x13c);\n      *(undefined4 *)(iVar7 + 0x13c) = 0;\n      local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);\n      *(undefined4 *)(iVar7 + 0x13c) = uVar3;\n      if (local_80 == 0) {\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 1;\n      iVar9 = *(int *)(iVar14 + 4);\n      local_80 = iVar5;\n    }" { (expression_statement "puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);" (assignment_expression "puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e)" identifier = (cast_expression "(ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e)" ( (binary_expression "*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e" (pointer_expression "*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13)" * (cast_expression "(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar7 + 0x10) + 0xc + iVar13)" ( (binary_expression "*(int *)(iVar7 + 0x10) + 0xc + iVar13" (binary_expression "*(int *)(iVar7 + 0x10) + 0xc" (pointer_expression "*(int *)(iVar7 + 0x10)" * (cast_expression "(int *)(iVar7 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x10)" ( (binary_expression "iVar7 + 0x10" identifier + number_literal) )))) + number_literal) + identifier) )))) + number_literal) )))) ;) (expression_statement "*puVar2 = *puVar2 | 4;" (assignment_expression "*puVar2 = *puVar2 | 4" (pointer_expression "*puVar2" * identifier) = (binary_expression "*puVar2 | 4" (pointer_expression "*puVar2" * identifier) | number_literal)) ;) (expression_statement "bVar6 = *(byte *)(iVar7 + 0x4a);" (assignment_expression "bVar6 = *(byte *)(iVar7 + 0x4a)" identifier = (pointer_expression "*(byte *)(iVar7 + 0x4a)" * (cast_expression "(byte *)(iVar7 + 0x4a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x4a)" ( (binary_expression "iVar7 + 0x4a" identifier + number_literal) ))))) ;) (labeled_statement "LAB_000afd44:\n      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;" statement_identifier : (expression_statement "*(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;" (assignment_expression "*(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6" (pointer_expression "*(byte *)(*(int *)(iVar14 + 0xc) + 0x4d)" * (cast_expression "(byte *)(*(int *)(iVar14 + 0xc) + 0x4d)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar14 + 0xc) + 0x4d)" ( (binary_expression "*(int *)(iVar14 + 0xc) + 0x4d" (pointer_expression "*(int *)(iVar14 + 0xc)" * (cast_expression "(int *)(iVar14 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0xc)" ( (binary_expression "iVar14 + 0xc" identifier + number_literal) )))) + number_literal) )))) = identifier) ;)) (expression_statement "iVar8 = *(int *)(iVar14 + 0xc);" (assignment_expression "iVar8 = *(int *)(iVar14 + 0xc)" identifier = (pointer_expression "*(int *)(iVar14 + 0xc)" * (cast_expression "(int *)(iVar14 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0xc)" ( (binary_expression "iVar14 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar12 = *(int *)(iVar8 + 0x50);" (assignment_expression "iVar12 = *(int *)(iVar8 + 0x50)" identifier = (pointer_expression "*(int *)(iVar8 + 0x50)" * (cast_expression "(int *)(iVar8 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x50)" ( (binary_expression "iVar8 + 0x50" identifier + number_literal) ))))) ;) (labeled_statement "joined_r0x000afbdd:\n      if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }" statement_identifier : (if_statement "if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (compound_statement "{\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }" { (if_statement "if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }" if (parenthesized_expression "(local_2c < 0)" ( (binary_expression "local_2c < 0" identifier < number_literal) )) (compound_statement "{\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }" { (expression_statement "iVar12 = -local_2c;" (assignment_expression "iVar12 = -local_2c" identifier = (unary_expression "-local_2c" - identifier)) ;) (expression_statement "bVar15 = local_2c != -0x80000000;" (assignment_expression "bVar15 = local_2c != -0x80000000" identifier = (binary_expression "local_2c != -0x80000000" identifier != number_literal)) ;) (expression_statement "local_2c = 0x7fffffff;" (assignment_expression "local_2c = 0x7fffffff" identifier = number_literal) ;) (if_statement "if (bVar15) {\n            local_2c = iVar12;\n          }" if (parenthesized_expression "(bVar15)" ( identifier )) (compound_statement "{\n            local_2c = iVar12;\n          }" { (expression_statement "local_2c = iVar12;" (assignment_expression "local_2c = iVar12" identifier = identifier) ;) })) }) (else_clause "else if (local_2c == 0) {\n          local_2c = -2000;\n        }" else (if_statement "if (local_2c == 0) {\n          local_2c = -2000;\n        }" if (parenthesized_expression "(local_2c == 0)" ( (binary_expression "local_2c == 0" identifier == number_literal) )) (compound_statement "{\n          local_2c = -2000;\n        }" { (expression_statement "local_2c = -2000;" (assignment_expression "local_2c = -2000" identifier = number_literal) ;) })))) (expression_statement "*(int *)(iVar8 + 0x50) = local_2c;" (assignment_expression "*(int *)(iVar8 + 0x50) = local_2c" (pointer_expression "*(int *)(iVar8 + 0x50)" * (cast_expression "(int *)(iVar8 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x50)" ( (binary_expression "iVar8 + 0x50" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_0002cfc0();" (call_expression "FUN_0002cfc0()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar8 = *(int *)(iVar14 + 0xc);" (assignment_expression "iVar8 = *(int *)(iVar14 + 0xc)" identifier = (pointer_expression "*(int *)(iVar14 + 0xc)" * (cast_expression "(int *)(iVar14 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0xc)" ( (binary_expression "iVar14 + 0xc" identifier + number_literal) ))))) ;) }))) (expression_statement "*(char *)(iVar8 + 0x4c) = (char)local_30;" (assignment_expression "*(char *)(iVar8 + 0x4c) = (char)local_30" (pointer_expression "*(char *)(iVar8 + 0x4c)" * (cast_expression "(char *)(iVar8 + 0x4c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x4c)" ( (binary_expression "iVar8 + 0x4c" identifier + number_literal) )))) = (cast_expression "(char)local_30" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);" (assignment_expression "bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c)" identifier = (pointer_expression "*(byte *)(*(int *)(iVar14 + 0xc) + 0x4c)" * (cast_expression "(byte *)(*(int *)(iVar14 + 0xc) + 0x4c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar14 + 0xc) + 0x4c)" ( (binary_expression "*(int *)(iVar14 + 0xc) + 0x4c" (pointer_expression "*(int *)(iVar14 + 0xc)" * (cast_expression "(int *)(iVar14 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0xc)" ( (binary_expression "iVar14 + 0xc" identifier + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (bVar6 == 0) {\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }" if (parenthesized_expression "(bVar6 == 0)" ( (binary_expression "bVar6 == 0" identifier == number_literal) )) (compound_statement "{\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }" { (expression_statement "*(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;" (assignment_expression "*(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1" (pointer_expression "*(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c)" * (cast_expression "(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar14 + 0xc) + 0x4c)" ( (binary_expression "*(int *)(iVar14 + 0xc) + 0x4c" (pointer_expression "*(int *)(iVar14 + 0xc)" * (cast_expression "(int *)(iVar14 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0xc)" ( (binary_expression "iVar14 + 0xc" identifier + number_literal) )))) + number_literal) )))) = number_literal) ;) (expression_statement "bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);" (assignment_expression "bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c)" identifier = (pointer_expression "*(byte *)(*(int *)(iVar14 + 0xc) + 0x4c)" * (cast_expression "(byte *)(*(int *)(iVar14 + 0xc) + 0x4c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar14 + 0xc) + 0x4c)" ( (binary_expression "*(int *)(iVar14 + 0xc) + 0x4c" (pointer_expression "*(int *)(iVar14 + 0xc)" * (cast_expression "(int *)(iVar14 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0xc)" ( (binary_expression "iVar14 + 0xc" identifier + number_literal) )))) + number_literal) ))))) ;) })) (if_statement "if (4 < bVar6) {\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }" if (parenthesized_expression "(4 < bVar6)" ( (binary_expression "4 < bVar6" number_literal < identifier) )) (compound_statement "{\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }" { (expression_statement "FUN_000288e0();" (call_expression "FUN_000288e0()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_80 = 1;" (assignment_expression "local_80 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_000afcbe;" goto statement_identifier ;) })) (if_statement "if ((iVar11 == 0) && (3 < local_30)) {\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }" if (parenthesized_expression "((iVar11 == 0) && (3 < local_30))" ( (binary_expression "(iVar11 == 0) && (3 < local_30)" (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) && (parenthesized_expression "(3 < local_30)" ( (binary_expression "3 < local_30" number_literal < identifier) ))) )) (compound_statement "{\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }" { (expression_statement "*(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;" (assignment_expression "*(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd" (pointer_expression "*(uint *)(iVar7 + 0x1c)" * (cast_expression "(uint *)(iVar7 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x1c)" ( (binary_expression "iVar7 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(uint *)(iVar7 + 0x1c) & 0xfffffffd" (pointer_expression "*(uint *)(iVar7 + 0x1c)" * (cast_expression "(uint *)(iVar7 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x1c)" ( (binary_expression "iVar7 + 0x1c" identifier + number_literal) )))) & number_literal)) ;) })) (expression_statement "iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);" (assignment_expression "iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9)" identifier = (call_expression "FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9)" identifier (argument_list "(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9)" ( identifier , (binary_expression "unaff_EBP + 0x5692e" identifier + number_literal) , (pointer_expression "*(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13)" * (cast_expression "(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar7 + 0x10) + iVar13)" ( (binary_expression "*(int *)(iVar7 + 0x10) + iVar13" (pointer_expression "*(int *)(iVar7 + 0x10)" * (cast_expression "(int *)(iVar7 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x10)" ( (binary_expression "iVar7 + 0x10" identifier + number_literal) )))) + identifier) )))) , identifier )))) ;) (expression_statement "uVar3 = *(undefined4 *)(iVar7 + 0x13c);" (assignment_expression "uVar3 = *(undefined4 *)(iVar7 + 0x13c)" identifier = (pointer_expression "*(undefined4 *)(iVar7 + 0x13c)" * (cast_expression "(undefined4 *)(iVar7 + 0x13c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x13c)" ( (binary_expression "iVar7 + 0x13c" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar7 + 0x13c) = 0;" (assignment_expression "*(undefined4 *)(iVar7 + 0x13c) = 0" (pointer_expression "*(undefined4 *)(iVar7 + 0x13c)" * (cast_expression "(undefined4 *)(iVar7 + 0x13c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x13c)" ( (binary_expression "iVar7 + 0x13c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);" (assignment_expression "local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0)" identifier = (call_expression "FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0)" identifier (argument_list "(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0)" ( identifier , identifier , (binary_expression "unaff_EBP + 0x13caa" identifier + number_literal) , identifier , number_literal )))) ;) (expression_statement "*(undefined4 *)(iVar7 + 0x13c) = uVar3;" (assignment_expression "*(undefined4 *)(iVar7 + 0x13c) = uVar3" (pointer_expression "*(undefined4 *)(iVar7 + 0x13c)" * (cast_expression "(undefined4 *)(iVar7 + 0x13c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x13c)" ( (binary_expression "iVar7 + 0x13c" identifier + number_literal) )))) = identifier) ;) (if_statement "if (local_80 == 0) {\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }" if (parenthesized_expression "(local_80 == 0)" ( (binary_expression "local_80 == 0" identifier == number_literal) )) (compound_statement "{\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }" { (expression_statement "local_80 = local_50;" (assignment_expression "local_80 = local_50" identifier = identifier) ;) (if_statement "if (iVar9 != 0) goto LAB_000afc8d;" if (parenthesized_expression "(iVar9 != 0)" ( (binary_expression "iVar9 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000afc8d;" goto statement_identifier ;)) (labeled_statement "LAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;" statement_identifier : (if_statement "if (local_80 != 0) goto LAB_000afc9e;" if (parenthesized_expression "(local_80 != 0)" ( (binary_expression "local_80 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000afc9e;" goto statement_identifier ;))) (expression_statement "FUN_000af930();" (call_expression "FUN_000af930()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;" if (parenthesized_expression "(*(char *)(iVar7 + 0x4d) != '\0')" ( (binary_expression "*(char *)(iVar7 + 0x4d) != '\0'" (pointer_expression "*(char *)(iVar7 + 0x4d)" * (cast_expression "(char *)(iVar7 + 0x4d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x4d)" ( (binary_expression "iVar7 + 0x4d" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000afca4;" goto statement_identifier ;)) }) (else_clause "else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }" else (compound_statement "{\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }" { (if_statement "if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }" if (parenthesized_expression "(iVar9 != 0)" ( (binary_expression "iVar9 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }" { (labeled_statement "LAB_000afc8d:\n          FUN_00026590();" statement_identifier : (expression_statement "FUN_00026590();" (call_expression "FUN_00026590()" identifier (argument_list "()" ( ))) ;)) (goto_statement "goto LAB_000afc96;" goto statement_identifier ;) })) (labeled_statement "LAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }" statement_identifier : (if_statement "if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }" if (parenthesized_expression "(*(char *)(iVar7 + 0x4d) != '\0')" ( (binary_expression "*(char *)(iVar7 + 0x4d) != '\0'" (pointer_expression "*(char *)(iVar7 + 0x4d)" * (cast_expression "(char *)(iVar7 + 0x4d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x4d)" ( (binary_expression "iVar7 + 0x4d" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }" { (labeled_statement "LAB_000afca4:\n          local_80 = 7;" statement_identifier : (expression_statement "local_80 = 7;" (assignment_expression "local_80 = 7" identifier = number_literal) ;)) (expression_statement "FUN_0003b610();" (call_expression "FUN_0003b610()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;" if (parenthesized_expression "((*(byte *)(iVar7 + 0x1f) & 8) == 0)" ( (binary_expression "(*(byte *)(iVar7 + 0x1f) & 8) == 0" (parenthesized_expression "(*(byte *)(iVar7 + 0x1f) & 8)" ( (binary_expression "*(byte *)(iVar7 + 0x1f) & 8" (pointer_expression "*(byte *)(iVar7 + 0x1f)" * (cast_expression "(byte *)(iVar7 + 0x1f)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x1f)" ( (binary_expression "iVar7 + 0x1f" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (goto_statement "goto LAB_000afcbe;" goto statement_identifier ;)) }))) (expression_statement "puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);" (assignment_expression "puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e)" identifier = (cast_expression "(ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e)" ( (binary_expression "*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e" (pointer_expression "*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13)" * (cast_expression "(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar7 + 0x10) + 0xc + iVar13)" ( (binary_expression "*(int *)(iVar7 + 0x10) + 0xc + iVar13" (binary_expression "*(int *)(iVar7 + 0x10) + 0xc" (pointer_expression "*(int *)(iVar7 + 0x10)" * (cast_expression "(int *)(iVar7 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x10)" ( (binary_expression "iVar7 + 0x10" identifier + number_literal) )))) + number_literal) + identifier) )))) + number_literal) )))) ;) (expression_statement "*puVar2 = *puVar2 | 1;" (assignment_expression "*puVar2 = *puVar2 | 1" (pointer_expression "*puVar2" * identifier) = (binary_expression "*puVar2 | 1" (pointer_expression "*puVar2" * identifier) | number_literal)) ;) (expression_statement "iVar9 = *(int *)(iVar14 + 4);" (assignment_expression "iVar9 = *(int *)(iVar14 + 4)" identifier = (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) ))))) ;) (expression_statement "local_80 = iVar5;" (assignment_expression "local_80 = iVar5" identifier = identifier) ;) }) (else_clause "else {\n      if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }\n      bVar6 = *(byte *)(iVar7 + 0x4a);\n      if (local_24 == bVar6) goto LAB_000afd44;\n      FUN_000288e0();\n      local_80 = 1;\nLAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);\n    }" else (compound_statement "{\n      if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }\n      bVar6 = *(byte *)(iVar7 + 0x4a);\n      if (local_24 == bVar6) goto LAB_000afd44;\n      FUN_000288e0();\n      local_80 = 1;\nLAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);\n    }" { (if_statement "if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }" if (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }" { (expression_statement "uVar10 = (undefined1)(local_24 & 3);" (assignment_expression "uVar10 = (undefined1)(local_24 & 3)" identifier = (call_expression "(undefined1)(local_24 & 3)" (parenthesized_expression "(undefined1)" ( identifier )) (argument_list "(local_24 & 3)" ( (binary_expression "local_24 & 3" identifier & number_literal) )))) ;) (if_statement "if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }" if (parenthesized_expression "((local_24 & 3) == 0)" ( (binary_expression "(local_24 & 3) == 0" (parenthesized_expression "(local_24 & 3)" ( (binary_expression "local_24 & 3" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n          uVar10 = 1;\n        }" { (expression_statement "uVar10 = 1;" (assignment_expression "uVar10 = 1" identifier = number_literal) ;) })) (expression_statement "*(undefined1 *)(iVar7 + 0x4a) = uVar10;" (assignment_expression "*(undefined1 *)(iVar7 + 0x4a) = uVar10" (pointer_expression "*(undefined1 *)(iVar7 + 0x4a)" * (cast_expression "(undefined1 *)(iVar7 + 0x4a)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x4a)" ( (binary_expression "iVar7 + 0x4a" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;" (assignment_expression "*(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10" (pointer_expression "*(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d)" * (cast_expression "(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar14 + 0xc) + 0x4d)" ( (binary_expression "*(int *)(iVar14 + 0xc) + 0x4d" (pointer_expression "*(int *)(iVar14 + 0xc)" * (cast_expression "(int *)(iVar14 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0xc)" ( (binary_expression "iVar14 + 0xc" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) (expression_statement "iVar8 = *(int *)(iVar14 + 0xc);" (assignment_expression "iVar8 = *(int *)(iVar14 + 0xc)" identifier = (pointer_expression "*(int *)(iVar14 + 0xc)" * (cast_expression "(int *)(iVar14 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 0xc)" ( (binary_expression "iVar14 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar12 = *(int *)(iVar8 + 0x50);" (assignment_expression "iVar12 = *(int *)(iVar8 + 0x50)" identifier = (pointer_expression "*(int *)(iVar8 + 0x50)" * (cast_expression "(int *)(iVar8 + 0x50)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x50)" ( (binary_expression "iVar8 + 0x50" identifier + number_literal) ))))) ;) (goto_statement "goto joined_r0x000afbdd;" goto statement_identifier ;) })) (expression_statement "bVar6 = *(byte *)(iVar7 + 0x4a);" (assignment_expression "bVar6 = *(byte *)(iVar7 + 0x4a)" identifier = (pointer_expression "*(byte *)(iVar7 + 0x4a)" * (cast_expression "(byte *)(iVar7 + 0x4a)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x4a)" ( (binary_expression "iVar7 + 0x4a" identifier + number_literal) ))))) ;) (if_statement "if (local_24 == bVar6) goto LAB_000afd44;" if (parenthesized_expression "(local_24 == bVar6)" ( (binary_expression "local_24 == bVar6" identifier == identifier) )) (goto_statement "goto LAB_000afd44;" goto statement_identifier ;)) (expression_statement "FUN_000288e0();" (call_expression "FUN_000288e0()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_80 = 1;" (assignment_expression "local_80 = 1" identifier = number_literal) ;) (labeled_statement "LAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);" statement_identifier : (expression_statement "iVar9 = *(int *)(iVar14 + 4);" (assignment_expression "iVar9 = *(int *)(iVar14 + 4)" identifier = (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) ))))) ;)) }))) (if_statement "if (bVar4) {\n      FUN_00086700();\n      iVar9 = *(int *)(iVar14 + 4);\n    }" if (parenthesized_expression "(bVar4)" ( identifier )) (compound_statement "{\n      FUN_00086700();\n      iVar9 = *(int *)(iVar14 + 4);\n    }" { (expression_statement "FUN_00086700();" (call_expression "FUN_00086700()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar9 = *(int *)(iVar14 + 4);" (assignment_expression "iVar9 = *(int *)(iVar14 + 4)" identifier = (pointer_expression "*(int *)(iVar14 + 4)" * (cast_expression "(int *)(iVar14 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar14 + 4)" ( (binary_expression "iVar14 + 4" identifier + number_literal) ))))) ;) })) (if_statement "if (*(char *)(iVar9 + 9) != '\0') {\n      piVar1 = (int *)(iVar9 + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        FUN_0002cbd0();\n      }\n    }" if (parenthesized_expression "(*(char *)(iVar9 + 9) != '\0')" ( (binary_expression "*(char *)(iVar9 + 9) != '\0'" (pointer_expression "*(char *)(iVar9 + 9)" * (cast_expression "(char *)(iVar9 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 9)" ( (binary_expression "iVar9 + 9" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar1 = (int *)(iVar9 + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        FUN_0002cbd0();\n      }\n    }" { (expression_statement "piVar1 = (int *)(iVar9 + 0xc);" (assignment_expression "piVar1 = (int *)(iVar9 + 0xc)" identifier = (cast_expression "(int *)(iVar9 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0xc)" ( (binary_expression "iVar9 + 0xc" identifier + number_literal) )))) ;) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" * identifier) = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (if_statement "if (*piVar1 == 0) {\nLAB_000afef0:\n        FUN_0002cbd0();\n      }" if (parenthesized_expression "(*piVar1 == 0)" ( (binary_expression "*piVar1 == 0" (pointer_expression "*piVar1" * identifier) == number_literal) )) (compound_statement "{\nLAB_000afef0:\n        FUN_0002cbd0();\n      }" { (labeled_statement "LAB_000afef0:\n        FUN_0002cbd0();" statement_identifier : (expression_statement "FUN_0002cbd0();" (call_expression "FUN_0002cbd0()" identifier (argument_list "()" ( ))) ;)) })) })) (if_statement "if (local_80 == 0) goto LAB_000afd0b;" if (parenthesized_expression "(local_80 == 0)" ( (binary_expression "local_80 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000afd0b;" goto statement_identifier ;)) }))) (labeled_statement "LAB_000afce8:\n  if (((local_80 == 7) || (local_80 == 0xc0a)) && ((*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0)) {\n    FUN_00028380();\n  }" statement_identifier : (if_statement "if (((local_80 == 7) || (local_80 == 0xc0a)) && ((*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0)) {\n    FUN_00028380();\n  }" if (parenthesized_expression "(((local_80 == 7) || (local_80 == 0xc0a)) && ((*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0))" ( (binary_expression "((local_80 == 7) || (local_80 == 0xc0a)) && ((*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0)" (parenthesized_expression "((local_80 == 7) || (local_80 == 0xc0a))" ( (binary_expression "(local_80 == 7) || (local_80 == 0xc0a)" (parenthesized_expression "(local_80 == 7)" ( (binary_expression "local_80 == 7" identifier == number_literal) )) || (parenthesized_expression "(local_80 == 0xc0a)" ( (binary_expression "local_80 == 0xc0a" identifier == number_literal) ))) )) && (parenthesized_expression "((*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0)" ( (binary_expression "(*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0" (parenthesized_expression "(*(uint *)(iVar7 + 0x4c) & 0xffff00)" ( (binary_expression "*(uint *)(iVar7 + 0x4c) & 0xffff00" (pointer_expression "*(uint *)(iVar7 + 0x4c)" * (cast_expression "(uint *)(iVar7 + 0x4c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x4c)" ( (binary_expression "iVar7 + 0x4c" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    FUN_00028380();\n  }" { (expression_statement "FUN_00028380();" (call_expression "FUN_00028380()" identifier (argument_list "()" ( ))) ;) }))) (expression_statement "FUN_0003b710();" (call_expression "FUN_0003b710()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_000afd0b:\n  *(undefined1 *)(iVar7 + 0xa1) = 0;" statement_identifier : (expression_statement "*(undefined1 *)(iVar7 + 0xa1) = 0;" (assignment_expression "*(undefined1 *)(iVar7 + 0xa1) = 0" (pointer_expression "*(undefined1 *)(iVar7 + 0xa1)" * (cast_expression "(undefined1 *)(iVar7 + 0xa1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0xa1)" ( (binary_expression "iVar7 + 0xa1" identifier + number_literal) )))) = number_literal) ;)) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\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                    \n    FUN_000f6410();\n  }" { (expression_statement "FUN_000f6410();" (call_expression "FUN_000f6410()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return local_80;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) | LIT)) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = BOOL) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (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 = BOOL) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (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 (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) )))) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }) while (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) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (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 (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + IDENT) )))) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) | LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_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) )))) = IDENT) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (unary_expression - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT != LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (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) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (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) ))))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , (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) )))) + IDENT) )))) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT + LIT) , IDENT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (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) )))) & LIT) )) == LIT) )) (goto_statement goto statement_identifier ;)) }))) (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 (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + IDENT) )))) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) | LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT & LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) }))) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) && (parenthesized_expression ( (binary_expression (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 (call_expression IDENT (argument_list ( ))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;)) (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 IDENT ;) })))
(function_definition "int FUN_000afa70(undefined4 param_1)\n\n{\n  int *piVar1;\n  ushort *puVar2;\n  undefined4 uVar3;\n  bool bVar4;\n  int iVar5;\n  byte bVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined1 uVar10;\n  int iVar11;\n  int iVar12;\n  int unaff_EBP;\n  int iVar13;\n  int iVar14;\n  int in_GS_OFFSET;\n  bool bVar15;\n  undefined8 uVar16;\n  int local_80;\n  int local_5c [2];\n  int local_54;\n  int local_50;\n  undefined4 local_4c;\n  undefined4 local_48;\n  int local_44;\n  int local_40;\n  int local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  undefined4 local_28;\n  uint local_24;\n  int local_20;\n  \n  uVar16 = FUN_000f5a04();\n  iVar11 = (int)((ulonglong)uVar16 >> 0x20);\n  iVar7 = (int)uVar16;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_38 = 0;\n  iVar9 = unaff_EBP + 0x47ba9;\n  if (iVar11 == 1) {\n    iVar9 = unaff_EBP + 0x48b79;\n  }\n  local_50 = 0;\n  local_40 = unaff_EBP + 0x4adba;\n  local_3c = unaff_EBP + 0x568a2;\n  local_4c = param_1;\n  local_48 = 0;\n  *(undefined1 *)(iVar7 + 0xa1) = 1;\n  local_5c[0] = iVar7;\n  local_54 = iVar11;\n  local_44 = iVar9;\n  FUN_000c3720(local_5c,3,&local_44,0);\n  iVar5 = local_50;\n  local_80 = local_50;\n  if (local_50 != 0) goto LAB_000afce8;\n  iVar13 = iVar11 * 0x10;\n  iVar14 = iVar13 + *(int *)(iVar7 + 0x10);\n  iVar12 = *(int *)(iVar14 + 4);\n  if (iVar12 == 0) {\n    puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e);\n    *puVar2 = *puVar2 | 1;\n    goto LAB_000afd0b;\n  }\n  if (*(char *)(iVar12 + 9) != '\0') {\n    FUN_0002cb40();\n    iVar12 = *(int *)(iVar14 + 4);\n  }\n  bVar4 = false;\n  if (*(char *)(iVar12 + 8) == '\0') {\n    local_80 = FUN_0007e3b0();\n    if (local_80 == 0) {\n      bVar4 = true;\n      goto LAB_000afb5f;\n    }\n    FUN_00032150();\n    FUN_000288e0();\n    if (*(char *)(*(int *)(iVar14 + 4) + 9) != '\0') {\n      piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }\n  }\n  else {\nLAB_000afb5f:\n    iVar12 = 0;\n    do {\n      iVar12 = iVar12 + 1;\n      FUN_00038620();\n    } while (iVar12 != 5);\n    if ((*(byte *)(iVar7 + 0x1f) & 2) != 0) {\n      local_34 = 0;\n      local_30 = 0;\n      local_2c = 0;\n      local_28 = 0;\n      local_24 = 0;\n    }\n    **(undefined4 **)(iVar14 + 0xc) = local_34;\n    if (local_24 == 0) {\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 4;\n      bVar6 = *(byte *)(iVar7 + 0x4a);\nLAB_000afd44:\n      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;\n      iVar8 = *(int *)(iVar14 + 0xc);\n      iVar12 = *(int *)(iVar8 + 0x50);\njoined_r0x000afbdd:\n      if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }\n      *(char *)(iVar8 + 0x4c) = (char)local_30;\n      bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      if (bVar6 == 0) {\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }\n      if (4 < bVar6) {\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iVar11 == 0) && (3 < local_30)) {\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }\n      iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);\n      uVar3 = *(undefined4 *)(iVar7 + 0x13c);\n      *(undefined4 *)(iVar7 + 0x13c) = 0;\n      local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);\n      *(undefined4 *)(iVar7 + 0x13c) = uVar3;\n      if (local_80 == 0) {\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 1;\n      iVar9 = *(int *)(iVar14 + 4);\n      local_80 = iVar5;\n    }\n    else {\n      if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }\n      bVar6 = *(byte *)(iVar7 + 0x4a);\n      if (local_24 == bVar6) goto LAB_000afd44;\n      FUN_000288e0();\n      local_80 = 1;\nLAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (bVar4) {\n      FUN_00086700();\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (*(char *)(iVar9 + 9) != '\0') {\n      piVar1 = (int *)(iVar9 + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        FUN_0002cbd0();\n      }\n    }\n    if (local_80 == 0) goto LAB_000afd0b;\n  }\nLAB_000afce8:\n  if (((local_80 == 7) || (local_80 == 0xc0a)) && ((*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0)) {\n    FUN_00028380();\n  }\n  FUN_0003b710();\nLAB_000afd0b:\n  *(undefined1 *)(iVar7 + 0xa1) = 0;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }\n  return local_80;\n}" (primitive_type "int") (function_declarator "FUN_000afa70(undefined4 param_1)" (identifier "FUN_000afa70") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  ushort *puVar2;\n  undefined4 uVar3;\n  bool bVar4;\n  int iVar5;\n  byte bVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  undefined1 uVar10;\n  int iVar11;\n  int iVar12;\n  int unaff_EBP;\n  int iVar13;\n  int iVar14;\n  int in_GS_OFFSET;\n  bool bVar15;\n  undefined8 uVar16;\n  int local_80;\n  int local_5c [2];\n  int local_54;\n  int local_50;\n  undefined4 local_4c;\n  undefined4 local_48;\n  int local_44;\n  int local_40;\n  int local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  undefined4 local_28;\n  uint local_24;\n  int local_20;\n  \n  uVar16 = FUN_000f5a04();\n  iVar11 = (int)((ulonglong)uVar16 >> 0x20);\n  iVar7 = (int)uVar16;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_38 = 0;\n  iVar9 = unaff_EBP + 0x47ba9;\n  if (iVar11 == 1) {\n    iVar9 = unaff_EBP + 0x48b79;\n  }\n  local_50 = 0;\n  local_40 = unaff_EBP + 0x4adba;\n  local_3c = unaff_EBP + 0x568a2;\n  local_4c = param_1;\n  local_48 = 0;\n  *(undefined1 *)(iVar7 + 0xa1) = 1;\n  local_5c[0] = iVar7;\n  local_54 = iVar11;\n  local_44 = iVar9;\n  FUN_000c3720(local_5c,3,&local_44,0);\n  iVar5 = local_50;\n  local_80 = local_50;\n  if (local_50 != 0) goto LAB_000afce8;\n  iVar13 = iVar11 * 0x10;\n  iVar14 = iVar13 + *(int *)(iVar7 + 0x10);\n  iVar12 = *(int *)(iVar14 + 4);\n  if (iVar12 == 0) {\n    puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e);\n    *puVar2 = *puVar2 | 1;\n    goto LAB_000afd0b;\n  }\n  if (*(char *)(iVar12 + 9) != '\0') {\n    FUN_0002cb40();\n    iVar12 = *(int *)(iVar14 + 4);\n  }\n  bVar4 = false;\n  if (*(char *)(iVar12 + 8) == '\0') {\n    local_80 = FUN_0007e3b0();\n    if (local_80 == 0) {\n      bVar4 = true;\n      goto LAB_000afb5f;\n    }\n    FUN_00032150();\n    FUN_000288e0();\n    if (*(char *)(*(int *)(iVar14 + 4) + 9) != '\0') {\n      piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }\n  }\n  else {\nLAB_000afb5f:\n    iVar12 = 0;\n    do {\n      iVar12 = iVar12 + 1;\n      FUN_00038620();\n    } while (iVar12 != 5);\n    if ((*(byte *)(iVar7 + 0x1f) & 2) != 0) {\n      local_34 = 0;\n      local_30 = 0;\n      local_2c = 0;\n      local_28 = 0;\n      local_24 = 0;\n    }\n    **(undefined4 **)(iVar14 + 0xc) = local_34;\n    if (local_24 == 0) {\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 4;\n      bVar6 = *(byte *)(iVar7 + 0x4a);\nLAB_000afd44:\n      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;\n      iVar8 = *(int *)(iVar14 + 0xc);\n      iVar12 = *(int *)(iVar8 + 0x50);\njoined_r0x000afbdd:\n      if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }\n      *(char *)(iVar8 + 0x4c) = (char)local_30;\n      bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      if (bVar6 == 0) {\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }\n      if (4 < bVar6) {\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iVar11 == 0) && (3 < local_30)) {\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }\n      iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);\n      uVar3 = *(undefined4 *)(iVar7 + 0x13c);\n      *(undefined4 *)(iVar7 + 0x13c) = 0;\n      local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);\n      *(undefined4 *)(iVar7 + 0x13c) = uVar3;\n      if (local_80 == 0) {\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 1;\n      iVar9 = *(int *)(iVar14 + 4);\n      local_80 = iVar5;\n    }\n    else {\n      if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }\n      bVar6 = *(byte *)(iVar7 + 0x4a);\n      if (local_24 == bVar6) goto LAB_000afd44;\n      FUN_000288e0();\n      local_80 = 1;\nLAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (bVar4) {\n      FUN_00086700();\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (*(char *)(iVar9 + 9) != '\0') {\n      piVar1 = (int *)(iVar9 + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        FUN_0002cbd0();\n      }\n    }\n    if (local_80 == 0) goto LAB_000afd0b;\n  }\nLAB_000afce8:\n  if (((local_80 == 7) || (local_80 == 0xc0a)) && ((*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0)) {\n    FUN_00028380();\n  }\n  FUN_0003b710();\nLAB_000afd0b:\n  *(undefined1 *)(iVar7 + 0xa1) = 0;\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }\n  return local_80;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "ushort *puVar2;" (type_identifier "ushort") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "bool bVar4;" (primitive_type "bool") (identifier "bVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "byte bVar6;" (type_identifier "byte") (identifier "bVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "undefined1 uVar10;" (type_identifier "undefined1") (identifier "uVar10") (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (declaration "int iVar12;" (primitive_type "int") (identifier "iVar12") (; ";")) (declaration "int unaff_EBP;" (primitive_type "int") (identifier "unaff_EBP") (; ";")) (declaration "int iVar13;" (primitive_type "int") (identifier "iVar13") (; ";")) (declaration "int iVar14;" (primitive_type "int") (identifier "iVar14") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "bool bVar15;" (primitive_type "bool") (identifier "bVar15") (; ";")) (declaration "undefined8 uVar16;" (type_identifier "undefined8") (identifier "uVar16") (; ";")) (declaration "int local_80;" (primitive_type "int") (identifier "local_80") (; ";")) (declaration "int local_5c [2];" (primitive_type "int") (array_declarator "local_5c [2]" (identifier "local_5c") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "int local_54;" (primitive_type "int") (identifier "local_54") (; ";")) (declaration "int local_50;" (primitive_type "int") (identifier "local_50") (; ";")) (declaration "undefined4 local_4c;" (type_identifier "undefined4") (identifier "local_4c") (; ";")) (declaration "undefined4 local_48;" (type_identifier "undefined4") (identifier "local_48") (; ";")) (declaration "int local_44;" (primitive_type "int") (identifier "local_44") (; ";")) (declaration "int local_40;" (primitive_type "int") (identifier "local_40") (; ";")) (declaration "int local_3c;" (primitive_type "int") (identifier "local_3c") (; ";")) (declaration "undefined4 local_38;" (type_identifier "undefined4") (identifier "local_38") (; ";")) (declaration "undefined4 local_34;" (type_identifier "undefined4") (identifier "local_34") (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (declaration "undefined4 local_28;" (type_identifier "undefined4") (identifier "local_28") (; ";")) (declaration "uint local_24;" (type_identifier "uint") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "uVar16 = FUN_000f5a04();" (assignment_expression "uVar16 = FUN_000f5a04()" (identifier "uVar16") (= "=") (call_expression "FUN_000f5a04()" (identifier "FUN_000f5a04") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar11 = (int)((ulonglong)uVar16 >> 0x20);" (assignment_expression "iVar11 = (int)((ulonglong)uVar16 >> 0x20)" (identifier "iVar11") (= "=") (cast_expression "(int)((ulonglong)uVar16 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar16 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar16 >> 0x20" (cast_expression "(ulonglong)uVar16" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar16")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "iVar7 = (int)uVar16;" (assignment_expression "iVar7 = (int)uVar16" (identifier "iVar7") (= "=") (cast_expression "(int)uVar16" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar16"))) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" (identifier "local_38") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar9 = unaff_EBP + 0x47ba9;" (assignment_expression "iVar9 = unaff_EBP + 0x47ba9" (identifier "iVar9") (= "=") (binary_expression "unaff_EBP + 0x47ba9" (identifier "unaff_EBP") (+ "+") (number_literal "0x47ba9"))) (; ";")) (if_statement "if (iVar11 == 1) {\n    iVar9 = unaff_EBP + 0x48b79;\n  }" (if "if") (parenthesized_expression "(iVar11 == 1)" (( "(") (binary_expression "iVar11 == 1" (identifier "iVar11") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    iVar9 = unaff_EBP + 0x48b79;\n  }" ({ "{") (expression_statement "iVar9 = unaff_EBP + 0x48b79;" (assignment_expression "iVar9 = unaff_EBP + 0x48b79" (identifier "iVar9") (= "=") (binary_expression "unaff_EBP + 0x48b79" (identifier "unaff_EBP") (+ "+") (number_literal "0x48b79"))) (; ";")) (} "}"))) (expression_statement "local_50 = 0;" (assignment_expression "local_50 = 0" (identifier "local_50") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40 = unaff_EBP + 0x4adba;" (assignment_expression "local_40 = unaff_EBP + 0x4adba" (identifier "local_40") (= "=") (binary_expression "unaff_EBP + 0x4adba" (identifier "unaff_EBP") (+ "+") (number_literal "0x4adba"))) (; ";")) (expression_statement "local_3c = unaff_EBP + 0x568a2;" (assignment_expression "local_3c = unaff_EBP + 0x568a2" (identifier "local_3c") (= "=") (binary_expression "unaff_EBP + 0x568a2" (identifier "unaff_EBP") (+ "+") (number_literal "0x568a2"))) (; ";")) (expression_statement "local_4c = param_1;" (assignment_expression "local_4c = param_1" (identifier "local_4c") (= "=") (identifier "param_1")) (; ";")) (expression_statement "local_48 = 0;" (assignment_expression "local_48 = 0" (identifier "local_48") (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)(iVar7 + 0xa1) = 1;" (assignment_expression "*(undefined1 *)(iVar7 + 0xa1) = 1" (pointer_expression "*(undefined1 *)(iVar7 + 0xa1)" (* "*") (cast_expression "(undefined1 *)(iVar7 + 0xa1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0xa1)" (( "(") (binary_expression "iVar7 + 0xa1" (identifier "iVar7") (+ "+") (number_literal "0xa1")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "local_5c[0] = iVar7;" (assignment_expression "local_5c[0] = iVar7" (subscript_expression "local_5c[0]" (identifier "local_5c") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "local_54 = iVar11;" (assignment_expression "local_54 = iVar11" (identifier "local_54") (= "=") (identifier "iVar11")) (; ";")) (expression_statement "local_44 = iVar9;" (assignment_expression "local_44 = iVar9" (identifier "local_44") (= "=") (identifier "iVar9")) (; ";")) (expression_statement "FUN_000c3720(local_5c,3,&local_44,0);" (call_expression "FUN_000c3720(local_5c,3,&local_44,0)" (identifier "FUN_000c3720") (argument_list "(local_5c,3,&local_44,0)" (( "(") (identifier "local_5c") (, ",") (number_literal "3") (, ",") (pointer_expression "&local_44" (& "&") (identifier "local_44")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar5 = local_50;" (assignment_expression "iVar5 = local_50" (identifier "iVar5") (= "=") (identifier "local_50")) (; ";")) (expression_statement "local_80 = local_50;" (assignment_expression "local_80 = local_50" (identifier "local_80") (= "=") (identifier "local_50")) (; ";")) (if_statement "if (local_50 != 0) goto LAB_000afce8;" (if "if") (parenthesized_expression "(local_50 != 0)" (( "(") (binary_expression "local_50 != 0" (identifier "local_50") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000afce8;" (goto "goto") (statement_identifier "LAB_000afce8") (; ";"))) (expression_statement "iVar13 = iVar11 * 0x10;" (assignment_expression "iVar13 = iVar11 * 0x10" (identifier "iVar13") (= "=") (binary_expression "iVar11 * 0x10" (identifier "iVar11") (* "*") (number_literal "0x10"))) (; ";")) (expression_statement "iVar14 = iVar13 + *(int *)(iVar7 + 0x10);" (assignment_expression "iVar14 = iVar13 + *(int *)(iVar7 + 0x10)" (identifier "iVar14") (= "=") (binary_expression "iVar13 + *(int *)(iVar7 + 0x10)" (identifier "iVar13") (+ "+") (pointer_expression "*(int *)(iVar7 + 0x10)" (* "*") (cast_expression "(int *)(iVar7 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x10)" (( "(") (binary_expression "iVar7 + 0x10" (identifier "iVar7") (+ "+") (number_literal "0x10")) () ")")))))) (; ";")) (expression_statement "iVar12 = *(int *)(iVar14 + 4);" (assignment_expression "iVar12 = *(int *)(iVar14 + 4)" (identifier "iVar12") (= "=") (pointer_expression "*(int *)(iVar14 + 4)" (* "*") (cast_expression "(int *)(iVar14 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 4)" (( "(") (binary_expression "iVar14 + 4" (identifier "iVar14") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (iVar12 == 0) {\n    puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e);\n    *puVar2 = *puVar2 | 1;\n    goto LAB_000afd0b;\n  }" (if "if") (parenthesized_expression "(iVar12 == 0)" (( "(") (binary_expression "iVar12 == 0" (identifier "iVar12") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e);\n    *puVar2 = *puVar2 | 1;\n    goto LAB_000afd0b;\n  }" ({ "{") (expression_statement "puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e);" (assignment_expression "puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e)" (identifier "puVar2") (= "=") (cast_expression "(ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e)" (( "(") (binary_expression "*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e" (pointer_expression "*(int *)(*(int *)(iVar7 + 0x10) + 0x1c)" (* "*") (cast_expression "(int *)(*(int *)(iVar7 + 0x10) + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar7 + 0x10) + 0x1c)" (( "(") (binary_expression "*(int *)(iVar7 + 0x10) + 0x1c" (pointer_expression "*(int *)(iVar7 + 0x10)" (* "*") (cast_expression "(int *)(iVar7 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x10)" (( "(") (binary_expression "iVar7 + 0x10" (identifier "iVar7") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "0x1c")) () ")")))) (+ "+") (number_literal "0x4e")) () ")")))) (; ";")) (expression_statement "*puVar2 = *puVar2 | 1;" (assignment_expression "*puVar2 = *puVar2 | 1" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (binary_expression "*puVar2 | 1" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (| "|") (number_literal "1"))) (; ";")) (goto_statement "goto LAB_000afd0b;" (goto "goto") (statement_identifier "LAB_000afd0b") (; ";")) (} "}"))) (if_statement "if (*(char *)(iVar12 + 9) != '\0') {\n    FUN_0002cb40();\n    iVar12 = *(int *)(iVar14 + 4);\n  }" (if "if") (parenthesized_expression "(*(char *)(iVar12 + 9) != '\0')" (( "(") (binary_expression "*(char *)(iVar12 + 9) != '\0'" (pointer_expression "*(char *)(iVar12 + 9)" (* "*") (cast_expression "(char *)(iVar12 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 9)" (( "(") (binary_expression "iVar12 + 9" (identifier "iVar12") (+ "+") (number_literal "9")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_0002cb40();\n    iVar12 = *(int *)(iVar14 + 4);\n  }" ({ "{") (expression_statement "FUN_0002cb40();" (call_expression "FUN_0002cb40()" (identifier "FUN_0002cb40") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar12 = *(int *)(iVar14 + 4);" (assignment_expression "iVar12 = *(int *)(iVar14 + 4)" (identifier "iVar12") (= "=") (pointer_expression "*(int *)(iVar14 + 4)" (* "*") (cast_expression "(int *)(iVar14 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 4)" (( "(") (binary_expression "iVar14 + 4" (identifier "iVar14") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}"))) (expression_statement "bVar4 = false;" (assignment_expression "bVar4 = false" (identifier "bVar4") (= "=") (false "false")) (; ";")) (if_statement "if (*(char *)(iVar12 + 8) == '\0') {\n    local_80 = FUN_0007e3b0();\n    if (local_80 == 0) {\n      bVar4 = true;\n      goto LAB_000afb5f;\n    }\n    FUN_00032150();\n    FUN_000288e0();\n    if (*(char *)(*(int *)(iVar14 + 4) + 9) != '\0') {\n      piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }\n  }\n  else {\nLAB_000afb5f:\n    iVar12 = 0;\n    do {\n      iVar12 = iVar12 + 1;\n      FUN_00038620();\n    } while (iVar12 != 5);\n    if ((*(byte *)(iVar7 + 0x1f) & 2) != 0) {\n      local_34 = 0;\n      local_30 = 0;\n      local_2c = 0;\n      local_28 = 0;\n      local_24 = 0;\n    }\n    **(undefined4 **)(iVar14 + 0xc) = local_34;\n    if (local_24 == 0) {\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 4;\n      bVar6 = *(byte *)(iVar7 + 0x4a);\nLAB_000afd44:\n      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;\n      iVar8 = *(int *)(iVar14 + 0xc);\n      iVar12 = *(int *)(iVar8 + 0x50);\njoined_r0x000afbdd:\n      if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }\n      *(char *)(iVar8 + 0x4c) = (char)local_30;\n      bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      if (bVar6 == 0) {\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }\n      if (4 < bVar6) {\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iVar11 == 0) && (3 < local_30)) {\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }\n      iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);\n      uVar3 = *(undefined4 *)(iVar7 + 0x13c);\n      *(undefined4 *)(iVar7 + 0x13c) = 0;\n      local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);\n      *(undefined4 *)(iVar7 + 0x13c) = uVar3;\n      if (local_80 == 0) {\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 1;\n      iVar9 = *(int *)(iVar14 + 4);\n      local_80 = iVar5;\n    }\n    else {\n      if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }\n      bVar6 = *(byte *)(iVar7 + 0x4a);\n      if (local_24 == bVar6) goto LAB_000afd44;\n      FUN_000288e0();\n      local_80 = 1;\nLAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (bVar4) {\n      FUN_00086700();\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (*(char *)(iVar9 + 9) != '\0') {\n      piVar1 = (int *)(iVar9 + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        FUN_0002cbd0();\n      }\n    }\n    if (local_80 == 0) goto LAB_000afd0b;\n  }" (if "if") (parenthesized_expression "(*(char *)(iVar12 + 8) == '\0')" (( "(") (binary_expression "*(char *)(iVar12 + 8) == '\0'" (pointer_expression "*(char *)(iVar12 + 8)" (* "*") (cast_expression "(char *)(iVar12 + 8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 8)" (( "(") (binary_expression "iVar12 + 8" (identifier "iVar12") (+ "+") (number_literal "8")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    local_80 = FUN_0007e3b0();\n    if (local_80 == 0) {\n      bVar4 = true;\n      goto LAB_000afb5f;\n    }\n    FUN_00032150();\n    FUN_000288e0();\n    if (*(char *)(*(int *)(iVar14 + 4) + 9) != '\0') {\n      piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }\n  }" ({ "{") (expression_statement "local_80 = FUN_0007e3b0();" (assignment_expression "local_80 = FUN_0007e3b0()" (identifier "local_80") (= "=") (call_expression "FUN_0007e3b0()" (identifier "FUN_0007e3b0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (local_80 == 0) {\n      bVar4 = true;\n      goto LAB_000afb5f;\n    }" (if "if") (parenthesized_expression "(local_80 == 0)" (( "(") (binary_expression "local_80 == 0" (identifier "local_80") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      bVar4 = true;\n      goto LAB_000afb5f;\n    }" ({ "{") (expression_statement "bVar4 = true;" (assignment_expression "bVar4 = true" (identifier "bVar4") (= "=") (true "true")) (; ";")) (goto_statement "goto LAB_000afb5f;" (goto "goto") (statement_identifier "LAB_000afb5f") (; ";")) (} "}"))) (expression_statement "FUN_00032150();" (call_expression "FUN_00032150()" (identifier "FUN_00032150") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_000288e0();" (call_expression "FUN_000288e0()" (identifier "FUN_000288e0") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (*(char *)(*(int *)(iVar14 + 4) + 9) != '\0') {\n      piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }" (if "if") (parenthesized_expression "(*(char *)(*(int *)(iVar14 + 4) + 9) != '\0')" (( "(") (binary_expression "*(char *)(*(int *)(iVar14 + 4) + 9) != '\0'" (pointer_expression "*(char *)(*(int *)(iVar14 + 4) + 9)" (* "*") (cast_expression "(char *)(*(int *)(iVar14 + 4) + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar14 + 4) + 9)" (( "(") (binary_expression "*(int *)(iVar14 + 4) + 9" (pointer_expression "*(int *)(iVar14 + 4)" (* "*") (cast_expression "(int *)(iVar14 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 4)" (( "(") (binary_expression "iVar14 + 4" (identifier "iVar14") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "9")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 != 0) goto LAB_000afce8;\n      goto LAB_000afef0;\n    }" ({ "{") (expression_statement "piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc);" (assignment_expression "piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc)" (identifier "piVar1") (= "=") (cast_expression "(int *)(*(int *)(iVar14 + 4) + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar14 + 4) + 0xc)" (( "(") (binary_expression "*(int *)(iVar14 + 4) + 0xc" (pointer_expression "*(int *)(iVar14 + 4)" (* "*") (cast_expression "(int *)(iVar14 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 4)" (( "(") (binary_expression "iVar14 + 4" (identifier "iVar14") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0xc")) () ")")))) (; ";")) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (*piVar1 != 0) goto LAB_000afce8;" (if "if") (parenthesized_expression "(*piVar1 != 0)" (( "(") (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000afce8;" (goto "goto") (statement_identifier "LAB_000afce8") (; ";"))) (goto_statement "goto LAB_000afef0;" (goto "goto") (statement_identifier "LAB_000afef0") (; ";")) (} "}"))) (} "}")) (else_clause "else {\nLAB_000afb5f:\n    iVar12 = 0;\n    do {\n      iVar12 = iVar12 + 1;\n      FUN_00038620();\n    } while (iVar12 != 5);\n    if ((*(byte *)(iVar7 + 0x1f) & 2) != 0) {\n      local_34 = 0;\n      local_30 = 0;\n      local_2c = 0;\n      local_28 = 0;\n      local_24 = 0;\n    }\n    **(undefined4 **)(iVar14 + 0xc) = local_34;\n    if (local_24 == 0) {\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 4;\n      bVar6 = *(byte *)(iVar7 + 0x4a);\nLAB_000afd44:\n      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;\n      iVar8 = *(int *)(iVar14 + 0xc);\n      iVar12 = *(int *)(iVar8 + 0x50);\njoined_r0x000afbdd:\n      if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }\n      *(char *)(iVar8 + 0x4c) = (char)local_30;\n      bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      if (bVar6 == 0) {\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }\n      if (4 < bVar6) {\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iVar11 == 0) && (3 < local_30)) {\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }\n      iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);\n      uVar3 = *(undefined4 *)(iVar7 + 0x13c);\n      *(undefined4 *)(iVar7 + 0x13c) = 0;\n      local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);\n      *(undefined4 *)(iVar7 + 0x13c) = uVar3;\n      if (local_80 == 0) {\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 1;\n      iVar9 = *(int *)(iVar14 + 4);\n      local_80 = iVar5;\n    }\n    else {\n      if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }\n      bVar6 = *(byte *)(iVar7 + 0x4a);\n      if (local_24 == bVar6) goto LAB_000afd44;\n      FUN_000288e0();\n      local_80 = 1;\nLAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (bVar4) {\n      FUN_00086700();\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (*(char *)(iVar9 + 9) != '\0') {\n      piVar1 = (int *)(iVar9 + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        FUN_0002cbd0();\n      }\n    }\n    if (local_80 == 0) goto LAB_000afd0b;\n  }" (else "else") (compound_statement "{\nLAB_000afb5f:\n    iVar12 = 0;\n    do {\n      iVar12 = iVar12 + 1;\n      FUN_00038620();\n    } while (iVar12 != 5);\n    if ((*(byte *)(iVar7 + 0x1f) & 2) != 0) {\n      local_34 = 0;\n      local_30 = 0;\n      local_2c = 0;\n      local_28 = 0;\n      local_24 = 0;\n    }\n    **(undefined4 **)(iVar14 + 0xc) = local_34;\n    if (local_24 == 0) {\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 4;\n      bVar6 = *(byte *)(iVar7 + 0x4a);\nLAB_000afd44:\n      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;\n      iVar8 = *(int *)(iVar14 + 0xc);\n      iVar12 = *(int *)(iVar8 + 0x50);\njoined_r0x000afbdd:\n      if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }\n      *(char *)(iVar8 + 0x4c) = (char)local_30;\n      bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      if (bVar6 == 0) {\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }\n      if (4 < bVar6) {\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iVar11 == 0) && (3 < local_30)) {\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }\n      iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);\n      uVar3 = *(undefined4 *)(iVar7 + 0x13c);\n      *(undefined4 *)(iVar7 + 0x13c) = 0;\n      local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);\n      *(undefined4 *)(iVar7 + 0x13c) = uVar3;\n      if (local_80 == 0) {\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 1;\n      iVar9 = *(int *)(iVar14 + 4);\n      local_80 = iVar5;\n    }\n    else {\n      if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }\n      bVar6 = *(byte *)(iVar7 + 0x4a);\n      if (local_24 == bVar6) goto LAB_000afd44;\n      FUN_000288e0();\n      local_80 = 1;\nLAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (bVar4) {\n      FUN_00086700();\n      iVar9 = *(int *)(iVar14 + 4);\n    }\n    if (*(char *)(iVar9 + 9) != '\0') {\n      piVar1 = (int *)(iVar9 + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        FUN_0002cbd0();\n      }\n    }\n    if (local_80 == 0) goto LAB_000afd0b;\n  }" ({ "{") (labeled_statement "LAB_000afb5f:\n    iVar12 = 0;" (statement_identifier "LAB_000afb5f") (: ":") (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" (identifier "iVar12") (= "=") (number_literal "0")) (; ";"))) (do_statement "do {\n      iVar12 = iVar12 + 1;\n      FUN_00038620();\n    } while (iVar12 != 5);" (do "do") (compound_statement "{\n      iVar12 = iVar12 + 1;\n      FUN_00038620();\n    }" ({ "{") (expression_statement "iVar12 = iVar12 + 1;" (assignment_expression "iVar12 = iVar12 + 1" (identifier "iVar12") (= "=") (binary_expression "iVar12 + 1" (identifier "iVar12") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "FUN_00038620();" (call_expression "FUN_00038620()" (identifier "FUN_00038620") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar12 != 5)" (( "(") (binary_expression "iVar12 != 5" (identifier "iVar12") (!= "!=") (number_literal "5")) () ")")) (; ";")) (if_statement "if ((*(byte *)(iVar7 + 0x1f) & 2) != 0) {\n      local_34 = 0;\n      local_30 = 0;\n      local_2c = 0;\n      local_28 = 0;\n      local_24 = 0;\n    }" (if "if") (parenthesized_expression "((*(byte *)(iVar7 + 0x1f) & 2) != 0)" (( "(") (binary_expression "(*(byte *)(iVar7 + 0x1f) & 2) != 0" (parenthesized_expression "(*(byte *)(iVar7 + 0x1f) & 2)" (( "(") (binary_expression "*(byte *)(iVar7 + 0x1f) & 2" (pointer_expression "*(byte *)(iVar7 + 0x1f)" (* "*") (cast_expression "(byte *)(iVar7 + 0x1f)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x1f)" (( "(") (binary_expression "iVar7 + 0x1f" (identifier "iVar7") (+ "+") (number_literal "0x1f")) () ")")))) (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      local_34 = 0;\n      local_30 = 0;\n      local_2c = 0;\n      local_28 = 0;\n      local_24 = 0;\n    }" ({ "{") (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" (identifier "local_34") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" (identifier "local_2c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "**(undefined4 **)(iVar14 + 0xc) = local_34;" (assignment_expression "**(undefined4 **)(iVar14 + 0xc) = local_34" (pointer_expression "**(undefined4 **)(iVar14 + 0xc)" (* "*") (pointer_expression "*(undefined4 **)(iVar14 + 0xc)" (* "*") (cast_expression "(undefined4 **)(iVar14 + 0xc)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar14 + 0xc)" (( "(") (binary_expression "iVar14 + 0xc" (identifier "iVar14") (+ "+") (number_literal "0xc")) () ")"))))) (= "=") (identifier "local_34")) (; ";")) (if_statement "if (local_24 == 0) {\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 4;\n      bVar6 = *(byte *)(iVar7 + 0x4a);\nLAB_000afd44:\n      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;\n      iVar8 = *(int *)(iVar14 + 0xc);\n      iVar12 = *(int *)(iVar8 + 0x50);\njoined_r0x000afbdd:\n      if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }\n      *(char *)(iVar8 + 0x4c) = (char)local_30;\n      bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      if (bVar6 == 0) {\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }\n      if (4 < bVar6) {\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iVar11 == 0) && (3 < local_30)) {\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }\n      iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);\n      uVar3 = *(undefined4 *)(iVar7 + 0x13c);\n      *(undefined4 *)(iVar7 + 0x13c) = 0;\n      local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);\n      *(undefined4 *)(iVar7 + 0x13c) = uVar3;\n      if (local_80 == 0) {\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 1;\n      iVar9 = *(int *)(iVar14 + 4);\n      local_80 = iVar5;\n    }\n    else {\n      if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }\n      bVar6 = *(byte *)(iVar7 + 0x4a);\n      if (local_24 == bVar6) goto LAB_000afd44;\n      FUN_000288e0();\n      local_80 = 1;\nLAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);\n    }" (if "if") (parenthesized_expression "(local_24 == 0)" (( "(") (binary_expression "local_24 == 0" (identifier "local_24") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 4;\n      bVar6 = *(byte *)(iVar7 + 0x4a);\nLAB_000afd44:\n      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;\n      iVar8 = *(int *)(iVar14 + 0xc);\n      iVar12 = *(int *)(iVar8 + 0x50);\njoined_r0x000afbdd:\n      if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }\n      *(char *)(iVar8 + 0x4c) = (char)local_30;\n      bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      if (bVar6 == 0) {\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }\n      if (4 < bVar6) {\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }\n      if ((iVar11 == 0) && (3 < local_30)) {\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }\n      iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);\n      uVar3 = *(undefined4 *)(iVar7 + 0x13c);\n      *(undefined4 *)(iVar7 + 0x13c) = 0;\n      local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);\n      *(undefined4 *)(iVar7 + 0x13c) = uVar3;\n      if (local_80 == 0) {\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }\n      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);\n      *puVar2 = *puVar2 | 1;\n      iVar9 = *(int *)(iVar14 + 4);\n      local_80 = iVar5;\n    }" ({ "{") (expression_statement "puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);" (assignment_expression "puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e)" (identifier "puVar2") (= "=") (cast_expression "(ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e)" (( "(") (binary_expression "*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e" (pointer_expression "*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13)" (* "*") (cast_expression "(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar7 + 0x10) + 0xc + iVar13)" (( "(") (binary_expression "*(int *)(iVar7 + 0x10) + 0xc + iVar13" (binary_expression "*(int *)(iVar7 + 0x10) + 0xc" (pointer_expression "*(int *)(iVar7 + 0x10)" (* "*") (cast_expression "(int *)(iVar7 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x10)" (( "(") (binary_expression "iVar7 + 0x10" (identifier "iVar7") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "0xc")) (+ "+") (identifier "iVar13")) () ")")))) (+ "+") (number_literal "0x4e")) () ")")))) (; ";")) (expression_statement "*puVar2 = *puVar2 | 4;" (assignment_expression "*puVar2 = *puVar2 | 4" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (binary_expression "*puVar2 | 4" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (| "|") (number_literal "4"))) (; ";")) (expression_statement "bVar6 = *(byte *)(iVar7 + 0x4a);" (assignment_expression "bVar6 = *(byte *)(iVar7 + 0x4a)" (identifier "bVar6") (= "=") (pointer_expression "*(byte *)(iVar7 + 0x4a)" (* "*") (cast_expression "(byte *)(iVar7 + 0x4a)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x4a)" (( "(") (binary_expression "iVar7 + 0x4a" (identifier "iVar7") (+ "+") (number_literal "0x4a")) () ")"))))) (; ";")) (labeled_statement "LAB_000afd44:\n      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;" (statement_identifier "LAB_000afd44") (: ":") (expression_statement "*(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;" (assignment_expression "*(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6" (pointer_expression "*(byte *)(*(int *)(iVar14 + 0xc) + 0x4d)" (* "*") (cast_expression "(byte *)(*(int *)(iVar14 + 0xc) + 0x4d)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar14 + 0xc) + 0x4d)" (( "(") (binary_expression "*(int *)(iVar14 + 0xc) + 0x4d" (pointer_expression "*(int *)(iVar14 + 0xc)" (* "*") (cast_expression "(int *)(iVar14 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 0xc)" (( "(") (binary_expression "iVar14 + 0xc" (identifier "iVar14") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "0x4d")) () ")")))) (= "=") (identifier "bVar6")) (; ";"))) (expression_statement "iVar8 = *(int *)(iVar14 + 0xc);" (assignment_expression "iVar8 = *(int *)(iVar14 + 0xc)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(iVar14 + 0xc)" (* "*") (cast_expression "(int *)(iVar14 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 0xc)" (( "(") (binary_expression "iVar14 + 0xc" (identifier "iVar14") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "iVar12 = *(int *)(iVar8 + 0x50);" (assignment_expression "iVar12 = *(int *)(iVar8 + 0x50)" (identifier "iVar12") (= "=") (pointer_expression "*(int *)(iVar8 + 0x50)" (* "*") (cast_expression "(int *)(iVar8 + 0x50)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x50)" (( "(") (binary_expression "iVar8 + 0x50" (identifier "iVar8") (+ "+") (number_literal "0x50")) () ")"))))) (; ";")) (labeled_statement "joined_r0x000afbdd:\n      if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }" (statement_identifier "joined_r0x000afbdd") (: ":") (if_statement "if (iVar12 == 0) {\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }" (if "if") (parenthesized_expression "(iVar12 == 0)" (( "(") (binary_expression "iVar12 == 0" (identifier "iVar12") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }\n        *(int *)(iVar8 + 0x50) = local_2c;\n        FUN_0002cfc0();\n        iVar8 = *(int *)(iVar14 + 0xc);\n      }" ({ "{") (if_statement "if (local_2c < 0) {\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }\n        else if (local_2c == 0) {\n          local_2c = -2000;\n        }" (if "if") (parenthesized_expression "(local_2c < 0)" (( "(") (binary_expression "local_2c < 0" (identifier "local_2c") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n          iVar12 = -local_2c;\n          bVar15 = local_2c != -0x80000000;\n          local_2c = 0x7fffffff;\n          if (bVar15) {\n            local_2c = iVar12;\n          }\n        }" ({ "{") (expression_statement "iVar12 = -local_2c;" (assignment_expression "iVar12 = -local_2c" (identifier "iVar12") (= "=") (unary_expression "-local_2c" (- "-") (identifier "local_2c"))) (; ";")) (expression_statement "bVar15 = local_2c != -0x80000000;" (assignment_expression "bVar15 = local_2c != -0x80000000" (identifier "bVar15") (= "=") (binary_expression "local_2c != -0x80000000" (identifier "local_2c") (!= "!=") (number_literal "-0x80000000"))) (; ";")) (expression_statement "local_2c = 0x7fffffff;" (assignment_expression "local_2c = 0x7fffffff" (identifier "local_2c") (= "=") (number_literal "0x7fffffff")) (; ";")) (if_statement "if (bVar15) {\n            local_2c = iVar12;\n          }" (if "if") (parenthesized_expression "(bVar15)" (( "(") (identifier "bVar15") () ")")) (compound_statement "{\n            local_2c = iVar12;\n          }" ({ "{") (expression_statement "local_2c = iVar12;" (assignment_expression "local_2c = iVar12" (identifier "local_2c") (= "=") (identifier "iVar12")) (; ";")) (} "}"))) (} "}")) (else_clause "else if (local_2c == 0) {\n          local_2c = -2000;\n        }" (else "else") (if_statement "if (local_2c == 0) {\n          local_2c = -2000;\n        }" (if "if") (parenthesized_expression "(local_2c == 0)" (( "(") (binary_expression "local_2c == 0" (identifier "local_2c") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          local_2c = -2000;\n        }" ({ "{") (expression_statement "local_2c = -2000;" (assignment_expression "local_2c = -2000" (identifier "local_2c") (= "=") (number_literal "-2000")) (; ";")) (} "}"))))) (expression_statement "*(int *)(iVar8 + 0x50) = local_2c;" (assignment_expression "*(int *)(iVar8 + 0x50) = local_2c" (pointer_expression "*(int *)(iVar8 + 0x50)" (* "*") (cast_expression "(int *)(iVar8 + 0x50)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x50)" (( "(") (binary_expression "iVar8 + 0x50" (identifier "iVar8") (+ "+") (number_literal "0x50")) () ")")))) (= "=") (identifier "local_2c")) (; ";")) (expression_statement "FUN_0002cfc0();" (call_expression "FUN_0002cfc0()" (identifier "FUN_0002cfc0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar8 = *(int *)(iVar14 + 0xc);" (assignment_expression "iVar8 = *(int *)(iVar14 + 0xc)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(iVar14 + 0xc)" (* "*") (cast_expression "(int *)(iVar14 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 0xc)" (( "(") (binary_expression "iVar14 + 0xc" (identifier "iVar14") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (} "}")))) (expression_statement "*(char *)(iVar8 + 0x4c) = (char)local_30;" (assignment_expression "*(char *)(iVar8 + 0x4c) = (char)local_30" (pointer_expression "*(char *)(iVar8 + 0x4c)" (* "*") (cast_expression "(char *)(iVar8 + 0x4c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x4c)" (( "(") (binary_expression "iVar8 + 0x4c" (identifier "iVar8") (+ "+") (number_literal "0x4c")) () ")")))) (= "=") (cast_expression "(char)local_30" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "local_30"))) (; ";")) (expression_statement "bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);" (assignment_expression "bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c)" (identifier "bVar6") (= "=") (pointer_expression "*(byte *)(*(int *)(iVar14 + 0xc) + 0x4c)" (* "*") (cast_expression "(byte *)(*(int *)(iVar14 + 0xc) + 0x4c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar14 + 0xc) + 0x4c)" (( "(") (binary_expression "*(int *)(iVar14 + 0xc) + 0x4c" (pointer_expression "*(int *)(iVar14 + 0xc)" (* "*") (cast_expression "(int *)(iVar14 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 0xc)" (( "(") (binary_expression "iVar14 + 0xc" (identifier "iVar14") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "0x4c")) () ")"))))) (; ";")) (if_statement "if (bVar6 == 0) {\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }" (if "if") (parenthesized_expression "(bVar6 == 0)" (( "(") (binary_expression "bVar6 == 0" (identifier "bVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;\n        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);\n      }" ({ "{") (expression_statement "*(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;" (assignment_expression "*(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1" (pointer_expression "*(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c)" (* "*") (cast_expression "(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar14 + 0xc) + 0x4c)" (( "(") (binary_expression "*(int *)(iVar14 + 0xc) + 0x4c" (pointer_expression "*(int *)(iVar14 + 0xc)" (* "*") (cast_expression "(int *)(iVar14 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 0xc)" (( "(") (binary_expression "iVar14 + 0xc" (identifier "iVar14") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "0x4c")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);" (assignment_expression "bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c)" (identifier "bVar6") (= "=") (pointer_expression "*(byte *)(*(int *)(iVar14 + 0xc) + 0x4c)" (* "*") (cast_expression "(byte *)(*(int *)(iVar14 + 0xc) + 0x4c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar14 + 0xc) + 0x4c)" (( "(") (binary_expression "*(int *)(iVar14 + 0xc) + 0x4c" (pointer_expression "*(int *)(iVar14 + 0xc)" (* "*") (cast_expression "(int *)(iVar14 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 0xc)" (( "(") (binary_expression "iVar14 + 0xc" (identifier "iVar14") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "0x4c")) () ")"))))) (; ";")) (} "}"))) (if_statement "if (4 < bVar6) {\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }" (if "if") (parenthesized_expression "(4 < bVar6)" (( "(") (binary_expression "4 < bVar6" (number_literal "4") (< "<") (identifier "bVar6")) () ")")) (compound_statement "{\n        FUN_000288e0();\n        local_80 = 1;\n        goto LAB_000afcbe;\n      }" ({ "{") (expression_statement "FUN_000288e0();" (call_expression "FUN_000288e0()" (identifier "FUN_000288e0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "local_80 = 1;" (assignment_expression "local_80 = 1" (identifier "local_80") (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_000afcbe;" (goto "goto") (statement_identifier "LAB_000afcbe") (; ";")) (} "}"))) (if_statement "if ((iVar11 == 0) && (3 < local_30)) {\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }" (if "if") (parenthesized_expression "((iVar11 == 0) && (3 < local_30))" (( "(") (binary_expression "(iVar11 == 0) && (3 < local_30)" (parenthesized_expression "(iVar11 == 0)" (( "(") (binary_expression "iVar11 == 0" (identifier "iVar11") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(3 < local_30)" (( "(") (binary_expression "3 < local_30" (number_literal "3") (< "<") (identifier "local_30")) () ")"))) () ")")) (compound_statement "{\n        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;\n      }" ({ "{") (expression_statement "*(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;" (assignment_expression "*(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd" (pointer_expression "*(uint *)(iVar7 + 0x1c)" (* "*") (cast_expression "(uint *)(iVar7 + 0x1c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x1c)" (( "(") (binary_expression "iVar7 + 0x1c" (identifier "iVar7") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (binary_expression "*(uint *)(iVar7 + 0x1c) & 0xfffffffd" (pointer_expression "*(uint *)(iVar7 + 0x1c)" (* "*") (cast_expression "(uint *)(iVar7 + 0x1c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x1c)" (( "(") (binary_expression "iVar7 + 0x1c" (identifier "iVar7") (+ "+") (number_literal "0x1c")) () ")")))) (& "&") (number_literal "0xfffffffd"))) (; ";")) (} "}"))) (expression_statement "iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);" (assignment_expression "iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9)" (identifier "iVar9") (= "=") (call_expression "FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9)" (identifier "FUN_0005fe40") (argument_list "(iVar7,unaff_EBP + 0x5692e,\n                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9)" (( "(") (identifier "iVar7") (, ",") (binary_expression "unaff_EBP + 0x5692e" (identifier "unaff_EBP") (+ "+") (number_literal "0x5692e")) (, ",") (pointer_expression "*(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13)" (* "*") (cast_expression "(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar7 + 0x10) + iVar13)" (( "(") (binary_expression "*(int *)(iVar7 + 0x10) + iVar13" (pointer_expression "*(int *)(iVar7 + 0x10)" (* "*") (cast_expression "(int *)(iVar7 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x10)" (( "(") (binary_expression "iVar7 + 0x10" (identifier "iVar7") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (identifier "iVar13")) () ")")))) (, ",") (identifier "iVar9") () ")")))) (; ";")) (expression_statement "uVar3 = *(undefined4 *)(iVar7 + 0x13c);" (assignment_expression "uVar3 = *(undefined4 *)(iVar7 + 0x13c)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)(iVar7 + 0x13c)" (* "*") (cast_expression "(undefined4 *)(iVar7 + 0x13c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x13c)" (( "(") (binary_expression "iVar7 + 0x13c" (identifier "iVar7") (+ "+") (number_literal "0x13c")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar7 + 0x13c) = 0;" (assignment_expression "*(undefined4 *)(iVar7 + 0x13c) = 0" (pointer_expression "*(undefined4 *)(iVar7 + 0x13c)" (* "*") (cast_expression "(undefined4 *)(iVar7 + 0x13c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x13c)" (( "(") (binary_expression "iVar7 + 0x13c" (identifier "iVar7") (+ "+") (number_literal "0x13c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);" (assignment_expression "local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0)" (identifier "local_80") (= "=") (call_expression "FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0)" (identifier "FUN_000af460") (argument_list "(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0)" (( "(") (identifier "iVar7") (, ",") (identifier "iVar9") (, ",") (binary_expression "unaff_EBP + 0x13caa" (identifier "unaff_EBP") (+ "+") (number_literal "0x13caa")) (, ",") (identifier "local_5c") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar7 + 0x13c) = uVar3;" (assignment_expression "*(undefined4 *)(iVar7 + 0x13c) = uVar3" (pointer_expression "*(undefined4 *)(iVar7 + 0x13c)" (* "*") (cast_expression "(undefined4 *)(iVar7 + 0x13c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x13c)" (( "(") (binary_expression "iVar7 + 0x13c" (identifier "iVar7") (+ "+") (number_literal "0x13c")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (if_statement "if (local_80 == 0) {\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }\n      else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }" (if "if") (parenthesized_expression "(local_80 == 0)" (( "(") (binary_expression "local_80 == 0" (identifier "local_80") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        local_80 = local_50;\n        if (iVar9 != 0) goto LAB_000afc8d;\nLAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;\n        FUN_000af930();\n        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;\n      }" ({ "{") (expression_statement "local_80 = local_50;" (assignment_expression "local_80 = local_50" (identifier "local_80") (= "=") (identifier "local_50")) (; ";")) (if_statement "if (iVar9 != 0) goto LAB_000afc8d;" (if "if") (parenthesized_expression "(iVar9 != 0)" (( "(") (binary_expression "iVar9 != 0" (identifier "iVar9") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000afc8d;" (goto "goto") (statement_identifier "LAB_000afc8d") (; ";"))) (labeled_statement "LAB_000afc96:\n        if (local_80 != 0) goto LAB_000afc9e;" (statement_identifier "LAB_000afc96") (: ":") (if_statement "if (local_80 != 0) goto LAB_000afc9e;" (if "if") (parenthesized_expression "(local_80 != 0)" (( "(") (binary_expression "local_80 != 0" (identifier "local_80") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000afc9e;" (goto "goto") (statement_identifier "LAB_000afc9e") (; ";")))) (expression_statement "FUN_000af930();" (call_expression "FUN_000af930()" (identifier "FUN_000af930") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;" (if "if") (parenthesized_expression "(*(char *)(iVar7 + 0x4d) != '\0')" (( "(") (binary_expression "*(char *)(iVar7 + 0x4d) != '\0'" (pointer_expression "*(char *)(iVar7 + 0x4d)" (* "*") (cast_expression "(char *)(iVar7 + 0x4d)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x4d)" (( "(") (binary_expression "iVar7 + 0x4d" (identifier "iVar7") (+ "+") (number_literal "0x4d")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_000afca4;" (goto "goto") (statement_identifier "LAB_000afca4") (; ";"))) (} "}")) (else_clause "else {\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }" (else "else") (compound_statement "{\n        if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }\nLAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }\n        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;\n      }" ({ "{") (if_statement "if (iVar9 != 0) {\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }" (if "if") (parenthesized_expression "(iVar9 != 0)" (( "(") (binary_expression "iVar9 != 0" (identifier "iVar9") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_000afc8d:\n          FUN_00026590();\n          goto LAB_000afc96;\n        }" ({ "{") (labeled_statement "LAB_000afc8d:\n          FUN_00026590();" (statement_identifier "LAB_000afc8d") (: ":") (expression_statement "FUN_00026590();" (call_expression "FUN_00026590()" (identifier "FUN_00026590") (argument_list "()" (( "(") () ")"))) (; ";"))) (goto_statement "goto LAB_000afc96;" (goto "goto") (statement_identifier "LAB_000afc96") (; ";")) (} "}"))) (labeled_statement "LAB_000afc9e:\n        if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }" (statement_identifier "LAB_000afc9e") (: ":") (if_statement "if (*(char *)(iVar7 + 0x4d) != '\0') {\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }" (if "if") (parenthesized_expression "(*(char *)(iVar7 + 0x4d) != '\0')" (( "(") (binary_expression "*(char *)(iVar7 + 0x4d) != '\0'" (pointer_expression "*(char *)(iVar7 + 0x4d)" (* "*") (cast_expression "(char *)(iVar7 + 0x4d)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x4d)" (( "(") (binary_expression "iVar7 + 0x4d" (identifier "iVar7") (+ "+") (number_literal "0x4d")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\nLAB_000afca4:\n          local_80 = 7;\n          FUN_0003b610();\n        }" ({ "{") (labeled_statement "LAB_000afca4:\n          local_80 = 7;" (statement_identifier "LAB_000afca4") (: ":") (expression_statement "local_80 = 7;" (assignment_expression "local_80 = 7" (identifier "local_80") (= "=") (number_literal "7")) (; ";"))) (expression_statement "FUN_0003b610();" (call_expression "FUN_0003b610()" (identifier "FUN_0003b610") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (if_statement "if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;" (if "if") (parenthesized_expression "((*(byte *)(iVar7 + 0x1f) & 8) == 0)" (( "(") (binary_expression "(*(byte *)(iVar7 + 0x1f) & 8) == 0" (parenthesized_expression "(*(byte *)(iVar7 + 0x1f) & 8)" (( "(") (binary_expression "*(byte *)(iVar7 + 0x1f) & 8" (pointer_expression "*(byte *)(iVar7 + 0x1f)" (* "*") (cast_expression "(byte *)(iVar7 + 0x1f)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x1f)" (( "(") (binary_expression "iVar7 + 0x1f" (identifier "iVar7") (+ "+") (number_literal "0x1f")) () ")")))) (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000afcbe;" (goto "goto") (statement_identifier "LAB_000afcbe") (; ";"))) (} "}")))) (expression_statement "puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);" (assignment_expression "puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e)" (identifier "puVar2") (= "=") (cast_expression "(ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e)" (( "(") (binary_expression "*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e" (pointer_expression "*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13)" (* "*") (cast_expression "(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar7 + 0x10) + 0xc + iVar13)" (( "(") (binary_expression "*(int *)(iVar7 + 0x10) + 0xc + iVar13" (binary_expression "*(int *)(iVar7 + 0x10) + 0xc" (pointer_expression "*(int *)(iVar7 + 0x10)" (* "*") (cast_expression "(int *)(iVar7 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x10)" (( "(") (binary_expression "iVar7 + 0x10" (identifier "iVar7") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "0xc")) (+ "+") (identifier "iVar13")) () ")")))) (+ "+") (number_literal "0x4e")) () ")")))) (; ";")) (expression_statement "*puVar2 = *puVar2 | 1;" (assignment_expression "*puVar2 = *puVar2 | 1" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (binary_expression "*puVar2 | 1" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (| "|") (number_literal "1"))) (; ";")) (expression_statement "iVar9 = *(int *)(iVar14 + 4);" (assignment_expression "iVar9 = *(int *)(iVar14 + 4)" (identifier "iVar9") (= "=") (pointer_expression "*(int *)(iVar14 + 4)" (* "*") (cast_expression "(int *)(iVar14 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 4)" (( "(") (binary_expression "iVar14 + 4" (identifier "iVar14") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "local_80 = iVar5;" (assignment_expression "local_80 = iVar5" (identifier "local_80") (= "=") (identifier "iVar5")) (; ";")) (} "}")) (else_clause "else {\n      if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }\n      bVar6 = *(byte *)(iVar7 + 0x4a);\n      if (local_24 == bVar6) goto LAB_000afd44;\n      FUN_000288e0();\n      local_80 = 1;\nLAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);\n    }" (else "else") (compound_statement "{\n      if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }\n      bVar6 = *(byte *)(iVar7 + 0x4a);\n      if (local_24 == bVar6) goto LAB_000afd44;\n      FUN_000288e0();\n      local_80 = 1;\nLAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);\n    }" ({ "{") (if_statement "if (iVar11 == 0) {\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }" (if "if") (parenthesized_expression "(iVar11 == 0)" (( "(") (binary_expression "iVar11 == 0" (identifier "iVar11") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar10 = (undefined1)(local_24 & 3);\n        if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }\n        *(undefined1 *)(iVar7 + 0x4a) = uVar10;\n        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;\n        iVar8 = *(int *)(iVar14 + 0xc);\n        iVar12 = *(int *)(iVar8 + 0x50);\n        goto joined_r0x000afbdd;\n      }" ({ "{") (expression_statement "uVar10 = (undefined1)(local_24 & 3);" (assignment_expression "uVar10 = (undefined1)(local_24 & 3)" (identifier "uVar10") (= "=") (call_expression "(undefined1)(local_24 & 3)" (parenthesized_expression "(undefined1)" (( "(") (identifier "undefined1") () ")")) (argument_list "(local_24 & 3)" (( "(") (binary_expression "local_24 & 3" (identifier "local_24") (& "&") (number_literal "3")) () ")")))) (; ";")) (if_statement "if ((local_24 & 3) == 0) {\n          uVar10 = 1;\n        }" (if "if") (parenthesized_expression "((local_24 & 3) == 0)" (( "(") (binary_expression "(local_24 & 3) == 0" (parenthesized_expression "(local_24 & 3)" (( "(") (binary_expression "local_24 & 3" (identifier "local_24") (& "&") (number_literal "3")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          uVar10 = 1;\n        }" ({ "{") (expression_statement "uVar10 = 1;" (assignment_expression "uVar10 = 1" (identifier "uVar10") (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "*(undefined1 *)(iVar7 + 0x4a) = uVar10;" (assignment_expression "*(undefined1 *)(iVar7 + 0x4a) = uVar10" (pointer_expression "*(undefined1 *)(iVar7 + 0x4a)" (* "*") (cast_expression "(undefined1 *)(iVar7 + 0x4a)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x4a)" (( "(") (binary_expression "iVar7 + 0x4a" (identifier "iVar7") (+ "+") (number_literal "0x4a")) () ")")))) (= "=") (identifier "uVar10")) (; ";")) (expression_statement "*(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;" (assignment_expression "*(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10" (pointer_expression "*(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d)" (* "*") (cast_expression "(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar14 + 0xc) + 0x4d)" (( "(") (binary_expression "*(int *)(iVar14 + 0xc) + 0x4d" (pointer_expression "*(int *)(iVar14 + 0xc)" (* "*") (cast_expression "(int *)(iVar14 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 0xc)" (( "(") (binary_expression "iVar14 + 0xc" (identifier "iVar14") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "0x4d")) () ")")))) (= "=") (identifier "uVar10")) (; ";")) (expression_statement "iVar8 = *(int *)(iVar14 + 0xc);" (assignment_expression "iVar8 = *(int *)(iVar14 + 0xc)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(iVar14 + 0xc)" (* "*") (cast_expression "(int *)(iVar14 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 0xc)" (( "(") (binary_expression "iVar14 + 0xc" (identifier "iVar14") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "iVar12 = *(int *)(iVar8 + 0x50);" (assignment_expression "iVar12 = *(int *)(iVar8 + 0x50)" (identifier "iVar12") (= "=") (pointer_expression "*(int *)(iVar8 + 0x50)" (* "*") (cast_expression "(int *)(iVar8 + 0x50)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x50)" (( "(") (binary_expression "iVar8 + 0x50" (identifier "iVar8") (+ "+") (number_literal "0x50")) () ")"))))) (; ";")) (goto_statement "goto joined_r0x000afbdd;" (goto "goto") (statement_identifier "joined_r0x000afbdd") (; ";")) (} "}"))) (expression_statement "bVar6 = *(byte *)(iVar7 + 0x4a);" (assignment_expression "bVar6 = *(byte *)(iVar7 + 0x4a)" (identifier "bVar6") (= "=") (pointer_expression "*(byte *)(iVar7 + 0x4a)" (* "*") (cast_expression "(byte *)(iVar7 + 0x4a)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x4a)" (( "(") (binary_expression "iVar7 + 0x4a" (identifier "iVar7") (+ "+") (number_literal "0x4a")) () ")"))))) (; ";")) (if_statement "if (local_24 == bVar6) goto LAB_000afd44;" (if "if") (parenthesized_expression "(local_24 == bVar6)" (( "(") (binary_expression "local_24 == bVar6" (identifier "local_24") (== "==") (identifier "bVar6")) () ")")) (goto_statement "goto LAB_000afd44;" (goto "goto") (statement_identifier "LAB_000afd44") (; ";"))) (expression_statement "FUN_000288e0();" (call_expression "FUN_000288e0()" (identifier "FUN_000288e0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "local_80 = 1;" (assignment_expression "local_80 = 1" (identifier "local_80") (= "=") (number_literal "1")) (; ";")) (labeled_statement "LAB_000afcbe:\n      iVar9 = *(int *)(iVar14 + 4);" (statement_identifier "LAB_000afcbe") (: ":") (expression_statement "iVar9 = *(int *)(iVar14 + 4);" (assignment_expression "iVar9 = *(int *)(iVar14 + 4)" (identifier "iVar9") (= "=") (pointer_expression "*(int *)(iVar14 + 4)" (* "*") (cast_expression "(int *)(iVar14 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 4)" (( "(") (binary_expression "iVar14 + 4" (identifier "iVar14") (+ "+") (number_literal "4")) () ")"))))) (; ";"))) (} "}")))) (if_statement "if (bVar4) {\n      FUN_00086700();\n      iVar9 = *(int *)(iVar14 + 4);\n    }" (if "if") (parenthesized_expression "(bVar4)" (( "(") (identifier "bVar4") () ")")) (compound_statement "{\n      FUN_00086700();\n      iVar9 = *(int *)(iVar14 + 4);\n    }" ({ "{") (expression_statement "FUN_00086700();" (call_expression "FUN_00086700()" (identifier "FUN_00086700") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar9 = *(int *)(iVar14 + 4);" (assignment_expression "iVar9 = *(int *)(iVar14 + 4)" (identifier "iVar9") (= "=") (pointer_expression "*(int *)(iVar14 + 4)" (* "*") (cast_expression "(int *)(iVar14 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar14 + 4)" (( "(") (binary_expression "iVar14 + 4" (identifier "iVar14") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}"))) (if_statement "if (*(char *)(iVar9 + 9) != '\0') {\n      piVar1 = (int *)(iVar9 + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        FUN_0002cbd0();\n      }\n    }" (if "if") (parenthesized_expression "(*(char *)(iVar9 + 9) != '\0')" (( "(") (binary_expression "*(char *)(iVar9 + 9) != '\0'" (pointer_expression "*(char *)(iVar9 + 9)" (* "*") (cast_expression "(char *)(iVar9 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + 9)" (( "(") (binary_expression "iVar9 + 9" (identifier "iVar9") (+ "+") (number_literal "9")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      piVar1 = (int *)(iVar9 + 0xc);\n      *piVar1 = *piVar1 + -1;\n      if (*piVar1 == 0) {\nLAB_000afef0:\n        FUN_0002cbd0();\n      }\n    }" ({ "{") (expression_statement "piVar1 = (int *)(iVar9 + 0xc);" (assignment_expression "piVar1 = (int *)(iVar9 + 0xc)" (identifier "piVar1") (= "=") (cast_expression "(int *)(iVar9 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + 0xc)" (( "(") (binary_expression "iVar9 + 0xc" (identifier "iVar9") (+ "+") (number_literal "0xc")) () ")")))) (; ";")) (expression_statement "*piVar1 = *piVar1 + -1;" (assignment_expression "*piVar1 = *piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (*piVar1 == 0) {\nLAB_000afef0:\n        FUN_0002cbd0();\n      }" (if "if") (parenthesized_expression "(*piVar1 == 0)" (( "(") (binary_expression "*piVar1 == 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_000afef0:\n        FUN_0002cbd0();\n      }" ({ "{") (labeled_statement "LAB_000afef0:\n        FUN_0002cbd0();" (statement_identifier "LAB_000afef0") (: ":") (expression_statement "FUN_0002cbd0();" (call_expression "FUN_0002cbd0()" (identifier "FUN_0002cbd0") (argument_list "()" (( "(") () ")"))) (; ";"))) (} "}"))) (} "}"))) (if_statement "if (local_80 == 0) goto LAB_000afd0b;" (if "if") (parenthesized_expression "(local_80 == 0)" (( "(") (binary_expression "local_80 == 0" (identifier "local_80") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000afd0b;" (goto "goto") (statement_identifier "LAB_000afd0b") (; ";"))) (} "}")))) (labeled_statement "LAB_000afce8:\n  if (((local_80 == 7) || (local_80 == 0xc0a)) && ((*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0)) {\n    FUN_00028380();\n  }" (statement_identifier "LAB_000afce8") (: ":") (if_statement "if (((local_80 == 7) || (local_80 == 0xc0a)) && ((*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0)) {\n    FUN_00028380();\n  }" (if "if") (parenthesized_expression "(((local_80 == 7) || (local_80 == 0xc0a)) && ((*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0))" (( "(") (binary_expression "((local_80 == 7) || (local_80 == 0xc0a)) && ((*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0)" (parenthesized_expression "((local_80 == 7) || (local_80 == 0xc0a))" (( "(") (binary_expression "(local_80 == 7) || (local_80 == 0xc0a)" (parenthesized_expression "(local_80 == 7)" (( "(") (binary_expression "local_80 == 7" (identifier "local_80") (== "==") (number_literal "7")) () ")")) (|| "||") (parenthesized_expression "(local_80 == 0xc0a)" (( "(") (binary_expression "local_80 == 0xc0a" (identifier "local_80") (== "==") (number_literal "0xc0a")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0)" (( "(") (binary_expression "(*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0" (parenthesized_expression "(*(uint *)(iVar7 + 0x4c) & 0xffff00)" (( "(") (binary_expression "*(uint *)(iVar7 + 0x4c) & 0xffff00" (pointer_expression "*(uint *)(iVar7 + 0x4c)" (* "*") (cast_expression "(uint *)(iVar7 + 0x4c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x4c)" (( "(") (binary_expression "iVar7 + 0x4c" (identifier "iVar7") (+ "+") (number_literal "0x4c")) () ")")))) (& "&") (number_literal "0xffff00")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    FUN_00028380();\n  }" ({ "{") (expression_statement "FUN_00028380();" (call_expression "FUN_00028380()" (identifier "FUN_00028380") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (expression_statement "FUN_0003b710();" (call_expression "FUN_0003b710()" (identifier "FUN_0003b710") (argument_list "()" (( "(") () ")"))) (; ";")) (labeled_statement "LAB_000afd0b:\n  *(undefined1 *)(iVar7 + 0xa1) = 0;" (statement_identifier "LAB_000afd0b") (: ":") (expression_statement "*(undefined1 *)(iVar7 + 0xa1) = 0;" (assignment_expression "*(undefined1 *)(iVar7 + 0xa1) = 0" (pointer_expression "*(undefined1 *)(iVar7 + 0xa1)" (* "*") (cast_expression "(undefined1 *)(iVar7 + 0xa1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0xa1)" (( "(") (binary_expression "iVar7 + 0xa1" (identifier "iVar7") (+ "+") (number_literal "0xa1")) () ")")))) (= "=") (number_literal "0")) (; ";"))) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000f6410();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (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 local_80;" (return "return") (identifier "local_80") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */

int __regparm3 function_1(type_1 *db,int var_2,char **pzErrMsg,type_2 mFlags)

{
  int *piVar1;
  type_3 *puVar2;
  type_2 *pMeta;
  int var_26;
  type_4 *pDVar4;
  type_5 p_Var5;
  type_6 var_23;
  bool bVar7;
  int iVar8;
  type_7 var_14;
  type_8 *pSVar10;
  char *var_17;
  type_9 *var_4;
  type_10 uVar13;
  int var_11;
  int var_1;
  bool bVar15;
  int var_7;
  type_11 initData;
  char *azArg [4];
  int var_10 [5];
  
  var_26 = *(int *)(var_1 + 0x14);
  azArg[3] = (char *)0x0;
  var_17 = "sqlite_master";
  if (var_2 == 1) {
    var_17 = "sqlite_temp_master";
  }
  initData.rc = 0;
  azArg[1] = "1";
  azArg[2] = "CREATE TABLE x(type text,name text,tbl_name text,rootpage int,sql text)";
  initData.mInitFlags = mFlags;
  initData.nInitRow = 0;
  (db->init).busy = '\x01';
  initData.db = db;
  initData.pzErrMsg = pzErrMsg;
  initData.var_2 = var_2;
  azArg[0] = var_17;
  var_3(&initData,3,azArg,(char **)0x0);
  iVar8 = initData.rc;
  var_7 = initData.rc;
  if (initData.rc != 0) goto LAB_000afce8;
  pDVar4 = db->aDb;
  var_4 = pDVar4[var_2].pBt;
  if (var_4 == (type_9 *)0x0) {
    puVar2 = &(pDVar4[1].pSchema)->schemaFlags;
    *puVar2 = *puVar2 | 1;
    goto LAB_000afd0b;
  }
  if (var_4->sharable != '\0') {
    var_5(var_4);
    var_4 = pDVar4[var_2].pBt;
  }
  bVar7 = false;
  if (var_4->inTrans == '\0') {
    var_7 = var_6(var_4,0,(int *)0x0);
    if (var_7 == 0) {
      var_4 = pDVar4[var_2].pBt;
      bVar7 = true;
      goto LAB_000afb5f;
    }
    var_17 = var_8(var_7);
    var_9(pzErrMsg,db,var_17);
    var_4 = pDVar4[var_2].pBt;
    if (var_4->sharable != '\0') {
      piVar1 = &var_4->wantToLock;
      *piVar1 = *piVar1 + -1;
      if (*piVar1 != 0) goto LAB_000afce8;
      goto LAB_000afef0;
    }
  }
  else {
LAB_000afb5f:
    var_11 = 0;
    while( true ) {
      pMeta = (type_2 *)(var_10 + var_11);
      var_11 = var_11 + 1;
      var_12(var_4,var_11,pMeta);
      if (var_11 == 5) break;
      var_4 = pDVar4[var_2].pBt;
    }
    if ((db->flags & 0x2000000) != 0) {
      var_10[0] = 0;
      var_10[1] = 0;
      var_10[2] = 0;
      var_10[3] = 0;
      var_10[4] = 0;
    }
    (pDVar4[var_2].pSchema)->schema_cookie = var_10[0];
    if (var_10[4] == 0) {
      puVar2 = &(db->aDb[var_2].pSchema)->schemaFlags;
      *puVar2 = *puVar2 | 4;
      var_14 = db->enc;
LAB_000afd44:
      (pDVar4[var_2].pSchema)->enc = var_14;
      pSVar10 = pDVar4[var_2].pSchema;
      var_11 = pSVar10->cache_size;
joined_r0x000afbdd:
      if (var_11 == 0) {
        if (var_10[2] < 0) {
          var_11 = -var_10[2];
          bVar15 = var_10[2] != -0x80000000;
          var_10[2] = 0x7fffffff;
          if (bVar15) {
            var_10[2] = var_11;
          }
        }
        else if (var_10[2] == 0) {
          var_10[2] = -2000;
        }
        pSVar10->cache_size = var_10[2];
        var_13(pDVar4[var_2].pBt,(pDVar4[var_2].pSchema)->cache_size);
        pSVar10 = pDVar4[var_2].pSchema;
      }
      pSVar10->file_format = (type_10)var_10[1];
      var_14 = (pDVar4[var_2].pSchema)->file_format;
      if (var_14 == 0) {
        (pDVar4[var_2].pSchema)->file_format = '\x01';
        var_14 = (pDVar4[var_2].pSchema)->file_format;
      }
      if (4 < var_14) {
        var_9(pzErrMsg,db,"unsupported file format");
        var_7 = 1;
        goto LAB_000afcbe;
      }
      if ((var_2 == 0) && (3 < var_10[1])) {
        *(type_6 *)&db->flags = (type_6)db->flags & 0xfffffffd;
      }
      var_17 = var_15(db,"SELECT name, rootpage, sql FROM \"%w\".%s ORDER BY rowid",
                               db->aDb[var_2].zDbSName,var_17);
      p_Var5 = db->xAuth;
      db->xAuth = (type_5)0x0;
      var_7 = var_16(db,var_17,var_3,&initData,(char **)0x0);
      db->xAuth = p_Var5;
      if (var_7 == 0) {
        var_7 = initData.rc;
        if (var_17 != (char *)0x0) goto LAB_000afc8d;
LAB_000afc96:
        if (var_7 != 0) goto LAB_000afc9e;
        var_18(db,var_2);
        if (db->mallocFailed != '\0') goto LAB_000afca4;
      }
      else {
        if (var_17 != (char *)0x0) {
LAB_000afc8d:
          var_19(db,var_17);
          goto LAB_000afc96;
        }
LAB_000afc9e:
        if (db->mallocFailed != '\0') {
LAB_000afca4:
          var_7 = 7;
          var_20(db);
        }
        if ((db->flags & 0x8000000) == 0) goto LAB_000afcbe;
      }
      puVar2 = &(db->aDb[var_2].pSchema)->schemaFlags;
      *puVar2 = *puVar2 | 1;
      var_4 = pDVar4[var_2].pBt;
      var_7 = iVar8;
    }
    else {
      if (var_2 == 0) {
        uVar13 = (type_10)(var_10[4] & 3U);
        if ((var_10[4] & 3U) == 0) {
          uVar13 = '\x01';
        }
        db->enc = uVar13;
        pDVar4->pSchema->enc = uVar13;
        pSVar10 = pDVar4->pSchema;
        var_11 = pSVar10->cache_size;
        goto joined_r0x000afbdd;
      }
      var_14 = db->enc;
      if (var_10[4] == (type_6)var_14) goto LAB_000afd44;
      var_9(pzErrMsg,db,
                       "attached databases must use the same text encoding as main database");
      var_7 = 1;
LAB_000afcbe:
      var_4 = pDVar4[var_2].pBt;
    }
    if (bVar7) {
      var_21(var_4);
      var_4 = pDVar4[var_2].pBt;
    }
    if (var_4->sharable != '\0') {
      piVar1 = &var_4->wantToLock;
      *piVar1 = *piVar1 + -1;
      if (*piVar1 == 0) {
LAB_000afef0:
        var_22(var_4);
      }
    }
    if (var_7 == 0) goto LAB_000afd0b;
  }
LAB_000afce8:
  if (((var_7 == 7) || (var_7 == 0xc0a)) &&
     (var_23._0_1_ = db->temp_store, var_23._1_1_ = db->mallocFailed, var_23._2_1_ = db->bBenignMalloc,
     var_23._3_1_ = db->dfltLockMode, (var_23 & 0xffff00) == 0)) {
    var_24(db);
  }
  var_25(db,var_2);
LAB_000afd0b:
  (db->init).busy = '\0';
  if (var_26 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_27();
  }
  return var_7;
}


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

int MASKED(undefined4 param_1)

{
  int *piVar1;
  ushort *puVar2;
  undefined4 uVar3;
  bool bVar4;
  int iVar5;
  byte bVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  undefined1 uVar10;
  int iVar11;
  int iVar12;
  int unaff_EBP;
  int iVar13;
  int iVar14;
  int in_GS_OFFSET;
  bool bVar15;
  undefined8 uVar16;
  int local_80;
  int local_5c [2];
  int local_54;
  int local_50;
  undefined4 local_4c;
  undefined4 local_48;
  int local_44;
  int local_40;
  int local_3c;
  undefined4 local_38;
  undefined4 local_34;
  int local_30;
  int local_2c;
  undefined4 local_28;
  uint local_24;
  int local_20;
  
  uVar16 = FUN_000f5a04();
  iVar11 = (int)((ulonglong)uVar16 >> 0x20);
  iVar7 = (int)uVar16;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_38 = 0;
  iVar9 = unaff_EBP + 0x47ba9;
  if (iVar11 == 1) {
    iVar9 = unaff_EBP + 0x48b79;
  }
  local_50 = 0;
  local_40 = unaff_EBP + 0x4adba;
  local_3c = unaff_EBP + 0x568a2;
  local_4c = param_1;
  local_48 = 0;
  *(undefined1 *)(iVar7 + 0xa1) = 1;
  local_5c[0] = iVar7;
  local_54 = iVar11;
  local_44 = iVar9;
  FUN_000c3720(local_5c,3,&local_44,0);
  iVar5 = local_50;
  local_80 = local_50;
  if (local_50 != 0) goto LAB_000afce8;
  iVar13 = iVar11 * 0x10;
  iVar14 = iVar13 + *(int *)(iVar7 + 0x10);
  iVar12 = *(int *)(iVar14 + 4);
  if (iVar12 == 0) {
    puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0x1c) + 0x4e);
    *puVar2 = *puVar2 | 1;
    goto LAB_000afd0b;
  }
  if (*(char *)(iVar12 + 9) != '\0') {
    FUN_0002cb40();
    iVar12 = *(int *)(iVar14 + 4);
  }
  bVar4 = false;
  if (*(char *)(iVar12 + 8) == '\0') {
    local_80 = FUN_0007e3b0();
    if (local_80 == 0) {
      bVar4 = true;
      goto LAB_000afb5f;
    }
    FUN_00032150();
    FUN_000288e0();
    if (*(char *)(*(int *)(iVar14 + 4) + 9) != '\0') {
      piVar1 = (int *)(*(int *)(iVar14 + 4) + 0xc);
      *piVar1 = *piVar1 + -1;
      if (*piVar1 != 0) goto LAB_000afce8;
      goto LAB_000afef0;
    }
  }
  else {
LAB_000afb5f:
    iVar12 = 0;
    do {
      iVar12 = iVar12 + 1;
      FUN_00038620();
    } while (iVar12 != 5);
    if ((*(byte *)(iVar7 + 0x1f) & 2) != 0) {
      local_34 = 0;
      local_30 = 0;
      local_2c = 0;
      local_28 = 0;
      local_24 = 0;
    }
    **(undefined4 **)(iVar14 + 0xc) = local_34;
    if (local_24 == 0) {
      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);
      *puVar2 = *puVar2 | 4;
      bVar6 = *(byte *)(iVar7 + 0x4a);
LAB_000afd44:
      *(byte *)(*(int *)(iVar14 + 0xc) + 0x4d) = bVar6;
      iVar8 = *(int *)(iVar14 + 0xc);
      iVar12 = *(int *)(iVar8 + 0x50);
joined_r0x000afbdd:
      if (iVar12 == 0) {
        if (local_2c < 0) {
          iVar12 = -local_2c;
          bVar15 = local_2c != -0x80000000;
          local_2c = 0x7fffffff;
          if (bVar15) {
            local_2c = iVar12;
          }
        }
        else if (local_2c == 0) {
          local_2c = -2000;
        }
        *(int *)(iVar8 + 0x50) = local_2c;
        FUN_0002cfc0();
        iVar8 = *(int *)(iVar14 + 0xc);
      }
      *(char *)(iVar8 + 0x4c) = (char)local_30;
      bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);
      if (bVar6 == 0) {
        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4c) = 1;
        bVar6 = *(byte *)(*(int *)(iVar14 + 0xc) + 0x4c);
      }
      if (4 < bVar6) {
        FUN_000288e0();
        local_80 = 1;
        goto LAB_000afcbe;
      }
      if ((iVar11 == 0) && (3 < local_30)) {
        *(uint *)(iVar7 + 0x1c) = *(uint *)(iVar7 + 0x1c) & 0xfffffffd;
      }
      iVar9 = FUN_0005fe40(iVar7,unaff_EBP + 0x5692e,
                           *(undefined4 *)(*(int *)(iVar7 + 0x10) + iVar13),iVar9);
      uVar3 = *(undefined4 *)(iVar7 + 0x13c);
      *(undefined4 *)(iVar7 + 0x13c) = 0;
      local_80 = FUN_000af460(iVar7,iVar9,unaff_EBP + 0x13caa,local_5c,0);
      *(undefined4 *)(iVar7 + 0x13c) = uVar3;
      if (local_80 == 0) {
        local_80 = local_50;
        if (iVar9 != 0) goto LAB_000afc8d;
LAB_000afc96:
        if (local_80 != 0) goto LAB_000afc9e;
        FUN_000af930();
        if (*(char *)(iVar7 + 0x4d) != '\0') goto LAB_000afca4;
      }
      else {
        if (iVar9 != 0) {
LAB_000afc8d:
          FUN_00026590();
          goto LAB_000afc96;
        }
LAB_000afc9e:
        if (*(char *)(iVar7 + 0x4d) != '\0') {
LAB_000afca4:
          local_80 = 7;
          FUN_0003b610();
        }
        if ((*(byte *)(iVar7 + 0x1f) & 8) == 0) goto LAB_000afcbe;
      }
      puVar2 = (ushort *)(*(int *)(*(int *)(iVar7 + 0x10) + 0xc + iVar13) + 0x4e);
      *puVar2 = *puVar2 | 1;
      iVar9 = *(int *)(iVar14 + 4);
      local_80 = iVar5;
    }
    else {
      if (iVar11 == 0) {
        uVar10 = (undefined1)(local_24 & 3);
        if ((local_24 & 3) == 0) {
          uVar10 = 1;
        }
        *(undefined1 *)(iVar7 + 0x4a) = uVar10;
        *(undefined1 *)(*(int *)(iVar14 + 0xc) + 0x4d) = uVar10;
        iVar8 = *(int *)(iVar14 + 0xc);
        iVar12 = *(int *)(iVar8 + 0x50);
        goto joined_r0x000afbdd;
      }
      bVar6 = *(byte *)(iVar7 + 0x4a);
      if (local_24 == bVar6) goto LAB_000afd44;
      FUN_000288e0();
      local_80 = 1;
LAB_000afcbe:
      iVar9 = *(int *)(iVar14 + 4);
    }
    if (bVar4) {
      FUN_00086700();
      iVar9 = *(int *)(iVar14 + 4);
    }
    if (*(char *)(iVar9 + 9) != '\0') {
      piVar1 = (int *)(iVar9 + 0xc);
      *piVar1 = *piVar1 + -1;
      if (*piVar1 == 0) {
LAB_000afef0:
        FUN_0002cbd0();
      }
    }
    if (local_80 == 0) goto LAB_000afd0b;
  }
LAB_000afce8:
  if (((local_80 == 7) || (local_80 == 0xc0a)) && ((*(uint *)(iVar7 + 0x4c) & 0xffff00) == 0)) {
    FUN_00028380();
  }
  FUN_0003b710();
LAB_000afd0b:
  *(undefined1 *)(iVar7 + 0xa1) = 0;
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_000f6410();
  }
  return local_80;
}

