	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_configure_k1_ich8lan     ## -- Begin function e1000_configure_k1_ich8lan
	.p2align	4, 0x90
_e1000_configure_k1_ich8lan:            ## @e1000_configure_k1_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	%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, %r15d
	movq	%rdi, %r14
	movl	$0, -44(%rbp)
	movq	_E1000_KMRNCTRLSTA_K1_CONFIG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-44(%rbp), %rdx
	callq	_e1000e_read_kmrn_reg_locked
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movq	_E1000_KMRNCTRLSTA_K1_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.2:
	orl	-44(%rbp), %edx
	jmp	LBB0_4
LBB0_3:
	notl	%edx
	andl	-44(%rbp), %edx
LBB0_4:
	movl	%edx, -44(%rbp)
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_e1000e_write_kmrn_reg_locked
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	$20, %edi
	movl	$40, %esi
	callq	_usleep_range
	movq	_CTRL_EXT@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_er32
	movl	%eax, %r14d
	movq	_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_er32
	movl	%eax, %r15d
	movq	_E1000_CTRL_SPD_1000@GOTPCREL(%rip), %rax
	movq	_E1000_CTRL_SPD_100@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	notl	%esi
	andl	%r15d, %esi
	movq	_E1000_CTRL_FRCSPD@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	(%r13), %edi
	callq	_ew32
	movl	(%r12), %edi
	movq	_E1000_CTRL_EXT_SPD_BYPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%r14d, %esi
	callq	_ew32
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_e1e_flush
	movl	$20, %edi
	movl	$40, %esi
	callq	_usleep_range
	movl	(%r13), %edi
	movl	%r15d, %esi
	callq	_ew32
	movl	(%r12), %edi
	movl	%r14d, %esi
	callq	_ew32
	xorl	%eax, %eax
	callq	_e1e_flush
	movl	$20, %edi
	movl	$40, %esi
	callq	_usleep_range
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_KMRNCTRLSTA_K1_CONFIG,4,2 ## @E1000_KMRNCTRLSTA_K1_CONFIG
	.comm	_E1000_KMRNCTRLSTA_K1_ENABLE,4,2 ## @E1000_KMRNCTRLSTA_K1_ENABLE
	.comm	_CTRL_EXT,4,2                   ## @CTRL_EXT
	.comm	_CTRL,4,2                       ## @CTRL
	.comm	_E1000_CTRL_SPD_1000,4,2        ## @E1000_CTRL_SPD_1000
	.comm	_E1000_CTRL_SPD_100,4,2         ## @E1000_CTRL_SPD_100
	.comm	_E1000_CTRL_FRCSPD,4,2          ## @E1000_CTRL_FRCSPD
	.comm	_E1000_CTRL_EXT_SPD_BYPS,4,2    ## @E1000_CTRL_EXT_SPD_BYPS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_configure_k1_ich8lan     ; -- Begin function e1000_configure_k1_ich8lan
	.p2align	2
_e1000_configure_k1_ich8lan:            ; @e1000_configure_k1_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
	mov	x20, x1
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x21, _E1000_KMRNCTRLSTA_K1_CONFIG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _E1000_KMRNCTRLSTA_K1_CONFIG@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_e1000e_read_kmrn_reg_locked
	cbnz	x0, LBB0_6
; %bb.1:
Lloh2:
	adrp	x8, _E1000_KMRNCTRLSTA_K1_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E1000_KMRNCTRLSTA_K1_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	w20, LBB0_3
; %bb.2:
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	b	LBB0_4
LBB0_3:
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
LBB0_4:
	str	w2, [sp, #12]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_e1000e_write_kmrn_reg_locked
	cbnz	x0, LBB0_6
; %bb.5:
	mov	w0, #20
	mov	w1, #40
	bl	_usleep_range
Lloh5:
	adrp	x21, _CTRL_EXT@GOTPAGE
Lloh6:
	ldr	x21, [x21, _CTRL_EXT@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_er32
	mov	x19, x0
Lloh7:
	adrp	x22, _CTRL@GOTPAGE
Lloh8:
	ldr	x22, [x22, _CTRL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_er32
	mov	x20, x0
Lloh9:
	adrp	x8, _E1000_CTRL_SPD_1000@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E1000_CTRL_SPD_1000@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _E1000_CTRL_SPD_100@GOTPAGE
Lloh13:
	ldr	x9, [x9, _E1000_CTRL_SPD_100@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w0, w8
Lloh15:
	adrp	x9, _E1000_CTRL_FRCSPD@GOTPAGE
Lloh16:
	ldr	x9, [x9, _E1000_CTRL_FRCSPD@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w1, w8, w9
	ldr	w0, [x22]
	bl	_ew32
	ldr	w0, [x21]
Lloh18:
	adrp	x8, _E1000_CTRL_EXT_SPD_BYPS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _E1000_CTRL_EXT_SPD_BYPS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	orr	w1, w8, w19
	bl	_ew32
	bl	_e1e_flush
	mov	w0, #20
	mov	w1, #40
	bl	_usleep_range
	ldr	w0, [x22]
	mov	x1, x20
	bl	_ew32
	ldr	w0, [x21]
	mov	x1, x19
	bl	_ew32
	bl	_e1e_flush
	mov	w0, #20
	mov	w1, #40
	bl	_usleep_range
	mov	x0, #0
LBB0_6:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_KMRNCTRLSTA_K1_CONFIG,4,2 ; @E1000_KMRNCTRLSTA_K1_CONFIG
	.comm	_E1000_KMRNCTRLSTA_K1_ENABLE,4,2 ; @E1000_KMRNCTRLSTA_K1_ENABLE
	.comm	_CTRL_EXT,4,2                   ; @CTRL_EXT
	.comm	_CTRL,4,2                       ; @CTRL
	.comm	_E1000_CTRL_SPD_1000,4,2        ; @E1000_CTRL_SPD_1000
	.comm	_E1000_CTRL_SPD_100,4,2         ; @E1000_CTRL_SPD_100
	.comm	_E1000_CTRL_FRCSPD,4,2          ; @E1000_CTRL_FRCSPD
	.comm	_E1000_CTRL_EXT_SPD_BYPS,4,2    ; @E1000_CTRL_EXT_SPD_BYPS
.subsections_via_symbols
