	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_diva_mnt_shutdown_xdi_adapters ## -- Begin function diva_mnt_shutdown_xdi_adapters
	.p2align	4, 0x90
_diva_mnt_shutdown_xdi_adapters:        ## @diva_mnt_shutdown_xdi_adapters
	.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	_clients@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	$2, %eax
	jl	LBB0_23
## %bb.1:
	xorl	%r13d, %r13d
	movl	$1, %r15d
	movq	_dbg_adapter_lock@GOTPCREL(%rip), %rbx
	movq	_dbg_q_lock@GOTPCREL(%rip), %r14
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movq	%r14, %r12
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$48, %r13
	cmpq	%rax, %r15
	movq	_dbg_q_lock@GOTPCREL(%rip), %r14
	jge	LBB0_23
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	leaq	-60(%rbp), %rsi
	leaq	L_.str(%rip), %rbx
	movq	%rbx, %rdx
	callq	_diva_os_enter_spin_lock
	movq	%r14, %rdi
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_diva_os_enter_spin_lock
	movq	(%r12), %rax
	cmpq	$0, 80(%rax,%r13)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	64(%rax,%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 56(%rax,%r13)
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	*(%rdi)
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movq	64(%rax,%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rcx), %edi
	callq	*24(%rcx)
	movq	(%r12), %rax
	movq	$0, 64(%rax,%r13)
	movq	(%r12), %rax
	movq	88(%rax,%r13), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	$0, 88(%rax,%r13)
	movq	(%r12), %rax
	jmp	LBB0_11
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	leaq	-64(%rbp), %rsi
	leaq	L_.str(%rip), %rdx
	callq	_diva_os_leave_spin_lock
	movq	%r12, %r14
	movq	(%r12), %rax
	cmpq	$0, 80(%rax,%r13)
	je	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	64(%rax,%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	56(%rax,%r13), %r12
	testq	%r12, %r12
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 72(%rax,%r13)
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 72(%rax,%r13)
	movl	8(%rcx), %edi
	callq	*16(%rcx)
	movq	%rax, %rdi
	callq	*%r12
	movq	(%r14), %rax
	movl	48(%rax,%r13), %esi
	testl	%esi, %esi
	js	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	56(%rax,%r13), %rdi
	callq	_diva_free_dma_descriptor
	movq	(%r14), %rax
	movl	$-1, 48(%rax,%r13)
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_dbg_adapter_lock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	leaq	-60(%rbp), %rsi
	leaq	L_.str(%rip), %rdx
	callq	_diva_os_leave_spin_lock
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	callq	_diva_os_free
	jmp	LBB0_22
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 80(%rax,%r13)
	movq	(%r12), %rax
	movq	$0, 72(%rax,%r13)
	movl	48(%rax,%r13), %esi
	testl	%esi, %esi
	js	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	56(%rax,%r13), %rdi
	callq	_diva_free_dma_descriptor
	movq	(%r12), %rax
	movl	$-1, 48(%rax,%r13)
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 56(%rax,%r13)
	jmp	LBB0_14
LBB0_23:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_clients,8,3                    ## @clients
	.comm	_dbg_adapter_lock,4,2           ## @dbg_adapter_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unload"

	.comm	_dbg_q_lock,4,2                 ## @dbg_q_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_diva_mnt_shutdown_xdi_adapters ; -- Begin function diva_mnt_shutdown_xdi_adapters
	.p2align	2
_diva_mnt_shutdown_xdi_adapters:        ; @diva_mnt_shutdown_xdi_adapters
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x24, _clients@GOTPAGE
Lloh1:
	ldr	x24, [x24, _clients@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	w0, #2
	b.lt	LBB0_23
; %bb.1:
	mov	w19, #0
	mov	w25, #1
Lloh2:
	adrp	x20, _dbg_adapter_lock@GOTPAGE
Lloh3:
	ldr	x20, [x20, _dbg_adapter_lock@GOTPAGEOFF]
	mov	w26, #48
Lloh4:
	adrp	x21, _dbg_q_lock@GOTPAGE
Lloh5:
	ldr	x21, [x21, _dbg_q_lock@GOTPAGEOFF]
	mov	w27, #-1
Lloh6:
	adrp	x22, l_.str@PAGE
Lloh7:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	add	x26, x26, #48
	cmp	x25, w0, sxtw
	b.ge	LBB0_24
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x22
	bl	_diva_os_enter_spin_lock
	add	x1, sp, #12
	mov	x0, x21
	mov	x2, x22
	bl	_diva_os_enter_spin_lock
	ldr	x8, [x24]
	add	x9, x8, x26
	ldr	x10, [x9, #32]
	cbz	x10, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x9, #16]
	cbz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, x26
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x0]
	blr	x8
	cmp	w0, #1
	b.ne	LBB0_18
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24]
	add	x9, x8, x26
	ldr	x9, [x9, #16]
	cbz	x9, LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x9, #24]
	ldr	w0, [x9, #8]
	blr	x8
	ldr	x8, [x24]
	add	x8, x8, x26
	str	xzr, [x8, #16]
	ldr	x8, [x24]
	add	x8, x8, x26
	ldr	x23, [x8, #40]
	str	xzr, [x8, #40]
	ldr	x8, [x24]
	b	LBB0_20
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, #0
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #12
	mov	x0, x21
	mov	x2, x22
	bl	_diva_os_leave_spin_lock
	ldr	x9, [x24]
	add	x8, x9, x26
	ldr	x10, [x8, #32]
	cbz	x10, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, x26
	ldr	x28, [x9, #8]
	cbz	x28, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x9, #24]
	cbz	x10, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x9, #24]
	ldr	x9, [x8, #16]
	ldr	w0, [x8, #8]
	blr	x9
	blr	x28
	ldr	x8, [x24]
	ldr	w1, [x8, x26]
	tbnz	w1, #31, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, x26
	ldr	x0, [x8, #8]
	bl	_diva_free_dma_descriptor
	ldr	x8, [x24]
	str	w27, [x8, x26]
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x22
	bl	_diva_os_leave_spin_lock
	cbz	x23, LBB0_2
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #0
	mov	x1, x23
	bl	_diva_os_free
	b	LBB0_2
LBB0_18:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, #0
	mov	w19, #-1
	b	LBB0_10
LBB0_19:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, #0
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, x26
	str	xzr, [x8, #32]
	ldr	x8, [x24]
	add	x9, x8, x26
	str	xzr, [x9, #24]
	ldr	w1, [x9]
	tbnz	w1, #31, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x9, #8]
	bl	_diva_free_dma_descriptor
	ldr	x8, [x24]
	str	w27, [x8, x26]
LBB0_22:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, x26
	str	xzr, [x8, #8]
	b	LBB0_10
LBB0_23:
	mov	w19, #0
LBB0_24:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_clients,8,3                    ; @clients
	.comm	_dbg_adapter_lock,4,2           ; @dbg_adapter_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unload"

	.comm	_dbg_q_lock,4,2                 ; @dbg_q_lock
.subsections_via_symbols
