	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_divasa_xdi_driver_unload       ## -- Begin function divasa_xdi_driver_unload
	.p2align	4, 0x90
_divasa_xdi_driver_unload:              ## @divasa_xdi_driver_unload
	.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
	xorl	%eax, %eax
	callq	_get_and_remove_from_queue
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	_IoAdapters@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_diva_os_free
	xorl	%eax, %eax
	callq	_get_and_remove_from_queue
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	*%rax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rcx
	movq	$0, -8(%rcx,%rax,8)
	movq	%rbx, %rdi
	callq	_remove_adapter_proc
	jmp	LBB0_6
LBB0_7:
	movq	_adapter_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_diva_os_destroy_spin_lock      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IoAdapters,8,3                 ## @IoAdapters
	.comm	_adapter_lock,4,2               ## @adapter_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adapter"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_divasa_xdi_driver_unload       ; -- Begin function divasa_xdi_driver_unload
	.p2align	2
_divasa_xdi_driver_unload:              ; @divasa_xdi_driver_unload
	.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
	bl	_get_and_remove_from_queue
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x20, _IoAdapters@GOTPAGE
Lloh1:
	ldr	x20, [x20, _IoAdapters@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #0
	mov	x1, x19
	bl	_diva_os_free
	bl	_get_and_remove_from_queue
	mov	x19, x0
	cbz	x0, LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	blr	x8
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x20]
	sub	w8, w8, #1
	str	xzr, [x9, w8, sxtw #3]
	mov	x0, x19
	bl	_remove_adapter_proc
	b	LBB0_2
LBB0_7:
Lloh2:
	adrp	x0, _adapter_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _adapter_lock@GOTPAGEOFF]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_diva_os_destroy_spin_lock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_IoAdapters,8,3                 ; @IoAdapters
	.comm	_adapter_lock,4,2               ; @adapter_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adapter"

.subsections_via_symbols
