	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_init_hw                  ## -- Begin function e1000_init_hw
	.p2align	4, 0x90
_e1000_init_hw:                         ## @e1000_init_hw
	.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	%rdi, %r15
	callq	_e1000_id_led_init
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	jmp	LBB0_24
LBB0_2:
	movq	%r15, %rdi
	callq	_e1000_set_media_type
	leaq	L_.str.1(%rip), %rdi
	callq	_e_dbg
	cmpl	$128, (%r15)
	jg	LBB0_4
## %bb.3:
	movq	_VET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_ew32
LBB0_4:
	movq	%r15, %rdi
	callq	_e1000_clear_vfta
	movl	(%r15), %eax
	movq	_e1000_82542_rev2_0@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	_e_dbg
	movq	%r15, %rdi
	callq	_e1000_pci_clear_mwi
	movq	_RCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_E1000_RCTL_RST@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_ew32
	xorl	%eax, %eax
	callq	_E1000_WRITE_FLUSH
	movl	$5, %edi
	callq	_msleep
LBB0_6:
	movq	%r15, %rdi
	callq	_e1000_init_rx_addrs
	movl	(%r15), %eax
	cmpl	(%rbx), %eax
	jne	LBB0_9
## %bb.7:
	movq	_RCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_ew32
	xorl	%eax, %eax
	callq	_E1000_WRITE_FLUSH
	movl	$1, %edi
	callq	_msleep
	movq	_PCI_COMMAND_INVALIDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_e1000_pci_set_mwi
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	callq	_e_dbg
	movq	_E1000_MC_TBL_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	jle	LBB0_12
## %bb.10:
	movq	_MTA@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_E1000_WRITE_REG_ARRAY
	xorl	%eax, %eax
	callq	_E1000_WRITE_FLUSH
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_11
LBB0_12:
	cmpq	$0, 24(%r15)
	je	LBB0_15
## %bb.13:
	movl	(%r15), %eax
	movq	_e1000_82543@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_15
## %bb.14:
	movq	_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_er32
	movl	(%rbx), %edi
	movq	_E1000_CTRL_PRIOR@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	%rax, %rsi
	callq	_ew32
LBB0_15:
	movl	(%r15), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	je	LBB0_19
## %bb.16:
	movl	16(%r15), %eax
	movq	_e1000_bus_type_pcix@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_19
## %bb.17:
	movq	%r15, %rdi
	callq	_e1000_pcix_get_mmrbc
	cmpl	$2049, %eax                     ## imm = 0x801
	jl	LBB0_19
## %bb.18:
	movq	%r15, %rdi
	movl	$2048, %esi                     ## imm = 0x800
	callq	_e1000_pcix_set_mmrbc
LBB0_19:
	movq	%r15, %rdi
	callq	_e1000_setup_link
	movq	%rax, %r14
	movl	(%r15), %eax
	movq	_e1000_82544@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_21
## %bb.20:
	movq	_TXDCTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_er32
	movq	_E1000_TXDCTL_WTHRESH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	notq	%rsi
	andq	%rax, %rsi
	movq	_E1000_TXDCTL_FULL_TX_DESC_WB@GOTPCREL(%rip), %rax
	orq	(%rax), %rsi
	movl	(%rbx), %edi
	callq	_ew32
LBB0_21:
	movq	%r15, %rdi
	callq	_e1000_clear_hw_cntrs
	movq	8(%r15), %rax
	movq	_E1000_DEV_ID_82546GB_QUAD_COPPER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_23
## %bb.22:
	movq	_E1000_DEV_ID_82546GB_QUAD_COPPER_KSP3@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
LBB0_23:
	movq	_CTRL_EXT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_er32
	movq	_E1000_CTRL_EXT_RO_DIS@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movl	(%rbx), %edi
	movq	%rax, %rsi
	callq	_ew32
LBB0_24:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	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"

	.comm	_VET,4,2                        ## @VET
	.comm	_e1000_82542_rev2_0,4,2         ## @e1000_82542_rev2_0
L_.str.2:                               ## @.str.2
	.asciz	"Disabling MWI on 82542 rev 2.0\n"

	.comm	_RCTL,4,2                       ## @RCTL
	.comm	_E1000_RCTL_RST,8,3             ## @E1000_RCTL_RST
	.comm	_PCI_COMMAND_INVALIDATE,4,2     ## @PCI_COMMAND_INVALIDATE
