	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adin_set_downshift
_adin_set_downshift:                    ## @adin_set_downshift
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_DOWNSHIFT_DEV_DISABLE@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_1
## %bb.5:
	movq	_ADIN1300_PHY_CTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ADIN1300_DOWNSPEEDS_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_phy_clear_bits                 ## TAILCALL
LBB0_1:
	cmpl	$8, %esi
	jl	LBB0_3
## %bb.2:
	movq	_E2BIG@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_3:
	movq	_ADIN1300_DOWNSPEED_RETRIES_MSK@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_FIELD_PREP
	movq	_ADIN1300_LINKING_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	%edx, %eax
	movq	_ADIN1300_PHY_CTRL3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%r14), %edx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	_phy_modify
	testl	%eax, %eax
	js	LBB0_4
## %bb.6:
	movq	_ADIN1300_PHY_CTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ADIN1300_DOWNSPEEDS_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_phy_set_bits                   ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DOWNSHIFT_DEV_DISABLE,4,2      ## @DOWNSHIFT_DEV_DISABLE
	.comm	_ADIN1300_PHY_CTRL2,4,2         ## @ADIN1300_PHY_CTRL2
	.comm	_ADIN1300_DOWNSPEEDS_EN,4,2     ## @ADIN1300_DOWNSPEEDS_EN
	.comm	_E2BIG,4,2                      ## @E2BIG
	.comm	_ADIN1300_DOWNSPEED_RETRIES_MSK,4,2 ## @ADIN1300_DOWNSPEED_RETRIES_MSK
	.comm	_ADIN1300_LINKING_EN,4,2        ## @ADIN1300_LINKING_EN
	.comm	_ADIN1300_PHY_CTRL3,4,2         ## @ADIN1300_PHY_CTRL3
	.no_dead_strip	_adin_set_downshift
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adin_set_downshift
_adin_set_downshift:                    ; @adin_set_downshift
	.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, x0
Lloh0:
	adrp	x8, _DOWNSHIFT_DEV_DISABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DOWNSHIFT_DEV_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ADIN1300_PHY_CTRL2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADIN1300_PHY_CTRL2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _ADIN1300_DOWNSPEEDS_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADIN1300_DOWNSPEEDS_EN@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_phy_clear_bits
LBB0_2:
	cmp	w1, #8
	b.lt	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _E2BIG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
Lloh12:
	adrp	x20, _ADIN1300_DOWNSPEED_RETRIES_MSK@GOTPAGE
Lloh13:
	ldr	x20, [x20, _ADIN1300_DOWNSPEED_RETRIES_MSK@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_FIELD_PREP
Lloh14:
	adrp	x8, _ADIN1300_LINKING_EN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ADIN1300_LINKING_EN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w3, w8, w0
Lloh17:
	adrp	x9, _ADIN1300_PHY_CTRL3@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ADIN1300_PHY_CTRL3@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x9]
	ldr	w9, [x20]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_phy_modify
	tbnz	w0, #31, LBB0_6
; %bb.5:
Lloh20:
	adrp	x8, _ADIN1300_PHY_CTRL2@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ADIN1300_PHY_CTRL2@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _ADIN1300_DOWNSPEEDS_EN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ADIN1300_DOWNSPEEDS_EN@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_phy_set_bits
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_DOWNSHIFT_DEV_DISABLE,4,2      ; @DOWNSHIFT_DEV_DISABLE
	.comm	_ADIN1300_PHY_CTRL2,4,2         ; @ADIN1300_PHY_CTRL2
	.comm	_ADIN1300_DOWNSPEEDS_EN,4,2     ; @ADIN1300_DOWNSPEEDS_EN
	.comm	_E2BIG,4,2                      ; @E2BIG
	.comm	_ADIN1300_DOWNSPEED_RETRIES_MSK,4,2 ; @ADIN1300_DOWNSPEED_RETRIES_MSK
	.comm	_ADIN1300_LINKING_EN,4,2        ; @ADIN1300_LINKING_EN
	.comm	_ADIN1300_PHY_CTRL3,4,2         ; @ADIN1300_PHY_CTRL3
	.no_dead_strip	_adin_set_downshift
.subsections_via_symbols
