	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_diva_set_driver_dbg_mask       ## -- Begin function diva_set_driver_dbg_mask
	.p2align	4, 0x90
_diva_set_driver_dbg_mask:              ## @diva_set_driver_dbg_mask
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_clients@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rbx, %rax
	jbe	LBB0_8
## %bb.2:
	movq	_dbg_adapter_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %r14
	leaq	-36(%rbp), %rsi
	movq	%r14, %rdx
	callq	_diva_os_enter_spin_lock
	movq	_dbg_q_lock@GOTPCREL(%rip), %rdi
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdx
	callq	_diva_os_enter_spin_lock
	movq	(%r12), %rax
	leaq	(%rbx,%rbx,4), %rbx
	movq	32(%rax,%rbx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:
	movq	(%rcx), %rsi
	andl	$2147483647, %r15d              ## imm = 0x7FFFFFFF
	movq	%r15, (%rcx)
	leaq	(%rax,%rbx,8), %rdi
	orl	4(%rax,%rbx,8), %r15d
	movl	%r15d, (%rax,%rbx,8)
	callq	_diva_change_management_debug_mask
	movl	$4, %r14d
	jmp	LBB0_5
LBB0_3:
	movl	$-1, %r14d
LBB0_5:
	movq	_dbg_q_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rdx
	leaq	-40(%rbp), %rsi
	callq	_diva_os_leave_spin_lock
	movq	(%r12), %rax
	cmpq	$0, 24(%rax,%rbx,8)
	je	LBB0_7
## %bb.6:
	leaq	(%rax,%rbx,8), %rcx
	addq	$24, %rcx
	movq	$0, (%rcx)
	movq	8(%rax,%rbx,8), %rcx
	movq	16(%rax,%rbx,8), %rbx
	movl	(%rcx), %edi
	callq	*8(%rcx)
	movq	%rax, %rdi
	callq	*%rbx
LBB0_7:
	movq	_dbg_adapter_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rdx
	leaq	-36(%rbp), %rsi
	callq	_diva_os_leave_spin_lock
LBB0_8:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	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	"dbg mask"

	.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_set_driver_dbg_mask       ; -- Begin function diva_set_driver_dbg_mask
	.p2align	2
_diva_set_driver_dbg_mask:              ; @diva_set_driver_dbg_mask
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _clients@GOTPAGE
Lloh1:
	ldr	x22, [x22, _clients@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	x0, x19
	b.ls	LBB0_4
; %bb.2:
Lloh2:
	adrp	x0, _dbg_adapter_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _dbg_adapter_lock@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
	add	x1, sp, #8
	mov	x2, x21
	bl	_diva_os_enter_spin_lock
Lloh6:
	adrp	x0, _dbg_q_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _dbg_q_lock@GOTPAGEOFF]
	add	x1, sp, #12
	mov	x2, x21
	bl	_diva_os_enter_spin_lock
	ldr	x8, [x22]
	mov	w9, #40
	madd	x9, x19, x9, x8
	ldr	x9, [x9, #32]
	cbz	x9, LBB0_5
; %bb.3:
	ldr	x1, [x9]
	and	x10, x20, #0x7fffffff
	str	x10, [x9]
	mov	w9, #40
	madd	x0, x19, x9, x8
	ldr	w8, [x0, #4]
	orr	w8, w8, w10
	str	w8, [x0]
	bl	_diva_change_management_debug_mask
	mov	w20, #4
	b	LBB0_6
LBB0_4:
	mov	w20, #-1
	b	LBB0_9
LBB0_5:
	mov	w20, #-1
LBB0_6:
Lloh8:
	adrp	x0, _dbg_q_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _dbg_q_lock@GOTPAGEOFF]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	add	x1, sp, #12
	bl	_diva_os_leave_spin_lock
	ldr	x8, [x22]
	mov	w9, #40
	madd	x9, x19, x9, x8
	ldr	x10, [x9, #24]!
	cbz	x10, LBB0_8
; %bb.7:
	str	xzr, [x9]
	mov	w9, #40
	madd	x8, x19, x9, x8
	ldp	x8, x19, [x8, #8]
	ldr	x9, [x8, #8]
	ldr	w0, [x8]
	blr	x9
	blr	x19
LBB0_8:
Lloh12:
	adrp	x0, _dbg_adapter_lock@GOTPAGE
Lloh13:
	ldr	x0, [x0, _dbg_adapter_lock@GOTPAGEOFF]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	add	x1, sp, #8
	bl	_diva_os_leave_spin_lock
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.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	"dbg mask"

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