	.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	%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, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	32(%rax), %rax
	movq	(%rax), %r13
	movq	_FEC_R_CNTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rbx), %rdi
	callq	_readl
	movl	%eax, %r14d
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.1:
	movq	_FEC_X_CNTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	movl	$1, %edi
	callq	_writel
	movl	$10, %edi
	callq	_udelay
	movq	_FEC_IEVENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rbx), %rdi
	callq	_readl
	movq	_FEC_ENET_GRA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_err
LBB0_3:
	movq	_FEC_WOL_FLAG_SLEEP_ON@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.8:
	movq	_FEC_DEFAULT_IMASK@GOTPCREL(%rip), %rax
	movq	_FEC_ENET_WAKEUP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_FEC_IMASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_writel
	movq	_FEC_ECNTRL@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	16(%rbx), %rdi
	callq	_readl
	movq	_FEC_ECR_MAGICEN@GOTPCREL(%rip), %rcx
	movq	_FEC_ECR_SLEEP@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movq	(%r12), %rsi
	addq	16(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	testq	%r13, %r13
	je	LBB0_11
## %bb.9:
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	$1, %edi
	callq	*%rax
	jmp	LBB0_11
LBB0_4:
	movq	_FEC_QUIRK_HAS_AVB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_FEC_ECNTRL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	16(%rbx), %rsi
	testl	%eax, 4(%rbx)
	je	LBB0_6
## %bb.5:
	xorl	%edi, %edi
	callq	_writel
	jmp	LBB0_7
LBB0_6:
	movl	$1, %edi
	callq	_writel
	movl	$10, %edi
	callq	_udelay
LBB0_7:
	movq	_FEC_DEFAULT_IMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FEC_IMASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_writel
LBB0_11:
	movl	8(%rbx), %edi
	movq	_FEC_MII_SPEED@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_writel
	movq	_FEC_QUIRK_ENET_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_13
## %bb.12:
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	je	LBB0_14
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	andl	$256, %r14d                     ## imm = 0x100
	movq	_FEC_ECNTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	movl	$2, %edi
	callq	_writel
	movq	_FEC_R_CNTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FEC_R_CNTRL,8,3                ## @FEC_R_CNTRL
	.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	"Graceful transmit stop did not complete!\n"

	.comm	_FEC_WOL_FLAG_SLEEP_ON,4,2      ## @FEC_WOL_FLAG_SLEEP_ON
	.comm	_FEC_QUIRK_HAS_AVB,4,2          ## @FEC_QUIRK_HAS_AVB
	.comm	_FEC_ECNTRL,8,3                 ## @FEC_ECNTRL
	.comm	_FEC_DEFAULT_IMASK,4,2          ## @FEC_DEFAULT_IMASK
	.comm	_FEC_IMASK,8,3                  ## @FEC_IMASK
	.comm	_FEC_ENET_WAKEUP,4,2            ## @FEC_ENET_WAKEUP
	.comm	_FEC_ECR_MAGICEN,4,2            ## @FEC_ECR_MAGICEN
	.comm	_FEC_ECR_SLEEP,4,2              ## @FEC_ECR_SLEEP
	.comm	_FEC_MII_SPEED,8,3              ## @FEC_MII_SPEED
	.comm	_FEC_QUIRK_ENET_MAC,4,2         ## @FEC_QUIRK_ENET_MAC
	.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	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	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	x23, [x8]
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x22, _FEC_R_CNTRL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FEC_R_CNTRL@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
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, #16]
Lloh5:
	adrp	x9, _FEC_IEVENT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FEC_IEVENT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh8:
	adrp	x8, _FEC_ENET_GRA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FEC_ENET_GRA@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_3
; %bb.2:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_netdev_err
LBB0_3:
	ldr	w8, [x19]
Lloh13:
	adrp	x21, _FEC_WOL_FLAG_SLEEP_ON@GOTPAGE
Lloh14:
	ldr	x21, [x21, _FEC_WOL_FLAG_SLEEP_ON@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.4:
Lloh15:
	adrp	x8, _FEC_DEFAULT_IMASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FEC_DEFAULT_IMASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _FEC_ENET_WAKEUP@GOTPAGE
Lloh19:
	ldr	x9, [x9, _FEC_ENET_WAKEUP@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x19, #16]
Lloh21:
	adrp	x9, _FEC_IMASK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _FEC_IMASK@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #16]
Lloh24:
	adrp	x24, _FEC_ECNTRL@GOTPAGE
Lloh25:
	ldr	x24, [x24, _FEC_ECNTRL@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
Lloh26:
	adrp	x8, _FEC_ECR_MAGICEN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FEC_ECR_MAGICEN@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _FEC_ECR_SLEEP@GOTPAGE
Lloh30:
	ldr	x9, [x9, _FEC_ECR_SLEEP@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w0, w8, w9
	ldr	x8, [x19, #16]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
	cbz	x23, LBB0_11
; %bb.5:
	ldr	x8, [x23]
	cbz	x8, LBB0_11
; %bb.6:
	mov	w0, #1
	blr	x8
	b	LBB0_11
LBB0_7:
	ldr	w8, [x19, #4]
Lloh32:
	adrp	x9, _FEC_QUIRK_HAS_AVB@GOTPAGE
Lloh33:
	ldr	x9, [x9, _FEC_QUIRK_HAS_AVB@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	ldr	x10, [x19, #16]
Lloh35:
	adrp	x11, _FEC_ECNTRL@GOTPAGE
Lloh36:
	ldr	x11, [x11, _FEC_ECNTRL@GOTPAGEOFF]
Lloh37:
	ldr	x11, [x11]
	add	x1, x11, x10
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	mov	w0, #0
	bl	_writel
	b	LBB0_10
LBB0_9:
	mov	w0, #1
	bl	_writel
	mov	w0, #10
	bl	_udelay
LBB0_10:
Lloh38:
	adrp	x8, _FEC_DEFAULT_IMASK@GOTPAGE
Lloh39:
	ldr	x8, [x8, _FEC_DEFAULT_IMASK@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	ldr	x8, [x19, #16]
Lloh41:
	adrp	x9, _FEC_IMASK@GOTPAGE
Lloh42:
	ldr	x9, [x9, _FEC_IMASK@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
LBB0_11:
	ldr	w0, [x19, #8]
	ldr	x8, [x19, #16]
Lloh44:
	adrp	x9, _FEC_MII_SPEED@GOTPAGE
Lloh45:
	ldr	x9, [x9, _FEC_MII_SPEED@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w8, [x19, #4]
Lloh47:
	adrp	x9, _FEC_QUIRK_ENET_MAC@GOTPAGE
Lloh48:
	ldr	x9, [x9, _FEC_QUIRK_ENET_MAC@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
	ldr	w8, [x19]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_14
LBB0_13:
	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
LBB0_14:
	and	w20, w20, #0x100
	ldr	x8, [x19, #16]
Lloh50:
	adrp	x9, _FEC_ECNTRL@GOTPAGE
Lloh51:
	ldr	x9, [x9, _FEC_ECNTRL@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #2
	bl	_writel
	ldr	x8, [x19, #16]
	ldr	x9, [x22]
	add	x1, x9, x8
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_FEC_R_CNTRL,8,3                ; @FEC_R_CNTRL
	.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	"Graceful transmit stop did not complete!\n"

	.comm	_FEC_WOL_FLAG_SLEEP_ON,4,2      ; @FEC_WOL_FLAG_SLEEP_ON
	.comm	_FEC_QUIRK_HAS_AVB,4,2          ; @FEC_QUIRK_HAS_AVB
	.comm	_FEC_ECNTRL,8,3                 ; @FEC_ECNTRL
	.comm	_FEC_DEFAULT_IMASK,4,2          ; @FEC_DEFAULT_IMASK
	.comm	_FEC_IMASK,8,3                  ; @FEC_IMASK
	.comm	_FEC_ENET_WAKEUP,4,2            ; @FEC_ENET_WAKEUP
	.comm	_FEC_ECR_MAGICEN,4,2            ; @FEC_ECR_MAGICEN
	.comm	_FEC_ECR_SLEEP,4,2              ; @FEC_ECR_SLEEP
	.comm	_FEC_MII_SPEED,8,3              ; @FEC_MII_SPEED
	.comm	_FEC_QUIRK_ENET_MAC,4,2         ; @FEC_QUIRK_ENET_MAC
	.no_dead_strip	_fec_stop
.subsections_via_symbols
