	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wherePathSatisfiesOrderBy
_wherePathSatisfiesOrderBy:             ## @wherePathSatisfiesOrderBy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -224(%rbp)                 ## 8-byte Spill
	movl	%r8d, %r14d
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movq	%rdx, -208(%rbp)                ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, -144(%rbp)                ## 8-byte Spill
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	xorl	%edi, %edi
	testq	%rsi, %rsi
	setne	%dil
	callq	_assert
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movq	_SQLITE_OrderByIdxJoin@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_OptimizationDisabled
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jne	LBB0_125
LBB0_2:
	movl	(%rbx), %r13d
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	movq	_BMS@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	decl	%eax
	xorl	%edi, %edi
	cmpl	%eax, %r13d
	sete	%dil
	callq	_testcase
	xorl	%r12d, %r12d
	cmpl	(%r15), %r13d
	movq	-136(%rbp), %r15                ## 8-byte Reload
	jge	LBB0_125
## %bb.3:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edi
	callq	_MASKBIT
                                        ## kill: def $eax killed $eax def $rax
	movq	_WHERE_ORDERBY_LIMIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	-76(%rbp), %ecx                 ## 4-byte Folded Reload
	je	LBB0_5
## %bb.4:
	movq	_WO_IN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_5:
	leal	-1(%rax), %edx
	movl	%edx, -108(%rbp)                ## 4-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	$2, %eax
	jl	LBB0_124
## %bb.6:
	testl	%r14d, %r14d
	js	LBB0_124
