	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function advance_oldest_read
_advance_oldest_read:                   ## @advance_oldest_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	16(%rdi), %rax
	movq	24(%rdi), %r8
	subq	%r8, %rax
	sarq	$3, %rax
	incq	%rax
	movq	(%rdi), %r9
	movq	8(%rdi), %rcx
	xorl	%esi, %esi
	cmpq	%r9, %rax
	cmoveq	%rsi, %rax
	cmpq	%rcx, %rax
	je	LBB0_5
## %bb.1:
	movq	_FW_RI_READ_REQ@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%r8,%rax,8)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	cmpq	%r9, %rax
	cmoveq	%rsi, %rax
	cmpq	%rcx, %rax
	jne	LBB0_2
	jmp	LBB0_5
LBB0_3:
	leaq	(%r8,%rax,8), %rsi
LBB0_5:
	movq	%rsi, 16(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_RI_READ_REQ,8,3             ## @FW_RI_READ_REQ
	.no_dead_strip	_advance_oldest_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function advance_oldest_read
_advance_oldest_read:                   ; @advance_oldest_read
	.cfi_startproc
; %bb.0:
	mov	x10, #0
	ldp	x9, x8, [x0, #16]
	sub	x9, x9, x8
	asr	x12, x9, #3
	add	x13, x12, #1
	ldp	x9, x11, [x0]
	cmp	x13, x9
	csinc	x12, xzr, x12, eq
	cmp	x12, x11
	b.eq	LBB0_5
; %bb.1:
Lloh0:
	adrp	x10, _FW_RI_READ_REQ@GOTPAGE
Lloh1:
	ldr	x10, [x10, _FW_RI_READ_REQ@GOTPAGEOFF]
Lloh2:
	ldr	x13, [x10]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x8, x12, lsl #3
	ldr	x14, [x10]
	cmp	x14, x13
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x12, #1
	cmp	x10, x9
	csinc	x12, xzr, x12, eq
	cmp	x12, x11
	b.ne	LBB0_2
; %bb.4:
	mov	x10, #0
LBB0_5:
	str	x10, [x0, #16]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_RI_READ_REQ,8,3             ; @FW_RI_READ_REQ
	.no_dead_strip	_advance_oldest_read
.subsections_via_symbols
