	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ClockSweepTick
_ClockSweepTick:                        ## @ClockSweepTick
	.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	_StrategyControl@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	$8, %rdi
	movl	$1, %esi
	callq	_pg_atomic_fetch_add_u32
	movl	%eax, %ecx
	movq	_NBuffers@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	cmpl	%esi, %eax
	jge	LBB0_2
## %bb.1:
	movl	%ecx, %eax
	jmp	LBB0_7
LBB0_2:
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%edx, %eax
	testl	%edx, %edx
	jne	LBB0_7
## %bb.3:
	incl	%ecx
	movl	%ecx, -28(%rbp)
	leaq	-28(%rbp), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	callq	_SpinLockAcquire
	movl	-28(%rbp), %eax
	cltd
	idivl	(%r15)
	movq	(%rbx), %rdi
	addq	$8, %rdi
	movq	%r14, %rsi
	callq	_pg_atomic_compare_exchange_u32
	movq	(%rbx), %rdi
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_SpinLockRelease
	jmp	LBB0_4
LBB0_6:
	incl	4(%rdi)
	callq	_SpinLockRelease
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_StrategyControl,8,3            ## @StrategyControl
	.comm	_NBuffers,4,2                   ## @NBuffers
	.no_dead_strip	_ClockSweepTick
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ClockSweepTick
_ClockSweepTick:                        ; @ClockSweepTick
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x19, _StrategyControl@GOTPAGE
Lloh1:
	ldr	x19, [x19, _StrategyControl@GOTPAGEOFF]
	ldr	x8, [x19]
	add	x0, x8, #8
	mov	w1, #1
	bl	_pg_atomic_fetch_add_u32
Lloh2:
	adrp	x20, _NBuffers@GOTPAGE
Lloh3:
	ldr	x20, [x20, _NBuffers@GOTPAGEOFF]
	ldr	w9, [x20]
	mov	x8, x0
	cmp	w0, w9
	b.lt	LBB0_6
; %bb.1:
	sdiv	w8, w0, w9
	msub	w8, w8, w9, w0
	cbnz	w8, LBB0_6
; %bb.2:
	add	w8, w0, #1
	str	w8, [sp, #12]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	bl	_SpinLockAcquire
	ldr	w8, [sp, #12]
	ldr	w9, [x20]
	sdiv	w10, w8, w9
	msub	w2, w10, w9, w8
	ldr	x8, [x19]
	add	x0, x8, #8
	add	x1, sp, #12
	bl	_pg_atomic_compare_exchange_u32
	mov	x8, x0
	ldr	x0, [x19]
	cbnz	w8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_SpinLockRelease
	b	LBB0_3
LBB0_5:
	ldr	w8, [x0, #4]
	add	w8, w8, #1
	str	w8, [x0, #4]
	bl	_SpinLockRelease
	mov	w8, #0
LBB0_6:
	mov	x0, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_StrategyControl,8,3            ; @StrategyControl
	.comm	_NBuffers,4,2                   ; @NBuffers
	.no_dead_strip	_ClockSweepTick
.subsections_via_symbols
