	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fec_enet_mdio_write
_fec_enet_mdio_write:                   ## @fec_enet_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %r12
	movq	16(%r12), %r13
	movq	_MII_ADDR_C45@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r13, %rdi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	leaq	4(%r12), %rbx
	movq	%rbx, %rdi
	callq	_reinit_completion
	testl	%r15d, %r14d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.3:
	movq	_FEC_MMFR_ST_C45@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r15d, %r14d
	sarl	$16, %r14d
	movq	_FEC_MMFR_OP_ADDR_WRITE@GOTPCREL(%rip), %rax
	movzwl	%r15w, %r15d
	orl	%r13d, %r15d
	orl	(%rax), %r15d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_FEC_MMFR_PA
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_FEC_MMFR_RA
	movq	_FEC_MMFR_TA@GOTPCREL(%rip), %rcx
	orl	%eax, %ebx
	orl	%r15d, %ebx
	orl	(%rcx), %ebx
	movq	_FEC_MII_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	movl	%ebx, %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	callq	_writel
	movq	_FEC_MII_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usecs_to_jiffies
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_wait_for_completion_timeout
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %r15d
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_5:
	movq	_FEC_MMFR_ST@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
LBB0_6:
	movq	_FEC_MMFR_OP_WRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	callq	_FEC_MMFR_PA
	movq	%rbx, %r14
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_FEC_MMFR_RA
	orl	%eax, %ebx
	orl	%r13d, %ebx
	movq	_FEC_MMFR_TA@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_FEC_MMFR_DATA
	orl	%eax, %ebx
	movq	_FEC_MII_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	_FEC_MII_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usecs_to_jiffies
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_wait_for_completion_timeout
	xorl	%ebx, %ebx
	testq	%rax, %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_9
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
LBB0_8:
	movl	(%r12), %edi
	callq	_netdev_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movq	%r14, %rdi
	callq	_pm_runtime_mark_last_busy
	movq	%r14, %rdi
	callq	_pm_runtime_put_autosuspend
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_ADDR_C45,4,2               ## @MII_ADDR_C45
	.comm	_FEC_MMFR_ST_C45,4,2            ## @FEC_MMFR_ST_C45
	.comm	_FEC_MMFR_OP_ADDR_WRITE,4,2     ## @FEC_MMFR_OP_ADDR_WRITE
	.comm	_FEC_MMFR_TA,4,2                ## @FEC_MMFR_TA
	.comm	_FEC_MII_DATA,8,3               ## @FEC_MII_DATA
	.comm	_FEC_MII_TIMEOUT,4,2            ## @FEC_MII_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MDIO address write timeout\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_FEC_MMFR_ST,4,2                ## @FEC_MMFR_ST
	.comm	_FEC_MMFR_OP_WRITE,4,2          ## @FEC_MMFR_OP_WRITE
L_.str.1:                               ## @.str.1
	.asciz	"MDIO write timeout\n"

	.no_dead_strip	_fec_enet_mdio_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fec_enet_mdio_write
_fec_enet_mdio_write:                   ; @fec_enet_mdio_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	ldr	x26, [x0]
	ldr	x19, [x26, #16]
Lloh0:
	adrp	x8, _MII_ADDR_C45@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_ADDR_C45@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_4
; %bb.1:
	and	w24, w24, w23
	add	x20, x26, #4
	mov	x0, x20
	bl	_reinit_completion
Lloh3:
	adrp	x8, _FEC_MMFR_TA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FEC_MMFR_TA@GOTPAGEOFF]
Lloh5:
	adrp	x27, _FEC_MII_DATA@GOTPAGE
Lloh6:
	ldr	x27, [x27, _FEC_MII_DATA@GOTPAGEOFF]
Lloh7:
	adrp	x25, _FEC_MII_TIMEOUT@GOTPAGE
Lloh8:
	ldr	x25, [x25, _FEC_MII_TIMEOUT@GOTPAGEOFF]
	cbz	w24, LBB0_5
; %bb.2:
	str	w21, [sp, #12]                  ; 4-byte Folded Spill
	mov	x21, x8
Lloh9:
	adrp	x8, _FEC_MMFR_ST_C45@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FEC_MMFR_ST_C45@GOTPAGEOFF]
