	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreateAccessMethod             ## -- Begin function CreateAccessMethod
	.p2align	4, 0x90
_CreateAccessMethod:                    ## @CreateAccessMethod
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_Natts_pg_am@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r12d
	leaq	(,%r12,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	_AccessMethodRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_superuser
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	4(%r13), %esi
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	leaq	L_.str.1(%rip), %rdi
	callq	_errhint
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movq	_AMNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_Anum_pg_am_oid@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	4(%r13), %edi
	callq	_CStringGetDatum
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_GetSysCacheOid1
	movq	%rax, %rdi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_DUPLICATE_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	4(%r13), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_4:
	movl	(%r13), %esi
	movl	8(%r13), %edi
	callq	_lookup_am_handler_func
	movq	%rax, %r14
	shll	$2, %r12d
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	shll	$2, %edx
	movq	%rbx, %r12
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	movq	_AmOidIndexId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_Anum_pg_am_oid@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_GetNewOidWithIndex
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_ObjectIdGetDatum
	movslq	(%rbx), %rcx
	movl	%eax, -4(%r12,%rcx,4)
	movq	_namein@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	4(%r13), %edi
	callq	_CStringGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_DirectFunctionCall1
	movq	_Anum_pg_am_amname@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	%eax, -4(%r12,%rcx,4)
	movq	%r14, %rdi
	callq	_ObjectIdGetDatum
	movq	_Anum_pg_am_amhandler@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	%eax, -4(%r12,%rcx,4)
	movl	(%r13), %edi
	callq	_CharGetDatum
	movq	_Anum_pg_am_amtype@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	%eax, -4(%r12,%rcx,4)
	movl	%r15d, %edi
	callq	_RelationGetDescr
	movl	%eax, %edi
	movq	%r12, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_heap_form_tuple
	movl	%eax, %ebx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_CatalogTupleInsert
	movl	%ebx, %edi
	callq	_heap_freetuple
	movq	_AccessMethodRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 16(%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	movq	$0, (%rbx)
	movq	_ProcedureRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	movq	%r14, -112(%rbp)
	movq	$0, -120(%rbp)
	movq	_DEPENDENCY_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-120(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_recordDependencyOn
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_recordDependencyOnCurrentExtension
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_table_close
	movq	-88(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_Natts_pg_am,4,2                ## @Natts_pg_am
	.comm	_AccessMethodRelationId,4,2     ## @AccessMethodRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ## @ERRCODE_INSUFFICIENT_PRIVILEGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"permission denied to create access method \"%s\""

L_.str.1:                               ## @.str.1
	.asciz	"Must be superuser to create an access method."

	.comm	_AMNAME,4,2                     ## @AMNAME
	.comm	_Anum_pg_am_oid,4,2             ## @Anum_pg_am_oid
	.comm	_ERRCODE_DUPLICATE_OBJECT,4,2   ## @ERRCODE_DUPLICATE_OBJECT
L_.str.2:                               ## @.str.2
	.asciz	"access method \"%s\" already exists"

	.comm	_AmOidIndexId,4,2               ## @AmOidIndexId
	.comm	_namein,4,2                     ## @namein
	.comm	_Anum_pg_am_amname,4,2          ## @Anum_pg_am_amname
	.comm	_Anum_pg_am_amhandler,4,2       ## @Anum_pg_am_amhandler
	.comm	_Anum_pg_am_amtype,4,2          ## @Anum_pg_am_amtype
	.comm	_ProcedureRelationId,4,2        ## @ProcedureRelationId
	.comm	_DEPENDENCY_NORMAL,4,2          ## @DEPENDENCY_NORMAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreateAccessMethod             ; -- Begin function CreateAccessMethod
	.p2align	2
_CreateAccessMethod:                    ; @CreateAccessMethod
	.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
	sub	sp, sp, #48
	mov	x22, x0
	mov	x19, x8
	mov	x8, sp
	stur	x8, [x29, #-120]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x12, _Natts_pg_am@GOTPAGE
Lloh4:
	ldr	x12, [x12, _Natts_pg_am@GOTPAGEOFF]
	ldr	w26, [x12]
	lsl	x8, x26, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	w28, [x12]
	lsl	x8, x28, #2
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
Lloh9:
	adrp	x8, _AccessMethodRelationId@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AccessMethodRelationId@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _RowExclusiveLock@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RowExclusiveLock@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_table_open
	mov	x20, x0
	bl	_superuser
Lloh15:
	adrp	x8, _ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w24, [x8]
Lloh17:
	adrp	x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERRCODE_INSUFFICIENT_PRIVILEGE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w1, [x22, #4]
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_2:
Lloh24:
	adrp	x8, _AMNAME@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AMNAME@GOTPAGEOFF]
Lloh26:
	ldr	w24, [x8]
Lloh27:
	adrp	x27, _Anum_pg_am_oid@GOTPAGE
Lloh28:
	ldr	x27, [x27, _Anum_pg_am_oid@GOTPAGEOFF]
	ldr	w25, [x27]
	ldr	w0, [x22, #4]
	bl	_CStringGetDatum
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	bl	_GetSysCacheOid1
	bl	_OidIsValid
	cbz	x0, LBB0_4
; %bb.3:
Lloh29:
	adrp	x8, _ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w24, [x8]
Lloh32:
	adrp	x8, _ERRCODE_DUPLICATE_OBJECT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ERRCODE_DUPLICATE_OBJECT@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w1, [x22, #4]
Lloh35:
	adrp	x0, l_.str.2@PAGE
Lloh36:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_4:
	ldr	w0, [x22, #8]
	ldr	w1, [x22]
	bl	_lookup_am_handler_func
	mov	x24, x0
	lsl	w2, w28, #2
	mov	x0, x23
	mov	w1, #0
	bl	_memset
	lsl	w2, w26, #2
	mov	x0, x21
	mov	w1, #0
	bl	_memset
Lloh37:
	adrp	x8, _AmOidIndexId@GOTPAGE
Lloh38:
	ldr	x8, [x8, _AmOidIndexId@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	ldr	w2, [x27]
	mov	x0, x20
	bl	_GetNewOidWithIndex
	mov	x25, x0
	bl	_ObjectIdGetDatum
	ldrsw	x8, [x27]
	add	x8, x23, x8, lsl #2
	stur	w0, [x8, #-4]
Lloh40:
	adrp	x8, _namein@GOTPAGE
Lloh41:
	ldr	x8, [x8, _namein@GOTPAGEOFF]
Lloh42:
	ldr	w26, [x8]
	ldr	w0, [x22, #4]
	bl	_CStringGetDatum
	mov	x1, x0
	mov	x0, x26
	bl	_DirectFunctionCall1
Lloh43:
	adrp	x8, _Anum_pg_am_amname@GOTPAGE
Lloh44:
	ldr	x8, [x8, _Anum_pg_am_amname@GOTPAGEOFF]
Lloh45:
	ldrsw	x8, [x8]
	add	x8, x23, x8, lsl #2
	stur	w0, [x8, #-4]
	mov	x0, x24
	bl	_ObjectIdGetDatum
Lloh46:
	adrp	x8, _Anum_pg_am_amhandler@GOTPAGE
Lloh47:
	ldr	x8, [x8, _Anum_pg_am_amhandler@GOTPAGEOFF]
Lloh48:
	ldrsw	x8, [x8]
	add	x8, x23, x8, lsl #2
	stur	w0, [x8, #-4]
	ldr	w0, [x22]
	bl	_CharGetDatum
Lloh49:
	adrp	x8, _Anum_pg_am_amtype@GOTPAGE
Lloh50:
	ldr	x8, [x8, _Anum_pg_am_amtype@GOTPAGEOFF]
Lloh51:
	ldrsw	x8, [x8]
	add	x8, x23, x8, lsl #2
	stur	w0, [x8, #-4]
	mov	x0, x20
	bl	_RelationGetDescr
	mov	x1, x23
	mov	x2, x21
	bl	_heap_form_tuple
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_CatalogTupleInsert
	mov	x0, x21
	bl	_heap_freetuple
Lloh52:
	adrp	x8, _AccessMethodRelationId@GOTPAGE
Lloh53:
	ldr	x8, [x8, _AccessMethodRelationId@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	stp	xzr, x25, [x19]
Lloh55:
	adrp	x8, _ProcedureRelationId@GOTPAGE
Lloh56:
	ldr	x8, [x8, _ProcedureRelationId@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	stur	w8, [x29, #-96]
	stp	xzr, x24, [x29, #-112]
Lloh58:
	adrp	x8, _DEPENDENCY_NORMAL@GOTPAGE
Lloh59:
	ldr	x8, [x8, _DEPENDENCY_NORMAL@GOTPAGEOFF]
Lloh60:
	ldr	w2, [x8]
	sub	x1, x29, #112
	mov	x0, x19
	bl	_recordDependencyOn
	mov	x0, x19
	mov	w1, #0
	bl	_recordDependencyOnCurrentExtension
Lloh61:
	adrp	x8, _RowExclusiveLock@GOTPAGE
Lloh62:
	ldr	x8, [x8, _RowExclusiveLock@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_table_close
	ldur	x8, [x29, #-120]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-88]
Lloh64:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh65:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh66:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	sub	sp, x29, #80
	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
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_Natts_pg_am,4,2                ; @Natts_pg_am
	.comm	_AccessMethodRelationId,4,2     ; @AccessMethodRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INSUFFICIENT_PRIVILEGE,4,2 ; @ERRCODE_INSUFFICIENT_PRIVILEGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"permission denied to create access method \"%s\""

l_.str.1:                               ; @.str.1
	.asciz	"Must be superuser to create an access method."

	.comm	_AMNAME,4,2                     ; @AMNAME
	.comm	_Anum_pg_am_oid,4,2             ; @Anum_pg_am_oid
	.comm	_ERRCODE_DUPLICATE_OBJECT,4,2   ; @ERRCODE_DUPLICATE_OBJECT
l_.str.2:                               ; @.str.2
	.asciz	"access method \"%s\" already exists"

	.comm	_AmOidIndexId,4,2               ; @AmOidIndexId
	.comm	_namein,4,2                     ; @namein
	.comm	_Anum_pg_am_amname,4,2          ; @Anum_pg_am_amname
	.comm	_Anum_pg_am_amhandler,4,2       ; @Anum_pg_am_amhandler
	.comm	_Anum_pg_am_amtype,4,2          ; @Anum_pg_am_amtype
	.comm	_ProcedureRelationId,4,2        ; @ProcedureRelationId
	.comm	_DEPENDENCY_NORMAL,4,2          ; @DEPENDENCY_NORMAL
.subsections_via_symbols
