// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/external/sqlite-3.33.0/sqlite3.c
// Function: sqlite3WalCheckpoint
SQLITE_PRIVATE int sqlite3WalCheckpoint(
  Wal *pWal,                      /* Wal connection */
  sqlite3 *db,                    /* Check this handle's interrupt flag */
  int eMode,                      /* PASSIVE, FULL, RESTART, or TRUNCATE */
  int (*xBusy)(void*),            /* Function to call when busy */
  void *pBusyArg,                 /* Context argument for xBusyHandler */
  int sync_flags,                 /* Flags to sync db file with (or 0) */
  int nBuf,                       /* Size of temporary buffer */
  u8 *zBuf,                       /* Temporary buffer to use */
  int *pnLog,                     /* OUT: Number of frames in WAL */
  int *pnCkpt                     /* OUT: Number of backfilled frames in WAL */
){
  int rc;                         /* Return code */
  int isChanged = 0;              /* True if a new wal-index header is loaded */
  int eMode2 = eMode;             /* Mode to pass to walCheckpoint() */
  int (*xBusy2)(void*) = xBusy;   /* Busy handler for eMode2 */

  assert( pWal->ckptLock==0 );
  assert( pWal->writeLock==0 );

  /* EVIDENCE-OF: R-62920-47450 The busy-handler callback is never invoked
  ** in the SQLITE_CHECKPOINT_PASSIVE mode. */
  assert( eMode!=SQLITE_CHECKPOINT_PASSIVE || xBusy==0 );

  if( pWal->readOnly ) return SQLITE_READONLY;
  WALTRACE(("WAL%p: checkpoint begins\n", pWal));

  /* Enable blocking locks, if possible. If blocking locks are successfully
  ** enabled, set xBusy2=0 so that the busy-handler is never invoked. */
  sqlite3WalDb(pWal, db);
  (void)walEnableBlocking(pWal);

  /* IMPLEMENTATION-OF: R-62028-47212 All calls obtain an exclusive
  ** "checkpoint" lock on the database file.
  ** EVIDENCE-OF: R-10421-19736 If any other process is running a
  ** checkpoint operation at the same time, the lock cannot be obtained and
  ** SQLITE_BUSY is returned.
  ** EVIDENCE-OF: R-53820-33897 Even if there is a busy-handler configured,
  ** it will not be invoked in this case.
  */
  rc = walLockExclusive(pWal, WAL_CKPT_LOCK, 1);
  testcase( rc==SQLITE_BUSY );
  testcase( rc!=SQLITE_OK && xBusy2!=0 );
  if( rc==SQLITE_OK ){
    pWal->ckptLock = 1;

    /* IMPLEMENTATION-OF: R-59782-36818 The SQLITE_CHECKPOINT_FULL, RESTART and
    ** TRUNCATE modes also obtain the exclusive "writer" lock on the database
    ** file.
    **
    ** EVIDENCE-OF: R-60642-04082 If the writer lock cannot be obtained
    ** immediately, and a busy-handler is configured, it is invoked and the
    ** writer lock retried until either the busy-handler returns 0 or the
    ** lock is successfully obtained.
    */
    if( eMode!=SQLITE_CHECKPOINT_PASSIVE ){
      rc = walBusyLock(pWal, xBusy2, pBusyArg, WAL_WRITE_LOCK, 1);
      if( rc==SQLITE_OK ){
        pWal->writeLock = 1;
      }else if( rc==SQLITE_BUSY ){
        eMode2 = SQLITE_CHECKPOINT_PASSIVE;
        xBusy2 = 0;
        rc = SQLITE_OK;
      }
    }
  }


  /* Read the wal-index header. */
  if( rc==SQLITE_OK ){
    walDisableBlocking(pWal);
    rc = walIndexReadHdr(pWal, &isChanged);
    (void)walEnableBlocking(pWal);
    if( isChanged && pWal->pDbFd->pMethods->iVersion>=3 ){
      sqlite3OsUnfetch(pWal->pDbFd, 0, 0);
    }
  }

  /* Copy data from the log to the database file. */
  if( rc==SQLITE_OK ){

    if( pWal->hdr.mxFrame && walPagesize(pWal)!=nBuf ){
      rc = SQLITE_CORRUPT_BKPT;
    }else{
      rc = walCheckpoint(pWal, db, eMode2, xBusy2, pBusyArg, sync_flags, zBuf);
    }

    /* If no error occurred, set the output variables. */
    if( rc==SQLITE_OK || rc==SQLITE_BUSY ){
      if( pnLog ) *pnLog = (int)pWal->hdr.mxFrame;
      if( pnCkpt ) *pnCkpt = (int)(walCkptInfo(pWal)->nBackfill);
    }
  }

  if( isChanged ){
    /* If a new wal-index header was loaded before the checkpoint was
    ** performed, then the pager-cache associated with pWal is now
    ** out of date. So zero the cached wal-index header to ensure that
    ** next time the pager opens a snapshot on this database it knows that
    ** the cache needs to be reset.
    */
    memset(&pWal->hdr, 0, sizeof(WalIndexHdr));
  }

  walDisableBlocking(pWal);
  sqlite3WalDb(pWal, 0);

  /* Release the locks. */
  sqlite3WalEndWriteTransaction(pWal);
  if( pWal->ckptLock ){
    walUnlockExclusive(pWal, WAL_CKPT_LOCK, 1);
    pWal->ckptLock = 0;
  }
  WALTRACE(("WAL%p: checkpoint %s\n", pWal, rc ? "failed" : "ok"));
#ifdef SQLITE_ENABLE_SETLK_TIMEOUT
  if( rc==SQLITE_BUSY_TIMEOUT ) rc = SQLITE_BUSY;
#endif
  return (rc==SQLITE_OK && eMode!=eMode2 ? SQLITE_BUSY : rc);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1a8, %rsp            # imm = 0x1A8
andl $0x0, 0x6c(%rsp)
cmpb $0x0, 0x42(%rdi)
je 0x235272
pushq $0x8
popq %rbp
jmp 0x2353a8
movl %r9d, %r14d
movq %r8, %rbx
movq %rcx, %r15
movl %edx, %ebp
movq %rdi, %r13
movq %rsi, 0x50(%rsp)
pushq $0x1
popq %rdx
movl %edx, %esi
callq 0x231569
movl %eax, %r12d
movl %ebp, %eax
pushq $0x5
popq %rbp
movl %eax, 0x20(%rsp)
movq %rax, 0x28(%rsp)
testl %r12d, %r12d
jne 0x23535a
movb $0x1, 0x41(%r13)
cmpl $0x0, 0x20(%rsp)
je 0x2352ed
pushq $0x1
popq %r8
movq %r13, %rdi
movq %r15, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x235c58
cmpl $0x5, %eax
je 0x235300
movl %eax, %r12d
testl %eax, %eax
jne 0x23534c
movl %r14d, 0xc(%rsp)
movq %rbx, %r14
movb $0x1, 0x40(%r13)
movl 0x20(%rsp), %eax
movq %rax, 0x28(%rsp)
jmp 0x235314
movl %r14d, 0xc(%rsp)
movq %rbx, %r14
movq $0x0, 0x28(%rsp)
jmp 0x235314
movq $0x0, 0x28(%rsp)
movl %r14d, 0xc(%rsp)
movq %rbx, %r14
xorl %r15d, %r15d
leaq 0x6c(%rsp), %rbx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x231aa0
movl %eax, %r12d
cmpl $0x0, (%rbx)
je 0x235342
movq 0x8(%r13), %rdi
movq (%rdi), %rax
cmpl $0x3, (%rax)
jl 0x235342
xorl %esi, %esi
xorl %edx, %edx
callq *0x90(%rax)
movq %r14, %rbx
movl 0xc(%rsp), %r14d
jmp 0x235355
movl 0x20(%rsp), %eax
movq %rax, 0x28(%rsp)
testl %r12d, %r12d
je 0x2353bc
cmpl $0x0, 0x6c(%rsp)
je 0x235373
xorps %xmm0, %xmm0
movups %xmm0, 0x68(%r13)
movups %xmm0, 0x58(%r13)
movups %xmm0, 0x48(%r13)
movq %r13, %rdi
callq 0x2324cf
cmpb $0x0, 0x41(%r13)
movq 0x28(%rsp), %rbx
je 0x235399
pushq $0x1
popq %rdx
movq %r13, %rdi
movl %edx, %esi
callq 0x2315f6
movb $0x0, 0x41(%r13)
testl %r12d, %r12d
cmovnel %r12d, %ebp
cmpl 0x20(%rsp), %ebx
cmovel %r12d, %ebp
movl %ebp, %eax
addq $0x1a8, %rsp            # imm = 0x1A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0x58(%r13), %edx
movzwl 0x56(%r13), %eax
movl %eax, %esi
shll $0x10, %esi
orl %eax, %esi
andl $0x1fe00, %esi          # imm = 0x1FE00
testl %edx, %edx
je 0x2353f1
cmpl 0x1e0(%rsp), %esi
je 0x2353f1
movl $0xf6f6, %edi           # imm = 0xF6F6
callq 0x232547
movl %eax, %r12d
jmp 0x235902
movq 0x30(%r13), %rax
movq (%rax), %rcx
movl 0x60(%rcx), %eax
cmpl %edx, %eax
jae 0x2354b8
movl %esi, 0x4c(%rsp)
movl %r14d, 0xc(%rsp)
movq %rbx, 0x60(%rsp)
movl 0x5c(%r13), %eax
movq %rax, 0x98(%rsp)
xorl %r14d, %r14d
xorl %r12d, %r12d
movq %rcx, 0x40(%rsp)
cmpq $0x4, %r14
je 0x2354c3
movl 0x68(%rcx,%r14,4), %ebp
cmpl %ebp, %edx
jbe 0x23549f
movl %edx, %r12d
movq %r15, %rsi
leaq 0x4(%r14), %r15
movq %r13, %rdi
movq %rsi, %rbx
movq 0x60(%rsp), %rdx
movl %r15d, %ecx
pushq $0x1
popq %r8
callq 0x235c58
cmpl $0x5, %eax
je 0x2354a3
testl %eax, %eax
jne 0x23580d
movq %r14, %rax
negq %rax
movl $0x0, %eax
sbbl %eax, %eax
orl %r12d, %eax
movq 0x40(%rsp), %rbp
movl %eax, 0x68(%rbp,%r14,4)
movq %r13, %rdi
movl %r15d, %esi
pushq $0x1
popq %rdx
callq 0x2315f6
movq %rbp, %rcx
movl %r12d, %ebp
xorl %r12d, %r12d
movq %rbx, %r15
jmp 0x2354ae
movl %edx, %ebp
jmp 0x2354ae
xorl %r15d, %r15d
movq 0x40(%rsp), %rcx
movl %eax, %r12d
incq %r14
movl %ebp, %edx
jmp 0x235428
xorl %r14d, %r14d
xorl %r12d, %r12d
jmp 0x23586e
movl 0x60(%rcx), %eax
xorl %esi, %esi
cmpl %edx, %eax
jae 0x2357c7
movl %edx, 0x10(%rsp)
movq %r15, 0x80(%rsp)
movl 0x60(%rcx), %eax
movq %rax, 0x18(%rsp)
movl 0x58(%r13), %r12d
leal 0x1000(%r12), %eax
movabsq $0xffffffff021, %r15    # imm = 0xFFFFFFFF021
addq %rax, %r15
shrq $0xc, %r15
movq %r15, %r14
shlq $0x20, %r14
movq %r14, %rax
sarq $0x1b, %rax
leaq (%rax,%r12,2), %rbx
addq $0x28, %rbx
movq %rbx, %rdi
callq 0x21f7df
testq %rax, %rax
je 0x23581b
movq %rax, %rbp
incl %r15d
movq %rax, %rdi
xorl %esi, %esi
movq %rbx, %rdx
xorl %ebx, %ebx
callq 0x17380
movl %r15d, 0x4(%rbp)
movl $0x1000, %edi           # imm = 0x1000
cmpl %edi, %r12d
movq %r12, 0xb8(%rsp)
cmovbl %r12d, %edi
addl %edi, %edi
callq 0x21f7df
movq %rax, %r15
testq %rax, %rax
pushq $0x7
popq %rax
cmovnel %ebx, %eax
movl %eax, 0x14(%rsp)
movq 0x18(%rsp), %rax
addl $0x1001, %eax           # imm = 0x1001
movq %rbp, 0x38(%rsp)
addq $0x8, %rbp
movq %rbp, 0x58(%rsp)
shlq $0x14, %rax
movabsq $-0xfdf00000, %rbp      # imm = 0xFFFFFFFF02100000
addq %rax, %rbp
sarq $0x20, %rbp
sarq $0x20, %r14
leaq 0x88(%rsp), %rbx
leaq 0x24(%rsp), %r12
movq %r13, 0x70(%rsp)
movq %r14, 0xc0(%rsp)
cmpl $0x0, 0x14(%rsp)
jne 0x2357d7
cmpq %r14, %rbp
jg 0x2357d7
movq %r13, %rdi
movl %ebp, %esi
leaq 0xa0(%rsp), %rdx
callq 0x2324fa
movl %eax, 0x14(%rsp)
testl %eax, %eax
jne 0x2357bf
movq 0xa8(%rsp), %r13
addq $0x4, %r13
movq %r13, 0xa8(%rsp)
cmpq %r14, %rbp
jne 0x235617
movl 0xb0(%rsp), %esi
movq 0xb8(%rsp), %rax
movl %eax, %edx
subl %esi, %edx
jmp 0x23562d
movq 0xa0(%rsp), %rdx
subq %r13, %rdx
shrq $0x2, %rdx
movl 0xb0(%rsp), %esi
movq 0x38(%rsp), %rax
movq 0x58(%rsp), %rcx
movslq 0x4(%rax), %rax
shlq $0x5, %rax
addq %rcx, %rax
movl %esi, %ecx
leaq (%rax,%rcx,2), %rax
movq %rax, 0x30(%rsp)
incl %esi
movl %esi, 0xb0(%rsp)
testl %edx, %edx
movl $0x0, %eax
cmovgl %edx, %eax
movq %rax, 0x18(%rsp)
xorl %eax, %eax
cmpq %rax, 0x18(%rsp)
je 0x23567c
movq 0x30(%rsp), %rcx
movw %ax, (%rcx,%rax,2)
incq %rax
jmp 0x235667
movl %esi, 0x94(%rsp)
movq %rdx, 0x78(%rsp)
movq %rbp, 0xc8(%rsp)
andl $0x0, 0x24(%rsp)
andq $0x0, 0x88(%rsp)
xorl %ebp, %ebp
movl $0xd0, %edx
leaq 0xd0(%rsp), %rdi
xorl %esi, %esi
callq 0x17380
xorl %r14d, %r14d
cmpq 0x18(%rsp), %rbp
je 0x235730
movl $0x1, 0x24(%rsp)
movq 0x30(%rsp), %rax
leaq (%rax,%rbp,2), %rax
movq %rax, 0x88(%rsp)
xorl %r14d, %r14d
btl %r14d, %ebp
movl %r14d, %eax
jae 0x23570c
shlq $0x4, %rax
movq 0xd8(%rsp,%rax), %rsi
movl 0xd0(%rsp,%rax), %edx
movq %r13, %rdi
movq %rbx, %rcx
movq %r12, %r8
movq %r15, %r9
callq 0x235ca7
incl %r14d
jmp 0x2356da
movq 0x88(%rsp), %rcx
shlq $0x4, %rax
movq %rcx, 0xd8(%rsp,%rax)
movl 0x24(%rsp), %ecx
movl %ecx, 0xd0(%rsp,%rax)
incq %rbp
jmp 0x2356b7
incl %r14d
movq %r14, %rbp
shlq $0x4, %rbp
leaq 0xd8(%rsp), %rax
addq %rax, %rbp
movq 0x78(%rsp), %rax
cmpl $0xc, %r14d
ja 0x23577c
btl %r14d, %eax
jae 0x235773
movq (%rbp), %rsi
movl -0x8(%rbp), %edx
movq %r13, %rdi
movq %rbx, %rcx
movq %r12, %r8
movq %r15, %r9
callq 0x235ca7
movq 0x78(%rsp), %rax
addq $0x10, %rbp
incl %r14d
jmp 0x23574a
movl 0x24(%rsp), %eax
movq 0xc8(%rsp), %rbp
movq %rbp, %rcx
shlq $0x5, %rcx
movq 0x58(%rsp), %rdx
movl 0x94(%rsp), %esi
movl %esi, 0x1c(%rdx,%rcx)
movl %eax, 0x18(%rdx,%rcx)
movq 0x30(%rsp), %rax
movq %rax, 0x8(%rdx,%rcx)
movq %r13, 0x10(%rdx,%rcx)
movq 0x70(%rsp), %r13
movq 0xc0(%rsp), %r14
incq %rbp
jmp 0x2355b7
xorl %r14d, %r14d
pushq $0x5
popq %rbp
movq 0x60(%rsp), %rbx
jmp 0x235863
movq %r15, %rdi
callq 0x21f7f9
movl 0x14(%rsp), %r12d
testl %r12d, %r12d
pushq $0x5
popq %rbp
je 0x23582a
movq 0x38(%rsp), %rdi
callq 0x21f7f9
xorl %r14d, %r14d
movq 0x60(%rsp), %rbx
movq 0x80(%rsp), %r15
movq 0x40(%rsp), %rcx
jmp 0x235861
xorl %r14d, %r14d
pushq $0x5
popq %rbp
movl %eax, %r12d
jmp 0x2358fa
pushq $0x7
popq %r12
xorl %r14d, %r14d
pushq $0x5
popq %rbp
jmp 0x2358fa
pushq $0x3
popq %rcx
pushq $0x1
popq %r8
movq %r13, %rdi
movq 0x80(%rsp), %r15
movq %r15, %rsi
movq 0x60(%rsp), %rbx
movq %rbx, %rdx
callq 0x235c58
testl %eax, %eax
je 0x235946
movl %eax, %r12d
movq 0x40(%rsp), %rcx
movq 0x38(%rsp), %r14
xorl %esi, %esi
cmpl $0x5, %r12d
cmovnel %r12d, %esi
movl %esi, %r12d
cmpl $0x0, 0x28(%rsp)
je 0x2358fa
testl %r12d, %r12d
jne 0x2358fa
movl 0x60(%rcx), %eax
cmpl 0x58(%r13), %eax
jae 0x23588c
movl %ebp, %r12d
jmp 0x2358fa
xorl %r12d, %r12d
cmpl $0x2, 0x28(%rsp)
jl 0x2358fa
pushq $0x4
popq %r12
leaq 0xd0(%rsp), %rsi
movl %r12d, %edi
callq 0x221618
movq %r13, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movl %r12d, %ecx
movl %r12d, %r8d
callq 0x235c58
movl %eax, %r12d
testl %eax, %eax
jne 0x2358fa
xorl %r12d, %r12d
cmpl $0x3, 0x28(%rsp)
jne 0x2358ed
movl 0xd0(%rsp), %esi
movq %r13, %rdi
callq 0x231582
movq 0x10(%r13), %rdi
movq (%rdi), %rax
xorl %esi, %esi
callq *0x20(%rax)
movl %eax, %r12d
pushq $0x4
popq %rdx
movq %r13, %rdi
movl %edx, %esi
callq 0x2315f6
movq %r14, %rdi
callq 0x21f7f9
cmpl $0x5, %r12d
je 0x235911
testl %r12d, %r12d
jne 0x23535a
movq 0x1f8(%rsp), %rax
movq 0x1f0(%rsp), %rcx
testq %rcx, %rcx
je 0x23592c
movl 0x58(%r13), %edx
movl %edx, (%rcx)
testq %rax, %rax
je 0x23535a
movq 0x30(%r13), %rcx
movq (%rcx), %rcx
movl 0x60(%rcx), %ecx
movl %ecx, (%rax)
jmp 0x23535a
movq 0x40(%rsp), %rax
movl 0x60(%rax), %r15d
movl 0x10(%rsp), %ecx
movl %ecx, 0x80(%rax)
movl 0xc(%rsp), %r14d
shrl $0x2, %r14d
movl 0x4c(%rsp), %eax
movq %rax, 0x30(%rsp)
andl $0x3, %r14d
movl %r14d, 0xc(%rsp)
je 0x235995
movq 0x10(%r13), %rdi
movq (%rdi), %rax
movl %r14d, %esi
callq *0x28(%rax)
testl %eax, %eax
je 0x235995
movl %eax, 0x14(%rsp)
movq 0x50(%rsp), %rbp
jmp 0x235a3c
movq 0x98(%rsp), %rax
imulq 0x30(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq 0x8(%r13), %rdi
movq (%rdi), %rax
pushq $0x27
popq %rsi
xorl %edx, %edx
callq *0x50(%rax)
movq 0x8(%r13), %rdi
movq (%rdi), %rax
leaq 0xa0(%rsp), %rsi
callq *0x30(%rax)
testl %eax, %eax
movq 0x50(%rsp), %rbp
jne 0x235a38
movq 0xa0(%rsp), %rax
movq 0xd0(%rsp), %rcx
cmpq %rcx, %rax
jge 0x235a0e
movl 0x58(%r13), %edx
imulq 0x30(%rsp), %rdx
addq %rdx, %rax
addq $0x10000, %rax          # imm = 0x10000
cmpq %rcx, %rax
jge 0x235a12
movl $0xefec, %edi           # imm = 0xEFEC
callq 0x232547
jmp 0x235a33
xorl %eax, %eax
jmp 0x235a38
movq 0x70(%rsp), %rax
movq 0x8(%rax), %rdi
movq (%rdi), %rax
testq %rax, %rax
je 0x235a31
pushq $0x5
popq %rsi
leaq 0xd0(%rsp), %rdx
callq *0x50(%rax)
xorl %eax, %eax
movq 0x50(%rsp), %rbp
movl %eax, 0x14(%rsp)
movl 0x4c(%rsp), %eax
orl $0x18, %eax
movq %rax, 0x78(%rsp)
movq $0x0, 0x18(%rsp)
pushq $-0x1
popq %r13
movl 0x10(%rsp), %ecx
movq 0x58(%rsp), %r14
movl 0x14(%rsp), %r12d
testl %r12d, %r12d
jne 0x235bb6
movq 0x38(%rsp), %rcx
movl (%rcx), %eax
movl 0x4(%rcx), %ecx
movl %r13d, %ebx
testl %ecx, %ecx
jle 0x235ad1
decq %rcx
movq %rcx, %rdi
shlq $0x5, %rdi
leaq (%r14,%rdi), %rdx
movslq 0x18(%r14,%rdi), %rsi
movslq (%r14,%rdi), %rdi
leal 0x1(%rdi), %r8d
cmpq %rsi, %rdi
jge 0x235a79
movq 0x8(%rdx), %r9
movq 0x10(%rdx), %r11
movzwl (%r9,%rdi,2), %r10d
movl (%r11,%r10,4), %r9d
cmpl %eax, %r9d
ja 0x235abe
incq %rdi
movl %r8d, (%rdx)
incl %r8d
jmp 0x235a98
cmpl %ebx, %r9d
jae 0x235a79
addl 0x1c(%rdx), %r10d
movq %r10, 0x18(%rsp)
movl %r9d, %ebx
jmp 0x235a79
movq 0x38(%rsp), %rax
movl %ebx, (%rax)
cmpl $-0x1, %ebx
je 0x235b97
movl 0x168(%rbp), %eax
testl %eax, %eax
movl 0x10(%rsp), %ecx
jne 0x235b9c
movl $0x0, 0x14(%rsp)
cmpl %r15d, 0x18(%rsp)
jbe 0x235a5e
cmpl %ecx, 0x18(%rsp)
ja 0x235a5e
cmpl 0x98(%rsp), %ebx
ja 0x235a5e
movl %r13d, %r12d
movl %r15d, %r13d
movq 0x18(%rsp), %rax
leal -0x1(%rax), %ecx
imulq 0x78(%rsp), %rcx
addq $0x38, %rcx
movq 0x70(%rsp), %rbp
movq 0x10(%rbp), %rdi
movq (%rdi), %rax
movq 0x1e8(%rsp), %r14
movq %r14, %rsi
movl 0x4c(%rsp), %r15d
movl %r15d, %edx
callq *0x10(%rax)
testl %eax, %eax
jne 0x235baf
decl %ebx
imulq 0x30(%rsp), %rbx
movq 0x8(%rbp), %rdi
movq (%rdi), %rax
movq %r14, %rsi
movl %r15d, %edx
movq %rbx, %rcx
callq *0x18(%rax)
testl %eax, %eax
movq 0x50(%rsp), %rbp
movl 0x10(%rsp), %ecx
movq 0x58(%rsp), %r14
movl %r13d, %r15d
movl %r12d, %r13d
je 0x235a5e
movl %eax, %r12d
jmp 0x235bb6
xorl %r12d, %r12d
jmp 0x235bb2
xorl %eax, %eax
cmpb $0x0, 0x61(%rbp)
sete %al
leal 0x7(,%rax,2), %r12d
jmp 0x235bb6
movl %eax, %r12d
movl 0x10(%rsp), %ecx
movq 0x70(%rsp), %r13
movq 0x8(%r13), %rdi
movq (%rdi), %rax
testq %rax, %rax
je 0x235bd3
pushq $0x25
popq %rsi
xorl %edx, %edx
callq *0x50(%rax)
movl 0x10(%rsp), %ecx
testl %r12d, %r12d
pushq $0x5
popq %rbp
movq 0x60(%rsp), %rbx
movq 0x80(%rsp), %r15
movq 0x38(%rsp), %r14
jne 0x235c45
movq 0x30(%r13), %rax
movq (%rax), %rax
cmpl 0x10(%rax), %ecx
jne 0x235c3a
movl 0x5c(%r13), %eax
movq 0x30(%rsp), %rsi
imulq %rax, %rsi
movq 0x8(%r13), %rdi
movq (%rdi), %rax
callq *0x20(%rax)
testl %eax, %eax
je 0x235c19
movl %eax, %r12d
jmp 0x235c45
cmpl $0x0, 0xc(%rsp)
movl 0x10(%rsp), %ecx
je 0x235c3a
movq 0x8(%r13), %rdi
movq (%rdi), %rax
movl 0xc(%rsp), %esi
callq *0x28(%rax)
movl 0x10(%rsp), %ecx
testl %eax, %eax
jne 0x235c14
movq 0x40(%rsp), %rax
movl %ecx, 0x60(%rax)
xorl %r12d, %r12d
pushq $0x3
popq %rsi
pushq $0x1
popq %rdx
movq %r13, %rdi
callq 0x2315f6
jmp 0x235806