	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function whereLoopAddAll
_whereLoopAddAll:                       ## @whereLoopAddAll
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	movq	24(%rdi), %rcx
	movq	24(%rcx), %r15
	movq	(%rcx), %rax
	leaq	(%rax,%rax,2), %r13
	shlq	$2, %r13
	addq	(%r15), %r13
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	16(%rcx), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r12, %rdi
	callq	_whereLoopInit
	movq	_SQLITE_QUERY_PLANNER_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, 8(%rbx)
	movq	(%r15), %r15
	cmpq	%r13, %r15
	jae	LBB0_22
## %bb.1:
	addq	$8, -72(%rbp)                   ## 8-byte Folded Spill
	xorl	%ebx, %ebx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%ecx, %ecx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, (%r12)
	movq	_SQLITE_QUERY_PLANNER_LIMIT_INCR@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movl	%eax, 8(%r14)
	movl	(%r15), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_sqlite3WhereGetMask
	movl	%eax, 4(%r12)
	movl	4(%r15), %edx
	movl	8(%r15), %edi
	movq	_JT_CROSS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_JT_LEFT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	orl	%edx, %ebx
	testl	%ebx, %eax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	cmovnel	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	callq	_IsVirtual
	testq	%rax, %rax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	12(%r15), %rbx
	xorl	%r12d, %r12d
	cmpq	%r13, %rbx
	jae	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	movl	(%rbx), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_sqlite3WhereGetMask
	orl	%eax, %r12d
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	addq	$12, %rbx
	cmpq	%r13, %rbx
	jae	LBB0_10
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%r12d, %r12d
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	_JT_CROSS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_JT_LEFT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%eax, 4(%rbx)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	xorl	%r12d, %r12d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_whereLoopAddVirtual
	movl	%eax, %r14d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_whereLoopAddBtree
	movl	%eax, %r14d
	xorl	%r12d, %r12d
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_whereLoopAddOr
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r14d
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	orl	4(%r12), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%r14d, %r14d
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_SQLITE_DONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_SQLITE_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_sqlite3_log
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	$12, %r15
	cmpq	%r13, %r15
	jae	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	%ecx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	8(%r14), %eax
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_2
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_20
LBB0_22:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_whereLoopClear
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_SQLITE_QUERY_PLANNER_LIMIT,4,2 ## @SQLITE_QUERY_PLANNER_LIMIT
	.comm	_SQLITE_QUERY_PLANNER_LIMIT_INCR,8,3 ## @SQLITE_QUERY_PLANNER_LIMIT_INCR
	.comm	_JT_LEFT,4,2                    ## @JT_LEFT
	.comm	_JT_CROSS,4,2                   ## @JT_CROSS
	.comm	_SQLITE_DONE,4,2                ## @SQLITE_DONE
	.comm	_SQLITE_WARNING,4,2             ## @SQLITE_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"abbreviated query algorithm search"

	.no_dead_strip	_whereLoopAddAll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function whereLoopAddAll
_whereLoopAddAll:                       ; @whereLoopAddAll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x0
	ldp	x20, x21, [x0, #16]
	ldp	x8, x22, [x21, #16]
	ldr	x9, [x22]
	ldr	x10, [x21]
	mov	w11, #12
	madd	x27, x10, x11, x9
	ldr	x8, [x8]
	str	x8, [sp]                        ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
	mov	x0, x20
	bl	_whereLoopInit
Lloh3:
	adrp	x8, _SQLITE_QUERY_PLANNER_LIMIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SQLITE_QUERY_PLANNER_LIMIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	x24, [x22]
	cmp	x24, x27
	b.hs	LBB0_23
; %bb.1:
	mov	w25, #0
	mov	w22, #0
	mov	w26, #0
	mov	w28, #0
	add	x23, x21, #8
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	str	w28, [x20]
Lloh6:
	adrp	x9, _SQLITE_QUERY_PLANNER_LIMIT_INCR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SQLITE_QUERY_PLANNER_LIMIT_INCR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	add	w8, w8, w9
	str	w8, [x19, #8]
	ldr	w1, [x24]
	mov	x0, x23
	bl	_sqlite3WhereGetMask
	str	w0, [x20, #4]
	ldp	w21, w0, [x24, #4]
	orr	w8, w21, w25
Lloh9:
	adrp	x9, _JT_LEFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _JT_LEFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _JT_CROSS@GOTPAGE
Lloh13:
	ldr	x10, [x10, _JT_CROSS@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	csel	w22, w22, w26, eq
	bl	_IsVirtual
	str	w26, [sp, #12]                  ; 4-byte Folded Spill
	cbz	x0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x25, x24, #12
	cmp	x25, x27
	b.hs	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w26, #0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	w1, [x25]
	mov	x0, x23
	bl	_sqlite3WhereGetMask
	orr	w26, w0, w26
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x25, x25, #12
	cmp	x25, x27
	b.hs	LBB0_12
LBB0_7:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbnz	w26, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x25, #4]
Lloh15:
	adrp	x9, _JT_LEFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _JT_LEFT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _JT_CROSS@GOTPAGE
Lloh19:
	ldr	x10, [x10, _JT_CROSS@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	w26, #0
	b	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_whereLoopAddBtree
	mov	x25, x0
	mov	w26, #0
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w26, #0
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x26
	bl	_whereLoopAddVirtual
	mov	x25, x0
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh21:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w25, w8
	b.ne	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x26
	bl	_whereLoopAddOr
	mov	x25, x0
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w26, [x20, #4]
	cbnz	w25, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	x8, [x8]
	cbz	x8, LBB0_22
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh24:
	adrp	x8, _SQLITE_DONE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SQLITE_DONE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w25, w8
	b.ne	LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh27:
	adrp	x8, _SQLITE_WARNING@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SQLITE_WARNING@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sqlite3_log
Lloh32:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh34:
	ldr	w25, [x8]
LBB0_20:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x24, #12
	cmp	x24, x27
	b.hs	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	orr	w26, w26, w8
	add	w28, w28, #1
	ldr	w8, [x19, #8]
	mov	x25, x21
	b	LBB0_2
LBB0_22:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w25, #0
	b	LBB0_20
LBB0_23:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x1, x20
	bl	_whereLoopClear
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_SQLITE_QUERY_PLANNER_LIMIT,4,2 ; @SQLITE_QUERY_PLANNER_LIMIT
	.comm	_SQLITE_QUERY_PLANNER_LIMIT_INCR,8,3 ; @SQLITE_QUERY_PLANNER_LIMIT_INCR
	.comm	_JT_LEFT,4,2                    ; @JT_LEFT
	.comm	_JT_CROSS,4,2                   ; @JT_CROSS
	.comm	_SQLITE_DONE,4,2                ; @SQLITE_DONE
	.comm	_SQLITE_WARNING,4,2             ; @SQLITE_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"abbreviated query algorithm search"

	.no_dead_strip	_whereLoopAddAll
.subsections_via_symbols
