	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReplicationSlotsComputeRequiredXmin ## -- Begin function ReplicationSlotsComputeRequiredXmin
	.p2align	4, 0x90
_ReplicationSlotsComputeRequiredXmin:   ## @ReplicationSlotsComputeRequiredXmin
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ReplicationSlotCtl@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setne	%dil
	callq	_Assert
	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
	cmpl	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movl	%r14d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %ebx
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movq	_max_replication_slots@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$16, %r15
	movl	%ebx, %r13d
	cmpq	%rax, %r12
	jge	LBB0_14
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ReplicationSlotCtl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	cmpl	$0, 12(%rbx,%r15)
	je	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	leaq	(%rbx,%r15), %r14
	movq	%r14, %rdi
	callq	_SpinLockAcquire
	movl	4(%rbx,%r15), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	8(%rbx,%r15), %ebx
	movq	%r14, %rdi
	callq	_SpinLockRelease
	movl	%ebx, %edi
	callq	_TransactionIdIsValid
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_TransactionIdIsValid
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %r14d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_TransactionIdIsValid
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %edi
	callq	_TransactionIdIsValid
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	jne	LBB0_13
	jmp	LBB0_12
LBB0_1:
	movl	%r14d, %ebx
LBB0_14:
	movq	_ReplicationSlotControlLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWLockRelease
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ProcArraySetReplicationSlotXmin ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidTransactionId,4,2       ## @InvalidTransactionId
	.comm	_ReplicationSlotCtl,8,3         ## @ReplicationSlotCtl
	.comm	_ReplicationSlotControlLock,4,2 ## @ReplicationSlotControlLock
	.comm	_LW_SHARED,4,2                  ## @LW_SHARED
	.comm	_max_replication_slots,4,2      ## @max_replication_slots
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ReplicationSlotsComputeRequiredXmin ; -- Begin function ReplicationSlotsComputeRequiredXmin
	.p2align	2
_ReplicationSlotsComputeRequiredXmin:   ; @ReplicationSlotsComputeRequiredXmin
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _InvalidTransactionId@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidTransactionId@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x25, _ReplicationSlotCtl@GOTPAGE
Lloh4:
	ldr	x25, [x25, _ReplicationSlotCtl@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
Lloh5:
	adrp	x8, _ReplicationSlotControlLock@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ReplicationSlotControlLock@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _LW_SHARED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LW_SHARED@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh11:
	adrp	x27, _max_replication_slots@GOTPAGE
Lloh12:
	ldr	x27, [x27, _max_replication_slots@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x28, #0
	mov	x26, #0
	mov	x22, x20
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x22
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x27]
	add	x28, x28, #16
	mov	x22, x21
	cmp	x26, x8
	b.ge	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	x8, [x8]
	add	x24, x8, x28
	ldr	w8, [x24, #12]
	cbz	w8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_SpinLockAcquire
	ldp	w21, w23, [x24, #4]
	mov	x0, x24
	bl	_SpinLockRelease
	mov	x0, x23
	bl	_TransactionIdIsValid
	cbz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_TransactionIdIsValid
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x20
	bl	_TransactionIdPrecedes
	cbz	x0, LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x23
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_TransactionIdIsValid
	cbz	x0, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_TransactionIdIsValid
	cbz	x0, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_TransactionIdPrecedes
	cbnz	x0, LBB0_3
	b	LBB0_2
LBB0_12:
	mov	x21, x20
LBB0_13:
Lloh13:
	adrp	x8, _ReplicationSlotControlLock@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ReplicationSlotControlLock@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_LWLockRelease
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	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	_ProcArraySetReplicationSlotXmin
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidTransactionId,4,2       ; @InvalidTransactionId
	.comm	_ReplicationSlotCtl,8,3         ; @ReplicationSlotCtl
	.comm	_ReplicationSlotControlLock,4,2 ; @ReplicationSlotControlLock
	.comm	_LW_SHARED,4,2                  ; @LW_SHARED
	.comm	_max_replication_slots,4,2      ; @max_replication_slots
.subsections_via_symbols
