	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsc73xx_phy_read
_vsc73xx_phy_read:                      ## @vsc73xx_phy_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	(%rdi), %rbx
	movl	$26, %edi
	callq	_BIT
	movl	%r14d, %ecx
	shll	$21, %ecx
	movl	%r15d, %r8d
	shll	$16, %r8d
	orl	%ecx, %r8d
	orl	%eax, %r8d
	movq	_VSC73XX_BLOCK_MII@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_vsc73xx_write
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	$2, %edi
	callq	_msleep
	movl	(%r12), %esi
	leaq	-36(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$2, %ecx
	callq	_vsc73xx_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movl	-36(%rbp), %r12d
	movl	$16, %edi
	callq	_BIT
	testl	%r12d, %eax
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_4:
	movzwl	-36(%rbp), %r8d
	movl	%r8d, -36(%rbp)
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_dev_dbg
	movl	-36(%rbp), %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VSC73XX_BLOCK_MII,4,2          ## @VSC73XX_BLOCK_MII
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reading reg %02x from phy%d failed\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"read reg %02x from phy%d = %04x\n"

	.no_dead_strip	_vsc73xx_phy_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsc73xx_phy_read
_vsc73xx_phy_read:                      ; @vsc73xx_phy_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x19, x1
	ldr	x21, [x0]
	mov	w0, #26
	bl	_BIT
	lsl	w8, w20, #16
	orr	w8, w8, w19, lsl #21
	orr	w4, w8, w0
Lloh0:
	adrp	x22, _VSC73XX_BLOCK_MII@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VSC73XX_BLOCK_MII@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	mov	w2, #0
	mov	w3, #1
	bl	_vsc73xx_write
	cbnz	w0, LBB0_5
; %bb.1:
	mov	w0, #2
	bl	_msleep
	ldr	w1, [x22]
	add	x4, sp, #12
	mov	x0, x21
	mov	w2, #0
	mov	w3, #2
	bl	_vsc73xx_read
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	w22, [sp, #12]
	mov	w0, #16
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_dev_err
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	ldrh	w4, [sp, #12]
	str	w4, [sp, #12]
	ldr	w0, [x21]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_dev_dbg
	ldr	w0, [sp, #12]
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VSC73XX_BLOCK_MII,4,2          ; @VSC73XX_BLOCK_MII
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reading reg %02x from phy%d failed\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"read reg %02x from phy%d = %04x\n"

	.no_dead_strip	_vsc73xx_phy_read
.subsections_via_symbols
