	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fec_enet_mii
_fec_enet_mii:                          ## @fec_enet_mii
	.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
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_spin_lock
	movq	_mii_head@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	16(%rbx), %r13
	testq	%r13, %r13
	je	LBB0_4
## %bb.3:
	movq	_FEC_MII_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_readl
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	*%r13
LBB0_4:
	movq	8(%rbx), %rax
	movq	%rax, (%r12)
	movq	_mii_free@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%rdx, 8(%rbx)
	movq	%rbx, (%rcx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%rax), %edi
	movq	_FEC_MII_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	callq	_writel
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_printk
LBB0_6:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mii_head,8,3                   ## @mii_head
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MII and no head!\n"

	.comm	_FEC_MII_DATA,8,3               ## @FEC_MII_DATA
	.comm	_mii_free,8,3                   ## @mii_free
	.no_dead_strip	_fec_enet_mii
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fec_enet_mii
_fec_enet_mii:                          ; @fec_enet_mii
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	bl	_spin_lock
Lloh0:
	adrp	x23, _mii_head@GOTPAGE
Lloh1:
	ldr	x23, [x23, _mii_head@GOTPAGEOFF]
	ldr	x22, [x23]
	cbz	x22, LBB0_5
; %bb.1:
	ldr	x24, [x22, #16]
Lloh2:
	adrp	x21, _FEC_MII_DATA@GOTPAGE
Lloh3:
	ldr	x21, [x21, _FEC_MII_DATA@GOTPAGEOFF]
	cbz	x24, LBB0_3
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	mov	x1, x20
	blr	x24
LBB0_3:
	ldr	x8, [x22, #8]
	str	x8, [x23]
Lloh4:
	adrp	x9, _mii_free@GOTPAGE
Lloh5:
	ldr	x9, [x9, _mii_free@GOTPAGEOFF]
	ldr	x10, [x9]
	str	x10, [x22, #8]
	str	x22, [x9]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
LBB0_6:
	mov	x0, x19
	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	_spin_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_mii_head,8,3                   ; @mii_head
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MII and no head!\n"

	.comm	_FEC_MII_DATA,8,3               ; @FEC_MII_DATA
	.comm	_mii_free,8,3                   ; @mii_free
	.no_dead_strip	_fec_enet_mii
.subsections_via_symbols
