	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rx_queue_entry_next
_rx_queue_entry_next:                   ## @rx_queue_entry_next
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_spin_lock
	movq	16(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_rd_mem
	movl	%eax, %r14d
	movq	16(%rbx), %rdx
	cmpq	24(%rbx), %rdx
	je	LBB0_1
## %bb.2:
	addq	$4, %rdx
	movq	8(%rbx), %rax
	jmp	LBB0_3
LBB0_1:
	movq	8(%rbx), %rax
	movq	%rax, %rdx
LBB0_3:
	movq	%rdx, 16(%rbx)
	movq	_RX_QUEUE_RD_PTR_OFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	subq	%rax, %rdx
	shrq	$2, %rdx
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_wr_regw
	movq	%rbx, %rdi
	callq	_spin_unlock
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_QUEUE_RD_PTR_OFF,4,2        ## @RX_QUEUE_RD_PTR_OFF
	.no_dead_strip	_rx_queue_entry_next
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rx_queue_entry_next
_rx_queue_entry_next:                   ; @rx_queue_entry_next
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_spin_lock
	ldr	x1, [x19, #16]
	mov	x0, x19
	bl	_rd_mem
	mov	x20, x0
	ldp	x8, x9, [x19, #16]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	add	x9, x8, #4
	ldr	x8, [x19, #8]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19, #8]
	mov	x9, x8
LBB0_3:
	str	x9, [x19, #16]
Lloh0:
	adrp	x10, _RX_QUEUE_RD_PTR_OFF@GOTPAGE
Lloh1:
	ldr	x10, [x10, _RX_QUEUE_RD_PTR_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x10]
	sub	x8, x9, x8
	lsr	x2, x8, #2
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_wr_regw
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_QUEUE_RD_PTR_OFF,4,2        ; @RX_QUEUE_RD_PTR_OFF
	.no_dead_strip	_rx_queue_entry_next
.subsections_via_symbols
