	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reset_rx_descriptors
_reset_rx_descriptors:                  ## @reset_rx_descriptors
	.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	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	16(%rax), %rbx
	movq	%r15, %rdi
	callq	_allocate_rx_buffers
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.1:
	movq	_RXOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$1, %ecx
	jne	LBB0_2
LBB0_8:
	testb	$1, %cl
	je	LBB0_11
## %bb.9:
	cmpq	$0, 16(%rbx)
	je	LBB0_11
## %bb.10:
	movl	%eax, 8(%rbx)
LBB0_11:
	movq	24(%r14), %rdi
	subq	8(%r14), %rdi
	addq	16(%r14), %rdi
	movq	_RXLBA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iowrite32                      ## TAILCALL
LBB0_2:
	movl	%ecx, %edx
	andl	$-2, %edx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rsi), %rbx
	addl	$-2, %edx
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, 8(%rbx)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rsi
	cmpq	$0, 16(%rsi)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, 8(%rsi)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_RING_SIZE,4,2               ## @RX_RING_SIZE
	.comm	_RXOWN,4,2                      ## @RXOWN
	.comm	_RXLBA,8,3                      ## @RXLBA
	.no_dead_strip	_reset_rx_descriptors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reset_rx_descriptors
_reset_rx_descriptors:                  ; @reset_rx_descriptors
	.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
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x21, [x0, #16]
	mov	x0, x20
	bl	_allocate_rx_buffers
Lloh0:
	adrp	x8, _RX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RX_RING_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
Lloh3:
	adrp	x9, _RXOWN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RXOWN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x21, [x21]
	subs	w8, w8, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x21, #16]
	cbz	x10, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w9, [x21, #8]
	b	LBB0_2
LBB0_5:
	ldp	x9, x8, [x19, #16]
	ldp	x11, x10, [x19]
	sub	x8, x8, x10
	add	x0, x8, x9
Lloh6:
	adrp	x8, _RXLBA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RXLBA@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x1, x8, x11
	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	_iowrite32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_RING_SIZE,4,2               ; @RX_RING_SIZE
	.comm	_RXOWN,4,2                      ; @RXOWN
	.comm	_RXLBA,8,3                      ; @RXLBA
	.no_dead_strip	_reset_rx_descriptors
.subsections_via_symbols
