Function at 0x1400a1170
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rdi
push r12
push r13
push r14
sub rsp, 0xf0
mov rax, qword [0x140159040]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor r12d, r12d
movsxd rbx, r8d
mov r13, r9
mov rdi, rdx
mov r14, rcx
cmp byte [rdx + 0x65], r12b
jne 0x1400a11fb
lea edx, [r12 + 0x28]
mov rcx, rdi
call fcn.140006fb0
mov rbx, rax
test rax, rax
je 0x1400a11de
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1401398a8]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1401398b8]
movsd qword [rax + 0x20], xmm0
mov rdx, qword [r14]
test rdx, rdx
je 0x1400a11ee
mov rcx, rdi
call fcn.140006bb0
mov qword [r14], rbx
mov eax, 1
jmp 0x1400a1976
cmp dword [rdx + 0xd8], 1
jle 0x1400a126d
mov edx, 0x2b
mov rcx, rdi
call fcn.140006fb0
mov rbx, rax
test rax, rax
je 0x1400a1250
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1401398d0]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1401398e0]
movsd qword [rax + 0x20], xmm0
movzx eax, word [0x1401398e8]
mov word [rbx + 0x28], ax
movzx eax, byte [0x1401398ea]
mov byte [rbx + 0x2a], al
mov rdx, qword [r14]
test rdx, rdx
je 0x1400a11ee
mov rcx, rdi
call fcn.140006bb0
mov eax, 1
mov qword [r14], rbx
jmp 0x1400a1976
mov qword [rsp + 0xe0], rsi
mov esi, dword [rdx + 0x4c]
lea rdx, [0x140000000]
test r13, r13
je 0x1400a1331
movzx ecx, word [r9 + 0x14]
mov eax, ecx
and eax, 0x3f
cmp byte [rax + rdx + 0x140530], 3
je 0x1400a12e3
mov edx, 0x12
mov rcx, rdi
call fcn.140006fb0
mov rbx, rax
test rax, rax
je 0x1400a12c6
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [rax], xmm0
movzx ecx, word [0x140139900]
mov word [rax + 0x10], cx
mov rdx, qword [r14]
test rdx, rdx
je 0x1400a12d6
mov rcx, rdi
call fcn.140006bb0
mov qword [r14], rbx
mov eax, 1
jmp 0x1400a196e
mov edx, 0x202
movzx eax, cx
and ax, dx
cmp ax, dx
jne 0x1400a1308
cmp byte [r9 + 0x16], 1
jne 0x1400a1308
mov r9, qword [r9 + 8]
and dword [rdi + 0x4c], 0xfffffffe
or dword [rdi + 0x4c], 6
jmp 0x1400a1338
test cl, 1
je 0x1400a131a
and dword [rdi + 0x4c], 0xfffffffe
xor r9d, r9d
or dword [rdi + 0x4c], 6
jmp 0x1400a1338
mov dl, 1
mov rcx, r13
call fcn.140031170
and dword [rdi + 0x4c], 0xfffffffe
mov r9, rax
or dword [rdi + 0x4c], 6
jmp 0x1400a1338
lea r9, [0x140133e28]
mov eax, dword [rdi + 0x2c]
mov rcx, qword [rdi + 0x30]
mov rdx, qword [rdi + 0x78]
mov dword [rsp + 0x38], eax
or eax, 6
mov dword [rdi + 0x2c], eax
mov rax, rcx
mov qword [rsp + 0x50], rdx
mov rdx, qword [rdi + 0x80]
mov qword [rsp + 0x48], rcx
movabs rcx, 0xfffffffeefffafff
and rax, rcx
mov qword [rsp + 0x58], rdx
movzx edx, byte [rdi + 0x6e]
or rax, 0x201
mov qword [rdi + 0x30], rax
mov rax, qword [rdi + 0x20]
mov byte [rdi + 0x6e], r12b
mov byte [rsp + 0x20], dl
mov rdx, rbx
shl rdx, 5
mov qword [rsp + 0xe8], rbp
mov qword [rsp + 0xd8], r15
mov qword [rsp + 0x40], rdx
mov rcx, qword [rdx + rax]
mov rbx, qword [rdx + rax + 8]
mov qword [rsp + 0xb0], rcx
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp byte [rcx + 0x10], r12b
jne 0x1400a13d2
mov dword [rsp + 0x30], r12d
cmp byte [rcx + 0x14], r12b
je 0x1400a13da
mov dword [rsp + 0x30], 1
movsxd r15, dword [rdi + 0x28]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rdx, r14
mov dword [rsp + 0x34], r15d
mov rcx, rdi
call fcn.1400a0ef0
mov dword [rdi + 0x4c], esi
mov ebp, eax
test eax, eax
jne 0x1400a18e6
mov rax, r15
shl rax, 5
add rax, qword [rdi + 0x20]
mov qword [rsp + 0x28], rax
mov rsi, qword [rax + 8]
test r13, r13
je 0x1400a14b3
mov rax, qword [rsi + 8]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0xb8], r12
mov rax, qword [rcx]
test rax, rax
je 0x1400a14af
lea rdx, [rsp + 0xb8]
call qword [rax + 0x30]
test eax, eax
jne 0x1400a1453
cmp qword [rsp + 0xb8], r12
jle 0x1400a14af
mov ebp, 1
mov rcx, rdi
lea edx, [rbp + 0x1a]
call fcn.140006fb0
mov rsi, rax
test rax, rax
je 0x1400a1497
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x140139930]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x140139938]
mov word [rax + 0x18], cx
movzx eax, byte [0x14013993a]
mov byte [rsi + 0x1a], al
mov rdx, qword [r14]
test rdx, rdx
je 0x1400a14a7
mov rcx, rdi
call fcn.140006bb0
mov qword [r14], rsi
jmp 0x1400a18e1
or dword [rdi + 0x2c], 8
mov rcx, rbx
call fcn.140022de0
mov rcx, qword [rdi + 0x20]
mov r12d, eax
mov rdx, qword [rsp + 0x40]
mov rdx, qword [rdx + rcx + 0x18]
mov rcx, rsi
mov edx, dword [rdx + 0x74]
call fcn.140022a50
xor edx, edx
mov rcx, rbx
call fcn.140022af0
mov edx, eax
mov rcx, rsi
call fcn.140022af0
cmp byte [rsi + 0x11], 0
mov r15, qword [rsi + 8]
je 0x1400a1506
inc dword [rsi + 0x14]
cmp byte [rsi + 0x12], 0
jne 0x1400a1506
mov rcx, rsi
call fcn.14001f980
mov rax, qword [r15]
mov dword [rax + 0xb], 1
and byte [rax + 0x19], 0xfe
mov byte [rax + 0xf], 0
cmp byte [rsi + 0x11], 0
je 0x1400a152c
sub dword [rsi + 0x14], 1
jne 0x1400a152c
mov rcx, rsi
call fcn.14001f950
lea r8, str.BEGIN
mov rdx, r14
mov rcx, rdi
call fcn.1400a0cc0
mov ebp, eax
test eax, eax
jne 0x1400a18e1
xor edx, edx
mov eax, 2
test r13, r13
mov rcx, rbx
cmove edx, eax
xor r8d, r8d
call fcn.140023450
mov ebp, eax
test eax, eax
jne 0x1400a18e1
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x1400a1580
test r13, r13
jne 0x1400a1580
mov dword [rdi + 0x74], r13d
mov rax, qword [rbx + 8]
xor r9d, r9d
mov r8d, r12d
mov rcx, rsi
mov edx, dword [rax + 0x34]
call fcn.140022cc0
test eax, eax
jne 0x1400a18dc
cmp dword [rsp + 0x30], eax
jne 0x1400a15bc
mov edx, dword [rdi + 0x74]
xor r9d, r9d
mov r8d, r12d
mov rcx, rsi
call fcn.140022cc0
test eax, eax
jne 0x1400a18dc
cmp byte [rdi + 0x67], 0
jne 0x1400a18dc
movsx eax, byte [rdi + 0x6a]
test al, al
jns 0x1400a15d6
mov rcx, rbx
call fcn.140022f40
mov edx, eax
mov rcx, rsi
call fcn.140022eb0
mov eax, dword [rsp + 0x34]
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.1400a0ef0
mov ebp, eax
test eax, eax
jne 0x1400a18e1
mov r9, r15
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, r14
mov rcx, rdi
call fcn.1400a0ef0
mov ebp, eax
test eax, eax
jne 0x1400a18e1
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.1400a0ef0
and dword [rdi + 0x2c], 0xfffffffb
mov ebp, eax
test eax, eax
jne 0x1400a18e1
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.1400a0ef0
mov ebp, eax
test eax, eax
jne 0x1400a18e1
xor r14d, r14d
lea r12, [0x140000000]
cmp byte [rbx + 0x11], 0
movzx ebp, byte [r14 + r12 + 0x13ac38]
mov r15, qword [rbx + 8]
je 0x1400a16a6
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], 0
jne 0x1400a16a6
mov rcx, rbx
call fcn.14001f980
cmp ebp, 0xf
jne 0x1400a16b9
mov rax, qword [r15]
mov ebp, dword [rax + 0x84]
add ebp, dword [rbx + 0x1c]
jmp 0x1400a16cd
mov rax, qword [r15 + 0x18]
lea edx, [rbp*4 + 0x24]
mov rcx, qword [rax + 0x50]
mov ebp, dword [rdx + rcx]
bswap ebp
cmp byte [rbx + 0x11], 0
je 0x1400a16e1
sub dword [rbx + 0x14], 1
jne 0x1400a16e1
mov rcx, rbx
call fcn.14001f950
movzx r8d, byte [r14 + r12 + 0x13ac39]
mov rcx, rsi
movzx edx, byte [r14 + r12 + 0x13ac38]
add r8d, ebp
call fcn.14002d6b0
mov ebp, eax
test eax, eax
jne 0x1400a18e1
add r14, 2
cmp r14, 0xa
jl 0x1400a1682
test r13, r13
jne 0x1400a1858
cmp byte [rbx + 0x11], r13b
je 0x1400a1736
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], r13b
jne 0x1400a1736
mov rcx, rbx
call fcn.14001f980
cmp byte [rsi + 0x11], 0
je 0x1400a174d
inc dword [rsi + 0x14]
cmp byte [rsi + 0x12], 0
jne 0x1400a174d
mov rcx, rsi
call fcn.14001f980
mov rax, qword [rbx + 8]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov r9, qword [rcx]
test r9, r9
je 0x1400a1798
mov rax, qword [rsi + 8]
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 0x1400a1828
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.14002f2c0
lea rcx, [rsp + 0x60]
call fcn.14002f9d0
mov ebp, eax
test eax, eax
jne 0x1400a1811
mov rax, qword [rbx + 8]
mov ecx, 0xfffd
and word [rax + 0x28], cx
jmp 0x1400a1828
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax + 8]
mov rcx, qword [rcx]
cmp byte [rcx + 0x10], 0
jne 0x1400a1828
call fcn.140016d30
cmp byte [rsi + 0x11], 0
je 0x1400a183c
sub dword [rsi + 0x14], 1
jne 0x1400a183c
mov rcx, rsi
call fcn.14001f950
cmp byte [rbx + 0x11], 0
je 0x1400a1850
sub dword [rbx + 0x14], 1
jne 0x1400a1850
mov rcx, rbx
call fcn.14001f950
test ebp, ebp
jne 0x1400a18e1
cmp byte [rsi + 0x11], 0
je 0x1400a186f
inc dword [rsi + 0x14]
cmp byte [rsi + 0x12], 0
jne 0x1400a186f
mov rcx, rsi
call fcn.14001f980
xor edx, edx
mov rcx, rsi
call fcn.1400246f0
mov ebp, eax
test eax, eax
jne 0x1400a188b
xor edx, edx
mov rcx, rsi
call fcn.140024930
mov ebp, eax
cmp byte [rsi + 0x11], 0
je 0x1400a189f
sub dword [rsi + 0x14], 1
jne 0x1400a189f
mov rcx, rsi
call fcn.14001f950
test ebp, ebp
jne 0x1400a18e1
test r13, r13
jne 0x1400a18e1
mov rcx, rsi
call fcn.140022f40
mov edx, eax
mov rcx, rbx
call fcn.140022eb0
mov rcx, rsi
call fcn.140022de0
mov rcx, qword [rsi + 8]
lea r9d, [rbp + 1]
mov r8d, eax
mov edx, dword [rcx + 0x34]
mov rcx, rbx
call fcn.140022cc0
mov ebp, eax
jmp 0x1400a18e1
mov ebp, 7
mov r12, qword [rsp + 0x28]
mov eax, dword [rsp + 0x38]
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.140022cc0
mov r15, qword [rsp + 0xd8]
mov byte [rdi + 0x65], 1
test r12, r12
je 0x1400a195c
mov rcx, qword [r12 + 8]
call fcn.140022810
mov qword [r12 + 8], 0
mov qword [r12 + 0x18], 0
mov rcx, rdi
call fcn.1400607f0
mov eax, ebp
mov rbp, qword [rsp + 0xe8]
mov rsi, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400fbcf0
add rsp, 0xf0
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret