	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReplicationSlotRelease         ## -- Begin function ReplicationSlotRelease
	.p2align	4, 0x90
_ReplicationSlotRelease:                ## @ReplicationSlotRelease
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MyReplicationSlot@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	cmpq	$0, (%rbx)
	setne	%dil
LBB0_2:
	callq	_Assert
	movq	16(%rbx), %rax
	movq	_RS_EPHEMERAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_ReplicationSlotDropAcquired
LBB0_4:
	movl	24(%rbx), %edi
	callq	_TransactionIdIsValid
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movl	32(%rbx), %edi
	callq	_TransactionIdIsValid
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_SpinLockAcquire
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	%r14, %rdi
	callq	_SpinLockRelease
	xorl	%edi, %edi
	callq	_ReplicationSlotsComputeRequiredXmin
LBB0_7:
	movq	16(%rbx), %rax
	movq	_RS_PERSISTENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_SpinLockAcquire
	movq	$0, (%rbx)
	movq	%r14, %rdi
	callq	_SpinLockRelease
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_ConditionVariableBroadcast
LBB0_9:
	movq	$0, (%r15)
	movq	_ProcArrayLock@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	_PROC_IN_LOGICAL_DECODING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	_MyPgXact@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	andl	%eax, (%rcx)
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LWLockRelease                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MyReplicationSlot,8,3          ## @MyReplicationSlot
	.comm	_RS_EPHEMERAL,8,3               ## @RS_EPHEMERAL
	.comm	_InvalidTransactionId,4,2       ## @InvalidTransactionId
	.comm	_RS_PERSISTENT,8,3              ## @RS_PERSISTENT
	.comm	_ProcArrayLock,4,2              ## @ProcArrayLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_PROC_IN_LOGICAL_DECODING,4,2   ## @PROC_IN_LOGICAL_DECODING
	.comm	_MyPgXact,8,3                   ## @MyPgXact
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReplicationSlotRelease         ; -- Begin function ReplicationSlotRelease
	.p2align	2
_ReplicationSlotRelease:                ; @ReplicationSlotRelease
	.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
Lloh0:
	adrp	x21, _MyReplicationSlot@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MyReplicationSlot@GOTPAGEOFF]
	ldr	x19, [x21]
	cbz	x19, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_Assert
	ldr	x8, [x19, #16]
Lloh2:
	adrp	x9, _RS_EPHEMERAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RS_EPHEMERAL@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	bl	_ReplicationSlotDropAcquired
LBB0_5:
	ldr	w0, [x19, #24]
	bl	_TransactionIdIsValid
	cbnz	x0, LBB0_8
; %bb.6:
	ldr	w0, [x19, #32]
	bl	_TransactionIdIsValid
	cbz	x0, LBB0_8
; %bb.7:
	add	x20, x19, #12
	mov	x0, x20
	bl	_SpinLockAcquire
Lloh5:
	adrp	x8, _InvalidTransactionId@GOTPAGE
Lloh6:
	ldr	x8, [x8, _InvalidTransactionId@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	mov	x0, x20
	bl	_SpinLockRelease
	mov	w0, #0
	bl	_ReplicationSlotsComputeRequiredXmin
LBB0_8:
	ldr	x8, [x19, #16]
Lloh8:
	adrp	x9, _RS_PERSISTENT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RS_PERSISTENT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	add	x20, x19, #12
	mov	x0, x20
	bl	_SpinLockAcquire
	str	xzr, [x19], #8
	mov	x0, x20
	bl	_SpinLockRelease
	mov	x0, x19
	bl	_ConditionVariableBroadcast
LBB0_10:
	str	xzr, [x21]
Lloh11:
	adrp	x19, _ProcArrayLock@GOTPAGE
Lloh12:
	ldr	x19, [x19, _ProcArrayLock@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh13:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh16:
	adrp	x8, _PROC_IN_LOGICAL_DECODING@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PROC_IN_LOGICAL_DECODING@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _MyPgXact@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MyPgXact@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	ldr	w10, [x9]
	bic	w8, w10, w8
	str	w8, [x9]
	ldr	w0, [x19]
	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	_LWLockRelease
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MyReplicationSlot,8,3          ; @MyReplicationSlot
	.comm	_RS_EPHEMERAL,8,3               ; @RS_EPHEMERAL
	.comm	_InvalidTransactionId,4,2       ; @InvalidTransactionId
	.comm	_RS_PERSISTENT,8,3              ; @RS_PERSISTENT
	.comm	_ProcArrayLock,4,2              ; @ProcArrayLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_PROC_IN_LOGICAL_DECODING,4,2   ; @PROC_IN_LOGICAL_DECODING
	.comm	_MyPgXact,8,3                   ; @MyPgXact
.subsections_via_symbols
