Function at 0x18010a050
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, qword [rsp + 0x98]
xorps xmm0, xmm0
mov eax, r9d
xor r15d, r15d
and eax, 8
mov r13d, r9d
mov dword [rsp + 0x88], eax
mov rsi, rcx
mov rax, qword [rsp + 0x90]
mov r14d, 1
movups xmmword [rbx + 8], xmm0
mov ebp, r15d
movups xmmword [rbx + 0x18], xmm0
movups xmmword [rbx + 0x28], xmm0
movups xmmword [rbx + 0x38], xmm0
movups xmmword [rbx + 0x48], xmm0
movups xmmword [rbx + 0x58], xmm0
movups xmmword [rbx + 0x68], xmm0
mov qword [rbx], rax
mov rdi, qword [rcx + 0x60]
test rdi, rdi
jne 0x18010a0fa
mov rdx, qword [rcx]
lea rcx, str.SELECT_pgno_FROM__q._q_idx_WHERE_segid__AND_term___ORDER_BY_term_DESC_LIMIT_1
mov r8, qword [rdx + 0x10]
mov rdx, qword [rdx + 8]
call sym.QoOBJSl.dll_hqlite3_mprintf
mov r8, rax
lea rdx, [rsi + 0x60]
mov rcx, rsi
call fcn.1801054e0
mov rax, qword [rsp + 0x90]
mov rdi, qword [rsi + 0x60]
cmp dword [rsi + 0x34], ebp
jne 0x18010a309
movsxd r8, dword [rax]
mov edx, r14d
mov rcx, rdi
call sym.QoOBJSl.dll_hqlite3_bind_int64
mov r12d, dword [rsp + 0x80]
mov edx, 2
mov r8, qword [rsp + 0x78]
mov r9d, r12d
mov rcx, rdi
mov qword [rsp + 0x20], r15
call sym.QoOBJSl.dll_hqlite3_bind_blob
mov rcx, rdi
call sym.QoOBJSl.dll_hqlite3_step
cmp eax, 0x64
jne 0x18010a1fc
test rdi, rdi
je 0x18010a185
mov rax, qword [rdi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x18010a15b
call qword [0x18015a100]
mov rcx, qword [rdi + 0xa0]
test rcx, rcx
je 0x18010a171
cmp r15w, word [rdi + 0xc0]
jb 0x18010a18c
mov rcx, qword [rdi]
mov edx, 0x19
mov dword [rcx + 0x50], 0x19
call fcn.180009f80
lea rcx, [0x180135c18]
movzx eax, word [rcx + 8]
test al, 0x24
je 0x18010a199
mov rbp, qword [rcx]
jmp 0x18010a1ba
test al, 8
je 0x18010a1a8
movsd xmm0, qword [rcx]
call fcn.180030cd0
jmp 0x18010a1b7
test al, 0x12
je 0x18010a1ba
cmp qword [rcx + 0x10], rbp
je 0x18010a1ba
call fcn.180030d10
mov rbp, rax
mov r14d, ebp
test rdi, rdi
je 0x18010a1f6
mov rax, qword [rdi]
mov edx, dword [rdi + 0x38]
cmp byte [rax + 0x61], r15b
jne 0x18010a1d7
test edx, edx
jne 0x18010a1d7
mov ecx, r15d
jmp 0x18010a1e4
mov rcx, rax
call fcn.180006550
mov ecx, eax
mov rax, qword [rdi]
mov dword [rdi + 0x38], ecx
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x18010a1f6
call qword [0x18015a110]
sar r14d, 1
and ebp, 1
mov rcx, rdi
call sym.QoOBJSl.dll_hqlite3_reset
mov edx, 2
mov dword [rsi + 0x34], eax
mov rcx, rdi
call fcn.18003cf50
test eax, eax
jne 0x18010a22a
mov rax, qword [rdi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x18010a22a
call qword [0x18015a110]
mov rax, qword [rsp + 0x90]
mov rdx, rbx
mov rcx, rsi
mov eax, dword [rax + 4]
cmp r14d, eax
cmovge eax, r14d
cmovge r15d, ebp
dec eax
mov dword [rbx + 0xc], eax
call fcn.180108300
cmp qword [rbx + 0x10], 0
mov edi, dword [rsp + 0x88]
je 0x18010a275
mov r9, qword [rsp + 0x78]
mov r8, rbx
mov edx, edi
mov dword [rsp + 0x20], r12d
mov rcx, rsi
call fcn.180109640
cmp dword [rsi + 0x34], 0
jne 0x18010a2d9
test edi, edi
jne 0x18010a2d9
mov edx, dword [rbx + 8]
mov rax, qword [rbx + 0x10]
or edx, 1
mov dword [rbx + 8], edx
test rax, rax
je 0x18010a2d9
and r13d, 2
je 0x18010a29d
or edx, 2
mov dword [rbx + 8], edx
test r15d, r15d
je 0x18010a2c9
mov r9d, dword [rbx + 0x30]
and edx, 2
cmp r9d, dword [rbx + 0xc]
jne 0x18010a2b7
mov eax, dword [rax + 0xc]
cmp dword [rbx + 0x3c], eax
jl 0x18010a2c9
mov rax, qword [rbx]
mov rcx, rsi
mov r8d, dword [rax]
call fcn.180107690
mov qword [rbx + 0x50], rax
test r13d, r13d
je 0x18010a2d9
mov rdx, rbx
mov rcx, rsi
call fcn.180109390
test byte [rbx + 8], 2
je 0x18010a2ec
lea rax, [0x180108ca0]
mov qword [rbx + 0x28], rax
jmp 0x18010a309
mov rax, qword [rsi]
lea rcx, [0x180108f60]
lea rdx, [0x180108d30]
cmp dword [rax + 0x5c], 1
cmove rcx, rdx
mov qword [rbx + 0x28], rcx
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret