	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_get_cfg_done_82571
_e1000_get_cfg_done_82571:              ## @e1000_get_cfg_done_82571
	.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
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movq	_EEMNGCTL@GOTPCREL(%rip), %r15
	movq	_E1000_NVM_CFG_DONE_PORT_0@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_er32
	testl	%eax, (%r12)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	decq	%rbx
	jne	LBB0_2
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	movq	_E1000_ERR_RESET@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
LBB0_5:
	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	_EEMNGCTL,4,2                   ## @EEMNGCTL
	.comm	_E1000_NVM_CFG_DONE_PORT_0,4,2  ## @E1000_NVM_CFG_DONE_PORT_0
	.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_82571
.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_82571
_e1000_get_cfg_done_82571:              ; @e1000_get_cfg_done_82571
	.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]
	cbz	x19, LBB0_4
; %bb.1:
Lloh3:
	adrp	x20, _EEMNGCTL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _EEMNGCTL@GOTPAGEOFF]
Lloh5:
	adrp	x21, _E1000_NVM_CFG_DONE_PORT_0@GOTPAGE
Lloh6:
	ldr	x21, [x21, _E1000_NVM_CFG_DONE_PORT_0@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_er32
	ldr	w8, [x21]
	tst	w8, w0
	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:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
Lloh9:
	adrp	x8, _E1000_ERR_RESET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E1000_ERR_RESET@GOTPAGEOFF]
Lloh11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_CFG_TIMEOUT,8,3            ; @PHY_CFG_TIMEOUT
	.comm	_EEMNGCTL,4,2                   ; @EEMNGCTL
	.comm	_E1000_NVM_CFG_DONE_PORT_0,4,2  ; @E1000_NVM_CFG_DONE_PORT_0
	.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_82571
.subsections_via_symbols
