	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_publication_add_relation
_check_publication_add_relation:        ## @check_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	callq	_RelationGetForm
	movq	(%rax), %rax
	movq	_RELKIND_PARTITIONED_TABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	%ebx, %edi
	callq	_RelationGetRelationName
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	leaq	L_.str.1(%rip), %rdi
	callq	_errdetail
	leaq	L_.str.2(%rip), %rdi
	callq	_errhint
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	movl	%ebx, %edi
	callq	_RelationGetForm
	movq	(%rax), %rax
	movq	_RELKIND_RELATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	%ebx, %edi
	callq	_RelationGetRelationName
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	leaq	L_.str.4(%rip), %rdi
	callq	_errdetail
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_4:
	movl	%ebx, %edi
	callq	_IsCatalogRelation
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	%ebx, %edi
	callq	_RelationGetRelationName
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	leaq	L_.str.6(%rip), %rdi
	callq	_errdetail
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_6:
	movl	%ebx, %edi
	callq	_RelationNeedsWAL
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_INVALID_PARAMETER_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	%ebx, %edi
	callq	_RelationGetRelationName
	leaq	L_.str.7(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	leaq	L_.str.8(%rip), %rdi
	callq	_errdetail
	movl	%r14d, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RELKIND_PARTITIONED_TABLE,8,3  ## @RELKIND_PARTITIONED_TABLE
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\"%s\" is a partitioned table"

L_.str.1:                               ## @.str.1
	.asciz	"Adding partitioned tables to publications is not supported."

L_.str.2:                               ## @.str.2
	.asciz	"You can add the table partitions individually."

	.comm	_RELKIND_RELATION,8,3           ## @RELKIND_RELATION
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ## @ERRCODE_INVALID_PARAMETER_VALUE
L_.str.3:                               ## @.str.3
	.asciz	"\"%s\" is not a table"

L_.str.4:                               ## @.str.4
	.asciz	"Only tables can be added to publications."

L_.str.5:                               ## @.str.5
	.asciz	"\"%s\" is a system table"

L_.str.6:                               ## @.str.6
	.asciz	"System tables cannot be added to publications."

L_.str.7:                               ## @.str.7
	.asciz	"table \"%s\" cannot be replicated"

L_.str.8:                               ## @.str.8
	.asciz	"Temporary and unlogged relations cannot be replicated."

	.no_dead_strip	_check_publication_add_relation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_publication_add_relation
_check_publication_add_relation:        ; @check_publication_add_relation
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_RelationGetForm
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _RELKIND_PARTITIONED_TABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RELKIND_PARTITIONED_TABLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x21, _ERROR@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ERROR@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w20, [x21]
Lloh5:
	adrp	x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x19
	bl	_RelationGetRelationName
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errdetail
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_2:
	mov	x0, x19
	bl	_RelationGetForm
	ldr	x8, [x0]
Lloh14:
	adrp	x9, _RELKIND_RELATION@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RELKIND_RELATION@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
Lloh17:
	adrp	x22, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGE
Lloh18:
	ldr	x22, [x22, _ERRCODE_INVALID_PARAMETER_VALUE@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
	ldr	w20, [x21]
	ldr	w0, [x22]
	bl	_errcode
	mov	x0, x19
	bl	_RelationGetRelationName
	mov	x1, x0
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errmsg
Lloh21:
	adrp	x0, l_.str.4@PAGE
Lloh22:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errdetail
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_4:
	mov	x0, x19
	bl	_IsCatalogRelation
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w20, [x21]
	ldr	w0, [x22]
	bl	_errcode
	mov	x0, x19
	bl	_RelationGetRelationName
	mov	x1, x0
Lloh23:
	adrp	x0, l_.str.5@PAGE
Lloh24:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_errmsg
Lloh25:
	adrp	x0, l_.str.6@PAGE
Lloh26:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_errdetail
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_6:
	mov	x0, x19
	bl	_RelationNeedsWAL
	cbz	w0, LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w20, [x21]
	ldr	w0, [x22]
	bl	_errcode
	mov	x0, x19
	bl	_RelationGetRelationName
	mov	x1, x0
Lloh27:
	adrp	x0, l_.str.7@PAGE
Lloh28:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_errmsg
Lloh29:
	adrp	x0, l_.str.8@PAGE
Lloh30:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_errdetail
	mov	x1, x0
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ereport
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_RELKIND_PARTITIONED_TABLE,8,3  ; @RELKIND_PARTITIONED_TABLE
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\"%s\" is a partitioned table"

l_.str.1:                               ; @.str.1
	.asciz	"Adding partitioned tables to publications is not supported."

l_.str.2:                               ; @.str.2
	.asciz	"You can add the table partitions individually."

	.comm	_RELKIND_RELATION,8,3           ; @RELKIND_RELATION
	.comm	_ERRCODE_INVALID_PARAMETER_VALUE,4,2 ; @ERRCODE_INVALID_PARAMETER_VALUE
l_.str.3:                               ; @.str.3
	.asciz	"\"%s\" is not a table"

l_.str.4:                               ; @.str.4
	.asciz	"Only tables can be added to publications."

l_.str.5:                               ; @.str.5
	.asciz	"\"%s\" is a system table"

l_.str.6:                               ; @.str.6
	.asciz	"System tables cannot be added to publications."

l_.str.7:                               ; @.str.7
	.asciz	"table \"%s\" cannot be replicated"

l_.str.8:                               ; @.str.8
	.asciz	"Temporary and unlogged relations cannot be replicated."

	.no_dead_strip	_check_publication_add_relation
.subsections_via_symbols
