	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ReplicationSlotDropPtr
_ReplicationSlotDropPtr:                ## @ReplicationSlotDropPtr
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_ReplicationSlotAllocationLock@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movl	32(%r13), %edi
	callq	_NameStr
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_sprintf
	movl	32(%r13), %edi
	callq	_NameStr
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_sprintf
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_rename
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	24(%r13), %rax
	movq	_RS_PERSISTENT@GOTPCREL(%rip), %rcx
	leaq	16(%r13), %r12
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	_ERROR@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_fsync_fname
	leaq	L_.str.2(%rip), %rdi
	movl	$1, %esi
	callq	_fsync_fname
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
	jmp	LBB0_6
LBB0_3:
	movq	_WARNING@GOTPCREL(%rip), %rbx
LBB0_5:
	movq	%r12, %rdi
	callq	_SpinLockAcquire
	movq	$0, 8(%r13)
	movq	%r12, %rdi
	callq	_SpinLockRelease
	leaq	4(%r13), %rdi
	callq	_ConditionVariableBroadcast
	movl	(%rbx), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	_ReplicationSlotAllocationLock@GOTPCREL(%rip), %r12
LBB0_6:
	movq	_ReplicationSlotControlLock@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	$0, 8(%r13)
	movl	$0, (%r13)
	movl	(%rbx), %edi
	callq	_LWLockRelease
	addq	$4, %r13
	movq	%r13, %rdi
	callq	_ConditionVariableBroadcast
	xorl	%edi, %edi
	callq	_ReplicationSlotsComputeRequiredXmin
	xorl	%eax, %eax
	callq	_ReplicationSlotsComputeRequiredLSN
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_rmtree
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_8:
	movl	(%r12), %edi
	callq	_LWLockRelease
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.comm	_ReplicationSlotAllocationLock,4,2 ## @ReplicationSlotAllocationLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pg_replslot/%s"

L_.str.1:                               ## @.str.1
	.asciz	"pg_replslot/%s.tmp"

L_.str.2:                               ## @.str.2
	.asciz	"pg_replslot"

	.comm	_RS_PERSISTENT,8,3              ## @RS_PERSISTENT
	.comm	_WARNING,4,2                    ## @WARNING
	.comm	_ERROR,4,2                      ## @ERROR
L_.str.3:                               ## @.str.3
	.asciz	"could not rename file \"%s\" to \"%s\": %m"

	.comm	_ReplicationSlotControlLock,4,2 ## @ReplicationSlotControlLock
L_.str.4:                               ## @.str.4
	.asciz	"could not remove directory \"%s\""

	.no_dead_strip	_ReplicationSlotDropPtr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ReplicationSlotDropPtr
_ReplicationSlotDropPtr:                ; @ReplicationSlotDropPtr
	.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	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, _MAXPGPATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	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, #0x1fffffff0
	sub	x21, x9, x12
	mov	sp, x21
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x19, x8, x12
	mov	sp, x19
Lloh10:
	adrp	x23, _ReplicationSlotAllocationLock@GOTPAGE
Lloh11:
	ldr	x23, [x23, _ReplicationSlotAllocationLock@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh12:
	adrp	x24, _LW_EXCLUSIVE@GOTPAGE
Lloh13:
	ldr	x24, [x24, _LW_EXCLUSIVE@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_LWLockAcquire
	ldr	w0, [x20, #32]
	bl	_NameStr
	mov	x2, x0
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_sprintf
	ldr	w0, [x20, #32]
	bl	_NameStr
	mov	x2, x0
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_sprintf
	mov	x0, x21
	mov	x1, x19
	bl	_rename
Lloh18:
	adrp	x25, _WARNING@GOTPAGE
Lloh19:
	ldr	x25, [x25, _WARNING@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x26, [x20, #24]
Lloh20:
	adrp	x8, _RS_PERSISTENT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RS_PERSISTENT@GOTPAGEOFF]
Lloh22:
	ldr	x27, [x8]
	add	x22, x20, #16
	mov	x0, x22
	bl	_SpinLockAcquire
	str	xzr, [x20, #8]
	mov	x0, x22
	bl	_SpinLockRelease
	add	x0, x20, #4
	bl	_ConditionVariableBroadcast
Lloh23:
	adrp	x8, _ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
	cmp	x26, x27
	csel	x8, x8, x25, eq
	ldr	w22, [x8]
	bl	_errcode_for_file_access
	str	x19, [sp, #-16]!
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	bl	_errmsg
	add	sp, sp, #16
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
	b	LBB0_3
LBB0_2:
	bl	_START_CRIT_SECTION
	mov	x0, x19
	mov	w1, #1
	bl	_fsync_fname
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #1
	bl	_fsync_fname
	bl	_END_CRIT_SECTION
LBB0_3:
Lloh29:
	adrp	x21, _ReplicationSlotControlLock@GOTPAGE
Lloh30:
	ldr	x21, [x21, _ReplicationSlotControlLock@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w1, [x24]
	bl	_LWLockAcquire
	str	xzr, [x20, #8]
	str	wzr, [x20]
	ldr	w0, [x21]
	bl	_LWLockRelease
	add	x0, x20, #4
	bl	_ConditionVariableBroadcast
	mov	w0, #0
	bl	_ReplicationSlotsComputeRequiredXmin
	bl	_ReplicationSlotsComputeRequiredLSN
	mov	x0, x19
	mov	w1, #1
	bl	_rmtree
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w20, [x25]
Lloh31:
	adrp	x0, l_.str.4@PAGE
Lloh32:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_5:
	ldr	w0, [x23]
	bl	_LWLockRelease
	ldur	x8, [x29, #-88]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	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 AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.comm	_ReplicationSlotAllocationLock,4,2 ; @ReplicationSlotAllocationLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pg_replslot/%s"

l_.str.1:                               ; @.str.1
	.asciz	"pg_replslot/%s.tmp"

l_.str.2:                               ; @.str.2
	.asciz	"pg_replslot"

	.comm	_RS_PERSISTENT,8,3              ; @RS_PERSISTENT
	.comm	_WARNING,4,2                    ; @WARNING
	.comm	_ERROR,4,2                      ; @ERROR
l_.str.3:                               ; @.str.3
	.asciz	"could not rename file \"%s\" to \"%s\": %m"

	.comm	_ReplicationSlotControlLock,4,2 ; @ReplicationSlotControlLock
l_.str.4:                               ; @.str.4
	.asciz	"could not remove directory \"%s\""

	.no_dead_strip	_ReplicationSlotDropPtr
.subsections_via_symbols
