	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spgGetCache                    ## -- Begin function spgGetCache
	.p2align	4, 0x90
_spgGetCache:                           ## @spgGetCache
	.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
	testq	%rbx, %rbx
	jne	LBB0_10
## %bb.1:
	movq	%rdi, %r14
	movl	24(%rdi), %edi
	movl	$56, %esi
	callq	_MemoryContextAllocZero
	movq	%rax, %rbx
	movq	16(%r14), %rax
	xorl	%edi, %edi
	cmpl	$1, (%rax)
	sete	%dil
	callq	_Assert
	movq	16(%r14), %rdi
	xorl	%esi, %esi
	callq	_TupleDescAttr
	movq	(%rax), %r15
	movq	%r15, -64(%rbp)
	movq	_SPGIST_CONFIG_PROC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_index_getprocinfo
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movl	(%rax), %r12d
	leaq	-88(%rbp), %rdi
	callq	_PointerGetDatum
	movl	%eax, %r13d
	leaq	8(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_PointerGetDatum
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_FunctionCall2Coll
	leaq	48(%rbx), %rdi
	movq	%r15, %rsi
	callq	_fillTypeDesc
	movq	8(%rbx), %rdi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	%r15, (%rax)
	jne	LBB0_3
LBB0_6:
	movl	48(%rbx), %eax
	movl	%eax, 52(%rbx)
	jmp	LBB0_7
LBB0_3:
	movq	_SPGIST_COMPRESS_PROC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_index_getprocid
	movq	%rax, %rdi
	callq	_OidIsValid
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_5:
	leaq	52(%rbx), %rdi
	movq	8(%rbx), %rsi
	callq	_fillTypeDesc
LBB0_7:
	leaq	44(%rbx), %rdi
	movq	16(%rbx), %rsi
	callq	_fillTypeDesc
	movq	%rbx, %rdi
	addq	$40, %rdi
	movq	24(%rbx), %rsi
	callq	_fillTypeDesc
	movq	_SPGIST_METAPAGE_BLKNO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ReadBuffer
	movl	%eax, %r15d
	movq	_BUFFER_LOCK_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_LockBuffer
	movl	%r15d, %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_SpGistPageGetMeta
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	_SPGIST_MAGIC_NUMBER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_RelationGetRelationName
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edi
	movl	%eax, %edx
	callq	_elog
LBB0_9:
	movl	8(%r12), %eax
	movl	%eax, (%rbx)
	movl	%r15d, %edi
	callq	_UnlockReleaseBuffer
	movq	%rbx, (%r14)
LBB0_10:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPGIST_CONFIG_PROC,4,2         ## @SPGIST_CONFIG_PROC
	.comm	_SPGIST_COMPRESS_PROC,4,2       ## @SPGIST_COMPRESS_PROC
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ## @ERRCODE_INVALID_PARAMETER_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"compress method must be defined when leaf type is different from input type"

	.comm	_SPGIST_METAPAGE_BLKNO,4,2      ## @SPGIST_METAPAGE_BLKNO
	.comm	_BUFFER_LOCK_SHARE,4,2          ## @BUFFER_LOCK_SHARE
	.comm	_SPGIST_MAGIC_NUMBER,8,3        ## @SPGIST_MAGIC_NUMBER
L_.str.1:                               ## @.str.1
	.asciz	"index \"%s\" is not an SP-GiST index"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spgGetCache                    ; -- Begin function spgGetCache
	.p2align	2
_spgGetCache:                           ; @spgGetCache
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	ldr	x20, [x0]
	cbnz	x20, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #24]
	mov	w1, #56
	bl	_MemoryContextAllocZero
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	cmp	w8, #1
	cset	w0, eq
	bl	_Assert
	ldr	x0, [x19, #16]
	mov	w1, #0
	bl	_TupleDescAttr
	ldr	x21, [x0]
	str	x21, [sp, #24]
Lloh0:
	adrp	x8, _SPGIST_CONFIG_PROC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPGIST_CONFIG_PROC@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_index_getprocinfo
	mov	x23, x0
	ldr	x8, [x19, #8]
	ldr	w24, [x8]
	mov	x0, sp
	bl	_PointerGetDatum
	mov	x25, x0
	add	x22, x20, #8
	mov	x0, x22
	bl	_PointerGetDatum
	mov	x3, x0
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	bl	_FunctionCall2Coll
	add	x0, x20, #48
	mov	x1, x21
	bl	_fillTypeDesc
	ldr	x0, [x20, #8]
	bl	_OidIsValid
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x22]
	cmp	x8, x21
	b.ne	LBB0_4
LBB0_3:
	ldr	w8, [x20, #48]
	str	w8, [x20, #52]
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _SPGIST_COMPRESS_PROC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPGIST_COMPRESS_PROC@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_index_getprocid
	bl	_OidIsValid
	cbnz	x0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
Lloh9:
	adrp	x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_errcode
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_6:
	add	x0, x20, #52
	ldr	x1, [x20, #8]
	bl	_fillTypeDesc
LBB0_7:
	add	x0, x20, #44
	ldr	x1, [x20, #16]
	bl	_fillTypeDesc
	add	x0, x20, #40
	ldr	x1, [x20, #24]
	bl	_fillTypeDesc
Lloh14:
	adrp	x8, _SPGIST_METAPAGE_BLKNO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SPGIST_METAPAGE_BLKNO@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ReadBuffer
	mov	x21, x0
Lloh17:
	adrp	x8, _BUFFER_LOCK_SHARE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BUFFER_LOCK_SHARE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_LockBuffer
	mov	x0, x21
	bl	_BufferGetPage
	bl	_SpGistPageGetMeta
	mov	x22, x0
	ldr	x8, [x0]
Lloh20:
	adrp	x9, _SPGIST_MAGIC_NUMBER@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SPGIST_MAGIC_NUMBER@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.8:
Lloh23:
	adrp	x8, _ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w23, [x8]
	mov	x0, x19
	bl	_RelationGetRelationName
	mov	x2, x0
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_elog
LBB0_9:
	ldr	w8, [x22, #8]
	str	w8, [x20]
	mov	x0, x21
	bl	_UnlockReleaseBuffer
	str	x20, [x19]
LBB0_10:
	mov	x0, x20
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_SPGIST_CONFIG_PROC,4,2         ; @SPGIST_CONFIG_PROC
	.comm	_SPGIST_COMPRESS_PROC,4,2       ; @SPGIST_COMPRESS_PROC
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ; @ERRCODE_INVALID_PARAMETER_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"compress method must be defined when leaf type is different from input type"

	.comm	_SPGIST_METAPAGE_BLKNO,4,2      ; @SPGIST_METAPAGE_BLKNO
	.comm	_BUFFER_LOCK_SHARE,4,2          ; @BUFFER_LOCK_SHARE
	.comm	_SPGIST_MAGIC_NUMBER,8,3        ; @SPGIST_MAGIC_NUMBER
l_.str.1:                               ; @.str.1
	.asciz	"index \"%s\" is not an SP-GiST index"

.subsections_via_symbols
