	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsc85xx_downshift_get
_vsc85xx_downshift_get:                 ## @vsc85xx_downshift_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	_MSCC_PHY_PAGE_EXTENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSCC_PHY_ACTIPHY_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_phy_read_paged
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	_DOWNSHIFT_CNTL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_DOWNSHIFT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %edx
	je	LBB0_2
## %bb.3:
	notl	%eax
	andl	%eax, %edx
	movq	_DOWNSHIFT_CNTL_POS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrl	%cl, %edx
	addl	$2, %edx
	jmp	LBB0_4
LBB0_2:
	movq	_DOWNSHIFT_DEV_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_4:
	movl	%edx, (%rbx)
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSCC_PHY_PAGE_EXTENDED,4,2     ## @MSCC_PHY_PAGE_EXTENDED
	.comm	_MSCC_PHY_ACTIPHY_CNTL,4,2      ## @MSCC_PHY_ACTIPHY_CNTL
	.comm	_DOWNSHIFT_CNTL_MASK,4,2        ## @DOWNSHIFT_CNTL_MASK
	.comm	_DOWNSHIFT_EN,4,2               ## @DOWNSHIFT_EN
	.comm	_DOWNSHIFT_DEV_DISABLE,4,2      ## @DOWNSHIFT_DEV_DISABLE
	.comm	_DOWNSHIFT_CNTL_POS,4,2         ## @DOWNSHIFT_CNTL_POS
	.no_dead_strip	_vsc85xx_downshift_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsc85xx_downshift_get
_vsc85xx_downshift_get:                 ; @vsc85xx_downshift_get
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, _MSCC_PHY_PAGE_EXTENDED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSCC_PHY_PAGE_EXTENDED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _MSCC_PHY_ACTIPHY_CNTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSCC_PHY_ACTIPHY_CNTL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_phy_read_paged
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh6:
	adrp	x8, _DOWNSHIFT_CNTL_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DOWNSHIFT_CNTL_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh9:
	adrp	x9, _DOWNSHIFT_EN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DOWNSHIFT_EN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w8, w9
	b.eq	LBB0_3
; %bb.2:
	bic	w8, w8, w9
Lloh12:
	adrp	x9, _DOWNSHIFT_CNTL_POS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DOWNSHIFT_CNTL_POS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	add	w8, w8, #2
	b	LBB0_4
LBB0_3:
Lloh15:
	adrp	x8, _DOWNSHIFT_DEV_DISABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DOWNSHIFT_DEV_DISABLE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
LBB0_4:
	mov	w0, #0
	str	w8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MSCC_PHY_PAGE_EXTENDED,4,2     ; @MSCC_PHY_PAGE_EXTENDED
	.comm	_MSCC_PHY_ACTIPHY_CNTL,4,2      ; @MSCC_PHY_ACTIPHY_CNTL
	.comm	_DOWNSHIFT_CNTL_MASK,4,2        ; @DOWNSHIFT_CNTL_MASK
	.comm	_DOWNSHIFT_EN,4,2               ; @DOWNSHIFT_EN
	.comm	_DOWNSHIFT_DEV_DISABLE,4,2      ; @DOWNSHIFT_DEV_DISABLE
	.comm	_DOWNSHIFT_CNTL_POS,4,2         ; @DOWNSHIFT_CNTL_POS
	.no_dead_strip	_vsc85xx_downshift_get
.subsections_via_symbols
