	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_init_hw_82571
_e1000_init_hw_82571:                   ## @e1000_init_hw_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	%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
	movq	%rdi, %r15
	movq	(%rdi), %r14
	callq	_e1000_initialize_hw_bits_82571
	movq	%r15, %rdi
	callq	*40(%r15)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_e_dbg
	movq	%r15, %rdi
	callq	*32(%r15)
	movq	%r15, %rdi
	callq	_e1000e_get_laa_state_82571
	cmpq	$1, %rax
	adcq	$-1, %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_e1000e_init_rx_addrs
	leaq	L_.str.2(%rip), %rdi
	callq	_e_dbg
	cmpq	$0, 8(%r15)
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	movq	_E1000_MTA@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_E1000_WRITE_REG_ARRAY
	incq	%rbx
	cmpq	8(%r15), %rbx
	jl	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	callq	*24(%r15)
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	callq	_TXDCTL
	movl	%eax, %edi
	callq	_er32
	movq	_E1000_TXDCTL_WTHRESH@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	_E1000_TXDCTL_FULL_TX_DESC_WB@GOTPCREL(%rip), %r13
	orl	(%r13), %ebx
	movq	_E1000_TXDCTL_COUNT_DESC@GOTPCREL(%rip), %r14
	orl	(%r14), %ebx
	xorl	%edi, %edi
	callq	_TXDCTL
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_ew32
	movl	16(%r15), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_8
## %bb.6:
	cmpl	$130, %eax
	jne	LBB0_9
## %bb.7:
	movq	%r15, %rdi
	callq	_e1000e_enable_tx_pkt_filtering
LBB0_8:
	movq	_GCR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_er32
	movq	_E1000_GCR_L1_ACT_WITHOUT_L0S_RX@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %edi
	movl	%eax, %esi
	jmp	LBB0_10
LBB0_9:
	movl	$1, %edi
	callq	_TXDCTL
	movl	%eax, %edi
	callq	_er32
	movl	(%r12), %ebx
	notl	%ebx
	andl	%eax, %ebx
	orl	(%r13), %ebx
	orl	(%r14), %ebx
	movl	$1, %edi
	callq	_TXDCTL
	movl	%eax, %edi
	movl	%ebx, %esi
LBB0_10:
	callq	_ew32
	movq	%r15, %rdi
	callq	_e1000_clear_hw_cntrs_82571
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error initializing identification LED\n"

L_.str.1:                               ## @.str.1
	.asciz	"Initializing the IEEE VLAN\n"

L_.str.2:                               ## @.str.2
	.asciz	"Zeroing the MTA\n"

	.comm	_E1000_MTA,4,2                  ## @E1000_MTA
	.comm	_E1000_TXDCTL_WTHRESH,4,2       ## @E1000_TXDCTL_WTHRESH
	.comm	_E1000_TXDCTL_FULL_TX_DESC_WB,4,2 ## @E1000_TXDCTL_FULL_TX_DESC_WB
	.comm	_E1000_TXDCTL_COUNT_DESC,4,2    ## @E1000_TXDCTL_COUNT_DESC
	.comm	_GCR,4,2                        ## @GCR
	.comm	_E1000_GCR_L1_ACT_WITHOUT_L0S_RX,4,2 ## @E1000_GCR_L1_ACT_WITHOUT_L0S_RX
	.no_dead_strip	_e1000_init_hw_82571
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_init_hw_82571
_e1000_init_hw_82571:                   ; @e1000_init_hw_82571
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x20, [x0]
	bl	_e1000_initialize_hw_bits_82571
	ldr	x8, [x19, #40]
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
LBB0_2:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_e_dbg
	ldr	x8, [x19, #32]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_e1000e_get_laa_state_82571
	cmp	x0, #0
	cset	w8, ne
	sub	x1, x20, x8
	mov	x0, x19
	bl	_e1000e_init_rx_addrs
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_e_dbg
	ldr	x8, [x19, #8]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x20, #0
Lloh6:
	adrp	x21, _E1000_MTA@GOTPAGE
Lloh7:
	ldr	x21, [x21, _E1000_MTA@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	bl	_E1000_WRITE_REG_ARRAY
	add	x20, x20, #1
	ldr	x8, [x19, #8]
	cmp	x20, x8
	b.lt	LBB0_4
LBB0_5:
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	mov	w0, #0
	bl	_TXDCTL
	bl	_er32
Lloh8:
	adrp	x22, _E1000_TXDCTL_WTHRESH@GOTPAGE
Lloh9:
	ldr	x22, [x22, _E1000_TXDCTL_WTHRESH@GOTPAGEOFF]
	ldr	w8, [x22]
	bic	w8, w0, w8
Lloh10:
	adrp	x23, _E1000_TXDCTL_FULL_TX_DESC_WB@GOTPAGE
Lloh11:
	ldr	x23, [x23, _E1000_TXDCTL_FULL_TX_DESC_WB@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w8, w8, w9
Lloh12:
	adrp	x24, _E1000_TXDCTL_COUNT_DESC@GOTPAGE
Lloh13:
	ldr	x24, [x24, _E1000_TXDCTL_COUNT_DESC@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w21, w8, w9
	mov	w0, #0
	bl	_TXDCTL
	mov	x1, x21
	bl	_ew32
	ldr	w8, [x19, #16]
	sub	w9, w8, #128
	cmp	w9, #2
	b.lo	LBB0_8
; %bb.6:
	cmp	w8, #130
	b.ne	LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_e1000e_enable_tx_pkt_filtering
LBB0_8:
Lloh14:
	adrp	x21, _GCR@GOTPAGE
Lloh15:
	ldr	x21, [x21, _GCR@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_er32
Lloh16:
	adrp	x8, _E1000_GCR_L1_ACT_WITHOUT_L0S_RX@GOTPAGE
Lloh17:
	ldr	x8, [x8, _E1000_GCR_L1_ACT_WITHOUT_L0S_RX@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w0, [x21]
	b	LBB0_10
LBB0_9:
	mov	w0, #1
	bl	_TXDCTL
	bl	_er32
	ldr	w8, [x22]
	bic	w8, w0, w8
	ldr	w9, [x23]
	orr	w8, w8, w9
	ldr	w9, [x24]
	orr	w21, w8, w9
	mov	w0, #1
	bl	_TXDCTL
	mov	x1, x21
LBB0_10:
	bl	_ew32
	mov	x0, x19
	bl	_e1000_clear_hw_cntrs_82571
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error initializing identification LED\n"

l_.str.1:                               ; @.str.1
	.asciz	"Initializing the IEEE VLAN\n"

l_.str.2:                               ; @.str.2
	.asciz	"Zeroing the MTA\n"

	.comm	_E1000_MTA,4,2                  ; @E1000_MTA
	.comm	_E1000_TXDCTL_WTHRESH,4,2       ; @E1000_TXDCTL_WTHRESH
	.comm	_E1000_TXDCTL_FULL_TX_DESC_WB,4,2 ; @E1000_TXDCTL_FULL_TX_DESC_WB
	.comm	_E1000_TXDCTL_COUNT_DESC,4,2    ; @E1000_TXDCTL_COUNT_DESC
	.comm	_GCR,4,2                        ; @GCR
	.comm	_E1000_GCR_L1_ACT_WITHOUT_L0S_RX,4,2 ; @E1000_GCR_L1_ACT_WITHOUT_L0S_RX
	.no_dead_strip	_e1000_init_hw_82571
.subsections_via_symbols
