	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asyncQueueAdvanceTail
_asyncQueueAdvanceTail:                 ## @asyncQueueAdvanceTail
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_AsyncQueueLock@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	_QUEUE_HEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_QUEUE_FIRST_LISTENER@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	jle	LBB0_3
## %bb.1:
	movq	_InvalidPid@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_QUEUE_BACKEND_PID
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	setne	%dil
	callq	_Assert
	movq	%rbx, %rdi
	callq	_QUEUE_BACKEND_POS
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_QUEUE_POS_MIN
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_QUEUE_NEXT_LISTENER
	movq	%rax, %rbx
	testq	%rax, %rax
	jg	LBB0_2
LBB0_3:
	movq	_QUEUE_TAIL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_QUEUE_POS_PAGE
	movl	%eax, %r15d
	movl	%r14d, (%rbx)
	movl	(%r12), %edi
	callq	_LWLockRelease
	movl	%r14d, %edi
	callq	_QUEUE_POS_PAGE
	movl	%eax, %ebx
	movq	_SLRU_PAGES_PER_SEGMENT@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%ebx, %esi
	subl	%edx, %esi
	movl	%r15d, %edi
	callq	_asyncQueuePagePrecedes
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_AsyncCtl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SimpleLruTruncate              ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AsyncQueueLock,4,2             ## @AsyncQueueLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_QUEUE_HEAD,4,2                 ## @QUEUE_HEAD
	.comm	_QUEUE_FIRST_LISTENER,8,3       ## @QUEUE_FIRST_LISTENER
	.comm	_InvalidPid,8,3                 ## @InvalidPid
	.comm	_QUEUE_TAIL,4,2                 ## @QUEUE_TAIL
	.comm	_SLRU_PAGES_PER_SEGMENT,4,2     ## @SLRU_PAGES_PER_SEGMENT
	.comm	_AsyncCtl,4,2                   ## @AsyncCtl
	.no_dead_strip	_asyncQueueAdvanceTail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asyncQueueAdvanceTail
_asyncQueueAdvanceTail:                 ; @asyncQueueAdvanceTail
	.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, _AsyncQueueLock@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AsyncQueueLock@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh5:
	adrp	x8, _QUEUE_HEAD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QUEUE_HEAD@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
Lloh8:
	adrp	x8, _QUEUE_FIRST_LISTENER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QUEUE_FIRST_LISTENER@GOTPAGEOFF]
Lloh10:
	ldr	x20, [x8]
	cmp	x20, #1
	b.lt	LBB0_3
; %bb.1:
Lloh11:
	adrp	x22, _InvalidPid@GOTPAGE
Lloh12:
	ldr	x22, [x22, _InvalidPid@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_QUEUE_BACKEND_PID
	ldr	x8, [x22]
	cmp	x0, x8
	cset	w0, ne
	bl	_Assert
	mov	x0, x20
	bl	_QUEUE_BACKEND_POS
	mov	x1, x0
	mov	x0, x19
	bl	_QUEUE_POS_MIN
	mov	x19, x0
	mov	x0, x20
	bl	_QUEUE_NEXT_LISTENER
	mov	x20, x0
	cmp	x0, #0
	b.gt	LBB0_2
LBB0_3:
Lloh13:
	adrp	x22, _QUEUE_TAIL@GOTPAGE
Lloh14:
	ldr	x22, [x22, _QUEUE_TAIL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_QUEUE_POS_PAGE
	mov	x20, x0
	str	w19, [x22]
	ldr	w0, [x21]
	bl	_LWLockRelease
	mov	x0, x19
	bl	_QUEUE_POS_PAGE
	mov	x19, x0
Lloh15:
	adrp	x8, _SLRU_PAGES_PER_SEGMENT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SLRU_PAGES_PER_SEGMENT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	sdiv	w9, w0, w8
	mul	w1, w9, w8
	mov	x0, x20
	bl	_asyncQueuePagePrecedes
	cbz	x0, LBB0_5
; %bb.4:
Lloh18:
	adrp	x8, _AsyncCtl@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AsyncCtl@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, 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	_SimpleLruTruncate
LBB0_5:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AsyncQueueLock,4,2             ; @AsyncQueueLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_QUEUE_HEAD,4,2                 ; @QUEUE_HEAD
	.comm	_QUEUE_FIRST_LISTENER,8,3       ; @QUEUE_FIRST_LISTENER
	.comm	_InvalidPid,8,3                 ; @InvalidPid
	.comm	_QUEUE_TAIL,4,2                 ; @QUEUE_TAIL
	.comm	_SLRU_PAGES_PER_SEGMENT,4,2     ; @SLRU_PAGES_PER_SEGMENT
	.comm	_AsyncCtl,4,2                   ; @AsyncCtl
	.no_dead_strip	_asyncQueueAdvanceTail
.subsections_via_symbols
