	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlgmac_rx_refresh
_xlgmac_rx_refresh:                     ## @xlgmac_rx_refresh
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	(%r15), %rsi
	cmpq	8(%r15), %rsi
	je	LBB0_4
## %bb.1:
	movq	8(%r14), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_XLGMAC_GET_DESC_DATA
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	*16(%r12)
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	*8(%r12)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	*(%r12)
	movq	(%r15), %rsi
	incq	%rsi
	movq	%rsi, (%r15)
	cmpq	8(%r15), %rsi
	jne	LBB0_2
LBB0_4:
	xorl	%eax, %eax
	callq	_wmb
	movq	(%r15), %rsi
	decq	%rsi
	movq	%r15, %rdi
	callq	_XLGMAC_GET_DESC_DATA
	movl	(%rax), %edi
	callq	_lower_32_bits
	movl	%eax, %ebx
	movq	_DMA_CH_RDTR_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_XLGMAC_DMA_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_CH_RDTR_LO,4,2             ## @DMA_CH_RDTR_LO
	.no_dead_strip	_xlgmac_rx_refresh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlgmac_rx_refresh
_xlgmac_rx_refresh:                     ; @xlgmac_rx_refresh
	.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	x19, x0
	ldr	x20, [x0]
	ldp	x1, x8, [x20]
	cmp	x1, x8
	b.eq	LBB0_4
; %bb.1:
	ldr	x21, [x19, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_XLGMAC_GET_DESC_DATA
	mov	x22, x0
	ldr	x8, [x21, #16]
	mov	x0, x21
	mov	x1, x22
	blr	x8
	ldr	x8, [x21, #8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	blr	x8
	cbnz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
	ldr	x2, [x20]
	mov	x0, x21
	mov	x1, x22
	blr	x8
	ldp	x8, x9, [x20]
	add	x1, x8, #1
	str	x1, [x20]
	cmp	x1, x9
	b.ne	LBB0_2
LBB0_4:
	bl	_wmb
	ldr	x8, [x20]
	sub	x1, x8, #1
	mov	x0, x20
	bl	_XLGMAC_GET_DESC_DATA
	ldr	w0, [x0]
	bl	_lower_32_bits
	mov	x20, x0
Lloh0:
	adrp	x8, _DMA_CH_RDTR_LO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_CH_RDTR_LO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_XLGMAC_DMA_REG
	mov	x1, x0
	mov	x0, x20
	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	_writel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_CH_RDTR_LO,4,2             ; @DMA_CH_RDTR_LO
	.no_dead_strip	_xlgmac_rx_refresh
.subsections_via_symbols
