	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w90p910_mdio_write
_w90p910_mdio_write:                    ## @w90p910_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	%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, %r12d
	movl	%edx, %r13d
	movl	%esi, %ebx
	callq	_netdev_priv
	movq	%rax, %r15
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_REG_MIID@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	movl	%r12d, %edi
	callq	___raw_writel
	shll	$8, %ebx
	movq	_PHYBUSY@GOTPCREL(%rip), %r12
	movq	_PHYWR@GOTPCREL(%rip), %rax
	movq	_MDCCR_VAL@GOTPCREL(%rip), %rcx
	orl	%r13d, %ebx
	orl	(%r12), %ebx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	movq	_REG_MIIDA@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	addq	(%r15), %rsi
	movl	%ebx, %edi
	callq	___raw_writel
	movq	_DELAY@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_7
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	addq	(%r15), %rdi
	callq	___raw_readl
	testl	%eax, (%r12)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movl	(%r14), %eax
	cmpl	%eax, %ebx
	jb	LBB0_2
## %bb.5:
	cmpl	%eax, %ebx
	jne	LBB0_6
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
LBB0_3:
	movl	(%r14), %eax
	cmpl	%eax, %ebx
	je	LBB0_7
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_MIID,8,3                   ## @REG_MIID
	.comm	_PHYBUSY,4,2                    ## @PHYBUSY
	.comm	_PHYWR,4,2                      ## @PHYWR
	.comm	_MDCCR_VAL,4,2                  ## @MDCCR_VAL
	.comm	_REG_MIIDA,8,3                  ## @REG_MIIDA
	.comm	_DELAY,4,2                      ## @DELAY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mdio write timed out\n"

	.no_dead_strip	_w90p910_mdio_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w90p910_mdio_write
_w90p910_mdio_write:                    ; @w90p910_mdio_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	x21, x3
	mov	x22, x2
	mov	x23, x1
	bl	_netdev_priv
	mov	x20, x0
	ldp	x8, x19, [x0]
Lloh0:
	adrp	x9, _REG_MIID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REG_MIID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	___raw_writel
Lloh3:
	adrp	x21, _PHYBUSY@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PHYBUSY@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh5:
	adrp	x9, _PHYWR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PHYWR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _MDCCR_VAL@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MDCCR_VAL@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w11, w22, w23, lsl #8
	orr	w8, w11, w8
	orr	w8, w8, w9
	orr	w0, w8, w10
	ldr	x8, [x20]
Lloh11:
	adrp	x22, _REG_MIIDA@GOTPAGE
Lloh12:
	ldr	x22, [x22, _REG_MIIDA@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	___raw_writel
Lloh13:
	adrp	x24, _DELAY@GOTPAGE
Lloh14:
	ldr	x24, [x24, _DELAY@GOTPAGEOFF]
	ldr	w8, [x24]
	cbz	w8, LBB0_5
; %bb.1:
	mov	w23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	___raw_readl
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w23, w23, #1
	ldr	w8, [x24]
	cmp	w23, w8
	b.lo	LBB0_2
; %bb.4:
	cmp	w23, w8
	b.ne	LBB0_7
LBB0_5:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dev_warn
LBB0_6:
	ldr	w8, [x24]
	cmp	w23, w8
	b.eq	LBB0_5
LBB0_7:
	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	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_MIID,8,3                   ; @REG_MIID
	.comm	_PHYBUSY,4,2                    ; @PHYBUSY
	.comm	_PHYWR,4,2                      ; @PHYWR
	.comm	_MDCCR_VAL,4,2                  ; @MDCCR_VAL
	.comm	_REG_MIIDA,8,3                  ; @REG_MIIDA
	.comm	_DELAY,4,2                      ; @DELAY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mdio write timed out\n"

	.no_dead_strip	_w90p910_mdio_write
.subsections_via_symbols
