Function at 0x140242c00
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
mov r12, rdx
mov r13, rcx
movsxd rbx, r8d
mov rsi, r9
cmp byte [r12 + 0x65], 0
lea rdx, str.cannot_VACUUM_from_within_a_transaction
je 0x140242c6a
cmp dword [r12 + 0xd8], 1
lea rdx, str.cannot_VACUUM___SQL_statements_in_progress
jg 0x140242c6a
mov ebp, dword [r12 + 0x4c]
test r9, r9
je 0x140242e38
movzx eax, word [r9 + 0x14]
lea rdx, [0x140341860]
and eax, 0x3f
cmp byte [rdx + rax], 3
je 0x140242ca8
lea rdx, str.non_text_filename
mov rcx, r12
call sym.sqlite3DbStrDup
mov rdx, qword [r13]
mov rbx, rax
test rdx, rdx
je 0x140242c86
mov rcx, r12
call sym.sqlite3DbFreeNN
mov qword [r13], rbx
mov edi, 1
mov eax, edi
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r9
call sym.sqlite3ValueText.constprop.0
mov r9, rax
mov eax, dword [r12 + 0x4c]
and eax, 0xfffffffe
or eax, 6
mov dword [r12 + 0x4c], eax
mov eax, dword [r12 + 0x2c]
mov rdi, qword [r12 + 0x30]
shl rbx, 5
mov rdx, r13
mov rcx, qword [r12 + 0x78]
mov r14d, dword [r12 + 0x28]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov dword [rsp + 0x38], eax
or eax, 6
mov dword [r12 + 0x2c], eax
movabs rax, 0xfffffffeefffafff
and rax, rdi
mov qword [rsp + 0x28], rcx
mov rcx, qword [r12 + 0x80]
or rax, 0x201
mov qword [rsp + 0x20], rdi
mov qword [r12 + 0x30], rax
mov rax, qword [r12 + 0x20]
mov qword [rsp + 0x30], rcx
movzx ecx, byte [r12 + 0x6e]
add rax, rbx
mov byte [r12 + 0x6e], 0
mov r15, qword [rax + 8]
mov rdi, qword [rax]
mov byte [rsp + 0x3f], cl
mov rcx, r12
mov dword [rsp + 0x50], r14d
mov rax, qword [r15 + 8]
mov qword [rsp + 0x48], rdi
mov rax, qword [rax]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x40], rax
call sym.execSqlF
mov dword [r12 + 0x4c], ebp
mov edi, eax
test eax, eax
jne 0x1402432f8
movsxd rbp, r14d
mov rax, qword [r12 + 0x20]
shl rbp, 5
add rbp, rax
mov r14, qword [rbp + 8]
test rsi, rsi
je 0x140243438
mov rdx, qword [r14 + 8]
mov rdx, qword [rdx]
mov rcx, qword [rdx + 0x48]
mov qword [rsp + 0x70], 0
mov r9, qword [rcx]
test r9, r9
je 0x140242dcd
lea r8, [rsp + 0x70]
mov rdx, r8
call qword [r9 + 0x30]
test eax, eax
jne 0x140243350
cmp qword [rsp + 0x70], 0
jg 0x140243350
mov rax, qword [r12 + 0x20]
mov edx, dword [r12 + 0x30]
or dword [r12 + 0x2c], 8
movzx edi, byte [rax + rbx + 0x10]
and edx, 0x38
or edi, edx
or edi, 0x20
cmp byte [r15 + 0x11], 0
je 0x1402433f0
mov eax, dword [r15 + 0x14]
cmp byte [r15 + 0x12], 0
lea edx, [rax + 1]
mov dword [r15 + 0x14], edx
jne 0x140242e48
mov rcx, r15
call sym.btreeLockCarefully
mov rax, qword [r15 + 8]
movzx ecx, byte [rax + 0x26]
mov r8d, dword [rax + 0x34]
sub r8d, dword [rax + 0x38]
cmp byte [r15 + 0x11], 0
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x54], r8d
je 0x140242e6d
mov eax, dword [r15 + 0x14]
sub eax, 1
jmp 0x140242e61
lea r9, [0x140330c0e]
jmp 0x140242cc3
mov rdx, qword [r15 + 8]
movzx ecx, byte [rdx + 0x26]
mov r8d, dword [rdx + 0x34]
sub r8d, dword [rdx + 0x38]
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x54], r8d
mov dword [r15 + 0x14], eax
test eax, eax
je 0x1402434a0
mov rax, qword [r12 + 0x20]
mov rax, qword [rax + rbx + 0x18]
mov rcx, r14
mov edx, dword [rax + 0x74]
call sym.sqlite3BtreeSetCacheSize.isra.0
movzx ecx, byte [r15 + 0x11]
mov rbx, qword [r15 + 8]
test cl, cl
je 0x1402432b0
mov eax, dword [r15 + 0x14]
cmp byte [r15 + 0x12], 0
lea edx, [rax + 1]
mov dword [r15 + 0x14], edx
jne 0x140243410
mov rcx, r15
call sym.btreeLockCarefully
mov rax, qword [rbx]
movzx ecx, byte [r15 + 0x11]
mov r8, qword [rax + 0x120]
mov edx, dword [r8 + 0x20]
test edx, edx
js 0x1402432c6
cmp dword [r8 + 0x24], edx
cmovge edx, dword [r8 + 0x24]
test cl, cl
je 0x140242f00
mov eax, dword [r15 + 0x14]
sub eax, 1
mov dword [r15 + 0x14], eax
test eax, eax
jne 0x140242f00
mov rcx, r15
mov dword [rsp + 0x5c], edx
call sym.unlockBtreeMutex
mov edx, dword [rsp + 0x5c]
nop dword [rax + rax]
mov rcx, r14
call sym.sqlite3BtreeSetSpillSize
mov edx, edi
mov rcx, r14
call sym.sqlite3BtreeSetPagerFlags.isra.0
lea r8, str.BEGIN
mov rdx, r13
mov rcx, r12
call sym.execSql
mov edi, eax
test eax, eax
jne 0x140243230
test rsi, rsi
mov eax, 2
cmove edi, eax
cmp byte [r15 + 0x11], 0
jne 0x1402433c8
movzx eax, byte [r15 + 0x10]
test al, al
je 0x1402433c8
cmp al, 1
je 0x1402433c0
mov rax, qword [r15 + 8]
mov rcx, qword [rax]
test edi, edi
je 0x140242f80
mov rdx, qword [r15]
mov edx, dword [rdx + 0x2f0]
cmp edx, dword [rcx + 0x80]
jle 0x140242f80
cmp byte [rcx + 0xa], 0
jne 0x14024358b
nop
cmp byte [rcx + 9], 5
jne 0x140242f8f
test rsi, rsi
je 0x1402434ea
mov edi, dword [rsp + 0x54]
mov ebx, dword [rsp + 0x58]
mov rcx, r14
mov edx, dword [rax + 0x34]
cmp edi, ebx
cmovge ebx, edi
xor r9d, r9d
mov r8d, ebx
call sym.sqlite3BtreeSetPageSize
test eax, eax
jne 0x1402434d0
movabs rax, 0xff000000ff
test qword [rsp + 0x40], rax
je 0x1402434b0
cmp byte [r12 + 0x67], 0
jne 0x1402434d0
movzx ebx, byte [r12 + 0x6a]
test bl, bl
js 0x1402434f8
setne dl
movzx eax, byte [r14 + 0x11]
mov rdi, qword [r14 + 8]
test al, al
je 0x140243016
add dword [r14 + 0x14], 1
cmp byte [r14 + 0x12], 0
jne 0x140243016
mov rcx, r14
mov byte [rsp + 0x40], dl
call sym.btreeLockCarefully
movzx eax, byte [r14 + 0x11]
movzx edx, byte [rsp + 0x40]
test byte [rdi + 0x28], 2
je 0x140243021
cmp byte [rdi + 0x21], dl
jne 0x14024302b
mov byte [rdi + 0x21], dl
cmp bl, 2
sete byte [rdi + 0x22]
test al, al
je 0x14024303a
sub dword [r14 + 0x14], 1
je 0x140243597
movzx eax, byte [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov rdx, r13
mov rcx, r12
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov byte [r12 + 0xc4], al
mov r9, rbx
call sym.execSqlF
mov edi, eax
test eax, eax
jne 0x140243230
mov r9, rbx
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, r13
mov rcx, r12
call sym.execSqlF
mov edi, eax
test eax, eax
jne 0x140243230
mov r9, rbx
lea r8, str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_schema_WHERE_typetableAND_coalesce_rootpage_1__0
mov rdx, r13
mov rcx, r12
mov byte [r12 + 0xc4], 0
call sym.execSqlF
and dword [r12 + 0x2c], 0xfffffffb
mov edi, eax
test eax, eax
jne 0x140243230
mov r9, rbx
lea r8, str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, r13
mov rcx, r12
call sym.execSqlF
mov edi, eax
test eax, eax
jne 0x140243230
lea rdi, [0x14033e1b0]
lea rbx, [rsp + 0x6c]
movzx r13d, byte [rdi]
mov r8, rbx
mov rcx, r15
mov edx, r13d
call sym.sqlite3BtreeGetMeta
movzx r8d, byte [rdi + 1]
mov edx, r13d
mov rcx, r14
add r8d, dword [rsp + 0x6c]
call sym.sqlite3BtreeUpdateMeta
test eax, eax
jne 0x140243224
add rdi, 2
lea rax, [0x14033e1ba]
cmp rdi, rax
jne 0x1402430e3
test rsi, rsi
je 0x140243641
cmp byte [r14 + 0x11], 0
je 0x140243146
add dword [r14 + 0x14], 1
cmp byte [r14 + 0x12], 0
jne 0x140243146
mov rcx, r14
call sym.btreeLockCarefully
cmp byte [r14 + 0x10], 2
je 0x140243602
cmp byte [r14 + 0x10], 0
je 0x14024373e
cmp byte [r14 + 0x11], 0
je 0x140243177
add dword [r14 + 0x14], 1
cmp byte [r14 + 0x12], 0
jne 0x140243177
mov rcx, r14
call sym.btreeLockCarefully
cmp byte [r14 + 0x10], 2
je 0x14024378b
mov rcx, r14
call sym.btreeEndTransaction
cmp byte [r14 + 0x11], 0
je 0x1402431af
sub dword [r14 + 0x14], 1
je 0x140243736
mov eax, dword [r14 + 0x14]
lea edi, [rax - 1]
mov dword [r14 + 0x14], edi
test edi, edi
je 0x14024362c
xor edi, edi
test rsi, rsi
jne 0x140243230
mov rcx, r14
call sym.sqlite3BtreeGetAutoVacuum
mov rcx, r15
mov edx, eax
call sym.sqlite3BtreeSetAutoVacuum
cmp byte [r14 + 0x11], 0
je 0x14024384a
add dword [r14 + 0x14], 1
cmp byte [r14 + 0x12], 0
jne 0x14024385d
mov rcx, r14
call sym.btreeLockCarefully
mov rax, qword [r14 + 8]
mov ebx, dword [rax + 0x34]
sub ebx, dword [rax + 0x38]
cmp byte [r14 + 0x11], 0
movzx esi, byte [rax + 0x26]
je 0x14024320b
sub dword [r14 + 0x14], 1
je 0x140243870
cmp ebx, esi
mov edx, dword [rax + 0x34]
mov r9d, 1
mov rcx, r15
cmovge esi, ebx
mov r8d, esi
call sym.sqlite3BtreeSetPageSize
mov edi, eax
nop word cs:[rax + rax]
mov eax, dword [rsp + 0x38]
mov r9d, 1
xor r8d, r8d
mov rcx, r15
movq xmm0, qword [rsp + 0x28]
mov edx, 0xffffffff
mov byte [r12 + 0xc4], 0
mov dword [r12 + 0x2c], eax
mov rax, qword [rsp + 0x20]
movhps xmm0, qword [rsp + 0x30]
mov qword [r12 + 0x30], rax
movzx eax, byte [rsp + 0x3f]
movups xmmword [r12 + 0x78], xmm0
mov byte [r12 + 0x6e], al
call sym.sqlite3BtreeSetPageSize
mov byte [r12 + 0x65], 1
mov rcx, qword [rbp + 8]
call sym.sqlite3BtreeClose.isra.0
mov qword [rbp + 8], 0
mov qword [rbp + 0x18], 0
mov rcx, r12
call sym.sqlite3ResetAllSchemasOfConnection
jmp 0x140242c8f
mov rax, qword [rbx]
mov r8, qword [rax + 0x120]
mov edx, dword [r8 + 0x20]
test edx, edx
jns 0x140243488
movsxd rax, edx
mov r9d, dword [r8 + 0x2c]
add r9d, dword [r8 + 0x28]
neg rax
movsxd r9, r9d
shl rax, 0xa
cqo
idiv r9
mov edx, 0x3b9aca00
cmp rax, 0x3b9aca00
cmovle rdx, rax
jmp 0x140242ecc
mov eax, dword [rsp + 0x38]
mov r9d, 1
xor r8d, r8d
mov rcx, r15
movq xmm0, qword [rsp + 0x28]
mov edx, 0xffffffff
mov byte [r12 + 0xc4], 0
mov dword [r12 + 0x2c], eax
mov rax, qword [rsp + 0x20]
movhps xmm0, qword [rsp + 0x30]
mov qword [r12 + 0x30], rax
movzx eax, byte [rsp + 0x3f]
movups xmmword [r12 + 0x78], xmm0
mov byte [r12 + 0x6e], al
call sym.sqlite3BtreeSetPageSize
mov byte [r12 + 0x65], 1
jmp 0x14024329c
mov edx, 0x1b
mov rcx, r12
call sym.sqlite3DbMallocRawNN
mov rbx, rax
test rax, rax
je 0x14024339b
movabs rax, 0x662074757074756f
mov byte [rbx + 0x1a], 0
movabs rdx, 0x65726c6120656c69
mov qword [rbx], rax
movabs rax, 0x7369786520796461
mov qword [rbx + 0x10], rax
mov eax, 0x7374
mov qword [rbx + 8], rdx
mov word [rbx + 0x18], ax
mov rcx, qword [r13]
test rcx, rcx
jne 0x140243448
mov qword [r13], rbx
mov edi, 1
jmp 0x140243230
test edi, edi
je 0x1402433df
nop dword [rax]
mov edx, edi
xor r8d, r8d
mov rcx, r15
call sym.btreeBeginTrans
mov edi, eax
test edi, edi
jne 0x140243230
mov rax, qword [r15 + 8]
mov rcx, qword [rax]
jmp 0x140242f80
mov rdx, qword [r15 + 8]
movzx ecx, byte [rdx + 0x26]
mov r8d, dword [rdx + 0x34]
sub r8d, dword [rdx + 0x38]
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x54], r8d
jmp 0x140242e72
mov rdx, qword [rbx]
mov r8, qword [rdx + 0x120]
mov edx, dword [r8 + 0x20]
test edx, edx
js 0x1402432c6
cmp dword [r8 + 0x24], edx
cmovge edx, dword [r8 + 0x24]
jmp 0x140242ee0
mov edi, 0x21
jmp 0x140242de5
cmp qword [r12 + 0x1f0], rcx
jbe 0x14024346e
cmp qword [r12 + 0x1e0], rcx
jbe 0x140243573
cmp qword [r12 + 0x1e8], rcx
jbe 0x1402435a4
cmp qword [r12 + 0x308], 0
jne 0x1402434da
call sym.sqlite3_free
jmp 0x1402433a8
cmp dword [r8 + 0x24], edx
cmovge edx, dword [r8 + 0x24]
jmp 0x140242f00
mov rcx, r15
call sym.unlockBtreeMutex
jmp 0x140242e6d
mov edx, dword [r12 + 0x74]
xor r9d, r9d
mov r8d, ebx
mov rcx, r14
call sym.sqlite3BtreeSetPageSize
test eax, eax
je 0x140242fca
nop dword [rax + rax]
mov edi, 7
jmp 0x140243230
mov rdx, rcx
mov rcx, r12
call sym.measureAllocationSize
jmp 0x1402433a8
mov dword [r12 + 0x74], 0
jmp 0x140242f8f
cmp byte [r15 + 0x11], 0
je 0x1402435dd
mov eax, dword [r15 + 0x14]
cmp byte [r15 + 0x12], 0
lea edx, [rax + 1]
mov dword [r15 + 0x14], edx
jne 0x1402435bc
mov rcx, r15
call sym.btreeLockCarefully
mov rax, qword [r15 + 8]
movzx ecx, byte [r15 + 0x11]
xor edx, edx
movzx ebx, byte [rax + 0x21]
test bl, bl
je 0x140243542
cmp byte [rax + 0x22], 1
mov edx, 1
sbb ebx, ebx
add ebx, 2
test cl, cl
je 0x140242fe7
mov eax, dword [r15 + 0x14]
sub eax, 1
mov dword [r15 + 0x14], eax
test eax, eax
jne 0x140242fe7
mov rcx, r15
mov byte [rsp + 0x40], dl
call sym.unlockBtreeMutex
movzx edx, byte [rsp + 0x40]
jmp 0x140242fe7
mov rax, qword [r12 + 0x1d8]
mov qword [rcx], rax
mov qword [r12 + 0x1d8], rcx
jmp 0x1402433a8
call sym.pagerOpenSavepoint
mov edi, eax
jmp 0x1402433d7
mov rcx, r14
call sym.unlockBtreeMutex
jmp 0x14024303a
mov rax, qword [r12 + 0x1c8]
mov qword [rcx], rax
mov qword [r12 + 0x1c8], rcx
jmp 0x1402433a8
mov rcx, qword [r15 + 8]
xor edx, edx
movzx ebx, byte [rcx + 0x21]
test bl, bl
je 0x140243551
cmp byte [rcx + 0x22], 1
mov edx, 1
sbb ebx, ebx
add ebx, 2
jmp 0x14024354a
mov rax, qword [r15 + 8]
xor edx, edx
movzx ebx, byte [rax + 0x21]
test bl, bl
je 0x140242fe7
cmp byte [rax + 0x22], 1
mov edx, 1
sbb ebx, ebx
add ebx, 2
jmp 0x140242fe7
xor edx, edx
mov rcx, r14
call sym.sqlite3BtreeCommitPhaseOne.part.0
mov edi, eax
test eax, eax
je 0x140243151
cmp byte [r14 + 0x11], 0
je 0x140243230
sub dword [r14 + 0x14], 1
jne 0x140243230
mov rcx, r14
call sym.unlockBtreeMutex
test edi, edi
jne 0x140243230
jmp 0x1402431af
cmp byte [r15 + 0x11], 0
je 0x140243650
mov rcx, r15
call sym.sqlite3BtreeEnter.part.0
cmp byte [r14 + 0x11], 0
je 0x14024365f
mov rcx, r14
call sym.sqlite3BtreeEnter.part.0
mov rax, qword [r15 + 8]
lea r8, [rsp + 0x70]
mov rax, qword [rax]
mov rcx, qword [rax + 0x48]
mov r9, qword [rcx]
test r9, r9
je 0x1402436ae
mov rdx, qword [r14 + 8]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x40], r8
movsxd rax, dword [rdx + 0x34]
mov edx, dword [rdx + 0x40]
imul rax, rdx
mov edx, 0xb
mov qword [rsp + 0x70], rax
call qword [r9 + 0x50]
mov r8, qword [rsp + 0x40]
test eax, eax
mov edi, eax
je 0x1402436ae
cmp eax, 0xc
jne 0x14024370b
mov rdi, r8
xor eax, eax
mov ecx, 0x12
mov edx, 0x7fffffff
rep stosd dword [rdi], eax
mov rcx, r8
mov qword [rsp + 0x40], r8
mov rax, qword [r14]
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x88], 1
call sym.sqlite3_backup_step
mov r8, qword [rsp + 0x40]
mov rcx, r8
call sym.sqlite3_backup_finish
mov edi, eax
test eax, eax
jne 0x14024374e
mov rax, qword [r15 + 8]
and word [rax + 0x28], 0xfffd
cmp byte [r14 + 0x11], 0
je 0x14024371a
mov rcx, r14
call sym.sqlite3BtreeLeave.part.0
cmp byte [r15 + 0x11], 0
je 0x140243729
mov rcx, r15
call sym.sqlite3BtreeLeave.part.0
test edi, edi
jne 0x140243230
jmp 0x14024312b
mov rcx, r14
call sym.unlockBtreeMutex
cmp byte [r14 + 0x11], 0
jne 0x14024319c
jmp 0x1402431af
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 8]
mov rax, qword [rax]
cmp byte [rax + 0x10], 0
jne 0x14024370b
add dword [rax + 0x84], 1
mov rdx, qword [rax + 0x70]
jmp 0x140243778
mov dword [rdx + 0x18], 1
mov rdx, qword [rdx + 0x40]
test rdx, rdx
jne 0x14024376d
mov rcx, qword [rax + 0x120]
call sym.sqlite3PcacheTruncate
jmp 0x14024370b
mov rbx, qword [r14 + 8]
mov r13, qword [rbx]
mov edi, dword [r13 + 0x30]
test edi, edi
jne 0x140243820
add dword [r13 + 0x84], 1
cmp byte [r13 + 0x15], 2
jne 0x1402437bf
cmp byte [r13 + 8], 0
je 0x1402437bf
cmp byte [r13 + 9], 1
je 0x140243843
movzx edx, byte [r13 + 0x18]
mov r8d, 1
mov rcx, r13
call sym.pager_end_transaction
mov edi, eax
movzx eax, al
cmp dil, 0xd
je 0x140243805
cmp eax, 0xa
je 0x140243805
test edi, edi
jne 0x140243820
sub dword [r14 + 0x1c], 1
mov rcx, qword [rbx + 0x60]
mov byte [rbx + 0x24], 1
call sym.sqlite3BitvecDestroy
mov qword [rbx + 0x60], 0
jmp 0x140243182
mov dword [r13 + 0x30], edi
mov byte [r13 + 0x15], 6
test edi, edi
je 0x140243881
lea rax, [sym.getPageError]
mov qword [r13 + 0x110], rax
cmp byte [r14 + 0x11], 0
je 0x140243230
sub dword [r14 + 0x14], 1
jne 0x140243621
mov rcx, r14
call sym.unlockBtreeMutex
jmp 0x140243616
mov byte [r13 + 0x15], 1
jmp 0x1402437e6
mov rax, qword [r14 + 8]
mov ebx, dword [rax + 0x34]
movzx esi, byte [rax + 0x26]
sub ebx, dword [rax + 0x38]
jmp 0x14024320b
mov rax, qword [r14 + 8]
mov ebx, dword [rax + 0x34]
movzx esi, byte [rax + 0x26]
sub ebx, dword [rax + 0x38]
jmp 0x140243200
mov rcx, r14
call sym.unlockBtreeMutex
mov rax, qword [r14 + 8]
jmp 0x14024320b
cmp byte [r13 + 0x1b], 0
lea rax, [sym.getPageMMap]
lea rdx, [sym.getPageNormal]
cmove rax, rdx
mov qword [r13 + 0x110], rax
jmp 0x1402437e6