Function at 0x1400fb3f0
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rdi
push r14
push r15
sub rsp, 0xf8
mov rax, qword [0x140181020]
xor rax, rsp
mov qword [rsp + 0xc0], rax
cmp byte [rdx + 0x65], 0
mov rdi, rdx
mov qword [rsp + 0x38], r9
mov r14, rcx
movsxd rbx, r8d
mov r15d, 1
mov qword [rsp + 0x40], 0
jne 0x1400fb484
lea edx, [r15 + 0x27]
mov rcx, rdi
call fcn.14005d9a0
mov rbx, rax
test rax, rax
je 0x1400fb469
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14016cb28]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x14016cb38]
movsd qword [rax + 0x20], xmm0
mov rdx, qword [r14]
test rdx, rdx
je 0x1400fb479
mov rcx, rdi
call fcn.14005d4c0
mov qword [r14], rbx
mov eax, r15d
jmp 0x1400fbc4b
cmp dword [rdx + 0xd8], r15d
jle 0x1400fb4f4
mov edx, 0x2b
mov rcx, rdi
call fcn.14005d9a0
mov rbx, rax
test rax, rax
je 0x1400fb4d9
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14016cb50]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x14016cb60]
movsd qword [rax + 0x20], xmm0
movzx eax, word [0x14016cb68]
mov word [rbx + 0x28], ax
movzx eax, byte [0x14016cb6a]
mov byte [rbx + 0x2a], al
mov rdx, qword [r14]
test rdx, rdx
je 0x1400fb479
mov rcx, rdi
call fcn.14005d4c0
mov eax, r15d
mov qword [r14], rbx
jmp 0x1400fbc4b
mov qword [rsp + 0xe8], rsi
mov esi, dword [rdx + 0x4c]
lea rdx, [0x140000000]
test r9, r9
je 0x1400fb5b7
movzx ecx, word [r9 + 0x14]
mov eax, ecx
and eax, 0x3f
cmp byte [rax + rdx + 0x165690], 3
je 0x1400fb568
mov edx, 0x12
mov rcx, rdi
call fcn.14005d9a0
mov rbx, rax
test rax, rax
je 0x1400fb54d
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [rax], xmm0
movzx ecx, word [0x14016cb80]
mov word [rax + 0x10], cx
mov rdx, qword [r14]
test rdx, rdx
je 0x1400fb55d
mov rcx, rdi
call fcn.14005d4c0
mov qword [r14], rbx
mov eax, r15d
jmp 0x1400fbc43
mov edx, 0x202
movzx eax, cx
and ax, dx
cmp ax, dx
jne 0x1400fb58c
cmp byte [r9 + 0x16], r15b
jne 0x1400fb58c
mov r9, qword [r9 + 8]
and dword [rdi + 0x4c], 0xfffffffe
or dword [rdi + 0x4c], 6
jmp 0x1400fb5be
test r15b, cl
je 0x1400fb59e
and dword [rdi + 0x4c], 0xfffffffe
xor r9d, r9d
or dword [rdi + 0x4c], 6
jmp 0x1400fb5be
movzx edx, r15b
mov rcx, r9
call fcn.1400889f0
and dword [rdi + 0x4c], 0xfffffffe
mov r9, rax
or dword [rdi + 0x4c], 6
jmp 0x1400fb5be
lea r9, [0x14015f218]
mov eax, dword [rdi + 0x2c]
mov rcx, qword [rdi + 0x30]
mov rdx, qword [rdi + 0x78]
mov dword [rsp + 0x34], eax
or eax, 6
mov dword [rdi + 0x2c], eax
mov rax, rcx
mov qword [rsp + 0x48], rcx
movabs rcx, 0xfffffffeefffafff
and rax, rcx
mov qword [rsp + 0xf0], rbp
or rax, 0x201
mov qword [rsp + 0xe0], r12
mov qword [rdi + 0x30], rax
mov r12, rbx
mov rax, qword [rdi + 0x20]
shl r12, 5
mov qword [rsp + 0x50], rdx
mov rdx, qword [rdi + 0x80]
mov qword [rsp + 0x58], rdx
movzx edx, byte [rdi + 0x6e]
mov byte [rdi + 0x6e], 0
mov rcx, qword [rax + r12]
mov rbx, qword [rax + r12 + 8]
mov qword [rsp + 0xb0], rcx
mov qword [rsp + 0xd8], r13
mov byte [rsp + 0x20], dl
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp byte [rcx + 0x10], 0
jne 0x1400fb65e
cmp byte [rcx + 0x14], 0
mov dword [rsp + 0x24], 0
je 0x1400fb663
mov dword [rsp + 0x24], r15d
movsxd r13, dword [rdi + 0x28]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rdx, r14
mov dword [rsp + 0x30], r13d
mov rcx, rdi
call fcn.1400fb170
mov dword [rdi + 0x4c], esi
mov ebp, eax
test eax, eax
jne 0x1400fbbb1
mov rax, r13
shl rax, 5
add rax, qword [rdi + 0x20]
cmp qword [rsp + 0x38], 0
mov qword [rsp + 0x40], rax
mov rsi, qword [rax + 8]
lea rbp, [rsi + 8]
mov qword [rsp + 0x28], rbp
je 0x1400fb762
mov rax, qword [rbp]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0xb8], 0
mov rax, qword [rcx]
test rax, rax
je 0x1400fb749
lea rdx, [rsp + 0xb8]
call qword [rax + 0x30]
test eax, eax
jne 0x1400fb6ed
cmp qword [rsp + 0xb8], 0
jle 0x1400fb749
mov edx, 0x1b
mov rcx, rdi
mov ebp, r15d
call fcn.14005d9a0
mov rsi, rax
test rax, rax
je 0x1400fb731
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x14016cbb0]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x14016cbb8]
mov word [rax + 0x18], cx
movzx eax, byte [0x14016cbba]
mov byte [rsi + 0x1a], al
mov rdx, qword [r14]
test rdx, rdx
je 0x1400fb741
mov rcx, rdi
call fcn.14005d4c0
mov qword [r14], rsi
jmp 0x1400fbbb1
mov rax, qword [rdi + 0x20]
or dword [rdi + 0x2c], 8
movzx r15d, byte [r12 + rax + 0x10]
mov eax, dword [rdi + 0x30]
and eax, 0x38
or r15d, eax
jmp 0x1400fb767
mov qword [rsp + 0x28], rbp
mov rcx, rbx
call fcn.14007a050
mov rcx, qword [rdi + 0x20]
mov r13d, eax
mov rdx, qword [r12 + rcx + 0x18]
mov rcx, rsi
mov edx, dword [rdx + 0x74]
call fcn.140079dc0
xor edx, edx
mov rcx, rbx
call fcn.140079e60
mov edx, eax
mov rcx, rsi
call fcn.140079e60
cmp byte [rsi + 0x11], 0
mov rbp, qword [rbp]
je 0x1400fb7b5
inc dword [rsi + 0x14]
cmp byte [rsi + 0x12], 0
jne 0x1400fb7b5
mov rcx, rsi
call fcn.140076be0
mov rcx, qword [rbp]
or r15d, 0x20
mov edx, r15d
call fcn.14006fac0
cmp byte [rsi + 0x11], 0
je 0x1400fb7d9
sub dword [rsi + 0x14], 1
jne 0x1400fb7d9
mov rcx, rsi
call fcn.140076bb0
lea r8, str.BEGIN
mov rdx, r14
mov rcx, rdi
call fcn.1400faf40
mov ebp, eax
test eax, eax
jne 0x1400fbbb1
mov r12, qword [rsp + 0x38]
xor edx, edx
mov eax, 2
test r12, r12
mov rcx, rbx
cmove edx, eax
xor r8d, r8d
call fcn.14007a6c0
mov ebp, eax
test eax, eax
jne 0x1400fbbb1
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x1400fb831
test r12, r12
jne 0x1400fb831
mov dword [rdi + 0x74], ebp
mov rax, qword [rbx + 8]
xor r9d, r9d
mov r8d, r13d
mov rcx, rsi
mov edx, dword [rax + 0x34]
call fcn.140079f30
test eax, eax
jne 0x1400fbbac
cmp dword [rsp + 0x24], eax
jne 0x1400fb86d
mov edx, dword [rdi + 0x74]
xor r9d, r9d
mov r8d, r13d
mov rcx, rsi
call fcn.140079f30
test eax, eax
jne 0x1400fbbac
cmp byte [rdi + 0x67], 0
jne 0x1400fbbac
movsx eax, byte [rdi + 0x6a]
test al, al
jns 0x1400fb887
mov rcx, rbx
call fcn.14007a1b0
mov edx, eax
mov rcx, rsi
call fcn.14007a120
mov eax, dword [rsp + 0x30]
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov r15, qword [rsp + 0xb0]
mov rdx, r14
mov r9, r15
mov byte [rdi + 0xc4], al
mov rcx, rdi
call fcn.1400fb170
mov ebp, eax
test eax, eax
jne 0x1400fbbb1
mov r9, r15
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, r14
mov rcx, rdi
call fcn.1400fb170
mov ebp, eax
test eax, eax
jne 0x1400fbbb1
mov r9, r15
mov byte [rdi + 0xc4], al
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, r14
mov rcx, rdi
call fcn.1400fb170
and dword [rdi + 0x2c], 0xfffffffb
mov ebp, eax
test eax, eax
jne 0x1400fbbb1
mov r9, r15
lea r8, str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, r14
mov rcx, rdi
call fcn.1400fb170
mov ebp, eax
test eax, eax
jne 0x1400fbbb1
xor r14d, r14d
lea r13, [0x140000000]
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [rbx + 0x11]
movzx ebp, byte [r14 + r13 + 0x15fd78]
mov r15, qword [rbx + 8]
test r8b, r8b
je 0x1400fb96d
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x1400fb96d
mov rcx, rbx
call fcn.140076be0
movzx r8d, byte [rbx + 0x11]
cmp ebp, 0xf
jne 0x1400fb980
mov rax, qword [r15]
mov ebp, dword [rax + 0x84]
add ebp, dword [rbx + 0x1c]
jmp 0x1400fb994
mov rax, qword [r15 + 0x18]
lea edx, [rbp*4 + 0x24]
mov rcx, qword [rax + 0x50]
mov ebp, dword [rdx + rcx]
bswap ebp
test r8b, r8b
je 0x1400fb9a7
sub dword [rbx + 0x14], 1
jne 0x1400fb9a7
mov rcx, rbx
call fcn.140076bb0
movzx r8d, byte [r14 + r13 + 0x15fd79]
mov rcx, rsi
movzx edx, byte [r14 + r13 + 0x15fd78]
add r8d, ebp
call fcn.140084d00
mov ebp, eax
test eax, eax
jne 0x1400fbbb1
add r14, 2
cmp r14, 0xa
jl 0x1400fb940
test r12, r12
jne 0x1400fbb24
cmp byte [rbx + 0x11], r12b
je 0x1400fb9fc
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], r12b
jne 0x1400fb9fc
mov rcx, rbx
call fcn.140076be0
cmp byte [rsi + 0x11], 0
je 0x1400fba13
inc dword [rsi + 0x14]
cmp byte [rsi + 0x12], 0
jne 0x1400fba13
mov rcx, rsi
call fcn.140076be0
mov rax, qword [rbx + 8]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov r9, qword [rcx]
test r9, r9
je 0x1400fba62
mov rax, qword [r14]
lea r8, [rsp + 0xb0]
mov edx, dword [rax + 0x40]
movsxd rax, dword [rax + 0x34]
imul rdx, rax
mov qword [rsp + 0xb0], rdx
mov edx, 0xb
call qword [r9 + 0x50]
xor ebp, ebp
cmp eax, 0xc
cmovne ebp, eax
test ebp, ebp
jne 0x1400fbaf2
mov rax, qword [rsi]
lea rcx, [rsp + 0x60]
xorps xmm0, xmm0
mov qword [rsp + 0x80], rax
mov edx, 0x7fffffff
movdqa xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 1
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x68], rbx
call fcn.140086a20
lea rcx, [rsp + 0x60]
call fcn.140087150
mov ebp, eax
test eax, eax
jne 0x1400fbadb
mov rax, qword [rbx + 8]
mov ecx, 0xfffd
and word [rax + 0x28], cx
jmp 0x1400fbaf2
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax + 8]
mov rcx, qword [rcx]
cmp byte [rcx + 0x10], 0
jne 0x1400fbaf2
call fcn.14006dee0
cmp byte [rsi + 0x11], 0
je 0x1400fbb06
sub dword [rsi + 0x14], 1
jne 0x1400fbb06
mov rcx, rsi
call fcn.140076bb0
cmp byte [rbx + 0x11], 0
je 0x1400fbb1a
sub dword [rbx + 0x14], 1
jne 0x1400fbb1a
mov rcx, rbx
call fcn.140076bb0
test ebp, ebp
jne 0x1400fbbb1
jmp 0x1400fbb29
mov r14, qword [rsp + 0x28]
cmp byte [rsi + 0x11], 0
je 0x1400fbb40
inc dword [rsi + 0x14]
cmp byte [rsi + 0x12], 0
jne 0x1400fbb40
mov rcx, rsi
call fcn.140076be0
xor edx, edx
mov rcx, rsi
call fcn.14007b990
mov ebp, eax
test eax, eax
jne 0x1400fbb5c
xor edx, edx
mov rcx, rsi
call fcn.14007bbe0
mov ebp, eax
cmp byte [rsi + 0x11], 0
je 0x1400fbb70
sub dword [rsi + 0x14], 1
jne 0x1400fbb70
mov rcx, rsi
call fcn.140076bb0
test ebp, ebp
jne 0x1400fbbb1
test r12, r12
jne 0x1400fbbb1
mov rcx, rsi
call fcn.14007a1b0
mov edx, eax
mov rcx, rbx
call fcn.14007a120
mov rcx, rsi
call fcn.14007a050
mov rcx, qword [r14]
lea r9d, [rbp + 1]
mov r8d, eax
mov edx, dword [rcx + 0x34]
mov rcx, rbx
call fcn.140079f30
mov ebp, eax
jmp 0x1400fbbb1
mov ebp, 7
mov eax, dword [rsp + 0x34]
mov r9d, 1
mov dword [rdi + 0x2c], eax
xor r8d, r8d
mov rax, qword [rsp + 0x48]
mov rcx, rbx
mov qword [rdi + 0x30], rax
mov rax, qword [rsp + 0x50]
lea edx, [r9 - 2]
mov qword [rdi + 0x78], rax
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x80], rax
movzx eax, byte [rsp + 0x20]
mov byte [rdi + 0x6e], al
mov byte [rdi + 0xc4], 0
call fcn.140079f30
mov rbx, qword [rsp + 0x40]
mov r13, qword [rsp + 0xd8]
mov r12, qword [rsp + 0xe0]
mov byte [rdi + 0x65], 1
test rbx, rbx
je 0x1400fbc31
mov rcx, qword [rbx + 8]
call fcn.140079b80
mov qword [rbx + 8], 0
mov qword [rbx + 0x18], 0
mov rcx, rdi
call fcn.1400b9260
mov eax, ebp
mov rbp, qword [rsp + 0xf0]
mov rsi, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14012f610
add rsp, 0xf8
pop r15
pop r14
pop rdi
pop rbx
ret