Function at 0x14021cc80
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov rbx, rdx
mov rbp, rcx
mov rdi, r9
cmp byte [rbx + 0x65], 0
lea rdx, str.cannot_VACUUM_from_within_a_transaction
je 0x14021ccea
cmp dword [rbx + 0xd8], 1
jg 0x14021ced8
test r9, r9
mov r13d, dword [rbx + 0x4c]
je 0x14021cee8
movzx eax, word [r9 + 0x14]
lea rcx, [0x1403af000]
mov rdx, rax
and edx, 0x3f
cmp byte [rcx + rdx], 3
je 0x14021cd30
lea rdx, str.non_text_filename
mov rcx, rbx
call fcn.14016a230
mov rdx, qword [rbp]
mov rsi, rax
test rdx, rdx
je 0x14021cd06
mov rcx, rbx
call fcn.1401584a0
mov qword [rbp], rsi
mov r15d, 1
movaps xmm6, xmmword [rsp + 0xb0]
mov eax, r15d
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov edx, eax
not edx
test dx, 0x202
je 0x14021cef8
test al, 1
jne 0x14021cf10
mov edx, 1
mov rcx, rdi
mov dword [rsp + 0x120], r8d
call fcn.140170cb0
mov r8d, dword [rsp + 0x120]
mov r9, rax
mov eax, dword [rbx + 0x4c]
and eax, 0xfffffffe
or eax, 6
mov dword [rbx + 0x4c], eax
mov eax, dword [rbx + 0x2c]
mov rdx, rbp
mov rsi, qword [rbx + 0x30]
movzx ecx, byte [rbx + 0x6e]
mov byte [rbx + 0x6e], 0
mov r14d, dword [rbx + 0x28]
mov dword [rsp + 0x2c], eax
or eax, 6
movdqu xmm6, xmmword [rbx + 0x78]
mov dword [rbx + 0x2c], eax
movabs rax, 0xfffffffeefffafff
and rax, rsi
mov qword [rsp + 0x20], rsi
movsxd rsi, r8d
or rax, 0x201
shl rsi, 5
mov byte [rsp + 0x43], cl
mov qword [rbx + 0x30], rax
mov rax, qword [rbx + 0x20]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov dword [rsp + 0x44], r14d
add rax, rsi
mov r12, qword [rax + 8]
mov rcx, qword [rax]
mov rax, qword [r12 + 8]
mov qword [rsp + 0x38], rcx
mov rcx, rbx
mov rax, qword [rax]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x30], rax
call fcn.14021cc10
mov dword [rbx + 0x4c], r13d
test eax, eax
mov r15d, eax
jne 0x14021d1c8
mov rax, qword [rbx + 0x20]
movsxd r13, r14d
shl r13, 5
add r13, rax
test rdi, rdi
mov r14, qword [r13 + 8]
je 0x14021d2a8
mov rdx, qword [r14 + 8]
mov rdx, qword [rdx]
mov rcx, qword [rdx + 0x48]
mov qword [rsp + 0x60], 0
mov r9, qword [rcx]
test r9, r9
je 0x14021ce61
lea r8, [rsp + 0x60]
mov rdx, r8
call qword [r9 + 0x30]
test eax, eax
jne 0x14021d210
cmp qword [rsp + 0x60], 0
jg 0x14021d210
mov rax, qword [rbx + 0x20]
mov ecx, dword [rbx + 0x30]
or dword [rbx + 0x2c], 8
movzx edx, byte [rax + rsi + 0x10]
and ecx, 0x38
or edx, ecx
or edx, 0x20
mov r15d, edx
cmp byte [r12 + 0x11], 0
je 0x14021d248
mov eax, dword [r12 + 0x14]
cmp byte [r12 + 0x12], 0
lea edx, [rax + 1]
mov dword [r12 + 0x14], edx
jne 0x14021cf20
mov rcx, r12
call fcn.140154d30
mov rax, qword [r12 + 8]
movzx ecx, byte [rax + 0x26]
mov edx, dword [rax + 0x34]
sub edx, dword [rax + 0x38]
cmp byte [r12 + 0x11], 0
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x4c], edx
je 0x14021cf44
mov eax, dword [r12 + 0x14]
sub eax, 1
jmp 0x14021cf37
lea rdx, str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x14021ccea
lea r9, [0x1403a3634]
jmp 0x14021cd73
cmp byte [r9 + 0x16], 1
jne 0x14021cd3f
mov r9, qword [r9 + 8]
mov eax, r13d
jmp 0x14021cd6a
mov eax, r13d
xor r9d, r9d
jmp 0x14021cd6a
mov rdx, qword [r12 + 8]
movzx ecx, byte [rdx + 0x26]
mov dword [rsp + 0x48], ecx
mov ecx, dword [rdx + 0x34]
sub ecx, dword [rdx + 0x38]
mov dword [rsp + 0x4c], ecx
test eax, eax
mov dword [r12 + 0x14], eax
je 0x14021d268
mov rax, qword [rbx + 0x20]
mov rax, qword [rax + rsi + 0x18]
mov rcx, r14
mov edx, dword [rax + 0x74]
call fcn.14015d310
xor edx, edx
mov rcx, r12
call fcn.14015dab0
mov rcx, r14
mov edx, eax
call fcn.14015dab0
cmp byte [r14 + 0x11], 0
mov rsi, qword [r14 + 8]
je 0x14021cf8b
add dword [r14 + 0x14], 1
cmp byte [r14 + 0x12], 0
jne 0x14021cf8b
mov rcx, r14
call fcn.140154d30
mov rcx, qword [rsi]
mov edx, r15d
call fcn.140149c00
cmp byte [r14 + 0x11], 0
je 0x14021cfa8
sub dword [r14 + 0x14], 1
je 0x14021d2b8
lea r8, str.BEGIN
mov rdx, rbp
mov rcx, rbx
call fcn.14021ca80
test eax, eax
mov r15d, eax
jne 0x14021d160
test rdi, rdi
mov rcx, r12
sete dl
sete sil
xor r8d, r8d
movzx edx, dl
add edx, edx
call fcn.1401c2870
test eax, eax
mov r15d, eax
jne 0x14021d160
mov rax, qword [r12 + 8]
mov rdx, qword [rax]
cmp byte [rdx + 9], 5
jne 0x14021d008
test sil, sil
je 0x14021d008
mov dword [rbx + 0x74], 0
nop dword [rax]
mov ecx, dword [rsp + 0x48]
mov esi, dword [rsp + 0x4c]
mov edx, dword [rax + 0x34]
cmp ecx, esi
cmovge esi, ecx
xor r9d, r9d
mov rcx, r14
mov r8d, esi
call fcn.140161b50
test eax, eax
jne 0x14021d298
movabs rax, 0xff000000ff
test qword [rsp + 0x30], rax
je 0x14021d278
cmp byte [rbx + 0x67], 0
jne 0x14021d298
movsx edx, byte [rbx + 0x6a]
test dl, dl
js 0x14021d2c5
mov rcx, r14
call fcn.14015c940
movzx eax, byte [rsp + 0x44]
mov rdx, rbp
mov rcx, rbx
mov rsi, qword [rsp + 0x38]
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov byte [rbx + 0xc4], al
mov r9, rsi
call fcn.14021cc10
test eax, eax
mov r15d, eax
jne 0x14021d160
mov r9, rsi
mov rdx, rbp
mov rcx, rbx
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
call fcn.14021cc10
test eax, eax
mov r15d, eax
jne 0x14021d160
mov byte [rbx + 0xc4], 0
mov r9, rsi
mov rdx, rbp
mov rcx, 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
call fcn.14021cc10
and dword [rbx + 0x2c], 0xfffffffb
test eax, eax
mov r15d, eax
jne 0x14021d160
mov r9, rsi
mov rdx, rbp
mov rcx, rbx
lea r8, str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
call fcn.14021cc10
test eax, eax
mov r15d, eax
jne 0x14021d160
lea rsi, [0x1403ad958]
lea rax, [rsp + 0x5c]
lea rbp, [rsi + 0xa]
mov qword [rsp + 0x30], rax
movzx r15d, byte [rsi]
mov rcx, r12
mov r8, qword [rsp + 0x30]
mov edx, r15d
call fcn.14015cb10
movzx r8d, byte [rsi + 1]
mov edx, r15d
mov rcx, r14
add r8d, dword [rsp + 0x5c]
call fcn.1401a9450
test eax, eax
mov r15d, eax
jne 0x14021d160
add rsi, 2
cmp rsi, rbp
jne 0x14021d10d
test rdi, rdi
je 0x14021d2d4
mov rcx, r14
call fcn.1401c1720
mov r15d, eax
nop word [rax + rax]
mov eax, dword [rsp + 0x2c]
mov r9d, 1
xor r8d, r8d
mov rcx, r12
mov edx, 0xffffffff
mov byte [rbx + 0xc4], 0
movups xmmword [rbx + 0x78], xmm6
mov dword [rbx + 0x2c], eax
mov rax, qword [rsp + 0x20]
mov qword [rbx + 0x30], rax
movzx eax, byte [rsp + 0x43]
mov byte [rbx + 0x6e], al
call fcn.140161b50
mov byte [rbx + 0x65], 1
mov rcx, qword [r13 + 8]
call fcn.1401c47d0
mov qword [r13 + 8], 0
mov qword [r13 + 0x18], 0
mov rcx, rbx
call fcn.14015ef10
jmp 0x14021cd10
mov eax, dword [rsp + 0x2c]
movups xmmword [rbx + 0x78], xmm6
xor r8d, r8d
mov edx, 0xffffffff
mov byte [rbx + 0xc4], 0
mov r9d, 1
mov rcx, r12
mov dword [rbx + 0x2c], eax
mov rax, qword [rsp + 0x20]
mov qword [rbx + 0x30], rax
movzx eax, byte [rsp + 0x43]
mov byte [rbx + 0x6e], al
call fcn.140161b50
mov byte [rbx + 0x65], 1
jmp 0x14021d1b6
lea rdx, str.output_file_already_exists
mov rcx, rbx
call fcn.14016a230
mov rdx, qword [rbp]
mov rsi, rax
test rdx, rdx
je 0x14021d233
mov rcx, rbx
call fcn.1401584a0
mov qword [rbp], rsi
mov r15d, 1
jmp 0x14021d160
mov rdx, qword [r12 + 8]
movzx ecx, byte [rdx + 0x26]
mov dword [rsp + 0x48], ecx
mov ecx, dword [rdx + 0x34]
sub ecx, dword [rdx + 0x38]
mov dword [rsp + 0x4c], ecx
jmp 0x14021cf48
mov rcx, r12
call fcn.140149ec0
jmp 0x14021cf44
mov edx, dword [rbx + 0x74]
xor r9d, r9d
mov r8d, esi
mov rcx, r14
call fcn.140161b50
test eax, eax
je 0x14021d043
nop dword [rax]
mov r15d, 7
jmp 0x14021d160
mov r15d, 0x21
jmp 0x14021ce78
mov rcx, r14
call fcn.140149ec0
jmp 0x14021cfa8
mov rcx, r12
call fcn.14015b400
mov edx, eax
jmp 0x14021d059
cmp byte [r12 + 0x11], 0
je 0x14021d2f2
add dword [r12 + 0x14], 1
cmp byte [r12 + 0x12], 0
jne 0x14021d2f2
mov rcx, r12
call fcn.140154d30
cmp byte [r14 + 0x11], 0
je 0x14021d30d
add dword [r14 + 0x14], 1
cmp byte [r14 + 0x12], 0
jne 0x14021d30d
mov rcx, r14
call fcn.140154d30
mov rax, qword [r12 + 8]
lea r8, [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rax + 0x48]
mov r9, qword [rcx]
test r9, r9
je 0x14021d35e
mov rdx, qword [r14 + 8]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], r8
movsxd rax, dword [rdx + 0x34]
mov edx, dword [rdx + 0x40]
imul rax, rdx
mov edx, 0xb
mov qword [rsp + 0x60], rax
call qword [r9 + 0x50]
mov r8, qword [rsp + 0x30]
test eax, eax
mov r15d, eax
je 0x14021d35e
cmp eax, 0xc
jne 0x14021d3be
xor eax, eax
mov rdi, r8
mov ecx, 0x12
mov qword [rsp + 0x30], r8
rep stosd dword [rdi], eax
movq xmm1, r14
mov rcx, r8
mov edx, 0x7fffffff
movq xmm0, qword [r14]
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x78], 1
punpcklqdq xmm0, xmm1
movaps xmmword [rsp + 0x80], xmm0
call fcn.1401c29b0
mov rcx, qword [rsp + 0x30]
call fcn.1401c6a00
test eax, eax
mov r15d, eax
jne 0x14021d476
mov rax, qword [r12 + 8]
and word [rax + 0x28], 0xfffd
cmp byte [r14 + 0x11], 0
je 0x14021d3d0
sub dword [r14 + 0x14], 1
je 0x14021d4ba
cmp byte [r12 + 0x11], 0
je 0x14021d3e4
sub dword [r12 + 0x14], 1
je 0x14021d4ed
test r15d, r15d
jne 0x14021d160
mov rcx, r14
call fcn.1401c1720
test eax, eax
mov r15d, eax
jne 0x14021d160
mov rcx, r14
call fcn.14015b400
mov rcx, r12
mov edx, eax
call fcn.14015c940
cmp byte [r14 + 0x11], 0
je 0x14021d4da
add dword [r14 + 0x14], 1
cmp byte [r14 + 0x12], 0
jne 0x14021d4c7
mov rcx, r14
call fcn.140154d30
mov rax, qword [r14 + 8]
mov esi, dword [rax + 0x34]
sub esi, dword [rax + 0x38]
cmp byte [r14 + 0x11], 0
movzx edi, byte [rax + 0x26]
je 0x14021d455
sub dword [r14 + 0x14], 1
je 0x14021d4fa
cmp edi, esi
mov edx, dword [rax + 0x34]
mov r9d, 1
mov rcx, r12
cmovge esi, edi
mov r8d, esi
call fcn.140161b50
mov r15d, eax
jmp 0x14021d160
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 8]
mov rax, qword [rax]
cmp byte [rax + 0x10], 0
jne 0x14021d3be
add dword [rax + 0x84], 1
mov rdx, qword [rax + 0x70]
jmp 0x14021d4a4
mov dword [rdx + 0x18], 1
mov rdx, qword [rdx + 0x40]
test rdx, rdx
jne 0x14021d499
mov rcx, qword [rax + 0x120]
call fcn.140155180
jmp 0x14021d3be
mov rcx, r14
call fcn.140149ec0
jmp 0x14021d3d0
mov rax, qword [r14 + 8]
mov esi, dword [rax + 0x34]
movzx edi, byte [rax + 0x26]
sub esi, dword [rax + 0x38]
jmp 0x14021d44a
mov rax, qword [r14 + 8]
mov esi, dword [rax + 0x34]
movzx edi, byte [rax + 0x26]
sub esi, dword [rax + 0x38]
jmp 0x14021d455
mov rcx, r12
call fcn.140149ec0
jmp 0x14021d3e4
mov rcx, r14
call fcn.140149ec0
mov rax, qword [r14 + 8]
jmp 0x14021d455