## %bb.7:
	movq	_WO_IS@GOTPCREL(%rip), %rax
	movq	_WO_EQ@GOTPCREL(%rip), %rdx
	movl	(%rax), %eax
	orl	(%rdx), %eax
	movq	_WO_ISNULL@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	orl	%ecx, %eax
	movl	%eax, -148(%rbp)                ## 4-byte Spill
	movslq	-56(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -232(%rbp)                ## 8-byte Spill
	movq	-144(%rbp), %rax                ## 8-byte Reload
	addq	$16, %rax
	movq	%rax, -216(%rbp)                ## 8-byte Spill
	movl	%r14d, %eax
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	movl	$0, -124(%rbp)                  ## 4-byte Folded Spill
	movl	$0, -92(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
                                        ##       Child Loop BB0_26 Depth 3
                                        ##     Child Loop BB0_53 Depth 2
                                        ##       Child Loop BB0_66 Depth 3
                                        ##       Child Loop BB0_78 Depth 3
                                        ##     Child Loop BB0_117 Depth 2
	testq	%r13, %r13
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	-124(%rbp), %eax                ## 4-byte Reload
	orl	(%rdx), %eax
	movl	%eax, -124(%rbp)                ## 4-byte Spill
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-224(%rbp), %rdx                ## 8-byte Reload
	cmpq	-192(%rbp), %r13                ## 8-byte Folded Reload
	jae	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-208(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rdx
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	movq	_WHERE_ORDERBY_LIMIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_121
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	4(%rdx), %eax
	movq	_WHERE_VIRTUALTABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_123
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	_WHERE_DISTINCTBY@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$0, 24(%rdx)
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	movq	24(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	8(%rdx), %rdx
	movl	(%rcx,%rdx,4), %ecx
	movl	%ecx, -128(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	jle	LBB0_37
## %bb.16:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	-124(%rbp), %eax                ## 4-byte Reload
	notl	%eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_19 Depth=2
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_19 Depth=2
	incq	%rbx
	cmpq	%r14, %rbx
	je	LBB0_36
LBB0_19:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_26 Depth 3
	movl	%ebx, %edi
	callq	_MASKBIT
	testl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_18
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	8(%r15), %rax
	movq	%rbx, %r14
	shlq	$4, %r14
	movq	8(%rax,%r14), %rdi
	callq	_sqlite3ExprSkipCollateAndLikely
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	_TK_COLUMN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=2
	movl	-128(%rbp), %esi                ## 4-byte Reload
	cmpl	%esi, 8(%r12)
	jne	LBB0_17
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=2
	movl	12(%r12), %edx
	movq	-216(%rbp), %rdi                ## 8-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	-148(%rbp), %r8d                ## 4-byte Reload
	xorl	%r9d, %r9d
	callq	_sqlite3WhereFindTerm
	testq	%rax, %rax
	je	LBB0_35
## %bb.23:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	%rax, %r13
	movl	(%rax), %eax
	movq	_WO_IN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_30
## %bb.24:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	_WHERE_ORDERBY_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	-76(%rbp), %edi                 ## 4-byte Folded Reload
	callq	_assert
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	16(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_35
## %bb.25:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	48(%rcx), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_8 Depth=1
                                        ##     Parent Loop BB0_19 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	(%rcx,%rdx,8), %r13
	je	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=3
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_26
	jmp	LBB0_35
LBB0_29:                                ##   in Loop: Header=BB0_19 Depth=2
	movl	(%r13), %eax
LBB0_30:                                ##   in Loop: Header=BB0_19 Depth=2
	movq	_WO_IS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_WO_EQ@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	je	LBB0_34
## %bb.31:                              ##   in Loop: Header=BB0_19 Depth=2
	cmpl	$0, 12(%r12)
	js	LBB0_34
## %bb.32:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rdi
	movq	8(%r15), %rax
	movq	8(%rax,%r14), %rsi
	movq	8(%r13), %rdx
	callq	_sqlite3ExprCollSeqMatch
	testq	%rax, %rax
	je	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	8(%r13), %rax
	movq	(%rax), %rax
	xorl	%edi, %edi
	movq	_TK_IS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_testcase
LBB0_34:                                ##   in Loop: Header=BB0_19 Depth=2
	movl	%ebx, %edi
	callq	_MASKBIT
	orl	%eax, -44(%rbp)                 ## 4-byte Folded Spill
LBB0_35:                                ##   in Loop: Header=BB0_19 Depth=2
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-104(%rbp), %r13                ## 8-byte Reload
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	4(%rdx), %eax
	jmp	LBB0_38
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
LBB0_38:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_WHERE_ONEROW@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	-92(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_112
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_WHERE_IPK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movl	$1, %ecx
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	movl	$1, %ebx
	jmp	LBB0_52
LBB0_42:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	32(%rdx), %rdx
	xorl	%r12d, %r12d
	testq	%rdx, %rdx
	je	LBB0_125
## %bb.43:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$0, 48(%rdx)
	jne	LBB0_125
## %bb.44:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movl	(%rdx), %eax
	movl	4(%rdx), %ebx
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	leal	1(%rax), %ecx
	movb	$1, %al
	cmpl	%ecx, %ebx
	movq	%rdx, %r12
	je	LBB0_46
## %bb.45:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	40(%r12), %rdi
	callq	_HasRowid
	testl	%eax, %eax
	sete	%al
LBB0_46:                                ##   in Loop: Header=BB0_8 Depth=1
	movslq	%ebx, %r14
	movzbl	%al, %edi
	callq	_assert
	movq	8(%r12), %rax
	movl	-4(%rax,%r14,4), %eax
	movq	_XN_ROWID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movb	$1, %al
	je	LBB0_48
## %bb.47:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	40(%r12), %rdi
	callq	_HasRowid
	testl	%eax, %eax
	sete	%al
LBB0_48:                                ##   in Loop: Header=BB0_8 Depth=1
	movzbl	%al, %edi
	callq	_assert
	movq	%r12, %rdi
	callq	_IsUniqueIndex
	testq	%rax, %rax
	je	LBB0_50
## %bb.49:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_WHERE_SKIPSCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	testl	%eax, 4(%rdx)
	sete	%al
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_51
LBB0_50:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
LBB0_51:                                ##   in Loop: Header=BB0_8 Depth=1
	movzbl	%al, %ecx
	testl	%ebx, %ebx
	jle	LBB0_111
LBB0_52:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %eax
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	movl	$1, %eax
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	xorl	%r8d, %r8d
	movl	$0, -112(%rbp)                  ## 4-byte Folded Spill
	movl	$0, -120(%rbp)                  ## 4-byte Folded Spill
	movq	%r12, -168(%rbp)                ## 8-byte Spill
LBB0_53:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_66 Depth 3
                                        ##       Child Loop BB0_78 Depth 3
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movslq	28(%rdx), %rcx
	movb	$1, %r14b
	movb	$1, %al
	cmpq	%rcx, %r8
	jge	LBB0_55
## %bb.54:                              ##   in Loop: Header=BB0_53 Depth=2
	movq	48(%rdx), %rax
	cmpq	$0, (%rax,%r8,8)
	setne	%cl
	movslq	20(%rdx), %rax
	cmpq	%rax, %r8
	setl	%al
	xorb	%cl, %al
LBB0_55:                                ##   in Loop: Header=BB0_53 Depth=2
	movzbl	%al, %edi
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	callq	_assert
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movslq	28(%rdx), %rax
	cmpq	%rax, %r8
	jge	LBB0_57
## %bb.56:                              ##   in Loop: Header=BB0_53 Depth=2
	movslq	20(%rdx), %rax
	cmpq	%rax, %r8
	jge	LBB0_61
LBB0_57:                                ##   in Loop: Header=BB0_53 Depth=2
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	testq	%r12, %r12
	je	LBB0_72
LBB0_58:                                ##   in Loop: Header=BB0_53 Depth=2
	movq	8(%r12), %rax
	movl	(%rax,%r8,4), %ecx
	movq	40(%r12), %rax
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	cmpl	(%rax), %ecx
	jne	LBB0_60
## %bb.59:                              ##   in Loop: Header=BB0_53 Depth=2
	movq	_XN_ROWID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
LBB0_60:                                ##   in Loop: Header=BB0_53 Depth=2
	movq	16(%r12), %rax
	movq	_KEYINFO_ORDER_DESC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax,%r8,4), %ecx
	movl	%ecx, -116(%rbp)                ## 4-byte Spill
	testl	%esi, %esi
	jne	LBB0_73
	jmp	LBB0_76
LBB0_61:                                ##   in Loop: Header=BB0_53 Depth=2
	movq	48(%rdx), %rax
	movq	(%rax,%r8,8), %rax
	movl	(%rax), %ebx
	testl	%ebx, -148(%rbp)                ## 4-byte Folded Reload
	je	LBB0_64
## %bb.62:                              ##   in Loop: Header=BB0_53 Depth=2
	movq	_WO_ISNULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WO_IS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	orl	%edi, %eax
	testl	%ebx, %eax
	je	LBB0_70
## %bb.63:                              ##   in Loop: Header=BB0_53 Depth=2
	andl	%ebx, %edi
	callq	_testcase
	andl	(%r14), %ebx
	movl	%ebx, %edi
	callq	_testcase
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_testcase
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_104
LBB0_64:                                ##   in Loop: Header=BB0_53 Depth=2
	movq	_WO_IN@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ALWAYS
	testq	%rax, %rax
	je	LBB0_71
## %bb.65:                              ##   in Loop: Header=BB0_53 Depth=2
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	48(%rdx), %rax
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movq	(%rax,%r8,8), %rcx
	movq	8(%rcx), %rcx
	movslq	28(%rdx), %rdx
	movq	-176(%rbp), %rsi                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_66:                                ##   Parent Loop BB0_8 Depth=1
                                        ##     Parent Loop BB0_53 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	%rdx, %rsi
	jge	LBB0_69
## %bb.67:                              ##   in Loop: Header=BB0_66 Depth=3
	movq	(%rax,%rsi,8), %rbx
	incq	%rsi
	cmpq	%rcx, 8(%rbx)
	jne	LBB0_66
## %bb.68:                              ##   in Loop: Header=BB0_53 Depth=2
	movq	_WO_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%rbx), %edi
	callq	_assert
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	xorl	%r14d, %r14d
LBB0_69:                                ##   in Loop: Header=BB0_53 Depth=2
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_57
LBB0_70:                                ##   in Loop: Header=BB0_53 Depth=2
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_104
LBB0_71:                                ##   in Loop: Header=BB0_53 Depth=2
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	testq	%r12, %r12
	jne	LBB0_58
	.p2align	4, 0x90
LBB0_72:                                ##   in Loop: Header=BB0_53 Depth=2
	movq	_XN_ROWID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	$0, -116(%rbp)                  ## 4-byte Folded Spill
	testl	%esi, %esi
	je	LBB0_76
LBB0_73:                                ##   in Loop: Header=BB0_53 Depth=2
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	js	LBB0_76
## %bb.74:                              ##   in Loop: Header=BB0_53 Depth=2
	movslq	28(%rdx), %rax
	movl	$1, %esi
	cmpq	%rax, %r8
	jl	LBB0_76
## %bb.75:                              ##   in Loop: Header=BB0_53 Depth=2
	movq	40(%r12), %rax
	movq	8(%rax), %rax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	xorl	%esi, %esi
	cmpq	$0, (%rax,%rcx,8)
	setne	%sil
LBB0_76:                                ##   in Loop: Header=BB0_53 Depth=2
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	setg	%al
	andb	%al, %r14b
	cmpb	$1, %r14b
	jne	LBB0_105
## %bb.77:                              ##   in Loop: Header=BB0_53 Depth=2
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_78:                                ##   Parent Loop BB0_8 Depth=1
                                        ##     Parent Loop BB0_53 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%r14d, %edi
	callq	_MASKBIT
	movb	$1, %r13b
	testl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_88
## %bb.79:                              ##   in Loop: Header=BB0_78 Depth=3
	movq	8(%r15), %rax
	movq	8(%rax,%r12), %rdi
	callq	_sqlite3ExprSkipCollateAndLikely
	movq	%rax, %r15
	movq	_WHERE_GROUPBY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	andl	%ebx, %edi
	callq	_testcase
	movq	_WHERE_DISTINCTBY@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	andl	%ebx, %edi
	callq	_testcase
	movl	(%r13), %eax
	movq	_WHERE_GROUPBY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%ebx, %eax
	setne	%r13b
	movq	_XN_ROWID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, -60(%rbp)                 ## 4-byte Folded Reload
	jge	LBB0_82
## %bb.80:                              ##   in Loop: Header=BB0_78 Depth=3
	movq	-168(%rbp), %rax                ## 8-byte Reload
	movq	32(%rax), %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rsi
	movq	%r15, %rdi
	movl	-128(%rbp), %edx                ## 4-byte Reload
	callq	_sqlite3ExprCompareSkip
	testq	%rax, %rax
	jne	LBB0_87
## %bb.81:                              ##   in Loop: Header=BB0_78 Depth=3
	movq	_XN_ROWID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_85
LBB0_82:                                ##   in Loop: Header=BB0_78 Depth=3
	movq	(%r15), %rcx
	movq	_TK_COLUMN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_87
## %bb.83:                              ##   in Loop: Header=BB0_78 Depth=3
	movl	-128(%rbp), %ecx                ## 4-byte Reload
	cmpl	%ecx, 8(%r15)
	jne	LBB0_87
## %bb.84:                              ##   in Loop: Header=BB0_78 Depth=3
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, 12(%r15)
	jne	LBB0_87
LBB0_85:                                ##   in Loop: Header=BB0_78 Depth=3
	cmpl	%eax, -60(%rbp)                 ## 4-byte Folded Reload
	movq	-136(%rbp), %r15                ## 8-byte Reload
	je	LBB0_90
## %bb.86:                              ##   in Loop: Header=BB0_78 Depth=3
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rdi
	movq	8(%r15), %rax
	movq	8(%rax,%r12), %rsi
	callq	_sqlite3ExprNNCollSeq
	movl	(%rax), %edi
	movq	-168(%rbp), %rax                ## 8-byte Reload
	movq	24(%rax), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %esi
	callq	_sqlite3StrICmp
	testq	%rax, %rax
	jne	LBB0_88
	jmp	LBB0_90
	.p2align	4, 0x90
LBB0_87:                                ##   in Loop: Header=BB0_78 Depth=3
	movq	-136(%rbp), %r15                ## 8-byte Reload
LBB0_88:                                ##   in Loop: Header=BB0_78 Depth=3
	testb	%r13b, %r13b
	je	LBB0_105
## %bb.89:                              ##   in Loop: Header=BB0_78 Depth=3
	incq	%r14
	addq	$16, %r12
	cmpq	-232(%rbp), %r14                ## 8-byte Folded Reload
	jl	LBB0_78
	jmp	LBB0_105
LBB0_90:                                ##   in Loop: Header=BB0_53 Depth=2
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	movq	_WHERE_DISTINCTBY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_92
## %bb.91:                              ##   in Loop: Header=BB0_53 Depth=2
	incl	%eax
	movl	%eax, 24(%rcx)
LBB0_92:                                ##   in Loop: Header=BB0_53 Depth=2
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	movq	_WHERE_GROUPBY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_98
## %bb.93:                              ##   in Loop: Header=BB0_53 Depth=2
	cmpl	$0, -160(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_95
## %bb.94:                              ##   in Loop: Header=BB0_53 Depth=2
	movl	-116(%rbp), %edx                ## 4-byte Reload
	xorl	-112(%rbp), %edx                ## 4-byte Folded Reload
	movq	8(%r15), %rax
	movq	_KEYINFO_ORDER_DESC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax,%r12), %ecx
	movl	$1, %eax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	cmpl	%ecx, %edx
	je	LBB0_98
	jmp	LBB0_105
LBB0_95:                                ##   in Loop: Header=BB0_53 Depth=2
	movq	8(%r15), %rax
	movq	_KEYINFO_ORDER_DESC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax,%r12), %ecx
	xorl	-116(%rbp), %ecx                ## 4-byte Folded Reload
	movl	%ecx, -112(%rbp)                ## 4-byte Spill
	movl	$1, %eax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	je	LBB0_97
## %bb.96:                              ##   in Loop: Header=BB0_53 Depth=2
	movq	-104(%rbp), %rdi                ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_MASKBIT
	movq	16(%rbp), %rcx
	orl	%eax, (%rcx)
	jmp	LBB0_98
LBB0_97:                                ##   in Loop: Header=BB0_53 Depth=2
	movl	$0, -112(%rbp)                  ## 4-byte Folded Spill
LBB0_98:                                ##   in Loop: Header=BB0_53 Depth=2
	movq	8(%r15), %rax
	movq	_KEYINFO_ORDER_BIGNULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax,%r12)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_101
## %bb.99:                              ##   in Loop: Header=BB0_53 Depth=2
	movl	28(%rax), %eax
	cmpq	%rax, -88(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_105
## %bb.100:                             ##   in Loop: Header=BB0_53 Depth=2
	movq	_WHERE_BIGNULL_SORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, 4(%rcx)
LBB0_101:                               ##   in Loop: Header=BB0_53 Depth=2
	movq	_XN_ROWID@GOTPCREL(%rip), %rax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rax), %ecx
	jne	LBB0_103
## %bb.102:                             ##   in Loop: Header=BB0_53 Depth=2
	xorl	%edi, %edi
	cmpl	$0, -120(%rbp)                  ## 4-byte Folded Reload
	sete	%dil
	callq	_testcase
	movl	$1, -120(%rbp)                  ## 4-byte Folded Spill
LBB0_103:                               ##   in Loop: Header=BB0_53 Depth=2
	movl	%r14d, %edi
	callq	_MASKBIT
	orl	%eax, -44(%rbp)                 ## 4-byte Folded Spill
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-168(%rbp), %r12                ## 8-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	-88(%rbp), %r8                  ## 8-byte Reload
LBB0_104:                               ##   in Loop: Header=BB0_53 Depth=2
	incq	%r8
	incq	-176(%rbp)                      ## 8-byte Folded Spill
	cmpq	-200(%rbp), %r8                 ## 8-byte Folded Reload
	jne	LBB0_53
	jmp	LBB0_108
	.p2align	4, 0x90
LBB0_105:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_110
## %bb.106:                             ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%eax, -184(%rbp)                ## 4-byte Folded Reload
	jg	LBB0_110
## %bb.107:                             ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
LBB0_108:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$0, -120(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_111
LBB0_109:                               ##   in Loop: Header=BB0_8 Depth=1
	xorl	%edi, %edi
	testl	%ecx, %ecx
	sete	%dil
	callq	_testcase
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-92(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_112
LBB0_110:                               ##   in Loop: Header=BB0_8 Depth=1
	xorl	%edi, %edi
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	setne	%dil
	callq	_testcase
	xorl	%ecx, %ecx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	cmpl	$0, -120(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_109
LBB0_111:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	-92(%rbp), %r12d                ## 4-byte Reload
	testl	%ecx, %ecx
	je	LBB0_126
	.p2align	4, 0x90
LBB0_112:                               ##   in Loop: Header=BB0_8 Depth=1
	orl	(%rdx), %r12d
	testl	%r14d, %r14d
	movl	%r12d, -92(%rbp)                ## 4-byte Spill
	jle	LBB0_121
## %bb.113:                             ##   in Loop: Header=BB0_8 Depth=1
	notl	%r12d
	movl	$8, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_117
LBB0_114:                               ##   in Loop: Header=BB0_117 Depth=2
	movq	%r14, %rdi
	callq	_sqlite3ExprIsConstant
	testl	%eax, %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_116
LBB0_115:                               ##   in Loop: Header=BB0_117 Depth=2
	movl	%ebx, %edi
	callq	_MASKBIT
	orl	%eax, -44(%rbp)                 ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_116:                               ##   in Loop: Header=BB0_117 Depth=2
	incq	%rbx
	addq	$16, %r13
	cmpq	%rbx, %r14
	je	LBB0_120
LBB0_117:                               ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edi
	callq	_MASKBIT
	testl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_116
## %bb.118:                             ##   in Loop: Header=BB0_117 Depth=2
	movq	8(%r15), %rax
	movq	(%rax,%r13), %r14
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	movq	%r14, %rsi
	callq	_sqlite3WhereExprUsage
	testl	%eax, %eax
	je	LBB0_114
## %bb.119:                             ##   in Loop: Header=BB0_117 Depth=2
	testl	%r12d, %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_116
	jmp	LBB0_115
	.p2align	4, 0x90
LBB0_120:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
LBB0_121:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	-108(%rbp), %eax                ## 4-byte Folded Reload
	jge	LBB0_124
## %bb.122:                             ##   in Loop: Header=BB0_8 Depth=1
	leaq	1(%r13), %rax
	cmpq	-192(%rbp), %r13                ## 8-byte Folded Reload
	movq	%rax, %r13
	jb	LBB0_8
	jmp	LBB0_124
LBB0_123:
	cmpq	$0, 40(%rdx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmovnel	-108(%rbp), %eax                ## 4-byte Folded Reload
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_124:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	-108(%rbp), %eax                ## 4-byte Folded Reload
	movl	$-1, %r12d
	cmovel	-56(%rbp), %r12d                ## 4-byte Folded Reload
LBB0_125:
	movl	%r12d, %eax
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_126:
	movl	$-1, %r12d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	-108(%rbp), %eax                ## 4-byte Folded Reload
	cmovel	%r14d, %r12d
	je	LBB0_125
## %bb.127:
	notl	-44(%rbp)                       ## 4-byte Folded Spill
	movl	%r14d, %r12d
LBB0_128:                               ## =>This Inner Loop Header: Depth=1
	cmpl	$2, %r12d
	jl	LBB0_130
## %bb.129:                             ##   in Loop: Header=BB0_128 Depth=1
	decl	%r12d
	movl	%r12d, %edi
	callq	_MASKBIT
	decl	%eax
	testl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_128
	jmp	LBB0_125
LBB0_130:
	xorl	%r12d, %r12d
	jmp	LBB0_125
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OrderByIdxJoin,4,2      ## @SQLITE_OrderByIdxJoin
	.comm	_BMS,4,2                        ## @BMS
	.comm	_WO_EQ,4,2                      ## @WO_EQ
	.comm	_WO_IS,4,2                      ## @WO_IS
	.comm	_WO_ISNULL,4,2                  ## @WO_ISNULL
	.comm	_WHERE_ORDERBY_LIMIT,4,2        ## @WHERE_ORDERBY_LIMIT
	.comm	_WO_IN,4,2                      ## @WO_IN
	.comm	_WHERE_VIRTUALTABLE,4,2         ## @WHERE_VIRTUALTABLE
	.comm	_WHERE_DISTINCTBY,4,2           ## @WHERE_DISTINCTBY
	.comm	_TK_COLUMN,8,3                  ## @TK_COLUMN
	.comm	_TK_IS,8,3                      ## @TK_IS
	.comm	_WHERE_ONEROW,4,2               ## @WHERE_ONEROW
	.comm	_WHERE_IPK,4,2                  ## @WHERE_IPK
	.comm	_XN_ROWID,4,2                   ## @XN_ROWID
	.comm	_WHERE_SKIPSCAN,4,2             ## @WHERE_SKIPSCAN
	.comm	_KEYINFO_ORDER_DESC,4,2         ## @KEYINFO_ORDER_DESC
	.comm	_WHERE_GROUPBY,4,2              ## @WHERE_GROUPBY
	.comm	_KEYINFO_ORDER_BIGNULL,4,2      ## @KEYINFO_ORDER_BIGNULL
	.comm	_WHERE_BIGNULL_SORT,4,2         ## @WHERE_BIGNULL_SORT
	.no_dead_strip	_wherePathSatisfiesOrderBy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wherePathSatisfiesOrderBy
_wherePathSatisfiesOrderBy:             ; @wherePathSatisfiesOrderBy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #176]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #192]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x6
	mov	x26, x5
	mov	x20, x4
	stur	w3, [x29, #-108]                ; 4-byte Folded Spill
	str	x2, [sp, #72]                   ; 8-byte Folded Spill
	mov	x24, x1
	stur	x0, [x29, #-96]                 ; 8-byte Folded Spill
	ldr	x8, [x0, #8]
	ldr	x19, [x8]
	cmp	x1, #0
	cset	w0, ne
	bl	_assert
	cbz	w20, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SQLITE_OrderByIdxJoin@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_OrderByIdxJoin@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_OptimizationDisabled
	cbnz	x0, LBB0_125
LBB0_2:
	ldr	w19, [x24]
Lloh3:
	adrp	x21, _BMS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _BMS@GOTPAGEOFF]
	ldr	w8, [x21]
	sub	w8, w8, #1
	cmp	w19, w8
	cset	w0, eq
	bl	_testcase
	ldr	w8, [x21]
	cmp	w19, w8
	b.ge	LBB0_125
; %bb.3:
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x19
	bl	_MASKBIT
	mov	w25, #0
	sub	w8, w0, #1
	str	w8, [sp, #84]                   ; 4-byte Folded Spill
Lloh5:
	adrp	x8, _WHERE_ORDERBY_LIMIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WHERE_ORDERBY_LIMIT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _WO_IN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WO_IN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	ldur	w10, [x29, #-108]               ; 4-byte Folded Reload
	tst	w8, w10
	csel	w8, wzr, w9, eq
	cmp	w0, #2
	b.lt	LBB0_120
; %bb.4:
	tbnz	w20, #31, LBB0_120
; %bb.5:
	mov	x13, #0
	mov	w12, #0
	str	wzr, [sp, #104]                 ; 4-byte Folded Spill
	mov	w25, #0
	mov	x23, #0
	mov	x9, x19
Lloh11:
	adrp	x10, _WO_EQ@GOTPAGE
Lloh12:
	ldr	x10, [x10, _WO_EQ@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
Lloh14:
	adrp	x11, _WO_IS@GOTPAGE
Lloh15:
	ldr	x11, [x11, _WO_IS@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
Lloh17:
	adrp	x14, _WO_ISNULL@GOTPAGE
Lloh18:
	ldr	x14, [x14, _WO_ISNULL@GOTPAGEOFF]
	sxtw	x9, w9
	stur	x9, [x29, #-104]                ; 8-byte Folded Spill
	orr	w9, w11, w10
Lloh19:
	ldr	w10, [x14]
	orr	w9, w9, w10
	orr	w8, w9, w8
	str	w8, [sp, #108]                  ; 4-byte Folded Spill
	mov	x9, #0
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	add	x8, x8, #16
	str	x8, [sp, #88]                   ; 8-byte Folded Spill
	mov	w8, w20
	str	x8, [sp, #112]                  ; 8-byte Folded Spill
	mov	w20, #0
	str	x26, [sp, #64]                  ; 8-byte Folded Spill
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
                                        ;       Child Loop BB0_25 Depth 3
                                        ;     Child Loop BB0_37 Depth 2
                                        ;       Child Loop BB0_50 Depth 3
                                        ;       Child Loop BB0_60 Depth 3
                                        ;     Child Loop BB0_112 Depth 2
	cbz	x9, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x23]
	orr	w20, w8, w20
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x23, x26
	ldr	x8, [sp, #112]                  ; 8-byte Folded Reload
	cmp	x9, x8
	b.hs	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	x23, [x8, x9, lsl #3]
Lloh20:
	adrp	x8, _WHERE_ORDERBY_LIMIT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _WHERE_ORDERBY_LIMIT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldur	w10, [x29, #-108]               ; 4-byte Folded Reload
	tst	w8, w10
	b.ne	LBB0_117
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x9, [sp, #96]                   ; 8-byte Folded Spill
	ldr	w8, [x23, #4]
Lloh23:
	adrp	x9, _WHERE_VIRTUALTABLE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _WHERE_VIRTUALTABLE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_119
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh26:
	adrp	x9, _WHERE_DISTINCTBY@GOTPAGE
Lloh27:
	ldr	x9, [x9, _WHERE_DISTINCTBY@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	ldur	w10, [x29, #-108]               ; 4-byte Folded Reload
	tst	w9, w10
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	str	wzr, [x23, #24]
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldur	x9, [x29, #-96]                 ; 8-byte Folded Reload
	ldr	x9, [x9, #24]
	ldr	x9, [x9]
	ldr	x10, [x23, #8]
	ldr	w27, [x9, x10, lsl #2]
	cmp	w19, #1
	stur	x23, [x29, #-120]               ; 8-byte Folded Spill
	stur	w27, [x29, #-112]               ; 4-byte Folded Spill
	b.lt	LBB0_33
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, #0
	mvn	w23, w20
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_18 Depth=2
	mov	x0, x21
	bl	_MASKBIT
	orr	w25, w0, w25
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=2
	ldur	w27, [x29, #-112]               ; 4-byte Folded Reload
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	add	x21, x21, #1
	cmp	x21, x19
	b.eq	LBB0_32
LBB0_18:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_25 Depth 3
	mov	x0, x21
	bl	_MASKBIT
	tst	w0, w25
	b.ne	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	x8, [x24, #8]
	add	x8, x8, x21, lsl #4
	ldr	x0, [x8, #8]
	bl	_sqlite3ExprSkipCollateAndLikely
	ldr	x8, [x0]
Lloh29:
	adrp	x9, _TK_COLUMN@GOTPAGE
Lloh30:
	ldr	x9, [x9, _TK_COLUMN@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x28, x0
	ldr	w8, [x0, #8]
	cmp	w8, w27
	b.ne	LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	w2, [x28, #12]
	ldr	x0, [sp, #88]                   ; 8-byte Folded Reload
	mov	x1, x27
	mov	x3, x23
	ldr	w4, [sp, #108]                  ; 4-byte Folded Reload
	mov	w5, #0
	bl	_sqlite3WhereFindTerm
	cbz	x0, LBB0_16
; %bb.22:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x27, x0
	ldr	w8, [x0]
Lloh32:
	adrp	x9, _WO_IN@GOTPAGE
Lloh33:
	ldr	x9, [x9, _WO_IN@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_28
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=2
Lloh35:
	adrp	x8, _WHERE_ORDERBY_LIMIT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _WHERE_ORDERBY_LIMIT@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	ldur	w9, [x29, #-108]                ; 4-byte Folded Reload
	and	w0, w8, w9
	bl	_assert
	ldur	x9, [x29, #-120]                ; 8-byte Folded Reload
	ldr	w8, [x9, #16]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.24:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	x9, [x9, #48]
LBB0_25:                                ;   Parent Loop BB0_6 Depth=1
                                        ;     Parent Loop BB0_18 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x10, [x9]
	cmp	x27, x10
	b.eq	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=3
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_25
	b	LBB0_16
LBB0_27:                                ;   in Loop: Header=BB0_18 Depth=2
	ldr	w8, [x27]
LBB0_28:                                ;   in Loop: Header=BB0_18 Depth=2
Lloh38:
	adrp	x9, _WO_EQ@GOTPAGE
Lloh39:
	ldr	x9, [x9, _WO_EQ@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
Lloh41:
	adrp	x10, _WO_IS@GOTPAGE
Lloh42:
	ldr	x10, [x10, _WO_IS@GOTPAGEOFF]
Lloh43:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_15
; %bb.29:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	w8, [x28, #12]
	tbnz	w8, #31, LBB0_15
; %bb.30:                               ;   in Loop: Header=BB0_18 Depth=2
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	ldr	x0, [x8, #8]
	ldr	x8, [x24, #8]
	add	x8, x8, x21, lsl #4
	ldr	x1, [x8, #8]
	ldr	x2, [x27, #8]
	bl	_sqlite3ExprCollSeqMatch
	cbz	x0, LBB0_16
; %bb.31:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	x8, [x27, #8]
	ldr	x8, [x8]
Lloh44:
	adrp	x9, _TK_IS@GOTPAGE
Lloh45:
	ldr	x9, [x9, _TK_IS@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_testcase
	b	LBB0_15
LBB0_32:                                ;   in Loop: Header=BB0_6 Depth=1
	ldur	x23, [x29, #-120]               ; 8-byte Folded Reload
	ldr	w8, [x23, #4]
LBB0_33:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh47:
	adrp	x9, _WHERE_ONEROW@GOTPAGE
Lloh48:
	ldr	x9, [x9, _WHERE_ONEROW@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_107
; %bb.34:                               ;   in Loop: Header=BB0_6 Depth=1
Lloh50:
	adrp	x9, _WHERE_IPK@GOTPAGE
Lloh51:
	ldr	x9, [x9, _WHERE_IPK@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_95
; %bb.35:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, #0
	str	wzr, [sp, #48]                  ; 4-byte Folded Spill
	mov	w22, #1
	mov	w23, #1
LBB0_36:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x28, #0
	stp	wzr, wzr, [sp, #20]             ; 8-byte Folded Spill
	str	wzr, [sp, #56]                  ; 4-byte Folded Spill
	mov	w9, #1
	mov	w8, w23
	stp	x8, x9, [sp, #32]               ; 16-byte Folded Spill
	ldur	x23, [x29, #-120]               ; 8-byte Folded Reload
	str	w20, [sp, #52]                  ; 4-byte Folded Spill
	str	x21, [sp, #120]                 ; 8-byte Folded Spill
LBB0_37:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_50 Depth 3
                                        ;       Child Loop BB0_60 Depth 3
	ldrsw	x8, [x23, #28]
	cmp	x28, x8
	b.ge	LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=2
	ldr	x8, [x23, #48]
	ldr	x8, [x8, x28, lsl #3]
	cmp	x8, #0
	cset	w8, ne
	ldrsw	x9, [x23, #20]
	cmp	x28, x9
	cset	w9, lt
	eor	w0, w8, w9
	b	LBB0_40
LBB0_39:                                ;   in Loop: Header=BB0_37 Depth=2
	mov	w0, #1
LBB0_40:                                ;   in Loop: Header=BB0_37 Depth=2
	bl	_assert
	ldrsw	x8, [x23, #28]
	cmp	x28, x8
	b.ge	LBB0_42
; %bb.41:                               ;   in Loop: Header=BB0_37 Depth=2
	ldrsw	x8, [x23, #20]
	cmp	x28, x8
Lloh53:
	adrp	x10, _WO_IS@GOTPAGE
Lloh54:
	ldr	x10, [x10, _WO_IS@GOTPAGEOFF]
	b.ge	LBB0_44
LBB0_42:                                ;   in Loop: Header=BB0_37 Depth=2
	mov	w8, #1
	cbz	x21, LBB0_53
LBB0_43:                                ;   in Loop: Header=BB0_37 Depth=2
	lsl	x9, x28, #2
	ldp	x10, x11, [x21, #8]
	ldr	w10, [x10, x9]
	ldr	w9, [x11, x9]
Lloh55:
	adrp	x11, _KEYINFO_ORDER_DESC@GOTPAGE
Lloh56:
	ldr	x11, [x11, _KEYINFO_ORDER_DESC@GOTPAGEOFF]
Lloh57:
	ldr	w11, [x11]
	and	w9, w11, w9
	str	w9, [sp, #28]                   ; 4-byte Folded Spill
	ldr	x9, [x21, #40]
	ldr	w9, [x9]
Lloh58:
	adrp	x11, _XN_ROWID@GOTPAGE
Lloh59:
	ldr	x11, [x11, _XN_ROWID@GOTPAGEOFF]
Lloh60:
	ldr	w11, [x11]
	cmp	w10, w9
	csel	w23, w11, w10, eq
	cbnz	w22, LBB0_54
	b	LBB0_58
LBB0_44:                                ;   in Loop: Header=BB0_37 Depth=2
	mov	x8, x23
	mov	x23, x20
	ldr	x8, [x8, #48]
	ldr	x8, [x8, x28, lsl #3]
	ldr	w20, [x8]
	ldr	w8, [sp, #108]                  ; 4-byte Folded Reload
	tst	w20, w8
	b.eq	LBB0_48
; %bb.45:                               ;   in Loop: Header=BB0_37 Depth=2
Lloh61:
	adrp	x8, _WO_ISNULL@GOTPAGE
Lloh62:
	ldr	x8, [x8, _WO_ISNULL@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	ldr	w9, [x10]
	orr	w9, w9, w8
	tst	w9, w20
	b.eq	LBB0_47
; %bb.46:                               ;   in Loop: Header=BB0_37 Depth=2
	and	w0, w8, w20
	mov	x27, x10
	bl	_testcase
	ldr	w8, [x27]
	and	w0, w8, w20
	bl	_testcase
	mov	x0, x22
	bl	_testcase
	mov	w22, #0
LBB0_47:                                ;   in Loop: Header=BB0_37 Depth=2
	mov	x20, x23
	ldur	x23, [x29, #-120]               ; 8-byte Folded Reload
	b	LBB0_87
LBB0_48:                                ;   in Loop: Header=BB0_37 Depth=2
Lloh64:
	adrp	x8, _WO_IN@GOTPAGE
Lloh65:
	ldr	x8, [x8, _WO_IN@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
	and	w0, w8, w20
	bl	_ALWAYS
	cbz	x0, LBB0_42
; %bb.49:                               ;   in Loop: Header=BB0_37 Depth=2
	ldur	x10, [x29, #-120]               ; 8-byte Folded Reload
	ldr	x8, [x10, #48]
	ldr	x9, [x8, x28, lsl #3]
	ldr	x9, [x9, #8]
	ldrsw	x10, [x10, #28]
	ldr	x11, [sp, #40]                  ; 8-byte Folded Reload
LBB0_50:                                ;   Parent Loop BB0_6 Depth=1
                                        ;     Parent Loop BB0_37 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	x11, x10
	b.ge	LBB0_42
; %bb.51:                               ;   in Loop: Header=BB0_50 Depth=3
	ldr	x12, [x8, x11, lsl #3]
	ldr	x13, [x12, #8]
	add	x11, x11, #1
	cmp	x13, x9
	b.ne	LBB0_50
; %bb.52:                               ;   in Loop: Header=BB0_37 Depth=2
	ldr	w8, [x12]
Lloh67:
	adrp	x9, _WO_IN@GOTPAGE
Lloh68:
	ldr	x9, [x9, _WO_IN@GOTPAGEOFF]
Lloh69:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_assert
	mov	w8, #0
	cbnz	x21, LBB0_43
LBB0_53:                                ;   in Loop: Header=BB0_37 Depth=2
	str	wzr, [sp, #28]                  ; 4-byte Folded Spill
Lloh70:
	adrp	x9, _XN_ROWID@GOTPAGE
Lloh71:
	ldr	x9, [x9, _XN_ROWID@GOTPAGEOFF]
Lloh72:
	ldr	w23, [x9]
	cbz	w22, LBB0_58
LBB0_54:                                ;   in Loop: Header=BB0_37 Depth=2
	tbnz	w23, #31, LBB0_58
; %bb.55:                               ;   in Loop: Header=BB0_37 Depth=2
	ldur	x9, [x29, #-120]                ; 8-byte Folded Reload
	ldrsw	x9, [x9, #28]
	cmp	x28, x9
	b.ge	LBB0_57
; %bb.56:                               ;   in Loop: Header=BB0_37 Depth=2
	mov	w22, #1
	b	LBB0_58
LBB0_57:                                ;   in Loop: Header=BB0_37 Depth=2
	ldr	x9, [x21, #40]
	ldr	x9, [x9, #8]
	ldr	x9, [x9, w23, uxtw #3]
	cmp	x9, #0
	cset	w22, ne
LBB0_58:                                ;   in Loop: Header=BB0_37 Depth=2
	str	x28, [sp, #128]                 ; 8-byte Folded Spill
	str	w22, [sp, #60]                  ; 4-byte Folded Spill
	cmp	w19, #0
	cset	w9, gt
	and	w8, w8, w9
	cmp	w8, #1
	b.ne	LBB0_88
; %bb.59:                               ;   in Loop: Header=BB0_37 Depth=2
	mov	x26, #0
	mov	x28, #0
LBB0_60:                                ;   Parent Loop BB0_6 Depth=1
                                        ;     Parent Loop BB0_37 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x28
	bl	_MASKBIT
	tst	w0, w25
	b.eq	LBB0_64
; %bb.61:                               ;   in Loop: Header=BB0_60 Depth=3
	mov	w20, #1
LBB0_62:                                ;   in Loop: Header=BB0_60 Depth=3
	cbz	w20, LBB0_88
; %bb.63:                               ;   in Loop: Header=BB0_60 Depth=3
	add	x28, x28, #1
	add	x26, x26, #16
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	cmp	x28, x8
	b.lt	LBB0_60
	b	LBB0_88
LBB0_64:                                ;   in Loop: Header=BB0_60 Depth=3
	ldr	x8, [x24, #8]
	add	x8, x8, x26
	ldr	x0, [x8, #8]
	bl	_sqlite3ExprSkipCollateAndLikely
	mov	x27, x0
Lloh73:
	adrp	x21, _WHERE_GROUPBY@GOTPAGE
Lloh74:
	ldr	x21, [x21, _WHERE_GROUPBY@GOTPAGEOFF]
	ldr	w8, [x21]
	ldur	w22, [x29, #-108]               ; 4-byte Folded Reload
	and	w0, w8, w22
	bl	_testcase
Lloh75:
	adrp	x20, _WHERE_DISTINCTBY@GOTPAGE
Lloh76:
	ldr	x20, [x20, _WHERE_DISTINCTBY@GOTPAGEOFF]
	ldr	w8, [x20]
	and	w0, w8, w22
	bl	_testcase
	ldr	w8, [x21]
	ldr	w9, [x20]
	orr	w8, w9, w8
	tst	w8, w22
	cset	w20, ne
Lloh77:
	adrp	x8, _XN_ROWID@GOTPAGE
Lloh78:
	ldr	x8, [x8, _XN_ROWID@GOTPAGEOFF]
Lloh79:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ge	LBB0_67
; %bb.65:                               ;   in Loop: Header=BB0_60 Depth=3
	ldp	x8, x9, [sp, #120]              ; 16-byte Folded Reload
	ldr	x8, [x8, #32]
	ldr	x8, [x8]
	ldr	x1, [x8, x9, lsl #3]
	mov	x0, x27
	ldur	w2, [x29, #-112]                ; 4-byte Folded Reload
	bl	_sqlite3ExprCompareSkip
	cbnz	x0, LBB0_62
; %bb.66:                               ;   in Loop: Header=BB0_60 Depth=3
Lloh80:
	adrp	x8, _XN_ROWID@GOTPAGE
Lloh81:
	ldr	x8, [x8, _XN_ROWID@GOTPAGEOFF]
Lloh82:
	ldr	w8, [x8]
	b	LBB0_70
LBB0_67:                                ;   in Loop: Header=BB0_60 Depth=3
	ldr	x9, [x27]
Lloh83:
	adrp	x10, _TK_COLUMN@GOTPAGE
Lloh84:
	ldr	x10, [x10, _TK_COLUMN@GOTPAGEOFF]
Lloh85:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_62
; %bb.68:                               ;   in Loop: Header=BB0_60 Depth=3
	ldr	w9, [x27, #8]
	ldur	w10, [x29, #-112]               ; 4-byte Folded Reload
	cmp	w9, w10
	b.ne	LBB0_62
; %bb.69:                               ;   in Loop: Header=BB0_60 Depth=3
	ldr	w9, [x27, #12]
	cmp	w9, w23
	b.ne	LBB0_62
LBB0_70:                                ;   in Loop: Header=BB0_60 Depth=3
	cmp	w23, w8
	b.eq	LBB0_72
; %bb.71:                               ;   in Loop: Header=BB0_60 Depth=3
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	ldr	x0, [x8, #8]
	ldr	x8, [x24, #8]
	add	x8, x8, x26
	ldr	x1, [x8, #8]
	bl	_sqlite3ExprNNCollSeq
	ldr	w0, [x0]
	ldp	x8, x9, [sp, #120]              ; 16-byte Folded Reload
	ldr	x8, [x8, #24]
	ldr	w1, [x8, x9, lsl #2]
	bl	_sqlite3StrICmp
	cbnz	x0, LBB0_62
LBB0_72:                                ;   in Loop: Header=BB0_37 Depth=2
Lloh86:
	adrp	x8, _WHERE_DISTINCTBY@GOTPAGE
Lloh87:
	ldr	x8, [x8, _WHERE_DISTINCTBY@GOTPAGEOFF]
Lloh88:
	ldr	w8, [x8]
	ldur	w9, [x29, #-108]                ; 4-byte Folded Reload
	tst	w8, w9
	b.eq	LBB0_74
; %bb.73:                               ;   in Loop: Header=BB0_37 Depth=2
	ldr	x8, [sp, #128]                  ; 8-byte Folded Reload
	add	w8, w8, #1
	ldur	x9, [x29, #-120]                ; 8-byte Folded Reload
	str	w8, [x9, #24]
LBB0_74:                                ;   in Loop: Header=BB0_37 Depth=2
Lloh89:
	adrp	x8, _WHERE_GROUPBY@GOTPAGE
Lloh90:
	ldr	x8, [x8, _WHERE_GROUPBY@GOTPAGEOFF]
Lloh91:
	ldr	w8, [x8]
	ldur	w9, [x29, #-108]                ; 4-byte Folded Reload
	tst	w8, w9
	b.ne	LBB0_81
; %bb.75:                               ;   in Loop: Header=BB0_37 Depth=2
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_77
; %bb.76:                               ;   in Loop: Header=BB0_37 Depth=2
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	eor	w8, w9, w8
	ldr	x9, [x24, #8]
	ldr	w9, [x9, x26]
Lloh92:
	adrp	x10, _KEYINFO_ORDER_DESC@GOTPAGE
Lloh93:
	ldr	x10, [x10, _KEYINFO_ORDER_DESC@GOTPAGEOFF]
Lloh94:
	ldr	w10, [x10]
	and	w9, w10, w9
	cmp	w8, w9
	b.eq	LBB0_80
	b	LBB0_88
LBB0_77:                                ;   in Loop: Header=BB0_37 Depth=2
	ldr	x8, [x24, #8]
	ldr	w8, [x8, x26]
Lloh95:
	adrp	x9, _KEYINFO_ORDER_DESC@GOTPAGE
Lloh96:
	ldr	x9, [x9, _KEYINFO_ORDER_DESC@GOTPAGEOFF]
Lloh97:
	ldr	w9, [x9]
	and	w8, w9, w8
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	eor	w8, w8, w9
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	cbz	w8, LBB0_79
; %bb.78:                               ;   in Loop: Header=BB0_37 Depth=2
	ldr	x0, [sp, #96]                   ; 8-byte Folded Reload
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_MASKBIT
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w8, [x9]
	orr	w8, w8, w0
	str	w8, [x9]
	b	LBB0_80
LBB0_79:                                ;   in Loop: Header=BB0_37 Depth=2
	str	wzr, [sp, #20]                  ; 4-byte Folded Spill
LBB0_80:                                ;   in Loop: Header=BB0_37 Depth=2
	mov	w8, #1
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
LBB0_81:                                ;   in Loop: Header=BB0_37 Depth=2
	ldr	x8, [x24, #8]
	ldr	w8, [x8, x26]
Lloh98:
	adrp	x9, _KEYINFO_ORDER_BIGNULL@GOTPAGE
Lloh99:
	ldr	x9, [x9, _KEYINFO_ORDER_BIGNULL@GOTPAGEOFF]
Lloh100:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_84
; %bb.82:                               ;   in Loop: Header=BB0_37 Depth=2
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	ldr	w8, [x8, #28]
	ldr	x9, [sp, #128]                  ; 8-byte Folded Reload
	cmp	x9, x8
	b.ne	LBB0_88
; %bb.83:                               ;   in Loop: Header=BB0_37 Depth=2
Lloh101:
	adrp	x8, _WHERE_BIGNULL_SORT@GOTPAGE
Lloh102:
	ldr	x8, [x8, _WHERE_BIGNULL_SORT@GOTPAGEOFF]
Lloh103:
	ldr	w8, [x8]
	ldur	x10, [x29, #-120]               ; 8-byte Folded Reload
	ldr	w9, [x10, #4]
	orr	w8, w9, w8
	str	w8, [x10, #4]
LBB0_84:                                ;   in Loop: Header=BB0_37 Depth=2
Lloh104:
	adrp	x8, _XN_ROWID@GOTPAGE
Lloh105:
	ldr	x8, [x8, _XN_ROWID@GOTPAGEOFF]
Lloh106:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_86
; %bb.85:                               ;   in Loop: Header=BB0_37 Depth=2
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	cmp	w8, #0
	cset	w0, eq
	bl	_testcase
	mov	w8, #1
	str	w8, [sp, #56]                   ; 4-byte Folded Spill
LBB0_86:                                ;   in Loop: Header=BB0_37 Depth=2
	ldr	x26, [sp, #64]                  ; 8-byte Folded Reload
	ldr	w20, [sp, #52]                  ; 4-byte Folded Reload
	ldur	x23, [x29, #-120]               ; 8-byte Folded Reload
	mov	x0, x28
	bl	_MASKBIT
	orr	w25, w0, w25
	ldp	x21, x28, [sp, #120]            ; 16-byte Folded Reload
	ldr	w22, [sp, #60]                  ; 4-byte Folded Reload
LBB0_87:                                ;   in Loop: Header=BB0_37 Depth=2
	add	x28, x28, #1
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x8, x8, #1
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	cmp	x28, x8
	b.ne	LBB0_37
	b	LBB0_91
LBB0_88:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [sp, #128]                  ; 8-byte Folded Reload
	cbz	w9, LBB0_93
; %bb.89:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #48]                   ; 4-byte Folded Reload
	cmp	w8, w9
	b.gt	LBB0_93
; %bb.90:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x26, [sp, #64]                  ; 8-byte Folded Reload
	ldr	w20, [sp, #52]                  ; 4-byte Folded Reload
	ldur	x23, [x29, #-120]               ; 8-byte Folded Reload
	ldr	w22, [sp, #60]                  ; 4-byte Folded Reload
LBB0_91:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_94
LBB0_92:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w22, #0
	cset	w0, eq
	bl	_testcase
	b	LBB0_107
LBB0_93:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	cmp	w8, #0
	cset	w0, ne
	bl	_testcase
	mov	w22, #0
	ldr	x26, [sp, #64]                  ; 8-byte Folded Reload
	ldr	w20, [sp, #52]                  ; 4-byte Folded Reload
	ldur	x23, [x29, #-120]               ; 8-byte Folded Reload
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	cbnz	w8, LBB0_92
LBB0_94:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	w22, LBB0_107
	b	LBB0_121
LBB0_95:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x21, [x23, #32]
	cbz	x21, LBB0_125
; %bb.96:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21, #48]
	cbnz	x8, LBB0_125
; %bb.97:                               ;   in Loop: Header=BB0_6 Depth=1
	ldp	w8, w23, [x21]
	str	w8, [sp, #48]                   ; 4-byte Folded Spill
	add	w8, w8, #1
	cmp	w23, w8
	b.ne	LBB0_99
; %bb.98:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
	b	LBB0_100
LBB0_99:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x21, #40]
	bl	_HasRowid
	cmp	w0, #0
	cset	w0, eq
LBB0_100:                               ;   in Loop: Header=BB0_6 Depth=1
	bl	_assert
	ldr	x8, [x21, #8]
	sub	w9, w23, #1
	ldr	w8, [x8, w9, sxtw #2]
Lloh107:
	adrp	x9, _XN_ROWID@GOTPAGE
Lloh108:
	ldr	x9, [x9, _XN_ROWID@GOTPAGEOFF]
Lloh109:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_102
; %bb.101:                              ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
	b	LBB0_103
LBB0_102:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x21, #40]
	bl	_HasRowid
	cmp	w0, #0
	cset	w0, eq
LBB0_103:                               ;   in Loop: Header=BB0_6 Depth=1
	bl	_assert
	mov	x0, x21
	bl	_IsUniqueIndex
	cbz	x0, LBB0_105
; %bb.104:                              ;   in Loop: Header=BB0_6 Depth=1
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	ldr	w8, [x8, #4]
Lloh110:
	adrp	x9, _WHERE_SKIPSCAN@GOTPAGE
Lloh111:
	ldr	x9, [x9, _WHERE_SKIPSCAN@GOTPAGEOFF]
Lloh112:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w22, eq
	cmp	w23, #1
	b.ge	LBB0_36
	b	LBB0_106
LBB0_105:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w22, #0
	cmp	w23, #1
	b.ge	LBB0_36
LBB0_106:                               ;   in Loop: Header=BB0_6 Depth=1
	ldur	x23, [x29, #-120]               ; 8-byte Folded Reload
	cbz	w22, LBB0_121
LBB0_107:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x23]
	ldr	w9, [sp, #104]                  ; 4-byte Folded Reload
	orr	w8, w8, w9
	cmp	w19, #1
	str	w8, [sp, #104]                  ; 4-byte Folded Spill
	b.lt	LBB0_116
; %bb.108:                              ;   in Loop: Header=BB0_6 Depth=1
	mov	x27, x20
	mov	x20, #0
	mvn	w23, w8
	mov	w26, #8
	b	LBB0_112
LBB0_109:                               ;   in Loop: Header=BB0_112 Depth=2
	mov	x0, x21
	bl	_sqlite3ExprIsConstant
	cbz	w0, LBB0_111
LBB0_110:                               ;   in Loop: Header=BB0_112 Depth=2
	mov	x0, x20
	bl	_MASKBIT
	orr	w25, w0, w25
LBB0_111:                               ;   in Loop: Header=BB0_112 Depth=2
	add	x20, x20, #1
	add	x26, x26, #16
	cmp	x19, x20
	b.eq	LBB0_115
LBB0_112:                               ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_MASKBIT
	tst	w0, w25
	b.ne	LBB0_111
; %bb.113:                              ;   in Loop: Header=BB0_112 Depth=2
	ldr	x8, [x24, #8]
	ldr	x21, [x8, x26]
	ldur	x0, [x29, #-96]                 ; 8-byte Folded Reload
	mov	x1, x21
	bl	_sqlite3WhereExprUsage
	cbz	w0, LBB0_109
; %bb.114:                              ;   in Loop: Header=BB0_112 Depth=2
	tst	w0, w23
	b.ne	LBB0_111
	b	LBB0_110
LBB0_115:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x26, [sp, #64]                  ; 8-byte Folded Reload
	mov	x20, x27
	ldr	x9, [sp, #96]                   ; 8-byte Folded Reload
	ldur	x23, [x29, #-120]               ; 8-byte Folded Reload
	b	LBB0_117
LBB0_116:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [sp, #96]                   ; 8-byte Folded Reload
LBB0_117:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #84]                   ; 4-byte Folded Reload
	cmp	w25, w8
	b.ge	LBB0_120
; %bb.118:                              ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x9, #1
	ldr	x10, [sp, #112]                 ; 8-byte Folded Reload
	cmp	x9, x10
	mov	x9, x8
	b.lo	LBB0_6
	b	LBB0_120
LBB0_119:
	ldr	x8, [x23, #40]
	cmp	x8, #0
	ldr	w8, [sp, #84]                   ; 4-byte Folded Reload
	csel	w25, w25, w8, eq
LBB0_120:
	ldr	w8, [sp, #84]                   ; 4-byte Folded Reload
	cmp	w25, w8
	csinv	w19, w19, wzr, eq
	b	LBB0_126
LBB0_121:
	ldr	w8, [sp, #84]                   ; 4-byte Folded Reload
	cmp	w25, w8
	csinv	w8, w19, wzr, eq
	b.ne	LBB0_123
; %bb.122:
	mov	x19, x8
	b	LBB0_126
LBB0_123:                               ; =>This Inner Loop Header: Depth=1
	cmp	w19, #2
	b.lt	LBB0_125
; %bb.124:                              ;   in Loop: Header=BB0_123 Depth=1
	sub	w19, w19, #1
	mov	x0, x19
	bl	_MASKBIT
	sub	w8, w0, #1
	bics	wzr, w8, w25
	b.ne	LBB0_123
	b	LBB0_126
LBB0_125:
	mov	w19, #0
LBB0_126:
	mov	x0, x19
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #192]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OrderByIdxJoin,4,2      ; @SQLITE_OrderByIdxJoin
	.comm	_BMS,4,2                        ; @BMS
	.comm	_WO_EQ,4,2                      ; @WO_EQ
	.comm	_WO_IS,4,2                      ; @WO_IS
	.comm	_WO_ISNULL,4,2                  ; @WO_ISNULL
	.comm	_WHERE_ORDERBY_LIMIT,4,2        ; @WHERE_ORDERBY_LIMIT
	.comm	_WO_IN,4,2                      ; @WO_IN
	.comm	_WHERE_VIRTUALTABLE,4,2         ; @WHERE_VIRTUALTABLE
	.comm	_WHERE_DISTINCTBY,4,2           ; @WHERE_DISTINCTBY
	.comm	_TK_COLUMN,8,3                  ; @TK_COLUMN
	.comm	_TK_IS,8,3                      ; @TK_IS
	.comm	_WHERE_ONEROW,4,2               ; @WHERE_ONEROW
	.comm	_WHERE_IPK,4,2                  ; @WHERE_IPK
	.comm	_XN_ROWID,4,2                   ; @XN_ROWID
	.comm	_WHERE_SKIPSCAN,4,2             ; @WHERE_SKIPSCAN
	.comm	_KEYINFO_ORDER_DESC,4,2         ; @KEYINFO_ORDER_DESC
	.comm	_WHERE_GROUPBY,4,2              ; @WHERE_GROUPBY
	.comm	_KEYINFO_ORDER_BIGNULL,4,2      ; @KEYINFO_ORDER_BIGNULL
	.comm	_WHERE_BIGNULL_SORT,4,2         ; @WHERE_BIGNULL_SORT
	.no_dead_strip	_wherePathSatisfiesOrderBy
.subsections_via_symbols
