	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_get_cfg_done_80003es2lan
_e1000_get_cfg_done_80003es2lan:        ## @e1000_get_cfg_done_80003es2lan
	.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	_PHY_CFG_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	cmpl	$1, (%rdi)
	jne	LBB0_1
## %bb.2:
	movq	_E1000_NVM_CFG_DONE_PORT_1@GOTPCREL(%rip), %rax
	testq	%rbx, %rbx
	jne	LBB0_4
	jmp	LBB0_7
LBB0_1:
	movq	_E1000_NVM_CFG_DONE_PORT_0@GOTPCREL(%rip), %rax
	testq	%rbx, %rbx
	je	LBB0_7
LBB0_4:
	movl	(%rax), %r15d
	movq	_EEMNGCTL@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_er32
	testl	%r15d, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	decq	%rbx
	jne	LBB0_5
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	movq	_E1000_ERR_RESET@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
LBB0_8:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_CFG_TIMEOUT,8,3            ## @PHY_CFG_TIMEOUT
	.comm	_E1000_NVM_CFG_DONE_PORT_0,4,2  ## @E1000_NVM_CFG_DONE_PORT_0
	.comm	_E1000_NVM_CFG_DONE_PORT_1,4,2  ## @E1000_NVM_CFG_DONE_PORT_1
	.comm	_EEMNGCTL,4,2                   ## @EEMNGCTL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MNG configuration cycle has not completed.\n"

	.comm	_E1000_ERR_RESET,8,3            ## @E1000_ERR_RESET
	.no_dead_strip	_e1000_get_cfg_done_80003es2lan
.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_80003es2lan
_e1000_get_cfg_done_80003es2lan:        ; @e1000_get_cfg_done_80003es2lan
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, _PHY_CFG_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_CFG_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _E1000_NVM_CFG_DONE_PORT_1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _E1000_NVM_CFG_DONE_PORT_1@GOTPAGEOFF]
Lloh5:
	adrp	x10, _E1000_NVM_CFG_DONE_PORT_0@GOTPAGE
Lloh6:
	ldr	x10, [x10, _E1000_NVM_CFG_DONE_PORT_0@GOTPAGEOFF]
	cmp	w8, #1
	csel	x8, x9, x10, eq
	cbz	x19, LBB0_4
; %bb.1:
	ldr	w20, [x8]
Lloh7:
	adrp	x21, _EEMNGCTL@GOTPAGE
Lloh8:
	ldr	x21, [x21, _EEMNGCTL@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_er32
	tst	w0, w20
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	subs	x19, x19, #1
	b.ne	LBB0_2
LBB0_4:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
Lloh11:
	adrp	x8, _E1000_ERR_RESET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _E1000_ERR_RESET@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	neg	x0, x8
	b	LBB0_6
LBB0_5:
	mov	x0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_CFG_TIMEOUT,8,3            ; @PHY_CFG_TIMEOUT
	.comm	_E1000_NVM_CFG_DONE_PORT_0,4,2  ; @E1000_NVM_CFG_DONE_PORT_0
	.comm	_E1000_NVM_CFG_DONE_PORT_1,4,2  ; @E1000_NVM_CFG_DONE_PORT_1
	.comm	_EEMNGCTL,4,2                   ; @EEMNGCTL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MNG configuration cycle has not completed.\n"

	.comm	_E1000_ERR_RESET,8,3            ; @E1000_ERR_RESET
	.no_dead_strip	_e1000_get_cfg_done_80003es2lan
.subsections_via_symbols
