	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AlterPublication               ## -- Begin function AlterPublication
	.p2align	4, 0x90
_AlterPublication:                      ## @AlterPublication
	.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
	movq	%rdi, %r15
	movq	_PublicationRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_table_open
	movl	%eax, %r14d
	movq	_PUBLICATIONNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	8(%r15), %edi
	callq	_CStringGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCacheCopy1
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movq	%r12, %rbx
	movl	(%rax), %r12d
	movq	_ERRCODE_UNDEFINED_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	8(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%r12d, %edi
	movq	%rbx, %r12
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movl	%r13d, %edi
	callq	_GETSTRUCT
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_GetUserId
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pg_publication_ownercheck
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	cmpq	$0, (%r15)
	je	LBB0_6
LBB0_5:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_AlterPublicationOptions
	jmp	LBB0_7
LBB0_3:
	movq	_ACLCHECK_NOT_OWNER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OBJECT_PUBLICATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %edx
	callq	_aclcheck_error
	cmpq	$0, (%r15)
	jne	LBB0_5
LBB0_6:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_AlterPublicationTables
LBB0_7:
	movl	%r13d, %edi
	callq	_heap_freetuple
	movl	(%r12), %esi
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_table_close                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PublicationRelationId,4,2      ## @PublicationRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_PUBLICATIONNAME,4,2            ## @PUBLICATIONNAME
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ## @ERRCODE_UNDEFINED_OBJECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"publication \"%s\" does not exist"

	.comm	_ACLCHECK_NOT_OWNER,4,2         ## @ACLCHECK_NOT_OWNER
	.comm	_OBJECT_PUBLICATION,4,2         ## @OBJECT_PUBLICATION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AlterPublication               ; -- Begin function AlterPublication
	.p2align	2
_AlterPublication:                      ; @AlterPublication
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _PublicationRelationId@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PublicationRelationId@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x23, _RowExclusiveLock@GOTPAGE
Lloh4:
	ldr	x23, [x23, _RowExclusiveLock@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_table_open
	mov	x19, x0
Lloh5:
	adrp	x8, _PUBLICATIONNAME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PUBLICATIONNAME@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	ldr	w0, [x20, #8]
	bl	_CStringGetDatum
	mov	x1, x0
	mov	x0, x21
	bl	_SearchSysCacheCopy1
	mov	x21, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
Lloh11:
	adrp	x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w1, [x20, #8]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_2:
	mov	x0, x21
	bl	_GETSTRUCT
	ldr	w22, [x0]
	bl	_GetUserId
	mov	x1, x0
	mov	x0, x22
	bl	_pg_publication_ownercheck
	cbz	w0, LBB0_5
; %bb.3:
	ldr	x8, [x20]
	cbz	x8, LBB0_6
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_AlterPublicationOptions
	b	LBB0_7
LBB0_5:
Lloh16:
	adrp	x8, _ACLCHECK_NOT_OWNER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ACLCHECK_NOT_OWNER@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _OBJECT_PUBLICATION@GOTPAGE
Lloh20:
	ldr	x8, [x8, _OBJECT_PUBLICATION@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	bl	_aclcheck_error
	ldr	x8, [x20]
	cbnz	x8, LBB0_4
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_AlterPublicationTables
LBB0_7:
	mov	x0, x21
	bl	_heap_freetuple
	ldr	w1, [x23]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_table_close
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PublicationRelationId,4,2      ; @PublicationRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_PUBLICATIONNAME,4,2            ; @PUBLICATIONNAME
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ; @ERRCODE_UNDEFINED_OBJECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"publication \"%s\" does not exist"

	.comm	_ACLCHECK_NOT_OWNER,4,2         ; @ACLCHECK_NOT_OWNER
	.comm	_OBJECT_PUBLICATION,4,2         ; @OBJECT_PUBLICATION
.subsections_via_symbols
