	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_diva_get_driver_dbg_mask       ## -- Begin function diva_get_driver_dbg_mask
	.p2align	4, 0x90
_diva_get_driver_dbg_mask:              ## @diva_get_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, %r15d
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.2:
	movq	%rdi, %rbx
	movq	_clients@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rbx, %rax
	jbe	LBB0_7
## %bb.3:
	movq	_dbg_q_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rdx
	leaq	-36(%rbp), %rsi
	callq	_diva_os_enter_spin_lock
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movslq	(%rax), %rax
	movq	%rax, (%r14)
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rcx
	movl	(%rcx), %ecx
	sarl	$8, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, 8(%r14)
	movq	(%rax,%rbx,8), %rcx
	movswq	2(%rcx), %rcx
	movq	%rcx, 16(%r14)
	movq	(%rax,%rbx,8), %rax
	movsbq	3(%rax), %rax
	movq	%rax, 24(%r14)
	movl	$4, %r15d
	jmp	LBB0_6
LBB0_4:
	movl	$-1, %r15d
LBB0_6:
	movq	_dbg_q_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rdx
	leaq	-36(%rbp), %rsi
	callq	_diva_os_leave_spin_lock
LBB0_7:
	movl	%r15d, %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_q_lock,4,2                 ## @dbg_q_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"driver info"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_diva_get_driver_dbg_mask       ; -- Begin function diva_get_driver_dbg_mask
	.p2align	2
_diva_get_driver_dbg_mask:              ; @diva_get_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
	mov	w21, #-1
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_8
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x21, _clients@GOTPAGE
Lloh1:
	ldr	x21, [x21, _clients@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	x0, x20
	b.ls	LBB0_5
; %bb.3:
Lloh2:
	adrp	x0, _dbg_q_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _dbg_q_lock@GOTPAGEOFF]
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
	add	x1, sp, #12
	bl	_diva_os_enter_spin_lock
	ldr	x8, [x21]
	ldr	x8, [x8, x20, lsl #3]
	cbz	x8, LBB0_6
; %bb.4:
	ldrsw	x8, [x8]
	str	x8, [x19]
	ldr	x8, [x21]
	lsl	x9, x20, #3
	ldr	x10, [x8, x9]
	ldr	w10, [x10]
	sbfx	x10, x10, #8, #24
	str	x10, [x19, #8]
	ldr	x10, [x8, x9]
	ldrsh	x10, [x10, #2]
	str	x10, [x19, #16]
	ldr	x8, [x8, x9]
	ldrsb	x8, [x8, #3]
	str	x8, [x19, #24]
	mov	w21, #4
	b	LBB0_7
LBB0_5:
	mov	w21, #-1
	b	LBB0_8
LBB0_6:
	mov	w21, #-1
LBB0_7:
Lloh6:
	adrp	x0, _dbg_q_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _dbg_q_lock@GOTPAGEOFF]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	add	x1, sp, #12
	bl	_diva_os_leave_spin_lock
LBB0_8:
	mov	x0, x21
	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 AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_clients,8,3                    ; @clients
	.comm	_dbg_q_lock,4,2                 ; @dbg_q_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"driver info"

.subsections_via_symbols
