Function at 0x1400d60c0
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rdi
push r12
push r13
push r14
sub rsp, 0x80
mov rax, qword [0x1401c4de0]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor r12d, r12d
movsxd rdi, r8d
mov r13, r9
mov rbx, rdx
mov r14, rcx
cmp byte [rdx + 0x61], r12b
jne 0x1400d619d
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400d615c
cmp qword [rdx + 0x2e0], r12
je 0x1400d6116
mov rdx, rcx
mov rcx, rbx
call fcn.140091d10
jmp 0x1400d615c
cmp rcx, qword [rdx + 0x1d0]
jae 0x1400d6157
cmp rcx, qword [rdx + 0x1c0]
jb 0x1400d613b
mov rax, qword [rdx + 0x1b8]
mov qword [rcx], rax
mov qword [rdx + 0x1b8], rcx
jmp 0x1400d615c
cmp rcx, qword [rdx + 0x1c8]
jb 0x1400d6157
mov rax, qword [rdx + 0x1a8]
mov qword [rcx], rax
mov qword [rdx + 0x1a8], rcx
jmp 0x1400d615c
call fcn.14006abe0
mov edx, 0x28
mov rcx, rbx
call fcn.1400b31d0
test rax, rax
je 0x1400d6190
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14018f038]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x14018f048]
movsd qword [rax + 0x20], xmm0
mov qword [r14], rax
mov eax, 1
jmp 0x1400d683c
cmp dword [rdx + 0xd0], 1
jle 0x1400d6264
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400d620e
cmp qword [rdx + 0x2e0], r12
je 0x1400d61c8
mov rdx, rcx
mov rcx, rbx
call fcn.140091d10
jmp 0x1400d620e
cmp rcx, qword [rdx + 0x1d0]
jae 0x1400d6209
cmp rcx, qword [rdx + 0x1c0]
jb 0x1400d61ed
mov rax, qword [rdx + 0x1b8]
mov qword [rcx], rax
mov qword [rdx + 0x1b8], rcx
jmp 0x1400d620e
cmp rcx, qword [rdx + 0x1c8]
jb 0x1400d6209
mov rax, qword [rdx + 0x1a8]
mov qword [rcx], rax
mov qword [rdx + 0x1a8], rcx
jmp 0x1400d620e
call fcn.14006abe0
mov edx, 0x2b
mov rcx, rbx
call fcn.1400b31d0
test rax, rax
je 0x1400d6257
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14018f060]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x14018f070]
movsd qword [rax + 0x20], xmm0
movzx ecx, word [0x14018f078]
mov word [rax + 0x28], cx
movzx ecx, byte [0x14018f07a]
mov byte [rax + 0x2a], cl
mov qword [r14], rax
mov eax, 1
jmp 0x1400d683c
mov qword [rsp + 0x78], rbp
mov ebp, dword [rdx + 0x4c]
lea rdx, [0x140000000]
test r13, r13
je 0x1400d637a
movzx ecx, word [r9 + 8]
mov eax, ecx
and eax, 0x3f
cmp byte [rax + rdx + 0x185b20], 3
je 0x1400d632c
mov rcx, qword [r14]
test rcx, rcx
je 0x1400d62f8
cmp qword [rbx + 0x2e0], r12
je 0x1400d62b2
mov rdx, rcx
mov rcx, rbx
call fcn.140091d10
jmp 0x1400d62f8
cmp rcx, qword [rbx + 0x1d0]
jae 0x1400d62f3
cmp rcx, qword [rbx + 0x1c0]
jb 0x1400d62d7
mov rax, qword [rbx + 0x1b8]
mov qword [rcx], rax
mov qword [rbx + 0x1b8], rcx
jmp 0x1400d62f8
cmp rcx, qword [rbx + 0x1c8]
jb 0x1400d62f3
mov rax, qword [rbx + 0x1a8]
mov qword [rcx], rax
mov qword [rbx + 0x1a8], rcx
jmp 0x1400d62f8
call fcn.14006abe0
mov edx, 0x12
mov rcx, rbx
call fcn.1400b31d0
test rax, rax
je 0x1400d631f
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [rax], xmm0
movzx ecx, word [0x14018f090]
mov word [rax + 0x10], cx
mov qword [r14], rax
mov eax, 1
jmp 0x1400d6837
mov edx, 0x202
movzx eax, cx
and ax, dx
cmp ax, dx
jne 0x1400d6351
cmp byte [r9 + 0xa], 1
jne 0x1400d6351
mov r9, qword [r9 + 0x10]
and dword [rbx + 0x4c], 0xfffffffe
or dword [rbx + 0x4c], 6
jmp 0x1400d6381
test cl, 1
je 0x1400d6363
and dword [rbx + 0x4c], 0xfffffffe
xor r9d, r9d
or dword [rbx + 0x4c], 6
jmp 0x1400d6381
mov dl, 1
mov rcx, r13
call fcn.140101c10
and dword [rbx + 0x4c], 0xfffffffe
mov r9, rax
or dword [rbx + 0x4c], 6
jmp 0x1400d6381
lea r9, [0x1401a0f00]
mov eax, dword [rbx + 0x2c]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rcx, qword [rbx + 0x30]
mov edx, dword [rbx + 0x78]
mov dword [rsp + 0x28], eax
or eax, 6
mov dword [rbx + 0x2c], eax
mov rax, rcx
mov qword [rsp + 0x40], rcx
movabs rcx, 0xfffffffeefffafff
and rax, rcx
mov dword [rsp + 0x2c], edx
mov edx, dword [rbx + 0x7c]
or rax, 0x201
mov qword [rbx + 0x30], rax
mov rcx, rdi
mov rax, qword [rbx + 0x20]
shl rcx, 5
mov dword [rsp + 0x30], edx
movzx edx, byte [rbx + 0x6a]
mov byte [rbx + 0x6a], r12b
mov rdi, qword [rcx + rax + 8]
mov qword [rsp + 0x38], rcx
mov byte [rsp + 0x21], dl
mov rdx, r14
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], r15
mov r15, qword [rcx + rax]
mov rax, qword [rdi + 8]
mov rcx, qword [rax]
movzx eax, byte [rcx + 0x10]
mov rcx, rbx
mov byte [rsp + 0x20], al
mov eax, dword [rbx + 0x28]
mov dword [rsp + 0x24], eax
call fcn.140081e30
mov dword [rbx + 0x4c], ebp
mov esi, eax
test eax, eax
jne 0x1400d67c2
movsxd r12, dword [rsp + 0x24]
shl r12, 5
add r12, qword [rbx + 0x20]
mov rbp, qword [r12 + 8]
test r13, r13
je 0x1400d6531
mov rax, qword [rbp + 8]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0x48], 0
mov rax, qword [rcx]
test rax, rax
je 0x1400d652d
mov rax, qword [rax + 0x30]
lea rdx, [rsp + 0x48]
call qword [case.0x1400c8de2.0]
test eax, eax
jne 0x1400d647d
cmp qword [rsp + 0x48], 0
jle 0x1400d652d
mov rcx, qword [r14]
mov esi, 1
test rcx, rcx
je 0x1400d64e7
cmp qword [rbx + 0x2e0], 0
je 0x1400d64a1
mov rdx, rcx
mov rcx, rbx
call fcn.140091d10
jmp 0x1400d64e7
cmp rcx, qword [rbx + 0x1d0]
jae 0x1400d64e2
cmp rcx, qword [rbx + 0x1c0]
jb 0x1400d64c6
mov rax, qword [rbx + 0x1b8]
mov qword [rcx], rax
mov qword [rbx + 0x1b8], rcx
jmp 0x1400d64e7
cmp rcx, qword [rbx + 0x1c8]
jb 0x1400d64e2
mov rax, qword [rbx + 0x1a8]
mov qword [rcx], rax
mov qword [rbx + 0x1a8], rcx
jmp 0x1400d64e7
call fcn.14006abe0
mov edx, 0x1b
mov rcx, rbx
call fcn.1400b31d0
test rax, rax
je 0x1400d6525
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x14018f0c0]
movsd qword [rax + 0x10], xmm1
movzx ecx, word [0x14018f0c8]
mov word [rax + 0x18], cx
movzx ecx, byte [0x14018f0ca]
mov byte [rax + 0x1a], cl
mov qword [r14], rax
jmp 0x1400d67c2
or dword [rbx + 0x2c], 8
mov rcx, rdi
call fcn.1400ab110
mov rcx, qword [rbx + 0x20]
mov rdx, qword [rsp + 0x38]
mov dword [rsp + 0x48], eax
mov rdx, qword [rcx + rdx + 0x18]
mov rcx, rbp
mov edx, dword [rdx + 0x74]
call fcn.1400ad110
xor edx, edx
mov rcx, rdi
call fcn.1400ad3b0
mov edx, eax
mov rcx, rbp
call fcn.1400ad3b0
mov edx, 0x21
mov rcx, rbp
call fcn.1400ad2b0
lea r8, str.BEGIN
mov rdx, r14
mov rcx, rbx
call fcn.140081c50
mov esi, eax
test eax, eax
jne 0x1400d67c2
xor edx, edx
mov eax, 2
test r13, r13
mov rcx, rdi
cmove edx, eax
xor r8d, r8d
call fcn.1400a9f30
mov esi, eax
test eax, eax
jne 0x1400d67c2
mov rax, qword [rdi + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x1400d65c5
mov dword [rbx + 0x70], esi
mov rax, qword [rdi + 8]
xor r9d, r9d
mov esi, dword [rsp + 0x48]
mov rcx, rbp
mov r8d, esi
mov edx, dword [rax + 0x34]
call fcn.1400ad1b0
test eax, eax
jne 0x1400d67bd
cmp byte [rsp + 0x20], al
jne 0x1400d6605
mov edx, dword [rbx + 0x70]
xor r9d, r9d
mov r8d, esi
mov rcx, rbp
call fcn.1400ad1b0
test eax, eax
jne 0x1400d67bd
cmp byte [rbx + 0x63], 0
jne 0x1400d67bd
movsx eax, byte [rbx + 0x66]
test al, al
jns 0x1400d661f
mov rcx, rdi
call fcn.1400ab020
mov edx, eax
mov rcx, rbp
call fcn.1400ad080
mov eax, dword [rsp + 0x24]
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typetableAND_name__sqlite_sequence_AND_coalesce_rootpage_1__0
mov r9, r15
mov byte [rbx + 0xbc], al
mov rdx, r14
mov rcx, rbx
call fcn.140081e30
mov esi, eax
test eax, eax
jne 0x1400d67c2
mov r9, r15
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, r14
mov rcx, rbx
call fcn.140081e30
mov esi, eax
test eax, eax
jne 0x1400d67c2
mov r9, r15
mov byte [rbx + 0xbc], 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, rbx
call fcn.140081e30
and dword [rbx + 0x2c], 0xfffffffb
mov esi, eax
test eax, eax
jne 0x1400d67c2
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, rbx
call fcn.140081e30
mov esi, eax
test eax, eax
jne 0x1400d67c2
xor r14d, r14d
nop dword [rax]
movzx r8d, byte [rdi + 0x11]
lea rax, [0x140000000]
movzx esi, byte [r14 + rax + 0x185c68]
mov r15, qword [rdi + 8]
test r8b, r8b
je 0x1400d66f4
inc dword [rdi + 0x14]
cmp byte [rdi + 0x12], 0
jne 0x1400d66f4
mov rcx, rdi
call fcn.140077800
movzx r8d, byte [rdi + 0x11]
cmp esi, 0xf
jne 0x1400d6707
mov rax, qword [r15]
mov esi, dword [rax + 0x84]
add esi, dword [rdi + 0x1c]
jmp 0x1400d671b
mov rax, qword [r15 + 0x18]
lea edx, [rsi*4 + 0x24]
mov rcx, qword [rax + 0x50]
mov esi, dword [rdx + rcx]
bswap esi
test r8b, r8b
je 0x1400d672e
sub dword [rdi + 0x14], 1
jne 0x1400d672e
mov rcx, rdi
call fcn.1400ff860
lea rax, [0x140000000]
mov rcx, rbp
movzx r8d, byte [r14 + rax + 0x185c69]
movzx edx, byte [r14 + rax + 0x185c68]
add r8d, esi
call fcn.1400adcb0
mov esi, eax
test eax, eax
jne 0x1400d67c2
add r14, 2
cmp r14, 0xa
jl 0x1400d66c0
test r13, r13
jne 0x1400d677c
mov rdx, rbp
mov rcx, rdi
call fcn.1400aa790
mov esi, eax
test eax, eax
jne 0x1400d67c2
mov rcx, rbp
call fcn.1400aa540
mov esi, eax
test eax, eax
jne 0x1400d67c2
test r13, r13
jne 0x1400d67c2
mov rcx, rbp
call fcn.1400ab020
mov edx, eax
mov rcx, rdi
call fcn.1400ad080
mov rax, qword [rbp + 8]
lea r9d, [rsi + 1]
mov r8d, dword [rsp + 0x48]
mov rcx, rdi
mov edx, dword [rax + 0x34]
call fcn.1400ad1b0
mov esi, eax
jmp 0x1400d67c2
mov esi, 7
mov eax, dword [rsp + 0x28]
mov r9d, 1
mov dword [rbx + 0x2c], eax
xor r8d, r8d
mov rax, qword [rsp + 0x40]
mov rcx, rdi
mov qword [rbx + 0x30], rax
mov eax, dword [rsp + 0x2c]
lea edx, [r9 - 2]
mov dword [rbx + 0x78], eax
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x7c], eax
movzx eax, byte [rsp + 0x21]
mov byte [rbx + 0x6a], al
mov byte [rbx + 0xbc], 0
call fcn.1400ad1b0
mov r15, qword [rsp + 0x68]
mov byte [rbx + 0x61], 1
test r12, r12
je 0x1400d6828
mov rcx, qword [r12 + 8]
call fcn.1400aa390
xor eax, eax
mov qword [r12 + 8], rax
mov qword [r12 + 0x18], rax
mov rcx, rbx
call fcn.1400d4960
mov eax, esi
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140142180
add rsp, 0x80
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret