	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function diva_4bri_cleanup_slave_adapters
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_diva_4bri_cleanup_slave_adapters:      ## @diva_4bri_cleanup_slave_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -80(%rbp)
	movq	56(%rdi), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, -72(%rbp)
	movq	16(%rax), %rax
	movq	%rax, -56(%rbp)
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	movq	%rdi, %r15
	movl	$1, %r12d
	leaq	L_.str(%rip), %r14
	movq	%rdi, %rbx
	testq	%rbx, %rbx
	je	LBB0_6
	.p2align	4, 0x90
LBB0_3:
	leaq	52(%rbx), %rdi
	movq	%r14, %rsi
	callq	_diva_os_destroy_spin_lock
	leaq	48(%rbx), %rdi
	movq	%r14, %rsi
	callq	_diva_os_destroy_spin_lock
	leaq	40(%rbx), %r13
	movq	%r13, %rdi
	callq	_diva_os_cancel_soft_isr
	leaq	32(%rbx), %rdi
	callq	_diva_os_cancel_soft_isr
	movq	%r13, %rdi
	callq	_diva_os_remove_soft_isr
	movq	$0, 32(%rbx)
	movq	24(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	callq	_diva_os_free
LBB0_5:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	$0, 24(%rbx)
	movl	(%r15), %eax
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%eax, %rcx
	cmpq	%rcx, %r12
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-80(%rbp,%r12,8), %rbx
	incq	%r12
	testq	%rbx, %rbx
	jne	LBB0_3
	jmp	LBB0_6
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unload"

	.no_dead_strip	_diva_4bri_cleanup_slave_adapters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function diva_4bri_cleanup_slave_adapters
_diva_4bri_cleanup_slave_adapters:      ; @diva_4bri_cleanup_slave_adapters
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	str	x0, [sp, #8]
	ldr	x8, [x0, #56]
	ldr	q0, [x8]
	stur	q0, [sp, #16]
	ldr	x8, [x8, #16]
	str	x8, [sp, #32]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x0
	mov	w22, #1
	add	x23, sp, #8
	mov	x24, x0
Lloh3:
	adrp	x20, l_.str@PAGE
Lloh4:
	add	x20, x20, l_.str@PAGEOFF
	cbz	x24, LBB0_5
LBB0_2:
	add	x0, x24, #52
	mov	x1, x20
	bl	_diva_os_destroy_spin_lock
	add	x0, x24, #48
	mov	x1, x20
	bl	_diva_os_destroy_spin_lock
	add	x21, x24, #40
	mov	x0, x21
	bl	_diva_os_cancel_soft_isr
	add	x0, x24, #32
	bl	_diva_os_cancel_soft_isr
	mov	x0, x21
	bl	_diva_os_remove_soft_isr
	str	xzr, [x24, #32]
	ldr	x1, [x24, #24]
	cbz	x1, LBB0_4
; %bb.3:
	mov	w0, #0
	bl	_diva_os_free
LBB0_4:
	stp	xzr, xzr, [x24, #8]
	str	xzr, [x24, #24]
	ldr	w8, [x19]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x22, w8, sxtw
	b.ge	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x24, [x23, x22, lsl #3]
	add	x22, x22, #1
	cbnz	x24, LBB0_2
	b	LBB0_5
LBB0_7:
	ldr	x8, [sp, #40]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	w0, #0
	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
	add	sp, sp, #112
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unload"

	.no_dead_strip	_diva_4bri_cleanup_slave_adapters
.subsections_via_symbols
