	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AddSubscriptionRelState        ## -- Begin function AddSubscriptionRelState
	.p2align	4, 0x90
_AddSubscriptionRelState:               ## @AddSubscriptionRelState
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_Natts_pg_subscription_rel@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_SubscriptionRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_LockSharedObject
	movq	_SubscriptionRelRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_SUBSCRIPTIONRELMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r13d, %ebx
	movl	%r13d, %edi
	callq	_ObjectIdGetDatum
	movl	%eax, %r13d
	movl	%r14d, %edi
	callq	_ObjectIdGetDatum
	movl	%r15d, %edi
	movl	%r13d, %esi
	movl	%ebx, %r13d
	movl	%eax, %edx
	callq	_SearchSysCacheCopy2
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	callq	_elog
LBB0_2:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movl	%r14d, %edi
	callq	_ObjectIdGetDatum
	movq	_Anum_pg_subscription_rel_srsubid@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	%eax, -4(%r12,%rcx,4)
	movl	%r13d, %edi
	callq	_ObjectIdGetDatum
	movq	_Anum_pg_subscription_rel_srrelid@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	%eax, -4(%r12,%rcx,4)
	movsbl	-52(%rbp), %edi                 ## 1-byte Folded Reload
	callq	_CharGetDatum
	movq	_Anum_pg_subscription_rel_srsubstate@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	%eax, -4(%r12,%rcx,4)
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	movq	%r15, %rcx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	cmpq	%rdi, (%rdx)
	je	LBB0_4
## %bb.3:
	callq	_LSNGetDatum
	movq	%r12, %rcx
LBB0_4:
	movq	_Anum_pg_subscription_rel_srsublsn@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	movl	%eax, -4(%rcx,%rdx,4)
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_RelationGetDescr
	movl	%eax, %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_heap_form_tuple
	movl	%eax, %ebx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_CatalogTupleInsert
	movl	%ebx, %edi
	callq	_heap_freetuple
	movq	_NoLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_table_close
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	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_subscription_rel,4,2  ## @Natts_pg_subscription_rel
	.comm	_SubscriptionRelationId,4,2     ## @SubscriptionRelationId
	.comm	_AccessShareLock,4,2            ## @AccessShareLock
	.comm	_SubscriptionRelRelationId,4,2  ## @SubscriptionRelRelationId
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_SUBSCRIPTIONRELMAP,4,2         ## @SUBSCRIPTIONRELMAP
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"subscription table %u in subscription %u already exists"

	.comm	_Anum_pg_subscription_rel_srsubid,4,2 ## @Anum_pg_subscription_rel_srsubid
	.comm	_Anum_pg_subscription_rel_srrelid,4,2 ## @Anum_pg_subscription_rel_srrelid
	.comm	_Anum_pg_subscription_rel_srsubstate,4,2 ## @Anum_pg_subscription_rel_srsubstate
	.comm	_InvalidXLogRecPtr,8,3          ## @InvalidXLogRecPtr
	.comm	_Anum_pg_subscription_rel_srsublsn,4,2 ## @Anum_pg_subscription_rel_srsublsn
	.comm	_NoLock,4,2                     ## @NoLock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AddSubscriptionRelState        ; -- Begin function AddSubscriptionRelState
	.p2align	2
_AddSubscriptionRelState:               ; @AddSubscriptionRelState
	.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, #16
	mov	x21, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, 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_subscription_rel@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Natts_pg_subscription_rel@GOTPAGEOFF]
Lloh5:
	ldr	w28, [x8]
	lsl	x8, x28, #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	x19, x9, x12
	mov	sp, x19
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x20, x8, x12
	mov	sp, x20
Lloh10:
	adrp	x8, _SubscriptionRelationId@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SubscriptionRelationId@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _AccessShareLock@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AccessShareLock@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x1, x25
	mov	w2, #0
	bl	_LockSharedObject
Lloh16:
	adrp	x8, _SubscriptionRelRelationId@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SubscriptionRelRelationId@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _RowExclusiveLock@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RowExclusiveLock@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_table_open
	mov	x22, x0
Lloh22:
	adrp	x8, _SUBSCRIPTIONRELMAP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SUBSCRIPTIONRELMAP@GOTPAGEOFF]
