	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc911x_mii_write
_smsc911x_mii_write:                    ## @smsc911x_mii_write
	.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	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	(%rdi), %r13
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	_MII_ACC@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_smsc911x_mac_read
	movq	_MII_ACC_MII_BUSY_@GOTPCREL(%rip), %r12
	andl	(%r12), %eax
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %r14
	jmp	LBB0_2
LBB0_4:
	movq	_MII_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_smsc911x_mac_write
	shll	$11, %ebx
	movzwl	%bx, %eax
	andl	$31, %r14d
	shll	$6, %r14d
	orl	%eax, %r14d
	movq	_MII_ACC_MII_WRITE_@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	(%r15), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_smsc911x_mac_write
	movl	$100, %ebx
	leaq	L_.str.1(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_smsc911x_mac_read
	testl	%eax, (%r12)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_5 Depth=1
	decl	%ebx
	jne	LBB0_5
LBB0_2:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_SMSC_WARN
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_write???"

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

	.no_dead_strip	_smsc911x_mii_write
.subsections_via_symbols

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

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

	.no_dead_strip	_smsc911x_mii_write
.subsections_via_symbols
