Function at 0x1400a1fc0
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 0x1400a1ff1
lea r8, str.cannot_VACUUM_from_within_a_transaction
call fcn.140035880
lea eax, [r15 + 1]
add rsp, 0x60
pop r15
pop rsi
pop rbx
ret
cmp dword [rdx + 0xac], 1
jle 0x1400a2014
lea r8, str.cannot_VACUUM___SQL_statements_in_progress
call fcn.140035880
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], ecx
mov ecx, dword [rdx + 0x6c]
mov dword [rsp + 0x2c], ecx
movzx ecx, byte [rdx + 0x5c]
mov byte [rdx + 0x5c], r15b
mov dword [rsp + 0x24], eax
and eax, 0xfff5ff7f
mov byte [rsp + 0x98], cl
or eax, 0x10202800
mov dword [rdx + 0x2c], eax
mov rax, qword [rdx + 0x20]
mov qword [rsp + 0x80], rbp
movsxd rcx, r8d
lea r8, str.ATTACHAS_vacuum_db
shl rcx, 5
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], r12
mov rbp, qword [rcx + rax + 8]
mov r12, qword [rcx + rax]
mov qword [rsp + 0x40], r14
movsxd r14, dword [rdx + 0x28]
mov rdx, rsi
mov rax, qword [rbp + 8]
mov dword [rsp + 0x20], r14d
mov rcx, qword [rax]
movzx eax, byte [rcx + 0x11]
mov rcx, rbx
mov byte [rsp + 0x88], al
call fcn.1400a1d30
mov edi, eax
test eax, eax
jne 0x1400a2325
mov r15, r14
mov qword [rsp + 0x48], r13
shl r15, 5
add r15, qword [rbx + 0x20]
mov r14, qword [r15 + 8]
mov rcx, r14
call fcn.14004bb50
movzx ecx, byte [rbp + 0x11]
test cl, cl
je 0x1400a20e5
inc dword [rbp + 0x14]
cmp byte [rbp + 0x12], dil
jne 0x1400a20e5
mov rcx, rbp
call fcn.140047bc0
movzx ecx, byte [rbp + 0x11]
mov rax, qword [rbp + 8]
mov r13d, dword [rax + 0x30]
sub r13d, dword [rax + 0x34]
test cl, cl
je 0x1400a2103
sub dword [rbp + 0x14], 1
jne 0x1400a2103
mov rcx, rbp
call fcn.140047b90
mov rax, qword [rbx + 0x20]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + rax + 0x18]
mov edx, dword [rcx + 0x74]
mov rcx, r14
call fcn.140049f40
xor edx, edx
mov rcx, rbp
call fcn.140049fd0
mov edx, eax
mov rcx, r14
call fcn.140049fd0
mov edx, 0x21
mov rcx, r14
call fcn.14004a120
lea r8, str.BEGIN
mov rdx, rsi
mov rcx, rbx
call fcn.1400a1d30
mov edi, eax
test eax, eax
jne 0x1400a2320
lea edx, [rax + 2]
mov rcx, rbp
call fcn.14004a920
mov edi, eax
test eax, eax
jne 0x1400a2320
mov rcx, qword [rbp + 8]
mov rax, qword [rcx]
cmp byte [rax + 9], 5
jne 0x1400a2182
mov dword [rbx + 0x60], edi
mov rcx, qword [rbp + 8]
mov edx, dword [rcx + 0x30]
xor r9d, r9d
mov rcx, r14
mov r8d, r13d
call fcn.14004a210
test eax, eax
jne 0x1400a231b
cmp byte [rsp + 0x88], al
jne 0x1400a21bd
mov edx, dword [rbx + 0x60]
xor r9d, r9d
mov r8d, r13d
mov rcx, r14
call fcn.14004a210
test eax, eax
jne 0x1400a231b
cmp byte [rbx + 0x55], 0
jne 0x1400a231b
movzx eax, byte [rbx + 0x58]
test al, al
js 0x1400a21d4
movsx eax, al
jmp 0x1400a21dc
mov rcx, rbp
call fcn.14004a470
mov edx, eax
mov rcx, r14
call fcn.14004a3e0
mov eax, dword [rsp + 0x20]
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.1400a1e00
mov edi, eax
test eax, eax
jne 0x1400a2320
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.1400a1e00
mov edi, eax
test eax, eax
jne 0x1400a2320
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.1400a1e00
and dword [rbx + 0x2c], 0xefffffff
mov edi, eax
test eax, eax
jne 0x1400a2320
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.1400a1e00
mov edi, eax
test eax, eax
jne 0x1400a2320
xor esi, esi
lea r12, [0x140139988]
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [rsi + r12]
lea r8, [rsp + 0x88]
mov rcx, rbp
call fcn.1400520b0
movzx r8d, byte [rsi + r12 + 1]
mov rcx, r14
add r8d, dword [rsp + 0x88]
movzx edx, byte [rsi + r12]
call fcn.140052140
mov edi, eax
test eax, eax
jne 0x1400a2320
add rsi, 2
cmp rsi, 0xa
jl 0x1400a2290
mov rdx, r14
mov rcx, rbp
call fcn.140054610
mov edi, eax
test eax, eax
jne 0x1400a2320
mov rcx, r14
call fcn.14004bb50
mov edi, eax
test eax, eax
jne 0x1400a2320
mov rcx, r14
call fcn.14004a470
mov edx, eax
mov rcx, rbp
call fcn.14004a3e0
mov rax, qword [r14 + 8]
lea r9d, [rdi + 1]
mov r8d, r13d
mov rcx, rbp
mov edx, dword [rax + 0x30]
call fcn.14004a210
mov edi, eax
jmp 0x1400a2320
mov edi, 7
mov r13, qword [rsp + 0x48]
mov eax, dword [rsp + 0x24]
mov edx, 0xffffffff
mov dword [rbx + 0x2c], eax
mov r8d, edx
mov eax, dword [rsp + 0x28]
mov rcx, rbp
mov dword [rbx + 0x68], eax
mov eax, dword [rsp + 0x2c]
lea r9d, [rdx + 2]
mov dword [rbx + 0x6c], eax
movzx eax, byte [rsp + 0x98]
mov byte [rbx + 0x5c], al
mov byte [rbx + 0xa8], 0
call fcn.14004a210
mov r14, qword [rsp + 0x40]
mov r12, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x80]
mov byte [rbx + 0x53], 1
test r15, r15
je 0x1400a2394
mov rcx, qword [r15 + 8]
call fcn.140049d90
mov qword [r15 + 8], 0
mov qword [r15 + 0x18], 0
mov rcx, rbx
call fcn.1400786e0
mov eax, edi
mov rdi, qword [rsp + 0x58]
add rsp, 0x60
pop r15
pop rsi
pop rbx
ret