	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function spggettuple
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_spggettuple
	.p2align	4, 0x90
_spggettuple:                           ## @spggettuple
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movslq	32(%rdi), %r13
	movq	_ForwardScanDirection@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_2:
	movq	24(%r14), %rax
	movq	%rax, 32(%r13)
	movq	8(%r13), %rax
	movq	_storeGettuple@GOTPCREL(%rip), %r12
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r13)
	movl	(%r14), %r8d
	movl	4(%r14), %edi
	movl	(%r12), %ecx
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_spgWalk
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_18
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_16 Depth 2
	movq	(%r13), %rcx
	cmpq	%rax, %rcx
	jb	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 16(%r13)
	jle	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%rax, %rax
	je	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
	incq	%rbx
	cmpq	%rbx, %rax
	jbe	LBB0_13
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	40(%r13), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	callq	_pfree
	movq	8(%r13), %rax
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 32(%r13)
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_pfree
	incq	%rbx
	cmpq	%rbx, 8(%r13)
	ja	LBB0_16
	jmp	LBB0_17
LBB0_4:
	movq	72(%r13), %rax
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 20(%r14)
	movq	64(%r13), %rax
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 16(%r14)
	movq	24(%r13), %rax
	movq	(%rax,%rcx,8), %rax
	movq	%rax, 8(%r14)
	cmpq	$0, 16(%r13)
	jle	LBB0_6
## %bb.5:
	movl	56(%r13), %esi
	movq	40(%r13), %rax
	movq	48(%r13), %rdi
	movq	(%rax,%rcx,8), %rdx
	movl	(%rdi,%rcx,4), %ecx
	movq	%r14, %rdi
	callq	_index_store_float8_orderby_distances
	movq	(%r13), %rcx
LBB0_6:
	incq	%rcx
	movq	%rcx, (%r13)
	movl	$1, %r15d
LBB0_18:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ForwardScanDirection,8,3       ## @ForwardScanDirection
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SP-GiST only supports forward scan direction"

	.comm	_storeGettuple,4,2              ## @storeGettuple
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spggettuple                    ; -- Begin function spggettuple
	.p2align	2
_spggettuple:                           ; @spggettuple
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldrsw	x19, [x0, #32]
Lloh0:
	adrp	x8, _ForwardScanDirection@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ForwardScanDirection@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
	ldr	x8, [x20, #24]
	str	x8, [x19, #32]
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x21, _storeGettuple@GOTPAGE
Lloh9:
	ldr	x21, [x21, _storeGettuple@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	stp	xzr, xzr, [x19]
	ldr	w3, [x21]
	ldp	w4, w0, [x20]
	mov	x1, x19
	mov	w2, #0
	bl	_spgWalk
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	ldr	x9, [x19]
	cmp	x9, x8
	b.lo	LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19, #16]
	cmp	x9, #1
	b.lt	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x8, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x22, x22, #1
	cmp	x8, x22
	b.ls	LBB0_11
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x19, #40]
	ldr	x0, [x9, x22, lsl #3]
	cbz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	bl	_pfree
	ldr	x8, [x19, #8]
	b	LBB0_8
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19, #32]
	cmp	x9, #0
	ccmp	x8, #0, #4, ne
	b.eq	LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, #0
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #24]
	ldr	x0, [x8, x22, lsl #3]
	bl	_pfree
	add	x22, x22, #1
	ldr	x8, [x19, #8]
	cmp	x8, x22
	b.hi	LBB0_13
	b	LBB0_3
LBB0_14:
	mov	w0, #0
	b	LBB0_18
LBB0_15:
	lsl	x8, x9, #2
	ldp	x11, x10, [x19, #64]
	ldr	w10, [x10, x8]
	str	w10, [x20, #20]
	ldr	w8, [x11, x8]
	str	w8, [x20, #16]
	ldp	x10, x8, [x19, #16]
	ldr	x8, [x8, x9, lsl #3]
	str	x8, [x20, #8]
	cmp	x10, #1
	b.lt	LBB0_17
; %bb.16:
	ldr	w1, [x19, #56]
	ldp	x8, x10, [x19, #40]
	ldr	x2, [x8, x9, lsl #3]
	ldr	w3, [x10, x9, lsl #2]
	mov	x0, x20
	bl	_index_store_float8_orderby_distances
	ldr	x9, [x19]
LBB0_17:
	add	x8, x9, #1
	str	x8, [x19]
	mov	w0, #1
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ForwardScanDirection,8,3       ; @ForwardScanDirection
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SP-GiST only supports forward scan direction"

	.comm	_storeGettuple,4,2              ; @storeGettuple
.subsections_via_symbols
