	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function de4x5_rst_desc_ring
_de4x5_rst_desc_ring:                   ## @de4x5_rst_desc_ring
	.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
	callq	_netdev_priv
	cmpq	$0, 8(%rax)
	je	LBB0_8
## %bb.1:
	movq	%rax, %r14
	movq	64(%rax), %rdi
	movq	_DE4X5_RRBA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outl
	movq	_NUM_RX_DESC@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	shlq	$2, %rdi
	addq	64(%r14), %rdi
	movq	_DE4X5_TRBA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outl
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r14)
	movups	%xmm0, 48(%r14)
	cmpl	$0, (%r14)
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	movq	_R_OWN@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_cpu_to_le32
	movq	24(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	cmpl	$0, 4(%r14)
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movq	16(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	4(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	callq	_barrier
	decq	8(%r14)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STOP_DE4X5,4,2                 ## @STOP_DE4X5
	.comm	_DE4X5_RRBA,4,2                 ## @DE4X5_RRBA
	.comm	_NUM_RX_DESC,4,2                ## @NUM_RX_DESC
	.comm	_DE4X5_TRBA,4,2                 ## @DE4X5_TRBA
	.comm	_R_OWN,4,2                      ## @R_OWN
	.comm	_START_DE4X5,4,2                ## @START_DE4X5
	.no_dead_strip	_de4x5_rst_desc_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function de4x5_rst_desc_ring
_de4x5_rst_desc_ring:                   ; @de4x5_rst_desc_ring
	.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
	bl	_netdev_priv
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0, #64]
Lloh0:
	adrp	x8, _DE4X5_RRBA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DE4X5_RRBA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_outl
Lloh3:
	adrp	x8, _NUM_RX_DESC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NUM_RX_DESC@GOTPAGEOFF]
	ldr	x9, [x19, #64]
Lloh5:
	ldrsw	x8, [x8]
	add	x0, x9, x8, lsl #2
Lloh6:
	adrp	x8, _DE4X5_TRBA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DE4X5_TRBA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_outl
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #32]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x20, #0
Lloh9:
	adrp	x21, _R_OWN@GOTPAGE
Lloh10:
	ldr	x21, [x21, _R_OWN@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_cpu_to_le32
	ldr	x8, [x19, #24]
	str	x0, [x8, x20, lsl #3]
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_3
LBB0_4:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x20, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	bl	_cpu_to_le32
	ldr	x8, [x19, #16]
	str	x0, [x8, x20, lsl #3]
	add	x20, x20, #1
	ldrsw	x8, [x19, #4]
	cmp	x20, x8
	b.lt	LBB0_6
LBB0_7:
	bl	_barrier
	ldr	x8, [x19, #8]
	sub	x8, x8, #1
	str	x8, [x19, #8]
LBB0_8:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_STOP_DE4X5,4,2                 ; @STOP_DE4X5
	.comm	_DE4X5_RRBA,4,2                 ; @DE4X5_RRBA
	.comm	_NUM_RX_DESC,4,2                ; @NUM_RX_DESC
	.comm	_DE4X5_TRBA,4,2                 ; @DE4X5_TRBA
	.comm	_R_OWN,4,2                      ; @R_OWN
	.comm	_START_DE4X5,4,2                ; @START_DE4X5
	.no_dead_strip	_de4x5_rst_desc_ring
.subsections_via_symbols
