	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IndexOnlyNext
_IndexOnlyNext:                         ## @IndexOnlyNext
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	96(%rdi), %rax
	movq	104(%rdi), %r15
	movl	4(%r15), %ebx
	movl	(%rax), %edi
	callq	_ScanDirectionIsBackward
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movl	%ebx, %edi
	callq	_ScanDirectionIsForward
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_BackwardScanDirection@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movl	%ebx, %edi
	callq	_ScanDirectionIsBackward
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_ForwardScanDirection@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ebx
LBB0_6:
	movq	56(%r12), %r14
	movq	80(%r12), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	88(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	jne	LBB0_10
## %bb.7:
	movl	72(%r12), %edi
	movl	64(%r12), %esi
	movl	(%r15), %edx
	movl	28(%r12), %r8d
	movl	36(%r12), %ecx
	callq	_index_beginscan
	movq	%rax, %r14
	movq	%rax, 56(%r12)
	movl	$1, (%rax)
	movq	_InvalidBuffer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	cmpq	$0, (%r12)
	je	LBB0_9
## %bb.8:
	cmpq	$0, 48(%r12)
	je	LBB0_10
LBB0_9:
	movl	40(%r12), %esi
	movl	36(%r12), %edx
	movl	28(%r12), %r8d
	movl	32(%r12), %ecx
	movq	%r14, %rdi
	callq	_index_rescan
LBB0_10:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_index_getnext_tid
	testq	%rax, %rax
	je	LBB0_25
## %bb.11:
	movq	%rax, %r15
	leaq	24(%r12), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movl	16(%r14), %ebx
	movq	%r15, %rdi
	callq	_ItemPointerGetBlockNumber
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_VM_ALL_VISIBLE
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_13
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	cmpq	$0, 56(%r14)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	64(%r14), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movq	56(%r14), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_ExecForceStoreHeapTuple
	cmpq	$0, 32(%r14)
	jne	LBB0_22
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_InstrCountTuples2
	movq	16(%r12), %rsi
	movq	%r14, %rdi
	callq	_index_fetch_heap
	testl	%eax, %eax
	je	LBB0_24
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	16(%r12), %rdi
	callq	_ExecClearTuple
	cmpq	$0, 72(%r14)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	48(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	40(%r14), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_StoreIndexTuple
	cmpq	$0, 32(%r14)
	jne	LBB0_22
	jmp	LBB0_26
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
	cmpq	$0, 32(%r14)
	je	LBB0_26
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, (%rsi)
	movl	8(%r12), %edi
	callq	_ExecQualAndReset
	testl	%eax, %eax
	jne	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_InstrCountFiltered2
LBB0_24:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r14, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_index_getnext_tid
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_12
LBB0_25:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ExecClearTuple                 ## TAILCALL
LBB0_26:
	cmpq	$0, 8(%r14)
	jle	LBB0_29
## %bb.27:
	cmpq	$0, 24(%r14)
	je	LBB0_29
## %bb.28:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_29:
	testl	%r13d, %r13d
	je	LBB0_31
## %bb.30:
	movl	16(%r14), %ebx
	movq	%r15, %rdi
	callq	_ItemPointerGetBlockNumber
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_PredicateLockPage
LBB0_31:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BackwardScanDirection,4,2      ## @BackwardScanDirection
	.comm	_ForwardScanDirection,4,2       ## @ForwardScanDirection
	.comm	_InvalidBuffer,4,2              ## @InvalidBuffer
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"non-MVCC snapshots are not supported in index-only scans"

L_.str.1:                               ## @.str.1
	.asciz	"no data returned for index-only scan"

	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
L_.str.2:                               ## @.str.2
	.asciz	"lossy distance functions are not supported in index-only scans"

	.no_dead_strip	_IndexOnlyNext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IndexOnlyNext
_IndexOnlyNext:                         ; @IndexOnlyNext
	.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	x20, x0
	ldp	x8, x27, [x0, #96]
	ldr	w21, [x27, #4]
	ldr	w0, [x8]
	bl	_ScanDirectionIsBackward
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x21
	bl	_ScanDirectionIsForward
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _BackwardScanDirection@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BackwardScanDirection@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	b	LBB0_4
LBB0_3:
	mov	x0, x21
	bl	_ScanDirectionIsBackward
Lloh3:
	adrp	x8, _ForwardScanDirection@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ForwardScanDirection@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w21, w21, w8, eq
LBB0_4:
	ldr	x22, [x20, #56]
	ldp	x19, x23, [x20, #80]
	cbnz	x22, LBB0_8
; %bb.5:
	ldr	w0, [x20, #72]
	ldr	w1, [x20, #64]
	ldr	w2, [x27]
	ldr	w3, [x20, #36]
	ldr	w4, [x20, #28]
	bl	_index_beginscan
	mov	x22, x0
	str	x0, [x20, #56]
	mov	w8, #1
	str	w8, [x0]
Lloh6:
	adrp	x8, _InvalidBuffer@GOTPAGE
Lloh7:
	ldr	x8, [x8, _InvalidBuffer@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_8
LBB0_7:
	ldp	w2, w1, [x20, #36]
	ldp	w4, w3, [x20, #28]
	mov	x0, x22
	bl	_index_rescan
LBB0_8:
	mov	x0, x22
	mov	x1, x21
	bl	_index_getnext_tid
	cbz	x0, LBB0_22
; %bb.9:
	mov	x24, x0
	add	x25, x20, #24
Lloh9:
	adrp	x26, _ERROR@GOTPAGE
Lloh10:
	ldr	x26, [x26, _ERROR@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	bl	_CHECK_FOR_INTERRUPTS
	ldr	w28, [x22, #16]
	mov	x0, x24
	bl	_ItemPointerGetBlockNumber
	mov	x1, x0
	mov	x0, x28
	mov	x2, x25
	bl	_VM_ALL_VISIBLE
	mov	x28, x0
	cbz	w0, LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x22, #56]
	cbz	x8, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x22, #64]
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	x0, [x22, #56]
	mov	x1, x19
	mov	w2, #0
	bl	_ExecForceStoreHeapTuple
	ldr	x8, [x22, #32]
	cbnz	x8, LBB0_19
	b	LBB0_23
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x20
	mov	w1, #1
	bl	_InstrCountTuples2
	ldr	x1, [x20, #16]
	mov	x0, x22
	bl	_index_fetch_heap
	cbz	w0, LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x20, #16]
	bl	_ExecClearTuple
	ldr	x8, [x22, #72]
	cbz	x8, LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x26]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	b	LBB0_11
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x1, [x22, #48]
	cbz	x1, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w2, [x22, #40]
	mov	x0, x19
	bl	_StoreIndexTuple
	ldr	x8, [x22, #32]
	cbnz	x8, LBB0_19
	b	LBB0_23
LBB0_18:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x26]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
	ldr	x8, [x22, #32]
	cbz	x8, LBB0_23
LBB0_19:                                ;   in Loop: Header=BB0_10 Depth=1
	str	x19, [x23]
	ldr	w0, [x20, #8]
	mov	x1, x23
	bl	_ExecQualAndReset
	cbnz	w0, LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x20
	mov	w1, #1
	bl	_InstrCountFiltered2
LBB0_21:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_index_getnext_tid
	mov	x24, x0
	cbnz	x0, LBB0_10
LBB0_22:
	mov	x0, x19
	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
	b	_ExecClearTuple
LBB0_23:
	ldr	x8, [x22, #8]
	cmp	x8, #1
	b.lt	LBB0_26
; %bb.24:
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_26
; %bb.25:
	ldr	w20, [x26]
Lloh15:
	adrp	x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_errcode
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_26:
	cbz	w28, LBB0_28
; %bb.27:
	ldr	w20, [x22, #16]
	mov	x0, x24
	bl	_ItemPointerGetBlockNumber
	mov	x1, x0
	ldr	w2, [x27]
	mov	x0, x20
	bl	_PredicateLockPage
LBB0_28:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_BackwardScanDirection,4,2      ; @BackwardScanDirection
	.comm	_ForwardScanDirection,4,2       ; @ForwardScanDirection
	.comm	_InvalidBuffer,4,2              ; @InvalidBuffer
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"non-MVCC snapshots are not supported in index-only scans"

l_.str.1:                               ; @.str.1
	.asciz	"no data returned for index-only scan"

	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
l_.str.2:                               ; @.str.2
	.asciz	"lossy distance functions are not supported in index-only scans"

	.no_dead_strip	_IndexOnlyNext
.subsections_via_symbols
