	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function diva_pri_cleanup_adapter
_diva_pri_cleanup_adapter:              ## @diva_pri_cleanup_adapter
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpq	$0, 72(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_diva_pri_stop_adapter
LBB0_2:
	cmpq	$0, 56(%rbx)
	je	LBB0_4
## %bb.3:
	movl	64(%rbx), %esi
	movq	%rbx, %rdi
	callq	_diva_os_remove_irq
LBB0_4:
	movq	$0, 56(%rbx)
	movq	96(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.5:
	movq	88(%rbx), %rcx
	movq	(%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_divasa_unmap_pci_bar
	movq	96(%rbx), %rax
	movq	$0, (%rax)
	movq	88(%rbx), %rax
	movq	$0, (%rax)
	movq	96(%rbx), %rax
LBB0_7:
	cmpq	$0, 8(%rax)
	je	LBB0_10
## %bb.8:
	movq	88(%rbx), %rcx
	movq	8(%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_divasa_unmap_pci_bar
	movq	96(%rbx), %rax
	movq	$0, 8(%rax)
	movq	88(%rbx), %rax
	movq	$0, 8(%rax)
	movq	96(%rbx), %rax
LBB0_10:
	cmpq	$0, 16(%rax)
	je	LBB0_13
## %bb.11:
	movq	88(%rbx), %rcx
	movq	16(%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_divasa_unmap_pci_bar
	movq	96(%rbx), %rax
	movq	$0, 16(%rax)
	movq	88(%rbx), %rax
	movq	$0, 16(%rax)
	movq	96(%rbx), %rax
LBB0_13:
	cmpq	$0, 24(%rax)
	je	LBB0_16
## %bb.14:
	movq	88(%rbx), %rcx
	movq	24(%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_divasa_unmap_pci_bar
	movq	96(%rbx), %rax
	movq	$0, 24(%rax)
	movq	88(%rbx), %rax
	movq	$0, 24(%rax)
	movq	96(%rbx), %rax
LBB0_16:
	cmpq	$0, 32(%rax)
	je	LBB0_19
## %bb.17:
	movq	88(%rbx), %rax
	movq	32(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:
	callq	_divasa_unmap_pci_bar
	movq	96(%rbx), %rax
	movq	$0, 32(%rax)
	movq	88(%rbx), %rax
	movq	$0, 32(%rax)
LBB0_19:
	leaq	40(%rbx), %rdi
	callq	_diva_os_cancel_soft_isr
	leaq	48(%rbx), %r14
	movq	%r14, %rdi
	callq	_diva_os_cancel_soft_isr
	movq	%r14, %rdi
	callq	_diva_os_remove_soft_isr
	movq	$0, 40(%rbx)
	leaq	36(%rbx), %rdi
	leaq	L_.str(%rip), %r14
	movq	%r14, %rsi
	callq	_diva_os_destroy_spin_lock
	leaq	32(%rbx), %rdi
	movq	%r14, %rsi
	callq	_diva_os_destroy_spin_lock
	movq	24(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.20:
	xorl	%edi, %edi
	callq	_diva_os_free
	movq	$0, 24(%rbx)
LBB0_21:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movl	80(%rbx), %edi
	movq	(%rbx), %rsi
	callq	_diva_free_dma_map
	movq	$0, (%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rm"

	.no_dead_strip	_diva_pri_cleanup_adapter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function diva_pri_cleanup_adapter
_diva_pri_cleanup_adapter:              ; @diva_pri_cleanup_adapter
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #72]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_diva_pri_stop_adapter
LBB0_2:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w1, [x19, #64]
	mov	x0, x19
	bl	_diva_os_remove_irq
LBB0_4:
	str	xzr, [x19, #56]
	ldr	x8, [x19, #96]
	ldr	x9, [x8]
	cbz	x9, LBB0_7
; %bb.5:
	ldr	x9, [x19, #88]
	ldr	x0, [x9]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_divasa_unmap_pci_bar
	ldp	x9, x8, [x19, #88]
	str	xzr, [x8]
	str	xzr, [x9]
	ldr	x8, [x19, #96]
LBB0_7:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_10
; %bb.8:
	ldr	x9, [x19, #88]
	ldr	x0, [x9, #8]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_divasa_unmap_pci_bar
	ldp	x9, x8, [x19, #88]
	str	xzr, [x8, #8]
	str	xzr, [x9, #8]
	ldr	x8, [x19, #96]
LBB0_10:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_13
; %bb.11:
	ldr	x9, [x19, #88]
	ldr	x0, [x9, #16]
	cbz	x0, LBB0_13
; %bb.12:
	bl	_divasa_unmap_pci_bar
	ldp	x9, x8, [x19, #88]
	str	xzr, [x8, #16]
	str	xzr, [x9, #16]
	ldr	x8, [x19, #96]
LBB0_13:
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_16
; %bb.14:
	ldr	x9, [x19, #88]
	ldr	x0, [x9, #24]
	cbz	x0, LBB0_16
; %bb.15:
	bl	_divasa_unmap_pci_bar
	ldp	x9, x8, [x19, #88]
	str	xzr, [x8, #24]
	str	xzr, [x9, #24]
	ldr	x8, [x19, #96]
LBB0_16:
	ldr	x8, [x8, #32]
	cbz	x8, LBB0_19
; %bb.17:
	ldr	x8, [x19, #88]
	ldr	x0, [x8, #32]
	cbz	x0, LBB0_19
; %bb.18:
	bl	_divasa_unmap_pci_bar
	ldp	x9, x8, [x19, #88]
	str	xzr, [x8, #32]
	str	xzr, [x9, #32]
LBB0_19:
	add	x0, x19, #40
	bl	_diva_os_cancel_soft_isr
	add	x20, x19, #48
	mov	x0, x20
	bl	_diva_os_cancel_soft_isr
	mov	x0, x20
	bl	_diva_os_remove_soft_isr
	str	xzr, [x19, #40]
	add	x0, x19, #36
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
	mov	x1, x20
	bl	_diva_os_destroy_spin_lock
	add	x0, x19, #32
	mov	x1, x20
	bl	_diva_os_destroy_spin_lock
	ldr	x1, [x19, #24]
	cbz	x1, LBB0_21
; %bb.20:
	mov	w0, #0
	bl	_diva_os_free
	str	xzr, [x19, #24]
LBB0_21:
	stp	xzr, xzr, [x19, #8]
	ldr	w0, [x19, #80]
	ldr	x1, [x19]
	bl	_diva_free_dma_map
	str	xzr, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rm"

	.no_dead_strip	_diva_pri_cleanup_adapter
.subsections_via_symbols
