	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mscc_miim_write
_mscc_miim_write:                       ## @mscc_miim_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, %ebx
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	(%rdi), %r13
	callq	_mscc_miim_wait_ready
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	_MSCC_MIIM_CMD_VLD@GOTPCREL(%rip), %rax
	movq	_MSCC_MIIM_CMD_PHYAD_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r15d
	movq	_MSCC_MIIM_CMD_REGAD_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r12d
	orl	(%rax), %r15d
	movq	_MSCC_MIIM_CMD_WRDATA_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	orl	%r12d, %ebx
	orl	%r15d, %ebx
	movq	_MSCC_MIIM_CMD_OPR_WRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_MSCC_MIIM_REG_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r13), %rsi
	movl	%ebx, %edi
	callq	_writel
LBB0_2:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSCC_MIIM_CMD_VLD,4,2          ## @MSCC_MIIM_CMD_VLD
	.comm	_MSCC_MIIM_CMD_PHYAD_SHIFT,4,2  ## @MSCC_MIIM_CMD_PHYAD_SHIFT
	.comm	_MSCC_MIIM_CMD_REGAD_SHIFT,4,2  ## @MSCC_MIIM_CMD_REGAD_SHIFT
	.comm	_MSCC_MIIM_CMD_WRDATA_SHIFT,4,2 ## @MSCC_MIIM_CMD_WRDATA_SHIFT
	.comm	_MSCC_MIIM_CMD_OPR_WRITE,4,2    ## @MSCC_MIIM_CMD_OPR_WRITE
	.comm	_MSCC_MIIM_REG_CMD,8,3          ## @MSCC_MIIM_REG_CMD
	.no_dead_strip	_mscc_miim_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mscc_miim_write
_mscc_miim_write:                       ; @mscc_miim_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	x20, x3
	mov	x21, x2
	mov	x22, x1
	ldr	x23, [x0]
	bl	_mscc_miim_wait_ready
	mov	x19, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MSCC_MIIM_CMD_VLD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSCC_MIIM_CMD_VLD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MSCC_MIIM_CMD_PHYAD_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MSCC_MIIM_CMD_PHYAD_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w9, w22, w9
Lloh6:
	adrp	x10, _MSCC_MIIM_CMD_REGAD_SHIFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MSCC_MIIM_CMD_REGAD_SHIFT@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh8:
	ldr	w9, [x10]
	lsl	w9, w21, w9
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _MSCC_MIIM_CMD_WRDATA_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MSCC_MIIM_CMD_WRDATA_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	lsl	w9, w20, w9
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _MSCC_MIIM_CMD_OPR_WRITE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MSCC_MIIM_CMD_OPR_WRITE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x23]
Lloh15:
	adrp	x9, _MSCC_MIIM_REG_CMD@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MSCC_MIIM_REG_CMD@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
LBB0_2:
	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
	ret
	.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	_MSCC_MIIM_CMD_VLD,4,2          ; @MSCC_MIIM_CMD_VLD
	.comm	_MSCC_MIIM_CMD_PHYAD_SHIFT,4,2  ; @MSCC_MIIM_CMD_PHYAD_SHIFT
	.comm	_MSCC_MIIM_CMD_REGAD_SHIFT,4,2  ; @MSCC_MIIM_CMD_REGAD_SHIFT
	.comm	_MSCC_MIIM_CMD_WRDATA_SHIFT,4,2 ; @MSCC_MIIM_CMD_WRDATA_SHIFT
	.comm	_MSCC_MIIM_CMD_OPR_WRITE,4,2    ; @MSCC_MIIM_CMD_OPR_WRITE
	.comm	_MSCC_MIIM_REG_CMD,8,3          ; @MSCC_MIIM_REG_CMD
	.no_dead_strip	_mscc_miim_write
.subsections_via_symbols
