	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aqr107_set_downshift
_aqr107_set_downshift:                  ## @aqr107_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_MDIO_AN_VEND_PROV_DOWNSHIFT_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_FIELD_FIT
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	_DOWNSHIFT_DEV_DISABLE@GOTPCREL(%rip), %rax
	xorl	%r8d, %r8d
	cmpq	%rbx, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_MDIO_AN_VEND_PROV_DOWNSHIFT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_FIELD_PREP
	movl	%eax, %r8d
	orl	%r12d, %r8d
LBB0_3:
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_AN_VEND_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_AN_VEND_PROV_DOWNSHIFT_EN@GOTPCREL(%rip), %rax
	movl	(%r15), %ecx
	orl	(%rax), %ecx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_modify_mmd                 ## TAILCALL
LBB0_4:
	movq	_E2BIG@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_AN_VEND_PROV_DOWNSHIFT_MASK,4,2 ## @MDIO_AN_VEND_PROV_DOWNSHIFT_MASK
	.comm	_E2BIG,4,2                      ## @E2BIG
	.comm	_DOWNSHIFT_DEV_DISABLE,8,3      ## @DOWNSHIFT_DEV_DISABLE
	.comm	_MDIO_AN_VEND_PROV_DOWNSHIFT_EN,4,2 ## @MDIO_AN_VEND_PROV_DOWNSHIFT_EN
	.comm	_MDIO_MMD_AN,4,2                ## @MDIO_MMD_AN
	.comm	_MDIO_AN_VEND_PROV,4,2          ## @MDIO_AN_VEND_PROV
	.no_dead_strip	_aqr107_set_downshift
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aqr107_set_downshift
_aqr107_set_downshift:                  ; @aqr107_set_downshift
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _MDIO_AN_VEND_PROV_DOWNSHIFT_MASK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MDIO_AN_VEND_PROV_DOWNSHIFT_MASK@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_FIELD_FIT
	cbz	w0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _DOWNSHIFT_DEV_DISABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DOWNSHIFT_DEV_DISABLE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x22, _MDIO_AN_VEND_PROV_DOWNSHIFT_EN@GOTPAGE
Lloh6:
	ldr	x22, [x22, _MDIO_AN_VEND_PROV_DOWNSHIFT_EN@GOTPAGEOFF]
	cmp	x8, x20
	b.ne	LBB0_4
; %bb.2:
	mov	w4, #0
	b	LBB0_5
LBB0_3:
Lloh7:
	adrp	x8, _E2BIG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w23, [x22]
	ldr	w0, [x21]
	mov	x1, x20
	bl	_FIELD_PREP
	orr	w4, w0, w23
LBB0_5:
Lloh10:
	adrp	x8, _MDIO_MMD_AN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MDIO_MMD_AN@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _MDIO_AN_VEND_PROV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MDIO_AN_VEND_PROV@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	ldr	w8, [x22]
	ldr	w9, [x21]
	orr	w3, w9, w8
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_phy_modify_mmd
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_AN_VEND_PROV_DOWNSHIFT_MASK,4,2 ; @MDIO_AN_VEND_PROV_DOWNSHIFT_MASK
	.comm	_E2BIG,4,2                      ; @E2BIG
	.comm	_DOWNSHIFT_DEV_DISABLE,8,3      ; @DOWNSHIFT_DEV_DISABLE
	.comm	_MDIO_AN_VEND_PROV_DOWNSHIFT_EN,4,2 ; @MDIO_AN_VEND_PROV_DOWNSHIFT_EN
	.comm	_MDIO_MMD_AN,4,2                ; @MDIO_MMD_AN
	.comm	_MDIO_AN_VEND_PROV,4,2          ; @MDIO_AN_VEND_PROV
	.no_dead_strip	_aqr107_set_downshift
.subsections_via_symbols
