	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc911x_mii_read
_smsc911x_mii_read:                     ## @smsc911x_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, %r14d
	movl	%esi, %ebx
	movq	(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_MII_ACC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_smsc911x_mac_read
	movq	_MII_ACC_MII_BUSY_@GOTPCREL(%rip), %r13
	andl	(%r13), %eax
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_7
LBB0_2:
	shll	$11, %ebx
	movzwl	%bx, %eax
	andl	$31, %r14d
	shll	$6, %r14d
	orl	%eax, %r14d
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_smsc911x_mac_write
	movl	$100, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_smsc911x_mac_read
	testl	%eax, (%r13)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	decl	%ebx
	jne	LBB0_4
## %bb.6:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_7:
	movq	%r15, %rdi
	callq	_SMSC_WARN
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_8:
	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
LBB0_5:
	movq	_MII_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_smsc911x_mac_read
	movl	%eax, %r14d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_ACC,4,2                    ## @MII_ACC
	.comm	_MII_ACC_MII_BUSY_,4,2          ## @MII_ACC_MII_BUSY_
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MII is busy in smsc911x_mii_read???"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_MII_DATA,4,2                   ## @MII_DATA
L_.str.1:                               ## @.str.1
	.asciz	"Timed out waiting for MII read to finish"

	.no_dead_strip	_smsc911x_mii_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc911x_mii_read
_smsc911x_mii_read:                     ; @smsc911x_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	x20, x2
	mov	x21, x1
	ldr	x19, [x0]
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x22, _MII_ACC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MII_ACC@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_smsc911x_mac_read
Lloh2:
	adrp	x23, _MII_ACC_MII_BUSY_@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MII_ACC_MII_BUSY_@GOTPAGEOFF]
	ldr	w8, [x23]
	and	w0, w8, w0
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _hw@GOTPAGE
Lloh5:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
	ubfiz	w2, w21, #11, #5
	bfi	w2, w20, #6, #5
	ldr	w1, [x22]
	mov	x0, x19
	bl	_smsc911x_mac_write
	mov	w20, #100
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_smsc911x_mac_read
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	subs	w20, w20, #1
	b.ne	LBB0_3
; %bb.5:
Lloh9:
	adrp	x8, _hw@GOTPAGE
Lloh10:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_SMSC_WARN
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	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
LBB0_8:
Lloh17:
	adrp	x8, _MII_DATA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MII_DATA@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smsc911x_mac_read
	mov	x20, x0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_ACC,4,2                    ; @MII_ACC
	.comm	_MII_ACC_MII_BUSY_,4,2          ; @MII_ACC_MII_BUSY_
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MII is busy in smsc911x_mii_read???"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_MII_DATA,4,2                   ; @MII_DATA
l_.str.1:                               ; @.str.1
	.asciz	"Timed out waiting for MII read to finish"

	.no_dead_strip	_smsc911x_mii_read
.subsections_via_symbols
