	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_get_cfg_done_ich8lan
_e1000_get_cfg_done_ich8lan:            ## @e1000_get_cfg_done_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$0, -20(%rbp)
	callq	_e1000e_get_cfg_done_generic
	movq	8(%rbx), %rax
	movq	_e1000_ich10lan@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_e1000e_get_auto_rd_done
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	jmp	LBB0_4
LBB0_1:
	movq	%rbx, %rdi
	callq	_e1000_lan_init_done_ich8lan
LBB0_4:
	movq	_STATUS@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_er32
	movq	_E1000_STATUS_PHYRA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_6
## %bb.5:
	movl	(%r14), %edi
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, %esi
	callq	_ew32
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_e_dbg
LBB0_7:
	movq	8(%rbx), %rax
	movq	_e1000_ich9lan@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_8
## %bb.11:
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_e1000_valid_nvm_bank_detect_ich8lan
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	leaq	L_.str.2(%rip), %rdi
	callq	_e_dbg
	movq	_E1000_ERR_CONFIG@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_14
LBB0_8:
	movq	_EECD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_EECD_PRES@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	testl	%eax, (%rcx)
	jne	LBB0_14
## %bb.9:
	movq	(%rbx), %rax
	movq	_e1000_phy_igp_3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.10:
	movq	%rbx, %rdi
	callq	_e1000e_phy_init_script_igp3
	jmp	LBB0_14
LBB0_12:
	xorl	%r14d, %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_e1000_ich10lan,8,3             ## @e1000_ich10lan
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Auto Read Done did not complete\n"

	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_E1000_STATUS_PHYRA,4,2         ## @E1000_STATUS_PHYRA
L_.str.1:                               ## @.str.1
	.asciz	"PHY Reset Asserted not set - needs delay\n"

	.comm	_e1000_ich9lan,8,3              ## @e1000_ich9lan
	.comm	_EECD,4,2                       ## @EECD
	.comm	_E1000_EECD_PRES,4,2            ## @E1000_EECD_PRES
	.comm	_e1000_phy_igp_3,8,3            ## @e1000_phy_igp_3
L_.str.2:                               ## @.str.2
	.asciz	"EEPROM not present\n"

	.comm	_E1000_ERR_CONFIG,4,2           ## @E1000_ERR_CONFIG
	.no_dead_strip	_e1000_get_cfg_done_ich8lan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_get_cfg_done_ich8lan
_e1000_get_cfg_done_ich8lan:            ; @e1000_get_cfg_done_ich8lan
	.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
	str	wzr, [sp, #12]
	bl	_e1000e_get_cfg_done_generic
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _e1000_ich10lan@GOTPAGE
Lloh1:
	ldr	x9, [x9, _e1000_ich10lan@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	x0, x19
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.1:
	bl	_e1000e_get_auto_rd_done
	cbz	w0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
	b	LBB0_4
LBB0_3:
	bl	_e1000_lan_init_done_ich8lan
LBB0_4:
Lloh5:
	adrp	x20, _STATUS@GOTPAGE
Lloh6:
	ldr	x20, [x20, _STATUS@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_er32
Lloh7:
	adrp	x8, _E1000_STATUS_PHYRA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E1000_STATUS_PHYRA@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x8]
	tst	w9, w0
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x20]
	bic	w1, w0, w9
	mov	x0, x8
	bl	_ew32
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_e_dbg
LBB0_7:
	ldr	x8, [x19, #8]
Lloh12:
	adrp	x9, _e1000_ich9lan@GOTPAGE
Lloh13:
	ldr	x9, [x9, _e1000_ich9lan@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_10
; %bb.8:
	add	x1, sp, #12
	mov	x0, x19
	bl	_e1000_valid_nvm_bank_detect_ich8lan
	cbz	x0, LBB0_14
; %bb.9:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_e_dbg
Lloh17:
	adrp	x8, _E1000_ERR_CONFIG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _E1000_ERR_CONFIG@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_10:
Lloh20:
	adrp	x8, _EECD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EECD@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_er32
Lloh23:
	adrp	x8, _E1000_EECD_PRES@GOTPAGE
Lloh24:
	ldr	x8, [x8, _E1000_EECD_PRES@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_13
; %bb.11:
	ldr	x8, [x19]
Lloh26:
	adrp	x9, _e1000_phy_igp_3@GOTPAGE
Lloh27:
	ldr	x9, [x9, _e1000_phy_igp_3@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_e1000e_phy_init_script_igp3
LBB0_13:
	mov	w0, #0
LBB0_14:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_e1000_ich10lan,8,3             ; @e1000_ich10lan
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Auto Read Done did not complete\n"

	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_E1000_STATUS_PHYRA,4,2         ; @E1000_STATUS_PHYRA
l_.str.1:                               ; @.str.1
	.asciz	"PHY Reset Asserted not set - needs delay\n"

	.comm	_e1000_ich9lan,8,3              ; @e1000_ich9lan
	.comm	_EECD,4,2                       ; @EECD
	.comm	_E1000_EECD_PRES,4,2            ; @E1000_EECD_PRES
	.comm	_e1000_phy_igp_3,8,3            ; @e1000_phy_igp_3
l_.str.2:                               ; @.str.2
	.asciz	"EEPROM not present\n"

	.comm	_E1000_ERR_CONFIG,4,2           ; @E1000_ERR_CONFIG
	.no_dead_strip	_e1000_get_cfg_done_ich8lan
.subsections_via_symbols
