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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1b8
mov rax, qword [rcx]
mov qword [rsp + 0x210], r8
mov rbx, rcx
mov rbp, rdx
mov qword [rsp + 0x68], rax
call sym.sqlite3GetVdbe
mov qword [rsp + 0x58], rax
test rbp, rbp
jne 0x14023dc12
mov esi, 1
jmp 0x1402412d5
cmp dword [rbx + 0x30], 0
jne 0x14023dc08
xor edx, edx
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rdx
mov edx, 0x15
call sym.sqlite3AuthCheck
test eax, eax
jne 0x14023dc08
mov rax, qword [rsp + 0x210]
cmp byte [rax], 6
ja 0x14023dc6f
mov r8, qword [rbp + 0x48]
test r8, r8
je 0x14023dc61
lea rdx, [sym.sqlite3ExprListDelete]
mov rcx, rbx
call sym.sqlite3ParserAddCleanup
xor eax, eax
mov qword [rbp + 0x48], rax
mov eax, dword [rbp + 4]
and eax, 0xfffffffe
or eax, 0x400000
mov dword [rbp + 4], eax
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
call sym.sqlite3SelectPrep
mov eax, dword [rbx + 0x30]
mov dword [rsp + 0x98], eax
test eax, eax
jne 0x14023dcc9
mov r11d, dword [rbp + 4]
bt r11d, 0x17
jae 0x14023dce0
mov rsi, qword [rbp + 0x28]
lea rcx, [rsi + 8]
mov rdx, rsi
call sym.sameSrcAlias
test eax, eax
je 0x14023dcd5
mov r8, qword [rsi + 0x20]
test r8, r8
jne 0x14023dcba
mov rax, qword [rsi + 0x28]
mov r8, qword [rax]
lea rdx, str.target_object_alias_may_not_appear_in_FROM_clause:__s
mov rcx, rbx
call sym.sqlite3ErrorMsg
xor eax, eax
mov qword [rsp + 0x60], rax
jmp 0x1402411da
and r11d, 0xff7fffff
mov dword [rbp + 4], r11d
mov rax, qword [rsp + 0x210]
cmp byte [rax], 9
jne 0x14023dcf8
mov rdx, rbp
mov rcx, rbx
call sym.sqlite3GenerateColumnNames
cmp qword [rbp + 0x70], 0
mov r14d, dword [rbp + 4]
jne 0x14023dd43
mov eax, dword [rbp + 4]
lea rdx, [rsp + 0x110]
mov ecx, 0xa
mov r13, qword [rbp + 0x28]
mov rdi, rdx
and eax, 8
setne sil
mov dword [rsp + 0x80], eax
xor eax, eax
rep stosd dword [rdi], eax
mov rax, qword [rbp + 0x48]
movzx esi, sil
xor edi, edi
mov qword [rsp + 0x108], rax
jmp 0x14023e215
cmp qword [rbp + 0x50], 0
jne 0x14023dd03
and r14d, 0x100000
jne 0x14023dd03
cmp byte [rbx + 0x134], 1
ja 0x14023dd03
mov rcx, rbx
call sym.sqlite3GetVdbe
mov edx, 0x68
mov r13, qword [rbp + 0x38]
mov rsi, qword [rbp + 0x70]
mov qword [rsp + 0x78], rax
mov rax, qword [rbx]
mov qword [rsp + 0x60], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp + 0x30]
mov qword [rsp + 0x80], rax
mov rax, qword [rbp + 0x40]
mov qword [rsp + 0x88], rax
xor eax, eax
mov qword [rsp + 0x138], rax
mov eax, dword [rbp + 4]
mov dword [rsp + 0x90], eax
call sym.sqlite3DbMallocZero
mov r12, rax
test rax, rax
jne 0x14023dddb
mov rcx, qword [rsp + 0x60]
mov edx, 7
call sym.sqlite3ErrorToParser
mov edi, eax
jmp 0x14023e1d4
lea rdx, [rsp + 0x180]
mov eax, r14d
mov ecx, 6
mov rdi, rdx
lea r15, [rsp + 0x168]
mov rdx, rbp
rep stosd dword [rdi], eax
lea rax, [sym.agginfoPersistExprCb]
mov rcx, r15
mov qword [rsp + 0x168], rbx
mov qword [rsp + 0x170], rax
lea rax, [sym.sqlite3SelectWalkNoop]
mov qword [rsp + 0x178], rax
call sym.sqlite3WalkSelect
test byte [rbp + 4], 8
jne 0x14023de54
lea rax, [sym.disallowAggregatesInOrderByCb]
mov rdx, qword [rbp + 0x48]
mov rcx, r15
mov qword [rsp + 0x170], rax
xor eax, eax
mov qword [rsp + 0x178], rax
call sym.sqlite3WalkExprList
xor eax, eax
mov r8, qword [rsi + 0x10]
mov r9d, 1
xor edx, edx
mov qword [rbp + 0x28], rax
mov rcx, rbx
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x40], rax
mov eax, dword [rbp + 4]
and eax, 0xfffffff7
or eax, 0x100000
mov dword [rbp + 4], eax
call sym.exprListAppendList
mov r8, qword [rsi + 0x18]
mov r9d, 1
mov rcx, rbx
mov rdx, rax
call sym.exprListAppendList
mov rdi, rax
test rax, rax
je 0x14023dee2
mov rdx, qword [rbp + 0x48]
test rdx, rdx
je 0x14023dee2
mov eax, dword [rdx]
mov r14d, dword [rdi]
cmp eax, r14d
jg 0x14023dee2
mov dword [rdi], eax
or r8d, 0xffffffff
mov rcx, rdi
call sym.sqlite3ExprListCompare
test eax, eax
jne 0x14023dedf
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rsp + 0x60]
xor r15d, r15d
call sym.sqlite3ExprListDelete
mov qword [rbp + 0x48], r15
mov dword [rdi], r14d
mov eax, dword [rbx + 0x34]
mov r8, qword [rsp + 0x70]
mov rdx, rsi
mov rcx, rbx
lea r14, [rsp + 0x138]
mov dword [rsi + 0x58], eax
add eax, 4
mov dword [rbx + 0x34], eax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r12
mov r9, qword [rbp + 0x20]
call sym.selectWindowRewriteEList
mov qword [rsp + 0x28], r14
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], r12
mov r8, qword [rsp + 0x70]
mov r9, qword [rbp + 0x48]
call sym.selectWindowRewriteEList
mov rdx, qword [rsp + 0x138]
xor eax, eax
test rdx, rdx
je 0x14023df43
mov eax, dword [rdx]
mov dword [rsi + 0x78], eax
mov r8, qword [rsi + 0x10]
xor r9d, r9d
mov rcx, rbx
mov r15, rsi
lea r14, [rsp + 0x138]
call sym.exprListAppendList
mov r8, qword [rsi + 0x18]
xor r9d, r9d
mov rcx, rbx
mov rdx, rax
call sym.exprListAppendList
mov qword [rsp + 0x138], rax
mov rax, qword [r15 + 0x70]
mov r8, qword [rax + 0x20]
mov rax, qword [r15 + 0x50]
test byte [rax + 6], 0x10
je 0x14023dfc8
mov qword [rsp + 0x28], r14
mov r9, r8
mov r8, qword [rsp + 0x70]
mov rdx, rsi
mov qword [rsp + 0x20], r12
mov rcx, rbx
call sym.selectWindowRewriteEList
mov rdx, qword [rsp + 0x138]
xor eax, eax
test rdx, rdx
je 0x14023dfba
mov eax, dword [rdx]
mov dword [r15 + 0x7c], eax
mov byte [r15 + 0x8c], 1
jmp 0x14023dff0
mov rdx, qword [rsp + 0x138]
xor eax, eax
test rdx, rdx
je 0x14023dfd9
mov eax, dword [rdx]
mov dword [r15 + 0x7c], eax
xor r9d, r9d
mov rcx, rbx
call sym.exprListAppendList
mov qword [rsp + 0x138], rax
mov rdx, qword [r15 + 0x48]
test rdx, rdx
je 0x14023e021
mov rcx, qword [rsp + 0x60]
xor r8d, r8d
call sym.sqlite3ExprDup
mov rdx, qword [rsp + 0x138]
mov rcx, rbx
mov r8, rax
call sym.sqlite3ExprListAppend
mov qword [rsp + 0x138], rax
mov eax, dword [rbx + 0x38]
mov rcx, qword [rsp + 0x78]
xor r8d, r8d
mov edx, 0x4b
lea r9d, [rax + 1]
add eax, 2
mov dword [r15 + 0x5c], r9d
mov dword [rbx + 0x38], eax
mov dword [r15 + 0x60], eax
call sym.sqlite3VdbeAddOp2
mov r15, qword [r15 + 0x40]
test r15, r15
jne 0x14023df7a
cmp qword [rsp + 0x138], 0
jne 0x14023e089
mov rcx, qword [rsp + 0x60]
lea r8, [0x140359502]
mov edx, 0x9b
call sym.sqlite3Expr
mov rcx, qword [rbx]
mov rdx, rax
call sym.sqlite3ExprListAppend.part.0.isra.0
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x88]
xor esi, esi
xor r14d, r14d
mov rcx, rbx
mov qword [rsp + 0x20], r13
mov r9, qword [rsp + 0x80]
mov qword [rsp + 0x40], rsi
mov r8, qword [rsp + 0x70]
mov dword [rsp + 0x38], r14d
mov rdx, qword [rsp + 0x138]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
call sym.sqlite3SelectNew
xor edx, edx
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov r13, rax
call sym.sqlite3SrcListAppend
mov qword [rbp + 0x28], rax
mov rdx, rax
test rax, rax
je 0x14023e1a2
or byte [rax + 0x48], 8
mov rcx, rbx
mov edi, 7
mov r8d, 0x40
mov qword [rax + 0x30], r13
call sym.sqlite3SrcListAssignCursors
or dword [r13 + 4], 0x8000040
mov rdx, r13
mov rcx, rbx
call sym.sqlite3ResultSetOfSelect
mov r14, rax
mov eax, dword [rsp + 0x90]
and eax, 8
or dword [r13 + 4], eax
test r14, r14
je 0x14023e1b1
mov rdi, r12
mov ecx, 0x1a
mov rsi, r14
mov rdx, r13
rep movsd dword [rdi], dword [rsi]
lea r8, [rsp + 0x168]
mov ecx, 0xc
mov rdi, r8
or dword [r12 + 0x30], 0x4000
mov rax, qword [rbp + 0x28]
mov qword [rax + 0x28], r12
xor eax, eax
mov r12, r14
rep stosd dword [rdi], eax
lea rax, [sym.sqlite3WindowExtraAggFuncDepth]
mov rcx, r8
mov qword [rsp + 0x170], rax
lea rax, [sym.sqlite3WalkerDepthIncrease]
mov qword [rsp + 0x178], rax
lea rax, [sym.sqlite3WalkerDepthDecrease]
mov qword [rsp + 0x180], rax
call sym.sqlite3WalkSelect
jmp 0x14023e1af
mov rcx, qword [rsp + 0x60]
mov rdx, r13
call sym.sqlite3SelectDelete
xor edi, edi
mov rax, qword [rsp + 0x60]
mov r8, r12
lea rdx, [sym.sqlite3DbFree]
mov rcx, rbx
cmp byte [rax + 0x67], 0
mov eax, 7
cmovne edi, eax
call sym.sqlite3ParserAddCleanup
test edi, edi
jne 0x14023dcc9
jmp 0x14023dd03
cmp dword [r13], edi
jle 0x14023e3fe
movsxd r15, edi
imul r15, r15, 0x68
add r15, r13
mov r8b, byte [r15 + 0x44]
mov r14, qword [r15 + 0x30]
mov r12, qword [r15 + 0x28]
test r8d, 0x48
jne 0x14023e228
test r14, r14
jne 0x14023e2fe
inc edi
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14023e1e1
jmp 0x14023e3d9
mov rcx, qword [rbp + 0x30]
mov edx, dword [r15 + 0x4c]
and r8d, 0x40
call sym.sqlite3ExprImpliesNonNullRow
test eax, eax
je 0x14023e20a
mov rax, qword [rsp + 0x68]
test byte [rax + 0x61], 0x20
jne 0x14023e20a
mov al, byte [r15 + 0x44]
test al, 8
je 0x14023e265
mov ecx, eax
mov edx, eax
and ecx, 0xffffffd7
and edx, 0xfffffff7
test al, 0x10
mov eax, ecx
cmovne eax, edx
mov byte [r15 + 0x44], al
movsxd rax, edi
imul rax, rax, 0x68
add rax, r13
test byte [rax + 0x44], 0x40
jne 0x14023e297
movsxd rax, edi
mov r8b, byte [r13 + 0x44]
mov rcx, qword [rbp + 0x30]
imul rax, rax, 0x68
and r8d, 0x40
mov edx, dword [r13 + rax + 0x4c]
call sym.unsetJoinExpr
jmp 0x14023e20a
mov edx, dword [r13]
lea r8d, [rdi + 1]
cmp edx, r8d
jle 0x14023e2d4
mov cl, byte [rax + 0xac]
test cl, 0x10
je 0x14023e2cb
mov r10d, ecx
mov r9d, ecx
and r10d, 0xffffffcf
and r9d, 0xffffffef
and cl, 8
cmove r9d, r10d
mov byte [rax + 0xac], r9b
inc r8d
add rax, 0x68
jmp 0x14023e29f
dec edx
movsxd rdx, edx
cmp edi, edx
jg 0x14023e275
imul rcx, rdx, 0x68
dec rdx
mov al, byte [r13 + rcx + 0x44]
mov r8d, eax
and r8d, 0xffffffbf
mov byte [r13 + rcx + 0x44], r8b
test al, 0x10
je 0x14023e2d9
jmp 0x14023e275
mov rax, qword [r14 + 0x20]
movsx r8d, word [r12 + 0x36]
mov eax, dword [rax]
cmp r8d, eax
je 0x14023e32b
mov dword [rsp + 0x20], eax
mov r9, qword [r12]
lea rdx, str.expected__d_columns_for__s_but_got__d
mov rcx, rbx
call sym.sqlite3ErrorMsg
jmp 0x14023dcc9
movsxd rax, edi
imul rax, rax, 0x68
add rax, r13
test byte [rax + 0x49], 1
je 0x14023e349
mov rax, qword [rax + 0x68]
cmp byte [rax + 0x12], 0
je 0x14023e213
mov eax, dword [r14 + 4]
test al, 8
jne 0x14023e213
mov r8, qword [r14 + 0x48]
test r8, r8
je 0x14024127e
cmp qword [rbp + 0x48], 0
jne 0x14023e370
cmp dword [r13], 1
jle 0x14023e3a9
cmp qword [r14 + 0x60], 0
jne 0x14023e3a9
bt eax, 0x1b
jb 0x14023e3a9
test byte [rbp + 7], 8
jne 0x14023e3a9
mov rax, qword [rsp + 0x68]
test byte [rax + 0x62], 4
jne 0x14023e3a9
lea rdx, [sym.sqlite3ExprListDelete]
mov rcx, rbx
call sym.sqlite3ParserAddCleanup
xor r11d, r11d
mov qword [r14 + 0x48], r11
jmp 0x14024127e
test edi, edi
jne 0x14024127e
test byte [rbp + 6], 4
je 0x14024127e
cmp dword [r13], 1
je 0x14023e213
test byte [r13 + 0xac], 0x22
je 0x14024127e
jmp 0x14023e213
mov r8, qword [rsp + 0x210]
mov rdx, rbp
mov rcx, rbx
call sym.multiSelect
cmp qword [rbp + 0x58], 0
mov esi, eax
jne 0x1402412d5
jmp 0x140241274
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x14023e510
cmp byte [rax], 0x2c
jne 0x14023e510
mov rax, qword [rsp + 0x68]
test byte [rax + 0x61], 0x80
jne 0x14023e510
mov rax, qword [rbx]
mov qword [rsp + 0x138], rbx
lea rsi, [rsp + 0x138]
lea rdi, [sym.propagateConstantExprRewrite]
lea r12, [sym.sqlite3SelectWalkNoop]
add rax, 0x67
mov qword [rsp + 0x140], rax
mov rdx, qword [rbp + 0x28]
xor r9d, r9d
xor r10d, r10d
mov eax, 1
mov qword [rsp + 0x158], r9
mov qword [rsp + 0x148], r9
mov dword [rsp + 0x150], r10d
test rdx, rdx
je 0x14023e491
cmp dword [rdx], 0
jle 0x14023e491
mov al, byte [rdx + 0x44]
and eax, 0x40
cmp al, 1
sbb eax, eax
and eax, 0xfffffffe
add eax, 3
mov rdx, qword [rbp + 0x30]
mov rcx, rsi
mov dword [rsp + 0x154], eax
call sym.findConstInWhere
cmp dword [rsp + 0x148], 0
je 0x14023e502
mov rdx, qword [rbp + 0x30]
lea rcx, [rsp + 0x168]
xorps xmm0, xmm0
mov qword [rsp + 0x168], rbx
mov qword [rsp + 0x170], rdi
mov qword [rsp + 0x178], r12
mov qword [rsp + 0x190], rsi
movups xmmword [rsp + 0x180], xmm0
call sym.sqlite3WalkExpr
mov rax, qword [rsp + 0x138]
mov rdx, qword [rsp + 0x158]
mov rcx, qword [rax]
call sym.sqlite3DbFree
cmp dword [rsp + 0x14c], 0
jne 0x14023e450
mov rax, qword [rsp + 0x68]
test dword [rax + 0x60], 0x201
jne 0x14023e6ee
test byte [rbp + 4], 8
je 0x14023e6ee
mov rax, qword [rbp + 0x20]
cmp dword [rax], 1
jne 0x14023e6ee
cmp qword [rbp + 0x30], 0
jne 0x14023e6ee
cmp qword [rbp + 0x40], 0
jne 0x14023e6ee
cmp qword [rbp + 0x38], 0
jne 0x14023e6ee
cmp qword [rbp + 0x48], 0
jne 0x14023e6ee
mov rdi, qword [rax + 8]
cmp byte [rdi], 0xa8
jne 0x14023e6ee
mov rcx, qword [rdi + 8]
lea rdx, str.count
call sym.sqlite3_stricmp
test eax, eax
jne 0x14023e6ee
cmp qword [rdi + 0x20], 0
jne 0x14023e6ee
mov rdx, qword [rbp + 0x28]
cmp dword [rdx], 1
jne 0x14023e6ee
test byte [rdi + 7], 1
jne 0x14023e6ee
mov rsi, qword [rdx + 0x30]
test rsi, rsi
je 0x14023e6ee
cmp qword [rsi + 0x50], 0
je 0x14023e6ee
test byte [rsi + 7], 4
jne 0x14023e6ee
mov r14, rsi
cmp byte [r14], 0x87
je 0x14023e5e2
cmp qword [r14 + 0x50], 0
jne 0x14023e6ee
cmp qword [r14 + 0x30], 0
jne 0x14023e6ee
cmp qword [r14 + 0x60], 0
jne 0x14023e6ee
test byte [r14 + 4], 8
jne 0x14023e6ee
mov r14, qword [r14 + 0x50]
test r14, r14
jne 0x14023e5d1
xor r8d, r8d
mov r12, qword [rbx]
mov qword [rdx + 0x30], r8
mov rcx, r12
call sym.sqlite3SrcListDelete
mov rcx, qword [rbx]
mov edx, 0x70
call sym.sqlite3DbMallocZero
mov qword [rbp + 0x28], rax
mov r13, rsi
xor ecx, ecx
mov rsi, qword [rsi + 0x50]
mov eax, dword [r13 + 4]
mov rdx, qword [r13 + 0x20]
mov qword [r13 + 0x50], rcx
mov qword [r13 + 0x58], rcx
mov rcx, r12
and ah, 0xfe
mov word [r13 + 2], 0
or eax, 8
mov dword [r13 + 4], eax
call sym.sqlite3ExprListDelete
mov rdx, rdi
test rsi, rsi
je 0x14023e677
xor r8d, r8d
mov rcx, r12
call sym.sqlite3ExprDup
mov rdx, rax
mov rcx, qword [rbx]
call sym.sqlite3ExprListAppend.part.0.isra.0
xor r8d, r8d
xor r9d, r9d
mov edx, 0x8a
mov qword [r13 + 0x20], rax
mov rcx, rbx
call sym.sqlite3PExpr
mov r8, r13
mov rcx, rbx
mov rdx, rax
mov r15, rax
call sym.sqlite3PExprAddSelect
test r14, r14
je 0x14023e6c2
mov r8, r15
mov r9, r14
mov edx, 0x6a
mov rcx, rbx
call sym.sqlite3PExpr
mov r15, rax
test rsi, rsi
je 0x14023e6cf
mov r14, r15
jmp 0x14023e62f
mov rax, qword [rbp + 0x20]
mov qword [rax + 8], r15
mov rax, qword [rsp + 0x68]
and dword [rbp + 4], 0xfffffff7
cmp byte [rax + 0x67], 0
jne 0x14023dcc9
mov r13, qword [rbp + 0x28]
lea rax, [rsp + 0x168]
lea rsi, [r13 + 8]
xor edi, edi
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x138]
mov qword [rsp + 0x88], rax
cmp dword [r13], edi
jle 0x14023eca9
cmp qword [rsi + 0x50], 0
jne 0x14023e748
mov r8, qword [rsi + 0x10]
test r8, r8
je 0x14023e748
mov rax, qword [rsi + 8]
lea r9, [0x14035904c]
mov edx, 0x14
mov rcx, rbx
mov qword [rsp + 0x20], rax
call sym.sqlite3AuthCheck
mov r12, qword [rsi + 0x28]
test r12, r12
je 0x14023ec9e
xor edx, edx
mov rcx, rbp
movsxd r14, edi
mov dword [rsp + 0x168], edx
mov rdx, qword [rsp + 0x70]
call sym.heightOfSelect
mov eax, dword [rsp + 0x168]
add dword [rbx + 0x13c], eax
mov rax, qword [rsp + 0x68]
test byte [rax + 0x61], 0x10
jne 0x14023e7b7
imul rax, r14, 0x68
test byte [r13 + rax + 0x49], 1
je 0x14023e7a1
mov rax, qword [rsi + 0x60]
cmp byte [rax + 0x12], 0
je 0x14023e7b7
cmp dword [rax], 1
jg 0x14023e7b7
mov dword [rsp + 0x20], edi
mov r8, qword [rbp + 0x30]
mov r9, r13
mov rdx, r12
mov rcx, rbx
call sym.pushDownWhereTerms.isra.0
mov rax, qword [rsp + 0x68]
test byte [rax + 0x63], 4
je 0x14023e7f8
mov rax, qword [rbx + 0x178]
mov r15d, dword [rbp + 4]
mov qword [rsp + 0x78], rax
mov rax, qword [rsi + 0x10]
mov qword [rbx + 0x178], rax
movsxd rax, edi
imul rax, rax, 0x68
mov r14b, byte [r13 + rax + 0x49]
and r14d, 1
jne 0x14023e8ec
jmp 0x14023e908
imul r14, r14, 0x68
test word [r13 + r14 + 0x48], 0x108
jne 0x14023e7c2
mov r8, qword [rsi + 0x28]
mov rax, r8
test rax, rax
je 0x14023e832
test byte [rax + 4], 9
jne 0x14023e7c2
mov rdx, qword [rax + 0x50]
test rdx, rdx
je 0x14023e826
cmp byte [rax], 0x87
jne 0x14023e7c2
cmp qword [rax + 0x70], 0
jne 0x14023e7c2
mov rax, rdx
jmp 0x14023e80d
mov rdx, qword [r8 + 0x48]
mov r9, qword [rsi + 0x50]
test rdx, rdx
je 0x14023e87b
mov r10d, dword [rdx]
mov r11d, 1
cmp r10d, eax
jle 0x14023e87b
mov rcx, rax
shl rcx, 5
mov ecx, dword [rdx + rcx + 0x20]
test cx, cx
je 0x14023e876
dec ecx
mov r14d, 0x3f
mov r15, r11
cmp cx, r14w
cmova ecx, r14d
shl r15, cl
or r9, r15
inc rax
jmp 0x14023e848
mov rax, qword [rsi + 0x20]
xor ecx, ecx
mov r14d, 1
movabs r11, 0x8000000000000000
movsx r10d, word [rax + 0x36]
cmp r10d, ecx
jle 0x14023e7c2
mov rax, r11
cmp ecx, 0x3e
jg 0x14023e8ad
mov rax, r14
shl rax, cl
test r9, rax
je 0x14023e8b6
inc ecx
jmp 0x14023e896
movsxd r15, ecx
mov rax, r8
shl r15, 5
test rax, rax
je 0x14023e8b2
mov rdx, qword [rax + 0x20]
add rdx, r15
mov rdx, qword [rdx + 8]
cmp byte [rdx], 0x79
je 0x14023e8e6
and dword [rdx + 4], 0xfff7dfff
mov byte [rdx], 0x79
or dword [rax + 4], 0x1000000
mov rax, qword [rax + 0x50]
jmp 0x14023e8c0
mov rdx, qword [rsi + 0x60]
mov al, byte [rdx + 0x12]
test al, al
je 0x14023ea7c
cmp dword [rdx], 1
jle 0x14023e908
cmp al, 2
jne 0x14023ea7c
test byte [r13 + 0x44], 0x40
jne 0x14023ea77
mov rax, qword [rbx]
test byte [rax + 0x63], 2
jne 0x14023ea77
mov r9d, dword [r13]
lea r8d, [rdi + 1]
mov rdx, rsi
mov rcx, r13
mov dword [rsp + 0x90], r9d
call sym.isSelfJoinView
test rax, rax
jne 0x14023ea77
test edi, edi
jne 0x14023e96c
mov r9d, dword [rsp + 0x90]
dec r9d
je 0x14023e99c
test byte [r13 + 0xac], 2
jne 0x14023e99c
bt r15d, 0x1c
jb 0x14023ea77
jmp 0x14023e99c
bt r15d, 0x1c
jb 0x14023ea77
mov rax, rsi
mov edx, edi
test byte [rax + 0x3c], 0x22
jne 0x14023ea77
test edx, edx
je 0x14023e99c
sub rax, 0x68
dec edx
cmp qword [rax + 0x28], 0
je 0x14023e97c
jmp 0x14023ea77
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x58]
xor r9d, r9d
mov edx, 0xb
mov r14d, dword [rax + 0x90]
mov eax, dword [rbx + 0x38]
lea r15d, [r14 + 1]
lea r8d, [rax + 1]
mov dword [rbx + 0x38], r8d
mov dword [rsi + 0x34], r8d
mov dword [rsp + 0x20], r15d
call sym.sqlite3VdbeAddOp3
mov eax, dword [rsi + 0x34]
mov dword [rsi + 0x30], r15d
mov r9, rsi
lea r8, str.CO_ROUTINE___S
mov edx, 1
mov rcx, rbx
mov byte [rsp + 0x168], 0xd
mov dword [rsp + 0x16c], eax
xor eax, eax
mov qword [rsp + 0x180], rax
mov qword [rsp + 0x170], rax
xor eax, eax
mov dword [rsp + 0x178], eax
call sym.sqlite3VdbeExplain
mov r8, qword [rsp + 0x70]
mov rdx, r12
mov rcx, rbx
call sym.sqlite3Select
mov dx, word [r12 + 2]
mov rax, qword [rsi + 0x20]
mov rcx, qword [rsp + 0x58]
mov word [rax + 0x3a], dx
movsxd rax, edi
imul rax, rax, 0x68
or byte [r13 + rax + 0x48], 0x20
mov eax, dword [rsp + 0x174]
mov edx, dword [rsi + 0x34]
mov dword [rsi + 0x38], eax
call sym.sqlite3VdbeEndCoroutine
mov rcx, qword [rsp + 0x58]
mov edx, r14d
call sym.sqlite3VdbeJumpHere
xor eax, eax
mov byte [rbx + 0x1f], 0
mov dword [rbx + 0x28], eax
jmp 0x14023ec5b
test r14b, r14b
je 0x14023eabe
mov r14, qword [rsi + 0x60]
mov r9d, dword [r14 + 4]
test r9d, r9d
jle 0x14023eabe
mov r8d, dword [r14 + 8]
mov rcx, qword [rsp + 0x58]
mov edx, 0xa
call sym.sqlite3VdbeAddOp2
mov r8d, dword [rsi + 0x44]
mov r9d, dword [r14 + 0xc]
cmp r8d, r9d
je 0x14023eab8
mov rcx, qword [rsp + 0x58]
mov edx, 0x73
call sym.sqlite3VdbeAddOp2
mov eax, dword [r14 + 0x10]
jmp 0x14023eb12
mov r9d, edi
xor r8d, r8d
mov rdx, rsi
mov rcx, r13
call sym.isSelfJoinView
mov r14, rax
test rax, rax
je 0x14023eb1d
mov r9d, dword [rax + 0x30]
test r9d, r9d
je 0x14023eaf3
mov r8d, dword [rax + 0x34]
mov rcx, qword [rsp + 0x58]
mov edx, 0xa
call sym.sqlite3VdbeAddOp2
mov r9d, dword [r14 + 0x44]
mov r8d, dword [rsi + 0x44]
mov edx, 0x73
mov rcx, qword [rsp + 0x58]
call sym.sqlite3VdbeAddOp2
mov rax, qword [r14 + 0x28]
mov ax, word [rax + 2]
mov word [r12 + 2], ax
jmp 0x14023ec5b
mov eax, dword [rbx + 0x38]
mov rcx, qword [rsp + 0x58]
mov edx, 9
inc eax
mov dword [rbx + 0x38], eax
mov dword [rsi + 0x34], eax
call sym.sqlite3VdbeAddOp0
xor r10d, r10d
lea r15d, [rax + 1]
mov r14d, eax
movsxd rax, edi
imul rax, rax, 0x68
mov dword [rsi + 0x30], r15d
lea rdx, [r13 + rax + 0x30]
mov al, byte [rdx + 0x18]
or eax, 0x10
mov byte [rdx + 0x18], al
test al, 8
jne 0x14023eb70
mov rcx, qword [rsp + 0x58]
mov edx, 0xf
call sym.sqlite3VdbeAddOp0
mov r10d, eax
mov eax, dword [rsi + 0x44]
mov r9, rsi
lea r8, str.MATERIALIZE___S
mov rcx, rbx
mov edx, 1
mov dword [rsp + 0x90], r10d
mov dword [rsp + 0x16c], eax
xor eax, eax
mov qword [rsp + 0x180], rax
mov qword [rsp + 0x170], rax
xor eax, eax
mov byte [rsp + 0x168], 0xc
mov dword [rsp + 0x178], eax
call sym.sqlite3VdbeExplain
mov rdx, r12
lea r8, [rsp + 0x168]
mov rcx, rbx
call sym.sqlite3Select
mov rax, qword [rsi + 0x20]
mov dx, word [r12 + 2]
mov r10d, dword [rsp + 0x90]
mov word [rax + 0x3a], dx
test r10d, r10d
je 0x14023ebf7
mov rcx, qword [rsp + 0x58]
mov edx, r10d
call sym.sqlite3VdbeJumpHere
mov r8d, dword [rsi + 0x34]
mov rcx, qword [rsp + 0x58]
mov r9d, r15d
mov edx, 0x43
call sym.sqlite3VdbeAddOp2
mov rcx, qword [rsp + 0x58]
mov edx, r14d
xor r14d, r14d
call sym.sqlite3VdbeJumpHere
movsxd rax, edi
mov byte [rbx + 0x1f], 0
imul rax, rax, 0x68
mov dword [rbx + 0x28], r14d
mov eax, dword [r13 + rax + 0x48]
and ax, 0x108
cmp ax, 0x100
jne 0x14023ec5b
mov edx, dword [rsi + 0x30]
mov rax, qword [rsi + 0x60]
mov dword [rax + 4], edx
mov edx, dword [rsi + 0x34]
mov dword [rax + 8], edx
mov edx, dword [rsi + 0x44]
mov dword [rax + 0xc], edx
mov dx, word [r12 + 2]
mov word [rax + 0x10], dx
mov rax, qword [rsp + 0x68]
cmp byte [rax + 0x67], 0
jne 0x14023dcc9
mov rdx, qword [rsp + 0x88]
xor r12d, r12d
mov rcx, rbp
mov dword [rsp + 0x138], r12d
call sym.heightOfSelect
mov eax, dword [rsp + 0x138]
sub dword [rbx + 0x13c], eax
mov rax, qword [rsp + 0x78]
mov qword [rbx + 0x178], rax
inc edi
add rsi, 0x68
jmp 0x14023e711
mov rax, qword [rbp + 0x20]
mov r12, qword [rbp + 0x38]
mov r14, qword [rsp + 0x108]
mov qword [rsp + 0x78], rax
mov rax, qword [rbp + 0x30]
mov qword [rsp + 0x90], rax
mov rax, qword [rbp + 0x40]
mov qword [rsp + 0xb0], rax
mov eax, dword [rbp + 4]
mov byte [rsp + 0xfc], al
and eax, 9
and byte [rsp + 0xfc], 1
dec eax
jne 0x14023ed34
mov rdx, qword [rsp + 0x78]
or r8d, 0xffffffff
mov rcx, r14
call sym.sqlite3ExprListCompare
test eax, eax
jne 0x14023ed34
cmp qword [rbp + 0x70], 0
jne 0x14023ed34
and dword [rbp + 4], 0xfffffffe
mov rdx, qword [rsp + 0x78]
xor r8d, r8d
mov rcx, qword [rsp + 0x68]
call sym.sqlite3ExprListDup
or dword [rbp + 4], 8
mov qword [rbp + 0x38], rax
mov r12, rax
mov byte [rsp + 0xfc], 2
mov dword [rsp + 0x88], 0xffffffff
test r14, r14
je 0x14023edaa
mov rax, qword [rsp + 0x78]
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
mov r9d, dword [rax]
call sym.sqlite3KeyInfoFromExprList
mov r8d, dword [rbx + 0x34]
xor r11d, r11d
mov edx, dword [r14]
mov rcx, rax
lea eax, [r8 + 1]
mov dword [rsp + 0x114], r8d
mov dword [rbx + 0x34], eax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x30], 0xfffffff8
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x20], r11d
lea r9d, [rdx + rax + 1]
mov edx, 0x76
call sym.sqlite3VdbeAddOp4
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x120], eax
mov rax, qword [rsp + 0x210]
cmp byte [rax], 0xc
je 0x14023ede9
mov eax, dword [rbx + 0x44]
dec eax
mov dword [rsp + 0xe0], eax
mov dword [rbx + 0x44], eax
test byte [rbp + 5], 0x40
jne 0x14023eea7
mov word [rbp + 2], 0x140
jmp 0x14023eea7
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
mov edx, 0x76
mov r9d, dword [rax]
mov rax, qword [rsp + 0x210]
mov r8d, dword [rax + 4]
call sym.sqlite3VdbeAddOp2
test byte [rbp + 5], 8
je 0x14023edc5
mov rax, qword [rsp + 0x78]
movsxd rsi, dword [rax]
lea edi, [rsi - 1]
shl rsi, 5
test edi, edi
jle 0x14023ee6f
movsxd rax, edi
mov rcx, qword [rsp + 0x78]
sub rsi, 0x20
shl rax, 5
test byte [rcx + rax + 0x1c], 0x40
jne 0x14023ee6f
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
dec edi
mov rdx, qword [rax + rsi + 8]
call sym.sqlite3ExprDelete
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rax + rsi + 0x10]
call sym.sqlite3DbFree
mov rax, qword [rsp + 0x78]
dec dword [rax]
jmp 0x14023ee21
mov rax, qword [rsp + 0x78]
mov ecx, dword [rax]
xor eax, eax
cmp ecx, eax
jle 0x14023edc5
movsxd rdx, eax
mov rdi, qword [rsp + 0x78]
shl rdx, 5
test byte [rdi + rdx + 0x1c], 0x40
jne 0x14023eea2
mov rdx, rax
shl rdx, 5
mov rdx, qword [rdi + rdx + 8]
mov byte [rdx], 0x79
inc rax
jmp 0x14023ee78
cmp qword [rbp + 0x60], 0
je 0x14023eec1
mov r8d, dword [rsp + 0xe0]
mov rdx, rbp
mov rcx, rbx
call sym.computeLimitRegisters
cmp dword [rbp + 8], 0
jne 0x14023eeed
cmp dword [rsp + 0x88], 0
js 0x14023eeed
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
call sym.sqlite3VdbeGetOp
mov byte [rsp + 0x12c], 1
mov byte [rax], 0x77
xor eax, eax
test byte [rbp + 4], 1
je 0x14023ef59
mov esi, dword [rbx + 0x34]
mov rdx, qword [rbp + 0x20]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea eax, [rsi + 1]
mov dword [rsp + 0x100], esi
mov dword [rbx + 0x34], eax
call sym.sqlite3KeyInfoFromExprList
xor r10d, r10d
mov rcx, qword [rsp + 0x58]
xor r9d, r9d
mov dword [rsp + 0x30], 0xfffffff8
mov edx, 0x76
mov r8d, esi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r10d
call sym.sqlite3VdbeAddOp4
mov rcx, qword [rsp + 0x58]
mov edx, 8
mov dword [rsp + 0x104], eax
call sym.sqlite3VdbeChangeP5
mov al, 3
cmp dword [rsp + 0x80], 0
mov byte [rsp + 0xfd], al
jne 0x140240223
test r12, r12
jne 0x14024022c
mov dil, byte [rsp + 0xfc]
mov edx, dword [rbp + 4]
xor eax, eax
mov rsi, qword [rbp + 0x70]
and dx, 0x4000
test dil, dil
setne al
shl eax, 8
or edx, eax
mov word [rsp + 0x70], dx
test rsi, rsi
je 0x14023f254
mov rax, qword [rbp + 0x28]
mov rcx, rbx
mov rax, qword [rax + 0x30]
mov rax, qword [rax + 0x20]
mov r9d, dword [rax]
mov dword [rsp + 0x80], r9d
call sym.sqlite3GetVdbe
mov r8d, dword [rsi + 0x58]
mov edx, 0x76
mov r9d, dword [rsp + 0x80]
mov rcx, rax
mov qword [rsp + 0x60], rax
call sym.sqlite3VdbeAddOp2
mov r9d, dword [rsi + 0x58]
mov rcx, qword [rsp + 0x60]
mov edx, 0x73
lea r8d, [r9 + 1]
call sym.sqlite3VdbeAddOp2
mov r9d, dword [rsi + 0x58]
mov rcx, qword [rsp + 0x60]
mov edx, 0x73
lea r8d, [r9 + 2]
call sym.sqlite3VdbeAddOp2
mov r9d, dword [rsi + 0x58]
mov rcx, qword [rsp + 0x60]
mov edx, 0x73
lea r8d, [r9 + 3]
call sym.sqlite3VdbeAddOp2
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14023f05e
mov edx, dword [rax]
mov eax, dword [rbx + 0x38]
xor r8d, r8d
mov rcx, qword [rsp + 0x60]
lea r9d, [rax + 1]
add eax, edx
mov dword [rsi + 0x6c], r9d
mov dword [rbx + 0x38], eax
lea eax, [rdx + r9 - 1]
mov edx, 0x4b
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp3
mov eax, dword [rbx + 0x38]
mov rcx, qword [rsp + 0x60]
mov edx, 0x47
mov r12, rsi
mov r8d, 1
lea r15, [0x1403697e0]
lea r9d, [rax + 1]
mov dword [rbx + 0x38], r9d
mov dword [rsi + 0x80], r9d
call sym.sqlite3VdbeAddOp2
cmp byte [rsi + 0x24], 0
je 0x14023f15c
mov eax, dword [rbx + 0x38]
mov rcx, qword [rsp + 0x60]
mov r8d, 1
lea r9d, [rax + 1]
add eax, 2
mov dword [rsi + 0x84], r9d
mov dword [rbx + 0x38], eax
mov dword [rsi + 0x88], eax
mov eax, dword [rbx + 0x34]
lea edx, [rax + 1]
mov dword [rbx + 0x34], edx
mov edx, 0x47
mov dword [rsi + 0x64], eax
call sym.sqlite3VdbeAddOp2
mov r9d, dword [rsi + 0x88]
mov rcx, qword [rsp + 0x60]
xor r8d, r8d
mov edx, 0x47
call sym.sqlite3VdbeAddOp2
mov r9d, dword [rsi + 0x58]
mov r8d, dword [rsi + 0x64]
mov edx, 0x73
mov rcx, qword [rsp + 0x60]
call sym.sqlite3VdbeAddOp2
jmp 0x14023f254
cmp byte [r12 + 0x21], 0x5a
jne 0x14023f169
mov rax, qword [rax + 0x38]
lea rcx, str.first_value
cmp rax, rcx
je 0x14023f209
lea rcx, str.nth_value
cmp rax, rcx
je 0x14023f209
cmp rax, r15
je 0x14023f22c
lea rdx, str.lead
cmp rax, rdx
je 0x14023f22c
mov r12, qword [r12 + 0x40]
test r12, r12
je 0x14023f254
mov rax, qword [r12 + 0x50]
test byte [rax + 5], 0x10
je 0x14023f111
jmp 0x14023f109
mov rax, qword [r12 + 0x70]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov rdx, qword [rax + 0x20]
call sym.sqlite3KeyInfoFromExprList
mov r11, rax
mov eax, dword [rbx + 0x34]
lea edx, [rax + 1]
mov dword [rbx + 0x34], edx
mov dword [r12 + 0x64], eax
mov eax, dword [rbx + 0x38]
lea edx, [rax + 1]
add eax, 3
mov dword [r12 + 0x68], edx
mov dword [rbx + 0x38], eax
test r11, r11
je 0x14023f1bd
mov rax, qword [r12 + 0x50]
mov rax, qword [rax + 0x38]
cmp byte [rax + 1], 0x69
jne 0x14023f1bd
mov rax, qword [r11 + 0x18]
mov byte [rax], 1
mov r8d, dword [r12 + 0x64]
mov rcx, qword [rsp + 0x60]
mov r9d, 2
mov edx, 0x76
mov qword [rsp + 0x80], r11
call sym.sqlite3VdbeAddOp2
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x80]
mov r8d, 0xfffffff8
call sym.sqlite3VdbeAppendP4
mov r9d, dword [r12 + 0x68]
xor r8d, r8d
mov edx, 0x47
inc r9d
jmp 0x14023f245
mov eax, dword [rbx + 0x38]
mov r8d, dword [rbx + 0x34]
lea edx, [rax + 1]
add eax, 2
mov dword [r12 + 0x68], edx
lea edx, [r8 + 1]
mov dword [rbx + 0x34], edx
mov dword [r12 + 0x64], r8d
mov dword [rbx + 0x38], eax
jmp 0x14023f23c
mov r8d, dword [rbx + 0x34]
lea eax, [r8 + 1]
mov dword [rbx + 0x34], eax
mov dword [r12 + 0x64], r8d
mov r9d, dword [rsi + 0x58]
mov edx, 0x73
mov rcx, qword [rsp + 0x60]
call sym.sqlite3VdbeAddOp2
jmp 0x14023f14e
movsx eax, word [rbp + 2]
mov qword [rsp + 0x28], rbp
mov r9, r14
mov rdx, r13
mov r8, qword [rsp + 0x90]
mov rcx, rbx
mov dword [rsp + 0x38], eax
movzx eax, word [rsp + 0x70]
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 0x20]
mov qword [rsp + 0x20], rax
call sym.sqlite3WhereBegin
mov r15, rax
test rax, rax
je 0x14023dcc9
mov eax, dword [rax + 0x48]
cmp word [rbp + 2], ax
jle 0x14023f2a2
mov word [rbp + 2], ax
test dil, dil
je 0x14023f2b6
mov al, byte [r15 + 0x43]
test al, al
je 0x14023f2b6
mov byte [rsp + 0xfd], al
test r14, r14
jne 0x14023f2c7
cmp dword [rsp + 0x88], 0
jns 0x14023f32a
jmp 0x14023f346
movsx edx, byte [r15 + 0x41]
xor eax, eax
test dl, dl
cmovs edx, eax
mov dword [rsp + 0x110], edx
test byte [r15 + 0x44], 4
je 0x14023f2fb
movzx eax, byte [r15 + 0x40]
dec eax
cdqe
imul rax, rax, 0x70
add rax, r15
cmp qword [rax + 0x398], 0
je 0x14023f301
mov eax, dword [r15 + 0x30]
jmp 0x14023f307
mov eax, dword [rax + 0x370]
mov dword [rsp + 0x128], eax
cmp dword [r14], edx
jne 0x14023f2bb
xor r9d, r9d
cmp dword [rsp + 0x88], 0
mov qword [rsp + 0x108], r9
js 0x14023f346
jmp 0x14023f335
cmp qword [rsp + 0x108], 0
jne 0x14023f346
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
call sym.sqlite3VdbeChangeToNoop.isra.0
test rsi, rsi
je 0x1402401d5
mov eax, dword [rbx + 0x44]
mov rsi, qword [rbp + 0x70]
mov rcx, rbx
lea edi, [rax - 1]
mov r13, qword [rsi + 0x18]
mov dword [rsp + 0xc8], edi
lea edi, [rax - 2]
sub eax, 3
mov dword [rsp + 0xa8], eax
mov dword [rbx + 0x44], eax
mov eax, dword [rbx + 0x38]
mov dword [rsp + 0xc4], edi
inc eax
mov dword [rbx + 0x38], eax
mov dword [rsp + 0xb8], eax
call sym.sqlite3GetVdbe
lea rdx, [rsp + 0x188]
mov ecx, 0xa
mov qword [rsp + 0x60], rax
mov rax, qword [rbp + 0x28]
mov edi, dword [rax + 0x4c]
mov rax, qword [rax + 0x28]
movsx eax, word [rax + 0x36]
mov dword [rsp + 0xd8], edi
mov rdi, rdx
mov dword [rsp + 0x9c], eax
mov eax, dword [rbx + 0x44]
dec eax
mov dword [rbx + 0x44], eax
mov dword [rsp + 0x90], eax
xor eax, eax
rep stosd dword [rdi], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x168], rbx
mov qword [rsp + 0x170], rsi
mov qword [rsp + 0x178], rax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x184], eax
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x180], eax
mov eax, dword [rsi + 0x58]
mov dword [rsp + 0x80], eax
mov dword [rsp + 0x19c], eax
inc eax
mov dword [rsp + 0xc0], eax
mov eax, dword [rsp + 0x80]
add eax, 2
mov dword [rsp + 0x194], eax
mov dword [rsp + 0xcc], eax
mov eax, dword [rsp + 0x80]
add eax, 3
mov dword [rsp + 0xac], eax
mov dword [rsp + 0x1a4], eax
mov al, byte [rsi + 0x21]
cmp al, 0x56
je 0x14023f46a
cmp al, 0x5a
je 0x14023f498
jmp 0x14023f533
cmp byte [rsi + 0x20], 0x59
je 0x14023f53e
mov rdx, qword [rsi + 0x28]
mov rcx, qword [rbx]
call sym.windowExprGtZero.isra.0
test eax, eax
je 0x14023f53e
mov dword [rsp + 0x18c], 1
jmp 0x14023f53e
mov ecx, dword [rsi + 0x84]
test ecx, ecx
jne 0x14023f53e
mov rax, rsi
lea r9, str.nth_value
lea r10, str.first_value
lea r11, str.lead
lea rdi, [0x1403697e0]
test rax, rax
je 0x14023f4ff
mov rdx, qword [rax + 0x50]
mov rdx, qword [rdx + 0x38]
cmp rdx, r9
sete r12b
cmp rdx, r10
sete r8b
or r8d, r12d
cmp rdx, r11
sete r12b
or r12b, r8b
jne 0x14023f4fa
cmp rdx, rdi
je 0x14023f4fa
mov rax, qword [rax + 0x40]
jmp 0x14023f4c5
mov ecx, 1
mov dl, byte [rsi + 0x22]
mov al, byte [rsi + 0x20]
test ecx, ecx
jne 0x14023f53e
cmp dl, 0x58
jne 0x14023f488
cmp al, 0x59
je 0x14023f53e
mov rdx, qword [rsi + 0x30]
mov rcx, qword [rbx]
call sym.windowExprGtZero.isra.0
test eax, eax
je 0x14023f53e
mov dword [rsp + 0x18c], 3
jmp 0x14023f53e
mov dword [rsp + 0x18c], 2
mov r14d, dword [rbx + 0x38]
mov eax, dword [rsp + 0x9c]
xor r8d, r8d
mov dword [rsp + 0x70], r8d
add eax, r14d
lea r12d, [r14 + 1]
lea edi, [rax + 1]
mov dword [rsp + 0xd0], edi
lea edi, [rax + 2]
mov dword [rsp + 0xa0], edi
mov dword [rbx + 0x38], edi
mov dword [rsp + 0x190], edi
mov dil, byte [rsi + 0x21]
lea edx, [rdi - 0x56]
and dl, 0xfd
jne 0x14023f58c
add eax, 3
mov dword [rsp + 0x70], eax
mov dword [rbx + 0x38], eax
mov al, byte [rsi + 0x22]
xor edi, edi
sub eax, 0x56
test al, 0xfd
jne 0x14023f5a1
mov eax, dword [rbx + 0x38]
lea edi, [rax + 1]
mov dword [rbx + 0x38], edi
cmp byte [rsi + 0x20], 0x4c
je 0x14023f609
xor edx, edx
test r13, r13
je 0x14023f5b2
mov edx, dword [r13]
mov eax, dword [rsi + 0x78]
add eax, r12d
mov dword [rsp + 0xb0], eax
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14023f5d1
mov eax, dword [rax]
add dword [rsp + 0xb0], eax
mov eax, dword [rbx + 0x38]
lea ecx, [rax + 1]
add eax, edx
mov dword [rsp + 0x88], ecx
lea ecx, [rax + 1]
add eax, edx
mov dword [rsp + 0x198], ecx
lea ecx, [rax + 1]
add eax, edx
mov dword [rsp + 0x1a0], ecx
add edx, eax
lea ecx, [rax + 1]
mov dword [rsp + 0x1a8], ecx
mov dword [rbx + 0x38], edx
jmp 0x14023f619
xor ecx, ecx
mov dword [rsp + 0x88], ecx
mov dword [rsp + 0xb0], ecx
xor r9d, r9d
inc r14d
cmp dword [rsp + 0x9c], r9d
jle 0x14023f65d
lea eax, [r14 + r9]
mov rcx, qword [rsp + 0x60]
mov r8d, dword [rsp + 0xd8]
mov edx, 0x5e
mov dword [rsp + 0x20], eax
mov dword [rsp + 0xe4], r9d
call sym.sqlite3VdbeAddOp3
mov r9d, dword [rsp + 0xe4]
inc r9d
jmp 0x14023f61f
mov eax, dword [rsp + 0xd0]
mov r9d, dword [rsp + 0x9c]
mov edx, 0x61
mov r8d, r12d
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp3
mov rdx, qword [rsi + 0x10]
test rdx, rdx
je 0x14023f756
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov r14d, dword [rdx]
add r12d, dword [rsi + 0x78]
call sym.sqlite3KeyInfoFromExprList
mov r9d, dword [rsi + 0x6c]
mov rcx, qword [rsp + 0x60]
mov r8d, r12d
mov qword [rsp + 0xd8], rax
mov eax, dword [rbx + 0x38]
mov edx, 0x5a
inc eax
mov dword [rbx + 0x38], eax
mov dword [rsp + 0x20], r14d
dec r14d
mov dword [rsp + 0x9c], eax
call sym.sqlite3VdbeAddOp3
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0xd8]
mov r8d, 0xfffffff8
mov dword [rsp + 0xe4], eax
call sym.sqlite3VdbeAppendP4
mov rcx, qword [rsp + 0x60]
mov edx, 0xe
mov eax, dword [rsp + 0xe4]
lea r8d, [rax + 2]
lea r9d, [rax + 4]
mov dword [rsp + 0x20], r8d
call sym.sqlite3VdbeAddOp3
mov rcx, qword [rsp + 0x60]
mov edx, 0xa
mov r8d, dword [rsp + 0x9c]
call sym.sqlite3VdbeAddOp1
mov r9d, dword [rsi + 0x6c]
mov dword [rsp + 0x20], r14d
mov r8d, r12d
mov rcx, qword [rsp + 0x60]
mov edx, 0x50
mov dword [rsp + 0xd8], eax
call sym.sqlite3VdbeAddOp3
jmp 0x14023f766
xor edx, edx
mov dword [rsp + 0x9c], edx
mov dword [rsp + 0xd8], edx
mov rcx, qword [rsp + 0x60]
mov edx, 0x7f
xor r12d, r12d
mov r14, rsi
mov r9d, dword [rsp + 0xa0]
mov r8d, dword [rsp + 0xc0]
call sym.sqlite3VdbeAddOp2
mov rcx, qword [rsp + 0x60]
mov edx, pe_nt_image_headers64
mov eax, dword [rsp + 0xa0]
mov r9d, dword [rsp + 0xd0]
mov r8d, dword [rsp + 0xc0]
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp3
mov eax, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
mov r8d, dword [rsi + 0x80]
mov edx, 0x34
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp3
mov rcx, rbx
mov dword [rsp + 0xe4], eax
call sym.sqlite3GetVdbe
mov qword [rsp + 0xa0], rax
mov rax, qword [r14 + 0x50]
mov r9d, dword [r14 + 0x5c]
mov edx, 0x4b
xor r8d, r8d
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0xd0], rax
call sym.sqlite3VdbeAddOp2
mov rax, qword [r14 + 0x70]
mov rdx, qword [rax + 0x20]
xor eax, eax
test rdx, rdx
je 0x14023f826
mov eax, dword [rdx]
cmp r12d, eax
cmovl r12d, eax
cmp dword [rsi + 0x84], 0
jne 0x14023f8d8
mov rax, qword [rsp + 0xd0]
lea rcx, str.first_value
mov rax, qword [rax + 0x38]
cmp rax, rcx
je 0x14023f85e
lea rcx, str.nth_value
cmp rax, rcx
jne 0x14023f893
mov r9d, dword [r14 + 0x68]
mov rcx, qword [rsp + 0xa0]
xor r8d, r8d
mov edx, 0x47
call sym.sqlite3VdbeAddOp2
mov r9d, dword [r14 + 0x68]
xor r8d, r8d
mov rcx, qword [rsp + 0xa0]
mov edx, 0x47
inc r9d
call sym.sqlite3VdbeAddOp2
mov rax, qword [rsp + 0xd0]
test byte [rax + 5], 0x10
je 0x14023f8d8
mov r8d, dword [r14 + 0x64]
test r8d, r8d
je 0x14023f8d8
mov rcx, qword [rsp + 0xa0]
mov edx, 0x92
call sym.sqlite3VdbeAddOp1
mov r9d, dword [r14 + 0x68]
xor r8d, r8d
mov rcx, qword [rsp + 0xa0]
mov edx, 0x47
inc r9d
call sym.sqlite3VdbeAddOp2
mov r14, qword [r14 + 0x40]
test r14, r14
jne 0x14023f7f0
mov eax, dword [rbx + 0x38]
add r12d, eax
inc eax
cmp dword [rsp + 0x70], 0
mov dword [rbx + 0x38], r12d
mov dword [rsp + 0x188], eax
je 0x14023f92b
mov rdx, qword [rsi + 0x28]
mov r8d, dword [rsp + 0x70]
mov rcx, rbx
call sym.sqlite3ExprCode
xor r8d, r8d
cmp byte [rsi + 0x20], 0x59
mov edx, dword [rsp + 0x70]
sete r8b
mov rcx, rbx
lea r8d, [r8 + r8*2]
call sym.windowCheckValue
test edi, edi
je 0x14023f958
mov rdx, qword [rsi + 0x30]
mov r8d, edi
mov rcx, rbx
call sym.sqlite3ExprCode
xor r8d, r8d
cmp byte [rsi + 0x20], 0x59
mov edx, edi
sete r8b
mov rcx, rbx
lea r8d, [r8 + r8*2 + 1]
call sym.windowCheckValue
cmp byte [rsi + 0x20], 0x59
je 0x14023fa0c
mov al, byte [rsi + 0x21]
cmp byte [rsi + 0x22], al
jne 0x14023fa0c
cmp dword [rsp + 0x70], 0
je 0x14023fa0c
xor edx, edx
mov dword [rsp + 0x20], edi
cmp al, 0x56
mov r8d, dword [rsp + 0x70]
sete dl
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
lea r14, [rsp + 0x168]
lea edx, [rdx + rdx + 0x37]
call sym.sqlite3VdbeAddOp3
xor edx, edx
mov rcx, r14
mov r12d, eax
call sym.windowAggFinal
mov rcx, qword [rsp + 0x60]
mov edx, 0x24
mov r8d, dword [rsp + 0x80]
call sym.sqlite3VdbeAddOp1
mov rcx, r14
call sym.windowReturnOneRow
mov rcx, qword [rsp + 0x60]
mov edx, 0x92
mov r8d, dword [rsp + 0x80]
call sym.sqlite3VdbeAddOp1
mov rcx, qword [rsp + 0x60]
mov edx, 9
xor r8d, r8d
mov r9d, dword [rsp + 0x90]
call sym.sqlite3VdbeAddOp2
mov rcx, qword [rsp + 0x60]
mov edx, r12d
call sym.sqlite3VdbeJumpHere
cmp byte [rsi + 0x21], 0x56
jne 0x14023fa52
cmp byte [rsi + 0x20], 0x59
je 0x14023fa1c
test edi, edi
jne 0x14023fa35
mov r8d, dword [rsp + 0xcc]
mov rcx, qword [rsp + 0x60]
mov edx, 0x24
call sym.sqlite3VdbeAddOp1
jmp 0x14023fa58
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
mov r9d, edi
mov edx, 0x6b
mov dword [rsp + 0x20], eax
mov r8d, eax
call sym.sqlite3VdbeAddOp3
cmp byte [rsi + 0x21], 0x5a
jne 0x14023fa1c
mov r8d, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
mov edx, 0x24
call sym.sqlite3VdbeAddOp1
mov rcx, qword [rsp + 0x60]
mov edx, 0x24
mov r8d, dword [rsp + 0xac]
call sym.sqlite3VdbeAddOp1
cmp dword [rsp + 0x88], 0
je 0x14023fb41
test r13, r13
je 0x14023fb41
mov eax, dword [r13]
mov rcx, qword [rsp + 0x60]
mov edx, 0x50
mov r9d, dword [rsp + 0x88]
mov r8d, dword [rsp + 0xb0]
dec eax
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp3
mov eax, dword [r13]
mov rcx, qword [rsp + 0x60]
mov edx, 0x50
mov r9d, dword [rsp + 0x198]
mov r8d, dword [rsp + 0x88]
dec eax
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp3
mov eax, dword [r13]
mov rcx, qword [rsp + 0x60]
mov edx, 0x50
mov r9d, dword [rsp + 0x1a0]
mov r8d, dword [rsp + 0x88]
dec eax
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp3
mov eax, dword [r13]
mov rcx, qword [rsp + 0x60]
mov edx, 0x50
mov r9d, dword [rsp + 0x1a8]
mov r8d, dword [rsp + 0x88]
dec eax
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp3
mov r9d, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
xor r8d, r8d
mov edx, 9
call sym.sqlite3VdbeAddOp2
mov edx, dword [rsp + 0xe4]
mov rcx, qword [rsp + 0x60]
call sym.sqlite3VdbeJumpHere
cmp dword [rsp + 0x88], 0
je 0x14023fb9c
mov eax, dword [rsp + 0x90]
mov r9d, dword [rsp + 0x88]
mov rdx, r13
mov rcx, rbx
mov r8d, dword [rsp + 0xb0]
mov dword [rsp + 0x20], eax
call sym.windowIfNewPeer
cmp byte [rsi + 0x21], 0x56
lea r14, [rsp + 0x168]
jne 0x14023fc7e
xor r9d, r9d
xor r8d, r8d
mov edx, 3
mov rcx, r14
call sym.windowCodeOp
cmp byte [rsi + 0x22], 0x5a
je 0x14023fe2a
cmp byte [rsi + 0x20], 0x59
jne 0x14023fc59
mov eax, dword [rbx + 0x44]
mov r9d, edi
mov edx, 0x39
mov rcx, r14
mov r8d, dword [rsp + 0x80]
lea r13d, [rax - 1]
mov rax, qword [rsp + 0x60]
mov dword [rbx + 0x44], r13d
mov r12d, dword [rax + 0x90]
mov eax, dword [rsp + 0xac]
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], eax
call sym.windowCodeRangeTest
mov r8d, dword [rsp + 0x70]
xor r9d, r9d
mov rcx, r14
mov edx, 2
call sym.windowCodeOp
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rcx, r14
call sym.windowCodeOp
mov rcx, qword [rsp + 0x60]
mov r9d, r12d
xor r8d, r8d
mov edx, 9
call sym.sqlite3VdbeAddOp2
mov edx, r13d
jmp 0x14023fdb6
xor r9d, r9d
mov r8d, edi
mov edx, 1
mov rcx, r14
call sym.windowCodeOp
mov r8d, dword [rsp + 0x70]
xor r9d, r9d
mov rcx, r14
mov edx, 2
jmp 0x14023fcef
cmp byte [rsi + 0x22], 0x58
jne 0x14023fcf9
mov r12d, dword [rsi + 0x20]
xor r9d, r9d
mov r8d, edi
mov edx, 3
mov rcx, r14
call sym.windowCodeOp
cmp r12w, 0x5859
jne 0x14023fcb8
mov r8d, dword [rsp + 0x70]
xor r9d, r9d
mov edx, 2
mov rcx, r14
call sym.windowCodeOp
lea r13, [rsp + 0x168]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rcx, r13
call sym.windowCodeOp
cmp r12w, 0x5859
je 0x14023fe2a
mov r8d, dword [rsp + 0x70]
xor r9d, r9d
mov edx, 2
mov rcx, r13
call sym.windowCodeOp
jmp 0x14023fe2a
xor r9d, r9d
xor r8d, r8d
mov edx, 3
mov rcx, r14
call sym.windowCodeOp
cmp byte [rsi + 0x22], 0x5a
je 0x14023fe2a
cmp byte [rsi + 0x20], 0x59
jne 0x14023fdc2
mov rax, qword [rsp + 0x60]
xor r12d, r12d
mov r13d, dword [rax + 0x90]
test edi, edi
je 0x14023fd66
mov eax, dword [rbx + 0x44]
mov r9d, edi
mov edx, 0x39
mov rcx, r14
mov r8d, dword [rsp + 0x80]
lea r12d, [rax - 1]
mov eax, dword [rsp + 0xac]
mov dword [rbx + 0x44], r12d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], eax
call sym.windowCodeRangeTest
lea r14, [rsp + 0x168]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rcx, r14
call sym.windowCodeOp
mov r8d, dword [rsp + 0x70]
xor r9d, r9d
mov rcx, r14
mov edx, 2
call sym.windowCodeOp
test edi, edi
je 0x14023fe2a
mov rcx, qword [rsp + 0x60]
mov edx, 9
mov r9d, r13d
xor r8d, r8d
call sym.sqlite3VdbeAddOp2
mov edx, r12d
mov rcx, qword [rsp + 0x60]
call sym.sqlite3VdbeResolveLabel
jmp 0x14023fe2a
xor r12d, r12d
test edi, edi
je 0x14023fde9
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
mov r8d, edi
mov edx, 0x3b
mov dword [rsp + 0x20], 1
call sym.sqlite3VdbeAddOp3
mov r12d, eax
lea r13, [rsp + 0x168]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rcx, r13
call sym.windowCodeOp
mov r8d, dword [rsp + 0x70]
xor r9d, r9d
mov rcx, r13
mov edx, 2
call sym.windowCodeOp
test edi, edi
je 0x14023fe2a
mov rcx, qword [rsp + 0x60]
mov edx, r12d
call sym.sqlite3VdbeJumpHere
mov edx, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
call sym.sqlite3VdbeResolveLabel
mov rcx, r15
call sym.sqlite3WhereEnd
cmp qword [rsi + 0x10], 0
je 0x14023fe7c
mov rcx, qword [rsp + 0x60]
mov r9d, dword [rsp + 0x9c]
mov edx, 0x47
xor r8d, r8d
call sym.sqlite3VdbeAddOp2
mov edx, dword [rsp + 0xd8]
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x98], eax
call sym.sqlite3VdbeJumpHere
mov r8d, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x60]
xor eax, eax
mov edx, 0x24
mov dword [rsp + 0x190], eax
lea r12, [rsp + 0x168]
call sym.sqlite3VdbeAddOp1
cmp byte [rsi + 0x22], 0x58
mov r15d, eax
jne 0x14023fefe
mov r13d, dword [rsi + 0x20]
xor r9d, r9d
mov r8d, edi
mov edx, 3
mov rcx, r12
call sym.windowCodeOp
cmp r13w, 0x5859
jne 0x14023fee1
mov r8d, dword [rsp + 0x70]
xor r9d, r9d
mov edx, 2
mov rcx, r12
call sym.windowCodeOp
lea rcx, [rsp + 0x168]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
call sym.windowCodeOp
jmp 0x140240086
xor r9d, r9d
xor r8d, r8d
cmp byte [rsi + 0x21], 0x56
mov edx, 3
mov rcx, r12
jne 0x140240025
call sym.windowCodeOp
mov rax, qword [rsp + 0x60]
cmp byte [rsi + 0x20], 0x59
mov r9d, 1
mov r13d, dword [rax + 0x90]
jne 0x14023ff62
mov r8d, dword [rsp + 0x70]
mov edx, 2
mov rcx, r12
call sym.windowCodeOp
xor r8d, r8d
mov edx, 1
mov rcx, r12
mov r9d, 1
mov edi, eax
call sym.windowCodeOp
mov r14d, eax
jmp 0x14023ffb5
cmp byte [rsi + 0x22], 0x5a
jne 0x14023ff88
mov r8d, dword [rsp + 0x70]
mov edx, 1
mov rcx, r12
call sym.windowCodeOp
mov r9d, 1
xor r8d, r8d
mov r14d, eax
jmp 0x14023ffa6
mov r8d, edi
mov edx, 1
mov rcx, r12
call sym.windowCodeOp
mov r8d, dword [rsp + 0x70]
mov r9d, 1
mov r14d, eax
mov edx, 2
mov rcx, r12
call sym.windowCodeOp
mov edi, eax
mov rcx, qword [rsp + 0x60]
mov r9d, r13d
xor r8d, r8d
mov edx, 9
call sym.sqlite3VdbeAddOp2
mov rcx, qword [rsp + 0x60]
mov edx, edi
call sym.sqlite3VdbeJumpHere
mov rax, qword [rsp + 0x60]
xor r8d, r8d
mov edx, 1
lea rcx, [rsp + 0x168]
mov r9d, 1
mov r12d, dword [rax + 0x90]
call sym.windowCodeOp
mov rcx, qword [rsp + 0x60]
xor r8d, r8d
mov edx, 9
mov r9d, r12d
mov edi, eax
call sym.sqlite3VdbeAddOp2
mov rcx, qword [rsp + 0x60]
mov edx, r14d
call sym.sqlite3VdbeJumpHere
mov edx, edi
jmp 0x14024007c
call sym.windowCodeOp
mov rax, qword [rsp + 0x60]
xor r8d, r8d
mov rcx, r12
mov r9d, 1
mov edx, 1
mov r14d, dword [rax + 0x90]
call sym.windowCodeOp
mov r8d, dword [rsp + 0x70]
xor r9d, r9d
mov rcx, r12
mov edx, 2
mov r13d, eax
call sym.windowCodeOp
mov rcx, qword [rsp + 0x60]
mov r9d, r14d
xor r8d, r8d
mov edx, 9
call sym.sqlite3VdbeAddOp2
mov edx, r13d
mov rcx, qword [rsp + 0x60]
call sym.sqlite3VdbeJumpHere
mov rcx, qword [rsp + 0x60]
mov edx, r15d
call sym.sqlite3VdbeJumpHere
mov rcx, qword [rsp + 0x60]
mov edx, 0x92
mov r8d, dword [rsp + 0x80]
call sym.sqlite3VdbeAddOp1
cmp qword [rsi + 0x10], 0
je 0x14024011c
mov r9d, dword [rsi + 0x84]
test r9d, r9d
je 0x1402400eb
mov rcx, qword [rsp + 0x60]
mov r8d, 1
mov edx, 0x47
call sym.sqlite3VdbeAddOp2
mov r9d, dword [rsi + 0x88]
mov rcx, qword [rsp + 0x60]
xor r8d, r8d
mov edx, 0x47
call sym.sqlite3VdbeAddOp2
mov rax, qword [rsp + 0x60]
mov edx, dword [rsp + 0x98]
mov r9d, dword [rax + 0x90]
mov rcx, rax
call sym.sqlite3VdbeGetOp
mov r8d, dword [rsp + 0x9c]
mov edx, 0x43
mov dword [rax + 4], r9d
call sym.sqlite3VdbeAddOp1
mov r9d, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0x58]
xor r8d, r8d
mov edx, 9
call sym.sqlite3VdbeAddOp2
mov edx, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0x58]
call sym.sqlite3VdbeResolveLabel
xor eax, eax
or r8d, 0xffffffff
mov rdx, rbp
mov dword [rsp + 0x128], eax
mov eax, dword [rsp + 0xa8]
lea r9, [rsp + 0x108]
mov rcx, rbx
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xc4]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x210]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xfc]
mov qword [rsp + 0x20], rax
call sym.selectInnerLoop
mov edx, dword [rsp + 0xc4]
mov rcx, qword [rsp + 0x58]
call sym.sqlite3VdbeResolveLabel
mov rcx, qword [rsp + 0x58]
mov edx, 0x43
mov r8d, dword [rsp + 0xb8]
call sym.sqlite3VdbeAddOp1
mov edx, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0x58]
call sym.sqlite3VdbeResolveLabel
jmp 0x1402411e4
mov eax, dword [r15 + 0x34]
mov rcx, rbx
or r8d, 0xffffffff
mov rdx, rbp
lea r9, [rsp + 0x108]
mov dword [rsp + 0x38], eax
mov eax, dword [r15 + 0x30]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x210]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xfc]
mov qword [rsp + 0x20], rax
call sym.selectInnerLoop
mov rcx, r15
call sym.sqlite3WhereEnd
jmp 0x1402411e4
test r12, r12
je 0x1402402bb
mov rax, qword [rbp + 0x20]
mov edx, dword [rax]
add rax, 8
test edx, edx
jle 0x140240248
mov word [rax + 0x1a], 0
dec edx
add rax, 0x20
jmp 0x140240236
mov edx, dword [r12]
lea rcx, [r12 + 8]
mov eax, edx
test eax, eax
jle 0x140240265
mov word [rcx + 0x1a], 0
dec eax
add rcx, 0x20
jmp 0x140240253
cmp word [rbp + 2], 0x42
jle 0x140240272
mov word [rbp + 2], 0x42
test r14, r14
je 0x1402402c1
cmp dword [r14], edx
jne 0x1402402c1
xor ecx, ecx
mov eax, 0x18
cmp ecx, edx
jge 0x14024029b
mov r8b, byte [r14 + rax]
inc ecx
and r8d, 1
mov byte [r12 + rax], r8b
add rax, 0x20
jmp 0x140240283
or r8d, 0xffffffff
mov rdx, r14
mov rcx, r12
call sym.sqlite3ExprListCompare
test eax, eax
sete al
movzx eax, al
mov dword [rsp + 0xd0], eax
jmp 0x1402402ca
mov word [rbp + 2], 0
xor eax, eax
mov dword [rsp + 0xd0], eax
mov eax, dword [rbx + 0x44]
mov rcx, qword [rsp + 0x68]
mov edx, 0x38
dec eax
mov dword [rbx + 0x44], eax
mov dword [rsp + 0x80], eax
call sym.sqlite3DbMallocZero
mov rsi, rax
test rax, rax
je 0x140240302
mov r8, rax
lea rdx, [sym.agginfoFree]
mov rcx, rbx
call sym.sqlite3ParserAddCleanup
mov rax, qword [rsp + 0x68]
mov r15b, byte [rax + 0x67]
test r15b, r15b
jne 0x1402411da
mov eax, dword [rbp + 0x10]
lea rdx, [rsp + 0x180]
mov ecx, 8
mov rdi, rdx
mov dword [rsi + 0x34], eax
xor eax, eax
rep stosd dword [rdi], eax
mov qword [rsp + 0x168], rbx
mov qword [rsp + 0x170], r13
mov qword [rsp + 0x178], rsi
test r12, r12
je 0x14024034f
mov eax, dword [r12]
mov word [rsi + 2], ax
mov rdx, qword [rsp + 0x78]
lea rdi, [rsp + 0x168]
mov qword [rsi + 0x10], r12
mov rcx, rdi
call sym.sqlite3ExprAnalyzeAggList
mov rdx, r14
mov rcx, rdi
call sym.sqlite3ExprAnalyzeAggList
cmp qword [rsp + 0xb0], 0
je 0x1402403ef
test r12, r12
je 0x1402403da
lea rdx, [rsp + 0x148]
xor eax, eax
mov ecx, 6
mov rdi, rdx
lea r8, [rsp + 0x138]
mov rdx, qword [rbp + 0x40]
rep stosd dword [rdi], eax
lea rax, [sym.havingToWhereExprCb]
mov rcx, r8
mov qword [rsp + 0x138], rbx
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x160], rbp
call sym.sqlite3WalkExpr
mov rax, qword [rbp + 0x30]
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x168]
call sym.sqlite3ExprAnalyzeAggregates
mov eax, dword [rsi + 0x20]
mov dword [rsi + 0x24], eax
xor eax, eax
cmp qword [rbp + 0x38], 0
mov qword [rsp + 0x70], rax
jne 0x1402404ba
mov rax, qword [rbp + 0x40]
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x1402404b3
cmp dword [rsi + 0x30], 1
jne 0x1402404ba
mov rax, qword [rsi + 0x28]
mov rax, qword [rax]
mov r11, qword [rax + 0x20]
test r11, r11
je 0x1402404ba
mov edi, dword [r11]
cmp edi, 1
jne 0x1402404ba
test byte [rax + 7], 1
jne 0x1402404ba
mov rcx, qword [rsp + 0x68]
test byte [rcx + 0x62], 1
jne 0x1402404ba
mov rcx, qword [rax + 8]
lea rdx, [0x14035c1a8]
call sym.sqlite3StrICmp
test eax, eax
jne 0x140240478
mov rcx, qword [r11 + 8]
call sym.sqlite3ExprCanBeNull
test eax, eax
setne r14b
add r14d, r14d
jmp 0x140240490
lea rdx, [0x14035c1ac]
call sym.sqlite3StrICmp
test eax, eax
jne 0x1402404ba
mov r14b, 1
mov edi, 2
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
mov rdx, r11
call sym.sqlite3ExprListDup
mov qword [rsp + 0x70], rax
test rax, rax
je 0x1402404ae
mov byte [rax + 0x18], r14b
mov r15d, edi
jmp 0x1402404ba
xor eax, eax
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x168]
mov rcx, rsi
call sym.analyzeAggFuncArgs
mov rax, qword [rsp + 0x68]
cmp byte [rax + 0x67], 0
jne 0x1402411d0
mov eax, dword [rsi + 0x30]
test r12, r12
je 0x140240d9e
mov word [rsp + 0xac], 0
dec eax
jne 0x140240572
mov rax, qword [rsi + 0x28]
cmp dword [rax + 0x10], 0
js 0x140240572
mov rax, qword [rax]
test rax, rax
je 0x14024056a
test byte [rax + 5], 0x10
jne 0x140240572
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140240572
mov rdx, qword [rax + 8]
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
call sym.sqlite3ExprDup
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
mov rdx, r12
mov rdi, rax
call sym.sqlite3ExprListDup
mov r8, rdi
mov rcx, rbx
mov rdx, rax
call sym.sqlite3ExprListAppend
mov qword [rsp + 0x60], rax
neg rax
sbb ax, ax
mov word [rsp + 0xac], ax
and word [rsp + 0xac], 0x500
jmp 0x140240572
xor r15d, r15d
mov qword [rsp + 0x60], r15
mov eax, dword [rbx + 0x34]
mov r9d, dword [rsi + 0x20]
xor r8d, r8d
mov rcx, rbx
lea edx, [rax + 1]
mov dword [rbx + 0x34], edx
mov rdx, r12
mov dword [rsi + 4], eax
call sym.sqlite3KeyInfoFromExprList
xor r11d, r11d
movzx r9d, word [rsi + 2]
mov r8d, dword [rsi + 4]
mov dword [rsp + 0x20], r11d
mov rcx, qword [rsp + 0x58]
mov edx, 0x77
mov dword [rsp + 0x30], 0xfffffff8
mov qword [rsp + 0x28], rax
mov qword [rsp + 0xb8], rax
call sym.sqlite3VdbeAddOp4
mov edx, dword [rbx + 0x44]
mov rcx, qword [rsp + 0x58]
xor r8d, r8d
mov dword [rsp + 0xec], eax
mov eax, dword [rbx + 0x38]
lea edi, [rax + 1]
mov dword [rsp + 0xa0], edi
lea edi, [rax + 2]
mov dword [rsp + 0xc8], edi
lea edi, [rax + 3]
mov r9d, dword [rsp + 0xc8]
mov dword [rsp + 0x9c], edi
lea edi, [rdx - 1]
mov dword [rsp + 0xd8], edi
lea edi, [rax + 4]
add eax, 5
mov dword [rsp + 0xa8], edi
lea edi, [rdx - 2]
mov edx, 0x47
mov dword [rsp + 0xc4], edi
mov dword [rbx + 0x44], edi
mov edi, dword [rsp + 0xa8]
mov dword [rsp + 0xc0], eax
mov eax, dword [r12]
add edi, eax
mov dword [rsp + 0xcc], edi
inc edi
mov dword [rsp + 0xe8], edi
mov edi, dword [rsp + 0xcc]
add eax, edi
mov dword [rbx + 0x38], eax
call sym.sqlite3VdbeAddOp2
mov eax, dword [rsp + 0xc0]
add eax, dword [r12]
xor r8d, r8d
dec eax
mov rcx, qword [rsp + 0x58]
mov edx, 0x4b
mov r9d, dword [rsp + 0xc0]
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp3
mov rcx, qword [rsp + 0x58]
mov edx, 0xa
mov r9d, dword [rsp + 0xc4]
mov r8d, dword [rsp + 0xa8]
call sym.sqlite3VdbeAddOp2
mov eax, pe_nt_image_headers64
mov r9, r12
mov rcx, rbx
mov dil, byte [rsp + 0xfc]
mov edx, 0x40
mov qword [rsp + 0x28], rbp
mov r8, qword [rsp + 0x90]
cmp dil, 2
cmove edx, eax
mov eax, dword [rsp + 0xd0]
xor r14d, r14d
mov dword [rsp + 0x38], r14d
shl eax, 9
or eax, edx
or eax, dword [rsp + 0xac]
mov rdx, r13
movzx eax, ax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
call sym.sqlite3WhereBegin
mov qword [rsp + 0x90], rax
test rax, rax
jne 0x140240729
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call sym.sqlite3ExprListDelete
jmp 0x1402411d0
cmp qword [rbx + 0x60], 0
je 0x14024077a
mov r8d, dword [rsi + 0x24]
cmp word [rsi + 2], 0
mov dword [rsi + 0x20], r8d
je 0x14024076a
mov rax, qword [rbp + 0x38]
xor edx, edx
mov eax, dword [rax]
dec eax
cmp r8d, edx
jle 0x140240764
imul rcx, rdx, 0x18
add rcx, qword [rsi + 0x18]
movsx ecx, word [rcx + 0x16]
cmp eax, ecx
cmovl eax, ecx
inc rdx
jmp 0x140240749
inc eax
mov word [rsi + 2], ax
lea rdx, [rsp + 0x168]
mov rcx, rsi
call sym.analyzeAggFuncArgs
mov edx, dword [rbx + 0x38]
lea eax, [rdx + 1]
mov dword [rsi + 0xc], eax
mov eax, dword [rsi + 0x30]
add eax, dword [rsi + 0x20]
add eax, edx
xor edx, edx
mov dword [rbx + 0x38], eax
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0x43]
mov dword [rsp + 0xe4], eax
mov rax, qword [rsp + 0x90]
movsx eax, byte [rax + 0x41]
test al, al
cmovs eax, edx
cmp dword [r12], eax
je 0x140240928
lea r9, str.GROUP_BY
test dil, dil
je 0x1402407d9
test byte [rbp + 4], 1
lea rax, str.DISTINCT
cmove r9, rax
mov rcx, rbx
lea r8, str.USE_TEMP_B_TREE_FOR__s
xor edx, edx
call sym.sqlite3VdbeExplain
mov r14d, dword [r12]
mov ecx, dword [rsi + 0x20]
xor eax, eax
mov edi, r14d
cmp ecx, eax
jle 0x140240811
imul rdx, rax, 0x18
add rdx, qword [rsi + 0x18]
movsx edx, word [rdx + 0x16]
cmp edx, edi
jl 0x14024080c
inc edi
inc rax
jmp 0x1402407f6
mov edx, edi
mov rcx, rbx
xor r10d, r10d
xor r15d, r15d
call sym.sqlite3GetTempRange
mov dword [rsp + 0x20], r10d
xor r9d, r9d
mov rdx, r12
mov r8d, eax
mov r13d, eax
call sym.sqlite3ExprCodeExprList.isra.0
mov byte [rsi], 1
cmp dword [rsi + 0x20], r15d
jle 0x140240869
imul rax, r15, 0x18
add rax, qword [rsi + 0x18]
movsx edx, word [rax + 0x16]
cmp edx, r14d
jl 0x140240864
mov rdx, qword [rax + 8]
lea r8d, [r14 + r13]
mov rcx, rbx
inc r14d
call sym.sqlite3ExprCode
inc r15
jmp 0x14024083a
mov byte [rsi], 0
mov rcx, rbx
mov r8d, r13d
mov r9d, edi
mov edx, 0x61
call sym.sqlite3GetTempReg
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x20], eax
mov r14d, eax
call sym.sqlite3VdbeAddOp3
mov r8d, dword [rsi + 4]
mov rcx, qword [rsp + 0x58]
mov r9d, r14d
mov edx, 0x8b
call sym.sqlite3VdbeAddOp2
mov edx, r14d
mov rcx, rbx
call sym.sqlite3ReleaseTempReg
mov edx, r13d
mov r8d, edi
call sym.sqlite3ReleaseTempRange
mov rcx, qword [rsp + 0x90]
call sym.sqlite3WhereEnd
mov r13d, dword [rbx + 0x34]
mov rcx, rbx
mov edx, 0x79
lea eax, [r13 + 1]
mov r8d, r13d
mov dword [rbx + 0x34], eax
mov dword [rsi + 8], r13d
call sym.sqlite3GetTempReg
mov dword [rsp + 0x20], edi
mov rcx, qword [rsp + 0x58]
mov r9d, eax
mov r14d, eax
call sym.sqlite3VdbeAddOp3
mov r8d, dword [rsi + 4]
mov rcx, qword [rsp + 0x58]
mov edx, 0x22
mov r9d, dword [rsp + 0x80]
call sym.sqlite3VdbeAddOp2
mov byte [rsi + 1], 1
mov dword [rsp + 0x98], 1
jmp 0x14024092e
xor r14d, r14d
xor r13d, r13d
cmp qword [rbx + 0x60], 0
je 0x14024097a
lea r15, [rsp + 0x138]
xor eax, eax
mov ecx, 0xc
mov rdi, r15
rep stosd dword [rdi], eax
lea rax, [sym.aggregateIdxEprRefToColCallback]
xor edi, edi
mov qword [rsp + 0x140], rax
cmp dword [rsi + 0x30], edi
jle 0x14024097a
mov rax, rdi
mov rcx, r15
inc rdi
shl rax, 5
add rax, qword [rsi + 0x28]
mov rdx, qword [rax]
call sym.sqlite3WalkExpr
jmp 0x14024095a
cmp dword [rsp + 0xd0], 0
je 0x1402409d0
mov rax, qword [rsp + 0x68]
test byte [rax + 0x60], 4
jne 0x1402409d0
cmp dword [rsp + 0x98], 0
jne 0x1402409b4
mov rax, qword [rsp + 0x90]
test byte [rax + 0x44], 8
jne 0x1402409b4
mov rax, qword [rsp + 0x58]
mov edi, dword [rax + 0x90]
jmp 0x1402409fe
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x108], r9
call sym.sqlite3VdbeChangeToNoop.isra.0
mov rax, qword [rsp + 0x58]
cmp dword [rsp + 0x98], 0
mov edi, dword [rax + 0x90]
je 0x1402409fe
mov r8d, dword [rsi + 4]
mov dword [rsp + 0x20], r13d
mov r9d, r14d
mov rcx, rax
mov edx, 0x85
call sym.sqlite3VdbeAddOp3
mov r14d, dword [rsp + 0xcc]
xor r15d, r15d
inc r14d
mov eax, dword [r12]
cmp eax, r15d
jle 0x140240a5b
cmp dword [rsp + 0x98], 0
lea r8d, [r14 + r15]
je 0x140240a3f
mov dword [rsp + 0x20], r8d
mov rcx, qword [rsp + 0x58]
mov r9d, r15d
mov r8d, r13d
mov edx, 0x5e
call sym.sqlite3VdbeAddOp3
jmp 0x140240a56
mov rax, r15
mov byte [rsi], 1
mov rcx, rbx
shl rax, 5
mov rdx, qword [r12 + rax + 8]
call sym.sqlite3ExprCode
inc r15
jmp 0x140240a0c
cmp qword [rsp + 0xb8], 0
je 0x140240a70
mov rcx, qword [rsp + 0xb8]
inc dword [rcx]
mov rcx, qword [rsp + 0xb8]
mov dword [rsp + 0x30], 0xfffffff8
mov edx, 0x5a
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0xe8]
mov qword [rsp + 0x28], rcx
mov r8d, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x58]
call sym.sqlite3VdbeAddOp4
mov rax, qword [rsp + 0x58]
xor r9d, r9d
mov edx, 0xe
mov r13d, dword [rax + 0x90]
mov rcx, rax
lea r8d, [r13 + 1]
mov dword [rsp + 0x20], r8d
call sym.sqlite3VdbeAddOp3
mov eax, dword [r12]
mov rcx, qword [rbx + 0x10]
mov edx, 0x4f
mov r9d, dword [rsp + 0xc0]
mov r8d, dword [rsp + 0xe8]
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp3
mov rcx, qword [rsp + 0x58]
mov edx, 0xa
mov r9d, dword [rsp + 0xd8]
mov r8d, dword [rsp + 0x9c]
call sym.sqlite3VdbeAddOp2
mov rcx, qword [rsp + 0x58]
mov edx, 0x3b
mov r9d, dword [rsp + 0x80]
mov r8d, dword [rsp + 0xc8]
call sym.sqlite3VdbeAddOp2
mov rcx, qword [rsp + 0x58]
mov edx, 0xa
mov r9d, dword [rsp + 0xc4]
mov r8d, dword [rsp + 0xa8]
call sym.sqlite3VdbeAddOp2
mov rcx, qword [rsp + 0x58]
mov edx, r13d
call sym.sqlite3VdbeJumpHere
mov r9d, dword [rsp + 0xe4]
mov r8, rsi
mov rcx, rbx
mov edx, dword [rsp + 0xa0]
call sym.updateAccumulator
mov rcx, qword [rsp + 0x58]
mov r8d, 1
mov r9d, dword [rsp + 0xa0]
mov edx, 0x47
call sym.sqlite3VdbeAddOp2
cmp dword [rsp + 0x98], 0
je 0x140240bb6
mov r8d, dword [rsi + 4]
mov rcx, qword [rsp + 0x58]
mov r9d, edi
mov edx, 0x25
call sym.sqlite3VdbeAddOp2
jmp 0x140240bd4
mov rcx, qword [rsp + 0x90]
call sym.sqlite3WhereEnd
mov edx, dword [rsp + 0xec]
mov rcx, qword [rsp + 0x58]
call sym.sqlite3VdbeChangeToNoop.isra.0
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call sym.sqlite3ExprListDelete
mov rcx, qword [rsp + 0x58]
mov edx, 0xa
mov r9d, dword [rsp + 0xd8]
mov r8d, dword [rsp + 0x9c]
call sym.sqlite3VdbeAddOp2
mov edx, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
call sym.sqlite3VdbeGoto
mov rax, qword [rsp + 0x58]
mov r8d, 1
mov r9d, dword [rsp + 0xc8]
mov edx, 0x47
mov rcx, rax
mov r12d, dword [rax + 0x90]
call sym.sqlite3VdbeAddOp2
mov rcx, qword [rsp + 0x58]
mov edx, 0x43
mov r8d, dword [rsp + 0x9c]
call sym.sqlite3VdbeAddOp1
mov edx, dword [rsp + 0xd8]
mov rcx, qword [rsp + 0x58]
call sym.sqlite3VdbeResolveLabel
mov rax, qword [rsp + 0x58]
mov edx, 0x3b
mov r8d, dword [rsp + 0xa0]
mov edi, dword [rax + 0x90]
mov rcx, rax
lea r9d, [rdi + 2]
inc edi
call sym.sqlite3VdbeAddOp2
mov rcx, qword [rsp + 0x58]
mov edx, 0x43
mov r8d, dword [rsp + 0x9c]
call sym.sqlite3VdbeAddOp1
mov rdx, rsi
mov rcx, rbx
call sym.finalizeAggFunctions
mov rdx, qword [rsp + 0xb0]
mov r8d, edi
mov rcx, rbx
mov r9d, 0x10
call sym.sqlite3ExprIfFalse
mov dword [rsp + 0x38], r12d
mov rdx, rbp
mov rcx, rbx
mov rax, qword [rsp + 0x210]
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x108]
or r8d, 0xffffffff
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xfc]
mov qword [rsp + 0x20], rax
call sym.selectInnerLoop
mov rcx, qword [rsp + 0x58]
mov edx, 0x43
mov r8d, dword [rsp + 0x9c]
call sym.sqlite3VdbeAddOp1
mov edx, dword [rsp + 0xc4]
mov rcx, qword [rsp + 0x58]
call sym.sqlite3VdbeResolveLabel
mov rdx, rsi
mov rcx, rbx
call sym.resetAccumulator
mov r9d, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x58]
xor r8d, r8d
mov edx, 0x47
call sym.sqlite3VdbeAddOp2
mov rcx, qword [rsp + 0x58]
mov edx, 0x43
mov r8d, dword [rsp + 0xa8]
call sym.sqlite3VdbeAddOp1
cmp word [rsp + 0xac], 0
je 0x1402411bd
cmp dword [rsp + 0xe4], 0
je 0x1402411bd
mov rax, qword [rsi + 0x28]
mov edx, dword [rsp + 0xe4]
mov rcx, rbx
mov r9d, dword [rax + 0x14]
mov r8d, dword [rax + 0x10]
call sym.fixDistinctOpenEph
jmp 0x1402411bd
cmp qword [rbp + 0x30], 0
jne 0x140240fb5
mov rcx, qword [rbp + 0x20]
cmp dword [rcx], 1
jne 0x140240fb5
mov rdx, qword [rbp + 0x28]
cmp dword [rdx], 1
jne 0x140240fb5
cmp qword [rdx + 0x30], 0
jne 0x140240fb5
cmp eax, 1
jne 0x140240fb5
mov r14, qword [rbp + 0x40]
test r14, r14
jne 0x140240fb5
mov rdi, qword [rdx + 0x28]
cmp byte [rdi + 0x3f], 0
jne 0x140240fb5
mov rdx, qword [rcx + 8]
cmp byte [rdx], 0xa8
jne 0x140240fb5
cmp rsi, qword [rdx + 0x38]
jne 0x140240fb5
mov rcx, qword [rsi + 0x28]
mov rcx, qword [rcx + 8]
test byte [rcx + 5], 1
je 0x140240fb5
test dword [rdx + 4], 0x1000004
jne 0x140240fb5
mov rdx, qword [rdi + 0x60]
mov rcx, qword [rbx]
call sym.sqlite3SchemaToIndex
mov r13d, dword [rbx + 0x34]
mov rcx, rbx
mov r12d, eax
lea eax, [r13 + 1]
mov edx, r12d
mov dword [rbx + 0x34], eax
mov eax, dword [rdi + 0x28]
mov dword [rsp + 0x60], eax
call sym.sqlite3CodeVerifySchema
mov rax, qword [rdi]
mov r8d, dword [rdi + 0x28]
xor r9d, r9d
mov edx, r12d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call sym.sqlite3TableLock
test byte [rdi + 0x30], 0x80
je 0x140240e80
mov rcx, qword [rdi + 0x10]
call sym.sqlite3PrimaryKeyIndex.isra.0
mov r14, rax
mov rax, qword [rbp + 0x28]
test byte [rax + 0x48], 1
jne 0x140240ebe
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x140240ebe
test byte [rax + 0x64], 4
jne 0x140240eb8
mov edx, dword [rax + 0x5c]
cmp dx, word [rdi + 0x3c]
jge 0x140240eb8
cmp qword [rax + 0x48], 0
jne 0x140240eb8
test r14, r14
je 0x140240eb5
cmp dx, word [r14 + 0x5c]
jge 0x140240eb8
mov r14, rax
mov rax, qword [rax + 0x28]
jmp 0x140240e8e
xor r15d, r15d
test r14, r14
je 0x140240edc
mov eax, dword [r14 + 0x58]
mov rdx, r14
mov rcx, rbx
mov dword [rsp + 0x60], eax
call sym.sqlite3KeyInfoOfIndex
mov r15, rax
mov dword [rsp + 0x28], 1
mov r9d, dword [rsp + 0x60]
mov r8d, r13d
mov edx, 0x70
mov dword [rsp + 0x20], r12d
mov rcx, qword [rsp + 0x58]
call sym.sqlite3VdbeAddOp4Int
test r15, r15
je 0x140240f1b
mov rcx, qword [rsp + 0x58]
mov r9d, 0xfffffff8
mov r8, r15
or edx, 0xffffffff
call sym.sqlite3VdbeChangeP4
mov edx, dword [rsi + 0x20]
mov eax, dword [rsi + 0x30]
mov r8d, r13d
mov ecx, dword [rbx + 0x38]
add eax, edx
add eax, ecx
lea r9d, [rcx + 1]
mov rcx, qword [rsp + 0x58]
mov dword [rsi + 0xc], r9d
add r9d, edx
mov edx, 0x62
mov dword [rbx + 0x38], eax
call sym.sqlite3VdbeAddOp2
mov rcx, qword [rsp + 0x58]
mov r8d, r13d
mov edx, 0x7a
call sym.sqlite3VdbeAddOp1
cmp byte [rbx + 0x133], 2
jne 0x140241160
lea rax, [0x14035904c]
mov rdx, rax
test r14, r14
je 0x140240f92
test byte [rdi + 0x30], 0x80
je 0x140240f88
mov cl, byte [r14 + 0x64]
and ecx, 3
cmp cl, 2
je 0x140240f92
mov rax, qword [r14]
lea rdx, str._USING_COVERING_INDEX
mov qword [rsp + 0x20], rdx
lea r8, str.SCAN__s_s_s
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x28], rax
mov r9, qword [rdi]
call sym.sqlite3VdbeExplain
jmp 0x140241160
mov edi, dword [rsi + 0x24]
test edi, edi
je 0x14024100c
xor edx, edx
cmp eax, edx
jle 0x140240fe6
mov rcx, rdx
shl rcx, 5
add rcx, qword [rsi + 0x28]
mov r8, qword [rcx]
test byte [r8 + 7], 1
jne 0x140240fe1
mov rcx, qword [rcx + 8]
test byte [rcx + 4], 0x20
jne 0x140240fe6
inc rdx
jmp 0x140240fbe
xor edi, edi
cmp eax, edx
jne 0x140241036
mov eax, dword [rbx + 0x38]
mov rcx, qword [rsp + 0x58]
xor r8d, r8d
mov edx, 0x47
lea edi, [rax + 1]
mov dword [rbx + 0x38], edi
mov r9d, edi
call sym.sqlite3VdbeAddOp2
jmp 0x140241036
xor r14d, r14d
dec eax
jne 0x140241039
mov rax, qword [rsi + 0x28]
cmp dword [rax + 0x10], 0
js 0x140241039
mov rax, qword [rax]
mov r12, qword [rax + 0x20]
mov rax, r12
neg rax
sbb r14w, r14w
and r14w, 0x500
jmp 0x140241039
xor r14d, r14d
mov edx, dword [rbx + 0x38]
mov rcx, rbx
lea eax, [rdx + 1]
mov dword [rsi + 0xc], eax
mov eax, dword [rsi + 0x30]
add eax, dword [rsi + 0x20]
add eax, edx
mov rdx, rsi
mov dword [rbx + 0x38], eax
call sym.resetAccumulator
movzx eax, r15b
xor r8d, r8d
mov rdx, r13
or eax, r14d
mov dword [rsp + 0x38], r8d
mov r9, qword [rsp + 0x70]
mov rcx, rbx
movzx eax, ax
mov qword [rsp + 0x20], r12
mov r8, qword [rsp + 0x90]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbp
call sym.sqlite3WhereBegin
mov r12, rax
test rax, rax
je 0x1402411d0
movzx r13d, byte [rax + 0x43]
mov r8, rsi
mov edx, edi
mov rcx, rbx
mov r9d, r13d
call sym.updateAccumulator
test r13d, r13d
je 0x1402410d2
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x1402410d2
mov r9d, dword [rax + 0x14]
mov r8d, dword [rax + 0x10]
mov edx, r13d
mov rcx, rbx
call sym.fixDistinctOpenEph
test edi, edi
je 0x1402410ee
mov rcx, qword [rsp + 0x58]
mov r9d, edi
mov r8d, 1
mov edx, 0x47
call sym.sqlite3VdbeAddOp2
test r15b, r15b
je 0x14024114d
test byte [r12 + 0x44], 4
je 0x14024114d
cmp byte [r12 + 0x41], 0
je 0x14024114d
movzx eax, byte [r12 + 0x40]
dec eax
cdqe
cmp rax, 0xffffffffffffffff
je 0x14024113e
imul rcx, rax, 0x70
lea rdx, [rax - 1]
mov rcx, qword [r12 + rcx + 0x3c0]
test byte [rcx + 0x38], 4
je 0x140241139
cdqe
imul rax, rax, 0x70
mov edx, dword [r12 + rax + 0x370]
jmp 0x140241143
mov rax, rdx
jmp 0x14024110d
mov edx, dword [r12 + 0x34]
mov rcx, qword [rsp + 0x58]
call sym.sqlite3VdbeGoto
mov rcx, r12
call sym.sqlite3WhereEnd
mov rdx, rsi
mov rcx, rbx
call sym.finalizeAggFunctions
xor edx, edx
mov r8d, dword [rsp + 0x80]
mov r9d, 0x10
mov rcx, rbx
mov qword [rsp + 0x108], rdx
mov rdx, qword [rsp + 0xb0]
call sym.sqlite3ExprIfFalse
xor ecx, ecx
xor r9d, r9d
or r8d, 0xffffffff
mov eax, dword [rsp + 0x80]
mov qword [rsp + 0x20], rcx
mov rdx, rbp
mov rcx, rbx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x210]
mov qword [rsp + 0x28], rax
call sym.selectInnerLoop
mov edx, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
call sym.sqlite3VdbeResolveLabel
jmp 0x1402411eb
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov esi, 1
jmp 0x140241265
xor eax, eax
mov qword [rsp + 0x70], rax
cmp byte [rsp + 0xfd], 3
jne 0x14024120d
lea r9, str.DISTINCT
lea r8, str.USE_TEMP_B_TREE_FOR__s
xor edx, edx
mov rcx, rbx
call sym.sqlite3VdbeExplain
cmp qword [rsp + 0x108], 0
je 0x140241240
mov rax, qword [rsp + 0x210]
lea r8, [rsp + 0x108]
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
mov r9d, dword [rax]
call sym.generateSortTail
mov edx, dword [rsp + 0xe0]
mov rcx, qword [rsp + 0x58]
xor esi, esi
call sym.sqlite3VdbeResolveLabel
mov rax, qword [rsp + 0x70]
cmp dword [rbx + 0x30], 0
setg sil
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call sym.sqlite3ExprListDelete
mov rcx, rbx
call sym.sqlite3VdbeExplainPop
jmp 0x1402412d5
mov r9d, esi
mov r8d, edi
mov rdx, rbp
mov rcx, rbx
call sym.flattenSubquery
test eax, eax
je 0x1402412a0
cmp dword [rbx + 0x30], 0
jne 0x14023dcc9
or edi, 0xffffffff
mov rax, qword [rsp + 0x68]
mov r13, qword [rbp + 0x28]
cmp byte [rax + 0x67], 0
jne 0x14023dcc9
mov rax, qword [rsp + 0x210]
cmp byte [rax], 8
jbe 0x14023e213
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x108], rax
jmp 0x14023e213
mov eax, esi
add rsp, 0x1b8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret