	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvsw61xx_mdio_write
_mvsw61xx_mdio_write:                   ## @mvsw61xx_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, %r12d
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_SMI_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MV_GLOBAL2REG
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_sw16
	movq	_SMI_OP@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_MV_GLOBAL2REG
	movq	_MV_INDIRECT_ADDR_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r15d
	movq	_MV_INDIRECT_WRITE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	orl	%r15d, %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_sw16
	movl	(%r12), %edi
	callq	_MV_GLOBAL2REG
	movq	_MV_INDIRECT_INPROGRESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	callq	_mvsw61xx_wait_mask_s
	shrq	$63, %rax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMI_DATA,4,2                   ## @SMI_DATA
	.comm	_SMI_OP,4,2                     ## @SMI_OP
	.comm	_MV_INDIRECT_WRITE,4,2          ## @MV_INDIRECT_WRITE
	.comm	_MV_INDIRECT_ADDR_S,4,2         ## @MV_INDIRECT_ADDR_S
	.comm	_MV_INDIRECT_INPROGRESS,4,2     ## @MV_INDIRECT_INPROGRESS
	.no_dead_strip	_mvsw61xx_mdio_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvsw61xx_mdio_write
_mvsw61xx_mdio_write:                   ; @mvsw61xx_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	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _SMI_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMI_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_MV_GLOBAL2REG
	mov	x1, x0
	mov	x0, x22
	mov	x2, x19
	bl	_sw16
Lloh3:
	adrp	x19, _SMI_OP@GOTPAGE
Lloh4:
	ldr	x19, [x19, _SMI_OP@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_MV_GLOBAL2REG
	mov	x1, x0
Lloh5:
	adrp	x8, _MV_INDIRECT_WRITE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MV_INDIRECT_WRITE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _MV_INDIRECT_ADDR_S@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MV_INDIRECT_ADDR_S@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	lsl	w9, w21, w9
	orr	w8, w8, w20
	orr	w2, w8, w9
	mov	x0, x22
	bl	_sw16
	ldr	w0, [x19]
	bl	_MV_GLOBAL2REG
	mov	x1, x0
Lloh11:
	adrp	x8, _MV_INDIRECT_INPROGRESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MV_INDIRECT_INPROGRESS@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w3, #0
	bl	_mvsw61xx_wait_mask_s
	lsr	x0, x0, #63
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SMI_DATA,4,2                   ; @SMI_DATA
	.comm	_SMI_OP,4,2                     ; @SMI_OP
	.comm	_MV_INDIRECT_WRITE,4,2          ; @MV_INDIRECT_WRITE
	.comm	_MV_INDIRECT_ADDR_S,4,2         ; @MV_INDIRECT_ADDR_S
	.comm	_MV_INDIRECT_INPROGRESS,4,2     ; @MV_INDIRECT_INPROGRESS
	.no_dead_strip	_mvsw61xx_mdio_write
.subsections_via_symbols
