	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ExecAlterExtensionContentsStmt ## -- Begin function ExecAlterExtensionContentsStmt
	.p2align	4, 0x90
_ExecAlterExtensionContentsStmt:        ## @ExecAlterExtensionContentsStmt
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_ExtensionRelationId@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdi)
	movl	8(%rsi), %edi
	xorl	%esi, %esi
	callq	_get_extension_oid
	movq	%rax, %r15
	movq	%rax, 8(%r14)
	movq	$0, 16(%r14)
	xorl	%eax, %eax
	callq	_GetUserId
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_pg_extension_ownercheck
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ACLCHECK_NOT_OWNER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OBJECT_EXTENSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r13), %edx
	callq	_aclcheck_error
LBB0_2:
	movl	12(%r13), %edx
	movl	16(%r13), %esi
	movq	_ShareUpdateExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-64(%rbp), %rdi
	leaq	-80(%rbp), %rcx
	xorl	%r9d, %r9d
	callq	_get_object_address
	xorl	%edi, %edi
	cmpq	$0, -48(%rbp)
	sete	%dil
	callq	_Assert
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	movq	-48(%rbp), %rax
	movq	%rax, 16(%r12)
	movups	-64(%rbp), %xmm0
	movups	%xmm0, (%r12)
LBB0_4:
	xorl	%eax, %eax
	callq	_GetUserId
	movl	12(%r13), %edx
	movl	16(%r13), %esi
	movq	-80(%rbp), %rcx
	movq	-48(%rbp), %rdi
	movq	%rdi, 16(%rsp)
	movups	-64(%rbp), %xmm0
	movups	%xmm0, (%rsp)
	movl	%eax, %edi
	callq	_check_object_ownership
	movq	-64(%rbp), %rdi
	movq	-56(%rbp), %rsi
	callq	_getExtensionOfObject
	movq	%rax, %rbx
	cmpq	$0, (%r13)
	jle	LBB0_11
## %bb.5:
	movq	%rbx, %rdi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	-64(%rbp), %rdi
	callq	_getObjectDescription
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_get_extension_name
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_errmsg
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_ereport
LBB0_7:
	movq	-64(%rbp), %rax
	movq	_NamespaceRelationId@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.8:
	movq	-56(%rbp), %rbx
	movq	%r15, %rdi
	callq	_get_extension_schema
	cmpq	%rax, %rbx
	jne	LBB0_10
## %bb.9:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	-56(%rbp), %rdi
	callq	_get_namespace_name
	movl	8(%r13), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_10:
	movq	_DEPENDENCY_EXTENSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rdi
	movq	%r14, %rsi
	callq	_recordDependencyOn
	movq	-64(%rbp), %rsi
	movq	-56(%rbp), %rdi
	callq	_recordExtObjInitPriv
	movq	8(%r14), %r15
	movq	_ExtensionRelationId@GOTPCREL(%rip), %rbx
	jmp	LBB0_18
LBB0_11:
	cmpq	%r15, %rbx
	je	LBB0_13
## %bb.12:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	-64(%rbp), %rdi
	callq	_getObjectDescription
	movl	8(%r13), %edx
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_13:
	movq	-64(%rbp), %rdi
	movq	-56(%rbp), %rsi
	movq	_ExtensionRelationId@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	movq	_DEPENDENCY_EXTENSION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_deleteDependencyRecordsForClass
	cmpl	$1, %eax
	je	LBB0_15
## %bb.14:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_elog
LBB0_15:
	movq	-64(%rbp), %rsi
	movq	_RelationRelationId@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_17
## %bb.16:
	movq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_extension_config_remove
	movq	-64(%rbp), %rsi
LBB0_17:
	movq	-56(%rbp), %rdi
	callq	_removeExtObjInitPriv
