	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReplicationSlotsDropDBSlots    ## -- Begin function ReplicationSlotsDropDBSlots
	.p2align	4, 0x90
_ReplicationSlotsDropDBSlots:           ## @ReplicationSlotsDropDBSlots
	.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	_max_replication_slots@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_12
## %bb.1:
	movq	%rdi, %r13
	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), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_11
## %bb.2:
	xorl	%r12d, %r12d
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movslq	(%rcx), %rax
	cmpq	%rax, %r12
	jge	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ReplicationSlotCtl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	movq	%r12, %rbx
	shlq	$5, %rbx
	cmpl	$0, 24(%r14,%rbx)
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r14,%rbx), %r15
	movq	%r15, %rdi
	callq	_SlotIsLogical
	movq	_max_replication_slots@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r13, 8(%r14,%rbx)
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %ebx
	shlq	$5, %rbx
	leaq	(%r14,%rbx), %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_SpinLockAcquire
	movl	16(%r14,%rbx), %edi
	callq	_NameStr
	movl	(%r15), %r13d
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_SpinLockRelease
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_OBJECT_IN_USE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_MyReplicationSlot@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	movq	_MyProcPid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%r12, %rdi
	callq	_SpinLockRelease
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	_ReplicationSlotControlLock@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_LWLockRelease
	xorl	%eax, %eax
	callq	_ReplicationSlotDropAcquired
	movl	(%rbx), %edi
	movq	_LW_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	_max_replication_slots@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	movl	$0, %r12d
	jg	LBB0_3
LBB0_11:
	movq	_ReplicationSlotControlLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LWLockRelease                  ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_max_replication_slots,4,2      ## @max_replication_slots
	.comm	_ReplicationSlotControlLock,4,2 ## @ReplicationSlotControlLock
	.comm	_LW_SHARED,4,2                  ## @LW_SHARED
	.comm	_ReplicationSlotCtl,8,3         ## @ReplicationSlotCtl
	.comm	_MyReplicationSlot,8,3          ## @MyReplicationSlot
	.comm	_MyProcPid,4,2                  ## @MyProcPid
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_OBJECT_IN_USE,4,2      ## @ERRCODE_OBJECT_IN_USE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"replication slot \"%s\" is active for PID %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReplicationSlotsDropDBSlots    ; -- Begin function ReplicationSlotsDropDBSlots
	.p2align	2
_ReplicationSlotsDropDBSlots:           ; @ReplicationSlotsDropDBSlots
	.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
Lloh0:
	adrp	x25, _max_replication_slots@GOTPAGE
Lloh1:
	ldr	x25, [x25, _max_replication_slots@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x26, _ReplicationSlotControlLock@GOTPAGE
Lloh3:
	ldr	x26, [x26, _ReplicationSlotControlLock@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh4:
	adrp	x27, _LW_SHARED@GOTPAGE
Lloh5:
	ldr	x27, [x27, _LW_SHARED@GOTPAGEOFF]
	ldr	w1, [x27]
	bl	_LWLockAcquire
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.2:
	mov	x22, #0
Lloh6:
	adrp	x28, _ReplicationSlotCtl@GOTPAGE
Lloh7:
	ldr	x28, [x28, _ReplicationSlotCtl@GOTPAGEOFF]
Lloh8:
	adrp	x20, l_.str@PAGE
Lloh9:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x25]
	cmp	x22, x8
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28]
	ldr	x23, [x8]
	add	x21, x23, x22, lsl #5
	ldr	w8, [x21, #24]
	cbz	w8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_SlotIsLogical
	cbz	w0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x23, x22, lsl #5
	ldr	x8, [x8, #8]
	cmp	x8, x19
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	and	x8, x22, #0xffffffff
	add	x23, x23, x8, lsl #5
	add	x22, x23, #4
	mov	x0, x22
	bl	_SpinLockAcquire
	ldr	w0, [x23, #16]
	bl	_NameStr
	ldr	w24, [x21]
	cbz	w24, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	mov	x0, x22
	bl	_SpinLockRelease
Lloh10:
	adrp	x8, _ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
Lloh13:
	adrp	x8, _ERRCODE_OBJECT_IN_USE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERRCODE_OBJECT_IN_USE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh16:
	adrp	x8, _MyReplicationSlot@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MyReplicationSlot@GOTPAGEOFF]
Lloh18:
	str	x21, [x8]
Lloh19:
	adrp	x8, _MyProcPid@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MyProcPid@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x21]
	mov	x0, x22
	bl	_SpinLockRelease
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x26]
	bl	_LWLockRelease
	bl	_ReplicationSlotDropAcquired
	ldr	w0, [x26]
	ldr	w1, [x27]
	bl	_LWLockAcquire
	mov	x22, #0
	ldr	w8, [x25]
	cmp	w8, #0
	b.gt	LBB0_4
LBB0_11:
	ldr	w0, [x26]
	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
	b	_LWLockRelease
LBB0_12:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_max_replication_slots,4,2      ; @max_replication_slots
	.comm	_ReplicationSlotControlLock,4,2 ; @ReplicationSlotControlLock
	.comm	_LW_SHARED,4,2                  ; @LW_SHARED
	.comm	_ReplicationSlotCtl,8,3         ; @ReplicationSlotCtl
	.comm	_MyReplicationSlot,8,3          ; @MyReplicationSlot
	.comm	_MyProcPid,4,2                  ; @MyProcPid
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_OBJECT_IN_USE,4,2      ; @ERRCODE_OBJECT_IN_USE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"replication slot \"%s\" is active for PID %d"

.subsections_via_symbols
