	.file	"528414.c"
	.intel_syntax noprefix
	.text
	.globl	BMS
	.bss
	.align 4
	.type	BMS, @object
	.size	BMS, 4
BMS:
	.zero	4
	.globl	KEYINFO_ORDER_BIGNULL
	.align 4
	.type	KEYINFO_ORDER_BIGNULL, @object
	.size	KEYINFO_ORDER_BIGNULL, 4
KEYINFO_ORDER_BIGNULL:
	.zero	4
	.globl	KEYINFO_ORDER_DESC
	.align 4
	.type	KEYINFO_ORDER_DESC, @object
	.size	KEYINFO_ORDER_DESC, 4
KEYINFO_ORDER_DESC:
	.zero	4
	.globl	SQLITE_OrderByIdxJoin
	.align 4
	.type	SQLITE_OrderByIdxJoin, @object
	.size	SQLITE_OrderByIdxJoin, 4
SQLITE_OrderByIdxJoin:
	.zero	4
	.globl	TK_COLUMN
	.align 8
	.type	TK_COLUMN, @object
	.size	TK_COLUMN, 8
TK_COLUMN:
	.zero	8
	.globl	TK_IS
	.align 8
	.type	TK_IS, @object
	.size	TK_IS, 8
TK_IS:
	.zero	8
	.globl	WHERE_BIGNULL_SORT
	.align 4
	.type	WHERE_BIGNULL_SORT, @object
	.size	WHERE_BIGNULL_SORT, 4
WHERE_BIGNULL_SORT:
	.zero	4
	.globl	WHERE_DISTINCTBY
	.align 4
	.type	WHERE_DISTINCTBY, @object
	.size	WHERE_DISTINCTBY, 4
WHERE_DISTINCTBY:
	.zero	4
	.globl	WHERE_GROUPBY
	.align 4
	.type	WHERE_GROUPBY, @object
	.size	WHERE_GROUPBY, 4
WHERE_GROUPBY:
	.zero	4
	.globl	WHERE_IPK
	.align 4
	.type	WHERE_IPK, @object
	.size	WHERE_IPK, 4
WHERE_IPK:
	.zero	4
	.globl	WHERE_ONEROW
	.align 4
	.type	WHERE_ONEROW, @object
	.size	WHERE_ONEROW, 4
WHERE_ONEROW:
	.zero	4
	.globl	WHERE_ORDERBY_LIMIT
	.align 4
	.type	WHERE_ORDERBY_LIMIT, @object
	.size	WHERE_ORDERBY_LIMIT, 4
WHERE_ORDERBY_LIMIT:
	.zero	4
	.globl	WHERE_SKIPSCAN
	.align 4
	.type	WHERE_SKIPSCAN, @object
	.size	WHERE_SKIPSCAN, 4
WHERE_SKIPSCAN:
	.zero	4
	.globl	WHERE_VIRTUALTABLE
	.align 4
	.type	WHERE_VIRTUALTABLE, @object
	.size	WHERE_VIRTUALTABLE, 4
WHERE_VIRTUALTABLE:
	.zero	4
	.globl	WO_EQ
	.align 4
	.type	WO_EQ, @object
	.size	WO_EQ, 4
WO_EQ:
	.zero	4
	.globl	WO_IN
	.align 4
	.type	WO_IN, @object
	.size	WO_IN, 4
WO_IN:
	.zero	4
	.globl	WO_IS
	.align 4
	.type	WO_IS, @object
	.size	WO_IS, 4
WO_IS:
	.zero	4
	.globl	WO_ISNULL
	.align 4
	.type	WO_ISNULL, @object
	.size	WO_ISNULL, 4
WO_ISNULL:
	.zero	4
	.globl	XN_ROWID
	.align 4
	.type	XN_ROWID, @object
	.size	XN_ROWID, 4
XN_ROWID:
	.zero	4
	.text
	.type	wherePathSatisfiesOrderBy, @function
