	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __e1000_shutdown
___e1000_shutdown:                      ## @__e1000_shutdown
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_pci_get_drvdata
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	movl	(%rax), %r14d
	movq	%r12, %rdi
	callq	_netif_device_detach
	movq	%r12, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	_E1000_CHECK_RESET_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	4(%r13), %r15
	movq	___E1000_RESETTING@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.3:
	decl	%ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_test_bit
	subl	$1, %ebx
	setb	%cl
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testb	%cl, %cl
	je	LBB0_4
LBB0_6:
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_test_bit
	movq	%rax, %rdi
	callq	_WARN_ON
	movq	%r13, %rdi
	callq	_e1000_down
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_7:
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_er32
	movq	_E1000_STATUS_LU@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_E1000_WUFC_LNKC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%esi, %esi
	cmpl	$1, %eax
	movl	$0, %ebx
	sbbl	%ebx, %ebx
	notl	%ecx
	orl	%ecx, %ebx
	movl	$0, %r15d
	andl	%r14d, %ebx
	je	LBB0_16
## %bb.8:
	movq	%r13, %rdi
	callq	_e1000_setup_rctl
	movq	%r12, %rdi
	callq	_e1000_set_rx_mode
	movq	_RCTL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_er32
	movq	_E1000_WUFC_MC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	%ebx, %esi
	je	LBB0_10
## %bb.9:
	movq	_E1000_RCTL_MPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_10:
	orl	%eax, %esi
	movl	(%r14), %edi
	movq	_E1000_RCTL_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_ew32
	movq	16(%r13), %rax
	movq	_e1000_82540@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_12
## %bb.11:
	movq	_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_er32
	orl	$3145728, %eax                  ## imm = 0x300000
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_ew32
LBB0_12:
	movq	24(%r13), %rax
	movq	_e1000_media_type_fiber@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.13:
	movq	_e1000_media_type_internal_serdes@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
LBB0_14:
	movq	_CTRL_EXT@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_er32
	movq	_E1000_CTRL_EXT_SDP7_DATA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_ew32
LBB0_15:
	movq	_E1000_WUC_PME_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %r15d
LBB0_16:
	testl	%ebx, %ebx
	setne	%bl
	movq	_WUC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ew32
	movq	_WUFC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_ew32
	movq	%r13, %rdi
	callq	_e1000_release_manageability
	cmpq	$0, 8(%r13)
	setne	%al
	orb	%bl, %al
	movzbl	%al, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r12, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	%r13, %rdi
	callq	_e1000_free_irq
LBB0_18:
	movq	___E1000_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %r13
	movq	%r13, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_20
## %bb.19:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_pci_disable_device
LBB0_20:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E1000_CHECK_RESET_COUNT,4,2    ## @E1000_CHECK_RESET_COUNT
	.comm	___E1000_RESETTING,4,2          ## @__E1000_RESETTING
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_E1000_STATUS_LU,4,2            ## @E1000_STATUS_LU
	.comm	_E1000_WUFC_LNKC,4,2            ## @E1000_WUFC_LNKC
	.comm	_RCTL,4,2                       ## @RCTL
	.comm	_E1000_WUFC_MC,4,2              ## @E1000_WUFC_MC
	.comm	_E1000_RCTL_MPE,4,2             ## @E1000_RCTL_MPE
	.comm	_E1000_RCTL_EN,4,2              ## @E1000_RCTL_EN
	.comm	_e1000_82540,8,3                ## @e1000_82540
	.comm	_CTRL,4,2                       ## @CTRL
	.comm	_e1000_media_type_fiber,8,3     ## @e1000_media_type_fiber
	.comm	_e1000_media_type_internal_serdes,8,3 ## @e1000_media_type_internal_serdes
	.comm	_CTRL_EXT,4,2                   ## @CTRL_EXT
	.comm	_E1000_CTRL_EXT_SDP7_DATA,4,2   ## @E1000_CTRL_EXT_SDP7_DATA
	.comm	_WUC,4,2                        ## @WUC
	.comm	_E1000_WUC_PME_EN,4,2           ## @E1000_WUC_PME_EN
	.comm	_WUFC,4,2                       ## @WUFC
	.comm	___E1000_DISABLED,4,2           ## @__E1000_DISABLED
	.comm	_E1000_CTRL_ADVD3WUC,4,2        ## @E1000_CTRL_ADVD3WUC
	.comm	_E1000_CTRL_EN_PHY_PWR_MGMT,4,2 ## @E1000_CTRL_EN_PHY_PWR_MGMT
	.no_dead_strip	___e1000_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __e1000_shutdown
