	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvsw61xx_mdio_read
_mvsw61xx_mdio_read:                    ## @mvsw61xx_mdio_read
	.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	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	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_READ@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
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	callq	_mvsw61xx_wait_mask_s
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	_SMI_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MV_GLOBAL2REG
	movq	%r14, %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sr16                           ## TAILCALL
LBB0_1:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMI_OP,4,2                     ## @SMI_OP
	.comm	_MV_INDIRECT_READ,4,2           ## @MV_INDIRECT_READ
	.comm	_MV_INDIRECT_ADDR_S,4,2         ## @MV_INDIRECT_ADDR_S
	.comm	_MV_INDIRECT_INPROGRESS,4,2     ## @MV_INDIRECT_INPROGRESS
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_SMI_DATA,4,2                   ## @SMI_DATA
	.no_dead_strip	_mvsw61xx_mdio_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvsw61xx_mdio_read
_mvsw61xx_mdio_read:                    ; @mvsw61xx_mdio_read
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _SMI_OP@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SMI_OP@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_MV_GLOBAL2REG
	mov	x1, x0
Lloh2:
	adrp	x8, _MV_INDIRECT_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MV_INDIRECT_READ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _MV_INDIRECT_ADDR_S@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MV_INDIRECT_ADDR_S@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	lsl	w9, w21, w9
	orr	w8, w8, w20
	orr	w2, w8, w9
	mov	x0, x19
	bl	_sw16
	ldr	w0, [x22]
	bl	_MV_GLOBAL2REG
	mov	x1, x0
Lloh8:
	adrp	x8, _MV_INDIRECT_INPROGRESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MV_INDIRECT_INPROGRESS@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_mvsw61xx_wait_mask_s
	tbnz	x0, #63, LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _SMI_DATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SMI_DATA@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_MV_GLOBAL2REG
	mov	x1, x0
	mov	x0, x19
	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	_sr16
LBB0_2:
Lloh14:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SMI_OP,4,2                     ; @SMI_OP
	.comm	_MV_INDIRECT_READ,4,2           ; @MV_INDIRECT_READ
	.comm	_MV_INDIRECT_ADDR_S,4,2         ; @MV_INDIRECT_ADDR_S
	.comm	_MV_INDIRECT_INPROGRESS,4,2     ; @MV_INDIRECT_INPROGRESS
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_SMI_DATA,4,2                   ; @SMI_DATA
	.no_dead_strip	_mvsw61xx_mdio_read
.subsections_via_symbols
