	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_gig_downshift_workaround_ich8lan ## -- Begin function e1000e_gig_downshift_workaround_ich8lan
	.p2align	4, 0x90
_e1000e_gig_downshift_workaround_ich8lan: ## @e1000e_gig_downshift_workaround_ich8lan
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movq	_e1000_ich8lan@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_e1000_phy_ife@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.2:
	movq	_E1000_KMRNCTRLSTA_DIAG_OFFSET@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_e1000e_read_kmrn_reg
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	_E1000_KMRNCTRLSTA_DIAG_NELPBK@GOTPCREL(%rip), %r15
	movl	-28(%rbp), %edx
	orl	(%r15), %edx
	movl	%edx, -28(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_e1000e_write_kmrn_reg
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movl	(%r15), %edx
	notl	%edx
	andl	-28(%rbp), %edx
	movl	%edx, -28(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_e1000e_write_kmrn_reg
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_ich8lan,8,3              ## @e1000_ich8lan
	.comm	_e1000_phy_ife,8,3              ## @e1000_phy_ife
	.comm	_E1000_KMRNCTRLSTA_DIAG_OFFSET,4,2 ## @E1000_KMRNCTRLSTA_DIAG_OFFSET
	.comm	_E1000_KMRNCTRLSTA_DIAG_NELPBK,4,2 ## @E1000_KMRNCTRLSTA_DIAG_NELPBK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000e_gig_downshift_workaround_ich8lan ; -- Begin function e1000e_gig_downshift_workaround_ich8lan
	.p2align	2
_e1000e_gig_downshift_workaround_ich8lan: ; @e1000e_gig_downshift_workaround_ich8lan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _e1000_ich8lan@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_ich8lan@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _e1000_phy_ife@GOTPAGE
Lloh4:
	ldr	x9, [x9, _e1000_phy_ife@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.2:
Lloh6:
	adrp	x20, _E1000_KMRNCTRLSTA_DIAG_OFFSET@GOTPAGE
Lloh7:
	ldr	x20, [x20, _E1000_KMRNCTRLSTA_DIAG_OFFSET@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_e1000e_read_kmrn_reg
	cbnz	x0, LBB0_5
; %bb.3:
Lloh8:
	adrp	x21, _E1000_KMRNCTRLSTA_DIAG_NELPBK@GOTPAGE
Lloh9:
	ldr	x21, [x21, _E1000_KMRNCTRLSTA_DIAG_NELPBK@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_e1000e_write_kmrn_reg
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	w8, [x21]
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_e1000e_write_kmrn_reg
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_ich8lan,8,3              ; @e1000_ich8lan
	.comm	_e1000_phy_ife,8,3              ; @e1000_phy_ife
	.comm	_E1000_KMRNCTRLSTA_DIAG_OFFSET,4,2 ; @E1000_KMRNCTRLSTA_DIAG_OFFSET
	.comm	_E1000_KMRNCTRLSTA_DIAG_NELPBK,4,2 ; @E1000_KMRNCTRLSTA_DIAG_NELPBK
.subsections_via_symbols
