	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgbe_rx_desc_init
_xgbe_rx_desc_init:                     ## @xgbe_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), %r13
	movq	8(%rdi), %r12
	movl	(%r13), %r15d
	leaq	L_.str(%rip), %rdi
	callq	_DBGPR
	cmpl	$0, 4(%r13)
	je	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_XGBE_GET_DESC_DATA
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	callq	_xgbe_rx_desc_reset
	incl	%ebx
	movl	4(%r13), %edx
	cmpl	%edx, %ebx
	jb	LBB0_3
## %bb.4:
	decl	%edx
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %edx
LBB0_5:
	movq	_DMA_CH_RDRLR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_XGMAC_DMA_IOWRITE
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_XGBE_GET_DESC_DATA
	movq	%rax, %rbx
	movq	_DMA_CH_RDLR_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%rbx), %edi
	callq	_upper_32_bits
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_XGMAC_DMA_IOWRITE
	movq	_DMA_CH_RDLR_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%rbx), %edi
	callq	_lower_32_bits
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_XGMAC_DMA_IOWRITE
	movl	4(%r13), %eax
	leal	(%r15,%rax), %esi
	decl	%esi
	movq	%r13, %rdi
	callq	_XGBE_GET_DESC_DATA
	movq	_DMA_CH_RDTR_LO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	(%rax), %edi
	callq	_lower_32_bits
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_XGMAC_DMA_IOWRITE
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DBGPR                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-->rx_desc_init\n"

	.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
L_.str.1:                               ## @.str.1
	.asciz	"<--rx_desc_init\n"

	.no_dead_strip	_xgbe_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 xgbe_rx_desc_init
_xgbe_rx_desc_init:                     ; @xgbe_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
	ldp	x20, x22, [x0]
	ldr	w21, [x20]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBGPR
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_4
; %bb.1:
	mov	w23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_XGBE_GET_DESC_DATA
	mov	x1, x0
	mov	x0, x22
	mov	x2, x23
	bl	_xgbe_rx_desc_reset
	add	w23, w23, #1
	ldr	w8, [x20, #4]
	cmp	w23, w8
	b.lo	LBB0_2
; %bb.3:
	sub	w2, w8, #1
	b	LBB0_5
LBB0_4:
	mov	w2, #-1
LBB0_5:
Lloh2:
	adrp	x8, _DMA_CH_RDRLR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMA_CH_RDRLR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_XGMAC_DMA_IOWRITE
	mov	x0, x20
	mov	x1, x21
	bl	_XGBE_GET_DESC_DATA
	mov	x22, x0
Lloh5:
	adrp	x8, _DMA_CH_RDLR_HI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_CH_RDLR_HI@GOTPAGEOFF]
Lloh7:
	ldr	w23, [x8]
	ldr	w0, [x0]
	bl	_upper_32_bits
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	bl	_XGMAC_DMA_IOWRITE
Lloh8:
	adrp	x8, _DMA_CH_RDLR_LO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMA_CH_RDLR_LO@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
	ldr	w0, [x22]
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	bl	_XGMAC_DMA_IOWRITE
	ldr	w8, [x20, #4]
	add	w8, w21, w8
	sub	w1, w8, #1
	mov	x0, x20
	bl	_XGBE_GET_DESC_DATA
Lloh11:
	adrp	x8, _DMA_CH_RDTR_LO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DMA_CH_RDTR_LO@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	ldr	w0, [x0]
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_XGMAC_DMA_IOWRITE
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	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	_DBGPR
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-->rx_desc_init\n"

	.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
l_.str.1:                               ; @.str.1
	.asciz	"<--rx_desc_init\n"

	.no_dead_strip	_xgbe_rx_desc_init
.subsections_via_symbols
