// File: /workspace/github_c_makefile_star2_O0/skeeto[P]flappy/sqlite3.c
// Function: xferOptimization
static int xferOptimization(
  Parse *pParse,        /* Parser context */
  Table *pDest,         /* The table we are inserting into */
  Select *pSelect,      /* A SELECT statement to use as the data source */
  int onError,          /* How to handle constraint errors */
  int iDbDest           /* The database of pDest */
){
  ExprList *pEList;                /* The result set of the SELECT */
  Table *pSrc;                     /* The table in the FROM clause of SELECT */
  Index *pSrcIdx, *pDestIdx;       /* Source and destination indices */
  struct SrcList_item *pItem;      /* An element of pSelect->pSrc */
  int i;                           /* Loop counter */
  int iDbSrc;                      /* The database of pSrc */
  int iSrc, iDest;                 /* Cursors from source and destination */
  int addr1, addr2;                /* Loop addresses */
  int emptyDestTest = 0;           /* Address of test for empty pDest */
  int emptySrcTest = 0;            /* Address of test for empty pSrc */
  Vdbe *v;                         /* The VDBE we are building */
  int regAutoinc;                  /* Memory register used by AUTOINC */
  int destHasUniqueIdx = 0;        /* True if pDest has a UNIQUE index */
  int regData, regRowid;           /* Registers holding data and rowid */

  if( pSelect==0 ){
    return 0;   /* Must be of the form  INSERT INTO ... SELECT ... */
  }
  if( sqlite3TriggerList(pParse, pDest) ){
    return 0;   /* tab1 must not have triggers */
  }
#ifndef SQLITE_OMIT_VIRTUALTABLE
  if( pDest->tabFlags & TF_Virtual ){
    return 0;   /* tab1 must not be a virtual table */
  }
#endif
  if( onError==OE_Default ){
    if( pDest->iPKey>=0 ) onError = pDest->keyConf;
    if( onError==OE_Default ) onError = OE_Abort;
  }
  assert(pSelect->pSrc);   /* allocated even if there is no FROM clause */
  if( pSelect->pSrc->nSrc!=1 ){
    return 0;   /* FROM clause must have exactly one term */
  }
  if( pSelect->pSrc->a[0].pSelect ){
    return 0;   /* FROM clause cannot contain a subquery */
  }
  if( pSelect->pWhere ){
    return 0;   /* SELECT may not have a WHERE clause */
  }
  if( pSelect->pOrderBy ){
    return 0;   /* SELECT may not have an ORDER BY clause */
  }
  /* Do not need to test for a HAVING clause.  If HAVING is present but
  ** there is no ORDER BY, we will get an error. */
  if( pSelect->pGroupBy ){
    return 0;   /* SELECT may not have a GROUP BY clause */
  }
  if( pSelect->pLimit ){
    return 0;   /* SELECT may not have a LIMIT clause */
  }
  assert( pSelect->pOffset==0 );  /* Must be so if pLimit==0 */
  if( pSelect->pPrior ){
    return 0;   /* SELECT may not be a compound query */
  }
  if( pSelect->selFlags & SF_Distinct ){
    return 0;   /* SELECT may not be DISTINCT */
  }
  pEList = pSelect->pEList;
  assert( pEList!=0 );
  if( pEList->nExpr!=1 ){
    return 0;   /* The result set must have exactly one column */
  }
  assert( pEList->a[0].pExpr );
  if( pEList->a[0].pExpr->op!=TK_ALL ){
    return 0;   /* The result set must be the special operator "*" */
  }

  /* At this point we have established that the statement is of the
  ** correct syntactic form to participate in this optimization.  Now
  ** we have to check the semantics.
  */
  pItem = pSelect->pSrc->a;
  pSrc = sqlite3LocateTableItem(pParse, 0, pItem);
  if( pSrc==0 ){
    return 0;   /* FROM clause does not contain a real table */
  }
  if( pSrc==pDest ){
    return 0;   /* tab1 and tab2 may not be the same table */
  }
  if( HasRowid(pDest)!=HasRowid(pSrc) ){
    return 0;   /* source and destination must both be WITHOUT ROWID or not */
  }
#ifndef SQLITE_OMIT_VIRTUALTABLE
  if( pSrc->tabFlags & TF_Virtual ){
    return 0;   /* tab2 must not be a virtual table */
  }
#endif
  if( pSrc->pSelect ){
    return 0;   /* tab2 may not be a view */
  }
  if( pDest->nCol!=pSrc->nCol ){
    return 0;   /* Number of columns must be the same in tab1 and tab2 */
  }
  if( pDest->iPKey!=pSrc->iPKey ){
    return 0;   /* Both tables must have the same INTEGER PRIMARY KEY */
  }
  for(i=0; i<pDest->nCol; i++){
    if( pDest->aCol[i].affinity!=pSrc->aCol[i].affinity ){
      return 0;    /* Affinity must be the same on all columns */
    }
    if( !xferCompatibleCollation(pDest->aCol[i].zColl, pSrc->aCol[i].zColl) ){
      return 0;    /* Collating sequence must be the same on all columns */
    }
    if( pDest->aCol[i].notNull && !pSrc->aCol[i].notNull ){
      return 0;    /* tab2 must be NOT NULL if tab1 is */
    }
  }
  for(pDestIdx=pDest->pIndex; pDestIdx; pDestIdx=pDestIdx->pNext){
    if( pDestIdx->onError!=OE_None ){
      destHasUniqueIdx = 1;
    }
    for(pSrcIdx=pSrc->pIndex; pSrcIdx; pSrcIdx=pSrcIdx->pNext){
      if( xferCompatibleIndex(pDestIdx, pSrcIdx) ) break;
    }
    if( pSrcIdx==0 ){
      return 0;    /* pDestIdx has no corresponding index in pSrc */
    }
  }
#ifndef SQLITE_OMIT_CHECK
  if( pDest->pCheck && sqlite3ExprListCompare(pSrc->pCheck,pDest->pCheck,-1) ){
    return 0;   /* Tables have different CHECK constraints.  Ticket #2252 */
  }
#endif
#ifndef SQLITE_OMIT_FOREIGN_KEY
  /* Disallow the transfer optimization if the destination table constains
  ** any foreign key constraints.  This is more restrictive than necessary.
  ** But the main beneficiary of the transfer optimization is the VACUUM 
  ** command, and the VACUUM command disables foreign key constraints.  So
  ** the extra complication to make this rule less restrictive is probably
  ** not worth the effort.  Ticket [6284df89debdfa61db8073e062908af0c9b6118e]
  */
  if( (pParse->db->flags & SQLITE_ForeignKeys)!=0 && pDest->pFKey!=0 ){
    return 0;
  }
#endif
  if( (pParse->db->flags & SQLITE_CountRows)!=0 ){
    return 0;  /* xfer opt does not play well with PRAGMA count_changes */
  }

  /* If we get this far, it means that the xfer optimization is at
  ** least a possibility, though it might only work if the destination
  ** table (tab1) is initially empty.
  */
#ifdef SQLITE_TEST
  sqlite3_xferopt_count++;
#endif
  iDbSrc = sqlite3SchemaToIndex(pParse->db, pSrc->pSchema);
  v = sqlite3GetVdbe(pParse);
  sqlite3CodeVerifySchema(pParse, iDbSrc);
  iSrc = pParse->nTab++;
  iDest = pParse->nTab++;
  regAutoinc = autoIncBegin(pParse, iDbDest, pDest);
  regData = sqlite3GetTempReg(pParse);
  regRowid = sqlite3GetTempReg(pParse);
  sqlite3OpenTable(pParse, iDest, iDbDest, pDest, OP_OpenWrite);
  assert( HasRowid(pDest) || destHasUniqueIdx );
  if( (pDest->iPKey<0 && pDest->pIndex!=0)          /* (1) */
   || destHasUniqueIdx                              /* (2) */
   || (onError!=OE_Abort && onError!=OE_Rollback)   /* (3) */
  ){
    /* In some circumstances, we are able to run the xfer optimization
    ** only if the destination table is initially empty.  This code makes
    ** that determination.  Conditions under which the destination must
    ** be empty:
    **
    ** (1) There is no INTEGER PRIMARY KEY but there are indices.
    **     (If the destination is not initially empty, the rowid fields
    **     of index entries might need to change.)
    **
    ** (2) The destination has a unique index.  (The xfer optimization 
    **     is unable to test uniqueness.)
    **
    ** (3) onError is something other than OE_Abort and OE_Rollback.
    */
    addr1 = sqlite3VdbeAddOp2(v, OP_Rewind, iDest, 0);
    emptyDestTest = sqlite3VdbeAddOp2(v, OP_Goto, 0, 0);
    sqlite3VdbeJumpHere(v, addr1);
  }
  if( HasRowid(pSrc) ){
    sqlite3OpenTable(pParse, iSrc, iDbSrc, pSrc, OP_OpenRead);
    emptySrcTest = sqlite3VdbeAddOp2(v, OP_Rewind, iSrc, 0);
    if( pDest->iPKey>=0 ){
      addr1 = sqlite3VdbeAddOp2(v, OP_Rowid, iSrc, regRowid);
      addr2 = sqlite3VdbeAddOp3(v, OP_NotExists, iDest, 0, regRowid);
      sqlite3RowidConstraint(pParse, onError, pDest);
      sqlite3VdbeJumpHere(v, addr2);
      autoIncStep(pParse, regAutoinc, regRowid);
    }else if( pDest->pIndex==0 ){
      addr1 = sqlite3VdbeAddOp2(v, OP_NewRowid, iDest, regRowid);
    }else{
      addr1 = sqlite3VdbeAddOp2(v, OP_Rowid, iSrc, regRowid);
      assert( (pDest->tabFlags & TF_Autoincrement)==0 );
    }
    sqlite3VdbeAddOp2(v, OP_RowData, iSrc, regData);
    sqlite3VdbeAddOp3(v, OP_Insert, iDest, regData, regRowid);
    sqlite3VdbeChangeP5(v, OPFLAG_NCHANGE|OPFLAG_LASTROWID|OPFLAG_APPEND);
    sqlite3VdbeChangeP4(v, -1, pDest->zName, 0);
    sqlite3VdbeAddOp2(v, OP_Next, iSrc, addr1);
    sqlite3VdbeAddOp2(v, OP_Close, iSrc, 0);
    sqlite3VdbeAddOp2(v, OP_Close, iDest, 0);
  }else{
    sqlite3TableLock(pParse, iDbDest, pDest->tnum, 1, pDest->zName);
    sqlite3TableLock(pParse, iDbSrc, pSrc->tnum, 0, pSrc->zName);
  }
  for(pDestIdx=pDest->pIndex; pDestIdx; pDestIdx=pDestIdx->pNext){
    for(pSrcIdx=pSrc->pIndex; ALWAYS(pSrcIdx); pSrcIdx=pSrcIdx->pNext){
      if( xferCompatibleIndex(pDestIdx, pSrcIdx) ) break;
    }
    assert( pSrcIdx );
    sqlite3VdbeAddOp3(v, OP_OpenRead, iSrc, pSrcIdx->tnum, iDbSrc);
    sqlite3VdbeSetP4KeyInfo(pParse, pSrcIdx);
    VdbeComment((v, "%s", pSrcIdx->zName));
    sqlite3VdbeAddOp3(v, OP_OpenWrite, iDest, pDestIdx->tnum, iDbDest);
    sqlite3VdbeSetP4KeyInfo(pParse, pDestIdx);
    sqlite3VdbeChangeP5(v, OPFLAG_BULKCSR);
    VdbeComment((v, "%s", pDestIdx->zName));
    addr1 = sqlite3VdbeAddOp2(v, OP_Rewind, iSrc, 0);
    sqlite3VdbeAddOp2(v, OP_RowKey, iSrc, regData);
    sqlite3VdbeAddOp3(v, OP_IdxInsert, iDest, regData, 1);
    sqlite3VdbeAddOp2(v, OP_Next, iSrc, addr1+1);
    sqlite3VdbeJumpHere(v, addr1);
    sqlite3VdbeAddOp2(v, OP_Close, iSrc, 0);
    sqlite3VdbeAddOp2(v, OP_Close, iDest, 0);
  }
  sqlite3VdbeJumpHere(v, emptySrcTest);
  sqlite3ReleaseTempReg(pParse, regRowid);
  sqlite3ReleaseTempReg(pParse, regData);
  if( emptyDestTest ){
    sqlite3VdbeAddOp2(v, OP_Halt, SQLITE_OK, 0);
    sqlite3VdbeJumpHere(v, emptyDestTest);
    sqlite3VdbeAddOp2(v, OP_Close, iDest, 0);
    return 0;
  }else{
    return 1;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movl %r8d, -0x28(%rbp)
movl $0x0, -0x6c(%rbp)
movl $0x0, -0x70(%rbp)
movl $0x0, -0x80(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x88596
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x72720
cmpq $0x0, %rax
je 0x885b5
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
movq -0x18(%rbp), %rax
movzbl 0x48(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x885d1
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
cmpl $0xa, -0x24(%rbp)
jne 0x885fe
movq -0x18(%rbp), %rax
movswl 0x40(%rax), %eax
cmpl $0x0, %eax
jl 0x885ef
movq -0x18(%rbp), %rax
movzbl 0x49(%rax), %eax
movl %eax, -0x24(%rbp)
cmpl $0xa, -0x24(%rbp)
jne 0x885fc
movl $0x2, -0x24(%rbp)
jmp 0x885fe
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
je 0x8861a
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rax
cmpq $0x0, 0x30(%rax)
je 0x88635
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
movq -0x20(%rbp), %rax
cmpq $0x0, 0x30(%rax)
je 0x8864c
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
movq -0x20(%rbp), %rax
cmpq $0x0, 0x48(%rax)
je 0x88663
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
movq -0x20(%rbp), %rax
cmpq $0x0, 0x38(%rax)
je 0x8867a
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
movq -0x20(%rbp), %rax
cmpq $0x0, 0x68(%rax)
je 0x88691
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
movq -0x20(%rbp), %rax
cmpq $0x0, 0x50(%rax)
je 0x886a8
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
movq -0x20(%rbp), %rax
movzwl 0xa(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x886c4
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
movq -0x20(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
cmpl $0x1, (%rax)
je 0x886e4
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movzbl (%rax), %eax
cmpl $0x72, %eax
je 0x88703
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rax
addq $0x8, %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rdi
movq -0x50(%rbp), %rdx
xorl %esi, %esi
callq 0x6f820
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
jne 0x88739
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
movq -0x38(%rbp), %rax
cmpq -0x18(%rbp), %rax
jne 0x8874f
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
movq -0x18(%rbp), %rax
movzbl 0x48(%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
sete %al
andb $0x1, %al
movzbl %al, %eax
movq -0x38(%rbp), %rcx
movzbl 0x48(%rcx), %ecx
andl $0x20, %ecx
cmpl $0x0, %ecx
sete %cl
andb $0x1, %cl
movzbl %cl, %ecx
cmpl %ecx, %eax
je 0x8878c
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
movq -0x38(%rbp), %rax
movzbl 0x48(%rax), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x887a8
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
movq -0x38(%rbp), %rax
cmpq $0x0, 0x18(%rax)
je 0x887bf
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
movq -0x18(%rbp), %rax
movswl 0x42(%rax), %eax
movq -0x38(%rbp), %rcx
movswl 0x42(%rcx), %ecx
cmpl %ecx, %eax
je 0x887df
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
movq -0x18(%rbp), %rax
movswl 0x40(%rax), %eax
movq -0x38(%rbp), %rcx
movswl 0x40(%rcx), %ecx
cmpl %ecx, %eax
je 0x887ff
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
movl $0x0, -0x54(%rbp)
movl -0x54(%rbp), %eax
movq -0x18(%rbp), %rcx
movswl 0x42(%rcx), %ecx
cmpl %ecx, %eax
jge 0x888ec
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x54(%rbp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movsbl 0x29(%rax), %eax
movq -0x38(%rbp), %rcx
movq 0x8(%rcx), %rcx
movslq -0x54(%rbp), %rdx
imulq $0x30, %rdx, %rdx
addq %rdx, %rcx
movsbl 0x29(%rcx), %ecx
cmpl %ecx, %eax
je 0x88857
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x54(%rbp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq 0x20(%rax), %rdi
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x54(%rbp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movq 0x20(%rax), %rsi
callq 0x89320
cmpl $0x0, %eax
jne 0x8889b
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x54(%rbp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movzbl 0x28(%rax), %eax
cmpl $0x0, %eax
je 0x888dc
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movslq -0x54(%rbp), %rcx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
cmpb $0x0, 0x28(%rax)
jne 0x888dc
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
jmp 0x888de
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
jmp 0x88806
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0x8896d
movq -0x48(%rbp), %rax
movzbl 0x62(%rax), %eax
cmpl $0x0, %eax
je 0x88913
movl $0x1, -0x80(%rbp)
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
je 0x8894a
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x89380
cmpl $0x0, %eax
je 0x8893a
jmp 0x8894a
jmp 0x8893c
movq -0x40(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x40(%rbp)
jmp 0x8891f
cmpq $0x0, -0x40(%rbp)
jne 0x8895d
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
jmp 0x8895f
movq -0x48(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x48(%rbp)
jmp 0x888f8
movq -0x18(%rbp), %rax
cmpq $0x0, 0x30(%rax)
je 0x889a3
movq -0x38(%rbp), %rax
movq 0x30(%rax), %rdi
movq -0x18(%rbp), %rax
movq 0x30(%rax), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x68b00
cmpl $0x0, %eax
je 0x889a3
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x2c(%rax), %eax
andl $0x80000, %eax          # imm = 0x80000
cmpl $0x0, %eax
je 0x889ce
movq -0x18(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x889ce
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x2c(%rax), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x889ee
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x38(%rbp), %rax
movq 0x70(%rax), %rsi
callq 0x16b60
movl %eax, -0x58(%rbp)
movq -0x10(%rbp), %rdi
callq 0x638c0
movq %rax, -0x78(%rbp)
movq -0x10(%rbp), %rdi
movl -0x58(%rbp), %esi
callq 0x6a2c0
movq -0x10(%rbp), %rcx
movl 0x54(%rcx), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, 0x54(%rcx)
movl %eax, -0x5c(%rbp)
movq -0x10(%rbp), %rcx
movl 0x54(%rcx), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, 0x54(%rcx)
movl %eax, -0x60(%rbp)
movq -0x10(%rbp), %rdi
movl -0x28(%rbp), %esi
movq -0x18(%rbp), %rdx
callq 0x88e90
movl %eax, -0x7c(%rbp)
movq -0x10(%rbp), %rdi
callq 0x67350
movl %eax, -0x84(%rbp)
movq -0x10(%rbp), %rdi
callq 0x67350
movl %eax, -0x88(%rbp)
movq -0x10(%rbp), %rdi
movl -0x60(%rbp), %esi
movl -0x28(%rbp), %edx
movq -0x18(%rbp), %rcx
movl $0x33, %r8d
callq 0x63dd0
movq -0x18(%rbp), %rax
movswl 0x40(%rax), %eax
cmpl $0x0, %eax
jge 0x88aa4
movq -0x18(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x88ab6
cmpl $0x0, -0x80(%rbp)
jne 0x88ab6
cmpl $0x2, -0x24(%rbp)
je 0x88aed
cmpl $0x1, -0x24(%rbp)
je 0x88aed
movq -0x78(%rbp), %rdi
movl -0x60(%rbp), %edx
movl $0x67, %esi
xorl %ecx, %ecx
callq 0x63980
movl %eax, -0x64(%rbp)
movq -0x78(%rbp), %rdi
movl $0x10, %esi
xorl %ecx, %ecx
movl %ecx, %edx
callq 0x63980
movl %eax, -0x6c(%rbp)
movq -0x78(%rbp), %rdi
movl -0x64(%rbp), %esi
callq 0x63950
movq -0x38(%rbp), %rax
movzbl 0x48(%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
jne 0x88c7d
movq -0x10(%rbp), %rdi
movl -0x5c(%rbp), %esi
movl -0x58(%rbp), %edx
movq -0x38(%rbp), %rcx
movl $0x32, %r8d
callq 0x63dd0
movq -0x78(%rbp), %rdi
movl -0x5c(%rbp), %edx
movl $0x67, %esi
xorl %ecx, %ecx
callq 0x63980
movl %eax, -0x70(%rbp)
movq -0x18(%rbp), %rax
movswl 0x40(%rax), %eax
cmpl $0x0, %eax
jl 0x88ba4
movq -0x78(%rbp), %rdi
movl -0x5c(%rbp), %edx
movl -0x88(%rbp), %ecx
movl $0x62, %esi
callq 0x63980
movl %eax, -0x64(%rbp)
movq -0x78(%rbp), %rdi
movl -0x60(%rbp), %edx
movl -0x88(%rbp), %r8d
movl $0x41, %esi
xorl %ecx, %ecx
callq 0x639b0
movl %eax, -0x68(%rbp)
movq -0x10(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x18(%rbp), %rdx
callq 0x88450
movq -0x78(%rbp), %rdi
movl -0x68(%rbp), %esi
callq 0x63950
movq -0x10(%rbp), %rdi
movl -0x7c(%rbp), %esi
movl -0x88(%rbp), %edx
callq 0x892e0
jmp 0x88be7
movq -0x18(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x88bcb
movq -0x78(%rbp), %rdi
movl -0x60(%rbp), %edx
movl -0x88(%rbp), %ecx
movl $0x43, %esi
callq 0x63980
movl %eax, -0x64(%rbp)
jmp 0x88be5
movq -0x78(%rbp), %rdi
movl -0x5c(%rbp), %edx
movl -0x88(%rbp), %ecx
movl $0x62, %esi
callq 0x63980
movl %eax, -0x64(%rbp)
jmp 0x88be7
movq -0x78(%rbp), %rdi
movl -0x5c(%rbp), %edx
movl -0x84(%rbp), %ecx
movl $0x61, %esi
callq 0x63980
movq -0x78(%rbp), %rdi
movl -0x60(%rbp), %edx
movl -0x84(%rbp), %ecx
movl -0x88(%rbp), %r8d
movl $0x44, %esi
callq 0x639b0
movq -0x78(%rbp), %rdi
movl $0xb, %esi
callq 0x63ec0
movq -0x78(%rbp), %rdi
movq -0x18(%rbp), %rax
movq (%rax), %rdx
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x16e40
movq -0x78(%rbp), %rdi
movl -0x5c(%rbp), %edx
movl -0x64(%rbp), %ecx
movl $0x9, %esi
callq 0x63980
movq -0x78(%rbp), %rdi
movl -0x5c(%rbp), %edx
movl $0x38, %esi
xorl %ecx, %ecx
callq 0x63980
movq -0x78(%rbp), %rdi
movl -0x60(%rbp), %edx
movl $0x38, %esi
xorl %ecx, %ecx
callq 0x63980
jmp 0x88cb8
movq -0x10(%rbp), %rdi
movl -0x28(%rbp), %esi
movq -0x18(%rbp), %rax
movl 0x3c(%rax), %edx
movq -0x18(%rbp), %rax
movq (%rax), %r8
movl $0x1, %ecx
callq 0x63f00
movq -0x10(%rbp), %rdi
movl -0x58(%rbp), %esi
movq -0x38(%rbp), %rax
movl 0x3c(%rax), %edx
movq -0x38(%rbp), %rax
movq (%rax), %r8
xorl %ecx, %ecx
callq 0x63f00
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x48(%rbp)
je 0x88e0a
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
je 0x88d06
movq -0x48(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x89380
cmpl $0x0, %eax
je 0x88cf6
jmp 0x88d06
jmp 0x88cf8
movq -0x40(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x40(%rbp)
jmp 0x88cdb
movq -0x78(%rbp), %rdi
movl -0x5c(%rbp), %edx
movq -0x40(%rbp), %rax
movl 0x58(%rax), %ecx
movl -0x58(%rbp), %r8d
movl $0x32, %esi
callq 0x639b0
movq -0x10(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x64100
movq -0x78(%rbp), %rdi
movl -0x60(%rbp), %edx
movq -0x48(%rbp), %rax
movl 0x58(%rax), %ecx
movl -0x28(%rbp), %r8d
movl $0x33, %esi
callq 0x639b0
movq -0x10(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x64100
movq -0x78(%rbp), %rdi
movl $0x1, %esi
callq 0x63ec0
movq -0x78(%rbp), %rdi
movl -0x5c(%rbp), %edx
movl $0x67, %esi
xorl %ecx, %ecx
callq 0x63980
movl %eax, -0x64(%rbp)
movq -0x78(%rbp), %rdi
movl -0x5c(%rbp), %edx
movl -0x84(%rbp), %ecx
movl $0x60, %esi
callq 0x63980
movq -0x78(%rbp), %rdi
movl -0x60(%rbp), %edx
movl -0x84(%rbp), %ecx
movl $0x69, %esi
movl $0x1, %r8d
callq 0x639b0
movq -0x78(%rbp), %rdi
movl -0x5c(%rbp), %edx
movl -0x64(%rbp), %ecx
addl $0x1, %ecx
movl $0x9, %esi
callq 0x63980
movq -0x78(%rbp), %rdi
movl -0x64(%rbp), %esi
callq 0x63950
movq -0x78(%rbp), %rdi
movl -0x5c(%rbp), %edx
movl $0x38, %esi
xorl %ecx, %ecx
callq 0x63980
movq -0x78(%rbp), %rdi
movl -0x60(%rbp), %edx
movl $0x38, %esi
xorl %ecx, %ecx
callq 0x63980
movq -0x48(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x48(%rbp)
jmp 0x88cc4
movq -0x78(%rbp), %rdi
movl -0x70(%rbp), %esi
callq 0x63950
movq -0x10(%rbp), %rdi
movl -0x88(%rbp), %esi
callq 0x673a0
movq -0x10(%rbp), %rdi
movl -0x84(%rbp), %esi
callq 0x673a0
cmpl $0x0, -0x6c(%rbp)
je 0x88e74
movq -0x78(%rbp), %rdi
movl $0x16, %esi
xorl %ecx, %ecx
movl %ecx, %edx
callq 0x63980
movq -0x78(%rbp), %rdi
movl -0x6c(%rbp), %esi
callq 0x63950
movq -0x78(%rbp), %rdi
movl -0x60(%rbp), %edx
movl $0x38, %esi
xorl %ecx, %ecx
callq 0x63980
movl $0x0, -0x4(%rbp)
jmp 0x88e7b
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x90, %rsp
popq %rbp
retq
nopw (%rax,%rax)