	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iproc_mdio_write
_iproc_mdio_write:                      ## @iproc_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, %r14d
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	(%rdi), %r12
	movq	(%r12), %rdi
	callq	_iproc_mdio_wait_for_idle
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_MII_DATA_TA_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MII_DATA_TA_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_MII_DATA_RA_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r15d
	movq	_MII_DATA_PA_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	orl	%eax, %r15d
	movq	_MII_DATA_SB_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %ebx
	orl	%r15d, %ebx
	movq	_MII_DATA_OP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MII_DATA_OP_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_MII_DATA_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r14d
	orl	%eax, %r14d
	orl	%ebx, %r14d
	movq	_MII_DATA_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	movl	%r14d, %edi
	callq	_writel
	movq	(%r12), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iproc_mdio_wait_for_idle       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_DATA_TA_VAL,4,2            ## @MII_DATA_TA_VAL
	.comm	_MII_DATA_TA_SHIFT,4,2          ## @MII_DATA_TA_SHIFT
	.comm	_MII_DATA_RA_SHIFT,4,2          ## @MII_DATA_RA_SHIFT
	.comm	_MII_DATA_PA_SHIFT,4,2          ## @MII_DATA_PA_SHIFT
	.comm	_MII_DATA_SB_SHIFT,4,2          ## @MII_DATA_SB_SHIFT
	.comm	_MII_DATA_OP_WRITE,4,2          ## @MII_DATA_OP_WRITE
	.comm	_MII_DATA_OP_SHIFT,4,2          ## @MII_DATA_OP_SHIFT
	.comm	_MII_DATA_MASK,4,2              ## @MII_DATA_MASK
	.comm	_MII_DATA_OFFSET,8,3            ## @MII_DATA_OFFSET
	.no_dead_strip	_iproc_mdio_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iproc_mdio_write
_iproc_mdio_write:                      ; @iproc_mdio_write
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x2
	mov	x20, x1
	ldr	x22, [x0]
	ldr	x0, [x22]
	bl	_iproc_mdio_wait_for_idle
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x8, _MII_DATA_TA_VAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_DATA_TA_VAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MII_DATA_TA_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MII_DATA_TA_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _MII_DATA_RA_SHIFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MII_DATA_RA_SHIFT@GOTPAGEOFF]
	lsl	w8, w8, w9
Lloh8:
	ldr	w9, [x10]
	lsl	w9, w21, w9
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _MII_DATA_PA_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MII_DATA_PA_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	lsl	w9, w20, w9
	orr	w20, w8, w9
Lloh12:
	adrp	x8, _MII_DATA_SB_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MII_DATA_SB_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_BIT
	orr	w8, w20, w0
Lloh15:
	adrp	x9, _MII_DATA_OP_WRITE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MII_DATA_OP_WRITE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _MII_DATA_OP_SHIFT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _MII_DATA_OP_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _MII_DATA_MASK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MII_DATA_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	and	w9, w9, w19
	orr	w0, w8, w9
	ldr	x8, [x22]
Lloh24:
	adrp	x9, _MII_DATA_OFFSET@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MII_DATA_OFFSET@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x0, [x22]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_iproc_mdio_wait_for_idle
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_DATA_TA_VAL,4,2            ; @MII_DATA_TA_VAL
	.comm	_MII_DATA_TA_SHIFT,4,2          ; @MII_DATA_TA_SHIFT
	.comm	_MII_DATA_RA_SHIFT,4,2          ; @MII_DATA_RA_SHIFT
	.comm	_MII_DATA_PA_SHIFT,4,2          ; @MII_DATA_PA_SHIFT
	.comm	_MII_DATA_SB_SHIFT,4,2          ; @MII_DATA_SB_SHIFT
	.comm	_MII_DATA_OP_WRITE,4,2          ; @MII_DATA_OP_WRITE
	.comm	_MII_DATA_OP_SHIFT,4,2          ; @MII_DATA_OP_SHIFT
	.comm	_MII_DATA_MASK,4,2              ; @MII_DATA_MASK
	.comm	_MII_DATA_OFFSET,8,3            ; @MII_DATA_OFFSET
	.no_dead_strip	_iproc_mdio_write
.subsections_via_symbols
