	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enetc_refill_rx_ring
_enetc_refill_rx_ring:                  ## @enetc_refill_rx_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	(%rdi), %r15d
	movq	16(%rdi), %r13
	movups	(%rdi), %xmm0
	movups	16(%rdi), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	%r15d, %edi
	callq	_ENETC_RXBD
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movslq	%r15d, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%r13,%rax,8), %r13
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r14), %r13
	movups	(%r14), %xmm0
	movups	16(%r14), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_ENETC_RXBD
	movq	%rax, %r12
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	%ebx, -44(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	cmpl	$0, 16(%r13)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_enetc_new_page
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rdi
	addq	8(%r13), %rdi
	callq	_cpu_to_le64
	movq	$0, (%r12)
	incl	%r15d
	xorl	%edi, %edi
	cmpl	4(%r14), %r15d
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$24, %r13
	addq	$8, %r12
	jmp	LBB0_9
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_10:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_11
LBB0_5:
	incl	24(%r14)
LBB0_11:
	movl	%ebx, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	%r15d, 8(%r14)
	movl	%r15d, (%r14)
	movl	12(%r14), %edi
	movl	%r15d, %esi
	callq	_enetc_wr_reg
LBB0_13:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_enetc_refill_rx_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enetc_refill_rx_ring
_enetc_refill_rx_ring:                  ; @enetc_refill_rx_ring
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x19, x0
	ldr	w20, [x0]
	ldr	x23, [x0, #16]
	ldp	q0, q1, [x0]
	stp	q0, q1, [sp]
	mov	x0, sp
	mov	x1, x20
	bl	_ENETC_RXBD
	cmp	w22, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x24, x0
	mov	w21, #0
	sxtw	x8, w20
	mov	w9, #24
	madd	x23, x8, x9, x23
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x23, [x19, #16]
	ldp	q0, q1, [x19]
	stp	q0, q1, [sp]
	mov	x0, sp
	mov	w1, #0
	bl	_ENETC_RXBD
	mov	x24, x0
	mov	w20, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	cmp	w22, w21
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23, #16]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_enetc_new_page
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	x9, x8, [x23]
	add	x0, x9, x8
	bl	_cpu_to_le64
	str	xzr, [x24], #8
	add	w20, w20, #1
	ldr	w8, [x19, #4]
	cmp	w20, w8
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #24
	b	LBB0_3
LBB0_8:
	mov	w21, #0
	b	LBB0_11
LBB0_9:
	mov	x21, x22
	b	LBB0_11
LBB0_10:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
LBB0_11:
	mov	x0, x21
	bl	_likely
	cbz	x0, LBB0_13
; %bb.12:
	str	w20, [x19, #8]
	str	w20, [x19]
	ldr	w0, [x19, #12]
	mov	x1, x20
	bl	_enetc_wr_reg
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_enetc_refill_rx_ring
.subsections_via_symbols
