	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_check_downshift
_e1000_check_downshift:                 ## @e1000_check_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_e1000_phy_igp@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_IGP01E1000_PHY_LINK_HEALTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1000_read_phy_reg
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movq	_IGP01E1000_PLHR_SS_DOWNGRADE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, -12(%rbp)
	setne	%al
	jmp	LBB0_6
LBB0_3:
	movq	_e1000_phy_m88@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.4:
	movq	_M88E1000_PHY_SPEC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1000_read_phy_reg
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movq	_M88E1000_PSSR_DOWNSHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-12(%rbp), %eax
	movq	_M88E1000_PSSR_DOWNSHIFT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
LBB0_6:
	movl	%eax, 8(%rbx)
LBB0_7:
	movq	_E1000_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_phy_igp,8,3              ## @e1000_phy_igp
	.comm	_IGP01E1000_PHY_LINK_HEALTH,4,2 ## @IGP01E1000_PHY_LINK_HEALTH
	.comm	_IGP01E1000_PLHR_SS_DOWNGRADE,4,2 ## @IGP01E1000_PLHR_SS_DOWNGRADE
	.comm	_e1000_phy_m88,8,3              ## @e1000_phy_m88
	.comm	_M88E1000_PHY_SPEC_STATUS,4,2   ## @M88E1000_PHY_SPEC_STATUS
	.comm	_M88E1000_PSSR_DOWNSHIFT,4,2    ## @M88E1000_PSSR_DOWNSHIFT
	.comm	_M88E1000_PSSR_DOWNSHIFT_SHIFT,4,2 ## @M88E1000_PSSR_DOWNSHIFT_SHIFT
	.comm	_E1000_SUCCESS,8,3              ## @E1000_SUCCESS
	.no_dead_strip	_e1000_check_downshift
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_check_downshift
_e1000_check_downshift:                 ; @e1000_check_downshift
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _e1000_phy_igp@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_phy_igp@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _IGP01E1000_PHY_LINK_HEALTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IGP01E1000_PHY_LINK_HEALTH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1000_read_phy_reg
	cbnz	x0, LBB0_8
; %bb.2:
	ldr	w8, [sp, #12]
Lloh6:
	adrp	x9, _IGP01E1000_PLHR_SS_DOWNGRADE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IGP01E1000_PLHR_SS_DOWNGRADE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	b	LBB0_6
LBB0_3:
Lloh9:
	adrp	x9, _e1000_phy_m88@GOTPAGE
Lloh10:
	ldr	x9, [x9, _e1000_phy_m88@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
Lloh12:
	adrp	x8, _M88E1000_PHY_SPEC_STATUS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _M88E1000_PHY_SPEC_STATUS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1000_read_phy_reg
	cbnz	x0, LBB0_8
; %bb.5:
	ldr	w8, [sp, #12]
Lloh15:
	adrp	x9, _M88E1000_PSSR_DOWNSHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _M88E1000_PSSR_DOWNSHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh18:
	adrp	x9, _M88E1000_PSSR_DOWNSHIFT_SHIFT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _M88E1000_PSSR_DOWNSHIFT_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	asr	w8, w8, w9
LBB0_6:
	str	w8, [x19, #8]
LBB0_7:
Lloh21:
	adrp	x8, _E1000_SUCCESS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _E1000_SUCCESS@GOTPAGEOFF]
Lloh23:
	ldr	x0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_phy_igp,8,3              ; @e1000_phy_igp
	.comm	_IGP01E1000_PHY_LINK_HEALTH,4,2 ; @IGP01E1000_PHY_LINK_HEALTH
	.comm	_IGP01E1000_PLHR_SS_DOWNGRADE,4,2 ; @IGP01E1000_PLHR_SS_DOWNGRADE
	.comm	_e1000_phy_m88,8,3              ; @e1000_phy_m88
	.comm	_M88E1000_PHY_SPEC_STATUS,4,2   ; @M88E1000_PHY_SPEC_STATUS
	.comm	_M88E1000_PSSR_DOWNSHIFT,4,2    ; @M88E1000_PSSR_DOWNSHIFT
	.comm	_M88E1000_PSSR_DOWNSHIFT_SHIFT,4,2 ; @M88E1000_PSSR_DOWNSHIFT_SHIFT
	.comm	_E1000_SUCCESS,8,3              ; @E1000_SUCCESS
	.no_dead_strip	_e1000_check_downshift
.subsections_via_symbols