L_.str.3:                               ## @.str.3
	.asciz	"Zeroing the MTA\n"

	.comm	_E1000_MC_TBL_SIZE,8,3          ## @E1000_MC_TBL_SIZE
	.comm	_MTA,4,2                        ## @MTA
	.comm	_e1000_82543,4,2                ## @e1000_82543
	.comm	_CTRL,4,2                       ## @CTRL
	.comm	_E1000_CTRL_PRIOR,8,3           ## @E1000_CTRL_PRIOR
	.comm	_e1000_bus_type_pcix,4,2        ## @e1000_bus_type_pcix
	.comm	_e1000_82544,4,2                ## @e1000_82544
	.comm	_TXDCTL,4,2                     ## @TXDCTL
	.comm	_E1000_TXDCTL_WTHRESH,8,3       ## @E1000_TXDCTL_WTHRESH
	.comm	_E1000_TXDCTL_FULL_TX_DESC_WB,8,3 ## @E1000_TXDCTL_FULL_TX_DESC_WB
	.comm	_E1000_DEV_ID_82546GB_QUAD_COPPER,8,3 ## @E1000_DEV_ID_82546GB_QUAD_COPPER
	.comm	_E1000_DEV_ID_82546GB_QUAD_COPPER_KSP3,8,3 ## @E1000_DEV_ID_82546GB_QUAD_COPPER_KSP3
	.comm	_CTRL_EXT,4,2                   ## @CTRL_EXT
	.comm	_E1000_CTRL_EXT_RO_DIS,8,3      ## @E1000_CTRL_EXT_RO_DIS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_init_hw                  ; -- Begin function e1000_init_hw
	.p2align	2
_e1000_init_hw:                         ; @e1000_init_hw
	.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
	mov	x19, x0
	bl	_e1000_id_led_init
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
	b	LBB0_23
LBB0_2:
	mov	x0, x19
	bl	_e1000_set_media_type
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_e_dbg
	ldr	w8, [x19]
	cmp	w8, #128
	b.gt	LBB0_4
; %bb.3:
Lloh4:
	adrp	x8, _VET@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VET@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_ew32
LBB0_4:
	mov	x0, x19
	bl	_e1000_clear_vfta
	ldr	w8, [x19]
Lloh7:
	adrp	x20, _e1000_82542_rev2_0@GOTPAGE
Lloh8:
	ldr	x20, [x20, _e1000_82542_rev2_0@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.5:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_e_dbg
	mov	x0, x19
	bl	_e1000_pci_clear_mwi
Lloh11:
	adrp	x8, _RCTL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RCTL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _E1000_RCTL_RST@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E1000_RCTL_RST@GOTPAGEOFF]
Lloh16:
	ldr	x1, [x8]
	bl	_ew32
	bl	_E1000_WRITE_FLUSH
	mov	w0, #5
	bl	_msleep
LBB0_6:
	mov	x0, x19
	bl	_e1000_init_rx_addrs
	ldr	w8, [x19]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.7:
Lloh17:
	adrp	x8, _RCTL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RCTL@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_ew32
	bl	_E1000_WRITE_FLUSH
	mov	w0, #1
	bl	_msleep
	ldr	w8, [x19, #4]
Lloh20:
	adrp	x9, _PCI_COMMAND_INVALIDATE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PCI_COMMAND_INVALIDATE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_e1000_pci_set_mwi
LBB0_9:
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_e_dbg
Lloh25:
	adrp	x8, _E1000_MC_TBL_SIZE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _E1000_MC_TBL_SIZE@GOTPAGEOFF]
Lloh27:
	ldr	x21, [x8]
	cmp	x21, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x20, #0
Lloh28:
	adrp	x22, _MTA@GOTPAGE