LBB0_18:
	movq	(%rbx), %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_InvokeObjectPostAlterHook
	movq	-80(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_relation_close
LBB0_20:
	movq	%r14, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ExtensionRelationId,8,3        ## @ExtensionRelationId
	.comm	_ACLCHECK_NOT_OWNER,4,2         ## @ACLCHECK_NOT_OWNER
	.comm	_OBJECT_EXTENSION,4,2           ## @OBJECT_EXTENSION
	.comm	_ShareUpdateExclusiveLock,4,2   ## @ShareUpdateExclusiveLock
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE,4,2 ## @ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s is already a member of extension \"%s\""

	.comm	_NamespaceRelationId,8,3        ## @NamespaceRelationId
L_.str.1:                               ## @.str.1
	.asciz	"cannot add schema \"%s\" to extension \"%s\" because the schema contains the extension"

	.comm	_DEPENDENCY_EXTENSION,4,2       ## @DEPENDENCY_EXTENSION
L_.str.2:                               ## @.str.2
	.asciz	"%s is not a member of extension \"%s\""

L_.str.3:                               ## @.str.3
	.asciz	"unexpected number of extension dependency records"

	.comm	_RelationRelationId,8,3         ## @RelationRelationId
	.comm	_NoLock,4,2                     ## @NoLock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ExecAlterExtensionContentsStmt ; -- Begin function ExecAlterExtensionContentsStmt
	.p2align	2
_ExecAlterExtensionContentsStmt:        ; @ExecAlterExtensionContentsStmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x1
	mov	x21, x0
	mov	x20, x8
Lloh0:
	adrp	x25, _ExtensionRelationId@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ExtensionRelationId@GOTPAGEOFF]
	ldr	x8, [x25]
	str	x8, [x20]
	ldr	w0, [x0, #8]
	mov	w1, #0
	bl	_get_extension_oid
	mov	x19, x0
	stp	x0, xzr, [x20, #8]
	bl	_GetUserId
	mov	x1, x0
	mov	x0, x19
	bl	_pg_extension_ownercheck
	cbnz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ACLCHECK_NOT_OWNER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ACLCHECK_NOT_OWNER@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _OBJECT_EXTENSION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OBJECT_EXTENSION@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x21, #8]
	bl	_aclcheck_error
LBB0_2:
	ldp	w1, w0, [x21, #12]
Lloh8:
	adrp	x8, _ShareUpdateExclusiveLock@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ShareUpdateExclusiveLock@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	add	x8, sp, #40
	add	x2, sp, #32
	mov	w4, #0
	bl	_get_object_address
	ldr	x8, [sp, #56]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	cbz	x22, LBB0_4
; %bb.3:
	ldur	q0, [sp, #40]
	str	q0, [x22]
	ldr	x8, [sp, #56]
	str	x8, [x22, #16]
LBB0_4:
	bl	_GetUserId
	ldp	w3, w1, [x21, #12]
	ldr	x4, [sp, #32]
	ldur	q0, [sp, #40]
	str	q0, [sp]
	ldr	x8, [sp, #56]
	str	x8, [sp, #16]
	mov	x2, sp
	bl	_check_object_ownership
	ldp	x22, x24, [sp, #40]
	mov	x0, x22
	mov	x1, x24
	bl	_getExtensionOfObject
	mov	x23, x0
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.5:
	mov	x0, x23
	bl	_OidIsValid
	cbz	x0, LBB0_7
; %bb.6:
Lloh11:
	adrp	x8, _ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
Lloh14:
	adrp	x8, _ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_errcode
	add	x0, sp, #40
	bl	_getObjectDescription
	mov	x24, x0
	mov	x0, x23
	bl	_get_extension_name
	mov	x2, x0
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x24
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
	ldr	x22, [sp, #40]
LBB0_7:
Lloh19:
	adrp	x8, _NamespaceRelationId@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NamespaceRelationId@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_10
; %bb.8:
	ldr	x22, [sp, #48]
	mov	x0, x19
	bl	_get_extension_schema
	cmp	x22, x0
	b.ne	LBB0_10
; %bb.9:
Lloh22:
	adrp	x8, _ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w19, [x8]
Lloh25:
	adrp	x8, _ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_errcode
	ldr	x0, [sp, #48]
	bl	_get_namespace_name
	mov	x1, x0
	ldr	w2, [x21, #8]
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_10:
Lloh30:
	adrp	x8, _DEPENDENCY_EXTENSION@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DEPENDENCY_EXTENSION@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	add	x0, sp, #40
	mov	x1, x20
	bl	_recordDependencyOn
	ldp	x1, x0, [sp, #40]
	bl	_recordExtObjInitPriv
	ldr	x19, [x20, #8]
	b	LBB0_18
LBB0_11:
	cmp	x23, x19
	b.eq	LBB0_13
; %bb.12:
Lloh33:
	adrp	x8, _ERROR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh35:
	ldr	w20, [x8]
Lloh36:
	adrp	x8, _ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_errcode
	add	x0, sp, #40
	bl	_getObjectDescription
	mov	x1, x0
	ldr	w2, [x21, #8]
Lloh39:
	adrp	x0, l_.str.2@PAGE
Lloh40:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
	ldp	x22, x24, [sp, #40]
LBB0_13:
	ldr	x2, [x25]
Lloh41:
	adrp	x8, _DEPENDENCY_EXTENSION@GOTPAGE
Lloh42:
	ldr	x8, [x8, _DEPENDENCY_EXTENSION@GOTPAGEOFF]
Lloh43:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x24
	bl	_deleteDependencyRecordsForClass
	cmp	w0, #1
	b.eq	LBB0_15
; %bb.14:
Lloh44:
	adrp	x8, _ERROR@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
Lloh47:
	adrp	x1, l_.str.3@PAGE
Lloh48:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_elog
LBB0_15:
	ldr	x1, [sp, #40]
Lloh49:
	adrp	x8, _RelationRelationId@GOTPAGE
Lloh50:
	ldr	x8, [x8, _RelationRelationId@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_17
; %bb.16:
	ldr	x1, [sp, #48]
	mov	x0, x19
	bl	_extension_config_remove
	ldr	x1, [sp, #40]
LBB0_17:
	ldr	x0, [sp, #48]
	bl	_removeExtObjInitPriv
LBB0_18:
	ldr	x0, [x25]
	mov	x1, x19
	mov	w2, #0
	bl	_InvokeObjectPostAlterHook
	ldr	x0, [sp, #32]
	cbz	x0, LBB0_20
; %bb.19:
Lloh52:
	adrp	x8, _NoLock@GOTPAGE
Lloh53:
	ldr	x8, [x8, _NoLock@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	bl	_relation_close
LBB0_20:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_ExtensionRelationId,8,3        ; @ExtensionRelationId
	.comm	_ACLCHECK_NOT_OWNER,4,2         ; @ACLCHECK_NOT_OWNER
	.comm	_OBJECT_EXTENSION,4,2           ; @OBJECT_EXTENSION
	.comm	_ShareUpdateExclusiveLock,4,2   ; @ShareUpdateExclusiveLock
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE,4,2 ; @ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s is already a member of extension \"%s\""

	.comm	_NamespaceRelationId,8,3        ; @NamespaceRelationId
l_.str.1:                               ; @.str.1
	.asciz	"cannot add schema \"%s\" to extension \"%s\" because the schema contains the extension"

	.comm	_DEPENDENCY_EXTENSION,4,2       ; @DEPENDENCY_EXTENSION
l_.str.2:                               ; @.str.2
	.asciz	"%s is not a member of extension \"%s\""

l_.str.3:                               ; @.str.3
	.asciz	"unexpected number of extension dependency records"

	.comm	_RelationRelationId,8,3         ; @RelationRelationId
	.comm	_NoLock,4,2                     ; @NoLock
.subsections_via_symbols
