	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asix_mdio_write
_asix_mdio_write:                       ## @asix_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
	subq	$16, %rsp
	.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
	movl	%r12d, %edi
	callq	_cpu_to_le16
	movl	%eax, -36(%rbp)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	callq	_devdbg
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_asix_set_sw_mii
	movq	_AX_CMD_WRITE_MII_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %r9
	movq	%rbx, %rdi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	$2, %r8d
	callq	_asix_write_cmd
	movq	%rbx, %rdi
	callq	_asix_set_hw_mii
	movq	%rbx, %rdi
	callq	_mutex_unlock
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"asix_mdio_write() phy_id=0x%02x, loc=0x%02x, val=0x%04x"

	.comm	_AX_CMD_WRITE_MII_REG,4,2       ## @AX_CMD_WRITE_MII_REG
	.no_dead_strip	_asix_mdio_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asix_mdio_write
_asix_mdio_write:                       ; @asix_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	x19, x3
	mov	x20, x2
	mov	x21, x1
	bl	_netdev_priv
	mov	x22, x0
	mov	x0, x19
	bl	_cpu_to_le16
	str	w0, [sp, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_devdbg
	mov	x0, x22
	bl	_mutex_lock
	mov	x0, x22
	bl	_asix_set_sw_mii
Lloh2:
	adrp	x8, _AX_CMD_WRITE_MII_REG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AX_CMD_WRITE_MII_REG@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x5, sp, #12
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	mov	w4, #2
	bl	_asix_write_cmd
	mov	x0, x22
	bl	_asix_set_hw_mii
	mov	x0, x22
	bl	_mutex_unlock
	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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"asix_mdio_write() phy_id=0x%02x, loc=0x%02x, val=0x%04x"

	.comm	_AX_CMD_WRITE_MII_REG,4,2       ; @AX_CMD_WRITE_MII_REG
	.no_dead_strip	_asix_mdio_write
.subsections_via_symbols
