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

Disassembly:
lea r12, [rsp - 0x68]
cmp r12, qword [r14 + 0x10]
jbe 0x654a4c
push rbp
mov rbp, rsp
sub rsp, 0xe0
movq qword [rsp + 0xd8], xmm15
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x100], rcx
mov byte [rsp + 0x3d], 0
mov dword [rsp + 0x48], 0
mov ebx, 0xb0
call sym.modernc.org_libc._TLS_.Alloc
mov qword [rsp + 0xa8], rax
lea rcx, [sym.modernc.org_sqlite_lib._whereLoopAddBtree.deferwrap1]
mov qword [rsp + 0xc8], rcx
mov rcx, qword [rsp + 0xf0]
mov qword [rsp + 0xd0], rcx
lea rdx, [rsp + 0xc8]
mov qword [rsp + 0xd8], rdx
mov byte [rsp + 0x3d], 1
lea rdx, [rax + 0xa4]
mov rsi, rdx
mov word [rdx], 0xffff
mov rbx, qword [rsp + 0xf8]
mov rdx, rbx
mov rdi, qword [rdx + 0x10]
mov qword [rsp + 0xa0], rdi
mov r8, qword [rdx]
mov qword [rsp + 0x60], r8
mov r9, r8
mov r10, rdi
movzx edi, byte [rdi + 0x10]
imul rdi, rdi, 0x68
add rdi, qword [r8 + 8]
lea r8, [rdi + 8]
mov qword [rsp + 0x90], r8
mov r11, r8
lea r12, [rdi + 0x48]
mov qword [rsp + 0xc0], r12
mov r13, r12
movzx r12d, word [r12]
and r12d, 2
shr r12w, 1
movzx r12d, r12w
mov r8, qword [r8 + 0x20]
mov qword [rsp + 0x88], r8
mov rdx, qword [rdx + 8]
mov qword [rsp + 0x78], rdx
test r12d, r12d
je 0x653b50
lea r12, [rdi + 0x68]
mov r12, qword [r12]
mov r8, r12
mov r12, qword [rsp + 0x88]
jmp 0x653c6e
mov r12, r8
mov r15d, dword [r8 + 0x30]
bt r15d, 7
jae 0x653b67
mov r8, qword [r8 + 0x10]
jmp 0x653c6e
mov qword [rsp + 0xb8], rsi
mov rbx, rax
mov edi, 0xa0
mov rax, rcx
xor ecx, ecx
nop dword [rax]
call sym.modernc.org_libc.Xmemset
mov rdx, qword [rsp + 0xa8]
mov rsi, rdx
mov word [rdx + 0x5e], 1
mov rdx, rsi
mov word [rsi + 0x60], 1
mov rsi, rdx
mov r8, qword [rsp + 0xb8]
mov qword [rdx + 8], r8
mov rdx, rsi
lea r8, [rdx + 0xa0]
mov qword [rsi + 0x10], r8
mov rsi, rdx
mov byte [rdx + 0x62], 5
mov rdx, rsi
mov r9, qword [rsp + 0x88]
mov qword [rsi + 0x18], r9
mov rsi, rdx
mov word [rdx + 0x5c], 3
lea rdx, [rsi + 0x64]
movzx r10d, word [rdx]
or r10d, 3
mov word [rdx], r10w
mov rdx, r8
mov r10, r9
movzx r9d, word [r9 + 0x3a]
mov word [r8], r9w
mov word [rdx + 2], 0
mov rdx, qword [rsp + 0xc0]
mov r8, rdx
movzx edx, word [rdx]
bt edx, 0
jb 0x653c30
mov r9, qword [rsp + 0x90]
mov r11, r9
mov r9, qword [r9 + 0x20]
mov r9, qword [r9 + 0x10]
mov r12, rsi
mov qword [rsi + 0x28], r9
jmp 0x653c3b
mov r11, qword [rsp + 0x90]
mov r12, rsi
mov rax, r12
mov rcx, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0x78]
mov rbx, qword [rsp + 0xf8]
mov r9, qword [rsp + 0x60]
mov r10, qword [rsp + 0xa0]
mov r12, qword [rsp + 0x88]
mov r13, r8
mov r8, rax
mov r15, rbx
cmp qword [r15 + 0x18], 0
je 0x653c7f
xor esi, esi
jmp 0x653de3
mov r15, r9
movzx esi, word [r9 + 0x3c]
test esi, 0x1020
jne 0x653dde
mov r9, qword [r9]
mov r9, qword [r9]
mov r9, qword [r9 + 0x30]
bt r9d, 0xf
jae 0x653dd7
movzx r13d, word [r13]
mov esi, r13d
and r13d, 2
shr r13w, 1
movzx r13d, r13w
nop dword [rax]
test r13d, r13d
je 0x653cd7
mov r9, r15
mov r13, qword [rsp + 0xc0]
xor esi, esi
jmp 0x653de3
bt esi, 0
jae 0x653cef
mov r9, r15
mov r13, qword [rsp + 0xc0]
xor esi, esi
jmp 0x653de3
mov r13, r12
mov edi, dword [r12 + 0x30]
bt edi, 7
nop dword [rax + rax]
jb 0x653dc5
mov edi, esi
and esi, 8
shr si, 3
movzx esi, si
test esi, esi
je 0x653d2b
mov r9, r15
mov r12, r13
mov r13, qword [rsp + 0xc0]
xor esi, esi
jmp 0x653de3
and edi, 0x40
shr di, 6
movzx esi, di
test esi, esi
je 0x653d4e
mov r9, r15
mov r12, r13
mov r13, qword [rsp + 0xc0]
xor esi, esi
jmp 0x653de3
mov rsi, r11
movzx r11d, byte [r11 + 0x3c]
bt r11d, 4
jae 0x653d72
mov r9, r15
mov r11, rsi
mov r12, r13
mov r13, qword [rsp + 0xc0]
xor esi, esi
jmp 0x653de3
mov qword [rsp + 0x98], r8
movzx ebx, word [r12 + 0x3a]
mov word [rsp + 0x3e], bx
movsxd rdi, dword [rdx + 0x14]
imul rdi, rdi, 0x38
add rdi, qword [rdx + 0x20]
mov qword [rsp + 0x68], rdi
mov rax, rcx
call sym.modernc.org_sqlite_lib._estLog
mov word [rsp + 0x40], ax
mov rdi, qword [rsp + 0x78]
mov rcx, rdi
mov rcx, qword [rcx + 0x20]
mov rdx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0xa0]
xor ebx, ebx
nop
jmp 0x6547ca
mov r9, r15
mov r12, r13
mov r13, qword [rsp + 0xc0]
xor esi, esi
jmp 0x653de3
mov r9, r15
xor esi, esi
jmp 0x653de3
mov r9, r15
xor esi, esi
mov edi, 1
jmp 0x653df7
inc edi
mov r8, r13
mov r13, qword [rsp + 0xc0]
test esi, esi
jne 0x6544e5
nop
test r8, r8
je 0x6544e5
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x98], r8
mov r15, r8
mov rsi, qword [r8 + 0x48]
nop dword [rax]
test rsi, rsi
jne 0x653e29
xor esi, esi
jmp 0x653e9a
mov ebx, dword [r11 + 0x44]
movzx r9d, byte [r11 + 0x3c]
mov rax, rcx
mov ecx, r9d
mov rdi, rdx
nop dword [rax + rax]
call sym.modernc.org_sqlite_lib._whereUsablePartialIndex
test eax, eax
sete dl
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xf8]
mov edi, dword [rsp + 0x50]
mov r9, qword [rsp + 0x60]
mov r10, qword [rsp + 0xa0]
mov r11, qword [rsp + 0x90]
mov r12, qword [rsp + 0x88]
mov r13, qword [rsp + 0xc0]
mov r15, qword [rsp + 0x98]
mov esi, edx
mov rdx, qword [rsp + 0x78]
test sil, sil
je 0x653ea6
xor esi, esi
jmp 0x6544b8
lea r8, [r15 + 0x64]
mov rsi, r8
movzx r8d, word [r8]
and r8d, 0x200
shr r8w, 9
movzx r8d, r8w
test r8d, r8d
je 0x653ecd
xor esi, esi
jmp 0x6544b8
mov qword [rsp + 0xb8], rsi
mov rdx, r15
mov rsi, qword [r15 + 0x10]
movzx esi, word [rsi]
mov word [rsp + 0x3e], si
mov r8, r10
mov word [r10 + 0x18], 0
mov r9, r8
mov word [r8 + 0x1a], 0
mov r8, r9
mov word [r9 + 0x1c], 0
mov r9, r8
mov word [r8 + 0x36], 0
mov r8, r9
mov word [r9 + 0x34], 0
mov r9, r8
mov byte [r8 + 0x11], 0
mov r8, r9
mov word [r9 + 0x12], 0
mov r9, r8
mov r10, qword [rsp + 0x100]
mov qword [r8], r10
mov r8, r9
mov word [r9 + 0x16], si
mov qword [r8 + 0x20], rdx
mov edi, dword [r11 + 0x44]
mov rax, rcx
mov rcx, rdx
call sym.modernc.org_sqlite_lib._indexMightHelpWithOrderBy
mov rdx, qword [rsp + 0xb8]
mov rsi, rdx
movzx edx, word [rdx]
mov r8d, edx
and edx, 3
cmp edx, 3
je 0x654339
and r8d, 0x20
shr r8w, 5
movzx edx, r8w
test edx, edx
je 0x653fd2
mov rdx, qword [rsp + 0xa8]
lea r8, [rdx + 0xa8]
mov qword [r8], 0
mov rcx, qword [rsp + 0xa0]
mov r8, rcx
mov dword [r8 + 0x30], 0x240
mov rcx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
mov r8, qword [rsp + 0xa0]
movabs r11, 0x8000000000000000
mov r12, rsi
jmp 0x654175
mov dword [rsp + 0x58], eax
mov rdx, qword [rsp + 0xa8]
lea r10, [rdx + 0xa8]
mov qword [rsp + 0xb0], r10
mov r11, r10
mov rcx, qword [rsp + 0x90]
mov r12, rcx
mov rdi, qword [rsp + 0x98]
mov r13, rdi
mov r13, qword [r13 + 0x98]
and r13, qword [r12 + 0x50]
mov qword [r10], r13
mov r10, rdi
mov r10, qword [r10 + 0x48]
nop dword [rax]
test r10, r10
je 0x654075
mov rdx, qword [rsp + 0x60]
mov rbx, qword [rdx]
mov rax, qword [rsp + 0xf0]
mov rcx, rdi
mov rdi, r10
mov rsi, r11
xor r8d, r8d
xor r9d, r9d
call sym.modernc.org_sqlite_lib._wherePartIdxExpr
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x90]
mov rdx, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0x98]
mov r11, qword [rsp + 0xb0]
mov r8, qword [rsp + 0xa0]
mov r9, r8
mov dword [r8 + 0x30], 0x200
mov r10, qword [r11]
movabs r11, 0x8000000000000000
cmp r10, r11
je 0x6540df
mov r12, rsi
movzx r13d, word [rsi]
mov r15d, r13d
and r13d, 0x1000
shr r13w, 0xc
movzx r13d, r13w
test r13d, r13d
je 0x654160
and r15d, 0x800
shr r15w, 0xb
movzx r13d, r15w
test r13d, r13d
jne 0x654160
test r10, r10
je 0x654165
mov esi, dword [rcx + 0x44]
mov rax, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0x60]
mov rcx, rdi
mov edi, esi
call sym.modernc.org_sqlite_lib._whereIsCoveringIndex
test eax, eax
jne 0x654107
mov rcx, qword [rsp + 0xa0]
jmp 0x654124
mov rdx, qword [rsp + 0xb0]
mov qword [rdx], 0
mov rcx, qword [rsp + 0xa0]
lea rdx, [rcx + 0x30]
or dword [rdx], eax
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x90]
mov rdx, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0x98]
mov r8, qword [rsp + 0xa0]
movabs r11, 0x8000000000000000
mov r12, qword [rsp + 0xb8]
jmp 0x654175
test r10, r10
jne 0x654172
mov r8, r9
mov dword [r9 + 0x30], 0x240
jmp 0x654175
mov r8, r9
test eax, eax
je 0x654193
mov rbx, qword [rsp + 0xc0]
mov r10, qword [rsp + 0x88]
mov r12, qword [rsp + 0x60]
jmp 0x65429e
mov r9, qword [rsp + 0x88]
mov r10, r9
mov r13d, dword [r9 + 0x30]
bt r13d, 7
jb 0x65428f
mov r13, rdi
cmp qword [r13 + 0x48], 0
je 0x6541cb
test eax, eax
mov rbx, qword [rsp + 0xc0]
mov r12, qword [rsp + 0x60]
jmp 0x65429e
mov r15, qword [rsp + 0xc0]
mov rbx, r15
movzx r15d, word [r15]
and r15d, 2
shr r15w, 1
movzx r15d, r15w
test r15d, r15d
je 0x6541f7
test eax, eax
mov r12, qword [rsp + 0x60]
jmp 0x65429e
lea r15, [rdx + 0xa8]
cmp qword [r15], 0
jne 0x654285
movzx r12d, word [r12]
and r12d, 4
shr r12w, 2
movzx r12d, r12w
test r12d, r12d
jne 0x654276
movsx r9, word [r9 + 0x3c]
movsx r12, word [r13 + 0x5c]
cmp r9d, r12d
jle 0x65426c
mov r9, qword [rsp + 0x60]
mov r12, r9
movzx r13d, word [r9 + 0x3c]
bt r13d, 2
jb 0x6543e8
cmp byte [0x009c0327], 0
je 0x6543e8
mov r9, qword [r9]
mov r9, qword [r9]
mov r9d, dword [r9 + 0x60]
bt r9d, 5
jb 0x6543e8
test eax, eax
jmp 0x65429e
mov r12, qword [rsp + 0x60]
jmp 0x6543e8
mov r12, qword [rsp + 0x60]
nop dword [rax + rax]
jmp 0x6543e8
mov r12, qword [rsp + 0x60]
jmp 0x6543e8
test eax, eax
mov rbx, qword [rsp + 0xc0]
mov r12, qword [rsp + 0x60]
mov esi, 0
mov r9d, dword [rsp + 0x50]
cmovne esi, r9d
mov r13, r8
mov byte [r8 + 0x11], sil
mov rsi, rdi
movsx rax, word [rsi + 0x5c]
mov esi, eax
shl esi, 4
mov r8, r10
movsx r10, word [r10 + 0x3c]
sub esi, eax
test r10d, r10d
je 0x6547b9
mov r15, r13
movzx r11d, word [rsp + 0x3e]
movsx rax, r11w
mov dword [rsp + 0x5c], eax
mov eax, esi
mov rsi, rdx
cmp r10d, 0xffffffff
jne 0x6542f5
neg eax
xor edx, edx
jmp 0x6542f9
cdq
idiv r10d
mov edx, dword [rsp + 0x5c]
lea r10d, [rax + rdx]
lea r10d, [r10 + 1]
mov word [r13 + 0x14], r10w
lea r10, [rsi + 0xa8]
cmp qword [r10], 0
je 0x65450a
mov r10, rcx
add edx, 0x10
mov ecx, dword [rcx + 0x44]
mov dword [rsp + 0x54], ecx
lea r13, [r12 + 0x68]
mov qword [rsp + 0x70], r13
xor eax, eax
jmp 0x654620
mov rcx, qword [rsp + 0xa0]
mov rdx, rcx
mov dword [rdx + 0x30], 0x100
mov rdx, rcx
movzx edi, word [rsp + 0x3e]
movsx rsi, di
test eax, eax
mov r8d, 0
mov r9d, dword [rsp + 0x50]
cmovne r8d, r9d
mov byte [rdx + 0x11], r8b
mov rdx, rcx
mov r8, qword [rsp + 0x88]
mov r8d, dword [r8 + 0x30]
bt r8d, 0xd
setb r8b
movzx r8d, r8b
shl r8d, 1
sub esi, r8d
add esi, 0x10
mov word [rdx + 0x14], si
mov rax, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0x78]
call sym.modernc.org_sqlite_lib._whereLoopOutputAdjust
mov rax, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xa0]
nop
call sym.modernc.org_sqlite_lib._whereLoopInsert
mov rdx, qword [rsp + 0xa0]
movzx r8d, word [rsp + 0x3e]
mov word [rdx + 0x16], r8w
nop dword [rax + rax]
test eax, eax
jne 0x6544e7
mov rbx, qword [rsp + 0xf8]
mov rdx, rbx
mov byte [rdx + 0x2c], 0
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
xor esi, esi
call sym.modernc.org_sqlite_lib._whereLoopAddBtreeIndex
mov dword [rsp + 0x44], eax
mov rdx, qword [rsp + 0xf8]
mov r8, rdx
movzx edx, byte [rdx + 0x2c]
cmp edx, 1
jne 0x654440
mov rcx, qword [rsp + 0x88]
lea rdx, [rcx + 0x30]
or dword [rdx], 0x100
mov rbx, qword [r8 + 0x20]
mov rax, qword [rsp + 0xf0]
call sym.modernc.org_sqlite_lib._sqlite3Stat4ProbeFree
mov rbx, qword [rsp + 0xf8]
mov rcx, rbx
mov dword [rcx + 0x28], 0
mov rcx, rbx
mov qword [rcx + 0x20], 0
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0x78]
mov edi, dword [rsp + 0x50]
mov r9, qword [rsp + 0x60]
mov r10, qword [rsp + 0xa0]
mov r11, qword [rsp + 0x90]
mov r12, qword [rsp + 0x88]
mov r13, qword [rsp + 0xc0]
mov r15, qword [rsp + 0x98]
mov esi, dword [rsp + 0x44]
mov r8, r13
movzx r13d, word [r13]
and r13d, 2
shr r13w, 1
movzx r13d, r13w
test r13d, r13d
je 0x6544d9
xor r13d, r13d
jmp 0x653dea
mov r13, qword [r15 + 0x28]
nop dword [rax]
jmp 0x653dea
mov eax, esi
mov dword [rsp + 0x48], eax
mov byte [rsp + 0x3d], 0
mov rdx, qword [rsp + 0xd8]
mov rax, qword [rdx]
call rax
mov eax, dword [rsp + 0x48]
add rsp, 0xe0
pop rbp
ret
mov rax, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0x78]
mov rcx, r15
mov edi, r11d
nop dword [rax]
call sym.modernc.org_sqlite_lib._whereLoopOutputAdjust
mov rcx, qword [rsp + 0x90]
mov rdx, rcx
movzx edx, byte [rdx + 0x3c]
bt edx, 4
jae 0x654550
mov rdi, qword [rsp + 0x98]
mov r8, rdi
cmp qword [r8 + 0x50], 0
je 0x654550
xor eax, eax
jmp 0x65457d
mov rax, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xa0]
call sym.modernc.org_sqlite_lib._whereLoopInsert
mov rcx, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
mov r8, qword [rsp + 0xa0]
mov r9, r8
movzx r10d, word [rsp + 0x3e]
mov word [r8 + 0x16], r10w
test eax, eax
jne 0x6544e7
mov rdx, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xc0]
mov r8, r9
mov r10, qword [rsp + 0x88]
movabs r11, 0x8000000000000000
mov r12, qword [rsp + 0x60]
jmp 0x6543e8
mov eax, dword [rsp + 0x4c]
inc eax
mov ecx, dword [rsp + 0x54]
mov rbx, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0x98]
mov r8, qword [rsp + 0x88]
mov r9d, dword [rsp + 0x50]
mov r10, qword [rsp + 0x90]
movzx r11d, word [rsp + 0x3e]
mov r12, qword [rsp + 0x60]
mov r13, qword [rsp + 0x70]
mov r15, qword [rsp + 0xa0]
mov edx, esi
mov rsi, qword [rsp + 0xa8]
nop dword [rax + rax]
cmp dword [r13 + 0x14], eax
jle 0x6546ea
mov word [rsp + 0x42], dx
mov dword [rsp + 0x4c], eax
movsxd rdx, eax
imul rdx, rdx, 0x38
add rdx, qword [r13 + 0x20]
mov qword [rsp + 0x80], rdx
mov rbx, qword [rdx]
mov rax, qword [rsp + 0xf0]
call sym.modernc.org_sqlite_lib._sqlite3ExprCoveredByIndex
test eax, eax
je 0x6546a5
mov rdx, qword [rsp + 0x80]
movsx rsi, word [rdx + 0x10]
test esi, esi
jg 0x65467d
movzx edx, word [rsp + 0x42]
movsx rdx, dx
add edx, esi
mov esi, edx
jmp 0x6545ca
movzx edx, word [rdx + 0x14]
movzx esi, word [rsp + 0x42]
dec esi
test edx, 0x82
je 0x6545ca
movsx rsi, si
add esi, 0xffffffed
nop dword [rax + rax]
jmp 0x6545ca
movzx edx, word [rsp + 0x42]
mov rbx, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0x98]
mov r8, qword [rsp + 0x88]
mov r9d, dword [rsp + 0x50]
mov r10, qword [rsp + 0x90]
movzx r11d, word [rsp + 0x3e]
mov r12, qword [rsp + 0x60]
mov r15, qword [rsp + 0xa0]
mov rcx, r15
movzx r13d, word [r15 + 0x14]
movsx rax, r13w
movsx r12, dx
cmp r12d, eax
jg 0x65474a
lea edx, [r12 + 0x31]
cmp eax, edx
jle 0x654714
lea r12, str._n_n_t_t_b_b_a_a_a
jmp 0x654796
lea edx, [r12 + 0x1f]
cmp eax, edx
jle 0x65472a
lea r13d, [rax + 1]
lea r12, str._n_n_t_t_b_b_a_a_a
jmp 0x654796
mov edx, eax
sub eax, r12d
movsxd rax, eax
cmp rax, 0x20
jae 0x6547af
lea r12, str._n_n_t_t_b_b_a_a_a
movzx eax, byte [rax + r12]
lea r13d, [rdx + rax]
jmp 0x654796
lea r13d, [rax + 0x31]
cmp r12d, r13d
jle 0x65475f
lea r12, str._n_n_t_t_b_b_a_a_a
mov r13d, edx
jmp 0x654796
lea edx, [rax + 0x1f]
cmp r12d, edx
jle 0x654775
lea r13d, [r12 + 1]
lea r12, str._n_n_t_t_b_b_a_a_a
jmp 0x654796
mov edx, r12d
sub r12d, eax
movsxd rax, r12d
nop
cmp rax, 0x20
jae 0x6547a5
lea r12, str._n_n_t_t_b_b_a_a_a
movzx eax, byte [rax + r12]
lea r13d, [rdx + rax]
mov word [r15 + 0x14], r13w
mov r15, rcx
nop
jmp 0x65450a
mov ecx, 0x20
call sym.runtime.panicIndex
mov ecx, 0x20
call sym.runtime.panicIndex
call sym.runtime.panicdivide
lea r8, [rbx + 0x38]
mov rsi, r9
mov ebx, ecx
mov rcx, r8
test ebx, ebx
jne 0x6549d8
cmp rcx, rdx
jae 0x6549d8
mov rbx, rcx
mov r8, qword [rcx + 0x28]
mov r9, rsi
mov r10, qword [rsi + 8]
test r8, r10
je 0x6547f2
xor ecx, ecx
jmp 0x6547be
mov qword [rsp + 0xb8], rbx
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x90]
xor edi, edi
call sym.modernc.org_sqlite_lib._termCanDriveIndex
test eax, eax
jne 0x65481c
xor eax, eax
jmp 0x6549b2
mov rcx, qword [rsp + 0xa0]
mov rdx, rcx
mov word [rdx + 0x18], 1
mov rdx, rcx
mov word [rdx + 0x36], 0
mov rdx, rcx
mov qword [rdx + 0x20], 0
mov rdx, rcx
mov word [rdx + 0x34], 1
mov rdx, rcx
mov rdx, qword [rdx + 0x40]
mov rsi, qword [rsp + 0xb8]
mov qword [rdx], rsi
mov rdx, rcx
movzx edi, word [rsp + 0x40]
movsx r8, di
movzx r9d, word [rsp + 0x3e]
movsx r10, r9w
add r10d, r8d
mov word [rdx + 0x12], r10w
mov rdx, qword [rsp + 0x88]
mov r10, rdx
movzx r11d, byte [rdx + 0x3f]
cmp r11d, 2
je 0x6548ab
mov edx, dword [rdx + 0x30]
bt edx, 0xe
jb 0x6548ab
lea rdx, [rcx + 0x12]
movsx r11, word [rdx]
add r11d, 0x1c
mov word [rdx], r11w
jmp 0x6548bb
lea rdx, [rcx + 0x12]
movsx r11, word [rdx]
add r11d, 0xffffffe7
mov word [rdx], r11w
mov rdx, rcx
movsx r11, word [rdx + 0x12]
test r11d, r11d
jge 0x6548ce
mov word [rdx + 0x12], 0
mov rdx, rcx
mov word [rdx + 0x16], 0x2b
mov rdx, rcx
movzx r11d, word [rdx + 0x16]
movsx r12, r11w
cmp r12d, r8d
jg 0x654930
lea r11d, [r12 + 0x31]
cmp r8d, r11d
jle 0x6548f9
mov eax, edi
jmp 0x65497a
lea r11d, [r12 + 0x1f]
nop
cmp r8d, r11d
jle 0x65490b
lea eax, [r8 + 1]
jmp 0x65497a
mov r11d, r8d
sub r8d, r12d
movsxd rax, r8d
cmp rax, 0x20
jae 0x654a2f
lea r8, str._n_n_t_t_b_b_a_a_a
movzx r12d, byte [rax + r8]
lea eax, [r11 + r12]
jmp 0x65497a
lea r13d, [r8 + 0x31]
cmp r12d, r13d
jle 0x65493e
mov eax, r11d
jmp 0x65497a
lea r11d, [r8 + 0x1f]
cmp r12d, r11d
jle 0x65494e
lea eax, [r12 + 1]
jmp 0x65497a
mov r11d, r12d
sub r12d, r8d
movsxd rax, r12d
nop word [rax + rax]
cmp rax, 0x20
jae 0x654a25
lea r8, str._n_n_t_t_b_b_a_a_a
movzx r12d, byte [rax + r8]
lea eax, [r11 + r12]
mov word [rdx + 0x14], ax
mov rdx, rcx
mov dword [rdx + 0x30], 0x4000
mov rdx, rcx
mov rsi, qword [rsi + 0x28]
mov r8, qword [rsp + 0x100]
or rsi, r8
mov qword [rdx], rsi
mov rax, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xf8]
call sym.modernc.org_sqlite_lib._whereLoopInsert
mov rdx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0x78]
mov r9, qword [rsp + 0xa0]
mov ecx, eax
movzx eax, word [rsp + 0x40]
jmp 0x6547be
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xf0]
mov rdx, rdi
mov r8, qword [rsp + 0x98]
mov r9, qword [rsp + 0x60]
mov r10, rsi
mov r11, qword [rsp + 0x90]
mov r12, qword [rsp + 0x88]
mov r13, qword [rsp + 0xc0]
mov esi, ebx
mov rbx, qword [rsp + 0xf8]
nop dword [rax]
jmp 0x653de3
mov ecx, 0x20
call sym.runtime.panicIndex
mov ecx, 0x20
call sym.runtime.panicIndex
nop
call sym.runtime.deferreturn
mov eax, dword [rsp + 0x48]
add rsp, 0xe0
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
nop dword [rax + rax]
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp sym.modernc.org_sqlite_lib._whereLoopAddBtree