	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fec_enet_enable_ring
_fec_enet_enable_ring:                  ## @fec_enet_enable_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_netdev_priv
	movq	%rax, %r14
	cmpl	$0, (%rax)
	jle	LBB0_4
## %bb.1:
	movq	8(%r14), %rbx
	movq	24(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %r15d
	xorl	%edi, %edi
	callq	_FEC_R_DES_START
	addq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	_PKT_MAXBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	8(%r14), %rbx
	xorl	%edi, %edi
	callq	_FEC_R_BUFF_SIZE
	addq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_writel
	cmpl	$2, (%r14)
	jl	LBB0_4
## %bb.2:
	movl	$1, %ebx
	movq	_RCMR_MATCHEN@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %r15
	movq	24(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %r12d
	movl	%ebx, %edi
	callq	_FEC_R_DES_START
	addq	%rax, %r15
	movl	%r12d, %edi
	movq	%r15, %rsi
	callq	_writel
	movq	_PKT_MAXBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	8(%r14), %r12
	movl	%ebx, %edi
	callq	_FEC_R_BUFF_SIZE
	addq	%rax, %r12
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_writel
	movl	(%r13), %r15d
	movl	%ebx, %edi
	callq	_RCMR_CMP
	orl	%eax, %r15d
	movq	8(%r14), %r12
	movl	%ebx, %edi
	callq	_FEC_RCMR
	addq	%rax, %r12
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_writel
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	cmpl	$0, 4(%r14)
	jle	LBB0_8
## %bb.5:
	movq	8(%r14), %rbx
	movq	16(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %r15d
	xorl	%edi, %edi
	callq	_FEC_X_DES_START
	addq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_writel
	cmpl	$2, 4(%r14)
	jl	LBB0_8
## %bb.6:
	movl	$1, %ebx
	movq	_DMA_CLASS_EN@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %r15
	movq	16(%r14), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %r12d
	movl	%ebx, %edi
	callq	_FEC_X_DES_START
	addq	%rax, %r15
	movl	%r12d, %edi
	movq	%r15, %rsi
	callq	_writel
	movl	(%r13), %r15d
	movl	%ebx, %edi
	callq	_IDLE_SLOPE
	orl	%eax, %r15d
	movq	8(%r14), %r12
	movl	%ebx, %edi
	callq	_FEC_DMA_CFG
	addq	%rax, %r12
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_writel
	incq	%rbx
	movslq	4(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PKT_MAXBUF_SIZE,4,2            ## @PKT_MAXBUF_SIZE
	.comm	_RCMR_MATCHEN,4,2               ## @RCMR_MATCHEN
	.comm	_DMA_CLASS_EN,4,2               ## @DMA_CLASS_EN
	.no_dead_strip	_fec_enet_enable_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fec_enet_enable_ring
_fec_enet_enable_ring:                  ; @fec_enet_enable_ring
	.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
	bl	_netdev_priv
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w20, [x8]
	ldr	x21, [x19, #8]
	mov	w0, #0
	bl	_FEC_R_DES_START
	add	x1, x0, x21
	mov	x0, x20
	bl	_writel
Lloh0:
	adrp	x22, _PKT_MAXBUF_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PKT_MAXBUF_SIZE@GOTPAGEOFF]
	ldr	w20, [x22]
	ldr	x21, [x19, #8]
	mov	w0, #0
	bl	_FEC_R_BUFF_SIZE
	add	x1, x0, x21
	mov	x0, x20
	bl	_writel
	ldr	w8, [x19]
	cmp	w8, #1
	b.le	LBB0_4
; %bb.2:
	mov	w20, #1
Lloh2:
	adrp	x23, _RCMR_MATCHEN@GOTPAGE
Lloh3:
	ldr	x23, [x23, _RCMR_MATCHEN@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x20, lsl #3]
	ldr	w21, [x8]
	ldr	x24, [x19, #8]
	mov	x0, x20
	bl	_FEC_R_DES_START
	add	x1, x0, x24
	mov	x0, x21
	bl	_writel
	ldr	w21, [x22]
	ldr	x24, [x19, #8]
	mov	x0, x20
	bl	_FEC_R_BUFF_SIZE
	add	x1, x0, x24
	mov	x0, x21
	bl	_writel
	ldr	w21, [x23]
	mov	x0, x20
	bl	_RCMR_CMP
	orr	w21, w0, w21
	ldr	x24, [x19, #8]
	mov	x0, x20
	bl	_FEC_RCMR
	add	x1, x0, x24
	mov	x0, x21
	bl	_writel
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_3
LBB0_4:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	ldp	x21, x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w20, [x8]
	mov	w0, #0
	bl	_FEC_X_DES_START
	add	x1, x0, x21
	mov	x0, x20
	bl	_writel
	ldr	w8, [x19, #4]
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.6:
	mov	w20, #1
Lloh4:
	adrp	x22, _DMA_CLASS_EN@GOTPAGE
Lloh5:
	ldr	x22, [x22, _DMA_CLASS_EN@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x23, x8, [x19, #8]
	ldr	x8, [x8, x20, lsl #3]
	ldr	w21, [x8]
	mov	x0, x20
	bl	_FEC_X_DES_START
	add	x1, x0, x23
	mov	x0, x21
	bl	_writel
	ldr	w21, [x22]
	mov	x0, x20
	bl	_IDLE_SLOPE
	orr	w21, w0, w21
	ldr	x23, [x19, #8]
	mov	x0, x20
	bl	_FEC_DMA_CFG
	add	x1, x0, x23
	mov	x0, x21
	bl	_writel
	add	x20, x20, #1
	ldrsw	x8, [x19, #4]
	cmp	x20, x8
	b.lt	LBB0_7
LBB0_8:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PKT_MAXBUF_SIZE,4,2            ; @PKT_MAXBUF_SIZE
	.comm	_RCMR_MATCHEN,4,2               ; @RCMR_MATCHEN
	.comm	_DMA_CLASS_EN,4,2               ; @DMA_CLASS_EN
	.no_dead_strip	_fec_enet_enable_ring
.subsections_via_symbols
