	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e1xxx_downshift_set
_mv88e1xxx_downshift_set:               ## @mv88e1xxx_downshift_set
	.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	%esi, %r14d
	movq	%rdi, %r13
	movq	_MV88E1XXX_EXT_PHY_SPECIFIC_CNTRL_REGISTER@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdx
	callq	_simple_mdio_read
	movq	_V_DOWNSHIFT_ENABLE@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	_M_DOWNSHIFT_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_V_DOWNSHIFT_CNT
	orl	%ebx, %eax
	notl	%eax
	andl	-44(%rbp), %eax
	movl	%eax, -44(%rbp)
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movl	(%r12), %ebx
	movl	$2, %edi
	callq	_V_DOWNSHIFT_CNT
	orl	%ebx, %eax
	orl	-44(%rbp), %eax
	movl	%eax, -44(%rbp)
LBB0_2:
	movl	(%r15), %esi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_simple_mdio_write
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MV88E1XXX_EXT_PHY_SPECIFIC_CNTRL_REGISTER,4,2 ## @MV88E1XXX_EXT_PHY_SPECIFIC_CNTRL_REGISTER
	.comm	_V_DOWNSHIFT_ENABLE,4,2         ## @V_DOWNSHIFT_ENABLE
	.comm	_M_DOWNSHIFT_CNT,4,2            ## @M_DOWNSHIFT_CNT
	.no_dead_strip	_mv88e1xxx_downshift_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e1xxx_downshift_set
_mv88e1xxx_downshift_set:               ; @mv88e1xxx_downshift_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _MV88E1XXX_EXT_PHY_SPECIFIC_CNTRL_REGISTER@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MV88E1XXX_EXT_PHY_SPECIFIC_CNTRL_REGISTER@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_simple_mdio_read
Lloh2:
	adrp	x22, _V_DOWNSHIFT_ENABLE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _V_DOWNSHIFT_ENABLE@GOTPAGEOFF]
	ldr	w23, [x22]
Lloh4:
	adrp	x8, _M_DOWNSHIFT_CNT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _M_DOWNSHIFT_CNT@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_V_DOWNSHIFT_CNT
	orr	w8, w0, w23
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	cbz	w20, LBB0_2
; %bb.1:
	ldr	w20, [x22]
	mov	w0, #2
	bl	_V_DOWNSHIFT_CNT
	orr	w8, w0, w20
	ldr	w9, [sp, #12]
	orr	w2, w8, w9
	str	w2, [sp, #12]
LBB0_2:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_simple_mdio_write
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MV88E1XXX_EXT_PHY_SPECIFIC_CNTRL_REGISTER,4,2 ; @MV88E1XXX_EXT_PHY_SPECIFIC_CNTRL_REGISTER
	.comm	_V_DOWNSHIFT_ENABLE,4,2         ; @V_DOWNSHIFT_ENABLE
	.comm	_M_DOWNSHIFT_CNT,4,2            ; @M_DOWNSHIFT_CNT
	.no_dead_strip	_mv88e1xxx_downshift_set
.subsections_via_symbols
