	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spgTestLeafTuple
_spgTestLeafTuple:                      ## @spgTestLeafTuple
	.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
	movl	%r9d, %r14d
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r15
	movl	%edx, %ebx
	movq	%rsi, %r12
	movl	%edi, %r13d
	movl	%edx, %edi
	movq	%rcx, %rsi
	callq	_PageGetItemId
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_PageGetItem
	movslq	%eax, %rbx
	movq	(%rbx), %rdx
	movq	_SPGIST_LIVE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_1
## %bb.7:
	movl	24(%rbp), %r14d
	movq	16(%rbp), %r15
	leaq	16(%rbx), %rdi
	callq	_ItemPointerIsValid
	movl	%eax, %edi
	callq	_Assert
	movl	%r13d, %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%r15, %r8
	movl	%r14d, %r9d
	callq	_spgLeafTest
	addq	$8, %rbx
	jmp	LBB0_8
LBB0_1:
	testl	%r14d, %r14d
	je	LBB0_2
LBB0_6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	movq	_SpGistErrorOffsetNumber@GOTPCREL(%rip), %rbx
LBB0_8:
	movq	(%rbx), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_SPGIST_REDIRECT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_ItemPointerGetOffsetNumber
	xorl	%edi, %edi
	cmpq	%r15, %rax
	sete	%dil
	callq	_Assert
	movl	(%rbx), %eax
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_ItemPointerGetBlockNumber
	movq	_SPGIST_METAPAGE_BLKNO@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_Assert
	movq	_SpGistRedirectOffsetNumber@GOTPCREL(%rip), %rbx
	jmp	LBB0_8
LBB0_4:
	movq	_SPGIST_DEAD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_ItemPointerGetOffsetNumber
	xorl	%edi, %edi
	cmpq	%r15, %rax
	sete	%dil
	callq	_Assert
	movq	8(%rbx), %rax
	movq	_InvalidOffsetNumber@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movq	_SpGistBreakOffsetNumber@GOTPCREL(%rip), %rbx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_SPGIST_LIVE,8,3                ## @SPGIST_LIVE
	.comm	_SPGIST_REDIRECT,8,3            ## @SPGIST_REDIRECT
	.comm	_SPGIST_METAPAGE_BLKNO,8,3      ## @SPGIST_METAPAGE_BLKNO
	.comm	_SpGistRedirectOffsetNumber,8,3 ## @SpGistRedirectOffsetNumber
	.comm	_SPGIST_DEAD,8,3                ## @SPGIST_DEAD
	.comm	_InvalidOffsetNumber,8,3        ## @InvalidOffsetNumber
	.comm	_SpGistBreakOffsetNumber,8,3    ## @SpGistBreakOffsetNumber
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected SPGiST tuple state: %d"

	.comm	_SpGistErrorOffsetNumber,8,3    ## @SpGistErrorOffsetNumber
	.no_dead_strip	_spgTestLeafTuple
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spgTestLeafTuple
_spgTestLeafTuple:                      ; @spgTestLeafTuple
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x7
	mov	x23, x6
	mov	x26, x5
	mov	x24, x4
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x25, x0
	mov	x0, x2
	mov	x1, x3
	bl	_PageGetItemId
	mov	x1, x0
	mov	x0, x20
	bl	_PageGetItem
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x20, w0
	ldr	x2, [x20]
Lloh0:
	adrp	x8, _SPGIST_LIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPGIST_LIVE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_2
; %bb.1:
	add	x0, x20, #16
	bl	_ItemPointerIsValid
	bl	_Assert
	mov	x0, x25
	mov	x1, x19
	mov	x2, x20
	mov	x3, x24
	mov	x4, x23
	mov	x5, x22
	bl	_spgLeafTest
	add	x8, x20, #8
	b	LBB0_4
LBB0_2:
	cbz	w26, LBB0_5
LBB0_3:
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
Lloh8:
	adrp	x8, _SpGistErrorOffsetNumber@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SpGistErrorOffsetNumber@GOTPAGEOFF]
LBB0_4:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh10:
	adrp	x8, _SPGIST_REDIRECT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SPGIST_REDIRECT@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_ItemPointerGetOffsetNumber
	cmp	x0, x21
	cset	w0, eq
	bl	_Assert
	ldr	w8, [x20]
	str	w8, [x19]
	mov	x0, x19
	bl	_ItemPointerGetBlockNumber
Lloh13:
	adrp	x8, _SPGIST_METAPAGE_BLKNO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SPGIST_METAPAGE_BLKNO@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, ne
	bl	_Assert
Lloh16:
	adrp	x8, _SpGistRedirectOffsetNumber@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SpGistRedirectOffsetNumber@GOTPAGEOFF]
	b	LBB0_4
LBB0_7:
Lloh18:
	adrp	x8, _SPGIST_DEAD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SPGIST_DEAD@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_3
; %bb.8:
	mov	x0, x19
	bl	_ItemPointerGetOffsetNumber
	cmp	x0, x21
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x20, #8]
Lloh21:
	adrp	x9, _InvalidOffsetNumber@GOTPAGE
Lloh22:
	ldr	x9, [x9, _InvalidOffsetNumber@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
Lloh24:
	adrp	x8, _SpGistBreakOffsetNumber@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SpGistBreakOffsetNumber@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SPGIST_LIVE,8,3                ; @SPGIST_LIVE
	.comm	_SPGIST_REDIRECT,8,3            ; @SPGIST_REDIRECT
	.comm	_SPGIST_METAPAGE_BLKNO,8,3      ; @SPGIST_METAPAGE_BLKNO
	.comm	_SpGistRedirectOffsetNumber,8,3 ; @SpGistRedirectOffsetNumber
	.comm	_SPGIST_DEAD,8,3                ; @SPGIST_DEAD
	.comm	_InvalidOffsetNumber,8,3        ; @InvalidOffsetNumber
	.comm	_SpGistBreakOffsetNumber,8,3    ; @SpGistBreakOffsetNumber
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected SPGiST tuple state: %d"

	.comm	_SpGistErrorOffsetNumber,8,3    ; @SpGistErrorOffsetNumber
	.no_dead_strip	_spgTestLeafTuple
.subsections_via_symbols
