	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_sriov_vf_shutdown
_qlcnic_sriov_vf_shutdown:              ## @qlcnic_sriov_vf_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_pci_get_drvdata
	movq	%rax, %rbx
	movq	8(%rax), %r15
	movq	%r15, %rdi
	callq	_netif_device_detach
	movq	%rbx, %rdi
	callq	_qlcnic_cancel_idc_work
	movq	%r15, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_qlcnic_down
LBB0_2:
	movq	_QLCNIC_BC_CMD_CHANNEL_TERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_qlcnic_sriov_channel_cfg_cmd
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_qlcnic_sriov_cfg_bc_intr
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_disable_mbx_intr
	movq	%rbx, %rdi
	callq	_cancel_delayed_work_sync
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_save_state                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_BC_CMD_CHANNEL_TERM,4,2 ## @QLCNIC_BC_CMD_CHANNEL_TERM
	.no_dead_strip	_qlcnic_sriov_vf_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_sriov_vf_shutdown
_qlcnic_sriov_vf_shutdown:              ; @qlcnic_sriov_vf_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
	ldr	x21, [x0, #8]
	mov	x0, x21
	bl	_netif_device_detach
	mov	x0, x20
	bl	_qlcnic_cancel_idc_work
	mov	x0, x21
	bl	_netif_running
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	bl	_qlcnic_down
LBB0_2:
Lloh0:
	adrp	x8, _QLCNIC_BC_CMD_CHANNEL_TERM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_BC_CMD_CHANNEL_TERM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_qlcnic_sriov_channel_cfg_cmd
	mov	x0, x20
	mov	w1, #0
	bl	_qlcnic_sriov_cfg_bc_intr
	mov	x0, x20
	bl	_qlcnic_83xx_disable_mbx_intr
	mov	x0, x20
	bl	_cancel_delayed_work_sync
	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_save_state
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_BC_CMD_CHANNEL_TERM,4,2 ; @QLCNIC_BC_CMD_CHANNEL_TERM
	.no_dead_strip	_qlcnic_sriov_vf_shutdown
.subsections_via_symbols
