	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_remove
_qlcnic_remove:                         ## @qlcnic_remove
	.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	_pci_get_drvdata
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	movq	48(%rax), %r14
	movq	%rax, %rdi
	callq	_qlcnic_cancel_idc_work
	movq	%rbx, %rdi
	callq	_qlcnic_sriov_pf_disable
	movq	8(%rbx), %r12
	movq	%r14, %rdi
	callq	_unregister_netdev
	movq	%rbx, %rdi
	callq	_qlcnic_sriov_cleanup
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_check
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_qlcnic_83xx_initialize_nic
	leaq	44(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_free_mbx_intr
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_detach_mailbox_work
	movl	8(%r12), %edi
	callq	_qlcnic_83xx_free_mailbox
	movq	(%r12), %rdi
	callq	_kfree
LBB0_3:
	movl	40(%rbx), %edi
	callq	_qlcnic_dcb_free
	movq	%rbx, %rdi
	callq	_qlcnic_detach
	movq	32(%rbx), %rdi
	callq	_kfree
	movq	24(%rbx), %rdi
	callq	_kfree
	movq	%rbx, %rdi
	callq	_qlcnic_82xx_check
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_qlcnic_clr_all_drv_state
LBB0_5:
	movq	___QLCNIC_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	addq	$16, %rsi
	callq	_clear_bit
	movq	%rbx, %rdi
	callq	_qlcnic_free_lb_filters_mem
	movq	%rbx, %rdi
	callq	_qlcnic_teardown_intr
	movq	%rbx, %rdi
	callq	_qlcnic_remove_sysfs
	movq	%rbx, %rdi
	callq	_qlcnic_unregister_hwmon_dev
	movq	8(%rbx), %rdi
	callq	_qlcnic_cleanup_pci_map
	movq	%rbx, %rdi
	callq	_qlcnic_release_firmware
	movq	%r15, %rdi
	callq	_pci_disable_pcie_error_reporting
	movq	%r15, %rdi
	callq	_pci_release_regions
	movq	%r15, %rdi
	callq	_pci_disable_device
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_destroy_workqueue
	movq	$0, (%rbx)
LBB0_7:
	movq	%rbx, %rdi
	callq	_qlcnic_free_adapter_resources
	movq	%r12, %rdi
	callq	_kfree
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free_netdev                    ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___QLCNIC_RESETTING,4,2         ## @__QLCNIC_RESETTING
	.no_dead_strip	_qlcnic_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_remove
_qlcnic_remove:                         ; @qlcnic_remove
	.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	x22, x0
	bl	_pci_get_drvdata
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	ldr	x19, [x0, #48]
	bl	_qlcnic_cancel_idc_work
	mov	x0, x20
	bl	_qlcnic_sriov_pf_disable
	ldr	x21, [x20, #8]
	mov	x0, x19
	bl	_unregister_netdev
	mov	x0, x20
	bl	_qlcnic_sriov_cleanup
	mov	x0, x20
	bl	_qlcnic_83xx_check
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	w1, #0
	bl	_qlcnic_83xx_initialize_nic
	add	x0, x20, #44
	bl	_cancel_delayed_work_sync
	mov	x0, x20
	bl	_qlcnic_83xx_free_mbx_intr
	mov	x0, x20
	bl	_qlcnic_83xx_detach_mailbox_work
	ldr	w0, [x21, #8]
	bl	_qlcnic_83xx_free_mailbox
	ldr	x0, [x21]
	bl	_kfree
LBB0_3:
	ldr	w0, [x20, #40]
	bl	_qlcnic_dcb_free
	mov	x0, x20
	bl	_qlcnic_detach
	ldr	x0, [x20, #32]
	bl	_kfree
	ldr	x0, [x20, #24]
	bl	_kfree
	mov	x0, x20
	bl	_qlcnic_82xx_check
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	w1, #0
	bl	_qlcnic_clr_all_drv_state
LBB0_5:
Lloh0:
	adrp	x8, ___QLCNIC_RESETTING@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___QLCNIC_RESETTING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #16
	bl	_clear_bit
	mov	x0, x20
	bl	_qlcnic_free_lb_filters_mem
	mov	x0, x20
	bl	_qlcnic_teardown_intr
	mov	x0, x20
	bl	_qlcnic_remove_sysfs
	mov	x0, x20
	bl	_qlcnic_unregister_hwmon_dev
	ldr	x0, [x20, #8]
	bl	_qlcnic_cleanup_pci_map
	mov	x0, x20
	bl	_qlcnic_release_firmware
	mov	x0, x22
	bl	_pci_disable_pcie_error_reporting
	mov	x0, x22
	bl	_pci_release_regions
	mov	x0, x22
	bl	_pci_disable_device
	ldr	x0, [x20]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_destroy_workqueue
	str	xzr, [x20]
LBB0_7:
	mov	x0, x20
	bl	_qlcnic_free_adapter_resources
	mov	x0, x21
	bl	_kfree
	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	_free_netdev
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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	___QLCNIC_RESETTING,4,2         ; @__QLCNIC_RESETTING
	.no_dead_strip	_qlcnic_remove
.subsections_via_symbols
