Function at 0x140063a44
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
xor r12d, r12d
mov r13, r9
movsxd rdi, r8d
mov rbx, rdx
mov rbp, rcx
cmp byte [rdx + 0x61], r12b
jne 0x140063a86
lea r8, str.cannot_VACUUM_from_within_a_transaction
call fcn.140004090
mov eax, 1
jmp 0x140063e90
cmp dword [rdx + 0xd0], 1
jle 0x140063a98
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
jmp 0x140063a77
mov r14d, dword [rdx + 0x4c]
lea rcx, [0x140000000]
test r9, r9
je 0x140063add
movzx eax, word [r9 + 8]
and eax, 0x3f
cmp byte [rax + rcx + 0xb8a40], 3
je 0x140063ac6
lea r8, str.non_text_filename
mov rcx, rbp
jmp 0x140063a77
mov dl, 1
mov rcx, r9
call fcn.140020888
and dword [rbx + 0x4c], 0xfffffffe
or dword [rbx + 0x4c], 6
mov r9, rax
jmp 0x140063ae4
lea r9, [0x1400c4580]
mov eax, dword [rbx + 0x2c]
mov rcx, qword [rbx + 0x30]
mov edx, dword [rbx + 0x78]
mov dword [rsp + 0x44], eax
or eax, 6
mov dword [rsp + 0x40], edx
mov edx, dword [rbx + 0x7c]
mov dword [rbx + 0x2c], eax
mov rax, rcx
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x48], edx
mov dl, byte [rbx + 0x6a]
mov byte [rbx + 0x6a], r12b
mov byte [rsp + 0x98], dl
movabs rcx, 0xfffffffeefffafff
and rax, rcx
mov rdx, rdi
lea r8, str.ATTACH__Q_AS_vacuum_db
or rax, 0x201
shl rdx, 5
mov qword [rbx + 0x30], rax
mov rax, qword [rbx + 0x20]
mov qword [rsp + 0x50], rdx
mov rcx, qword [rax + rdx]
mov r15, qword [rax + rdx + 8]
mov rdx, rbp
mov rax, qword [r15 + 8]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rax]
movzx eax, byte [rcx + 0x10]
mov rcx, rbx
mov dword [rsp + 0x20], eax
mov eax, dword [rbx + 0x28]
mov dword [rsp + 0x30], eax
call fcn.1400638fc
mov dword [rbx + 0x4c], r14d
mov edi, eax
test eax, eax
jne 0x140063e25
movsxd r12, dword [rsp + 0x30]
shl r12, 5
add r12, qword [rbx + 0x20]
mov r14, qword [r12 + 8]
test r13, r13
je 0x140063be8
mov rax, qword [r14 + 8]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
and qword [rsp + 0x28], 0
mov rax, qword [rcx]
test rax, rax
je 0x140063be4
lea rdx, [rsp + 0x28]
call qword [rax + 0x30]
test eax, eax
jne 0x140063bc8
cmp qword [rsp + 0x28], 0
jle 0x140063be4
lea r8, str.output_file_already_exists
mov rdx, rbx
mov rcx, rbp
mov edi, 1
call fcn.140004090
jmp 0x140063e25
or dword [rbx + 0x2c], 8
mov rcx, r15
call fcn.140016988
mov rcx, qword [rbx + 0x20]
mov rdx, qword [rsp + 0x50]
mov rdx, qword [rcx + rdx + 0x18]
mov rcx, r14
mov dword [rsp + 0x28], eax
mov edx, dword [rdx + 0x74]
call fcn.140016680
xor edx, edx
mov rcx, r15
call fcn.14001670c
mov rcx, r14
mov edx, eax
call fcn.14001670c
mov edx, 0x21
mov rcx, r14
call fcn.1400167c0
lea r8, str.BEGIN
mov rdx, rbp
mov rcx, rbx
call fcn.140063804
mov edi, eax
test eax, eax
jne 0x140063e25
mov rax, r13
mov rcx, r15
neg rax
sbb edx, edx
xor r8d, r8d
not edx
and edx, 2
call fcn.140016e98
mov edi, eax
test eax, eax
jne 0x140063e25
mov rax, qword [r15 + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x140063c7c
and dword [rbx + 0x70], edi
mov rax, qword [r15 + 8]
mov edi, dword [rsp + 0x28]
xor r9d, r9d
mov edx, dword [rax + 0x34]
mov r8d, edi
mov rcx, r14
call fcn.140016898
test eax, eax
jne 0x140063e20
cmp dword [rsp + 0x20], eax
jne 0x140063cbc
mov edx, dword [rbx + 0x70]
xor r9d, r9d
mov r8d, edi
mov rcx, r14
call fcn.140016898
test eax, eax
jne 0x140063e20
cmp byte [rbx + 0x63], 0
jne 0x140063e20
mov al, byte [rbx + 0x66]
test al, al
js 0x140063cd2
movsx eax, al
jmp 0x140063cda
mov rcx, r15
call fcn.140016af0
mov edx, eax
mov rcx, r14
call fcn.140016a60
mov eax, dword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov rdx, rbp
mov rcx, rbx
mov byte [rbx + 0xbc], al
call fcn.1400638fc
mov edi, eax
test eax, eax
jne 0x140063e25
mov r9, qword [rsp + 0x38]
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, rbp
mov rcx, rbx
call fcn.1400638fc
mov edi, eax
test eax, eax
jne 0x140063e25
mov r9, qword [rsp + 0x38]
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, rbp
mov rcx, rbx
mov byte [rbx + 0xbc], al
call fcn.1400638fc
and dword [rbx + 0x2c], 0xfffffffb
mov edi, eax
test eax, eax
jne 0x140063e25
mov r9, qword [rsp + 0x38]
lea r8, str.INSERT_INTO_vacuum_db.sqlite_schema_SELECTFROM___w_.sqlite_schema_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, rbp
mov rcx, rbx
call fcn.1400638fc
mov edi, eax
test eax, eax
jne 0x140063e25
xor ebp, ebp
lea rdi, [0x140000000]
lea r8, [rsp + 0x20]
mov rcx, r15
movzx edx, byte [rdi + rbp + 0xba078]
call fcn.14001da98
movzx r8d, byte [rdi + rbp + 0xba079]
movzx edx, byte [rdi + rbp + 0xba078]
add r8d, dword [rsp + 0x20]
mov rcx, r14
call fcn.14001db1c
mov edi, eax
test eax, eax
jne 0x140063e25
add rbp, 2
cmp rbp, 0xa
jl 0x140063d7e
test r13, r13
jne 0x140063dde
mov rdx, r14
mov rcx, r15
call fcn.14001f738
mov edi, eax
test eax, eax
jne 0x140063e25
mov rcx, r14
call fcn.140017cb4
mov edi, eax
test eax, eax
jne 0x140063e25
test r13, r13
jne 0x140063e25
mov rcx, r14
call fcn.140016af0
mov rcx, r15
mov edx, eax
call fcn.140016a60
mov r11, qword [r14 + 8]
mov r8d, dword [rsp + 0x28]
mov edx, dword [r11 + 0x34]
lea r9d, [rdi + 1]
mov rcx, r15
call fcn.140016898
mov edi, eax
jmp 0x140063e25
mov edi, 7
mov eax, dword [rsp + 0x44]
xor r13d, r13d
xor r8d, r8d
mov dword [rbx + 0x2c], eax
mov rax, qword [rsp + 0x58]
lea r9d, [r13 + 1]
mov qword [rbx + 0x30], rax
mov eax, dword [rsp + 0x40]
or edx, 0xffffffff
mov dword [rbx + 0x78], eax
mov eax, dword [rsp + 0x48]
mov rcx, r15
mov dword [rbx + 0x7c], eax
mov al, byte [rsp + 0x98]
mov byte [rbx + 0xbc], r13b
mov byte [rbx + 0x6a], al
call fcn.140016898
mov byte [rbx + 0x61], 1
test r12, r12
je 0x140063e86
mov rcx, qword [r12 + 8]
call fcn.1400165b4
mov qword [r12 + 8], r13
mov qword [r12 + 0x18], r13
mov rcx, rbx
call fcn.14004074c
mov eax, edi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret