// File: /workspace/github_c_makefile_star2_O2/ukontainer[P]sqlite-bench/sqlite3.c
// Function: sqlite3_test_control
SQLITE_API int sqlite3_test_control(int op, ...){
  int rc = 0;
#ifdef SQLITE_UNTESTABLE
  UNUSED_PARAMETER(op);
#else
  va_list ap;
  va_start(ap, op);
  switch( op ){

    /*
    ** Save the current state of the PRNG.
    */
    case SQLITE_TESTCTRL_PRNG_SAVE: {
      sqlite3PrngSaveState();
      break;
    }

    /*
    ** Restore the state of the PRNG to the last state saved using
    ** PRNG_SAVE.  If PRNG_SAVE has never before been called, then
    ** this verb acts like PRNG_RESET.
    */
    case SQLITE_TESTCTRL_PRNG_RESTORE: {
      sqlite3PrngRestoreState();
      break;
    }

    /*
    ** Reset the PRNG back to its uninitialized state.  The next call
    ** to sqlite3_randomness() will reseed the PRNG using a single call
    ** to the xRandomness method of the default VFS.
    */
    case SQLITE_TESTCTRL_PRNG_RESET: {
      sqlite3_randomness(0,0);
      break;
    }

    /*
    **  sqlite3_test_control(BITVEC_TEST, size, program)
    **
    ** Run a test against a Bitvec object of size.  The program argument
    ** is an array of integers that defines the test.  Return -1 on a
    ** memory allocation error, 0 on success, or non-zero for an error.
    ** See the sqlite3BitvecBuiltinTest() for additional information.
    */
    case SQLITE_TESTCTRL_BITVEC_TEST: {
      int sz = va_arg(ap, int);
      int *aProg = va_arg(ap, int*);
      rc = sqlite3BitvecBuiltinTest(sz, aProg);
      break;
    }

    /*
    **  sqlite3_test_control(FAULT_INSTALL, xCallback)
    **
    ** Arrange to invoke xCallback() whenever sqlite3FaultSim() is called,
    ** if xCallback is not NULL.
    **
    ** As a test of the fault simulator mechanism itself, sqlite3FaultSim(0)
    ** is called immediately after installing the new callback and the return
    ** value from sqlite3FaultSim(0) becomes the return from
    ** sqlite3_test_control().
    */
    case SQLITE_TESTCTRL_FAULT_INSTALL: {
      /* MSVC is picky about pulling func ptrs from va lists.
      ** http://support.microsoft.com/kb/47961
      ** sqlite3GlobalConfig.xTestCallback = va_arg(ap, int(*)(int));
      */
      typedef int(*TESTCALLBACKFUNC_t)(int);
      sqlite3GlobalConfig.xTestCallback = va_arg(ap, TESTCALLBACKFUNC_t);
      rc = sqlite3FaultSim(0);
      break;
    }

    /*
    **  sqlite3_test_control(BENIGN_MALLOC_HOOKS, xBegin, xEnd)
    **
    ** Register hooks to call to indicate which malloc() failures 
    ** are benign.
    */
    case SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS: {
      typedef void (*void_function)(void);
      void_function xBenignBegin;
      void_function xBenignEnd;
      xBenignBegin = va_arg(ap, void_function);
      xBenignEnd = va_arg(ap, void_function);
      sqlite3BenignMallocHooks(xBenignBegin, xBenignEnd);
      break;
    }

    /*
    **  sqlite3_test_control(SQLITE_TESTCTRL_PENDING_BYTE, unsigned int X)
    **
    ** Set the PENDING byte to the value in the argument, if X>0.
    ** Make no changes if X==0.  Return the value of the pending byte
    ** as it existing before this routine was called.
    **
    ** IMPORTANT:  Changing the PENDING byte from 0x40000000 results in
    ** an incompatible database file format.  Changing the PENDING byte
    ** while any database connection is open results in undefined and
    ** deleterious behavior.
    */
    case SQLITE_TESTCTRL_PENDING_BYTE: {
      rc = PENDING_BYTE;
#ifndef SQLITE_OMIT_WSD
      {
        unsigned int newVal = va_arg(ap, unsigned int);
        if( newVal ) sqlite3PendingByte = newVal;
      }
#endif
      break;
    }

    /*
    **  sqlite3_test_control(SQLITE_TESTCTRL_ASSERT, int X)
    **
    ** This action provides a run-time test to see whether or not
    ** assert() was enabled at compile-time.  If X is true and assert()
    ** is enabled, then the return value is true.  If X is true and
    ** assert() is disabled, then the return value is zero.  If X is
    ** false and assert() is enabled, then the assertion fires and the
    ** process aborts.  If X is false and assert() is disabled, then the
    ** return value is zero.
    */
    case SQLITE_TESTCTRL_ASSERT: {
      volatile int x = 0;
      assert( /*side-effects-ok*/ (x = va_arg(ap,int))!=0 );
      rc = x;
      break;
    }


    /*
    **  sqlite3_test_control(SQLITE_TESTCTRL_ALWAYS, int X)
    **
    ** This action provides a run-time test to see how the ALWAYS and
    ** NEVER macros were defined at compile-time.
    **
    ** The return value is ALWAYS(X) if X is true, or 0 if X is false.
    **
    ** The recommended test is X==2.  If the return value is 2, that means
    ** ALWAYS() and NEVER() are both no-op pass-through macros, which is the
    ** default setting.  If the return value is 1, then ALWAYS() is either
    ** hard-coded to true or else it asserts if its argument is false.
    ** The first behavior (hard-coded to true) is the case if
    ** SQLITE_TESTCTRL_ASSERT shows that assert() is disabled and the second
    ** behavior (assert if the argument to ALWAYS() is false) is the case if
    ** SQLITE_TESTCTRL_ASSERT shows that assert() is enabled.
    **
    ** The run-time test procedure might look something like this:
    **
    **    if( sqlite3_test_control(SQLITE_TESTCTRL_ALWAYS, 2)==2 ){
    **      // ALWAYS() and NEVER() are no-op pass-through macros
    **    }else if( sqlite3_test_control(SQLITE_TESTCTRL_ASSERT, 1) ){
    **      // ALWAYS(x) asserts that x is true. NEVER(x) asserts x is false.
    **    }else{
    **      // ALWAYS(x) is a constant 1.  NEVER(x) is a constant 0.
    **    }
    */
    case SQLITE_TESTCTRL_ALWAYS: {
      int x = va_arg(ap,int);
      rc = x ? ALWAYS(x) : 0;
      break;
    }

    /*
    **   sqlite3_test_control(SQLITE_TESTCTRL_BYTEORDER);
    **
    ** The integer returned reveals the byte-order of the computer on which
    ** SQLite is running:
    **
    **       1     big-endian,    determined at run-time
    **      10     little-endian, determined at run-time
    **  432101     big-endian,    determined at compile-time
    **  123410     little-endian, determined at compile-time
    */ 
    case SQLITE_TESTCTRL_BYTEORDER: {
      rc = SQLITE_BYTEORDER*100 + SQLITE_LITTLEENDIAN*10 + SQLITE_BIGENDIAN;
      break;
    }

    /*   sqlite3_test_control(SQLITE_TESTCTRL_RESERVE, sqlite3 *db, int N)
    **
    ** Set the nReserve size to N for the main database on the database
    ** connection db.
    */
    case SQLITE_TESTCTRL_RESERVE: {
      sqlite3 *db = va_arg(ap, sqlite3*);
      int x = va_arg(ap,int);
      sqlite3_mutex_enter(db->mutex);
      sqlite3BtreeSetPageSize(db->aDb[0].pBt, 0, x, 0);
      sqlite3_mutex_leave(db->mutex);
      break;
    }

    /*  sqlite3_test_control(SQLITE_TESTCTRL_OPTIMIZATIONS, sqlite3 *db, int N)
    **
    ** Enable or disable various optimizations for testing purposes.  The 
    ** argument N is a bitmask of optimizations to be disabled.  For normal
    ** operation N should be 0.  The idea is that a test program (like the
    ** SQL Logic Test or SLT test module) can run the same SQL multiple times
    ** with various optimizations disabled to verify that the same answer
    ** is obtained in every case.
    */
    case SQLITE_TESTCTRL_OPTIMIZATIONS: {
      sqlite3 *db = va_arg(ap, sqlite3*);
      db->dbOptFlags = (u16)(va_arg(ap, int) & 0xffff);
      break;
    }

    /*   sqlite3_test_control(SQLITE_TESTCTRL_LOCALTIME_FAULT, int onoff);
    **
    ** If parameter onoff is non-zero, configure the wrappers so that all
    ** subsequent calls to localtime() and variants fail. If onoff is zero,
    ** undo this setting.
    */
    case SQLITE_TESTCTRL_LOCALTIME_FAULT: {
      sqlite3GlobalConfig.bLocaltimeFault = va_arg(ap, int);
      break;
    }

    /*   sqlite3_test_control(SQLITE_TESTCTRL_NEVER_CORRUPT, int);
    **
    ** Set or clear a flag that indicates that the database file is always well-
    ** formed and never corrupt.  This flag is clear by default, indicating that
    ** database files might have arbitrary corruption.  Setting the flag during
    ** testing causes certain assert() statements in the code to be activated
    ** that demonstrat invariants on well-formed database files.
    */
    case SQLITE_TESTCTRL_NEVER_CORRUPT: {
      sqlite3GlobalConfig.neverCorrupt = va_arg(ap, int);
      break;
    }

    /* Set the threshold at which OP_Once counters reset back to zero.
    ** By default this is 0x7ffffffe (over 2 billion), but that value is
    ** too big to test in a reasonable amount of time, so this control is
    ** provided to set a small and easily reachable reset value.
    */
    case SQLITE_TESTCTRL_ONCE_RESET_THRESHOLD: {
      sqlite3GlobalConfig.iOnceResetThreshold = va_arg(ap, int);
      break;
    }

    /*   sqlite3_test_control(SQLITE_TESTCTRL_VDBE_COVERAGE, xCallback, ptr);
    **
    ** Set the VDBE coverage callback function to xCallback with context 
    ** pointer ptr.
    */
    case SQLITE_TESTCTRL_VDBE_COVERAGE: {
#ifdef SQLITE_VDBE_COVERAGE
      typedef void (*branch_callback)(void*,unsigned int,
                                      unsigned char,unsigned char);
      sqlite3GlobalConfig.xVdbeBranch = va_arg(ap,branch_callback);
      sqlite3GlobalConfig.pVdbeBranchArg = va_arg(ap,void*);
#endif
      break;
    }

    /*   sqlite3_test_control(SQLITE_TESTCTRL_SORTER_MMAP, db, nMax); */
    case SQLITE_TESTCTRL_SORTER_MMAP: {
      sqlite3 *db = va_arg(ap, sqlite3*);
      db->nMaxSorterMmap = va_arg(ap, int);
      break;
    }

    /*   sqlite3_test_control(SQLITE_TESTCTRL_ISINIT);
    **
    ** Return SQLITE_OK if SQLite has been initialized and SQLITE_ERROR if
    ** not.
    */
    case SQLITE_TESTCTRL_ISINIT: {
      if( sqlite3GlobalConfig.isInit==0 ) rc = SQLITE_ERROR;
      break;
    }

    /*  sqlite3_test_control(SQLITE_TESTCTRL_IMPOSTER, db, dbName, onOff, tnum);
    **
    ** This test control is used to create imposter tables.  "db" is a pointer
    ** to the database connection.  dbName is the database name (ex: "main" or
    ** "temp") which will receive the imposter.  "onOff" turns imposter mode on
    ** or off.  "tnum" is the root page of the b-tree to which the imposter
    ** table should connect.
    **
    ** Enable imposter mode only when the schema has already been parsed.  Then
    ** run a single CREATE TABLE statement to construct the imposter table in
    ** the parsed schema.  Then turn imposter mode back off again.
    **
    ** If onOff==0 and tnum>0 then reset the schema for all databases, causing
    ** the schema to be reparsed the next time it is needed.  This has the
    ** effect of erasing all imposter tables.
    */
    case SQLITE_TESTCTRL_IMPOSTER: {
      sqlite3 *db = va_arg(ap, sqlite3*);
      sqlite3_mutex_enter(db->mutex);
      db->init.iDb = sqlite3FindDbName(db, va_arg(ap,const char*));
      db->init.busy = db->init.imposterTable = va_arg(ap,int);
      db->init.newTnum = va_arg(ap,int);
      if( db->init.busy==0 && db->init.newTnum>0 ){
        sqlite3ResetAllSchemasOfConnection(db);
      }
      sqlite3_mutex_leave(db->mutex);
      break;
    }

#if defined(YYCOVERAGE)
    /*  sqlite3_test_control(SQLITE_TESTCTRL_PARSER_COVERAGE, FILE *out)
    **
    ** This test control (only available when SQLite is compiled with
    ** -DYYCOVERAGE) writes a report onto "out" that shows all
    ** state/lookahead combinations in the parser state machine
    ** which are never exercised.  If any state is missed, make the
    ** return code SQLITE_ERROR.
    */
    case SQLITE_TESTCTRL_PARSER_COVERAGE: {
      FILE *out = va_arg(ap, FILE*);
      if( sqlite3ParserCoverage(out) ) rc = SQLITE_ERROR;
      break;
    }
#endif /* defined(YYCOVERAGE) */
  }
  va_end(ap);
#endif /* SQLITE_UNTESTABLE */
  return rc;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
leaq 0x40(%rsp), %r10
movq %rsi, 0x8(%r10)
movq %rdx, 0x10(%r10)
movq %rcx, 0x18(%r10)
movq %r8, 0x20(%r10)
movq %r9, 0x28(%r10)
testb %al, %al
je 0x4123f4
movaps %xmm0, 0x70(%rsp)
movaps %xmm1, 0x80(%rsp)
movaps %xmm2, 0x90(%rsp)
movaps %xmm3, 0xa0(%rsp)
movaps %xmm4, 0xb0(%rsp)
movaps %xmm5, 0xc0(%rsp)
movaps %xmm6, 0xd0(%rsp)
movaps %xmm7, 0xe0(%rsp)
movq %r10, 0x10(%rsp)
leaq 0x130(%rsp), %rax
movq %rax, 0x8(%rsp)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, (%rsp)
xorl %r12d, %r12d
addl $-0x5, %edi
cmpl $0x14, %edi
ja 0x412b33
leaq 0x126f3e(%rip), %rax    # 0x539368
movslq (%rax,%rdi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x1859ea(%rip), %rdi    # 0x597e24
leaq 0x1854ff(%rip), %rsi    # 0x597940
jmp 0x4124ed
movl (%rsp), %ecx
cmpq $0x28, %rcx
ja 0x4126a5
movq %rcx, %rax
addq 0x10(%rsp), %rax
addl $0x8, %ecx
movl %ecx, (%rsp)
jmp 0x4126b3
movl (%rsp), %edx
cmpq $0x29, %rdx
jae 0x4126c0
movq 0x10(%rsp), %rax
movq %rdx, %rcx
addq $0x8, %rcx
movl %ecx, (%rsp)
movq (%rax,%rdx), %rax
cmpl $0x20, %edx
ja 0x4126d1
addq 0x10(%rsp), %rcx
addl $0x10, %edx
movl %edx, (%rsp)
jmp 0x4126df
movl (%rsp), %ecx
cmpq $0x28, %rcx
ja 0x4126eb
movq %rcx, %rax
addq 0x10(%rsp), %rax
addl $0x8, %ecx
movl %ecx, (%rsp)
jmp 0x4126f9
movl (%rsp), %ecx
cmpq $0x28, %rcx
ja 0x412718
movq %rcx, %rax
addq 0x10(%rsp), %rax
addl $0x8, %ecx
movl %ecx, (%rsp)
jmp 0x412726
leaq 0x18545a(%rip), %rdi    # 0x597940
leaq 0x185937(%rip), %rsi    # 0x597e24
movl $0x103, %edx            # imm = 0x103
callq 0x401048
jmp 0x412b33
movl (%rsp), %edx
cmpq $0x29, %rdx
jae 0x412733
movq 0x10(%rsp), %rax
movq %rdx, %rcx
addq $0x8, %rcx
movl %ecx, (%rsp)
movq (%rax,%rdx), %rax
cmpl $0x20, %edx
ja 0x412744
addq 0x10(%rsp), %rcx
addl $0x10, %edx
movl %edx, (%rsp)
jmp 0x412752
movl (%rsp), %ecx
cmpq $0x28, %rcx
ja 0x412768
movq %rcx, %rax
addq 0x10(%rsp), %rax
addl $0x8, %ecx
movl %ecx, (%rsp)
jmp 0x412776
movl (%rsp), %ecx
cmpq $0x29, %rcx
jae 0x412783
movq 0x10(%rsp), %rdx
movq %rcx, %rax
addq $0x8, %rax
movl %eax, (%rsp)
movl (%rdx,%rcx), %edx
movq %rdx, 0x38(%rsp)
cmpl $0x20, %ecx
ja 0x412798
addq 0x10(%rsp), %rax
addl $0x10, %ecx
movl %ecx, (%rsp)
jmp 0x4127a6
xorl %r12d, %r12d
xorl %edi, %edi
xorl %esi, %esi
callq 0x406b14
jmp 0x412b33
movl (%rsp), %ecx
cmpq $0x28, %rcx
ja 0x4128fc
movq %rcx, %rax
addq 0x10(%rsp), %rax
addl $0x8, %ecx
movl %ecx, (%rsp)
jmp 0x41290a
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %r12d
jmp 0x412b33
movl $0x1e212, %r12d         # imm = 0x1E212
jmp 0x412b33
xorl %r12d, %r12d
cmpl $0x0, 0x180caa(%rip)    # 0x593294
sete %r12b
jmp 0x412b33
movl (%rsp), %ecx
cmpq $0x29, %rcx
jae 0x412926
movq 0x10(%rsp), %rdx
movq %rcx, %rax
addq $0x8, %rax
movl %eax, (%rsp)
movq (%rdx,%rcx), %r14
cmpl $0x20, %ecx
ja 0x412937
addq 0x10(%rsp), %rax
addl $0x10, %ecx
movl %ecx, (%rsp)
jmp 0x412945
movl (%rsp), %ecx
cmpq $0x28, %rcx
ja 0x412971
movq %rcx, %rax
addq 0x10(%rsp), %rax
addl $0x8, %ecx
movl %ecx, (%rsp)
jmp 0x41297f
movl (%rsp), %ebx
cmpq $0x28, %rbx
ja 0x412987
movq %rbx, %rax
addq 0x10(%rsp), %rax
addl $0x8, %ebx
movl %ebx, (%rsp)
jmp 0x412995
movl (%rsp), %edx
cmpq $0x29, %rdx
jae 0x412a74
movq 0x10(%rsp), %rax
movq %rdx, %rcx
addq $0x8, %rcx
movl %ecx, (%rsp)
movq (%rax,%rdx), %rax
cmpl $0x20, %edx
ja 0x412a85
addq 0x10(%rsp), %rcx
addl $0x10, %edx
movl %edx, (%rsp)
jmp 0x412a93
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movl (%rax), %eax
movl %eax, 0x180a91(%rip)    # 0x59314c
jmp 0x412b33
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq (%rax), %rax
movq 0x8(%rsp), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rsp)
movzwl (%rcx), %ecx
movw %cx, 0x5c(%rax)
jmp 0x412b33
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq (%rax), %rax
movq %rax, 0x180bc5(%rip)    # 0x5932c8
testq %rax, %rax
je 0x412b33
xorl %edi, %edi
callq *%rax
movl %eax, %r12d
jmp 0x412b33
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movl (%rax), %eax
movl %eax, 0x180ba6(%rip)    # 0x5932d4
jmp 0x412b33
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq (%rax), %rax
movq 0x8(%rsp), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rsp)
movq (%rcx), %rcx
movq %rax, 0x18565c(%rip)    # 0x597db8
movq %rcx, 0x18565d(%rip)    # 0x597dc0
jmp 0x412b33
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movl (%rax), %eax
movl %eax, 0x180b52(%rip)    # 0x5932d0
jmp 0x412b33
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movl (%rax), %eax
movq %rax, 0x38(%rsp)
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq (%rax), %r13
movq 0x38(%rsp), %r14
movl %r14d, %edi
callq 0x417342
movq %rax, %rbx
leal 0x7(%r14), %eax
pushq $0x8
popq %rcx
cltd
idivl %ecx
incl %eax
movslq %eax, %rdi
callq 0x407d85
movq %rax, %r15
movl $0x200, %edi            # imm = 0x200
callq 0x404c52
movq %rbx, 0x28(%rsp)
testq %rbx, %rbx
movq %rax, %rbx
sete %al
testq %r15, %r15
sete %cl
testq %rbx, %rbx
sete %dl
orb %al, %dl
orb %cl, %dl
pushq $-0x1
popq %r12
jne 0x412b19
pushq $0x1
popq %rbp
xorl %edi, %edi
movl %ebp, %esi
callq 0x4171f4
xorl %edi, %edi
movl %ebp, %esi
movq %rbx, 0x30(%rsp)
movq %rbx, %rdx
callq 0x41e4f7
xorl %ebx, %ebx
movl %ebx, %r12d
movl (%r13,%r12,4), %r14d
leal -0x1(%r14), %eax
cmpl $0x2, %eax
jb 0x412856
cmpl $0x5, %r14d
je 0x412856
testl %r14d, %r14d
je 0x412aa0
pushq $0x4
popq %rdi
leaq 0x24(%rsp), %rsi
callq 0x406b14
movl 0x24(%rsp), %eax
pushq $0x2
jmp 0x41286a
movl 0x8(%r13,%r12,4), %ecx
leal -0x1(%rcx), %eax
addl 0xc(%r13,%r12,4), %ecx
movl %ecx, 0x8(%r13,%r12,4)
pushq $0x4
popq %rbx
movl 0x4(%r13,%r12,4), %ecx
leal -0x1(%rcx), %edx
cmpl $0x2, %ecx
movl $0x0, %ecx
cmovgel %ecx, %ebx
movl %edx, 0x4(%r13,%r12,4)
addl %r12d, %ebx
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
xorl %edx, %edx
idivl 0x38(%rsp)
movl %edx, 0x24(%rsp)
incl %edx
movl %edx, %ecx
andb $0x7, %cl
movl %ebp, %eax
shll %cl, %eax
movl %edx, %ecx
shrl $0x3, %ecx
movb (%r15,%rcx), %sil
testb $0x1, %r14b
jne 0x4128ce
notb %al
andb %al, %sil
movb %sil, (%r15,%rcx)
movq 0x28(%rsp), %rdi
movl %edx, %esi
movq 0x30(%rsp), %rdx
callq 0x41e4f7
jmp 0x412821
orb %al, %sil
movb %sil, (%r15,%rcx)
cmpl $0x5, %r14d
je 0x412821
movq 0x28(%rsp), %rdi
movl %edx, %esi
callq 0x4171f4
testl %eax, %eax
je 0x412821
pushq $-0x1
popq %r12
jmp 0x412b14
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movl 0x180c8f(%rip), %r12d   # 0x5935a0
movl (%rax), %eax
testl %eax, %eax
je 0x412b33
movl %eax, 0x180c7f(%rip)    # 0x5935a0
jmp 0x412b33
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq (%rax), %r14
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movl (%rax), %ebx
movq 0x18(%r14), %rdi
testq %rdi, %rdi
je 0x412956
callq *0x18086a(%rip)         # 0x5931c0
movq 0x20(%r14), %rax
movq 0x8(%rax), %rdi
xorl %r12d, %r12d
xorl %esi, %esi
movl %ebx, %edx
xorl %ecx, %ecx
callq 0x412b48
jmp 0x412a5c
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movl (%rax), %r12d
jmp 0x412b33
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq (%rax), %r14
movq 0x18(%r14), %rdi
testq %rdi, %rdi
je 0x4129aa
callq *0x180819(%rip)         # 0x5931c0
movl (%rsp), %ebx
cmpl $0x28, %ebx
ja 0x4129be
movl %ebx, %eax
addq 0x10(%rsp), %rax
addl $0x8, %ebx
movl %ebx, (%rsp)
jmp 0x4129cc
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq (%rax), %rsi
movq %r14, %rdi
callq 0x411129
movb %al, 0xb4(%r14)
cmpl $0x28, %ebx
ja 0x4129f2
movl %ebx, %eax
addq 0x10(%rsp), %rax
addl $0x8, %ebx
movl %ebx, (%rsp)
jmp 0x412a00
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movb (%rax), %al
movb 0xb6(%r14), %cl
andb $0x1, %al
leal (%rax,%rax), %edx
andb $-0x3, %cl
orb %dl, %cl
movb %cl, 0xb6(%r14)
movb %al, 0xb5(%r14)
cmpl $0x28, %ebx
ja 0x412a35
movl %ebx, %ecx
addq 0x10(%rsp), %rcx
addl $0x8, %ebx
movl %ebx, (%rsp)
jmp 0x412a43
movq 0x8(%rsp), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rsp)
movl (%rcx), %ecx
movl %ecx, 0xb0(%r14)
testb %al, %al
jne 0x412a5c
testl %ecx, %ecx
jle 0x412a5c
movq %r14, %rdi
callq 0x408bd6
movq 0x18(%r14), %rdi
testq %rdi, %rdi
je 0x412b33
callq *0x180761(%rip)         # 0x5931d0
jmp 0x412b33
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq (%rax), %rax
movq 0x8(%rsp), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rsp)
movl (%rcx), %ecx
movl %ecx, 0xac(%rax)
jmp 0x412b33
movq 0x38(%rsp), %r13
leal 0x1(%r13), %esi
movq 0x28(%rsp), %r14
movq %r14, %rdi
callq 0x41a5c7
movl %eax, %r12d
xorl %ebx, %ebx
movq %r14, %rdi
xorl %esi, %esi
callq 0x41a5c7
subl %r13d, %r12d
addl %eax, %r12d
addl (%r14), %r12d
testl %r13d, %r13d
cmovgl %r13d, %ebx
negl %ebx
leal (%rbx,%rbp), %eax
movl %ebp, 0x24(%rsp)
cmpl $0x1, %eax
je 0x412b14
movl %ebp, %eax
shrl $0x3, %eax
movzbl (%r15,%rax), %eax
movl %ebp, %ecx
andl $0x7, %ecx
xorl %r14d, %r14d
btl %ecx, %eax
setb %r14b
movq 0x28(%rsp), %rdi
movl %ebp, %esi
callq 0x41a5c7
cmpl %eax, %r14d
jne 0x412b11
incl %ebp
jmp 0x412ad7
movl %ebp, %r12d
movq 0x30(%rsp), %rbx
movq %rbx, %rdi
callq 0x404c6c
movq %r15, %rdi
callq 0x404c6c
movq 0x28(%rsp), %rdi
callq 0x419f0c
movl %r12d, %eax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq