	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc9420_mii_read
_smsc9420_mii_read:                     ## @smsc9420_mii_read
	.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
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	(%rdi), %r15
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_MII_ACCESS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_smsc9420_reg_read
	movq	_MII_ACCESS_MII_BUSY_@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	leaq	L_.str(%rip), %rcx
LBB0_9:
	movq	%r15, %rdi
	callq	_netif_warn
	jmp	LBB0_10
LBB0_2:
	shll	$11, %r12d
	movzwl	%r12w, %eax
	andl	$31, %ebx
	shll	$6, %ebx
	orl	%eax, %ebx
	movq	_MII_ACCESS_MII_READ_@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_smsc9420_reg_write
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_smsc9420_reg_read
	movq	_MII_ACCESS_MII_BUSY_@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.4:
	movl	$10, %edi
	callq	_udelay
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_smsc9420_reg_read
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.5:
	movl	$10, %edi
	callq	_udelay
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_smsc9420_reg_read
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.6:
	movl	$10, %edi
	callq	_udelay
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_smsc9420_reg_read
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.7:
	movl	$10, %edi
	callq	_udelay
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_smsc9420_reg_read
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.8:
	movl	$10, %edi
	callq	_udelay
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_9
LBB0_3:
	movq	_MII_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_smsc9420_reg_read
	movl	%eax, %r14d
LBB0_10:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_MII_ACCESS,4,2                 ## @MII_ACCESS
	.comm	_MII_ACCESS_MII_BUSY_,4,2       ## @MII_ACCESS_MII_BUSY_
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MII is busy???\n"

	.comm	_MII_ACCESS_MII_READ_,4,2       ## @MII_ACCESS_MII_READ_
	.comm	_MII_DATA,4,2                   ## @MII_DATA
L_.str.1:                               ## @.str.1
	.asciz	"MII busy timeout!\n"

	.no_dead_strip	_smsc9420_mii_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc9420_mii_read
_smsc9420_mii_read:                     ; @smsc9420_mii_read
	.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, x2
	mov	x22, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x23, _MII_ACCESS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MII_ACCESS@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_smsc9420_reg_read
Lloh5:
	adrp	x24, _MII_ACCESS_MII_BUSY_@GOTPAGE
Lloh6:
	ldr	x24, [x24, _MII_ACCESS_MII_BUSY_@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
Lloh7:
	adrp	x8, _drv@GOTPAGE
Lloh8:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	bl	_netif_warn
	b	LBB0_10
LBB0_3:
	ubfiz	w8, w22, #11, #5
	bfi	w8, w21, #6, #5
Lloh12:
	adrp	x9, _MII_ACCESS_MII_READ_@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MII_ACCESS_MII_READ_@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w8, w9
	ldr	w1, [x23]
	mov	x0, x19
	bl	_smsc9420_reg_write
	ldr	w1, [x23]
	mov	x0, x19
	bl	_smsc9420_reg_read
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.4:
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x23]
	mov	x0, x19
	bl	_smsc9420_reg_read
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.5:
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x23]
	mov	x0, x19
	bl	_smsc9420_reg_read
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.6:
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x23]
	mov	x0, x19
	bl	_smsc9420_reg_read
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.7:
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x23]
	mov	x0, x19
	bl	_smsc9420_reg_read
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.8:
	mov	w0, #10
	bl	_udelay
Lloh15:
	adrp	x8, _drv@GOTPAGE
Lloh16:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
Lloh18:
	adrp	x3, l_.str.1@PAGE
Lloh19:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_9:
Lloh20:
	adrp	x8, _MII_DATA@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MII_DATA@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smsc9420_reg_read
	mov	x20, x0
LBB0_10:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	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
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_MII_ACCESS,4,2                 ; @MII_ACCESS
	.comm	_MII_ACCESS_MII_BUSY_,4,2       ; @MII_ACCESS_MII_BUSY_
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MII is busy???\n"

	.comm	_MII_ACCESS_MII_READ_,4,2       ; @MII_ACCESS_MII_READ_
	.comm	_MII_DATA,4,2                   ; @MII_DATA
l_.str.1:                               ; @.str.1
	.asciz	"MII busy timeout!\n"

	.no_dead_strip	_smsc9420_mii_read
.subsections_via_symbols
