	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc95xx_mdio_write
_smsc95xx_mdio_write:                   ## @smsc95xx_mdio_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movl	%esi, %r15d
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_smsc95xx_phy_wait_not_busy
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_devwarn
	jmp	LBB0_4
LBB0_2:
	movq	_MII_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_smsc95xx_write_reg
	andl	4(%rbx), %r15d
	andl	8(%rbx), %r14d
	shll	$11, %r15d
	movl	%r14d, %eax
	movq	_MII_WRITE_@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r15d
	shll	$6, %eax
	orl	%eax, %r15d
	movq	_MII_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_smsc95xx_write_reg
	movq	%rbx, %rdi
	callq	_smsc95xx_phy_wait_not_busy
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_devwarn
LBB0_4:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MII is busy in smsc95xx_mdio_write"

	.comm	_MII_DATA,4,2                   ## @MII_DATA
	.comm	_MII_WRITE_,4,2                 ## @MII_WRITE_
	.comm	_MII_ADDR,4,2                   ## @MII_ADDR
L_.str.1:                               ## @.str.1
	.asciz	"Timed out writing MII reg %02X"

	.no_dead_strip	_smsc95xx_mdio_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc95xx_mdio_write
_smsc95xx_mdio_write:                   ; @smsc95xx_mdio_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	bl	_netdev_priv
	mov	x19, x0
	bl	_mutex_lock
	mov	x0, x19
	bl	_smsc95xx_phy_wait_not_busy
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _MII_DATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MII_DATA@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_smsc95xx_write_reg
	ldp	w8, w9, [x19, #4]
	and	w8, w8, w21
	and	w20, w9, w20
Lloh5:
	adrp	x9, _MII_WRITE_@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MII_WRITE_@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8, lsl #11
	orr	w2, w8, w20, lsl #6
Lloh8:
	adrp	x8, _MII_ADDR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MII_ADDR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smsc95xx_write_reg
	mov	x0, x19
	bl	_smsc95xx_phy_wait_not_busy
	cbz	x0, LBB0_5
; %bb.3:
	str	x20, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_devwarn
LBB0_5:
	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
	add	sp, sp, #64
	b	_mutex_unlock
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MII is busy in smsc95xx_mdio_write"

	.comm	_MII_DATA,4,2                   ; @MII_DATA
	.comm	_MII_WRITE_,4,2                 ; @MII_WRITE_
	.comm	_MII_ADDR,4,2                   ; @MII_ADDR
l_.str.1:                               ; @.str.1
	.asciz	"Timed out writing MII reg %02X"

	.no_dead_strip	_smsc95xx_mdio_write
.subsections_via_symbols