Lloh11:
	ldr	w28, [x8]
	asr	w24, w23, #16
Lloh12:
	adrp	x8, _FEC_MMFR_OP_ADDR_WRITE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FEC_MMFR_OP_ADDR_WRITE@GOTPAGEOFF]
Lloh14:
	ldr	w27, [x8]
	mov	x0, x22
	bl	_FEC_MMFR_PA
	mov	x25, x0
	mov	x0, x24
	bl	_FEC_MMFR_RA
	ldr	w8, [x21]
	and	w9, w23, #0xffff
	orr	w9, w28, w9
	orr	w9, w9, w27
Lloh15:
	adrp	x27, _FEC_MII_DATA@GOTPAGE
Lloh16:
	ldr	x27, [x27, _FEC_MII_DATA@GOTPAGEOFF]
	orr	w9, w9, w25
Lloh17:
	adrp	x25, _FEC_MII_TIMEOUT@GOTPAGE
Lloh18:
	ldr	x25, [x25, _FEC_MII_TIMEOUT@GOTPAGEOFF]
	orr	w9, w9, w0
	orr	w0, w9, w8
	ldr	x8, [x26, #8]
	ldr	x9, [x27]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x25]
	bl	_usecs_to_jiffies
	mov	x1, x0
	mov	x0, x20
	bl	_wait_for_completion_timeout
	cbz	x0, LBB0_9
; %bb.3:
	mov	x23, x24
	ldr	w21, [sp, #12]                  ; 4-byte Folded Reload
	b	LBB0_6
LBB0_4:
	mov	x20, x0
	b	LBB0_12
LBB0_5:
Lloh19:
	adrp	x8, _FEC_MMFR_ST@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FEC_MMFR_ST@GOTPAGEOFF]
Lloh21:
	ldr	w28, [x8]
LBB0_6:
Lloh22:
	adrp	x8, _FEC_MMFR_OP_WRITE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FEC_MMFR_OP_WRITE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	orr	w24, w8, w28
	mov	x0, x22
	bl	_FEC_MMFR_PA
	orr	w22, w24, w0
	mov	x0, x23
	bl	_FEC_MMFR_RA
	orr	w8, w22, w0
Lloh25:
	adrp	x9, _FEC_MMFR_TA@GOTPAGE
Lloh26:
	ldr	x9, [x9, _FEC_MMFR_TA@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w22, w8, w9
	mov	x0, x21
	bl	_FEC_MMFR_DATA
	orr	w0, w22, w0
	ldr	x8, [x26, #8]
	ldr	x9, [x27]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x25]
	bl	_usecs_to_jiffies
	mov	x1, x0
	mov	x0, x20
	bl	_wait_for_completion_timeout
	cbz	x0, LBB0_8
; %bb.7:
	mov	w20, #0
	b	LBB0_11
LBB0_8:
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
LBB0_10:
	ldr	w0, [x26]
	bl	_netdev_err
Lloh32:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_11:
	mov	x0, x19
	bl	_pm_runtime_mark_last_busy
	mov	x0, x19
	bl	_pm_runtime_put_autosuspend
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_ADDR_C45,4,2               ; @MII_ADDR_C45
	.comm	_FEC_MMFR_ST_C45,4,2            ; @FEC_MMFR_ST_C45
	.comm	_FEC_MMFR_OP_ADDR_WRITE,4,2     ; @FEC_MMFR_OP_ADDR_WRITE
	.comm	_FEC_MMFR_TA,4,2                ; @FEC_MMFR_TA
	.comm	_FEC_MII_DATA,8,3               ; @FEC_MII_DATA
	.comm	_FEC_MII_TIMEOUT,4,2            ; @FEC_MII_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MDIO address write timeout\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_FEC_MMFR_ST,4,2                ; @FEC_MMFR_ST
	.comm	_FEC_MMFR_OP_WRITE,4,2          ; @FEC_MMFR_OP_WRITE
l_.str.1:                               ; @.str.1
	.asciz	"MDIO write timeout\n"

	.no_dead_strip	_fec_enet_mdio_write
.subsections_via_symbols