Lloh24:
	ldr	w26, [x8]
	mov	x0, x24
	bl	_ObjectIdGetDatum
	mov	x27, x0
	mov	x0, x25
	bl	_ObjectIdGetDatum
	mov	x2, x0
	mov	x0, x26
	mov	x1, x27
	bl	_SearchSysCacheCopy2
	bl	_HeapTupleIsValid
	cbz	x0, LBB0_2
; %bb.1:
Lloh25:
	adrp	x8, _ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	mov	x3, x25
	bl	_elog
LBB0_2:
	lsl	w26, w28, #2
	mov	x0, x20
	mov	w1, #0
	mov	x2, x26
	bl	_memset
	mov	x0, x19
	mov	w1, #0
	mov	x2, x26
	bl	_memset
	mov	x0, x25
	bl	_ObjectIdGetDatum
Lloh30:
	adrp	x8, _Anum_pg_subscription_rel_srsubid@GOTPAGE
Lloh31:
	ldr	x8, [x8, _Anum_pg_subscription_rel_srsubid@GOTPAGEOFF]
Lloh32:
	ldrsw	x8, [x8]
	add	x8, x20, x8, lsl #2
	stur	w0, [x8, #-4]
	mov	x0, x24
	bl	_ObjectIdGetDatum
Lloh33:
	adrp	x8, _Anum_pg_subscription_rel_srrelid@GOTPAGE
Lloh34:
	ldr	x8, [x8, _Anum_pg_subscription_rel_srrelid@GOTPAGEOFF]
Lloh35:
	ldrsw	x8, [x8]
	add	x8, x20, x8, lsl #2
	stur	w0, [x8, #-4]
	mov	x0, x23
	bl	_CharGetDatum
Lloh36:
	adrp	x8, _Anum_pg_subscription_rel_srsubstate@GOTPAGE
Lloh37:
	ldr	x8, [x8, _Anum_pg_subscription_rel_srsubstate@GOTPAGEOFF]
Lloh38:
	ldrsw	x8, [x8]
	add	x8, x20, x8, lsl #2
	stur	w0, [x8, #-4]
Lloh39:
	adrp	x8, _InvalidXLogRecPtr@GOTPAGE
Lloh40:
	ldr	x8, [x8, _InvalidXLogRecPtr@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #1
	mov	x8, x19
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_LSNGetDatum
	mov	x8, x20
LBB0_5:
Lloh42:
	adrp	x9, _Anum_pg_subscription_rel_srsublsn@GOTPAGE
Lloh43:
	ldr	x9, [x9, _Anum_pg_subscription_rel_srsublsn@GOTPAGEOFF]
Lloh44:
	ldrsw	x9, [x9]
	add	x8, x8, x9, lsl #2
	stur	w0, [x8, #-4]
	mov	x0, x22
	bl	_RelationGetDescr
	mov	x1, x20
	mov	x2, x19
	bl	_heap_form_tuple
	mov	x19, x0
	mov	x0, x22
	mov	x1, x19
	bl	_CatalogTupleInsert
	mov	x0, x19
	bl	_heap_freetuple
Lloh45:
	adrp	x8, _NoLock@GOTPAGE
Lloh46:
	ldr	x8, [x8, _NoLock@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_table_close
	ldur	x8, [x29, #-88]
Lloh48:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh49:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh50:
	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	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_Natts_pg_subscription_rel,4,2  ; @Natts_pg_subscription_rel
	.comm	_SubscriptionRelationId,4,2     ; @SubscriptionRelationId
	.comm	_AccessShareLock,4,2            ; @AccessShareLock
	.comm	_SubscriptionRelRelationId,4,2  ; @SubscriptionRelRelationId
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_SUBSCRIPTIONRELMAP,4,2         ; @SUBSCRIPTIONRELMAP
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"subscription table %u in subscription %u already exists"

	.comm	_Anum_pg_subscription_rel_srsubid,4,2 ; @Anum_pg_subscription_rel_srsubid
	.comm	_Anum_pg_subscription_rel_srrelid,4,2 ; @Anum_pg_subscription_rel_srrelid
	.comm	_Anum_pg_subscription_rel_srsubstate,4,2 ; @Anum_pg_subscription_rel_srsubstate
	.comm	_InvalidXLogRecPtr,8,3          ; @InvalidXLogRecPtr
	.comm	_Anum_pg_subscription_rel_srsublsn,4,2 ; @Anum_pg_subscription_rel_srsublsn
	.comm	_NoLock,4,2                     ; @NoLock
.subsections_via_symbols
