	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlgmac_rx_desc_init
_xlgmac_rx_desc_init:                   ## @xlgmac_rx_desc_init
	.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, %r14
	movq	(%rdi), %r12
	movl	(%r12), %r13d
	cmpl	$0, 4(%r12)
	je	LBB0_1
## %bb.2:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_XLGMAC_GET_DESC_DATA
	movq	%r13, %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	callq	_xlgmac_rx_desc_reset
	incl	%ebx
	movl	4(%r12), %r15d
	cmpl	%r15d, %ebx
	jb	LBB0_3
## %bb.4:
	decl	%r15d
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %r15d
LBB0_5:
	movq	_DMA_CH_RDRLR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_XLGMAC_DMA_REG
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_writel
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_XLGMAC_GET_DESC_DATA
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_upper_32_bits
	movl	%eax, %r15d
	movq	_DMA_CH_RDLR_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_XLGMAC_DMA_REG
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_writel
	movl	(%rbx), %edi
	callq	_lower_32_bits
	movl	%eax, %ebx
	movq	_DMA_CH_RDLR_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_XLGMAC_DMA_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movl	4(%r12), %eax
	leal	(%rax,%r13), %esi
	decl	%esi
	movq	%r12, %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
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_CH_RDRLR,4,2               ## @DMA_CH_RDRLR
	.comm	_DMA_CH_RDLR_HI,4,2             ## @DMA_CH_RDLR_HI
	.comm	_DMA_CH_RDLR_LO,4,2             ## @DMA_CH_RDLR_LO
	.comm	_DMA_CH_RDTR_LO,4,2             ## @DMA_CH_RDTR_LO
	.no_dead_strip	_xlgmac_rx_desc_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlgmac_rx_desc_init
_xlgmac_rx_desc_init:                   ; @xlgmac_rx_desc_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	x20, [x0]
	ldp	w21, w8, [x20]
	cbz	w8, LBB0_4
; %bb.1:
	mov	w22, #0
	ldr	x23, [x19, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_XLGMAC_GET_DESC_DATA
	mov	x1, x0
	mov	x0, x23
	mov	x2, x22
	bl	_xlgmac_rx_desc_reset
	add	w22, w22, #1
	ldr	w8, [x20, #4]
	cmp	w22, w8
	b.lo	LBB0_2
; %bb.3:
	sub	w22, w8, #1
	b	LBB0_5
LBB0_4:
	mov	w22, #-1
LBB0_5:
Lloh0:
	adrp	x8, _DMA_CH_RDRLR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_CH_RDRLR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_XLGMAC_DMA_REG
	mov	x1, x0
	mov	x0, x22
	bl	_writel
	mov	x0, x20
	mov	x1, x21
	bl	_XLGMAC_GET_DESC_DATA
	mov	x22, x0
	ldr	w0, [x0]
	bl	_upper_32_bits
	mov	x23, x0
Lloh3:
	adrp	x8, _DMA_CH_RDLR_HI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_CH_RDLR_HI@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_XLGMAC_DMA_REG
	mov	x1, x0
	mov	x0, x23
	bl	_writel
	ldr	w0, [x22]
	bl	_lower_32_bits
	mov	x22, x0
Lloh6:
	adrp	x8, _DMA_CH_RDLR_LO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_CH_RDLR_LO@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_XLGMAC_DMA_REG
	mov	x1, x0
	mov	x0, x22
	bl	_writel
	ldr	w8, [x20, #4]
	add	w8, w21, w8
	sub	w1, w8, #1
	mov	x0, x20
	bl	_XLGMAC_GET_DESC_DATA
	ldr	w0, [x0]
	bl	_lower_32_bits
	mov	x20, x0
Lloh9:
	adrp	x8, _DMA_CH_RDTR_LO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DMA_CH_RDTR_LO@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_XLGMAC_DMA_REG
	mov	x1, x0
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_CH_RDRLR,4,2               ; @DMA_CH_RDRLR
	.comm	_DMA_CH_RDLR_HI,4,2             ; @DMA_CH_RDLR_HI
	.comm	_DMA_CH_RDLR_LO,4,2             ; @DMA_CH_RDLR_LO
	.comm	_DMA_CH_RDTR_LO,4,2             ; @DMA_CH_RDTR_LO
	.no_dead_strip	_xlgmac_rx_desc_init
.subsections_via_symbols
