	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_enet_refill_rx
_bcm_enet_refill_rx:                    ## @bcm_enet_refill_rx
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	cmpq	%rax, %rcx
	jge	LBB0_13
## %bb.1:
	movq	_DMADESC_OWNER_MASK@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_ENETDMAC_BUFALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	48(%rbx), %ecx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_enet_dmac_writel
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rcx
	movq	8(%rbx), %rax
	cmpq	%rax, %rcx
	jge	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%rbx), %edx
	movq	72(%rbx), %r15
	movslq	%edx, %r14
	movq	64(%rbx), %rcx
	cmpq	$0, (%rcx,%r14,8)
	movq	%r14, %rsi
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	20(%rbx), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netdev_alloc_skb
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	64(%rbx), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	40(%rbx), %rdi
	movl	(%rax), %esi
	movl	20(%rbx), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	movl	%eax, 4(%r15,%r14,8)
	movl	16(%rbx), %edx
	movq	8(%rbx), %rax
	movslq	%edx, %rsi
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	20(%rbx), %r12d
	movq	_DMADESC_LENGTH_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shll	%cl, %r12d
	orl	(%r13), %r12d
	decq	%rax
	cmpq	%rsi, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_DMADESC_WRAP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movzbl	24(%rbx), %ecx
	sarl	%cl, %eax
	orl	%eax, %r12d
	xorl	%edx, %edx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%edx
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, 16(%rbx)
	xorl	%eax, %eax
	callq	_wmb
	movl	%r12d, (%r15,%r14,8)
	incq	(%rbx)
	cmpq	$0, 56(%rbx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	48(%rbx), %edi
	callq	_ENETDMA_BUFALLOC_REG
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_enet_dma_writel
	jmp	LBB0_12
LBB0_4:
	movq	(%rbx), %rcx
LBB0_13:
	testq	%rcx, %rcx
	jne	LBB0_16
## %bb.14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	40(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	%rbx, %rdi
	addq	$32, %rdi
	movq	%rcx, 32(%rbx)
	callq	_add_timer
LBB0_16:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_DMADESC_LENGTH_SHIFT,4,2       ## @DMADESC_LENGTH_SHIFT
	.comm	_DMADESC_OWNER_MASK,4,2         ## @DMADESC_OWNER_MASK
	.comm	_DMADESC_WRAP_MASK,4,2          ## @DMADESC_WRAP_MASK
	.comm	_ENETDMAC_BUFALLOC,4,2          ## @ENETDMAC_BUFALLOC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to refill rx ring\n"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.no_dead_strip	_bcm_enet_refill_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_enet_refill_rx
_bcm_enet_refill_rx:                    ; @bcm_enet_refill_rx
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldp	x9, x8, [x0]
	cmp	x9, x8
	b.ge	LBB0_13
; %bb.1:
Lloh0:
	adrp	x21, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh2:
	adrp	x22, _DMADESC_LENGTH_SHIFT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _DMADESC_LENGTH_SHIFT@GOTPAGEOFF]
Lloh4:
	adrp	x23, _DMADESC_OWNER_MASK@GOTPAGE
Lloh5:
	ldr	x23, [x23, _DMADESC_OWNER_MASK@GOTPAGEOFF]
Lloh6:
	adrp	x24, _DMADESC_WRAP_MASK@GOTPAGE
Lloh7:
	ldr	x24, [x24, _DMADESC_WRAP_MASK@GOTPAGEOFF]
Lloh8:
	adrp	x25, _ENETDMAC_BUFALLOC@GOTPAGE
Lloh9:
	ldr	x25, [x25, _ENETDMAC_BUFALLOC@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x25]
	ldr	w3, [x19, #48]
	mov	x0, x19
	mov	w1, #1
	bl	_enet_dmac_writel
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	x9, x8, [x19]
	cmp	x9, x8
	b.ge	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19, #16]
	sxtw	x10, w9
	ldp	x11, x26, [x19, #64]
	ldr	x11, [x11, w9, sxtw #3]
	lsl	x27, x10, #3
	cbnz	x11, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x19, #20]
	mov	x0, x20
	bl	_netdev_alloc_skb
	cbz	x0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #64]
	str	x0, [x8, x27]
	ldr	x8, [x19, #40]
	ldr	w1, [x0]
	ldr	w2, [x19, #20]
	ldr	w3, [x21]
	mov	x0, x8
	bl	_dma_map_single
	add	x8, x26, x27
	str	w0, [x8, #4]
	ldr	w9, [x19, #16]
	ldr	x8, [x19, #8]
	sxtw	x10, w9
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w11, [x19, #20]
	ldr	w12, [x22]
	lsl	w11, w11, w12
	ldr	w12, [x23]
	orr	w28, w11, w12
	sub	x8, x8, #1
	cmp	x8, x10
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #0
	ldr	w9, [x24]
	ldr	w10, [x19, #24]
	asr	w9, w9, w10
	orr	w28, w9, w28
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w9, #1
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w8, [x19, #16]
	bl	_wmb
	str	w28, [x26, x27]
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #48]
	bl	_ENETDMA_BUFALLOC_REG
	mov	x2, x0
	mov	x0, x19
	mov	w1, #1
	bl	_enet_dma_writel
	b	LBB0_3
LBB0_12:
	ldr	x9, [x19]
LBB0_13:
	cbnz	x9, LBB0_16
; %bb.14:
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_16
; %bb.15:
	ldr	x0, [x19, #40]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh12:
	adrp	x8, _jiffies@GOTPAGE
Lloh13:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _HZ@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [x19, #32]!
	mov	x0, x19
	bl	_add_timer
LBB0_16:
	mov	w0, #0
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_DMADESC_LENGTH_SHIFT,4,2       ; @DMADESC_LENGTH_SHIFT
	.comm	_DMADESC_OWNER_MASK,4,2         ; @DMADESC_OWNER_MASK
	.comm	_DMADESC_WRAP_MASK,4,2          ; @DMADESC_WRAP_MASK
	.comm	_ENETDMAC_BUFALLOC,4,2          ; @ENETDMAC_BUFALLOC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to refill rx ring\n"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.no_dead_strip	_bcm_enet_refill_rx
.subsections_via_symbols
