	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_diva_maint_finit               ## -- Begin function diva_maint_finit
	.p2align	4, 0x90
_diva_maint_finit:                      ## @diva_maint_finit
	.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	_dbg_base@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_dbg_queue@GOTPCREL(%rip), %rcx
	movq	$0, (%rcx)
	movq	$0, (%rax)
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	_dbg_q_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %r14
	movq	%r14, %rsi
	callq	_diva_os_destroy_spin_lock
	movq	_dbg_adapter_lock@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_diva_os_destroy_spin_lock
LBB0_2:
	movq	_external_dbg_queue@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	$0, (%rax)
	movq	_clients@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	$2, %eax
	jl	LBB0_7
## %bb.3:
	movl	$1, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movq	(%rdi,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edi, %edi
	callq	_diva_os_free
	movq	(%r12), %rdi
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	testq	%r14, %r14
	cmoveq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dbg_base,8,3                   ## @dbg_base
	.comm	_dbg_queue,8,3                  ## @dbg_queue
	.comm	_dbg_q_lock,4,2                 ## @dbg_q_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dbg_finit"

	.comm	_dbg_adapter_lock,4,2           ## @dbg_adapter_lock
	.comm	_external_dbg_queue,8,3         ## @external_dbg_queue
	.comm	_clients,8,3                    ## @clients
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_diva_maint_finit               ; -- Begin function diva_maint_finit
	.p2align	2
_diva_maint_finit:                      ; @diva_maint_finit
	.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
Lloh0:
	adrp	x8, _dbg_base@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dbg_base@GOTPAGEOFF]
	ldr	x20, [x8]
Lloh2:
	adrp	x9, _dbg_queue@GOTPAGE
Lloh3:
	ldr	x9, [x9, _dbg_queue@GOTPAGEOFF]
Lloh4:
	str	xzr, [x9]
	str	xzr, [x8]
	cbz	x20, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, _dbg_q_lock@GOTPAGE
Lloh6:
	ldr	x0, [x0, _dbg_q_lock@GOTPAGEOFF]
Lloh7:
	adrp	x19, l_.str@PAGE
Lloh8:
	add	x19, x19, l_.str@PAGEOFF
	mov	x1, x19
	bl	_diva_os_destroy_spin_lock
Lloh9:
	adrp	x0, _dbg_adapter_lock@GOTPAGE
Lloh10:
	ldr	x0, [x0, _dbg_adapter_lock@GOTPAGEOFF]
	mov	x1, x19
	bl	_diva_os_destroy_spin_lock
LBB0_2:
Lloh11:
	adrp	x8, _external_dbg_queue@GOTPAGE
Lloh12:
	ldr	x8, [x8, _external_dbg_queue@GOTPAGEOFF]
	ldr	x19, [x8]
	str	xzr, [x8]
Lloh13:
	adrp	x21, _clients@GOTPAGE
Lloh14:
	ldr	x21, [x21, _clients@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #2
	b.lt	LBB0_7
; %bb.3:
	mov	w22, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	ldr	x1, [x0, x22, lsl #3]
	cbz	x1, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #0
	bl	_diva_os_free
	ldr	x0, [x21]
	b	LBB0_4
LBB0_7:
	cmp	x19, #0
	csel	x0, x20, xzr, eq
	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 AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_dbg_base,8,3                   ; @dbg_base
	.comm	_dbg_queue,8,3                  ; @dbg_queue
	.comm	_dbg_q_lock,4,2                 ; @dbg_q_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dbg_finit"

	.comm	_dbg_adapter_lock,4,2           ; @dbg_adapter_lock
	.comm	_external_dbg_queue,8,3         ; @external_dbg_queue
	.comm	_clients,8,3                    ; @clients
.subsections_via_symbols
