	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function whereRangeVectorLen
_whereRangeVectorLen:                   ## @whereRangeVectorLen
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%ecx, %ebx
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movq	(%r8), %rax
	movq	8(%rax), %rdi
	callq	_sqlite3ExprVectorSize
	movq	32(%r12), %rsi
	movslq	%ebx, %r13
	subq	%r13, %rsi
	movl	%eax, %edi
	callq	_MIN
	movl	$1, %ebx
	cmpl	$2, %eax
	jl	LBB0_16
## %bb.1:
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%eax, %eax
	leaq	8(,%r13,8), %r9
	leaq	4(,%r13,4), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movl	$1, %r10d
	movl	$1, %ecx
	subq	%rax, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	$8, %edi
	xorl	%ebx, %ebx
	movq	%r13, %r8
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rcx
	movq	(%rcx), %rax
	movq	_EP_xIsSelect@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%rax), %rax
	movq	(%rax), %rdx
	leaq	(,%r10,8), %rax
	addq	(%rdx), %rax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rax), %rax
	movq	(%rax), %rax
	addq	%rdi, %rax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	8(%rcx,%rbx,8), %r13
	movq	8(%r13), %rcx
	movq	_TK_COLUMN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r15d, 16(%r13)
	jne	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r13), %rcx
	movq	(%r12), %rdx
	addq	%r9, %rdx
	cmpq	(%rdx,%rbx,8), %rcx
	jne	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rdx
	leaq	(%rdx,%r9), %rsi
	movq	(%rsi,%rbx,8), %rsi
	cmpq	(%rdx,%r8,8), %rsi
	jne	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	movq	%r10, -120(%rbp)                ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rbx
	movq	(%rax), %r12
	xorl	%edi, %edi
	movq	_XN_ROWID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	sete	%dil
	callq	_testcase
	movq	%r13, %rdi
	callq	_sqlite3ExprAffinity
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_sqlite3CompareAffinity
	movl	%eax, %r14d
	movq	%rbx, %r15
	movl	24(%rbx), %edi
	movq	24(%r13), %rsi
	callq	_sqlite3TableColumnAffinity
	cmpb	%al, %r14b
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_sqlite3BinaryCompareCollSeq
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %edi
	movq	%r15, %r12
	movq	16(%r15), %rax
	addq	-96(%rbp), %rax                 ## 8-byte Folded Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rax,%rbx,4), %esi
	callq	_sqlite3StrICmp
	testq	%rax, %rax
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-120(%rbp), %r10                ## 8-byte Reload
	incq	%r10
	incq	%rbx
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	addq	$8, %rdi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%rbx, %rax
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	jne	LBB0_2
## %bb.13:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_14:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_15:
	incl	%ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EP_xIsSelect,4,2               ## @EP_xIsSelect
	.comm	_TK_COLUMN,8,3                  ## @TK_COLUMN
	.comm	_XN_ROWID,8,3                   ## @XN_ROWID
	.no_dead_strip	_whereRangeVectorLen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function whereRangeVectorLen
_whereRangeVectorLen:                   ; @whereRangeVectorLen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x4
	mov	x19, x3
	mov	x23, x2
	mov	x25, x1
	mov	x26, x0
	ldr	x8, [x4]
	ldr	x0, [x8, #8]
	bl	_sqlite3ExprVectorSize
	ldr	x8, [x23, #32]
	sxtw	x19, w19
	sub	x1, x8, x19
	bl	_MIN
	cmp	w0, #2
	b.lt	LBB0_14
; %bb.1:
	mov	x27, #0
	mov	w9, w0
	lsl	x8, x19, #3
	add	x12, x8, #8
	lsl	x8, x19, #2
	add	x8, x8, #4
	stp	x12, x8, [sp, #32]              ; 16-byte Folded Spill
	stp	x9, x20, [sp]                   ; 16-byte Folded Spill
	sub	x8, x9, #1
	stp	x19, x8, [sp, #16]              ; 16-byte Folded Spill
	mov	w22, #1
	mov	w28, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	ldr	x8, [x9]
	ldr	w10, [x8]
Lloh0:
	adrp	x11, _EP_xIsSelect@GOTPAGE
Lloh1:
	ldr	x11, [x11, _EP_xIsSelect@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x8, #40]
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x8, x8, x22, lsl #3
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x8, #32]
	ldr	x8, [x8]
	add	x8, x8, x28
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x9, #8]
	ldr	x9, [x9]
	ldr	x9, [x9]
	add	x9, x9, x27, lsl #3
	ldr	x24, [x9, #8]
	ldr	x9, [x24, #8]
Lloh3:
	adrp	x10, _TK_COLUMN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TK_COLUMN@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x24, #16]
	cmp	w9, w25
	b.ne	LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x24, #24]
	ldr	x10, [x23]
	add	x10, x10, x12
	ldr	x10, [x10, x27, lsl #3]
	cmp	x9, x10
	b.ne	LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x10, [x23, #8]
	add	x11, x10, x12
	ldr	x11, [x11, x27, lsl #3]
	ldr	x10, [x10, x19, lsl #3]
	cmp	x11, x10
	b.ne	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, x25
	ldr	x25, [x8]
Lloh6:
	adrp	x8, _XN_ROWID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XN_ROWID@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x9, x8
	cset	w0, eq
	bl	_testcase
	mov	x0, x24
	bl	_sqlite3ExprAffinity
	mov	x1, x0
	mov	x0, x25
	bl	_sqlite3CompareAffinity
	mov	x19, x0
	mov	x21, x23
	ldr	w0, [x23, #24]
	ldr	x1, [x24, #24]
	bl	_sqlite3TableColumnAffinity
	cmp	w19, w0
	b.ne	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x26
	mov	x1, x24
	mov	x2, x25
	bl	_sqlite3BinaryCompareCollSeq
	cbz	x0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x0]
	ldr	x8, [x21, #16]
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	add	x8, x8, x9
	ldr	w1, [x8, x27, lsl #2]
	bl	_sqlite3StrICmp
	cbnz	x0, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	add	x27, x27, #1
	add	x28, x28, #8
	ldp	x19, x8, [sp, #16]              ; 16-byte Folded Reload
	cmp	x8, x27
	mov	x25, x20
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	mov	x23, x21
	ldr	x12, [sp, #32]                  ; 8-byte Folded Reload
	b.ne	LBB0_2
; %bb.13:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	b	LBB0_16
LBB0_14:
	mov	w0, #1
	b	LBB0_16
LBB0_15:
	add	w0, w27, #1
LBB0_16:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EP_xIsSelect,4,2               ; @EP_xIsSelect
	.comm	_TK_COLUMN,8,3                  ; @TK_COLUMN
	.comm	_XN_ROWID,8,3                   ; @XN_ROWID
	.no_dead_strip	_whereRangeVectorLen
.subsections_via_symbols