Lloh29:
	ldr	x22, [x22, _MTA@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	bl	_E1000_WRITE_REG_ARRAY
	bl	_E1000_WRITE_FLUSH
	add	x20, x20, #1
	cmp	x21, x20
	b.ne	LBB0_11
LBB0_12:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_15
; %bb.13:
	ldr	w8, [x19]
Lloh30:
	adrp	x9, _e1000_82543@GOTPAGE
Lloh31:
	ldr	x9, [x9, _e1000_82543@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_15
; %bb.14:
Lloh33:
	adrp	x20, _CTRL@GOTPAGE
Lloh34:
	ldr	x20, [x20, _CTRL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_er32
	ldr	w8, [x20]
Lloh35:
	adrp	x9, _E1000_CTRL_PRIOR@GOTPAGE
Lloh36:
	ldr	x9, [x9, _E1000_CTRL_PRIOR@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	orr	x1, x9, x0
	mov	x0, x8
	bl	_ew32
LBB0_15:
	ldr	w8, [x19]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.eq	LBB0_19
; %bb.16:
	ldr	w8, [x19, #16]
Lloh38:
	adrp	x9, _e1000_bus_type_pcix@GOTPAGE
Lloh39:
	ldr	x9, [x9, _e1000_bus_type_pcix@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.17:
	mov	x0, x19
	bl	_e1000_pcix_get_mmrbc
	cmp	w0, #2049
	b.lt	LBB0_19
; %bb.18:
	mov	x0, x19
	mov	w1, #2048
	bl	_e1000_pcix_set_mmrbc
LBB0_19:
	mov	x0, x19
	bl	_e1000_setup_link
	mov	x20, x0
	ldr	w8, [x19]
Lloh41:
	adrp	x9, _e1000_82544@GOTPAGE
Lloh42:
	ldr	x9, [x9, _e1000_82544@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_21
; %bb.20:
Lloh44:
	adrp	x21, _TXDCTL@GOTPAGE
Lloh45:
	ldr	x21, [x21, _TXDCTL@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_er32
Lloh46:
	adrp	x8, _E1000_TXDCTL_WTHRESH@GOTPAGE
Lloh47:
	ldr	x8, [x8, _E1000_TXDCTL_WTHRESH@GOTPAGEOFF]
Lloh48:
	ldr	x8, [x8]
	bic	x8, x0, x8
Lloh49:
	adrp	x9, _E1000_TXDCTL_FULL_TX_DESC_WB@GOTPAGE
Lloh50:
	ldr	x9, [x9, _E1000_TXDCTL_FULL_TX_DESC_WB@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	orr	x1, x8, x9
	ldr	w0, [x21]
	bl	_ew32
LBB0_21:
	mov	x0, x19
	bl	_e1000_clear_hw_cntrs
	ldr	x8, [x19, #8]
Lloh52:
	adrp	x9, _E1000_DEV_ID_82546GB_QUAD_COPPER@GOTPAGE
Lloh53:
	ldr	x9, [x9, _E1000_DEV_ID_82546GB_QUAD_COPPER@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
Lloh55:
	adrp	x10, _E1000_DEV_ID_82546GB_QUAD_COPPER_KSP3@GOTPAGE
Lloh56:
	ldr	x10, [x10, _E1000_DEV_ID_82546GB_QUAD_COPPER_KSP3@GOTPAGEOFF]
Lloh57:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_23
; %bb.22:
Lloh58:
	adrp	x19, _CTRL_EXT@GOTPAGE
Lloh59:
	ldr	x19, [x19, _CTRL_EXT@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_er32
Lloh60:
	adrp	x8, _E1000_CTRL_EXT_RO_DIS@GOTPAGE
Lloh61:
	ldr	x8, [x8, _E1000_CTRL_EXT_RO_DIS@GOTPAGEOFF]
Lloh62:
	ldr	x8, [x8]
	orr	x1, x8, x0
	ldr	w0, [x19]
	bl	_ew32
LBB0_23:
	mov	x0, x20
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh58, Lloh59
	.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"

	.comm	_VET,4,2                        ; @VET
	.comm	_e1000_82542_rev2_0,4,2         ; @e1000_82542_rev2_0
l_.str.2:                               ; @.str.2
	.asciz	"Disabling MWI on 82542 rev 2.0\n"

	.comm	_RCTL,4,2                       ; @RCTL
	.comm	_E1000_RCTL_RST,8,3             ; @E1000_RCTL_RST
	.comm	_PCI_COMMAND_INVALIDATE,4,2     ; @PCI_COMMAND_INVALIDATE
l_.str.3:                               ; @.str.3
	.asciz	"Zeroing the MTA\n"

	.comm	_E1000_MC_TBL_SIZE,8,3          ; @E1000_MC_TBL_SIZE
	.comm	_MTA,4,2                        ; @MTA
	.comm	_e1000_82543,4,2                ; @e1000_82543
	.comm	_CTRL,4,2                       ; @CTRL
	.comm	_E1000_CTRL_PRIOR,8,3           ; @E1000_CTRL_PRIOR
	.comm	_e1000_bus_type_pcix,4,2        ; @e1000_bus_type_pcix
	.comm	_e1000_82544,4,2                ; @e1000_82544
	.comm	_TXDCTL,4,2                     ; @TXDCTL
	.comm	_E1000_TXDCTL_WTHRESH,8,3       ; @E1000_TXDCTL_WTHRESH
	.comm	_E1000_TXDCTL_FULL_TX_DESC_WB,8,3 ; @E1000_TXDCTL_FULL_TX_DESC_WB
	.comm	_E1000_DEV_ID_82546GB_QUAD_COPPER,8,3 ; @E1000_DEV_ID_82546GB_QUAD_COPPER
	.comm	_E1000_DEV_ID_82546GB_QUAD_COPPER_KSP3,8,3 ; @E1000_DEV_ID_82546GB_QUAD_COPPER_KSP3
	.comm	_CTRL_EXT,4,2                   ; @CTRL_EXT
	.comm	_E1000_CTRL_EXT_RO_DIS,8,3      ; @E1000_CTRL_EXT_RO_DIS
.subsections_via_symbols
