	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_publication_add_relation       ## -- Begin function publication_add_relation
	.p2align	4, 0x90
_publication_add_relation:              ## @publication_add_relation
	.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
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_Natts_pg_publication_rel@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	(,%r14,4), %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movl	%r12d, %edi
	callq	_RelationGetRelid
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_GetPublication
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_PublicationRelRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_PUBLICATIONRELMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_ObjectIdGetDatum
	movl	%eax, %r12d
	movl	%r15d, -64(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	callq	_ObjectIdGetDatum
	movl	%r13d, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_SearchSysCacheExists2
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_table_close
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_3
## %bb.2:
	movq	_InvalidObjectAddress@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
LBB0_3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ERRCODE_DUPLICATE_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	%ebx, %edi
	callq	_RelationGetRelationName
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_4:
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_check_publication_add_relation
	shll	$2, %r14d
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_memset
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_memset
	movq	_PublicationRelObjectIndexId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_Anum_pg_publication_rel_oid@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	_GetNewOidWithIndex
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_ObjectIdGetDatum
	movslq	(%r15), %rcx
	movl	%eax, -4(%r13,%rcx,4)
	movl	-64(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_ObjectIdGetDatum
	movq	_Anum_pg_publication_rel_prpubid@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	%eax, -4(%r13,%rcx,4)
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_ObjectIdGetDatum
	movq	_Anum_pg_publication_rel_prrelid@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	%eax, -4(%r13,%rcx,4)
	movl	%r12d, %edi
	callq	_RelationGetDescr
	movl	%eax, %edi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_heap_form_tuple
	movl	%eax, %ebx
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_CatalogTupleInsert
	movl	%ebx, %edi
	callq	_heap_freetuple
	movq	_PublicationRelRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_ObjectAddressSet
	movq	_PublicationRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_ObjectAddressSet
	movq	_DEPENDENCY_AUTO@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-100(%rbp), %rbx
	leaq	-72(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_recordDependencyOn
	movl	-72(%rbp), %edi
	movq	_RelationRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_ObjectAddressSet
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_recordDependencyOn
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_table_close
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_CacheInvalidateRelcache
LBB0_5:
	movl	(%rbx), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_Natts_pg_publication_rel,4,2   ## @Natts_pg_publication_rel
	.comm	_PublicationRelRelationId,4,2   ## @PublicationRelRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_PUBLICATIONRELMAP,4,2          ## @PUBLICATIONRELMAP
	.comm	_InvalidObjectAddress,4,2       ## @InvalidObjectAddress
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_DUPLICATE_OBJECT,4,2   ## @ERRCODE_DUPLICATE_OBJECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"relation \"%s\" is already member of publication \"%s\""

	.comm	_PublicationRelObjectIndexId,4,2 ## @PublicationRelObjectIndexId
	.comm	_Anum_pg_publication_rel_oid,4,2 ## @Anum_pg_publication_rel_oid
	.comm	_Anum_pg_publication_rel_prpubid,4,2 ## @Anum_pg_publication_rel_prpubid
	.comm	_Anum_pg_publication_rel_prrelid,4,2 ## @Anum_pg_publication_rel_prrelid
	.comm	_PublicationRelationId,4,2      ## @PublicationRelationId
	.comm	_DEPENDENCY_AUTO,4,2            ## @DEPENDENCY_AUTO
	.comm	_RelationRelationId,4,2         ## @RelationRelationId
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_publication_add_relation       ; -- Begin function publication_add_relation
	.p2align	2
_publication_add_relation:              ; @publication_add_relation
	.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, #32
	mov	x25, x2
	mov	x26, x1
	mov	x20, x0
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	x8, _Natts_pg_publication_rel@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Natts_pg_publication_rel@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	lsl	x8, x19, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x23, x9, x12
	mov	sp, x23
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x24, x8, x12
	mov	sp, x24
	mov	x0, x1
	bl	_RelationGetRelid
	mov	x28, x0
	mov	x0, x20
	bl	_GetPublication
	stur	x0, [x29, #-112]                ; 8-byte Folded Spill
Lloh10:
	adrp	x8, _PublicationRelRelationId@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PublicationRelRelationId@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x21, _RowExclusiveLock@GOTPAGE
Lloh14:
	ldr	x21, [x21, _RowExclusiveLock@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_table_open
	mov	x22, x0
Lloh15:
	adrp	x8, _PUBLICATIONRELMAP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PUBLICATIONRELMAP@GOTPAGEOFF]
Lloh17:
	ldr	w27, [x8]
	stur	w28, [x29, #-100]               ; 4-byte Folded Spill
	mov	x0, x28
	bl	_ObjectIdGetDatum
	mov	x28, x0
	mov	x0, x20
	bl	_ObjectIdGetDatum
	mov	x2, x0
	mov	x0, x27
	mov	x27, x21
	mov	x1, x28
	bl	_SearchSysCacheExists2
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w1, [x27]
	mov	x0, x22
	bl	_table_close
	cbz	w25, LBB0_3
; %bb.2:
Lloh18:
	adrp	x19, _InvalidObjectAddress@GOTPAGE
Lloh19:
	ldr	x19, [x19, _InvalidObjectAddress@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh20:
	adrp	x8, _ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w25, [x8]
Lloh23:
	adrp	x8, _ERRCODE_DUPLICATE_OBJECT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERRCODE_DUPLICATE_OBJECT@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x26
	bl	_RelationGetRelationName
	mov	x1, x0
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	ldr	w2, [x8]
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_4:
	mov	x0, x26
	bl	_check_publication_add_relation
	lsl	w25, w19, #2
	mov	x0, x23
	mov	w1, #0
	mov	x2, x25
	bl	_memset
	mov	x0, x24
	mov	w1, #0
	mov	x2, x25
	bl	_memset
Lloh28:
	adrp	x8, _PublicationRelObjectIndexId@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PublicationRelObjectIndexId@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x19, _Anum_pg_publication_rel_oid@GOTPAGE
Lloh32:
	ldr	x19, [x19, _Anum_pg_publication_rel_oid@GOTPAGEOFF]
	ldr	w2, [x19]
	mov	x0, x22
	bl	_GetNewOidWithIndex
	mov	x25, x0
	bl	_ObjectIdGetDatum
	ldrsw	x8, [x19]
	add	x8, x23, x8, lsl #2
	stur	w0, [x8, #-4]
	mov	x0, x20
	bl	_ObjectIdGetDatum
Lloh33:
	adrp	x8, _Anum_pg_publication_rel_prpubid@GOTPAGE
Lloh34:
	ldr	x8, [x8, _Anum_pg_publication_rel_prpubid@GOTPAGEOFF]
Lloh35:
	ldrsw	x8, [x8]
	add	x8, x23, x8, lsl #2
	stur	w0, [x8, #-4]
	ldur	w21, [x29, #-100]               ; 4-byte Folded Reload
	mov	x0, x21
	bl	_ObjectIdGetDatum
Lloh36:
	adrp	x8, _Anum_pg_publication_rel_prrelid@GOTPAGE
Lloh37:
	ldr	x8, [x8, _Anum_pg_publication_rel_prrelid@GOTPAGEOFF]
Lloh38:
	ldrsw	x8, [x8]
	add	x8, x23, x8, lsl #2
	stur	w0, [x8, #-4]
	mov	x0, x22
	bl	_RelationGetDescr
	mov	x1, x23
	mov	x2, x24
	bl	_heap_form_tuple
	mov	x23, x0
	mov	x0, x22
	mov	x1, x23
	bl	_CatalogTupleInsert
	mov	x0, x23
	bl	_heap_freetuple
Lloh39:
	adrp	x8, _PublicationRelRelationId@GOTPAGE
Lloh40:
	ldr	x8, [x8, _PublicationRelRelationId@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x2, x25
	bl	_ObjectAddressSet
Lloh42:
	adrp	x8, _PublicationRelationId@GOTPAGE
Lloh43:
	ldr	x8, [x8, _PublicationRelationId@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_ObjectAddressSet
Lloh45:
	adrp	x20, _DEPENDENCY_AUTO@GOTPAGE
Lloh46:
	ldr	x20, [x20, _DEPENDENCY_AUTO@GOTPAGEOFF]
	ldr	w2, [x20]
	sub	x19, x29, #92
	sub	x0, x29, #92
	sub	x1, x29, #96
	bl	_recordDependencyOn
	ldur	w0, [x29, #-96]
Lloh47:
	adrp	x8, _RelationRelationId@GOTPAGE
Lloh48:
	ldr	x8, [x8, _RelationRelationId@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_ObjectAddressSet
	ldr	w2, [x20]
	sub	x0, x29, #92
	sub	x1, x29, #96
	bl	_recordDependencyOn
	ldr	w1, [x27]
	mov	x0, x22
	bl	_table_close
	mov	x0, x26
	bl	_CacheInvalidateRelcache
LBB0_5:
	ldr	w0, [x19]
	ldur	x8, [x29, #-88]
Lloh50:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh51:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	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_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_Natts_pg_publication_rel,4,2   ; @Natts_pg_publication_rel
	.comm	_PublicationRelRelationId,4,2   ; @PublicationRelRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_PUBLICATIONRELMAP,4,2          ; @PUBLICATIONRELMAP
	.comm	_InvalidObjectAddress,4,2       ; @InvalidObjectAddress
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_DUPLICATE_OBJECT,4,2   ; @ERRCODE_DUPLICATE_OBJECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"relation \"%s\" is already member of publication \"%s\""

	.comm	_PublicationRelObjectIndexId,4,2 ; @PublicationRelObjectIndexId
	.comm	_Anum_pg_publication_rel_oid,4,2 ; @Anum_pg_publication_rel_oid
	.comm	_Anum_pg_publication_rel_prpubid,4,2 ; @Anum_pg_publication_rel_prpubid
	.comm	_Anum_pg_publication_rel_prrelid,4,2 ; @Anum_pg_publication_rel_prrelid
	.comm	_PublicationRelationId,4,2      ; @PublicationRelationId
	.comm	_DEPENDENCY_AUTO,4,2            ; @DEPENDENCY_AUTO
	.comm	_RelationRelationId,4,2         ; @RelationRelationId
.subsections_via_symbols
