Function at 0x14012ebc0
Capabilities:
Reference sql statements

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
movups xmmword [rsp + 0x50], xmm6
mov eax, dword [rcx + 0x3c]
mov r8, qword [rcx + 0x18]
mov r9, qword [rcx + 0x20]
mov dword [rsp + 0x44], 0
mov rbx, rcx
mov rdi, rdx
mov qword [rsp + 0x48], 0
test eax, eax
jne 0x14012ed10
mov qword [rsp + 0x28], r8
lea r13, [rsp + 0x44]
lea rdx, str.SELECT_t._Q_FROM__Q._Q_AS_t_WHERE_t._Q_MATCH_id
mov qword [rsp + 0x20], r8
mov rcx, r13
call sym.sqlite3Fts5Mprintf
mov rbp, rax
test rax, rax
je 0x14012ecc0
lea rax, [rsp + 0x48]
mov rcx, qword [rbx + 0x28]
mov r9d, pe_nt_image_headers64
mov rdx, rbp
mov qword [rsp + 0x30], 0
mov r8d, 0xffffffff
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
call sym.sqlite3LockAndPrepare
mov rcx, rbp
mov r12, qword [rsp + 0x48]
mov esi, eax
mov dword [rsp + 0x44], eax
call sym.sqlite3_free
cmp esi, 1
je 0x14012ed30
mov dword [rbx + 0x3c], 1
test r12, r12
je 0x14012ecd4
mov rcx, r12
call sym.sqlite3_step
cmp eax, 0x64
je 0x14012ed62
mov dword [rbx + 0x3c], 0
test esi, esi
je 0x14012ece5
mov rcx, r12
call sym.sqlite3_finalize
xor eax, eax
mov qword [rdi], rax
movups xmm6, xmmword [rsp + 0x50]
mov eax, esi
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov esi, dword [rsp + 0x44]
xor ecx, ecx
call sym.sqlite3_free
cmp esi, 1
je 0x14012ee88
mov dword [rbx + 0x3c], 0
xor r12d, r12d
test esi, esi
jne 0x14012ec9d
xor r12d, r12d
mov rcx, r12
call sym.sqlite3_finalize
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x44], eax
mov esi, eax
test eax, eax
je 0x14012ee60
xor r12d, r12d
jmp 0x14012ec9d
mov rdx, r9
lea rcx, str.recursive_definition_for__s._s
mov esi, 1
call sym.sqlite3_mprintf
mov qword [rbx + 0x10], rax
jmp 0x14012ecaa
mov dword [rsp + 0x44], 0
mov dword [rbx + 0x3c], 1
test r12, r12
je 0x14012ee88
mov rcx, r12
call sym.sqlite3_step
cmp eax, 0x64
je 0x14012ed60
mov dword [rbx + 0x3c], 0
jmp 0x14012ece5
xor esi, esi
xor edx, edx
mov rcx, r12
call sym.sqlite3_column_int64
mov rdx, qword [rbx + 0x30]
mov rdx, qword [rdx + 0x48]
test rdx, rdx
jne 0x14012ed8d
jmp 0x14012ec92
mov rdx, qword [rdx + 8]
test rdx, rdx
je 0x14012ec92
cmp rax, qword [rdx + 0x18]
jne 0x14012ed80
mov rbp, qword [rdx]
movq xmm6, r12
mov dword [rbx + 0x3c], 0
movq xmm0, rbp
punpcklqdq xmm6, xmm0
test esi, esi
jne 0x14012ec9d
test rbp, rbp
je 0x14012ece5
mov rax, qword [rbp + 0x30]
mov rax, qword [rax + 0x48]
test rax, rax
jne 0x14012edd9
jmp 0x14012edf8
mov rax, qword [rax + 8]
test rax, rax
je 0x14012edf8
cmp dword [rax + 0x20], 1
jne 0x14012edd0
cmp rbp, qword [rax]
jne 0x14012edd0
or dword [rax + 0x50], 0x20
mov rax, qword [rax + 8]
test rax, rax
jne 0x14012edd9
nop dword [rax]
mov rcx, qword [rbp + 0x28]
call sym.sqlite3Fts5StorageSync
mov dword [rsp + 0x44], eax
mov esi, eax
test eax, eax
jne 0x14012ec9d
mov rax, qword [rbp + 0x18]
mov rcx, r13
movsxd rdx, dword [rax + 0x18]
add rdx, 8
shl rdx, 4
call sym.sqlite3Fts5MallocZero
mov esi, dword [rsp + 0x44]
test rax, rax
je 0x14012ec9d
movups xmmword [rax + 8], xmm6
mov rcx, qword [rbp + 0x18]
lea rdx, [rax + 0x80]
mov esi, dword [rsp + 0x44]
mov qword [rax + 0x48], rdx
movsxd rcx, dword [rcx + 0x18]
lea rdx, [rdx + rcx*8]
mov qword [rax + 0x50], rdx
jmp 0x14012eca7
mov rdx, qword [rbx + 0x20]
mov r8, qword [rbx + 0x18]
mov esi, 1
lea rcx, str.no_such_fts5_table:__s._s
call sym.sqlite3_mprintf
mov qword [rbx + 0x10], rax
jmp 0x14012ed04
mov dword [rbx + 0x3c], 0
jmp 0x14012ece2