	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fec_stop
_fec_stop:                              ## @fec_stop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_netdev_priv
	movq	%rax, %rbx
	cmpq	$0, 16(%rax)
	je	LBB0_3
## %bb.1:
	movq	_FEC_X_CNTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	$1, %edi
	callq	_writel
	movl	$10, %edi
	callq	_udelay
	movq	_FEC_IEVENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_FEC_ENET_GRA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_printk
LBB0_3:
	movq	_FEC_ECNTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	$1, %edi
	callq	_writel
	movl	$10, %edi
	callq	_udelay
	movq	_FEC_ENET_MII@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_FEC_IEVENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movl	(%r14), %edi
	movq	_FEC_IMASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movl	(%rbx), %edi
	movq	_FEC_MII_SPEED@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FEC_X_CNTRL,8,3                ## @FEC_X_CNTRL
	.comm	_FEC_IEVENT,8,3                 ## @FEC_IEVENT
	.comm	_FEC_ENET_GRA,4,2               ## @FEC_ENET_GRA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fec_stop : Graceful transmit stop did not complete !\n"

	.comm	_FEC_ECNTRL,8,3                 ## @FEC_ECNTRL
	.comm	_FEC_ENET_MII,4,2               ## @FEC_ENET_MII
	.comm	_FEC_IMASK,8,3                  ## @FEC_IMASK
	.comm	_FEC_MII_SPEED,8,3              ## @FEC_MII_SPEED
	.no_dead_strip	_fec_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fec_stop
_fec_stop:                              ; @fec_stop
	.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
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x20, _FEC_IEVENT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FEC_IEVENT@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _FEC_X_CNTRL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FEC_X_CNTRL@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #1
	bl	_writel
	mov	w0, #10
	bl	_udelay
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh5:
	adrp	x8, _FEC_ENET_GRA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FEC_ENET_GRA@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_3
; %bb.2:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
LBB0_3:
	ldr	x8, [x19, #8]
Lloh10:
	adrp	x9, _FEC_ECNTRL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _FEC_ECNTRL@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #1
	bl	_writel
	mov	w0, #10
	bl	_udelay
Lloh13:
	adrp	x21, _FEC_ENET_MII@GOTPAGE
Lloh14:
	ldr	x21, [x21, _FEC_ENET_MII@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x21]
	ldr	x8, [x19, #8]
Lloh15:
	adrp	x9, _FEC_IMASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FEC_IMASK@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x19]
	ldr	x8, [x19, #8]
Lloh18:
	adrp	x9, _FEC_MII_SPEED@GOTPAGE
Lloh19:
	ldr	x9, [x9, _FEC_MII_SPEED@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_FEC_X_CNTRL,8,3                ; @FEC_X_CNTRL
	.comm	_FEC_IEVENT,8,3                 ; @FEC_IEVENT
	.comm	_FEC_ENET_GRA,4,2               ; @FEC_ENET_GRA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fec_stop : Graceful transmit stop did not complete !\n"

	.comm	_FEC_ECNTRL,8,3                 ; @FEC_ECNTRL
	.comm	_FEC_ENET_MII,4,2               ; @FEC_ENET_MII
	.comm	_FEC_IMASK,8,3                  ; @FEC_IMASK
	.comm	_FEC_MII_SPEED,8,3              ; @FEC_MII_SPEED
	.no_dead_strip	_fec_stop
.subsections_via_symbols
