Function at 0x1400c2080
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
xor r12d, r12d
movsxd rdi, r8d
mov r13, r9
mov rbx, rdx
mov r14, rcx
lea r15d, [r12 + 1]
cmp byte [rdx + 0x65], r12b
jne 0x1400c20fe
lea edx, [r12 + 0x28]
mov rcx, rbx
call fcn.14009e8e0
mov rdi, rax
test rax, rax
je 0x1400c20e3
movups xmm0, xmmword [str.cannot_VACUUM_from_within_a_transaction]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14014a958]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x14014a968]
movsd qword [rax + 0x20], xmm0
mov rdx, qword [r14]
test rdx, rdx
je 0x1400c20f3
mov rcx, rbx
call fcn.14009e750
mov qword [r14], rdi
mov eax, r15d
jmp 0x1400c26e5
cmp dword [rdx + 0xd8], r15d
jle 0x1400c216e
mov edx, 0x2b
mov rcx, rbx
call fcn.14009e8e0
mov rdi, rax
test rax, rax
je 0x1400c2153
movups xmm0, xmmword [str.cannot_VACUUM___SQL_statements_in_progress]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x14014a980]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x14014a990]
movsd qword [rax + 0x20], xmm0
movzx eax, word [0x14014a998]
mov word [rdi + 0x28], ax
movzx eax, byte [0x14014a99a]
mov byte [rdi + 0x2a], al
mov rdx, qword [r14]
test rdx, rdx
je 0x1400c20f3
mov rcx, rbx
call fcn.14009e750
mov eax, r15d
mov qword [r14], rdi
jmp 0x1400c26e5
mov qword [rsp + 0x90], rbp
mov ebp, dword [rdx + 0x4c]
lea rdx, [0x140000000]
test r13, r13
je 0x1400c2231
movzx ecx, word [r9 + 0x14]
mov eax, ecx
and eax, 0x3f
cmp byte [rax + rdx + 0x140840], 3
je 0x1400c21e2
mov edx, 0x12
mov rcx, rbx
call fcn.14009e8e0
mov rdi, rax
test rax, rax
je 0x1400c21c7
movups xmm0, xmmword [str.non_text_filename]
movups xmmword [rax], xmm0
movzx ecx, word [0x14014a9b0]
mov word [rax + 0x10], cx
mov rdx, qword [r14]
test rdx, rdx
je 0x1400c21d7
mov rcx, rbx
call fcn.14009e750
mov qword [r14], rdi
mov eax, r15d
jmp 0x1400c26dd
mov edx, 0x202
movzx eax, cx
and ax, dx
cmp ax, dx
jne 0x1400c2206
cmp byte [r9 + 0x16], r15b
jne 0x1400c2206
mov r9, qword [r9 + 8]
and dword [rbx + 0x4c], 0xfffffffe
or dword [rbx + 0x4c], 6
jmp 0x1400c2238
test r15b, cl
je 0x1400c2218
and dword [rbx + 0x4c], 0xfffffffe
xor r9d, r9d
or dword [rbx + 0x4c], 6
jmp 0x1400c2238
movzx edx, r15b
mov rcx, r13
call fcn.1400edac0
and dword [rbx + 0x4c], 0xfffffffe
mov r9, rax
or dword [rbx + 0x4c], 6
jmp 0x1400c2238
lea r9, [0x140158f8f]
mov eax, dword [rbx + 0x2c]
mov rcx, qword [rbx + 0x30]
mov rdx, qword [rbx + 0x78]
mov dword [rsp + 0x30], eax
or eax, 6
mov dword [rbx + 0x2c], eax
mov rax, rcx
mov qword [rsp + 0x50], rdx
mov rdx, qword [rbx + 0x80]
mov qword [rsp + 0x48], rcx
movabs rcx, 0xfffffffeefffafff
and rax, rcx
mov qword [rsp + 0x58], rdx
movzx edx, byte [rbx + 0x6e]
or rax, 0x201
mov qword [rbx + 0x30], rax
mov rax, qword [rbx + 0x20]
mov byte [rbx + 0x6e], r12b
mov byte [rsp + 0x98], dl
mov rdx, rdi
shl rdx, 5
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x38], rdx
mov rcx, qword [rax + rdx]
mov rdi, qword [rax + rdx + 8]
mov qword [rsp + 0x40], rcx
mov rax, qword [rdi + 8]
mov rcx, qword [rax]
cmp byte [rcx + 0x10], r12b
jne 0x1400c22ca
mov dword [rsp + 0x20], r12d
cmp byte [rcx + 0x14], r12b
je 0x1400c22cf
mov dword [rsp + 0x20], r15d
mov eax, dword [rbx + 0x28]
lea r8, str.ATTACH__Q_AS_vacuum_db
mov rdx, r14
mov dword [rsp + 0x24], eax
mov rcx, rbx
call fcn.140068540
mov dword [rbx + 0x4c], ebp
mov esi, eax
test eax, eax
jne 0x1400c265a
movsxd r12, dword [rsp + 0x24]
shl r12, 5
add r12, qword [rbx + 0x20]
mov rbp, qword [r12 + 8]
test r13, r13
je 0x1400c23ba
mov rax, qword [rbp + 8]
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0x28], 0
mov rax, qword [rcx]
test rax, rax
je 0x1400c239c
lea rdx, [rsp + 0x28]
call qword [rax + 0x30]
test eax, eax
jne 0x1400c2340
cmp qword [rsp + 0x28], 0
jle 0x1400c239c
mov edx, 0x1b
mov rcx, rbx
mov esi, r15d
call fcn.14009e8e0
mov rbp, rax
test rax, rax
je 0x1400c2384
movups xmm0, xmmword [str.output_file_already_exists]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x14014a9e0]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x14014a9e8]
mov word [rax + 0x18], cx
movzx eax, byte [0x14014a9ea]
mov byte [rbp + 0x1a], al
mov rdx, qword [r14]
test rdx, rdx
je 0x1400c2394
mov rcx, rbx
call fcn.14009e750
mov qword [r14], rbp
jmp 0x1400c265a
mov rax, qword [rbx + 0x20]
or dword [rbx + 0x2c], 8
mov rsi, qword [rsp + 0x38]
movzx r15d, byte [rsi + rax + 0x10]
mov eax, dword [rbx + 0x30]
and eax, 0x38
or r15d, eax
jmp 0x1400c23bf
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
call fcn.140096680
mov rcx, qword [rbx + 0x20]
mov dword [rsp + 0x28], eax
mov rdx, qword [rsi + rcx + 0x18]
mov rcx, rbp
mov edx, dword [rdx + 0x74]
call fcn.140098500
xor edx, edx
mov rcx, rdi
call fcn.140098700
mov edx, eax
mov rcx, rbp
call fcn.140098700
or r15d, 0x20
mov rcx, rbp
mov edx, r15d
call fcn.1400986a0
lea r8, str.BEGIN
mov rdx, r14
mov rcx, rbx
call fcn.140068310
mov esi, eax
test eax, eax
jne 0x1400c265a
xor edx, edx
mov eax, 2
test r13, r13
mov rcx, rdi
cmove edx, eax
xor r8d, r8d
call fcn.140095020
mov esi, eax
test eax, eax
jne 0x1400c265a
mov rax, qword [rdi + 8]
mov rcx, qword [rax]
cmp byte [rcx + 9], 5
jne 0x1400c2456
test r13, r13
jne 0x1400c2456
mov dword [rbx + 0x74], r13d
mov rax, qword [rdi + 8]
xor r9d, r9d
mov esi, dword [rsp + 0x28]
mov rcx, rbp
mov r8d, esi
mov edx, dword [rax + 0x34]
call fcn.1400985a0
test eax, eax
jne 0x1400c2655
cmp dword [rsp + 0x20], eax
jne 0x1400c2496
mov edx, dword [rbx + 0x74]
xor r9d, r9d
mov r8d, esi
mov rcx, rbp
call fcn.1400985a0
test eax, eax
jne 0x1400c2655
cmp byte [rbx + 0x67], 0
jne 0x1400c2655
movsx eax, byte [rbx + 0x6a]
test al, al
jns 0x1400c24b0
mov rcx, rdi
call fcn.140096590
mov edx, eax
mov rcx, rbp
call fcn.140098470
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 r15, qword [rsp + 0x40]
mov rdx, r14
mov r9, r15
mov byte [rbx + 0xc4], al
mov rcx, rbx
call fcn.140068540
mov esi, eax
test eax, eax
jne 0x1400c265a
mov r9, r15
lea r8, str.SELECT_sql_FROM___w_.sqlite_schema_WHERE_typeindex
mov rdx, r14
mov rcx, rbx
call fcn.140068540
mov esi, eax
test eax, eax
jne 0x1400c265a
mov r9, r15
mov byte [rbx + 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, rbx
call fcn.140068540
and dword [rbx + 0x2c], 0xfffffffb
mov esi, eax
test eax, eax
jne 0x1400c265a
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.140068540
mov esi, eax
test eax, eax
jne 0x1400c265a
xor r14d, r14d
movzx r8d, byte [rdi + 0x11]
lea rax, [0x140000000]
movzx esi, byte [r14 + rax + 0x140988]
mov r15, qword [rdi + 8]
test r8b, r8b
je 0x1400c2586
inc dword [rdi + 0x14]
cmp byte [rdi + 0x12], 0
jne 0x1400c2586
mov rcx, rdi
call fcn.14005dfb0
movzx r8d, byte [rdi + 0x11]
cmp esi, 0xf
jne 0x1400c2599
mov rax, qword [r15]
mov esi, dword [rax + 0x84]
add esi, dword [rdi + 0x1c]
jmp 0x1400c25ad
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 0x1400c25c0
sub dword [rdi + 0x14], 1
jne 0x1400c25c0
mov rcx, rdi
call fcn.1400eb7f0
lea rax, [0x140000000]
mov rcx, rbp
movzx r8d, byte [r14 + rax + 0x140989]
movzx edx, byte [r14 + rax + 0x140988]
add r8d, esi
call fcn.1400991b0
mov esi, eax
test eax, eax
jne 0x1400c265a
add r14, 2
cmp r14, 0xa
jl 0x1400c2552
test r13, r13
jne 0x1400c260e
mov rdx, rbp
mov rcx, rdi
call fcn.140095c00
mov esi, eax
test eax, eax
jne 0x1400c265a
mov rcx, rbp
call fcn.1400959b0
mov esi, eax
test eax, eax
jne 0x1400c265a
test r13, r13
jne 0x1400c265a
mov rcx, rbp
call fcn.140096590
mov edx, eax
mov rcx, rdi
call fcn.140098470
mov rcx, rbp
call fcn.140096680
mov rcx, qword [rbp + 8]
lea r9d, [rsi + 1]
mov r8d, eax
mov edx, dword [rcx + 0x34]
mov rcx, rdi
call fcn.1400985a0
mov esi, eax
jmp 0x1400c265a
mov esi, 7
mov eax, dword [rsp + 0x30]
mov r9d, 1
mov dword [rbx + 0x2c], eax
xor r8d, r8d
mov rax, qword [rsp + 0x48]
mov rcx, rdi
mov qword [rbx + 0x30], rax
mov rax, qword [rsp + 0x50]
lea edx, [r9 - 2]
mov qword [rbx + 0x78], rax
mov rax, qword [rsp + 0x58]
mov qword [rbx + 0x80], rax
movzx eax, byte [rsp + 0x98]
mov byte [rbx + 0x6e], al
mov byte [rbx + 0xc4], 0
call fcn.1400985a0
mov byte [rbx + 0x65], 1
test r12, r12
je 0x1400c26cb
mov rcx, qword [r12 + 8]
call fcn.140095540
mov qword [r12 + 8], 0
mov qword [r12 + 0x18], 0
mov rcx, rbx
call fcn.1400c0d70
mov eax, esi
mov rsi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
ret