	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function whereUsablePartialIndex
_whereUsablePartialIndex:               ## @whereUsablePartialIndex
	.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
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movl	%edi, %r12d
	movq	16(%rsi), %rax
	movq	(%rax), %r13
	movq	(%rdx), %rax
	movq	_TK_AND@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %rdx
	movl	%r12d, %edi
	movq	%r14, %rsi
	callq	_whereUsablePartialIndex
	testl	%eax, %eax
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rbx
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	je	LBB0_2
LBB0_4:
	movq	(%r13), %rcx
	movq	_SQLITE_EnableQPSG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	testl	%edx, (%rcx)
	cmovneq	%rax, %r13
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r14)
	jle	LBB0_13
## %bb.5:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	8(%r14), %r12
	addq	$8, %r12
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_sqlite3ExprImpliesExpr
	testq	%rax, %rax
	jne	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%r15d
	addq	$16, %r12
	cmpl	(%r14), %r15d
	jge	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_TERM_NOPARTIDX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -8(%r12)
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r12), %r13
	movq	_EP_FromJoin@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_ExprHasProperty
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, 8(%r13)
	je	LBB0_9
	jmp	LBB0_11
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	$1, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_TK_AND,8,3                     ## @TK_AND
	.comm	_SQLITE_EnableQPSG,4,2          ## @SQLITE_EnableQPSG
	.comm	_TERM_NOPARTIDX,4,2             ## @TERM_NOPARTIDX
	.comm	_EP_FromJoin,4,2                ## @EP_FromJoin
	.no_dead_strip	_whereUsablePartialIndex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function whereUsablePartialIndex
_whereUsablePartialIndex:               ; @whereUsablePartialIndex
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x1, #16]
	ldr	x22, [x8]
	ldr	x8, [x2]
Lloh0:
	adrp	x23, _TK_AND@GOTPAGE
Lloh1:
	ldr	x23, [x23, _TK_AND@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x2, [x19, #24]
	mov	x0, x21
	mov	x1, x20
	bl	_whereUsablePartialIndex
	cbz	w0, LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x19, [x19, #16]
	ldr	x8, [x19]
	b	LBB0_1
LBB0_4:
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _SQLITE_EnableQPSG@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SQLITE_EnableQPSG@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x22, x22, xzr, eq
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.5:
	mov	w24, #0
	ldr	x8, [x20, #8]
	add	x25, x8, #8
Lloh5:
	adrp	x26, _TERM_NOPARTIDX@GOTPAGE
Lloh6:
	ldr	x26, [x26, _TERM_NOPARTIDX@GOTPAGEOFF]
Lloh7:
	adrp	x27, _EP_FromJoin@GOTPAGE
Lloh8:
	ldr	x27, [x27, _EP_FromJoin@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
	mov	x1, x23
	mov	x2, x19
	mov	x3, x21
	bl	_sqlite3ExprImpliesExpr
	cbnz	x0, LBB0_13
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w24, w24, #1
	ldr	w8, [x20]
	add	x25, x25, #16
	cmp	w24, w8
	b.ge	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x25, #-8]
	ldr	w9, [x26]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x23, [x25]
	ldr	w1, [x27]
	mov	x0, x23
	bl	_ExprHasProperty
	cbz	w0, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x23, #8]
	cmp	w8, w21
	b.eq	LBB0_6
	b	LBB0_7
LBB0_11:
	mov	w0, #0
LBB0_12:
	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_13:
	mov	w0, #1
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_TK_AND,8,3                     ; @TK_AND
	.comm	_SQLITE_EnableQPSG,4,2          ; @SQLITE_EnableQPSG
	.comm	_TERM_NOPARTIDX,4,2             ; @TERM_NOPARTIDX
	.comm	_EP_FromJoin,4,2                ; @EP_FromJoin
	.no_dead_strip	_whereUsablePartialIndex
.subsections_via_symbols