___e1000_shutdown:                      ; @__e1000_shutdown
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x19, x0
	bl	_pci_get_drvdata
	mov	x22, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	w24, [x0]
	mov	x0, x22
	bl	_netif_device_detach
	mov	x0, x22
	bl	_netif_running
	cbz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _E1000_CHECK_RESET_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E1000_CHECK_RESET_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
	add	x23, x20, #4
Lloh3:
	adrp	x25, ___E1000_RESETTING@GOTPAGE
Lloh4:
	ldr	x25, [x25, ___E1000_RESETTING@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	x1, x23
	bl	_test_bit
	cmp	x0, #0
	ccmp	w26, #0, #4, ne
	b.eq	LBB0_4
; %bb.2:
	sub	w26, w26, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
	ldr	w0, [x25]
	mov	x1, x23
	bl	_test_bit
	cmp	x0, #0
	ccmp	w26, #0, #4, ne
	sub	w26, w26, #1
	b.ne	LBB0_3
LBB0_4:
	ldr	w0, [x25]
	mov	x1, x23
	bl	_test_bit
	bl	_WARN_ON
	mov	x0, x20
	bl	_e1000_down
LBB0_5:
Lloh5:
	adrp	x8, _STATUS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_er32
Lloh8:
	adrp	x8, _E1000_STATUS_LU@GOTPAGE
Lloh9:
	ldr	x8, [x8, _E1000_STATUS_LU@GOTPAGEOFF]
Lloh10:
	adrp	x9, _E1000_WUFC_LNKC@GOTPAGE
Lloh11:
	ldr	x9, [x9, _E1000_WUFC_LNKC@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
	tst	w8, w0
	mov	w8, #-1
	csinv	w8, w8, w9, eq
	ands	w24, w8, w24
	b.eq	LBB0_12
; %bb.6:
	mov	x0, x20
	bl	_e1000_setup_rctl
	mov	x0, x22
	bl	_e1000_set_rx_mode
Lloh14:
	adrp	x23, _RCTL@GOTPAGE
Lloh15:
	ldr	x23, [x23, _RCTL@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_er32
Lloh16:
	adrp	x8, _E1000_WUFC_MC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _E1000_WUFC_MC@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _E1000_RCTL_MPE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _E1000_RCTL_MPE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w8, w24
	csel	w8, wzr, w9, eq
	orr	w8, w8, w0
	ldr	w0, [x23]
Lloh22:
	adrp	x9, _E1000_RCTL_EN@GOTPAGE
Lloh23:
	ldr	x9, [x9, _E1000_RCTL_EN@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_ew32
	ldr	x8, [x20, #16]
Lloh25:
	adrp	x9, _e1000_82540@GOTPAGE
Lloh26:
	ldr	x9, [x9, _e1000_82540@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_8
; %bb.7:
Lloh28:
	adrp	x23, _CTRL@GOTPAGE
Lloh29:
	ldr	x23, [x23, _CTRL@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_er32
	orr	w1, w0, #0x300000
	ldr	w0, [x23]
	bl	_ew32
LBB0_8:
	ldr	x8, [x20, #24]
Lloh30:
	adrp	x9, _e1000_media_type_fiber@GOTPAGE
Lloh31:
	ldr	x9, [x9, _e1000_media_type_fiber@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.9:
Lloh33:
	adrp	x9, _e1000_media_type_internal_serdes@GOTPAGE
Lloh34:
	ldr	x9, [x9, _e1000_media_type_internal_serdes@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
LBB0_10:
Lloh36:
	adrp	x23, _CTRL_EXT@GOTPAGE
Lloh37:
	ldr	x23, [x23, _CTRL_EXT@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_er32
Lloh38:
	adrp	x8, _E1000_CTRL_EXT_SDP7_DATA@GOTPAGE
Lloh39:
	ldr	x8, [x8, _E1000_CTRL_EXT_SDP7_DATA@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w0, [x23]
	bl	_ew32
LBB0_11:
Lloh41:
	adrp	x8, _E1000_WUC_PME_EN@GOTPAGE
Lloh42:
	ldr	x8, [x8, _E1000_WUC_PME_EN@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x23, x24
	b	LBB0_13
LBB0_12:
	mov	w1, #0
	mov	w23, #0
LBB0_13:
Lloh44:
	adrp	x8, _WUC@GOTPAGE
Lloh45:
	ldr	x8, [x8, _WUC@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	bl	_ew32
Lloh47:
	adrp	x8, _WUFC@GOTPAGE
Lloh48:
	ldr	x8, [x8, _WUFC@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_ew32
	mov	x0, x20
	bl	_e1000_release_manageability
	ldr	x8, [x20, #8]
	cmp	x8, #0
	ccmp	w24, #0, #0, eq
	cset	w8, ne
	str	w8, [x21]
	mov	x0, x22
	bl	_netif_running
	cbz	x0, LBB0_15
; %bb.14:
	mov	x0, x20
	bl	_e1000_free_irq
LBB0_15:
Lloh50:
	adrp	x8, ___E1000_DISABLED@GOTPAGE
Lloh51:
	ldr	x8, [x8, ___E1000_DISABLED@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	add	x1, x20, #4
	bl	_test_and_set_bit
	cbnz	w0, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_pci_disable_device
LBB0_17:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_E1000_CHECK_RESET_COUNT,4,2    ; @E1000_CHECK_RESET_COUNT
	.comm	___E1000_RESETTING,4,2          ; @__E1000_RESETTING
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_E1000_STATUS_LU,4,2            ; @E1000_STATUS_LU
	.comm	_E1000_WUFC_LNKC,4,2            ; @E1000_WUFC_LNKC
	.comm	_RCTL,4,2                       ; @RCTL
	.comm	_E1000_WUFC_MC,4,2              ; @E1000_WUFC_MC
	.comm	_E1000_RCTL_MPE,4,2             ; @E1000_RCTL_MPE
	.comm	_E1000_RCTL_EN,4,2              ; @E1000_RCTL_EN
	.comm	_e1000_82540,8,3                ; @e1000_82540
	.comm	_CTRL,4,2                       ; @CTRL
	.comm	_e1000_media_type_fiber,8,3     ; @e1000_media_type_fiber
	.comm	_e1000_media_type_internal_serdes,8,3 ; @e1000_media_type_internal_serdes
	.comm	_CTRL_EXT,4,2                   ; @CTRL_EXT
	.comm	_E1000_CTRL_EXT_SDP7_DATA,4,2   ; @E1000_CTRL_EXT_SDP7_DATA
	.comm	_WUC,4,2                        ; @WUC
	.comm	_E1000_WUC_PME_EN,4,2           ; @E1000_WUC_PME_EN
	.comm	_WUFC,4,2                       ; @WUFC
	.comm	___E1000_DISABLED,4,2           ; @__E1000_DISABLED
	.comm	_E1000_CTRL_ADVD3WUC,4,2        ; @E1000_CTRL_ADVD3WUC
	.comm	_E1000_CTRL_EN_PHY_PWR_MGMT,4,2 ; @E1000_CTRL_EN_PHY_PWR_MGMT
	.no_dead_strip	___e1000_shutdown
.subsections_via_symbols
