	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function indexMightHelpWithOrderBy
_indexMightHelpWithOrderBy:             ## @indexMightHelpWithOrderBy
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	cmpq	$0, 24(%rsi)
	je	LBB0_1
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rsi, %rbx
	movq	(%rdi), %rcx
	movq	(%rcx), %rsi
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.2:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, (%rsi)
	jle	LBB0_20
## %bb.3:
	xorl	%r13d, %r13d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movslq	(%rsi), %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %r13
	jge	LBB0_20
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
	movq	8(%rsi), %rax
	movl	(%rax,%r13,4), %edi
	callq	_sqlite3ExprSkipCollate
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	_TK_COLUMN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, 8(%r15)
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r15), %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	js	LBB0_20
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rbx), %edx
	testl	%edx, %edx
	jle	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	(%rsi,%rdi,8), %rcx
	je	LBB0_20
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=2
	incq	%rdi
	cmpq	%rdi, %rdx
	jne	LBB0_10
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rbx), %r12
	testq	%r12, %r12
	je	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=2
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_19
LBB0_14:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	_XN_EXPR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	8(%r12), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r15, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_sqlite3ExprCompareSkip
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	(%rbx), %eax
	jmp	LBB0_18
LBB0_16:
	movl	$1, %eax
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_TK_COLUMN,8,3                  ## @TK_COLUMN
	.comm	_XN_EXPR,8,3                    ## @XN_EXPR
	.no_dead_strip	_indexMightHelpWithOrderBy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function indexMightHelpWithOrderBy
_indexMightHelpWithOrderBy:             ; @indexMightHelpWithOrderBy
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x8, [x1, #24]
	cbz	x8, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x0]
	ldr	x22, [x8]
	cbz	x22, LBB0_1
; %bb.4:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.5:
	mov	x19, x2
	mov	x20, x1
	mov	x23, #0
Lloh0:
	adrp	x24, _TK_COLUMN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TK_COLUMN@GOTPAGEOFF]
Lloh2:
	adrp	x25, _XN_EXPR@GOTPAGE
Lloh3:
	ldr	x25, [x25, _XN_EXPR@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #0
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.ge	LBB0_2
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x8, [x22, #8]
	ldr	w0, [x8, x23, lsl #2]
	bl	_sqlite3ExprSkipCollate
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x21, #8]
	cmp	w8, w19
	b.ne	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x21, #16]
	tbnz	x8, #63, LBB0_21
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x10, [x20, #8]
LBB0_12:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x10]
	cmp	x8, x11
	b.eq	LBB0_21
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	add	x10, x10, #8
	subs	x9, x9, #1
	b.ne	LBB0_12
	b	LBB0_6
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x26, [x20, #16]
	cbz	x26, LBB0_6
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x27, #0
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=2
	ldr	w8, [x20]
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=2
	add	x27, x27, #1
	cmp	x27, w8, sxtw
	b.ge	LBB0_6
LBB0_19:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x20, #8]
	ldr	x9, [x9, x27, lsl #3]
	ldr	x10, [x25]
	cmp	x9, x10
	b.ne	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	ldr	x8, [x26, #8]
	ldr	w1, [x8, x27, lsl #2]
	mov	x0, x21
	mov	x2, x19
	bl	_sqlite3ExprCompareSkip
	cbnz	x0, LBB0_17
LBB0_21:
	mov	w0, #1
	b	LBB0_2
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TK_COLUMN,8,3                  ; @TK_COLUMN
	.comm	_XN_EXPR,8,3                    ; @XN_EXPR
	.no_dead_strip	_indexMightHelpWithOrderBy
.subsections_via_symbols
