Function at 0x1400b7ab0
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rsi
push r15
sub rsp, 0x60
xor r15d, r15d
mov rbx, rdx
mov rsi, rcx
cmp byte [rdx + 0x53], r15b
jne 0x1400b7ae1
lea r8, str.cannot_VACUUM_from_within_a_transaction
call fcn.1400bc1d0
lea eax, [r15 + 1]
add rsp, 0x60
pop r15
pop rsi
pop rbx
ret
cmp dword [rdx + 0xac], 1
jle 0x1400b7b04
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
call fcn.1400bc1d0
mov eax, 1
add rsp, 0x60
pop r15
pop rsi
pop rbx
ret
mov eax, dword [rdx + 0x2c]
mov ecx, dword [rdx + 0x68]
mov dword [rsp + 0x28], eax
and eax, 0xfff5ff7f
mov qword [rsp + 0x80], rbp
or eax, 0x10202800
mov dword [rdx + 0x2c], eax
mov rax, qword [rdx + 0x20]
mov dword [rsp + 0x2c], ecx
mov ecx, dword [rdx + 0x6c]
mov dword [rsp + 0x30], ecx
movzx ecx, byte [rdx + 0x5c]
mov byte [rdx + 0x5c], r15b
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r13
movsxd r13, r8d
lea r8, str.ATTACHAS_vacuum_db
mov byte [rsp + 0x88], cl
shl r13, 5
mov qword [rsp + 0x40], r14
movsxd r14, dword [rdx + 0x28]
mov rdx, rsi
mov dword [rsp + 0x24], r14d
mov rbp, qword [rax + r13 + 8]
mov r12, qword [rax + r13]
mov rax, qword [rbp + 8]
mov rcx, qword [rax]
movzx eax, byte [rcx + 0x11]
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.140075a50
mov edi, eax
test eax, eax
jne 0x1400b7e00
mov r15, r14
shl r15, 5
add r15, qword [rbx + 0x20]
mov r14, qword [r15 + 8]
mov rcx, r14
call fcn.140094fd0
cmp byte [rbp + 0x11], dil
je 0x1400b7bc7
inc dword [rbp + 0x14]
cmp byte [rbp + 0x12], dil
jne 0x1400b7bc7
mov rcx, rbp
call fcn.14006c2f0
mov rax, qword [rbp + 8]
mov ecx, dword [rax + 0x30]
sub ecx, dword [rax + 0x34]
cmp byte [rbp + 0x11], 0
mov dword [rsp + 0x98], ecx
je 0x1400b7bec
sub dword [rbp + 0x14], 1
jne 0x1400b7bec
mov rcx, rbp
call fcn.1400d7440
mov rax, qword [rbx + 0x20]
mov rcx, qword [rax + r13 + 0x18]
mov edx, dword [rcx + 0x74]
mov rcx, r14
call fcn.140097810
xor edx, edx
mov rcx, rbp
call fcn.1400979e0
mov edx, eax
mov rcx, r14
call fcn.1400979e0
mov edx, 0x21
mov rcx, r14
call fcn.140097980
lea r8, str.BEGIN
mov rdx, rsi
mov rcx, rbx
call fcn.140075a50
mov edi, eax
test eax, eax
jne 0x1400b7e00
lea edx, [rax + 2]
mov rcx, rbp
call fcn.1400949a0
mov edi, eax
test eax, eax
jne 0x1400b7e00
mov rax, qword [rbp + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x1400b7c62
mov dword [rbx + 0x60], edi
mov rax, qword [rbp + 8]
xor r9d, r9d
mov r13d, dword [rsp + 0x98]
mov rcx, r14
mov r8d, r13d
mov edx, dword [rax + 0x30]
call fcn.1400978a0
test eax, eax
jne 0x1400b7dfb
cmp dword [rsp + 0x20], eax
jne 0x1400b7ca6
mov edx, dword [rbx + 0x60]
xor r9d, r9d
mov r8d, r13d
mov rcx, r14
call fcn.1400978a0
test eax, eax
jne 0x1400b7dfb
cmp byte [rbx + 0x55], 0
jne 0x1400b7dfb
movzx eax, byte [rbx + 0x58]
test al, al
js 0x1400b7cbd
movsx eax, al
jmp 0x1400b7cc5
mov rcx, rbp
call fcn.140095a00
mov edx, eax
mov rcx, r14
call fcn.140097780
mov eax, dword [rsp + 0x24]
lea r8, str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov r9, r12
mov byte [rbx + 0xa8], al
mov rdx, rsi
mov rcx, rbx
call fcn.140075b20
mov edi, eax
test eax, eax
jne 0x1400b7e00
mov r9, r12
lea r8, str.SELECT_sql_FROM___w_.sqlite_master_WHERE_typeindex_AND_length_sql__10
mov rdx, rsi
mov rcx, rbx
call fcn.140075b20
mov edi, eax
test eax, eax
jne 0x1400b7e00
mov r9, r12
mov byte [rbx + 0xa8], al
lea r8, str.SELECTINSERT_INTO_vacuum_db.quote_name__SELECTFROM__w_.quote_name_FROM_vacuum_db.sqlite_master_WHERE_typetableAND_coalesce_rootpage_1__0
mov rdx, rsi
mov rcx, rbx
call fcn.140075b20
and dword [rbx + 0x2c], 0xefffffff
mov edi, eax
test eax, eax
jne 0x1400b7e00
mov r9, r12
lea r8, str.INSERT_INTO_vacuum_db.sqlite_master_SELECTFROM___w_.sqlite_master_WHERE_type_IN_view_trigger__OR_typetableAND_rootpage0_
mov rdx, rsi
mov rcx, rbx
call fcn.140075b20
mov edi, eax
test eax, eax
jne 0x1400b7e00
xor esi, esi
lea r12, [0x1401bcf20]
nop dword [rax + rax]
movzx edx, byte [rsi + r12]
lea r8, [rsp + 0x98]
mov rcx, rbp
call fcn.140095a60
movzx r8d, byte [rsi + r12 + 1]
mov rcx, r14
add r8d, dword [rsp + 0x98]
movzx edx, byte [rsi + r12]
call fcn.140097f40
mov edi, eax
test eax, eax
jne 0x1400b7e00
add rsi, 2
cmp rsi, 0xa
jl 0x1400b7d70
mov rdx, r14
mov rcx, rbp
call fcn.1400951a0
mov edi, eax
test eax, eax
jne 0x1400b7e00
mov rcx, r14
call fcn.140094fd0
mov edi, eax
test eax, eax
jne 0x1400b7e00
mov rcx, r14
call fcn.140095a00
mov edx, eax
mov rcx, rbp
call fcn.140097780
mov rax, qword [r14 + 8]
lea r9d, [rdi + 1]
mov r8d, r13d
mov rcx, rbp
mov edx, dword [rax + 0x30]
call fcn.1400978a0
mov edi, eax
jmp 0x1400b7e00
mov edi, 7
mov eax, dword [rsp + 0x28]
or r8d, 0xffffffff
mov dword [rbx + 0x2c], eax
mov r9d, 1
mov eax, dword [rsp + 0x2c]
or edx, r8d
mov dword [rbx + 0x68], eax
mov rcx, rbp
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x6c], eax
movzx eax, byte [rsp + 0x88]
mov byte [rbx + 0x5c], al
mov byte [rbx + 0xa8], 0
call fcn.1400978a0
mov r14, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x80]
mov byte [rbx + 0x53], 1
test r15, r15
je 0x1400b7e75
mov rcx, qword [r15 + 8]
call fcn.140094d40
mov qword [r15 + 8], 0
mov qword [r15 + 0x18], 0
mov rcx, rbx
call fcn.1400b6740
mov eax, edi
mov rdi, qword [rsp + 0x58]
add rsp, 0x60
pop r15
pop rsi
pop rbx
ret