Function at 0x6c5ac0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x6c5d3c
push rbp
mov rbp, rsp
sub rsp, 0x68
movq qword [rsp + 0x60], xmm15
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rcx
mov dword [rsp + 0x90], edi
mov dword [rsp + 0x94], esi
mov byte [rsp + 0x2f], 0
mov dword [rsp + 0x30], 0
mov ebx, 0x10
call sym.modernc.org_libc._TLS_.Alloc
mov qword [rsp + 0x40], rax
lea rcx, [sym.modernc.org_sqlite_lib._fts5IndexMerge.deferwrap1]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x58], rcx
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x60], rdx
mov byte [rsp + 0x2f], 1
mov rsi, rax
mov edx, dword [rsp + 0x90]
mov dword [rax], edx
lea rdx, [rsi + 8]
mov qword [rsp + 0x48], rdx
mov rdi, rdx
mov r8, qword [rsp + 0x88]
mov r9, r8
mov r8, qword [r8]
mov qword [rdx], r8
mov rdx, qword [rsp + 0x80]
mov r8d, dword [rsp + 0x94]
xor eax, eax
jmp 0x6c5bac
mov r8d, dword [rsp + 0x3c]
cmp r8d, 1
mov r10d, 2
cmove r8d, r10d
mov rsi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x78]
mov rdx, rbx
mov rdi, qword [rsp + 0x48]
mov r9, qword [rsp + 0x88]
mov eax, 1
mov r10, rsi
cmp dword [r10], 0
jle 0x6c5cb0
mov rbx, rdx
cmp dword [rdx + 0x3c], 0
jne 0x6c5cb0
xor edx, edx
xor r10d, r10d
xor r11d, r11d
jmp 0x6c5ce3
cmp r10d, edi
jge 0x6c5bdd
mov edi, r8d
jmp 0x6c5bf1
mov edi, r8d
mov r8d, r10d
mov edx, r11d
jmp 0x6c5bf1
mov edi, r8d
mov r8d, r10d
mov edx, r11d
mov dword [rsp + 0x3c], edi
cmp r8d, edi
jge 0x6c5c32
mov dword [rsp + 0x38], eax
mov rax, rcx
mov rcx, r15
call sym.modernc.org_sqlite_lib._fts5IndexFindDeleteMerge
mov rcx, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x40]
mov edi, dword [rsp + 0x3c]
mov r9, qword [rsp + 0x88]
mov r12, qword [rsp + 0x48]
mov edx, eax
mov eax, dword [rsp + 0x38]
test edx, edx
jl 0x6c5d28
mov dword [rsp + 0x34], edx
mov rax, rcx
mov rcx, r12
mov edi, edx
call sym.modernc.org_sqlite_lib._fts5IndexMergeLevel
mov rbx, qword [rsp + 0x80]
mov rdx, rbx
cmp dword [rdx + 0x3c], 0
jne 0x6c5ca6
mov rcx, qword [rsp + 0x48]
mov r8, rcx
mov rdi, qword [r8]
mov r8d, dword [rsp + 0x34]
movsxd r9, r8d
shl r9, 4
lea r9, [rdi + r9]
lea r9, [r9 + 0x20]
cmp dword [r9], 0
nop
jne 0x6c5b7a
lea ecx, [r8 + 1]
mov rax, qword [rsp + 0x78]
call sym.modernc.org_sqlite_lib._fts5StructurePromote
mov rcx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x80]
jmp 0x6c5b7a
mov rcx, qword [rsp + 0x48]
jmp 0x6c5b7a
mov rcx, qword [rdi]
mov qword [r9], rcx
mov dword [rsp + 0x30], eax
mov byte [rsp + 0x2f], 0
mov rdx, qword [rsp + 0x60]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x30]
add rsp, 0x68
pop rbp
ret
lea r15d, [rdi + 1]
mov rdi, r12
mov r10d, r13d
mov r11d, edx
mov edx, r15d
mov r12, rdi
mov r13, qword [rdi]
mov r15, r13
cmp dword [r13 + 0x1c], edx
jle 0x6c5be8
movsxd r13, edx
shl r13, 4
lea r13, [r15 + r13]
lea r13, [r13 + 0x20]
mov edi, dword [r13]
test edi, edi
jne 0x6c5bd3
mov r13d, dword [r13 + 4]
cmp r10d, r13d
jge 0x6c5d1e
mov edi, edx
jmp 0x6c5cd3
mov edi, edx
mov r13d, r10d
mov edx, r11d
jmp 0x6c5cd3
mov rdi, r12
jmp 0x6c5cb0
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x24], esi
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov edi, dword [rsp + 0x20]
mov esi, dword [rsp + 0x24]
jmp sym.modernc.org_sqlite_lib._fts5IndexMerge