wherePathSatisfiesOrderBy:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 224
	mov	QWORD PTR -184[rbp], rdi
	mov	QWORD PTR -192[rbp], rsi
	mov	QWORD PTR -200[rbp], rdx
	mov	DWORD PTR -204[rbp], ecx
	mov	DWORD PTR -208[rbp], r8d
	mov	QWORD PTR -216[rbp], r9
	mov	QWORD PTR -72[rbp], 0
	mov	rax, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -56[rbp], rax
	mov	DWORD PTR -112[rbp], 0
	cmp	QWORD PTR -192[rbp], 0
	setne	al
	movzx	eax, al
	mov	edi, eax
	call	assert@PLT
	cmp	DWORD PTR -208[rbp], 0
	je	.L2
	mov	edx, DWORD PTR SQLITE_OrderByIdxJoin[rip]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	OptimizationDisabled@PLT
	test	rax, rax
	je	.L2
	mov	eax, 0
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -192[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -96[rbp], eax
	mov	eax, DWORD PTR BMS[rip]
	sub	eax, 1
	cmp	DWORD PTR -96[rbp], eax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	testcase@PLT
	mov	eax, DWORD PTR BMS[rip]
	cmp	DWORD PTR -96[rbp], eax
	jl	.L4
	mov	eax, 0
	jmp	.L3
.L4:
	mov	DWORD PTR -152[rbp], 1
	mov	eax, DWORD PTR -96[rbp]
	mov	edi, eax
	call	MASKBIT@PLT
	sub	eax, 1
	mov	DWORD PTR -92[rbp], eax
	mov	DWORD PTR -108[rbp], 0
	mov	DWORD PTR -104[rbp], 0
	mov	edx, DWORD PTR WO_EQ[rip]
	mov	eax, DWORD PTR WO_IS[rip]
	or	edx, eax
	mov	eax, DWORD PTR WO_ISNULL[rip]
	or	eax, edx
	mov	DWORD PTR -140[rbp], eax
	mov	eax, DWORD PTR WHERE_ORDERBY_LIMIT[rip]
	and	eax, DWORD PTR -204[rbp]
	test	eax, eax
	je	.L5
	mov	eax, DWORD PTR WO_IN[rip]
	or	DWORD PTR -140[rbp], eax
.L5:
	mov	DWORD PTR -128[rbp], 0
	jmp	.L6
.L83:
	cmp	DWORD PTR -128[rbp], 0
	jle	.L7
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	or	DWORD PTR -104[rbp], eax
.L7:
	mov	eax, DWORD PTR -128[rbp]
	cmp	eax, DWORD PTR -208[rbp]
	jge	.L8
	mov	rax, QWORD PTR -200[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -72[rbp], rax
	mov	eax, DWORD PTR WHERE_ORDERBY_LIMIT[rip]
	and	eax, DWORD PTR -204[rbp]
	test	eax, eax
	je	.L9
	jmp	.L10
.L8:
	mov	rax, QWORD PTR -216[rbp]
	mov	QWORD PTR -72[rbp], rax
.L9:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR WHERE_VIRTUALTABLE[rip]
	and	eax, edx
	test	eax, eax
	je	.L11
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	je	.L89
	mov	eax, DWORD PTR -92[rbp]
	mov	DWORD PTR -112[rbp], eax
	jmp	.L89
.L11:
	mov	eax, DWORD PTR WHERE_DISTINCTBY[rip]
	and	eax, DWORD PTR -204[rbp]
	test	eax, eax
	je	.L14
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 24[rax], 0
.L14:
	mov	rax, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 8[rax]
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -88[rbp], eax
	mov	DWORD PTR -124[rbp], 0
	jmp	.L15
.L27:
	mov	eax, DWORD PTR -124[rbp]
	mov	edi, eax
	call	MASKBIT@PLT
	and	eax, DWORD PTR -112[rbp]
	test	eax, eax
	jne	.L90
	mov	rax, QWORD PTR -192[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	sqlite3ExprSkipCollateAndLikely@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR TK_COLUMN[rip]
	cmp	rdx, rax
	jne	.L91
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -88[rbp], eax
	jne	.L92
	mov	eax, DWORD PTR -104[rbp]
	not	eax
	mov	ecx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -184[rbp]
	lea	rdi, 16[rax]
	mov	esi, DWORD PTR -140[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	r9d, 0
	mov	r8d, esi
	mov	esi, eax
	call	sqlite3WhereFindTerm@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L93
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR WO_IN[rip]
	cmp	edx, eax
	jne	.L21
	mov	eax, DWORD PTR WHERE_ORDERBY_LIMIT[rip]
	and	eax, DWORD PTR -204[rbp]
	mov	edi, eax
	call	assert@PLT
	mov	DWORD PTR -120[rbp], 0
	jmp	.L22
.L24:
	add	DWORD PTR -120[rbp], 1
.L22:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	DWORD PTR -120[rbp], eax
	jge	.L23
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -8[rbp], rax
	jne	.L24
.L23:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	DWORD PTR -120[rbp], eax
	jge	.L94
.L21:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	ecx, DWORD PTR WO_EQ[rip]
	mov	edx, DWORD PTR WO_IS[rip]
	or	edx, ecx
	and	eax, edx
	test	eax, eax
	je	.L25
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 12[rax]
	test	eax, eax
	js	.L25
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -192[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	sal	rax, 4
	add	rax, rcx
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rcx
	mov	rdi, rax
	call	sqlite3ExprCollSeqMatch@PLT
	test	rax, rax
	je	.L95
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR TK_IS[rip]
	cmp	rdx, rax
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	testcase@PLT
.L25:
	mov	eax, DWORD PTR -124[rbp]
	mov	edi, eax
	call	MASKBIT@PLT
	or	DWORD PTR -112[rbp], eax
	jmp	.L17
.L90:
	nop
	jmp	.L17
.L91:
	nop
	jmp	.L17
.L92:
	nop
	jmp	.L17
.L93:
	nop
	jmp	.L17
.L94:
	nop
	jmp	.L17
.L95:
	nop
.L17:
	add	DWORD PTR -124[rbp], 1
.L15:
	mov	eax, DWORD PTR -124[rbp]
	cmp	eax, DWORD PTR -96[rbp]
	jl	.L27
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR WHERE_ONEROW[rip]
	and	eax, edx
	test	eax, eax
	jne	.L28
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR WHERE_IPK[rip]
	and	eax, edx
	test	eax, eax
	je	.L29
	mov	QWORD PTR -64[rbp], 0
	mov	DWORD PTR -136[rbp], 0
	mov	DWORD PTR -132[rbp], 1
	jmp	.L30
.L29:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	je	.L31
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 48[rax]
	test	rax, rax
	je	.L32
.L31:
	mov	eax, 0
	jmp	.L3
.L32:
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -136[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -132[rbp], eax
	mov	eax, DWORD PTR -136[rbp]
	add	eax, 1
	cmp	DWORD PTR -132[rbp], eax
	je	.L33
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rdi, rax
	call	HasRowid@PLT
	test	eax, eax
	jne	.L34
.L33:
	mov	eax, 1
	jmp	.L35
.L34:
	mov	eax, 0
.L35:
	mov	edi, eax
	call	assert@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	sal	rax, 2
	sub	rax, 4
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR XN_ROWID[rip]
	cmp	edx, eax
	je	.L36
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rdi, rax
	call	HasRowid@PLT
	test	eax, eax
	jne	.L37
.L36:
	mov	eax, 1
	jmp	.L38
.L37:
	mov	eax, 0
.L38:
	mov	edi, eax
	call	assert@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	IsUniqueIndex@PLT
	test	rax, rax
	je	.L39
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR WHERE_SKIPSCAN[rip]
	and	eax, edx
	test	eax, eax
	jne	.L39
	mov	eax, 1
	jmp	.L40
.L39:
	mov	eax, 0
.L40:
	mov	DWORD PTR -152[rbp], eax
.L30:
	mov	DWORD PTR -164[rbp], 0
	mov	eax, DWORD PTR -164[rbp]
	mov	DWORD PTR -160[rbp], eax
	mov	DWORD PTR -148[rbp], 0
	mov	DWORD PTR -120[rbp], 0
	jmp	.L41
.L77:
	mov	DWORD PTR -100[rbp], 1
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 28[rax]
	cmp	DWORD PTR -120[rbp], eax
	jge	.L42
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	setne	dl
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 20[rax]
	cmp	DWORD PTR -120[rbp], eax
	setl	al
	xor	eax, edx
	test	al, al
	je	.L43
.L42:
	mov	eax, 1
	jmp	.L44
.L43:
	mov	eax, 0
.L44:
	mov	edi, eax
	call	assert@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 28[rax]
	cmp	DWORD PTR -120[rbp], eax
	jge	.L45
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 20[rax]
	cmp	DWORD PTR -120[rbp], eax
	jl	.L45
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	and	eax, DWORD PTR -140[rbp]
	test	eax, eax
	je	.L46
	mov	edx, DWORD PTR WO_ISNULL[rip]
	mov	eax, DWORD PTR WO_IS[rip]
	or	eax, edx
	and	eax, DWORD PTR -84[rbp]
	test	eax, eax
	je	.L96
	mov	eax, DWORD PTR WO_ISNULL[rip]
	and	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	testcase@PLT
	mov	eax, DWORD PTR WO_IS[rip]
	and	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	testcase@PLT
	mov	eax, DWORD PTR -152[rbp]
	mov	edi, eax
	call	testcase@PLT
	mov	DWORD PTR -152[rbp], 0
	jmp	.L96
.L46:
	mov	eax, DWORD PTR WO_IN[rip]
	and	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	ALWAYS@PLT
	test	rax, rax
	je	.L45
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -48[rbp], rax
	mov	eax, DWORD PTR -120[rbp]
	add	eax, 1
	mov	DWORD PTR -124[rbp], eax
	jmp	.L49
.L51:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	cmp	QWORD PTR -48[rbp], rax
	jne	.L50
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 48[rax]
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR WO_IN[rip]
	and	eax, edx
	mov	edi, eax
	call	assert@PLT
	mov	DWORD PTR -100[rbp], 0
	jmp	.L45
.L50:
	add	DWORD PTR -124[rbp], 1
.L49:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 28[rax]
	cmp	DWORD PTR -124[rbp], eax
	jl	.L51
.L45:
	cmp	QWORD PTR -64[rbp], 0
	je	.L52
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -116[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR KEYINFO_ORDER_DESC[rip]
	and	eax, edx
	mov	DWORD PTR -156[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -116[rbp], eax
	jne	.L53
	mov	eax, DWORD PTR XN_ROWID[rip]
	mov	DWORD PTR -116[rbp], eax
	jmp	.L53
.L52:
	mov	eax, DWORD PTR XN_ROWID[rip]
	mov	DWORD PTR -116[rbp], eax
	mov	DWORD PTR -156[rbp], 0
.L53:
	cmp	DWORD PTR -152[rbp], 0
	je	.L54
	cmp	DWORD PTR -116[rbp], 0
	js	.L54
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 28[rax]
	cmp	DWORD PTR -120[rbp], eax
	jl	.L54
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L54
	mov	DWORD PTR -152[rbp], 0
.L54:
	mov	DWORD PTR -144[rbp], 0
	mov	DWORD PTR -124[rbp], 0
	jmp	.L55
.L66:
	mov	eax, DWORD PTR -124[rbp]
	mov	edi, eax
	call	MASKBIT@PLT
	and	eax, DWORD PTR -112[rbp]
	test	eax, eax
	jne	.L97
	mov	rax, QWORD PTR -192[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	sqlite3ExprSkipCollateAndLikely@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR WHERE_GROUPBY[rip]
	and	eax, DWORD PTR -204[rbp]
	mov	edi, eax
	call	testcase@PLT
	mov	eax, DWORD PTR WHERE_DISTINCTBY[rip]
	and	eax, DWORD PTR -204[rbp]
	mov	edi, eax
	call	testcase@PLT
	mov	edx, DWORD PTR WHERE_GROUPBY[rip]
	mov	eax, DWORD PTR WHERE_DISTINCTBY[rip]
	or	eax, edx
	and	eax, DWORD PTR -204[rbp]
	test	eax, eax
	jne	.L58
	mov	DWORD PTR -100[rbp], 0
.L58:
	mov	eax, DWORD PTR XN_ROWID[rip]
	cmp	DWORD PTR -116[rbp], eax
	jl	.L59
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR TK_COLUMN[rip]
	cmp	rdx, rax
	jne	.L98
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -88[rbp], eax
	jne	.L99
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	DWORD PTR -116[rbp], eax
	je	.L62
	jmp	.L57
.L59:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -32[rbp], rax
	mov	edx, DWORD PTR -88[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	sqlite3ExprCompareSkip@PLT
	test	rax, rax
	jne	.L100
.L62:
	mov	eax, DWORD PTR XN_ROWID[rip]
	cmp	DWORD PTR -116[rbp], eax
	je	.L63
	mov	rax, QWORD PTR -192[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	sqlite3ExprNNCollSeq@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -120[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, edx
	mov	edi, eax
	call	sqlite3StrICmp@PLT
	test	rax, rax
	jne	.L101
.L63:
	mov	eax, DWORD PTR WHERE_DISTINCTBY[rip]
	and	eax, DWORD PTR -204[rbp]
	test	eax, eax
	je	.L64
	mov	eax, DWORD PTR -120[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 24[rax], edx
.L64:
	mov	DWORD PTR -144[rbp], 1
	jmp	.L65
.L97:
	nop
	jmp	.L57
.L98:
	nop
	jmp	.L57
.L99:
	nop
	jmp	.L57
.L100:
	nop
	jmp	.L57
.L101:
	nop
.L57:
	add	DWORD PTR -124[rbp], 1
.L55:
	cmp	DWORD PTR -100[rbp], 0
	je	.L65
	mov	eax, DWORD PTR -124[rbp]
	cmp	eax, DWORD PTR -96[rbp]
	jl	.L66
.L65:
	cmp	DWORD PTR -144[rbp], 0
	je	.L67
	mov	eax, DWORD PTR WHERE_GROUPBY[rip]
	and	eax, DWORD PTR -204[rbp]
	test	eax, eax
	jne	.L67
	cmp	DWORD PTR -164[rbp], 0
	je	.L68
	mov	eax, DWORD PTR -160[rbp]
	xor	eax, DWORD PTR -156[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -192[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	sal	rax, 4
	add	rax, rcx
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR KEYINFO_ORDER_DESC[rip]
	and	eax, ecx
	cmp	edx, eax
	je	.L67
	mov	DWORD PTR -144[rbp], 0
	jmp	.L67
.L68:
	mov	rax, QWORD PTR -192[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR KEYINFO_ORDER_DESC[rip]
	and	eax, edx
	xor	eax, DWORD PTR -156[rbp]
	mov	DWORD PTR -160[rbp], eax
	cmp	DWORD PTR -160[rbp], 0
	je	.L69
	mov	eax, DWORD PTR -128[rbp]
	mov	edi, eax
	call	MASKBIT@PLT
	mov	edx, eax
	mov	rax, QWORD PTR 16[rbp]
	mov	eax, DWORD PTR [rax]
	or	edx, eax
	mov	rax, QWORD PTR 16[rbp]
	mov	DWORD PTR [rax], edx
.L69:
	mov	DWORD PTR -164[rbp], 1
.L67:
	cmp	DWORD PTR -144[rbp], 0
	je	.L70
	mov	rax, QWORD PTR -192[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR KEYINFO_ORDER_BIGNULL[rip]
	and	eax, edx
	test	eax, eax
	je	.L70
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 28[rax]
	cmp	DWORD PTR -120[rbp], eax
	jne	.L71
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR WHERE_BIGNULL_SORT[rip]
	or	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 4[rax], edx
	jmp	.L70
.L71:
	mov	DWORD PTR -144[rbp], 0
.L70:
	cmp	DWORD PTR -144[rbp], 0
	je	.L72
	mov	eax, DWORD PTR XN_ROWID[rip]
	cmp	DWORD PTR -116[rbp], eax
	jne	.L73
	cmp	DWORD PTR -148[rbp], 0
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	testcase@PLT
	mov	DWORD PTR -148[rbp], 1
.L73:
	mov	eax, DWORD PTR -124[rbp]
	mov	edi, eax
	call	MASKBIT@PLT
	or	DWORD PTR -112[rbp], eax
	jmp	.L48
.L72:
	cmp	DWORD PTR -120[rbp], 0
	je	.L74
	mov	eax, DWORD PTR -120[rbp]
	cmp	eax, DWORD PTR -136[rbp]
	jge	.L102
.L74:
	cmp	DWORD PTR -152[rbp], 0
	setne	al
	movzx	eax, al
	mov	edi, eax
	call	testcase@PLT
	mov	DWORD PTR -152[rbp], 0
	jmp	.L102
.L96:
	nop
.L48:
	add	DWORD PTR -120[rbp], 1
.L41:
	mov	eax, DWORD PTR -120[rbp]
	cmp	eax, DWORD PTR -132[rbp]
	jl	.L77
	jmp	.L76
.L102:
	nop
.L76:
	cmp	DWORD PTR -148[rbp], 0
	je	.L28
	cmp	DWORD PTR -152[rbp], 0
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	testcase@PLT
	mov	DWORD PTR -152[rbp], 1
.L28:
	cmp	DWORD PTR -152[rbp], 0
	je	.L10
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	or	DWORD PTR -108[rbp], eax
	mov	DWORD PTR -124[rbp], 0
	jmp	.L78
.L82:
	mov	eax, DWORD PTR -124[rbp]
	mov	edi, eax
	call	MASKBIT@PLT
	and	eax, DWORD PTR -112[rbp]
	test	eax, eax
	jne	.L103
	mov	rax, QWORD PTR -192[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sqlite3WhereExprUsage@PLT
	mov	DWORD PTR -80[rbp], eax
	cmp	DWORD PTR -80[rbp], 0
	jne	.L81
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	sqlite3ExprIsConstant@PLT
	test	eax, eax
	je	.L104
.L81:
	mov	eax, DWORD PTR -108[rbp]
	not	eax
	and	eax, DWORD PTR -80[rbp]
	test	eax, eax
	jne	.L80
	mov	eax, DWORD PTR -124[rbp]
	mov	edi, eax
	call	MASKBIT@PLT
	or	DWORD PTR -112[rbp], eax
	jmp	.L80
.L103:
	nop
	jmp	.L80
.L104:
	nop
.L80:
	add	DWORD PTR -124[rbp], 1
.L78:
	mov	eax, DWORD PTR -124[rbp]
	cmp	eax, DWORD PTR -96[rbp]
	jl	.L82
.L10:
	add	DWORD PTR -128[rbp], 1
.L6:
	cmp	DWORD PTR -152[rbp], 0
	je	.L13
	mov	eax, DWORD PTR -112[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jge	.L13
	mov	eax, DWORD PTR -128[rbp]
	cmp	eax, DWORD PTR -208[rbp]
	jle	.L83
	jmp	.L13
.L89:
	nop
.L13:
	mov	eax, DWORD PTR -112[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jne	.L84
	mov	eax, DWORD PTR -96[rbp]
	jmp	.L3
.L84:
	cmp	DWORD PTR -152[rbp], 0
	jne	.L85
	mov	eax, DWORD PTR -96[rbp]
	sub	eax, 1
	mov	DWORD PTR -124[rbp], eax
	jmp	.L86
.L88:
	mov	eax, DWORD PTR -124[rbp]
	mov	edi, eax
	call	MASKBIT@PLT
	sub	eax, 1
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -112[rbp]
	and	eax, DWORD PTR -76[rbp]
	cmp	DWORD PTR -76[rbp], eax
	jne	.L87
	mov	eax, DWORD PTR -124[rbp]
	jmp	.L3
.L87:
	sub	DWORD PTR -124[rbp], 1
.L86:
	cmp	DWORD PTR -124[rbp], 0
	jg	.L88
	mov	eax, 0
	jmp	.L3
.L85:
	mov	eax, -1
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	wherePathSatisfiesOrderBy, .-wherePathSatisfiesOrderBy
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"528414.c"
	.text
	.comm	BMS,4,4
	.comm	KEYINFO_ORDER_BIGNULL,4,4
	.comm	KEYINFO_ORDER_DESC,4,4
	.comm	SQLITE_OrderByIdxJoin,4,4
	.comm	TK_COLUMN,4,4
	.comm	TK_IS,4,4
	.comm	WHERE_BIGNULL_SORT,4,4
	.comm	WHERE_DISTINCTBY,4,4
	.comm	WHERE_GROUPBY,4,4
	.comm	WHERE_IPK,4,4
	.comm	WHERE_ONEROW,4,4
	.comm	WHERE_ORDERBY_LIMIT,4,4
	.comm	WHERE_SKIPSCAN,4,4
	.comm	WHERE_VIRTUALTABLE,4,4
	.comm	WO_EQ,4,4
	.comm	WO_IN,4,4
	.comm	WO_IS,4,4
	.comm	WO_ISNULL,4,4
	.comm	XN_ROWID,4,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wherePathSatisfiesOrderBy, %function
wherePathSatisfiesOrderBy:
	@ args = 12, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	str	r2, [fp, #-144]
	str	r3, [fp, #-148]
	mov	r3, #0
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #4]
	ldr	r3, [r3]
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	assert
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L105
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	OptimizationDisabled
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	mov	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-140]
	ldr	r3, [r3]
	str	r3, [fp, #-52]
	ldr	r3, .L105+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	testcase
	ldr	r3, .L105+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L4
	mov	r3, #0
	b	.L3
.L4:
	mov	r3, #1
	str	r3, [fp, #-120]
	ldr	r0, [fp, #-52]
	bl	MASKBIT
	mov	r3, r0
	sub	r3, r3, #1
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-64]
	ldr	r3, .L105+8
	ldr	r2, [r3]
	ldr	r3, .L105+12
	ldr	r3, [r3]
	orr	r2, r2, r3
	ldr	r3, .L105+16
	ldr	r3, [r3]
	orr	r3, r2, r3
	str	r3, [fp, #-108]
	ldr	r3, .L105+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-148]
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L105+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-108]
	orr	r3, r2, r3
	str	r3, [fp, #-108]
.L5:
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L6
.L83:
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	ble	.L7
	ldr	r3, [fp, #-80]
	ldr	r3, [r3]
	ldr	r2, [fp, #-64]
	orr	r3, r2, r3
	str	r3, [fp, #-64]
.L7:
	ldr	r2, [fp, #-96]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	bge	.L8
	ldr	r3, [fp, #-144]
	ldr	r2, [r3]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-80]
	ldr	r3, .L105+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-148]
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L9
	b	.L10
.L8:
	ldr	r3, [fp, #8]
	str	r3, [fp, #-80]
.L9:
	ldr	r3, [fp, #-80]
	ldr	r2, [r3, #4]
	ldr	r3, .L105+28
	ldr	r3, [r3]
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #32]
	cmp	r3, #0
	beq	.L89
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-72]
	b	.L89
.L11:
	ldr	r3, .L105+32
	ldr	r2, [r3]
	ldr	r3, [fp, #-148]
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-80]
	mov	r2, #0
	str	r2, [r3, #20]
.L14:
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L15
.L27:
	ldr	r0, [fp, #-92]
	bl	MASKBIT
	mov	r2, r0
	ldr	r3, [fp, #-72]
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L90
	ldr	r3, [fp, #-140]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	sqlite3ExprSkipCollateAndLikely
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3]
	ldr	r3, .L105+36
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L91
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	bne	.L92
	ldr	r3, [fp, #-136]
	add	r0, r3, #8
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-64]
	mvn	r1, r3
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-108]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, [fp, #-44]
	bl	sqlite3WhereFindTerm
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L93
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, .L105+24
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L21
	ldr	r3, .L105+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-148]
	and	r3, r3, r2
	mov	r0, r3
	bl	assert
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L22
.L24:
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L22:
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-88]
	cmp	r2, r3
	bge	.L23
	ldr	r3, [fp, #-80]
	ldr	r2, [r3, #36]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L24
.L23:
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-88]
	cmp	r2, r3
	bge	.L94
.L21:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, .L105+8
	ldr	r1, [r3]
	ldr	r3, .L105+12
	ldr	r3, [r3]
	orr	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	blt	.L25
	ldr	r3, [fp, #-136]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-140]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	mov	r2, r3
	bl	sqlite3ExprCollSeqMatch
	mov	r3, r0
	cmp	r3, #0
	beq	.L95
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	ldr	r2, [r3]
	ldr	r3, .L105+40
	ldr	r3, [r3]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	testcase
.L25:
	ldr	r0, [fp, #-92]
	bl	MASKBIT
	mov	r2, r0
	ldr	r3, [fp, #-72]
	orr	r3, r3, r2
	str	r3, [fp, #-72]
	b	.L17
.L90:
	nop
	b	.L17
.L91:
	nop
	b	.L17
.L92:
	nop
	b	.L17
.L93:
	nop
	b	.L17
.L94:
	nop
	b	.L17
.L95:
	nop
.L17:
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L15:
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	blt	.L27
	ldr	r3, [fp, #-80]
	ldr	r2, [r3, #4]
	ldr	r3, .L105+44
	ldr	r3, [r3]
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L28
	ldr	r3, [fp, #-80]
	ldr	r2, [r3, #4]
	ldr	r3, .L105+48
	ldr	r3, [r3]
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L29
	mov	r3, #0
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-104]
	mov	r3, #1
	str	r3, [fp, #-100]
	b	.L30
.L29:
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-76]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	beq	.L32
.L31:
	mov	r3, #0
	b	.L3
.L32:
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-76]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	ldr	r2, [fp, #-100]
	cmp	r2, r3
	beq	.L33
	ldr	r3, [fp, #-76]
	ldr	r3, [r3, #24]
	mov	r0, r3
	bl	HasRowid
	mov	r3, r0
	cmp	r3, #0
	bne	.L34
.L33:
	mov	r3, #1
	b	.L35
.L34:
	mov	r3, #0
.L35:
	mov	r0, r3
	bl	assert
	ldr	r3, [fp, #-76]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-100]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L105+52
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L36
	ldr	r3, [fp, #-76]
	ldr	r3, [r3, #24]
	mov	r0, r3
	bl	HasRowid
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
.L36:
	mov	r3, #1
	b	.L38
.L37:
	mov	r3, #0
.L38:
	mov	r0, r3
	bl	assert
	ldr	r0, [fp, #-76]
	bl	IsUniqueIndex
	mov	r3, r0
	cmp	r3, #0
	beq	.L39
	ldr	r3, [fp, #-80]
	ldr	r2, [r3, #4]
	ldr	r3, .L105+56
	ldr	r3, [r3]
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L39
	mov	r3, #1
	b	.L40
.L39:
	mov	r3, #0
.L40:
	str	r3, [fp, #-120]
.L30:
	mov	r3, #0
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-132]
	str	r3, [fp, #-128]
	mov	r3, #0
	str	r3, [fp, #-116]
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L41
.L77:
	mov	r3, #1
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #24]
	ldr	r2, [fp, #-88]
	cmp	r2, r3
	bge	.L42
	ldr	r3, [fp, #-80]
	ldr	r2, [r3, #36]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r2, r3, #255
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #16]
	ldr	r1, [fp, #-88]
	cmp	r1, r3
	movlt	r3, #1
	movge	r3, #0
	and	r3, r3, #255
	eor	r3, r3, r2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L43
.L42:
	mov	r3, #1
	b	.L44
.L43:
	mov	r3, #0
.L44:
	mov	r0, r3
	bl	assert
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #24]
	ldr	r2, [fp, #-88]
	cmp	r2, r3
	bge	.L45
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-88]
	cmp	r2, r3
	blt	.L45
	ldr	r3, [fp, #-80]
	ldr	r2, [r3, #36]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-108]
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L46
	ldr	r3, .L105+16
	ldr	r2, [r3]
	ldr	r3, .L105+12
	ldr	r3, [r3]
	orr	r2, r2, r3
	ldr	r3, [fp, #-40]
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L96
	ldr	r3, .L105+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	and	r3, r3, r2
	mov	r0, r3
	bl	testcase
	ldr	r3, .L105+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	and	r3, r3, r2
	mov	r0, r3
	bl	testcase
	ldr	r0, [fp, #-120]
	bl	testcase
	mov	r3, #0
	str	r3, [fp, #-120]
	b	.L96
.L46:
	ldr	r3, .L105+24
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	and	r3, r3, r2
	mov	r0, r3
	bl	ALWAYS
	mov	r3, r0
	cmp	r3, #0
	beq	.L45
	ldr	r3, [fp, #-80]
	ldr	r2, [r3, #36]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-92]
	b	.L49
.L51:
	ldr	r3, [fp, #-80]
	ldr	r2, [r3, #36]
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bne	.L50
	ldr	r3, [fp, #-80]
	ldr	r2, [r3, #36]
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, .L105+24
	ldr	r3, [r3]
	and	r3, r3, r2
	mov	r0, r3
	bl	assert
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L45
.L50:
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L49:
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #24]
	ldr	r2, [fp, #-92]
	cmp	r2, r3
	blt	.L51
.L45:
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L52
	ldr	r3, [fp, #-76]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-76]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L105+60
	ldr	r3, [r3]
	and	r3, r3, r2
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-76]
	ldr	r3, [r3, #24]
	ldr	r3, [r3]
	ldr	r2, [fp, #-84]
	cmp	r2, r3
	bne	.L53
	ldr	r3, .L105+52
	ldr	r3, [r3]
	str	r3, [fp, #-84]
	b	.L53
.L52:
	ldr	r3, .L105+52
	ldr	r3, [r3]
	str	r3, [fp, #-84]
	mov	r3, #0
	str	r3, [fp, #-124]
.L53:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	beq	.L54
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	blt	.L54
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #24]
	ldr	r2, [fp, #-88]
	cmp	r2, r3
	blt	.L54
	ldr	r3, [fp, #-76]
	ldr	r3, [r3, #24]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L54
	mov	r3, #0
	str	r3, [fp, #-120]
.L54:
	mov	r3, #0
	str	r3, [fp, #-112]
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L55
.L66:
	ldr	r0, [fp, #-92]
	bl	MASKBIT
	mov	r2, r0
	ldr	r3, [fp, #-72]
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L97
	ldr	r3, [fp, #-140]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	sqlite3ExprSkipCollateAndLikely
	str	r0, [fp, #-32]
	ldr	r3, .L105+64
	ldr	r2, [r3]
	ldr	r3, [fp, #-148]
	and	r3, r3, r2
	mov	r0, r3
	bl	testcase
	ldr	r3, .L105+32
	ldr	r2, [r3]
	ldr	r3, [fp, #-148]
	and	r3, r3, r2
	mov	r0, r3
	bl	testcase
	ldr	r3, .L105+64
	ldr	r2, [r3]
	ldr	r3, .L105+32
	ldr	r3, [r3]
	orr	r2, r2, r3
	ldr	r3, [fp, #-148]
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L58
	mov	r3, #0
	str	r3, [fp, #-60]
.L58:
	ldr	r3, .L105+52
	ldr	r3, [r3]
	ldr	r2, [fp, #-84]
	cmp	r2, r3
	blt	.L59
	ldr	r3, [fp, #-32]
	ldr	r2, [r3]
	ldr	r3, .L105+36
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L98
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	bne	.L99
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-84]
	cmp	r2, r3
	beq	.L62
	b	.L57
.L59:
	ldr	r3, [fp, #-76]
	ldr	r3, [r3, #20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	sqlite3ExprCompareSkip
	mov	r3, r0
	cmp	r3, #0
	bne	.L100
.L62:
	ldr	r3, .L105+52
	ldr	r3, [r3]
	ldr	r2, [fp, #-84]
	cmp	r2, r3
	beq	.L63
	ldr	r3, [fp, #-136]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-140]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r1, r3
	bl	sqlite3ExprNNCollSeq
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r0, [r3]
	ldr	r3, [fp, #-76]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	bl	sqlite3StrICmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L101
.L63:
	ldr	r3, .L105+32
	ldr	r2, [r3]
	ldr	r3, [fp, #-148]
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L64
	ldr	r3, [fp, #-88]
	add	r2, r3, #1
	ldr	r3, [fp, #-80]
	str	r2, [r3, #20]
.L64:
	mov	r3, #1
	str	r3, [fp, #-112]
	b	.L65
.L97:
	nop
	b	.L57
.L98:
	nop
	b	.L57
.L99:
	nop
	b	.L57
.L100:
	nop
	b	.L57
.L101:
	nop
.L57:
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L55:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L65
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	blt	.L66
.L65:
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L67
	ldr	r3, .L105+64
	ldr	r2, [r3]
	ldr	r3, [fp, #-148]
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L67
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	beq	.L68
	ldr	r2, [fp, #-128]
	ldr	r3, [fp, #-124]
	eor	r2, r2, r3
	ldr	r3, [fp, #-140]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r1, [r3]
	ldr	r3, .L105+60
	ldr	r3, [r3]
	and	r3, r3, r1
	cmp	r2, r3
	beq	.L67
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L67
.L68:
	ldr	r3, [fp, #-140]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L105+60
	ldr	r3, [r3]
	and	r3, r3, r2
	ldr	r2, [fp, #-124]
	eor	r3, r3, r2
	str	r3, [fp, #-128]
	ldr	r3, [fp, #-128]
	cmp	r3, #0
	beq	.L69
	ldr	r0, [fp, #-96]
	bl	MASKBIT
	mov	r2, r0
	ldr	r3, [fp, #12]
	ldr	r3, [r3]
	orr	r2, r2, r3
	ldr	r3, [fp, #12]
	str	r2, [r3]
.L69:
	mov	r3, #1
	str	r3, [fp, #-132]
.L67:
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L70
	ldr	r3, [fp, #-140]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L105+68
	ldr	r3, [r3]
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L70
	ldr	r3, [fp, #-80]
	ldr	r3, [r3, #24]
	ldr	r2, [fp, #-88]
	cmp	r2, r3
	bne	.L71
	ldr	r3, [fp, #-80]
	ldr	r2, [r3, #4]
	ldr	r3, .L105+72
	ldr	r3, [r3]
	orr	r2, r2, r3
	ldr	r3, [fp, #-80]
	str	r2, [r3, #4]
	b	.L70
.L71:
	mov	r3, #0
	str	r3, [fp, #-112]
.L70:
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L72
	ldr	r3, .L105+52
	ldr	r3, [r3]
	ldr	r2, [fp, #-84]
	cmp	r2, r3
	bne	.L73
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	testcase
	mov	r3, #1
	str	r3, [fp, #-116]
.L73:
	ldr	r0, [fp, #-92]
	bl	MASKBIT
	mov	r2, r0
	ldr	r3, [fp, #-72]
	orr	r3, r3, r2
	str	r3, [fp, #-72]
	b	.L48
.L72:
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	beq	.L74
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-104]
	cmp	r2, r3
	bge	.L102
.L74:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	testcase
	mov	r3, #0
	str	r3, [fp, #-120]
	b	.L102
.L96:
	nop
.L48:
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L41:
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-100]
	cmp	r2, r3
	blt	.L77
	b	.L76
.L102:
	nop
.L76:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	beq	.L28
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	testcase
	mov	r3, #1
	str	r3, [fp, #-120]
.L28:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-80]
	ldr	r3, [r3]
	ldr	r2, [fp, #-68]
	orr	r3, r2, r3
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L78
.L82:
	ldr	r0, [fp, #-92]
	bl	MASKBIT
	mov	r2, r0
	ldr	r3, [fp, #-72]
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L103
	ldr	r3, [fp, #-140]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-136]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	sqlite3WhereExprUsage
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L81
	ldr	r0, [fp, #-20]
	bl	sqlite3ExprIsConstant
	mov	r3, r0
	cmp	r3, #0
	beq	.L104
.L81:
	ldr	r3, [fp, #-68]
	mvn	r2, r3
	ldr	r3, [fp, #-16]
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L80
	ldr	r0, [fp, #-92]
	bl	MASKBIT
	mov	r2, r0
	ldr	r3, [fp, #-72]
	orr	r3, r3, r2
	str	r3, [fp, #-72]
	b	.L80
.L103:
	nop
	b	.L80
.L104:
	nop
.L80:
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L78:
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	blt	.L82
.L10:
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L6:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	beq	.L13
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	bge	.L13
	ldr	r2, [fp, #-96]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	ble	.L83
	b	.L13
.L89:
	nop
.L13:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	bne	.L84
	ldr	r3, [fp, #-52]
	b	.L3
.L84:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bne	.L85
	ldr	r3, [fp, #-52]
	sub	r3, r3, #1
	str	r3, [fp, #-92]
	b	.L86
.L88:
	ldr	r0, [fp, #-92]
	bl	MASKBIT
	mov	r3, r0
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-8]
	and	r3, r3, r2
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L87
	ldr	r3, [fp, #-92]
	b	.L3
.L87:
	ldr	r3, [fp, #-92]
	sub	r3, r3, #1
	str	r3, [fp, #-92]
.L86:
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bgt	.L88
	mov	r3, #0
	b	.L3
.L85:
	mvn	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L106:
	.align	2
.L105:
	.word	SQLITE_OrderByIdxJoin
	.word	BMS
	.word	WO_EQ
	.word	WO_IS
	.word	WO_ISNULL
	.word	WHERE_ORDERBY_LIMIT
	.word	WO_IN
	.word	WHERE_VIRTUALTABLE
	.word	WHERE_DISTINCTBY
	.word	TK_COLUMN
	.word	TK_IS
	.word	WHERE_ONEROW
	.word	WHERE_IPK
	.word	XN_ROWID
	.word	WHERE_SKIPSCAN
	.word	KEYINFO_ORDER_DESC
	.word	WHERE_GROUPBY
	.word	KEYINFO_ORDER_BIGNULL
	.word	WHERE_BIGNULL_SORT
	.size	wherePathSatisfiesOrderBy, .-wherePathSatisfiesOrderBy
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
