// File: /workspace/github_c_makefile_star2_O2/shifengbin[P]bishe/Output/../Persistence/sqlite3.c
// Function: sqlite3_test_control
SQLITE_CDECL sqlite3_test_control(int op, ...){
  int rc = 0;
#ifdef SQLITE_OMIT_BUILTIN_TEST
  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( (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).  
    **
    ** 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 = ALWAYS(x);
      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;
    }

#ifdef SQLITE_N_KEYWORD
    /* sqlite3_test_control(SQLITE_TESTCTRL_ISKEYWORD, const char *zWord)
    **
    ** If zWord is a keyword recognized by the parser, then return the
    ** number of keywords.  Or if zWord is not a keyword, return 0.
    ** 
    ** This test feature is only available in the amalgamation since
    ** the SQLITE_N_KEYWORD macro is not defined in this file if SQLite
    ** is built using separate source files.
    */
    case SQLITE_TESTCTRL_ISKEYWORD: {
      const char *zWord = va_arg(ap, const char*);
      int n = sqlite3Strlen30(zWord);
      rc = (sqlite3KeywordCode((u8*)zWord, n)!=TK_ID) ? SQLITE_N_KEYWORD : 0;
      break;
    }
#endif 

    /* sqlite3_test_control(SQLITE_TESTCTRL_SCRATCHMALLOC, sz, &pNew, pFree);
    **
    ** Pass pFree into sqlite3ScratchFree(). 
    ** If sz>0 then allocate a scratch buffer into pNew.  
    */
    case SQLITE_TESTCTRL_SCRATCHMALLOC: {
      void *pFree, **ppNew;
      int sz;
      sz = va_arg(ap, int);
      ppNew = va_arg(ap, void**);
      pFree = va_arg(ap, void*);
      if( sz ) *ppNew = sqlite3ScratchMalloc(sz);
      sqlite3ScratchFree(pFree);
      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;
    }


    /*   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*,int,u8,u8);
      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;
    }
  }
  va_end(ap);
#endif /* SQLITE_OMIT_BUILTIN_TEST */
  return rc;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
leaq -0x110(%rbp), %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 0x18d42
movaps %xmm0, -0xe0(%rbp)
movaps %xmm1, -0xd0(%rbp)
movaps %xmm2, -0xc0(%rbp)
movaps %xmm3, -0xb0(%rbp)
movaps %xmm4, -0xa0(%rbp)
movaps %xmm5, -0x90(%rbp)
movaps %xmm6, -0x80(%rbp)
movaps %xmm7, -0x70(%rbp)
movq %r10, -0x30(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movabsq $0x3000000008, %rax     # imm = 0x3000000008
movq %rax, -0x40(%rbp)
xorl %r13d, %r13d
addl $-0x5, %edi
cmpl $0x14, %edi
ja 0x194f7
leaq 0x4f5ce(%rip), %rax     # 0x68340
movslq (%rax,%rdi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x6c87e(%rip), %rdi     # 0x85600
leaq 0x6c3e7(%rip), %rsi     # 0x85170
jmp 0x18e81
movl -0x40(%rbp), %r14d
cmpq $0x28, %r14
ja 0x1902a
movq %r14, %rax
addq -0x30(%rbp), %rax
addl $0x8, %r14d
movl %r14d, -0x40(%rbp)
jmp 0x19036
movl -0x40(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x190f5
movq %rcx, %rax
addq -0x30(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x40(%rbp)
jmp 0x19101
movl -0x40(%rbp), %edx
cmpq $0x29, %rdx
jae 0x1910e
movq -0x30(%rbp), %rax
movq %rdx, %rcx
addq $0x8, %rcx
movl %ecx, -0x40(%rbp)
movq (%rax,%rdx), %rax
cmpl $0x20, %edx
ja 0x1911d
addq -0x30(%rbp), %rcx
addl $0x10, %edx
movl %edx, -0x40(%rbp)
jmp 0x19129
movl -0x40(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x19135
movq %rcx, %rax
addq -0x30(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x40(%rbp)
jmp 0x19141
movl -0x40(%rbp), %eax
cmpq $0x29, %rax
jae 0x19160
movq -0x30(%rbp), %rcx
leal 0x8(%rax), %edx
movl %edx, -0x40(%rbp)
movl (%rcx,%rax), %edi
cmpl $0x21, %eax
jae 0x1916e
movq -0x30(%rbp), %rdx
movq %rax, %rcx
addq $0x10, %rcx
movl %ecx, -0x40(%rbp)
movq 0x8(%rdx,%rax), %r14
cmpl $0x18, %eax
ja 0x1917d
addq -0x30(%rbp), %rcx
addl $0x18, %eax
movl %eax, -0x40(%rbp)
jmp 0x19189
leaq 0x6c2f6(%rip), %rdi     # 0x85170
leaq 0x6c77f(%rip), %rsi     # 0x85600
movl $0x103, %edx            # imm = 0x103
callq 0xa3b0
jmp 0x194f7
movl -0x40(%rbp), %edx
cmpq $0x29, %rdx
jae 0x191a5
movq -0x30(%rbp), %rax
movq %rdx, %rcx
addq $0x8, %rcx
movl %ecx, -0x40(%rbp)
movq (%rax,%rdx), %rax
cmpl $0x20, %edx
ja 0x191b4
addq -0x30(%rbp), %rcx
addl $0x10, %edx
movl %edx, -0x40(%rbp)
jmp 0x191c0
movl -0x40(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x191d6
movq %rcx, %rax
addq -0x30(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x40(%rbp)
jmp 0x191e2
movl -0x40(%rbp), %ecx
cmpq $0x29, %rcx
jae 0x19209
movq -0x30(%rbp), %rdx
movq %rcx, %rax
addq $0x8, %rax
movl %eax, -0x40(%rbp)
movl (%rdx,%rcx), %edx
movq %rdx, -0x60(%rbp)
cmpl $0x20, %ecx
ja 0x1921b
addq -0x30(%rbp), %rax
addl $0x10, %ecx
movl %ecx, -0x40(%rbp)
jmp 0x19227
xorl %r13d, %r13d
xorl %edi, %edi
xorl %esi, %esi
callq 0xa420
jmp 0x194f7
movl -0x40(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x1937d
movq %rcx, %rax
addq -0x30(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x40(%rbp)
jmp 0x19389
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %r13d
jmp 0x194f7
movl -0x40(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x193a5
movq %rcx, %rax
addq -0x30(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x40(%rbp)
jmp 0x193b1
movl $0x1e212, %r13d         # imm = 0x1E212
jmp 0x194f7
movl -0x40(%rbp), %ecx
cmpq $0x29, %rcx
jae 0x193be
movq -0x30(%rbp), %rdx
movq %rcx, %rax
addq $0x8, %rax
movl %eax, -0x40(%rbp)
movq (%rdx,%rcx), %r14
cmpl $0x20, %ecx
ja 0x193cd
addq -0x30(%rbp), %rax
addl $0x10, %ecx
movl %ecx, -0x40(%rbp)
jmp 0x193d9
movl -0x40(%rbp), %ecx
cmpq $0x28, %rcx
ja 0x19418
movq %rcx, %rax
addq -0x30(%rbp), %rax
addl $0x8, %ecx
movl %ecx, -0x40(%rbp)
jmp 0x19424
movl -0x40(%rbp), %edx
cmpq $0x29, %rdx
jae 0x1942c
movq -0x30(%rbp), %rax
movq %rdx, %rcx
addq $0x8, %rcx
movl %ecx, -0x40(%rbp)
movq (%rax,%rdx), %rax
cmpl $0x20, %edx
ja 0x1943b
addq -0x30(%rbp), %rcx
addl $0x10, %edx
movl %edx, -0x40(%rbp)
jmp 0x19447
xorl %r13d, %r13d
cmpl $0x0, 0x6a56b(%rip)     # 0x8358c
sete %r13b
jmp 0x194f7
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movq (%rax), %rbx
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x1904c
callq *0x6a460(%rip)          # 0x834a8
movl -0x40(%rbp), %r14d
cmpl $0x28, %r14d
ja 0x19063
movl %r14d, %eax
addq -0x30(%rbp), %rax
addl $0x8, %r14d
movl %r14d, -0x40(%rbp)
jmp 0x1906f
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x17a14
movb %al, 0xa0(%rbx)
cmpl $0x28, %r14d
ja 0x19097
movl %r14d, %eax
addq -0x30(%rbp), %rax
addl $0x8, %r14d
movl %r14d, -0x40(%rbp)
jmp 0x190a3
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movb (%rax), %al
movb %al, 0xa3(%rbx)
movb %al, 0xa1(%rbx)
cmpl $0x28, %r14d
ja 0x190c8
movl %r14d, %ecx
addq -0x30(%rbp), %rcx
addl $0x8, %r14d
movl %r14d, -0x40(%rbp)
jmp 0x190d4
movq -0x38(%rbp), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, -0x38(%rbp)
movl (%rcx), %ecx
movl %ecx, 0x9c(%rbx)
testb %al, %al
jne 0x190ec
testl %ecx, %ecx
jle 0x190ec
movq %rbx, %rdi
callq 0xfc53
movq 0x18(%rbx), %rdi
jmp 0x19404
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movl (%rax), %eax
movl %eax, 0x6a4bf(%rip)     # 0x835c8
jmp 0x194f7
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movq (%rax), %rax
movq -0x38(%rbp), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, -0x38(%rbp)
movzwl (%rcx), %ecx
movw %cx, 0x4c(%rax)
jmp 0x194f7
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movq (%rax), %rax
movq %rax, 0x6a475(%rip)     # 0x835c0
testq %rax, %rax
je 0x194f7
xorl %edi, %edi
callq *%rax
movl %eax, %r13d
jmp 0x194f7
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movl (%rax), %edi
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movq (%rax), %r14
movq -0x38(%rbp), %rcx
leaq 0x8(%rcx), %rax
movq %rax, -0x38(%rbp)
movq (%rcx), %rbx
testl %edi, %edi
je 0x19198
callq 0x195d4
movq %rax, (%r14)
movq %rbx, %rdi
callq 0x196dc
jmp 0x194f7
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movq (%rax), %rax
movq -0x38(%rbp), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, -0x38(%rbp)
movq (%rcx), %rcx
movq %rax, 0x6c40e(%rip)     # 0x855d8
movq %rcx, 0x6c40f(%rip)     # 0x855e0
jmp 0x194f7
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movq (%rax), %rbx
movq %rbx, %rdi
callq 0xb080
movq %rbx, %rdi
movl %eax, %esi
callq 0x195b3
xorl %ecx, %ecx
cmpl $0x1b, %eax
pushq $0x7c
popq %r13
cmovel %ecx, %r13d
jmp 0x194f7
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movl (%rax), %eax
movq %rax, -0x60(%rbp)
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movq (%rax), %r14
movq -0x60(%rbp), %r15
movl %r15d, %edi
callq 0x1dbc9
movq %rax, %rbx
leal 0x7(%r15), %eax
pushq $0x8
popq %rcx
cltd
idivl %ecx
incl %eax
movslq %eax, %rdi
callq 0xe97d
movq %rax, %r15
movl $0x200, %edi            # imm = 0x200
callq 0xa230
movq %rax, %r12
movq %rbx, -0x50(%rbp)
testq %rbx, %rbx
sete %al
testq %r15, %r15
sete %cl
testq %r12, %r12
sete %dl
orb %al, %dl
orb %cl, %dl
pushq $-0x1
popq %r13
jne 0x194de
pushq $0x1
popq %rbx
xorl %edi, %edi
movl %ebx, %esi
callq 0x1da6c
xorl %edi, %edi
movl %ebx, %esi
movq %r12, -0x58(%rbp)
movq %r12, %rdx
callq 0x24926
xorl %r13d, %r13d
movq %r15, %rbx
movl %r13d, %r15d
movl (%r14,%r15,4), %r12d
leal -0x1(%r12), %eax
cmpl $0x2, %eax
jb 0x192d6
cmpl $0x5, %r12d
je 0x192d6
testl %r12d, %r12d
je 0x19454
pushq $0x4
popq %rdi
leaq -0x44(%rbp), %rsi
callq 0xa420
movl -0x44(%rbp), %eax
pushq $0x2
jmp 0x192ea
movl 0x8(%r14,%r15,4), %ecx
leal -0x1(%rcx), %eax
addl 0xc(%r14,%r15,4), %ecx
movl %ecx, 0x8(%r14,%r15,4)
pushq $0x4
popq %r13
movl 0x4(%r14,%r15,4), %ecx
leal -0x1(%rcx), %edx
cmpl $0x2, %ecx
movl $0x0, %ecx
cmovgel %ecx, %r13d
movl %edx, 0x4(%r14,%r15,4)
addl %r15d, %r13d
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
xorl %edx, %edx
idivl -0x60(%rbp)
movl %edx, -0x44(%rbp)
incl %edx
movl %edx, %ecx
andb $0x7, %cl
pushq $0x1
popq %rax
shll %cl, %eax
movl %edx, %ecx
shrl $0x3, %ecx
movq %rbx, %r15
movb (%rbx,%rcx), %sil
testb $0x1, %r12b
jne 0x19350
notb %al
andb %al, %sil
movb %sil, (%r15,%rcx)
movq -0x50(%rbp), %rdi
movl %edx, %esi
movq -0x58(%rbp), %rdx
callq 0x24926
jmp 0x192a0
orb %al, %sil
movb %sil, (%r15,%rcx)
cmpl $0x5, %r12d
je 0x192a0
movq -0x50(%rbp), %rdi
movl %edx, %esi
callq 0x1da6c
testl %eax, %eax
je 0x192a0
pushq $-0x1
popq %r13
jmp 0x194da
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movl 0x6a4e0(%rip), %r13d    # 0x83870
movl (%rax), %eax
testl %eax, %eax
je 0x194f7
movl %eax, 0x6a4d0(%rip)     # 0x83870
jmp 0x194f7
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movl (%rax), %eax
movl %eax, 0x6a07f(%rip)     # 0x83438
jmp 0x194f7
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movq (%rax), %r14
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movl (%rax), %ebx
movq 0x18(%r14), %rdi
testq %rdi, %rdi
je 0x193ea
callq *0x6a0be(%rip)          # 0x834a8
movq 0x20(%r14), %rax
movq 0x8(%rax), %rdi
xorl %r13d, %r13d
xorl %esi, %esi
movl %ebx, %edx
xorl %ecx, %ecx
callq 0x1950c
movq 0x18(%r14), %rdi
testq %rdi, %rdi
je 0x194f7
callq *0x6a0a5(%rip)          # 0x834b8
jmp 0x194f7
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movl (%rax), %r13d
jmp 0x194f7
movq -0x38(%rbp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, -0x38(%rbp)
movq (%rax), %rax
movq -0x38(%rbp), %rcx
leaq 0x8(%rcx), %rdx
movq %rdx, -0x38(%rbp)
movl (%rcx), %ecx
movl %ecx, 0x98(%rax)
jmp 0x194f7
movq -0x60(%rbp), %r12
leal 0x1(%r12), %esi
movq -0x50(%rbp), %r15
movq %r15, %rdi
callq 0x21e6e
movl %eax, %r13d
xorl %r14d, %r14d
movq %r15, %rdi
xorl %esi, %esi
callq 0x21e6e
subl %r12d, %r13d
addl %eax, %r13d
addl (%r15), %r13d
testl %r12d, %r12d
cmovgl %r12d, %r14d
negl %r14d
movq %rbx, %r15
pushq $0x1
popq %r12
leal (%r14,%r12), %eax
movl %r12d, -0x44(%rbp)
cmpl $0x1, %eax
je 0x194da
movl %r12d, %eax
shrl $0x3, %eax
movzbl (%r15,%rax), %eax
movl %r12d, %ecx
andl $0x7, %ecx
xorl %r15d, %r15d
btl %ecx, %eax
setb %r15b
movq -0x50(%rbp), %rdi
movl %r12d, %esi
callq 0x21e6e
cmpl %eax, %r15d
jne 0x194d4
incl %r12d
movq %rbx, %r15
jmp 0x19493
movl %r12d, %r13d
movq %rbx, %r15
movq -0x58(%rbp), %r12
movq %r12, %rdi
callq 0xa828
movq %r15, %rdi
callq 0xa828
movq -0x50(%rbp), %rdi
callq 0x20643
movl %r13d, %eax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq