	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_replication_slot
_copy_replication_slot:                 ## @copy_replication_slot
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%edi, %edi
	callq	_PG_GETARG_NAME
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	callq	_PG_GETARG_NAME
	movq	%rax, %r14
	leaq	-96(%rbp), %rdx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_get_call_result_type
	movq	_TYPEFUNC_COMPOSITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_2:
	xorl	%eax, %eax
	callq	_check_permissions
	testl	%r15d, %r15d
	movl	%r15d, -72(%rbp)                ## 4-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_CheckLogicalDecodingRequirements
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	callq	_CheckSlotRequirements
LBB0_5:
	movq	_ReplicationSlotControlLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LW_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	_max_replication_slots@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.6:
	xorl	%ebx, %ebx
	movq	_ReplicationSlotCtl@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	addq	$80, %rbx
	cmpq	%rcx, %r13
	jge	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rcx
	movq	(%rcx), %r15
	cmpq	$0, 72(%r15,%rbx)
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	24(%r15,%rbx), %edi
	callq	_NameStr
	movq	%rax, %r14
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_NameStr
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_21
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_max_replication_slots@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_11:
	movq	_ReplicationSlotControlLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWLockRelease
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_UNDEFINED_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	callq	_NameStr
	leaq	L_.str.1(%rip), %rdi
	xorl	%r13d, %r13d
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
                                        ## implicit-def: $r12d
                                        ## implicit-def: $rax
                                        ## kill: killed $rax
	movq	-88(%rbp), %r15                 ## 8-byte Reload
LBB0_12:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	(%rbx), %edi
	callq	_NameStr
	testl	%r12d, %r12d
	leaq	L_.str.3(%rip), %rcx
	leaq	L_.str.2(%rip), %rdi
	cmoveq	%rcx, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
	movl	%r12d, %ecx
