	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgstatginindex_internal        ## -- Begin function pgstatginindex_internal
	.p2align	4, 0x90
_pgstatginindex_internal:               ## @pgstatginindex_internal
	.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
	movl	%esi, -76(%rbp)                 ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -64(%rbp)
	movq	$0, -72(%rbp)
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_relation_open
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_IS_INDEX
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_IS_GIN
	testl	%eax, %eax
	jne	LBB0_3
LBB0_2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_WRONG_OBJECT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	%ebx, %edi
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_3:
	movl	%ebx, %edi
	callq	_RELATION_IS_OTHER_TEMP
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_5:
	movq	_GIN_METAPAGE_BLKNO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_ReadBuffer
	movl	%eax, %r14d
	movq	_GIN_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_LockBuffer
	movl	%r14d, %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_GinPageGetMeta
	movl	8(%rax), %r13d
	movl	(%rax), %r15d
	movl	4(%rax), %r12d
	movl	%r14d, %edi
	callq	_UnlockReleaseBuffer
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_relation_close
	leaq	-80(%rbp), %rdx
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	callq	_get_call_result_type
	movq	_TYPEFUNC_COMPOSITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_elog
LBB0_7:
	movl	%r13d, %edi
	callq	_Int32GetDatum
	movl	%eax, -60(%rbp)
	movl	%r12d, %edi
	callq	_UInt32GetDatum
	movl	%eax, -56(%rbp)
	movl	%r15d, %edi
	callq	_Int64GetDatum
	movl	%eax, -52(%rbp)
	movl	-80(%rbp), %edi
	leaq	-60(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	callq	_heap_form_tuple
	movl	%eax, %edi
	callq	_HeapTupleGetDatum
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AccessShareLock,4,2            ## @AccessShareLock
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_WRONG_OBJECT_TYPE,4,2  ## @ERRCODE_WRONG_OBJECT_TYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"relation \"%s\" is not a GIN index"

	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
L_.str.1:                               ## @.str.1
	.asciz	"cannot access temporary indexes of other sessions"

	.comm	_GIN_METAPAGE_BLKNO,4,2         ## @GIN_METAPAGE_BLKNO
	.comm	_GIN_SHARE,4,2                  ## @GIN_SHARE
	.comm	_TYPEFUNC_COMPOSITE,8,3         ## @TYPEFUNC_COMPOSITE
L_.str.2:                               ## @.str.2
	.asciz	"return type must be a row type"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgstatginindex_internal        ; -- Begin function pgstatginindex_internal
	.p2align	2
_pgstatginindex_internal:               ; @pgstatginindex_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	str	wzr, [sp, #24]
	str	xzr, [sp, #16]
Lloh3:
	adrp	x26, _AccessShareLock@GOTPAGE
Lloh4:
	ldr	x26, [x26, _AccessShareLock@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_relation_open
	mov	x20, x0
	bl	_IS_INDEX
Lloh5:
	adrp	x25, _ERROR@GOTPAGE
Lloh6:
	ldr	x25, [x25, _ERROR@GOTPAGEOFF]
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_IS_GIN
	cbnz	w0, LBB0_3
LBB0_2:
	ldr	w21, [x25]
Lloh7:
	adrp	x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERRCODE_WRONG_OBJECT_TYPE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x20
	bl	_RelationGetRelationName
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_3:
	mov	x0, x20
	bl	_RELATION_IS_OTHER_TEMP
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w21, [x25]
Lloh12:
	adrp	x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_errcode
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_5:
Lloh17:
	adrp	x8, _GIN_METAPAGE_BLKNO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GIN_METAPAGE_BLKNO@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ReadBuffer
	mov	x24, x0
Lloh20:
	adrp	x8, _GIN_SHARE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GIN_SHARE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_LockBuffer
	mov	x0, x24
	bl	_BufferGetPage
	bl	_GinPageGetMeta
	ldp	w22, w23, [x0, #4]
	ldr	w21, [x0]
	mov	x0, x24
	bl	_UnlockReleaseBuffer
	ldr	w1, [x26]
	mov	x0, x20
	bl	_relation_close
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, #0
	bl	_get_call_result_type
Lloh23:
	adrp	x8, _TYPEFUNC_COMPOSITE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TYPEFUNC_COMPOSITE@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x25]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_elog
LBB0_7:
	mov	x0, x23
	bl	_Int32GetDatum
	str	w0, [sp, #28]
	mov	x0, x22
	bl	_UInt32GetDatum
	str	w0, [sp, #32]
	mov	x0, x21
	bl	_Int64GetDatum
	str	w0, [sp, #36]
	ldr	w0, [sp, #12]
	add	x1, sp, #28
	add	x2, sp, #16
	bl	_heap_form_tuple
	bl	_HeapTupleGetDatum
	ldr	x8, [sp, #40]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_AccessShareLock,4,2            ; @AccessShareLock
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_WRONG_OBJECT_TYPE,4,2  ; @ERRCODE_WRONG_OBJECT_TYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"relation \"%s\" is not a GIN index"

	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
l_.str.1:                               ; @.str.1
	.asciz	"cannot access temporary indexes of other sessions"

	.comm	_GIN_METAPAGE_BLKNO,4,2         ; @GIN_METAPAGE_BLKNO
	.comm	_GIN_SHARE,4,2                  ; @GIN_SHARE
	.comm	_TYPEFUNC_COMPOSITE,8,3         ; @TYPEFUNC_COMPOSITE
l_.str.2:                               ; @.str.2
	.asciz	"return type must be a row type"

.subsections_via_symbols
