Function at 0x1401dfc30
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 rbp, rdx
mov rbx, rcx
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x210], r8
call sym.sqlite3GetVdbe
test rbp, rbp
mov qword [rsp + 0x58], rax
jne 0x1401dfc72
mov esi, 1
jmp 0x1401e2f88
cmp dword [rbx + 0x30], 0
jne 0x1401dfc68
xor edx, edx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov edx, 0x15
call sym.sqlite3AuthCheck
test eax, eax
jne 0x1401dfc68
mov rax, qword [rsp + 0x210]
cmp byte [rax], 6
ja 0x1401dfccf
mov r8, qword [rbp + 0x48]
test r8, r8
je 0x1401dfcc1
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]
test eax, eax
mov dword [rsp + 0x98], eax
jne 0x1401dfd29
mov r11d, dword [rbp + 4]
bt r11d, 0x17
jae 0x1401dfd40
mov rsi, qword [rbp + 0x28]
lea rcx, [rsi + 8]
mov rdx, rsi
call sym.sameSrcAlias
test eax, eax
je 0x1401dfd35
mov r8, qword [rsi + 0x20]
test r8, r8
jne 0x1401dfd1a
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 0x1401e2e8d
and r11d, 0xff7fffff
mov dword [rbp + 4], r11d
mov rax, qword [rsp + 0x210]
cmp byte [rax], 9
jne 0x1401dfd58
mov rdx, rbp
mov rcx, rbx
call sym.sqlite3GenerateColumnNames
cmp qword [rbp + 0x70], 0
mov r14d, dword [rbp + 4]
jne 0x1401dfda3
mov eax, dword [rbp + 4]
lea rdx, [rsp + 0x110]
mov ecx, 0xa
mov rdi, rdx
mov r13, qword [rbp + 0x28]
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 0x1401e0270
cmp qword [rbp + 0x50], 0
jne 0x1401dfd63
and r14d, 0x100000
jne 0x1401dfd63
cmp byte [rbx + 0x134], 1
ja 0x1401dfd63
mov rcx, rbx
call sym.sqlite3GetVdbe
mov edx, 0x68
mov r13, qword [rbp + 0x38]
mov qword [rsp + 0x78], rax
mov rax, qword [rbx]
mov rsi, qword [rbp + 0x70]
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
test rax, rax
mov r12, rax
jne 0x1401dfe3b
mov rcx, qword [rsp + 0x60]
mov edx, 7
call sym.sqlite3ErrorToParser
mov edi, eax
jmp 0x1401e0235
lea rdx, [rsp + 0x180]
mov eax, r14d
mov ecx, 6
lea r15, [rsp + 0x168]
mov rdi, rdx
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 0x1401dfeb4
mov rdx, qword [rbp + 0x48]
lea rax, [sym.disallowAggregatesInOrderByCb]
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]
xor edx, edx
mov r9d, 1
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
test rax, rax
mov rdi, rax
je 0x1401dff42
mov rdx, qword [rbp + 0x48]
test rdx, rdx
je 0x1401dff42
mov eax, dword [rdx]
mov r14d, dword [rdi]
cmp eax, r14d
jg 0x1401dff42
or r8d, 0xffffffff
mov dword [rdi], eax
mov rcx, rdi
call sym.sqlite3ExprListCompare
test eax, eax
jne 0x1401dff3f
mov rdx, qword [rbp + 0x48]
xor r15d, r15d
mov rcx, qword [rsp + 0x60]
call sym.sqlite3ExprListDelete
mov qword [rbp + 0x48], r15
mov dword [rdi], r14d
mov eax, dword [rbx + 0x34]
lea r14, [rsp + 0x138]
mov rdx, rsi
mov rcx, rbx
mov r8, qword [rsp + 0x70]
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 0x1401dffa3
mov eax, dword [rdx]
mov r8, qword [rsi + 0x10]
xor r9d, r9d
mov rcx, rbx
mov dword [rsi + 0x78], eax
lea r14, [rsp + 0x138]
mov r15, rsi
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 0x1401e0028
mov r9, r8
mov r8, qword [rsp + 0x70]
mov rdx, rsi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r12
mov rcx, rbx
call sym.selectWindowRewriteEList
mov rdx, qword [rsp + 0x138]
xor eax, eax
test rdx, rdx
je 0x1401e001a
mov eax, dword [rdx]
mov dword [r15 + 0x7c], eax
mov byte [r15 + 0x8c], 1
jmp 0x1401e0050
mov rdx, qword [rsp + 0x138]
xor eax, eax
test rdx, rdx
je 0x1401e0039
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 0x1401e0081
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]
xor r8d, r8d
mov edx, 0x4b
mov rcx, qword [rsp + 0x78]
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 0x1401dffda
cmp qword [rsp + 0x138], 0
jne 0x1401e00e9
mov rcx, qword [rsp + 0x60]
lea r8, [0x1402ece11]
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 r8, qword [rsp + 0x70]
xor r10d, r10d
xor r11d, r11d
mov qword [rsp + 0x20], r13
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x40], r10
mov rcx, rbx
mov r9, qword [rsp + 0x80]
mov dword [rsp + 0x38], r11d
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
test rax, rax
mov rdx, rax
mov qword [rbp + 0x28], rax
je 0x1401e0203
or byte [rax + 0x48], 8
mov qword [rax + 0x30], r13
mov rcx, rbx
mov edi, 7
mov r8d, 0x40
call sym.sqlite3SrcListAssignCursors
mov rdx, r13
mov rcx, rbx
or dword [r13 + 4], 0x8000040
call sym.sqlite3ResultSetOfSelect
mov r14, rax
mov eax, dword [rsp + 0x90]
and eax, 8
or dword [r13 + 4], eax
test r14, r14
je 0x1401e0212
mov rdi, r12
mov ecx, 0x1a
mov rsi, r14
rep movsd dword [rdi], dword [rsi]
lea r8, [rsp + 0x168]
mov ecx, 0xc
mov rdx, r13
mov rdi, r8
mov rax, qword [rbp + 0x28]
or dword [r12 + 0x30], 0x4000
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 0x1401e0210
mov rcx, qword [rsp + 0x60]
mov rdx, r13
call sym.sqlite3SelectDelete
xor edi, edi
mov rax, qword [rsp + 0x60]
lea rdx, [sym.sqlite3DbFree]
mov r8, r12
mov rcx, rbx
cmp byte [rax + 0x67], 0
mov eax, 7
cmovne edi, eax
call sym.sqlite3ParserAddCleanup
test edi, edi
jne 0x1401dfd29
jmp 0x1401dfd63
cmp dword [r13], edi
jle 0x1401e039d
movsxd r14, edi
imul r14, r14, 0x68
add r14, r13
mov al, byte [r14 + 0x44]
mov r15, qword [r14 + 0x30]
mov r12, qword [r14 + 0x28]
and eax, 0x18
cmp al, 8
je 0x1401e0283
test r15, r15
jne 0x1401e02bb
inc edi
mov rax, qword [rbp + 0x50]
test rax, rax
mov qword [rsp + 0x60], rax
je 0x1401e0242
jmp 0x1401e0378
mov rcx, qword [rbp + 0x30]
mov edx, dword [r14 + 0x4c]
call sym.sqlite3ExprImpliesNonNullRow
test eax, eax
je 0x1401e0269
mov rax, qword [rsp + 0x68]
test byte [rax + 0x61], 0x20
jne 0x1401e0269
and byte [r14 + 0x44], 0xd7
mov r8b, byte [r13 + 0x44]
mov rcx, qword [rbp + 0x30]
mov edx, dword [r14 + 0x4c]
and r8d, 0x40
call sym.unsetJoinExpr
jmp 0x1401e0269
mov rax, qword [r15 + 0x20]
movsx r8d, word [r12 + 0x36]
mov eax, dword [rax]
cmp r8d, eax
je 0x1401e02e8
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 0x1401dfd29
mov eax, dword [r15 + 4]
test al, 8
jne 0x1401e026e
mov r8, qword [r15 + 0x48]
test r8, r8
je 0x1401e2f31
cmp qword [rbp + 0x48], 0
jne 0x1401e030f
cmp dword [r13], 1
jle 0x1401e0348
cmp qword [r15 + 0x60], 0
jne 0x1401e0348
bt eax, 0x1b
jb 0x1401e0348
test byte [rbp + 7], 8
jne 0x1401e0348
mov rax, qword [rsp + 0x68]
test byte [rax + 0x62], 4
jne 0x1401e0348
lea rdx, [sym.sqlite3ExprListDelete]
mov rcx, rbx
call sym.sqlite3ParserAddCleanup
xor r9d, r9d
mov qword [r15 + 0x48], r9
jmp 0x1401e2f31
test edi, edi
jne 0x1401e2f31
test byte [rbp + 6], 4
je 0x1401e2f31
cmp dword [r13], 1
je 0x1401e026e
test byte [r13 + 0xac], 0x22
je 0x1401e2f31
jmp 0x1401e026e
mov r8, qword [rsp + 0x210]
mov rdx, rbp
mov rcx, rbx
call sym.multiSelect
cmp qword [rbp + 0x58], 0
mov esi, eax
jne 0x1401e2f88
jmp 0x1401e2f27
mov rax, qword [rbp + 0x30]
test rax, rax
je 0x1401e04ba
cmp byte [rax], 0x2c
jne 0x1401e04ba
mov rax, qword [rsp + 0x68]
test byte [rax + 0x61], 0x80
jne 0x1401e04ba
mov rax, qword [rbx]
mov qword [rsp + 0x138], rbx
lea rsi, [rsp + 0x138]
lea r12, [sym.propagateConstantExprRewrite]
lea r14, [sym.sqlite3SelectWalkNoop]
add rax, 0x67
mov qword [rsp + 0x140], rax
mov rdx, qword [rbp + 0x28]
xor ecx, ecx
xor r8d, r8d
mov eax, 1
mov qword [rsp + 0x158], rcx
mov qword [rsp + 0x148], rcx
mov dword [rsp + 0x150], r8d
test rdx, rdx
je 0x1401e042f
cmp dword [rdx], 0
jle 0x1401e042f
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 0x1401e04ac
lea rdx, [rsp + 0x180]
xor eax, eax
mov ecx, 4
lea r8, [rsp + 0x168]
mov rdi, rdx
mov rdx, qword [rbp + 0x30]
rep stosd dword [rdi], eax
mov rcx, r8
mov qword [rsp + 0x168], rbx
mov qword [rsp + 0x170], r12
mov qword [rsp + 0x178], r14
mov qword [rsp + 0x190], rsi
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 0x1401e03ef
lea rax, [rsp + 0x168]
xor esi, esi
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x138]
lea r15, [r13 + 8]
mov qword [rsp + 0x88], rax
cmp dword [r13], esi
jle 0x1401e096e
cmp qword [r15 + 0x50], 0
jne 0x1401e0514
mov r8, qword [r15 + 0x10]
test r8, r8
je 0x1401e0514
mov rax, qword [r15 + 8]
lea r9, [0x1402ec52c]
mov edx, 0x14
mov rcx, rbx
mov qword [rsp + 0x20], rax
call sym.sqlite3AuthCheck
mov rdi, qword [r15 + 0x28]
test rdi, rdi
je 0x1401e0963
xor edx, edx
mov rcx, rbp
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 0x1401e057f
movsxd rax, esi
imul rax, rax, 0x68
test byte [r13 + rax + 0x49], 1
je 0x1401e056d
mov rax, qword [r15 + 0x60]
cmp byte [rax + 0x12], 0
je 0x1401e057f
cmp dword [rax], 1
jg 0x1401e057f
mov r8, qword [rbp + 0x30]
mov r9, r15
mov rdx, rdi
mov rcx, rbx
call sym.pushDownWhereTerms.isra.0
mov rax, qword [rbx + 0x178]
mov r14d, dword [rbp + 4]
mov qword [rsp + 0x78], rax
mov rax, qword [r15 + 0x10]
mov qword [rbx + 0x178], rax
movsxd rax, esi
imul rax, rax, 0x68
mov r12b, byte [r13 + rax + 0x49]
and r12d, 1
je 0x1401e05c8
mov rdx, qword [r15 + 0x60]
mov al, byte [rdx + 0x12]
test al, al
je 0x1401e073e
cmp dword [rdx], 1
jle 0x1401e05c8
cmp al, 2
jne 0x1401e073e
test byte [r13 + 0x44], 0x40
jne 0x1401e0739
mov rax, qword [rbx]
test byte [rax + 0x63], 2
jne 0x1401e0739
mov r9d, dword [r13]
lea r8d, [rsi + 1]
mov rdx, r15
mov rcx, r13
mov dword [rsp + 0x90], r9d
call sym.isSelfJoinView
test rax, rax
jne 0x1401e0739
test esi, esi
jne 0x1401e062c
mov r9d, dword [rsp + 0x90]
dec r9d
je 0x1401e065c
test byte [r13 + 0xac], 2
jne 0x1401e065c
bt r14d, 0x1c
jb 0x1401e0739
jmp 0x1401e065c
bt r14d, 0x1c
jb 0x1401e0739
mov rax, r15
mov edx, esi
test byte [rax + 0x3c], 0x22
jne 0x1401e0739
test edx, edx
je 0x1401e065c
sub rax, 0x68
dec edx
cmp qword [rax + 0x28], 0
je 0x1401e063c
jmp 0x1401e0739
mov rax, qword [rsp + 0x58]
xor r9d, r9d
mov edx, 0xb
mov rcx, qword [rsp + 0x58]
mov r12d, dword [rax + 0x90]
mov eax, dword [rbx + 0x38]
lea r14d, [r12 + 1]
lea r8d, [rax + 1]
mov dword [rbx + 0x38], r8d
mov dword [r15 + 0x34], r8d
mov dword [rsp + 0x20], r14d
call sym.sqlite3VdbeAddOp3
mov eax, dword [r15 + 0x34]
mov dword [r15 + 0x30], r14d
mov r9, r15
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, rdi
mov rcx, rbx
call sym.sqlite3Select
mov dx, word [rdi + 2]
mov rax, qword [r15 + 0x20]
mov rcx, qword [rsp + 0x58]
mov word [rax + 0x3a], dx
movsxd rax, esi
imul rax, rax, 0x68
or byte [r13 + rax + 0x48], 0x20
mov eax, dword [rsp + 0x174]
mov edx, dword [r15 + 0x34]
mov dword [r15 + 0x38], eax
call sym.sqlite3VdbeEndCoroutine
mov rcx, qword [rsp + 0x58]
mov edx, r12d
call sym.sqlite3VdbeJumpHere
xor eax, eax
mov byte [rbx + 0x1f], 0
mov dword [rbx + 0x28], eax
jmp 0x1401e0922
test r12b, r12b
je 0x1401e0784
mov r12, qword [r15 + 0x60]
mov r9d, dword [r12 + 4]
test r9d, r9d
jle 0x1401e0784
mov r8d, dword [r12 + 8]
mov edx, 0xa
mov rcx, qword [rsp + 0x58]
call sym.sqlite3VdbeAddOp2
mov r8d, dword [r15 + 0x44]
mov r9d, dword [r12 + 0xc]
cmp r8d, r9d
je 0x1401e077d
mov rcx, qword [rsp + 0x58]
mov edx, 0x73
call sym.sqlite3VdbeAddOp2
mov eax, dword [r12 + 0x10]
jmp 0x1401e07da
xor r8d, r8d
mov r9d, esi
mov rdx, r15
mov rcx, r13
call sym.isSelfJoinView
test rax, rax
mov r12, rax
je 0x1401e07e3
mov r9d, dword [rax + 0x30]
test r9d, r9d
je 0x1401e07b9
mov r8d, dword [rax + 0x34]
mov edx, 0xa
mov rcx, qword [rsp + 0x58]
call sym.sqlite3VdbeAddOp2
mov r9d, dword [r12 + 0x44]
mov edx, 0x73
mov r8d, dword [r15 + 0x44]
mov rcx, qword [rsp + 0x58]
call sym.sqlite3VdbeAddOp2
mov rax, qword [r12 + 0x28]
mov ax, word [rax + 2]
mov word [rdi + 2], ax
jmp 0x1401e0922
mov eax, dword [rbx + 0x38]
mov edx, 9
mov rcx, qword [rsp + 0x58]
inc eax
mov dword [rbx + 0x38], eax
mov dword [r15 + 0x34], eax
call sym.sqlite3VdbeAddOp0
xor r11d, r11d
lea r14d, [rax + 1]
mov r12d, eax
movsxd rax, esi
imul rax, rax, 0x68
mov dword [r15 + 0x30], r14d
lea rdx, [r13 + rax + 0x30]
mov al, byte [rdx + 0x18]
or eax, 0x10
test al, 8
mov byte [rdx + 0x18], al
jne 0x1401e0837
mov rcx, qword [rsp + 0x58]
mov edx, 0xf
call sym.sqlite3VdbeAddOp0
mov r11d, eax
mov eax, dword [r15 + 0x44]
mov r9, r15
mov edx, 1
mov rcx, rbx
lea r8, str.MATERIALIZE___S
mov dword [rsp + 0x90], r11d
mov byte [rsp + 0x168], 0xc
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 rdx, rdi
mov rcx, rbx
lea r8, [rsp + 0x168]
call sym.sqlite3Select
mov r11d, dword [rsp + 0x90]
mov rax, qword [r15 + 0x20]
mov dx, word [rdi + 2]
test r11d, r11d
mov word [rax + 0x3a], dx
je 0x1401e08bd
mov rcx, qword [rsp + 0x58]
mov edx, r11d
call sym.sqlite3VdbeJumpHere
mov r8d, dword [r15 + 0x34]
mov r9d, r14d
mov edx, 0x43
mov rcx, qword [rsp + 0x58]
call sym.sqlite3VdbeAddOp2
mov rcx, qword [rsp + 0x58]
mov edx, r12d
xor r12d, r12d
call sym.sqlite3VdbeJumpHere
movsxd rax, esi
mov byte [rbx + 0x1f], 0
imul rax, rax, 0x68
mov dword [rbx + 0x28], r12d
mov eax, dword [r13 + rax + 0x48]
and ax, 0x108
cmp ax, 0x100
jne 0x1401e0922
mov edx, dword [r15 + 0x30]
mov rax, qword [r15 + 0x60]
mov dword [rax + 4], edx
mov edx, dword [r15 + 0x34]
mov dword [rax + 8], edx
mov edx, dword [r15 + 0x44]
mov dword [rax + 0xc], edx
mov dx, word [rdi + 2]
mov word [rax + 0x10], dx
mov rax, qword [rsp + 0x68]
cmp byte [rax + 0x67], 0
jne 0x1401dfd29
mov rdx, qword [rsp + 0x88]
xor edi, edi
mov rcx, rbp
mov dword [rsp + 0x138], edi
call sym.heightOfSelect
mov eax, dword [rsp + 0x138]
sub dword [rbx + 0x13c], eax
mov rax, qword [rsp + 0x78]
mov qword [rbx + 0x178], rax
inc esi
add r15, 0x68
jmp 0x1401e04dd
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 0x1401e09f9
mov rdx, qword [rsp + 0x78]
or r8d, 0xffffffff
mov rcx, r14
call sym.sqlite3ExprListCompare
test eax, eax
jne 0x1401e09f9
cmp qword [rbp + 0x70], 0
jne 0x1401e09f9
and dword [rbp + 4], 0xfffffffe
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
call sym.sqlite3ExprListDup
mov byte [rsp + 0xfc], 2
or dword [rbp + 4], 8
mov r12, rax
mov qword [rbp + 0x38], rax
mov dword [rsp + 0x88], 0xffffffff
test r14, r14
je 0x1401e0a6f
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 rcx, rax
mov edx, dword [r14]
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 rcx, qword [rsp + 0x58]
mov dword [rsp + 0x30], 0xfffffff8
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 0x1401e0aae
mov eax, dword [rbx + 0x44]
dec eax
test byte [rbp + 5], 0x40
mov dword [rsp + 0xe0], eax
mov dword [rbx + 0x44], eax
jne 0x1401e0b6c
mov word [rbp + 2], 0x140
jmp 0x1401e0b6c
mov rax, qword [rsp + 0x78]
mov edx, 0x76
mov rcx, qword [rsp + 0x58]
mov r9d, dword [rax]
mov rax, qword [rsp + 0x210]
mov r8d, dword [rax + 4]
call sym.sqlite3VdbeAddOp2
test byte [rbp + 5], 8
je 0x1401e0a8a
mov rax, qword [rsp + 0x78]
movsxd rsi, dword [rax]
lea edi, [rsi - 1]
shl rsi, 5
test edi, edi
jle 0x1401e0b34
mov rcx, qword [rsp + 0x78]
movsxd rax, edi
sub rsi, 0x20
shl rax, 5
test byte [rcx + rax + 0x1c], 0x40
jne 0x1401e0b34
mov rax, qword [rsp + 0x78]
dec edi
mov rcx, qword [rsp + 0x68]
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 0x1401e0ae6
mov rax, qword [rsp + 0x78]
mov ecx, dword [rax]
xor eax, eax
cmp ecx, eax
jle 0x1401e0a8a
mov rdi, qword [rsp + 0x78]
movsxd rdx, eax
shl rdx, 5
test byte [rdi + rdx + 0x1c], 0x40
jne 0x1401e0b67
mov rdx, rax
shl rdx, 5
mov rdx, qword [rdi + rdx + 8]
mov byte [rdx], 0x79
inc rax
jmp 0x1401e0b3d
cmp qword [rbp + 0x60], 0
je 0x1401e0b86
mov r8d, dword [rsp + 0xe0]
mov rdx, rbp
mov rcx, rbx
call sym.computeLimitRegisters
cmp dword [rbp + 8], 0
jne 0x1401e0bb2
cmp dword [rsp + 0x88], 0
js 0x1401e0bb2
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 0x1401e0c1e
mov esi, dword [rbx + 0x34]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov rdx, qword [rbp + 0x20]
lea eax, [rsi + 1]
mov dword [rsp + 0x100], esi
mov dword [rbx + 0x34], eax
call sym.sqlite3KeyInfoFromExprList
mov rcx, qword [rsp + 0x58]
xor r10d, r10d
xor r9d, r9d
mov edx, 0x76
mov dword [rsp + 0x30], 0xfffffff8
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 0x1401e1ee8
test r12, r12
jne 0x1401e1ef1
mov dil, byte [rsp + 0xfc]
xor eax, eax
mov edx, dword [rbp + 4]
mov rsi, qword [rbp + 0x70]
and dx, 0x4000
test dil, dil
setne al
shl eax, 8
or edx, eax
test rsi, rsi
mov word [rsp + 0x70], dx
je 0x1401e0f19
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 edx, 0x73
mov rcx, qword [rsp + 0x60]
lea r8d, [r9 + 1]
call sym.sqlite3VdbeAddOp2
mov r9d, dword [rsi + 0x58]
mov edx, 0x73
mov rcx, qword [rsp + 0x60]
lea r8d, [r9 + 2]
call sym.sqlite3VdbeAddOp2
mov r9d, dword [rsi + 0x58]
mov edx, 0x73
mov rcx, qword [rsp + 0x60]
lea r8d, [r9 + 3]
call sym.sqlite3VdbeAddOp2
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1401e0d23
mov edx, dword [rax]
xor r8d, r8d
mov eax, dword [rbx + 0x38]
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 r8d, 1
mov r12, rsi
mov edx, 0x47
mov rcx, qword [rsp + 0x60]
lea r15, str.lead
lea r9d, [rax + 1]
mov dword [rbx + 0x38], r9d
mov dword [rsi + 0x80], r9d
call sym.sqlite3VdbeAddOp2
cmp byte [rsi + 0x24], 0
je 0x1401e0e21
mov eax, dword [rbx + 0x38]
mov r8d, 1
mov rcx, qword [rsp + 0x60]
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]
xor r8d, r8d
mov edx, 0x47
mov rcx, qword [rsp + 0x60]
call sym.sqlite3VdbeAddOp2
mov r9d, dword [rsi + 0x58]
mov edx, 0x73
mov r8d, dword [rsi + 0x64]
mov rcx, qword [rsp + 0x60]
call sym.sqlite3VdbeAddOp2
jmp 0x1401e0f19
cmp byte [r12 + 0x21], 0x5a
jne 0x1401e0e2e
mov rax, qword [rax + 0x38]
lea rcx, str.first_value
cmp rax, rcx
je 0x1401e0ece
lea rcx, str.nth_value
cmp rax, rcx
je 0x1401e0ece
cmp rax, r15
je 0x1401e0ef1
lea rdx, [0x1402fc140]
cmp rax, rdx
je 0x1401e0ef1
mov r12, qword [r12 + 0x40]
test r12, r12
je 0x1401e0f19
mov rax, qword [r12 + 0x50]
test byte [rax + 5], 0x10
je 0x1401e0dd6
jmp 0x1401e0dce
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
test r11, r11
mov dword [r12 + 0x68], edx
mov dword [rbx + 0x38], eax
je 0x1401e0e82
mov rax, qword [r12 + 0x50]
mov rax, qword [rax + 0x38]
cmp byte [rax + 1], 0x69
jne 0x1401e0e82
mov rax, qword [r11 + 0x18]
mov byte [rax], 1
mov r8d, dword [r12 + 0x64]
mov r9d, 2
mov edx, 0x76
mov qword [rsp + 0x80], r11
mov rcx, qword [rsp + 0x60]
call sym.sqlite3VdbeAddOp2
mov rcx, qword [rsp + 0x60]
mov r8d, 0xfffffff8
mov rdx, qword [rsp + 0x80]
call sym.sqlite3VdbeAppendP4
mov r9d, dword [r12 + 0x68]
xor r8d, r8d
mov edx, 0x47
inc r9d
jmp 0x1401e0f0a
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 0x1401e0f01
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 0x1401e0e13
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
test rax, rax
mov r15, rax
je 0x1401dfd29
mov eax, dword [rax + 0x48]
cmp word [rbp + 2], ax
jle 0x1401e0f67
mov word [rbp + 2], ax
test dil, dil
je 0x1401e0f7b
mov al, byte [r15 + 0x43]
test al, al
je 0x1401e0f7b
mov byte [rsp + 0xfd], al
test r14, r14
jne 0x1401e0f8c
cmp dword [rsp + 0x88], 0
jns 0x1401e0fef
jmp 0x1401e100b
movsx edx, byte [r15 + 0x41]
xor eax, eax
test dl, dl
cmovs edx, eax
test byte [r15 + 0x44], 4
mov dword [rsp + 0x110], edx
je 0x1401e0fc0
movzx eax, byte [r15 + 0x40]
dec eax
cdqe
imul rax, rax, 0x70
add rax, r15
cmp qword [rax + 0x398], 0
je 0x1401e0fc6
mov eax, dword [r15 + 0x30]
jmp 0x1401e0fcc
mov eax, dword [rax + 0x370]
cmp dword [r14], edx
mov dword [rsp + 0x128], eax
jne 0x1401e0f80
xor r9d, r9d
cmp dword [rsp + 0x88], 0
mov qword [rsp + 0x108], r9
js 0x1401e100b
jmp 0x1401e0ffa
cmp qword [rsp + 0x108], 0
jne 0x1401e100b
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
call sym.sqlite3VdbeChangeToNoop.isra.0
test rsi, rsi
je 0x1401e1e9a
mov eax, dword [rbx + 0x44]
mov rcx, rbx
mov rsi, qword [rbp + 0x70]
lea edi, [rax - 1]
mov dword [rsp + 0xc8], edi
lea edi, [rax - 2]
sub eax, 3
mov r13, qword [rsi + 0x18]
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]
mov dword [rsp + 0xd8], edi
mov rdi, rdx
movsx eax, word [rax + 0x36]
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 0x1401e112f
cmp al, 0x5a
je 0x1401e115d
jmp 0x1401e11f8
cmp byte [rsi + 0x20], 0x59
je 0x1401e1203
mov rdx, qword [rsi + 0x28]
mov rcx, qword [rbx]
call sym.windowExprGtZero.isra.0
test eax, eax
je 0x1401e1203
mov dword [rsp + 0x18c], 1
jmp 0x1401e1203
mov ecx, dword [rsi + 0x84]
test ecx, ecx
jne 0x1401e1203
lea r9, str.nth_value
mov rax, rsi
lea r10, str.first_value
lea r11, str.lead
lea rdi, [0x1402fc140]
test rax, rax
je 0x1401e11c4
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 0x1401e11bf
cmp rdx, rdi
je 0x1401e11bf
mov rax, qword [rax + 0x40]
jmp 0x1401e118a
mov ecx, 1
test ecx, ecx
mov dl, byte [rsi + 0x22]
mov al, byte [rsi + 0x20]
jne 0x1401e1203
cmp dl, 0x58
jne 0x1401e114d
cmp al, 0x59
je 0x1401e1203
mov rdx, qword [rsi + 0x30]
mov rcx, qword [rbx]
call sym.windowExprGtZero.isra.0
test eax, eax
je 0x1401e1203
mov dword [rsp + 0x18c], 3
jmp 0x1401e1203
mov dword [rsp + 0x18c], 2
mov r14d, dword [rbx + 0x38]
xor r8d, r8d
mov eax, dword [rsp + 0x9c]
mov dword [rsp + 0x70], r8d
lea r12d, [r14 + 1]
add eax, r14d
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 0x1401e1251
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 0x1401e1266
mov eax, dword [rbx + 0x38]
lea edi, [rax + 1]
mov dword [rbx + 0x38], edi
cmp byte [rsi + 0x20], 0x4c
je 0x1401e12ce
xor edx, edx
test r13, r13
je 0x1401e1277
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 0x1401e1296
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
lea ecx, [rax + 1]
add eax, edx
mov dword [rsp + 0x1a8], ecx
mov dword [rbx + 0x38], eax
jmp 0x1401e12de
xor ecx, ecx
mov dword [rsp + 0x88], ecx
mov dword [rsp + 0xb0], ecx
xor r9d, r9d
inc r14d
cmp dword [rsp + 0x9c], r9d
jle 0x1401e1322
mov rcx, qword [rsp + 0x60]
lea eax, [r14 + r9]
mov edx, 0x5e
mov dword [rsp + 0xe4], r9d
mov r8d, dword [rsp + 0xd8]
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp3
mov r9d, dword [rsp + 0xe4]
inc r9d
jmp 0x1401e12e4
mov eax, dword [rsp + 0xd0]
mov edx, 0x61
mov r8d, r12d
mov r9d, dword [rsp + 0x9c]
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp3
mov rdx, qword [rsi + 0x10]
test rdx, rdx
je 0x1401e141b
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 edx, 0x5a
mov qword [rsp + 0xd8], rax
mov eax, dword [rbx + 0x38]
mov rcx, qword [rsp + 0x60]
mov r8d, r12d
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 r8d, 0xfffffff8
mov rdx, qword [rsp + 0xd8]
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]
mov dword [rsp + 0x20], r8d
lea r9d, [rax + 4]
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 r8d, r12d
mov dword [rsp + 0x20], r14d
mov rcx, qword [rsp + 0x60]
mov edx, 0x50
mov dword [rsp + 0xd8], eax
call sym.sqlite3VdbeAddOp3
jmp 0x1401e142b
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]
xor r9d, r9d
mov edx, 0x34
mov r8d, dword [rsi + 0x80]
mov rcx, qword [rsp + 0x60]
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]
xor r8d, r8d
mov edx, 0x4b
mov r9d, dword [r14 + 0x5c]
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 0x1401e14eb
mov eax, dword [rdx]
cmp r12d, eax
cmovl r12d, eax
cmp dword [rsi + 0x84], 0
jne 0x1401e159d
mov rax, qword [rsp + 0xd0]
lea rcx, str.first_value
mov rax, qword [rax + 0x38]
cmp rax, rcx
je 0x1401e1523
lea rcx, str.nth_value
cmp rax, rcx
jne 0x1401e1558
mov r9d, dword [r14 + 0x68]
xor r8d, r8d
mov edx, 0x47
mov rcx, qword [rsp + 0xa0]
call sym.sqlite3VdbeAddOp2
mov r9d, dword [r14 + 0x68]
xor r8d, r8d
mov edx, 0x47
mov rcx, qword [rsp + 0xa0]
inc r9d
call sym.sqlite3VdbeAddOp2
mov rax, qword [rsp + 0xd0]
test byte [rax + 5], 0x10
je 0x1401e159d
mov r8d, dword [r14 + 0x64]
test r8d, r8d
je 0x1401e159d
mov rcx, qword [rsp + 0xa0]
mov edx, 0x92
call sym.sqlite3VdbeAddOp1
mov r9d, dword [r14 + 0x68]
xor r8d, r8d
mov edx, 0x47
mov rcx, qword [rsp + 0xa0]
inc r9d
call sym.sqlite3VdbeAddOp2
mov r14, qword [r14 + 0x40]
test r14, r14
jne 0x1401e14b5
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 0x1401e15f0
mov rdx, qword [rsi + 0x28]
mov rcx, rbx
mov r8d, dword [rsp + 0x70]
call sym.sqlite3ExprCode
xor r8d, r8d
cmp byte [rsi + 0x20], 0x59
mov rcx, rbx
mov edx, dword [rsp + 0x70]
sete r8b
lea r8d, [r8 + r8*2]
call sym.windowCheckValue
test edi, edi
je 0x1401e161d
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
mov rcx, rbx
sete r8b
lea r8d, [r8 + r8*2 + 1]
call sym.windowCheckValue
cmp byte [rsi + 0x20], 0x59
je 0x1401e16d1
mov al, byte [rsi + 0x21]
cmp byte [rsi + 0x22], al
jne 0x1401e16d1
cmp dword [rsp + 0x70], 0
je 0x1401e16d1
mov r8d, dword [rsp + 0x70]
xor edx, edx
cmp al, 0x56
mov dword [rsp + 0x20], edi
mov rcx, qword [rsp + 0x60]
lea r14, [rsp + 0x168]
sete dl
xor r9d, r9d
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 0x1401e1717
cmp byte [rsi + 0x20], 0x59
je 0x1401e16e1
test edi, edi
jne 0x1401e16fa
mov r8d, dword [rsp + 0xcc]
mov edx, 0x24
mov rcx, qword [rsp + 0x60]
call sym.sqlite3VdbeAddOp1
jmp 0x1401e171d
mov eax, dword [rsp + 0x70]
mov r9d, edi
mov edx, 0x6b
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov r8d, eax
call sym.sqlite3VdbeAddOp3
cmp byte [rsi + 0x21], 0x5a
jne 0x1401e16e1
mov r8d, dword [rsp + 0x80]
mov edx, 0x24
mov rcx, qword [rsp + 0x60]
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 0x1401e1806
test r13, r13
je 0x1401e1806
mov eax, dword [r13]
mov edx, 0x50
mov r9d, dword [rsp + 0x88]
mov r8d, dword [rsp + 0xb0]
mov rcx, qword [rsp + 0x60]
dec eax
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp3
mov eax, dword [r13]
mov edx, 0x50
mov r9d, dword [rsp + 0x198]
mov r8d, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
dec eax
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp3
mov eax, dword [r13]
mov edx, 0x50
mov r9d, dword [rsp + 0x1a0]
mov r8d, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
dec eax
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp3
mov eax, dword [r13]
mov edx, 0x50
mov r9d, dword [rsp + 0x1a8]
mov r8d, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
dec eax
mov dword [rsp + 0x20], eax
call sym.sqlite3VdbeAddOp3
mov r9d, dword [rsp + 0x90]
xor r8d, r8d
mov edx, 9
mov rcx, qword [rsp + 0x60]
call sym.sqlite3VdbeAddOp2
mov edx, dword [rsp + 0xe4]
mov rcx, qword [rsp + 0x60]
call sym.sqlite3VdbeJumpHere
cmp dword [rsp + 0x88], 0
je 0x1401e1861
mov eax, dword [rsp + 0x90]
mov rdx, r13
mov rcx, rbx
mov r9d, dword [rsp + 0x88]
mov r8d, dword [rsp + 0xb0]
mov dword [rsp + 0x20], eax
call sym.windowIfNewPeer
cmp byte [rsi + 0x21], 0x56
lea r14, [rsp + 0x168]
jne 0x1401e1943
xor r9d, r9d
xor r8d, r8d
mov edx, 3
mov rcx, r14
call sym.windowCodeOp
cmp byte [rsi + 0x22], 0x5a
je 0x1401e1aef
cmp byte [rsi + 0x20], 0x59
jne 0x1401e191e
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 dword [rsp + 0x28], r13d
mov eax, dword [rsp + 0xac]
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 0x1401e1a7b
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 0x1401e19b4
cmp byte [rsi + 0x22], 0x58
jne 0x1401e19be
mov r12d, dword [rsi + 0x20]
xor r9d, r9d
mov r8d, edi
mov edx, 3
mov rcx, r14
call sym.windowCodeOp
cmp r12w, 0x5859
jne 0x1401e197d
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 0x1401e1aef
mov r8d, dword [rsp + 0x70]
xor r9d, r9d
mov edx, 2
mov rcx, r13
call sym.windowCodeOp
jmp 0x1401e1aef
xor r9d, r9d
xor r8d, r8d
mov edx, 3
mov rcx, r14
call sym.windowCodeOp
cmp byte [rsi + 0x22], 0x5a
je 0x1401e1aef
cmp byte [rsi + 0x20], 0x59
jne 0x1401e1a87
mov rax, qword [rsp + 0x60]
xor r12d, r12d
test edi, edi
mov r13d, dword [rax + 0x90]
je 0x1401e1a2b
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 0x1401e1aef
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 0x1401e1aef
xor r12d, r12d
test edi, edi
je 0x1401e1aae
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 0x1401e1aef
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 0x1401e1b41
mov rcx, qword [rsp + 0x60]
mov edx, 0x47
xor r8d, r8d
mov r9d, dword [rsp + 0x9c]
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]
xor eax, eax
mov edx, 0x24
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x190], eax
lea r12, [rsp + 0x168]
call sym.sqlite3VdbeAddOp1
cmp byte [rsi + 0x22], 0x58
mov r15d, eax
jne 0x1401e1bc3
mov r13d, dword [rsi + 0x20]
xor r9d, r9d
mov r8d, edi
mov edx, 3
mov rcx, r12
call sym.windowCodeOp
cmp r13w, 0x5859
jne 0x1401e1ba6
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 0x1401e1d4b
xor r9d, r9d
xor r8d, r8d
cmp byte [rsi + 0x21], 0x56
mov edx, 3
mov rcx, r12
jne 0x1401e1cea
call sym.windowCodeOp
mov rax, qword [rsp + 0x60]
mov r9d, 1
cmp byte [rsi + 0x20], 0x59
mov r13d, dword [rax + 0x90]
jne 0x1401e1c27
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 0x1401e1c7a
cmp byte [rsi + 0x22], 0x5a
jne 0x1401e1c4d
mov r8d, dword [rsp + 0x70]
mov edx, 1
mov rcx, r12
call sym.windowCodeOp
mov r9d, 1
xor r8d, r8d
mov r14d, eax
jmp 0x1401e1c6b
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 edi, eax
mov r9d, r12d
call sym.sqlite3VdbeAddOp2
mov rcx, qword [rsp + 0x60]
mov edx, r14d
call sym.sqlite3VdbeJumpHere
mov edx, edi
jmp 0x1401e1d41
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 0x1401e1de1
mov r9d, dword [rsi + 0x84]
test r9d, r9d
je 0x1401e1db0
mov rcx, qword [rsp + 0x60]
mov r8d, 1
mov edx, 0x47
call sym.sqlite3VdbeAddOp2
mov r9d, dword [rsi + 0x88]
xor r8d, r8d
mov edx, 0x47
mov rcx, qword [rsp + 0x60]
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]
xor r8d, r8d
mov edx, 9
mov rcx, qword [rsp + 0x58]
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 0x1401e2e97
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 0x1401e2e97
test r12, r12
je 0x1401e1f80
mov rax, qword [rbp + 0x20]
mov edx, dword [rax]
add rax, 8
test edx, edx
jle 0x1401e1f0d
mov word [rax + 0x1a], 0
dec edx
add rax, 0x20
jmp 0x1401e1efb
mov edx, dword [r12]
lea rcx, [r12 + 8]
mov eax, edx
test eax, eax
jle 0x1401e1f2a
mov word [rcx + 0x1a], 0
dec eax
add rcx, 0x20
jmp 0x1401e1f18
cmp word [rbp + 2], 0x42
jle 0x1401e1f37
mov word [rbp + 2], 0x42
test r14, r14
je 0x1401e1f86
cmp dword [r14], edx
jne 0x1401e1f86
xor ecx, ecx
mov eax, 0x18
cmp ecx, edx
jge 0x1401e1f60
mov r8b, byte [r14 + rax]
inc ecx
and r8d, 1
mov byte [r12 + rax], r8b
add rax, 0x20
jmp 0x1401e1f48
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 0x1401e1f8f
mov word [rbp + 2], 0
xor eax, eax
mov dword [rsp + 0xd0], eax
mov eax, dword [rbx + 0x44]
mov edx, 0x38
mov rcx, qword [rsp + 0x68]
dec eax
mov dword [rbx + 0x44], eax
mov dword [rsp + 0x80], eax
call sym.sqlite3DbMallocZero
test rax, rax
mov rsi, rax
je 0x1401e1fc7
lea rdx, [sym.agginfoFree]
mov r8, rax
mov rcx, rbx
call sym.sqlite3ParserAddCleanup
mov rax, qword [rsp + 0x68]
mov r15b, byte [rax + 0x67]
test r15b, r15b
jne 0x1401e2e8d
mov eax, dword [rbp + 0x10]
lea rdx, [rsp + 0x180]
mov ecx, 8
mov rdi, rdx
mov dword [rsi + 0x34], eax
xor eax, eax
test r12, r12
rep stosd dword [rdi], eax
mov qword [rsp + 0x168], rbx
mov qword [rsp + 0x170], r13
mov qword [rsp + 0x178], rsi
je 0x1401e2014
mov eax, dword [r12]
mov rdx, qword [rsp + 0x78]
lea rdi, [rsp + 0x168]
mov word [rsi + 2], ax
mov rcx, rdi
mov qword [rsi + 0x10], r12
call sym.sqlite3ExprAnalyzeAggList
mov rdx, r14
mov rcx, rdi
call sym.sqlite3ExprAnalyzeAggList
cmp qword [rsp + 0xb0], 0
je 0x1401e20b4
test r12, r12
je 0x1401e209f
lea rdx, [rsp + 0x148]
xor eax, eax
mov ecx, 6
lea r8, [rsp + 0x138]
mov rdi, rdx
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 0x1401e217f
mov rax, qword [rbp + 0x40]
test rax, rax
mov qword [rsp + 0x70], rax
jne 0x1401e2178
cmp dword [rsi + 0x30], 1
jne 0x1401e217f
mov rax, qword [rsi + 0x28]
mov rax, qword [rax]
mov r11, qword [rax + 0x20]
test r11, r11
je 0x1401e217f
mov edi, dword [r11]
cmp edi, 1
jne 0x1401e217f
test byte [rax + 7], 1
jne 0x1401e217f
mov rcx, qword [rsp + 0x68]
test byte [rcx + 0x62], 1
jne 0x1401e217f
mov rcx, qword [rax + 8]
lea rdx, [0x1402ef392]
call sym.sqlite3StrICmp
test eax, eax
jne 0x1401e213d
mov rcx, qword [r11 + 8]
call sym.sqlite3ExprCanBeNull
test eax, eax
setne r14b
add r14d, r14d
jmp 0x1401e2155
lea rdx, [0x1402ef396]
call sym.sqlite3StrICmp
test eax, eax
jne 0x1401e217f
mov r14b, 1
mov edi, 2
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
mov rdx, r11
call sym.sqlite3ExprListDup
test rax, rax
mov qword [rsp + 0x70], rax
je 0x1401e2173
mov byte [rax + 0x18], r14b
mov r15d, edi
jmp 0x1401e217f
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 0x1401e2e83
test r12, r12
mov eax, dword [rsi + 0x30]
je 0x1401e2a53
mov word [rsp + 0xac], 0
dec eax
jne 0x1401e2237
mov rax, qword [rsi + 0x28]
cmp dword [rax + 0x10], 0
js 0x1401e2237
mov rax, qword [rax]
test rax, rax
je 0x1401e222f
test byte [rax + 5], 0x10
jne 0x1401e2237
mov rax, qword [rax + 0x20]
test rax, rax
mov qword [rsp + 0x60], rax
je 0x1401e2237
mov rdx, qword [rax + 8]
xor r8d, r8d
mov rcx, qword [rsp + 0x68]
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 0x1401e2237
xor r15d, r15d
mov qword [rsp + 0x60], r15
mov eax, dword [rbx + 0x34]
xor r8d, r8d
mov rcx, rbx
mov r9d, dword [rsi + 0x20]
lea edx, [rax + 1]
mov dword [rbx + 0x34], edx
mov rdx, r12
mov dword [rsi + 4], eax
call sym.sqlite3KeyInfoFromExprList
movzx r9d, word [rsi + 2]
xor r11d, r11d
mov edx, 0x77
mov r8d, dword [rsi + 4]
mov dword [rsp + 0x20], r11d
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x30], 0xfffffff8
mov qword [rsp + 0x28], rax
mov qword [rsp + 0xb8], rax
call sym.sqlite3VdbeAddOp4
mov edx, dword [rbx + 0x44]
xor r8d, r8d
mov dword [rsp + 0xec], eax
mov eax, dword [rbx + 0x38]
mov rcx, qword [rsp + 0x58]
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]
xor r8d, r8d
mov edx, 0x4b
add eax, dword [r12]
mov r9d, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x58]
dec eax
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
test rax, rax
mov qword [rsp + 0x90], rax
jne 0x1401e23ee
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call sym.sqlite3ExprListDelete
jmp 0x1401e2e83
cmp qword [rbx + 0x60], 0
je 0x1401e2431
movsxd rax, dword [rsi + 0x24]
cmp word [rsi + 2], 0
mov dword [rsi + 0x20], eax
je 0x1401e2421
test eax, eax
jne 0x1401e240f
mov rax, qword [rbp + 0x38]
mov eax, dword [rax]
jmp 0x1401e241d
imul rax, rax, 0x18
add rax, qword [rsi + 0x18]
mov ax, word [rax - 2]
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 0x1401e25df
lea r9, str.GROUP_BY
test dil, dil
je 0x1401e2490
test byte [rbp + 4], 1
lea rax, str.DISTINCT
cmove r9, rax
mov rcx, rbx
xor edx, edx
lea r8, str.USE_TEMP_B_TREE_FOR__s
call sym.sqlite3VdbeExplain
mov r14d, dword [r12]
xor eax, eax
mov ecx, dword [rsi + 0x20]
mov edi, r14d
cmp ecx, eax
jle 0x1401e24c8
imul rdx, rax, 0x18
add rdx, qword [rsi + 0x18]
movsx edx, word [rdx + 0x16]
cmp edx, edi
jl 0x1401e24c3
inc edi
inc rax
jmp 0x1401e24ad
mov edx, edi
mov rcx, rbx
xor r10d, r10d
call sym.sqlite3GetTempRange
mov dword [rsp + 0x20], r10d
xor r9d, r9d
mov rdx, r12
mov r8d, eax
mov r13d, eax
xor r15d, r15d
call sym.sqlite3ExprCodeExprList.isra.0
mov byte [rsi], 1
cmp dword [rsi + 0x20], r15d
jle 0x1401e2520
imul rax, r15, 0x18
add rax, qword [rsi + 0x18]
movsx edx, word [rax + 0x16]
cmp edx, r14d
jl 0x1401e251b
mov rdx, qword [rax + 8]
lea r8d, [r14 + r13]
mov rcx, rbx
inc r14d
call sym.sqlite3ExprCode
inc r15
jmp 0x1401e24f1
mov rcx, rbx
mov byte [rsi], 0
mov r8d, r13d
mov r9d, edi
call sym.sqlite3GetTempReg
mov rcx, qword [rsp + 0x58]
mov edx, 0x61
mov dword [rsp + 0x20], eax
mov r14d, eax
call sym.sqlite3VdbeAddOp3
mov r8d, dword [rsi + 4]
mov r9d, r14d
mov edx, 0x8b
mov rcx, qword [rsp + 0x58]
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 rcx, qword [rsp + 0x58]
mov dword [rsp + 0x20], edi
mov r9d, eax
mov r14d, eax
call sym.sqlite3VdbeAddOp3
mov r8d, dword [rsi + 4]
mov edx, 0x22
mov r9d, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
call sym.sqlite3VdbeAddOp2
mov byte [rsi + 1], 1
mov dword [rsp + 0x98], 1
jmp 0x1401e25e5
xor r14d, r14d
xor r13d, r13d
cmp qword [rbx + 0x60], 0
je 0x1401e262e
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 0x1401e262e
imul rax, rdi, 0x18
mov rcx, r15
inc rdi
add rax, qword [rsi + 0x28]
mov rdx, qword [rax]
call sym.sqlite3WalkExpr
jmp 0x1401e2611
cmp dword [rsp + 0xd0], 0
je 0x1401e2684
mov rax, qword [rsp + 0x68]
test byte [rax + 0x60], 4
jne 0x1401e2684
cmp dword [rsp + 0x98], 0
jne 0x1401e2668
mov rax, qword [rsp + 0x90]
test byte [rax + 0x44], 8
jne 0x1401e2668
mov rax, qword [rsp + 0x58]
mov edi, dword [rax + 0x90]
jmp 0x1401e26b2
mov edx, dword [rsp + 0x88]
xor r9d, r9d
mov rcx, qword [rsp + 0x58]
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 0x1401e26b2
mov r8d, dword [rsi + 4]
mov r9d, r14d
mov dword [rsp + 0x20], r13d
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 0x1401e270f
cmp dword [rsp + 0x98], 0
lea r8d, [r14 + r15]
je 0x1401e26f3
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x20], r8d
mov r9d, r15d
mov r8d, r13d
mov edx, 0x5e
call sym.sqlite3VdbeAddOp3
jmp 0x1401e270a
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 0x1401e26c0
cmp qword [rsp + 0xb8], 0
je 0x1401e2724
mov rcx, qword [rsp + 0xb8]
inc dword [rcx]
mov rcx, qword [rsp + 0xb8]
mov edx, 0x5a
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0xe8]
mov r8d, dword [rsp + 0xc0]
mov dword [rsp + 0x30], 0xfffffff8
mov qword [rsp + 0x28], rcx
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 edx, 0x4f
mov rcx, qword [rbx + 0x10]
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 edx, 0x47
mov r9d, dword [rsp + 0xa0]
call sym.sqlite3VdbeAddOp2
cmp dword [rsp + 0x98], 0
je 0x1401e286a
mov r8d, dword [rsi + 4]
mov r9d, edi
mov edx, 0x25
mov rcx, qword [rsp + 0x58]
call sym.sqlite3VdbeAddOp2
jmp 0x1401e2888
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 edx, 0x47
mov r9d, dword [rsp + 0xc8]
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 rcx, qword [rbx + 0x10]
mov rdx, rsi
call sym.finalizeAggFunctions.isra.0
mov rdx, qword [rsp + 0xb0]
mov r8d, edi
mov rcx, rbx
mov r9d, 0x10
call sym.sqlite3ExprIfFalse
or r8d, 0xffffffff
mov rdx, rbp
mov rcx, rbx
mov rax, qword [rsp + 0x210]
lea r9, [rsp + 0x108]
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], edi
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]
xor r8d, r8d
mov edx, 0x47
mov rcx, qword [rsp + 0x58]
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 0x1401e2e70
cmp dword [rsp + 0xe4], 0
je 0x1401e2e70
mov rax, qword [rsi + 0x28]
mov rcx, rbx
mov edx, dword [rsp + 0xe4]
mov r9d, dword [rax + 0x14]
mov r8d, dword [rax + 0x10]
call sym.fixDistinctOpenEph
jmp 0x1401e2e70
cmp qword [rbp + 0x30], 0
jne 0x1401e2c6a
mov rcx, qword [rbp + 0x20]
cmp dword [rcx], 1
jne 0x1401e2c6a
mov rdx, qword [rbp + 0x28]
cmp dword [rdx], 1
jne 0x1401e2c6a
cmp qword [rdx + 0x30], 0
jne 0x1401e2c6a
cmp eax, 1
jne 0x1401e2c6a
mov r14, qword [rbp + 0x40]
test r14, r14
jne 0x1401e2c6a
mov rdi, qword [rdx + 0x28]
cmp byte [rdi + 0x3f], 0
jne 0x1401e2c6a
mov rdx, qword [rcx + 8]
cmp byte [rdx], 0xa8
jne 0x1401e2c6a
cmp rsi, qword [rdx + 0x38]
jne 0x1401e2c6a
mov rcx, qword [rsi + 0x28]
mov rcx, qword [rcx + 8]
test byte [rcx + 5], 1
je 0x1401e2c6a
test dword [rdx + 4], 0x1000004
jne 0x1401e2c6a
mov rdx, qword [rdi + 0x60]
mov rcx, qword [rbx]
call sym.sqlite3SchemaToIndex
mov r13d, dword [rbx + 0x34]
mov rcx, rbx
mov r12d, eax
mov edx, r12d
lea eax, [r13 + 1]
mov dword [rbx + 0x34], eax
mov eax, dword [rdi + 0x28]
mov dword [rsp + 0x60], eax
call sym.sqlite3CodeVerifySchema
mov rax, qword [rdi]
xor r9d, r9d
mov edx, r12d
mov r8d, dword [rdi + 0x28]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call sym.sqlite3TableLock
test byte [rdi + 0x30], 0x80
je 0x1401e2b35
mov rcx, qword [rdi + 0x10]
call sym.sqlite3PrimaryKeyIndex.isra.0
mov r14, rax
mov rax, qword [rbp + 0x28]
test byte [rax + 0x48], 1
jne 0x1401e2b73
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1401e2b73
test byte [rax + 0x64], 4
jne 0x1401e2b6d
mov edx, dword [rax + 0x5c]
cmp dx, word [rdi + 0x3c]
jge 0x1401e2b6d
cmp qword [rax + 0x48], 0
jne 0x1401e2b6d
test r14, r14
je 0x1401e2b6a
cmp dx, word [r14 + 0x5c]
jge 0x1401e2b6d
mov r14, rax
mov rax, qword [rax + 0x28]
jmp 0x1401e2b43
xor r15d, r15d
test r14, r14
je 0x1401e2b91
mov eax, dword [r14 + 0x58]
mov rdx, r14
mov rcx, rbx
mov dword [rsp + 0x60], eax
call sym.sqlite3KeyInfoOfIndex
mov r15, rax
mov r9d, dword [rsp + 0x60]
mov dword [rsp + 0x28], 1
mov r8d, r13d
mov edx, 0x70
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x20], r12d
call sym.sqlite3VdbeAddOp4Int
test r15, r15
je 0x1401e2bd0
mov rcx, qword [rsp + 0x58]
mov r9d, 0xfffffff8
mov r8, r15
or edx, 0xffffffff
call sym.sqlite3VdbeChangeP4
mov edx, dword [rsi + 0x20]
mov r8d, r13d
mov eax, dword [rsi + 0x30]
mov ecx, dword [rbx + 0x38]
add eax, edx
lea r9d, [rcx + 1]
add eax, ecx
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 0x1401e2e13
lea rax, [0x1402ec52c]
test r14, r14
mov rdx, rax
je 0x1401e2c47
test byte [rdi + 0x30], 0x80
je 0x1401e2c3d
mov cl, byte [r14 + 0x64]
and ecx, 3
cmp cl, 2
je 0x1401e2c47
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 0x1401e2e13
mov edi, dword [rsi + 0x24]
test edi, edi
je 0x1401e2cbe
xor edx, edx
cmp eax, edx
jle 0x1401e2c98
imul rcx, rdx, 0x18
add rcx, qword [rsi + 0x28]
mov r8, qword [rcx]
test byte [r8 + 7], 1
jne 0x1401e2c93
mov rcx, qword [rcx + 8]
test byte [rcx + 4], 0x20
jne 0x1401e2c98
inc rdx
jmp 0x1401e2c73
xor edi, edi
cmp eax, edx
jne 0x1401e2ce8
mov eax, dword [rbx + 0x38]
xor r8d, r8d
mov edx, 0x47
mov rcx, qword [rsp + 0x58]
lea edi, [rax + 1]
mov dword [rbx + 0x38], edi
mov r9d, edi
call sym.sqlite3VdbeAddOp2
jmp 0x1401e2ce8
xor r14d, r14d
dec eax
jne 0x1401e2ceb
mov rax, qword [rsi + 0x28]
cmp dword [rax + 0x10], 0
js 0x1401e2ceb
mov rax, qword [rax]
mov r12, qword [rax + 0x20]
mov rax, r12
neg rax
sbb r14w, r14w
and r14w, 0x500
jmp 0x1401e2ceb
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
xor r8d, r8d
mov r9, qword [rsp + 0x70]
mov rdx, r13
mov dword [rsp + 0x38], r8d
movzx eax, r15b
mov r8, qword [rsp + 0x90]
mov rcx, rbx
or eax, r14d
mov qword [rsp + 0x20], r12
movzx eax, ax
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x30], eax
call sym.sqlite3WhereBegin
test rax, rax
mov r12, rax
je 0x1401e2e83
movzx r13d, byte [rax + 0x43]
mov r8, rsi
mov edx, edi
mov rcx, rbx
mov r9d, r13d
call sym.updateAccumulator
test r13d, r13d
je 0x1401e2d84
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x1401e2d84
mov r9d, dword [rax + 0x14]
mov edx, r13d
mov rcx, rbx
mov r8d, dword [rax + 0x10]
call sym.fixDistinctOpenEph
test edi, edi
je 0x1401e2da0
mov rcx, qword [rsp + 0x58]
mov r9d, edi
mov r8d, 1
mov edx, 0x47
call sym.sqlite3VdbeAddOp2
test r15b, r15b
je 0x1401e2dff
test byte [r12 + 0x44], 4
je 0x1401e2dff
cmp byte [r12 + 0x41], 0
je 0x1401e2dff
movzx eax, byte [r12 + 0x40]
dec eax
cdqe
cmp rax, 0xffffffffffffffff
je 0x1401e2df0
imul rcx, rax, 0x70
lea rdx, [rax - 1]
mov rcx, qword [r12 + rcx + 0x3c0]
test byte [rcx + 0x38], 4
je 0x1401e2deb
cdqe
imul rax, rax, 0x70
mov edx, dword [r12 + rax + 0x370]
jmp 0x1401e2df5
mov rax, rdx
jmp 0x1401e2dbf
mov edx, dword [r12 + 0x34]
mov rcx, qword [rsp + 0x58]
call sym.sqlite3VdbeGoto
mov rcx, r12
call sym.sqlite3WhereEnd
mov rcx, qword [rbx + 0x10]
mov rdx, rsi
call sym.finalizeAggFunctions.isra.0
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 0x1401e2e9e
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov esi, 1
jmp 0x1401e2f18
xor eax, eax
mov qword [rsp + 0x70], rax
cmp byte [rsp + 0xfd], 3
jne 0x1401e2ec0
lea r9, str.DISTINCT
xor edx, edx
mov rcx, rbx
lea r8, str.USE_TEMP_B_TREE_FOR__s
call sym.sqlite3VdbeExplain
cmp qword [rsp + 0x108], 0
je 0x1401e2ef3
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]
xor esi, esi
mov rcx, qword [rsp + 0x58]
call sym.sqlite3VdbeResolveLabel
cmp dword [rbx + 0x30], 0
mov rax, qword [rsp + 0x70]
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 0x1401e2f88
mov r9d, esi
mov r8d, edi
mov rdx, rbp
mov rcx, rbx
call sym.flattenSubquery
test eax, eax
je 0x1401e2f53
cmp dword [rbx + 0x30], 0
jne 0x1401dfd29
or edi, 0xffffffff
mov rax, qword [rsp + 0x68]
mov r13, qword [rbp + 0x28]
cmp byte [rax + 0x67], 0
jne 0x1401dfd29
mov rax, qword [rsp + 0x210]
cmp byte [rax], 8
jbe 0x1401e026e
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x108], rax
jmp 0x1401e026e
mov eax, esi
add rsp, 0x1b8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret