	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_shutdown
_i40e_shutdown:                         ## @i40e_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_pci_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %r15
	movq	___I40E_SUSPENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%rbx), %esi
	callq	_set_bit
	movq	___I40E_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%rbx), %esi
	callq	_set_bit
	leaq	52(%rbx), %rdi
	callq	_del_timer_sync
	leaq	48(%rbx), %rdi
	callq	_cancel_work_sync
	movq	%rbx, %rdi
	callq	_i40e_cloud_filter_exit
	movq	%rbx, %rdi
	callq	_i40e_fdir_teardown
	movq	(%rbx), %rax
	movq	40(%rbx), %rcx
	movl	(%rcx,%rax,4), %edi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_i40e_notify_client_of_netdev_close
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.1:
	movq	_I40E_HW_WOL_MC_MAGIC_PKT_WAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_i40e_enable_mc_magic_wake
LBB0_3:
	addq	$56, %rbx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_i40e_prep_for_reset
	movq	_I40E_PFPM_APM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpq	$0, 16(%r15)
	movl	$0, %edx
	je	LBB0_5
## %bb.4:
	movq	_I40E_PFPM_APM_APME_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_5:
	movq	%rbx, %rdi
	callq	_wr32
	movq	_I40E_PFPM_WUFC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpq	$0, 16(%r15)
	je	LBB0_7
## %bb.6:
	movq	_I40E_PFPM_WUFC_MAG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_7:
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_wr32
	movq	___I40E_RECOVERY_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r15), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_I40E_FLAG_MSIX_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%r15)
	jne	LBB0_10
## %bb.9:
	movq	24(%r15), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_free_irq
LBB0_10:
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	%r15, %rdi
	callq	_i40e_clear_interrupt_scheme
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	_system_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SYSTEM_POWER_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.12:
	movq	16(%r15), %rsi
	movq	%r14, %rdi
	callq	_pci_wake_from_d3
	movq	_PCI_D3hot@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_set_power_state            ## TAILCALL
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___I40E_SUSPENDED,4,2           ## @__I40E_SUSPENDED
	.comm	___I40E_DOWN,4,2                ## @__I40E_DOWN
	.comm	_I40E_HW_WOL_MC_MAGIC_PKT_WAKE,4,2 ## @I40E_HW_WOL_MC_MAGIC_PKT_WAKE
	.comm	_I40E_PFPM_APM,4,2              ## @I40E_PFPM_APM
	.comm	_I40E_PFPM_APM_APME_MASK,4,2    ## @I40E_PFPM_APM_APME_MASK
	.comm	_I40E_PFPM_WUFC,4,2             ## @I40E_PFPM_WUFC
	.comm	_I40E_PFPM_WUFC_MAG_MASK,4,2    ## @I40E_PFPM_WUFC_MAG_MASK
	.comm	___I40E_RECOVERY_MODE,4,2       ## @__I40E_RECOVERY_MODE
	.comm	_I40E_FLAG_MSIX_ENABLED,4,2     ## @I40E_FLAG_MSIX_ENABLED
	.comm	_system_state,8,3               ## @system_state
	.comm	_SYSTEM_POWER_OFF,8,3           ## @SYSTEM_POWER_OFF
	.comm	_PCI_D3hot,4,2                  ## @PCI_D3hot
	.no_dead_strip	_i40e_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_shutdown
_i40e_shutdown:                         ; @i40e_shutdown
	.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	_pci_get_drvdata
	mov	x20, x0
	add	x21, x0, #56
Lloh0:
	adrp	x8, ___I40E_SUSPENDED@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___I40E_SUSPENDED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x20, #32]
	bl	_set_bit
