	.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, -48(%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_2
## %bb.1:
	movq	___E1000_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	addq	$16, %rsi
	callq	_test_bit
	movl	%eax, %edi
	callq	_WARN_ON
	movq	%r13, %rdi
	callq	_e1000_down
LBB0_2:
	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_11
## %bb.3:
	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_5
## %bb.4:
	movq	_E1000_RCTL_MPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_5:
	orl	%eax, %esi
	movl	(%r14), %edi
	movq	_E1000_RCTL_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_ew32
	movq	24(%r13), %rax
	movq	_e1000_82540@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_7
## %bb.6:
	movq	_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_er32
	orl	$3145728, %eax                  ## imm = 0x300000
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_ew32
LBB0_7:
	movq	32(%r13), %rax
	movq	_e1000_media_type_fiber@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	movq	_e1000_media_type_internal_serdes@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
LBB0_9:
	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_10:
	movq	_E1000_WUC_PME_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %r15d
LBB0_11:
	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	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r12, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r13, %rdi
	callq	_e1000_free_irq
LBB0_13:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_pci_disable_device
	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_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_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	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	x20, x1
	mov	x19, x0
	bl	_pci_get_drvdata
	mov	x22, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	w23, [x0]
	mov	x0, x22
	bl	_netif_device_detach
	mov	x0, x22
	bl	_netif_running
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, ___E1000_RESETTING@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___E1000_RESETTING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x21, #16
	bl	_test_bit
	bl	_WARN_ON
	mov	x0, x21
	bl	_e1000_down
LBB0_2:
Lloh3:
	adrp	x8, _STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_er32
Lloh6:
	adrp	x8, _E1000_STATUS_LU@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E1000_STATUS_LU@GOTPAGEOFF]
Lloh8:
	adrp	x9, _E1000_WUFC_LNKC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _E1000_WUFC_LNKC@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	tst	w8, w0
	mov	w8, #-1
	csinv	w8, w8, w9, eq
	ands	w24, w8, w23
	b.eq	LBB0_9
; %bb.3:
	mov	x0, x21
	bl	_e1000_setup_rctl
	mov	x0, x22
	bl	_e1000_set_rx_mode
Lloh12:
	adrp	x23, _RCTL@GOTPAGE
Lloh13:
	ldr	x23, [x23, _RCTL@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_er32
Lloh14:
	adrp	x8, _E1000_WUFC_MC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E1000_WUFC_MC@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _E1000_RCTL_MPE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _E1000_RCTL_MPE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w8, w24
	csel	w8, wzr, w9, eq
	orr	w8, w8, w0
	ldr	w0, [x23]
Lloh20:
	adrp	x9, _E1000_RCTL_EN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _E1000_RCTL_EN@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_ew32
	ldr	x8, [x21, #24]
Lloh23:
	adrp	x9, _e1000_82540@GOTPAGE
Lloh24:
	ldr	x9, [x9, _e1000_82540@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_5
; %bb.4:
Lloh26:
	adrp	x23, _CTRL@GOTPAGE
Lloh27:
	ldr	x23, [x23, _CTRL@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_er32
	orr	w1, w0, #0x300000
	ldr	w0, [x23]
	bl	_ew32
LBB0_5:
	ldr	x8, [x21, #32]
Lloh28:
	adrp	x9, _e1000_media_type_fiber@GOTPAGE
Lloh29:
	ldr	x9, [x9, _e1000_media_type_fiber@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
Lloh31:
	adrp	x9, _e1000_media_type_internal_serdes@GOTPAGE
Lloh32:
	ldr	x9, [x9, _e1000_media_type_internal_serdes@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_7:
Lloh34:
	adrp	x23, _CTRL_EXT@GOTPAGE
Lloh35:
	ldr	x23, [x23, _CTRL_EXT@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_er32
Lloh36:
	adrp	x8, _E1000_CTRL_EXT_SDP7_DATA@GOTPAGE
Lloh37:
	ldr	x8, [x8, _E1000_CTRL_EXT_SDP7_DATA@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w0, [x23]
	bl	_ew32
LBB0_8:
Lloh39:
	adrp	x8, _E1000_WUC_PME_EN@GOTPAGE
Lloh40:
	ldr	x8, [x8, _E1000_WUC_PME_EN@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x23, x24
	b	LBB0_10
LBB0_9:
	mov	w1, #0
	mov	w23, #0
LBB0_10:
Lloh42:
	adrp	x8, _WUC@GOTPAGE
Lloh43:
	ldr	x8, [x8, _WUC@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	bl	_ew32
Lloh45:
	adrp	x8, _WUFC@GOTPAGE
Lloh46:
	ldr	x8, [x8, _WUFC@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_ew32
	mov	x0, x21
	bl	_e1000_release_manageability
	ldr	x8, [x21, #8]
	cmp	x8, #0
	ccmp	w24, #0, #0, eq
	cset	w8, ne
	str	w8, [x20]
	mov	x0, x22
	bl	_netif_running
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x21
	bl	_e1000_free_irq
LBB0_12:
	mov	x0, x19
	bl	_pci_disable_device
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.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_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