LBB0_13:
	movl	%ecx, -92(%rbp)                 ## 4-byte Spill
	movq	-128(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	callq	_XLogRecPtrIsInvalid
	testq	%rax, %rax
	movl	-72(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_15
## %bb.14:
	xorl	%edi, %edi
	testl	%r14d, %r14d
	sete	%dil
	callq	_Assert
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_15:
	xorl	%eax, %eax
	callq	_PG_NARGS
	cmpl	$3, %eax
	jl	LBB0_17
## %bb.16:
	movl	$2, %edi
	callq	_PG_GETARG_BOOL
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
LBB0_17:
	xorl	%eax, %eax
	callq	_PG_NARGS
	cmpl	$4, %eax
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	jl	LBB0_19
## %bb.18:
	movl	%r14d, %edi
	callq	_Assert
	movl	$3, %edi
	callq	_PG_GETARG_NAME
	movl	(%rax), %edi
	callq	_NameStr
	movq	%rax, %rbx
LBB0_19:
	movl	(%r15), %edi
	callq	_NameStr
	movq	%rax, %rdi
	testl	%r14d, %r14d
	je	LBB0_25
## %bb.20:
	movq	%rbx, %rsi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %rcx
	callq	_create_logical_replication_slot
	jmp	LBB0_26
LBB0_25:
	movl	$1, %esi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %rcx
	callq	_create_physical_replication_slot
LBB0_26:
	movq	%r13, %rdi
	callq	_SpinLockAcquire
	movups	56(%r13), %xmm0
	movaps	%xmm0, -128(%rbp)               ## 16-byte Spill
	movups	32(%r13), %xmm0
	movaps	%xmm0, -112(%rbp)               ## 16-byte Spill
	movq	8(%r13), %r14
	movl	24(%r13), %edi
	callq	_NameStr
	movq	%rax, %rdi
	callq	_pstrdup
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_SlotIsLogical
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_SpinLockRelease
	cmpq	%r12, %r14
	jl	LBB0_29
## %bb.27:
	cmpl	%ebx, -92(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_29
## %bb.28:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_NameStr
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_30
LBB0_29:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_NameStr
	leaq	L_.str.5(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	leaq	L_.str.6(%rip), %rdi
	callq	_errdetail
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_30:
	movq	_MyReplicationSlot@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	$32, %rdi
	callq	_SpinLockAcquire
	movq	(%rbx), %rdi
	movaps	-128(%rbp), %xmm0               ## 16-byte Reload
	movups	%xmm0, 40(%rdi)
	movaps	-112(%rbp), %xmm0               ## 16-byte Reload
	movups	%xmm0, 16(%rdi)
	movq	%r14, 8(%rdi)
	addq	$32, %rdi
	callq	_SpinLockRelease
	xorl	%eax, %eax
	callq	_ReplicationSlotMarkDirty
	xorl	%edi, %edi
	callq	_ReplicationSlotsComputeRequiredXmin
	xorl	%eax, %eax
	callq	_ReplicationSlotsComputeRequiredLSN
	xorl	%eax, %eax
	callq	_ReplicationSlotSave
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_33
## %bb.31:
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_33
## %bb.32:
	xorl	%eax, %eax
	callq	_ReplicationSlotPersist
LBB0_33:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_NameGetDatum
	movl	%eax, -56(%rbp)
	movl	$0, -64(%rbp)
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_XLogRecPtrIsInvalid
	movl	$1, %ecx
	testq	%rax, %rax
	jne	LBB0_35
## %bb.34:
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_LSNGetDatum
	movl	%eax, -52(%rbp)
	xorl	%ecx, %ecx
LBB0_35:
	movl	%ecx, -60(%rbp)
	movl	-96(%rbp), %edi
	leaq	-56(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	callq	_heap_form_tuple
	movl	%eax, %edi
	callq	_HeapTupleGetDatum
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_ReplicationSlotRelease
	movl	%ebx, %edi
	callq	_PG_RETURN_DATUM
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_37
## %bb.36:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	leaq	(%r15,%rbx), %r13
	movq	%r13, %rdi
	callq	_SpinLockAcquire
	movq	%r13, %rdi
	callq	_SlotIsLogical
	movl	%eax, %r12d
	movq	8(%r15,%rbx), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	16(%r15,%rbx), %rax
	movq	_RS_TEMPORARY@GOTPCREL(%rip), %rcx
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
	cmpq	(%rcx), %rax
	sete	%r14b
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_22
## %bb.24:
	movl	48(%r15,%rbx), %edi
	callq	_NameStr
	movq	%rax, %rdi
	callq	_pstrdup
	jmp	LBB0_23
LBB0_22:
	xorl	%eax, %eax
LBB0_23:
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movb	%r14b, %al
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_SpinLockRelease
	movq	_ReplicationSlotControlLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWLockRelease
	movl	-72(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %ecx
	cmpl	%eax, %r12d
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_12
	jmp	LBB0_13
LBB0_37:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPEFUNC_COMPOSITE,8,3         ## @TYPEFUNC_COMPOSITE
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"return type must be a row type"

	.comm	_ReplicationSlotControlLock,4,2 ## @ReplicationSlotControlLock
	.comm	_LW_SHARED,4,2                  ## @LW_SHARED
	.comm	_max_replication_slots,4,2      ## @max_replication_slots
	.comm	_ReplicationSlotCtl,8,3         ## @ReplicationSlotCtl
	.comm	_RS_TEMPORARY,8,3               ## @RS_TEMPORARY
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ## @ERRCODE_UNDEFINED_OBJECT
L_.str.1:                               ## @.str.1
	.asciz	"replication slot \"%s\" does not exist"

	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
L_.str.2:                               ## @.str.2
	.asciz	"cannot copy physical replication slot \"%s\" as a logical replication slot"

L_.str.3:                               ## @.str.3
	.asciz	"cannot copy logical replication slot \"%s\" as a physical replication slot"

L_.str.4:                               ## @.str.4
	.asciz	"cannot copy a replication slot that doesn't reserve WAL"

L_.str.5:                               ## @.str.5
	.asciz	"could not copy replication slot \"%s\""

L_.str.6:                               ## @.str.6
	.asciz	"The source replication slot was modified incompatibly during the copy operation."

	.comm	_MyReplicationSlot,8,3          ## @MyReplicationSlot
	.comm	_wal_segment_size,4,2           ## @wal_segment_size
	.no_dead_strip	_copy_replication_slot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_replication_slot
_copy_replication_slot:                 ; @copy_replication_slot
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x28, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	mov	w0, #0
	bl	_PG_GETARG_NAME
	mov	x21, x0
	mov	w0, #1
	bl	_PG_GETARG_NAME
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	add	x2, sp, #36
	mov	x0, x22
	mov	x1, #0
	bl	_get_call_result_type
Lloh3:
	adrp	x8, _TYPEFUNC_COMPOSITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TYPEFUNC_COMPOSITE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _ERROR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ERROR@GOTPAGEOFF]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x9]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
	bl	_check_permissions
	cbz	w28, LBB0_4
; %bb.3:
	bl	_CheckLogicalDecodingRequirements
	b	LBB0_5
LBB0_4:
	bl	_CheckSlotRequirements
LBB0_5:
Lloh10:
	adrp	x27, _ReplicationSlotControlLock@GOTPAGE
Lloh11:
	ldr	x27, [x27, _ReplicationSlotControlLock@GOTPAGEOFF]
	ldr	w0, [x27]
Lloh12:
	adrp	x8, _LW_SHARED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LW_SHARED@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh15:
	adrp	x19, _max_replication_slots@GOTPAGE
Lloh16:
	ldr	x19, [x19, _max_replication_slots@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.6:
	mov	x20, #0
	mov	x23, #0
Lloh17:
	adrp	x24, _ReplicationSlotCtl@GOTPAGE
Lloh18:
	ldr	x24, [x24, _ReplicationSlotCtl@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	add	x20, x20, #80
	cmp	x23, w8, sxtw
	b.ge	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24]
	ldr	x25, [x9]
	add	x9, x25, x20
	ldr	x10, [x9, #72]
	cbz	x10, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x9, #24]
	bl	_NameStr
	mov	x22, x0
	ldr	w0, [x21]
	bl	_NameStr
	mov	x1, x0
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_33
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19]
	b	LBB0_7
LBB0_11:
	ldr	w0, [x27]
	bl	_LWLockRelease
Lloh19:
	adrp	x19, _ERROR@GOTPAGE
Lloh20:
	ldr	x19, [x19, _ERROR@GOTPAGEOFF]
	ldr	w22, [x19]
Lloh21:
	adrp	x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w0, [x21]
	bl	_NameStr
	str	x0, [sp]
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
	mov	x23, #0
                                        ; implicit-def: $x25
                                        ; implicit-def: $w20
                                        ; implicit-def: $w26
                                        ; implicit-def: $x22
Lloh26:
	adrp	x24, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh27:
	ldr	x24, [x24, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
LBB0_12:
	ldr	w27, [x19]
	ldr	w0, [x24]
	bl	_errcode
	ldr	w0, [x21]
	bl	_NameStr
Lloh28:
	adrp	x8, l_.str.2@PAGE
Lloh29:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh30:
	adrp	x9, l_.str.3@PAGE
Lloh31:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w26, #0
	csel	x8, x9, x8, eq
	str	x0, [sp]
	mov	x0, x8
	bl	_errmsg
	mov	x1, x0
	mov	x0, x27
	bl	_ereport
	mov	x8, x26
LBB0_13:
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
	mov	x0, x22
	bl	_XLogRecPtrIsInvalid
	cbz	x0, LBB0_15
; %bb.14:
	cmp	w28, #0
	cset	w0, eq
	bl	_Assert
	ldr	w26, [x19]
	ldr	w0, [x24]
	bl	_errcode
Lloh32:
	adrp	x0, l_.str.4@PAGE
Lloh33:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x26
	bl	_ereport
LBB0_15:
	bl	_PG_NARGS
	cmp	w0, #3
	b.lt	LBB0_17
; %bb.16:
	mov	w0, #2
	bl	_PG_GETARG_BOOL
	mov	x20, x0
LBB0_17:
	bl	_PG_NARGS
	cmp	w0, #3
	b.le	LBB0_19
; %bb.18:
	mov	x0, x28
	bl	_Assert
	mov	w0, #3
	bl	_PG_GETARG_NAME
	ldr	w0, [x0]
	bl	_NameStr
	mov	x25, x0
LBB0_19:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w0, [x8]
	bl	_NameStr
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
	str	w28, [sp, #20]                  ; 4-byte Folded Spill
	cbz	w28, LBB0_21
; %bb.20:
	mov	x1, x25
	mov	x2, x20
	mov	x3, x22
	bl	_create_logical_replication_slot
	b	LBB0_22
LBB0_21:
	mov	w1, #1
	mov	x2, x20
	mov	x3, x22
	bl	_create_physical_replication_slot
LBB0_22:
	mov	x0, x23
	bl	_SpinLockAcquire
	ldp	x24, x20, [x23, #56]
	ldp	x27, x19, [x23, #32]
	ldr	x28, [x23, #8]
	ldr	w0, [x23, #24]
	bl	_NameStr
	bl	_pstrdup
	mov	x25, x0
	mov	x0, x23
	bl	_SlotIsLogical
	mov	x26, x0
	mov	x0, x23
	bl	_SpinLockRelease
	cmp	x28, x22
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	ccmp	w8, w26, #0, ge
	b.ne	LBB0_24
; %bb.23:
	ldr	w0, [x21]
	bl	_NameStr
	mov	x1, x0
	mov	x0, x25
	bl	_strcmp
	cbz	x0, LBB0_25
LBB0_24:
Lloh34:
	adrp	x8, _ERROR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh36:
	ldr	w23, [x8]
	ldr	w0, [x21]
	bl	_NameStr
	str	x0, [sp]
Lloh37:
	adrp	x0, l_.str.5@PAGE
Lloh38:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_errmsg
Lloh39:
	adrp	x0, l_.str.6@PAGE
Lloh40:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_errdetail
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_25:
Lloh41:
	adrp	x21, _MyReplicationSlot@GOTPAGE
Lloh42:
	ldr	x21, [x21, _MyReplicationSlot@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x0, x8, #32
	bl	_SpinLockAcquire
	ldr	x8, [x21]
	stp	x24, x20, [x8, #40]
	stp	x27, x19, [x8, #16]
	str	x28, [x8, #8]
	add	x0, x8, #32
	bl	_SpinLockRelease
	bl	_ReplicationSlotMarkDirty
	mov	w0, #0
	bl	_ReplicationSlotsComputeRequiredXmin
	bl	_ReplicationSlotsComputeRequiredLSN
	bl	_ReplicationSlotSave
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_28
; %bb.26:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbnz	w8, LBB0_28
; %bb.27:
	bl	_ReplicationSlotPersist
LBB0_28:
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_NameGetDatum
	str	w0, [sp, #48]
	str	wzr, [sp, #40]
	ldr	x8, [x21]
	ldr	x0, [x8]
	bl	_XLogRecPtrIsInvalid
	cbz	x0, LBB0_30
; %bb.29:
	mov	w8, #1
	b	LBB0_31
LBB0_30:
	ldr	x8, [x21]
	ldr	x0, [x8]
	bl	_LSNGetDatum
	mov	w8, #0
	str	w0, [sp, #52]
LBB0_31:
	str	w8, [sp, #44]
	ldr	w0, [sp, #36]
	add	x1, sp, #48
	add	x2, sp, #40
	bl	_heap_form_tuple
	bl	_HeapTupleGetDatum
	mov	x19, x0
	bl	_ReplicationSlotRelease
	mov	x0, x19
	bl	_PG_RETURN_DATUM
	ldr	x8, [sp, #56]
Lloh43:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh44:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_37
; %bb.32:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_33:
	add	x23, x25, x20
	mov	x0, x23
	bl	_SpinLockAcquire
	mov	x0, x23
	bl	_SlotIsLogical
	mov	x26, x0
	ldp	x22, x8, [x23, #8]
Lloh46:
	adrp	x9, _RS_TEMPORARY@GOTPAGE
Lloh47:
	ldr	x9, [x9, _RS_TEMPORARY@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w20, eq
	cbz	w28, LBB0_35
; %bb.34:
	ldr	w0, [x23, #48]
	bl	_NameStr
	bl	_pstrdup
	mov	x25, x0
	b	LBB0_36
LBB0_35:
	mov	x25, #0
LBB0_36:
Lloh49:
	adrp	x19, _ERROR@GOTPAGE
Lloh50:
	ldr	x19, [x19, _ERROR@GOTPAGEOFF]
Lloh51:
	adrp	x24, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh52:
	ldr	x24, [x24, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
	mov	x0, x23
	bl	_SpinLockRelease
	ldr	w0, [x27]
	bl	_LWLockRelease
	mov	x8, x28
	cmp	w26, w28
	b.ne	LBB0_12
	b	LBB0_13
LBB0_37:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPEFUNC_COMPOSITE,8,3         ; @TYPEFUNC_COMPOSITE
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"return type must be a row type"

	.comm	_ReplicationSlotControlLock,4,2 ; @ReplicationSlotControlLock
	.comm	_LW_SHARED,4,2                  ; @LW_SHARED
	.comm	_max_replication_slots,4,2      ; @max_replication_slots
	.comm	_ReplicationSlotCtl,8,3         ; @ReplicationSlotCtl
	.comm	_RS_TEMPORARY,8,3               ; @RS_TEMPORARY
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ; @ERRCODE_UNDEFINED_OBJECT
l_.str.1:                               ; @.str.1
	.asciz	"replication slot \"%s\" does not exist"

	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
l_.str.2:                               ; @.str.2
	.asciz	"cannot copy physical replication slot \"%s\" as a logical replication slot"

l_.str.3:                               ; @.str.3
	.asciz	"cannot copy logical replication slot \"%s\" as a physical replication slot"

l_.str.4:                               ; @.str.4
	.asciz	"cannot copy a replication slot that doesn't reserve WAL"

l_.str.5:                               ; @.str.5
	.asciz	"could not copy replication slot \"%s\""

l_.str.6:                               ; @.str.6
	.asciz	"The source replication slot was modified incompatibly during the copy operation."

	.comm	_MyReplicationSlot,8,3          ; @MyReplicationSlot
	.comm	_wal_segment_size,4,2           ; @wal_segment_size
	.no_dead_strip	_copy_replication_slot
.subsections_via_symbols