Lloh3:
	adrp	x8, ___I40E_DOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___I40E_DOWN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x20, #32]
	bl	_set_bit
	add	x0, x20, #52
	bl	_del_timer_sync
	add	x0, x20, #48
	bl	_cancel_work_sync
	mov	x0, x20
	bl	_i40e_cloud_filter_exit
	mov	x0, x20
	bl	_i40e_fdir_teardown
	ldr	x8, [x20, #40]
	ldr	x9, [x20]
	ldr	w0, [x8, x9, lsl #2]
	mov	w1, #0
	bl	_i40e_notify_client_of_netdev_close
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x20, #8]
Lloh6:
	adrp	x9, _I40E_HW_WOL_MC_MAGIC_PKT_WAKE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I40E_HW_WOL_MC_MAGIC_PKT_WAKE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_i40e_enable_mc_magic_wake
LBB0_3:
	mov	x0, x20
	mov	w1, #0
	bl	_i40e_prep_for_reset
Lloh9:
	adrp	x8, _I40E_PFPM_APM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I40E_PFPM_APM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	x8, [x20, #16]
Lloh12:
	adrp	x9, _I40E_PFPM_APM_APME_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _I40E_PFPM_APM_APME_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w2, wzr, w9, eq
	mov	x0, x21
	bl	_wr32
Lloh15:
	adrp	x8, _I40E_PFPM_WUFC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I40E_PFPM_WUFC@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	x8, [x20, #16]
Lloh18:
	adrp	x9, _I40E_PFPM_WUFC_MAG_MASK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _I40E_PFPM_WUFC_MAG_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w2, wzr, w9, eq
	mov	x0, x21
	bl	_wr32
Lloh21:
	adrp	x8, ___I40E_RECOVERY_MODE@GOTPAGE
Lloh22:
	ldr	x8, [x8, ___I40E_RECOVERY_MODE@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	w1, [x20, #32]
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w8, [x20, #12]
Lloh24:
	adrp	x9, _I40E_FLAG_MSIX_ENABLED@GOTPAGE
Lloh25:
	ldr	x9, [x9, _I40E_FLAG_MSIX_ENABLED@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x20, #24]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_free_irq
LBB0_6:
	bl	_rtnl_lock
	mov	x0, x20
	bl	_i40e_clear_interrupt_scheme
	bl	_rtnl_unlock
Lloh27:
	adrp	x8, _system_state@GOTPAGE
Lloh28:
	ldr	x8, [x8, _system_state@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
Lloh30:
	adrp	x9, _SYSTEM_POWER_OFF@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SYSTEM_POWER_OFF@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	x1, [x20, #16]
	mov	x0, x19
	bl	_pci_wake_from_d3
Lloh33:
	adrp	x8, _PCI_D3hot@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PCI_D3hot@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_pci_set_power_state
LBB0_8:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	___I40E_SUSPENDED,4,2           ; @__I40E_SUSPENDED
	.comm	___I40E_DOWN,4,2                ; @__I40E_DOWN
	.comm	_I40E_HW_WOL_MC_MAGIC_PKT_WAKE,4,2 ; @I40E_HW_WOL_MC_MAGIC_PKT_WAKE
	.comm	_I40E_PFPM_APM,4,2              ; @I40E_PFPM_APM
	.comm	_I40E_PFPM_APM_APME_MASK,4,2    ; @I40E_PFPM_APM_APME_MASK
	.comm	_I40E_PFPM_WUFC,4,2             ; @I40E_PFPM_WUFC
	.comm	_I40E_PFPM_WUFC_MAG_MASK,4,2    ; @I40E_PFPM_WUFC_MAG_MASK
	.comm	___I40E_RECOVERY_MODE,4,2       ; @__I40E_RECOVERY_MODE
	.comm	_I40E_FLAG_MSIX_ENABLED,4,2     ; @I40E_FLAG_MSIX_ENABLED
	.comm	_system_state,8,3               ; @system_state
	.comm	_SYSTEM_POWER_OFF,8,3           ; @SYSTEM_POWER_OFF
	.comm	_PCI_D3hot,4,2                  ; @PCI_D3hot
	.no_dead_strip	_i40e_shutdown
.subsections_via_symbols
