	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_diva_set_trace_filter          ## -- Begin function diva_set_trace_filter
	.p2align	4, 0x90
_diva_set_trace_filter:                 ## @diva_set_trace_filter
	.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	%rsi, %r15
	movl	%edi, %ebx
	movq	_dbg_adapter_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rdx
	leaq	-60(%rbp), %rsi
	callq	_diva_os_enter_spin_lock
	movq	_dbg_q_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str.1(%rip), %rdx
	leaq	-48(%rbp), %rsi
	callq	_diva_os_enter_spin_lock
	movq	_DIVA_MAX_SELECTIVE_FILTER_LENGTH@GOTPCREL(%rip), %rax
	movl	$-1, %ecx
	cmpl	%ebx, (%rax)
	jl	LBB0_6
## %bb.1:
	movq	_TraceFilter@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	(%r14), %rax
	movslq	%ebx, %rcx
	cmpb	$0, (%rax,%rcx)
	je	LBB0_3
## %bb.2:
	movb	$0, (%rax,%rcx)
	movq	(%r14), %rax
LBB0_3:
	cmpb	$42, (%rax)
	jne	LBB0_5
## %bb.4:
	movb	$0, (%rax)
LBB0_5:
	movl	%ebx, %ecx
LBB0_6:
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movq	_TraceFilterIdent@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	movq	_TraceFilterChannel@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	movq	_TraceFilter@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movb	(%rax), %al
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	movq	_clients@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	cmpl	$2, %eax
	jl	LBB0_18
## %bb.7:
	movl	$1, %r14d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r14
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r14
	jge	LBB0_18
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movq	_clients@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	(%r14,%r14,4), %rsi
	movq	32(%rdi,%rsi,8), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rdi,%rsi,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$0, 16(%rdi,%rsi,8)
	je	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, %edx
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$0, (%rdi,%rsi,8)
	jg	LBB0_14
	jmp	LBB0_17
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	movq	_DIVA_MGT_DBG_IFC_BCHANNEL@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	setne	%bl
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	_DIVA_MGT_DBG_IFC_AUDIO@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	setne	%dl
	cmpl	$0, (%rdi,%rsi,8)
	jle	LBB0_17
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movzbl	%dl, %r12d
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rcx), %edi
	movl	%ebx, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	*24(%rcx)
	movq	_clients@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	leaq	(,%r14,8), %rcx
	leaq	(%rcx,%rcx,4), %r15
	movq	8(%rax,%r15), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	*16(%rax)
	movq	(%r13), %rdi
	cmpl	(%rdi,%r15), %ebx
	jge	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rdi,%rax,8), %rcx
	incl	%ebx
	jmp	LBB0_15
LBB0_18:
	movq	_clients@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	cmpl	$2, %eax
	jl	LBB0_26
## %bb.19:
	movl	$1, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	addq	$40, %r15
	cmpq	%rax, %rbx
	jge	LBB0_26
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	_clients@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	cmpq	$0, 72(%rdi,%r15)
	je	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpq	$0, 48(%rdi,%r15)
	je	LBB0_25
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpq	$0, 56(%rdi,%r15)
	je	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpq	$0, 64(%rdi,%r15)
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	_dbg_q_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	leaq	-48(%rbp), %rsi
	leaq	L_.str.1(%rip), %rdx
	callq	_diva_os_leave_spin_lock
	movq	_clients@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	$0, 64(%rax,%r15)
	movq	48(%rax,%r15), %rcx
	movq	56(%rax,%r15), %r13
	movl	(%rcx), %edi
	callq	*8(%rcx)
	movq	%rax, %rdi
	callq	*%r13
	movq	%r14, %rdi
	leaq	-48(%rbp), %rsi
	leaq	L_.str.1(%rip), %rdx
	callq	_diva_os_enter_spin_lock
	movq	(%r12), %rdi
	jmp	LBB0_25
LBB0_26:
	movq	_dbg_q_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str.1(%rip), %rdx
	leaq	-48(%rbp), %rsi
	callq	_diva_os_leave_spin_lock
	movq	_dbg_adapter_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rdx
	leaq	-60(%rbp), %rsi
	callq	_diva_os_leave_spin_lock
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
L_.str.1:                               ## @.str.1
	.asciz	"write_filter"

	.comm	_DIVA_MAX_SELECTIVE_FILTER_LENGTH,4,2 ## @DIVA_MAX_SELECTIVE_FILTER_LENGTH
	.comm	_TraceFilter,8,3                ## @TraceFilter
	.comm	_TraceFilterIdent,4,2           ## @TraceFilterIdent
	.comm	_TraceFilterChannel,4,2         ## @TraceFilterChannel
	.comm	_clients,8,3                    ## @clients
	.comm	_DIVA_MGT_DBG_IFC_BCHANNEL,4,2  ## @DIVA_MGT_DBG_IFC_BCHANNEL
	.comm	_DIVA_MGT_DBG_IFC_AUDIO,4,2     ## @DIVA_MGT_DBG_IFC_AUDIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_diva_set_trace_filter          ; -- Begin function diva_set_trace_filter
	.p2align	2
_diva_set_trace_filter:                 ; @diva_set_trace_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x0, _dbg_adapter_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _dbg_adapter_lock@GOTPAGEOFF]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	add	x1, sp, #8
	bl	_diva_os_enter_spin_lock
Lloh4:
	adrp	x0, _dbg_q_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _dbg_q_lock@GOTPAGEOFF]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x1, sp, #12
	bl	_diva_os_enter_spin_lock
Lloh8:
	adrp	x8, _DIVA_MAX_SELECTIVE_FILTER_LENGTH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DIVA_MAX_SELECTIVE_FILTER_LENGTH@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	w22, #-1
Lloh11:
	adrp	x23, _TraceFilter@GOTPAGE
Lloh12:
	ldr	x23, [x23, _TraceFilter@GOTPAGEOFF]
	mov	w19, #-1
	cmp	w8, w20
	b.lt	LBB0_6
; %bb.1:
	ldr	x0, [x23]
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	ldr	x8, [x23]
	sxtw	x9, w20
	ldrb	w10, [x8, x9]
	cbz	w10, LBB0_3
; %bb.2:
	strb	wzr, [x8, x9]
	ldr	x8, [x23]
LBB0_3:
	ldrb	w9, [x8]
	cmp	w9, #42
	b.ne	LBB0_5
; %bb.4:
	strb	wzr, [x8]
LBB0_5:
	mov	x19, x20
LBB0_6:
Lloh13:
	adrp	x8, _TraceFilterIdent@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TraceFilterIdent@GOTPAGEOFF]
Lloh15:
	str	w22, [x8]
Lloh16:
	adrp	x8, _TraceFilterChannel@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TraceFilterChannel@GOTPAGEOFF]
Lloh18:
	str	w22, [x8]
	ldr	x8, [x23]
	ldrb	w24, [x8]
Lloh19:
	adrp	x23, _clients@GOTPAGE
Lloh20:
	ldr	x23, [x23, _clients@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w0, #2
	b.lt	LBB0_19
; %bb.7:
	mov	w25, #1
	mov	w26, #40
Lloh21:
	adrp	x28, _DIVA_MGT_DBG_IFC_AUDIO@GOTPAGE
Lloh22:
	ldr	x28, [x28, _DIVA_MGT_DBG_IFC_AUDIO@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x25, x25, #1
	bl	_ARRAY_SIZE
	cmp	x25, w0, sxtw
	b.ge	LBB0_19
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	ldr	x0, [x23]
	madd	x8, x25, x26, x0
	ldr	x9, [x8, #32]
	cbz	x9, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	madd	x8, x25, x26, x0
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	madd	x10, x25, x26, x0
	ldr	x10, [x10, #16]
	cbz	x10, LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	cbz	w24, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w20, #0
	mov	w21, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _DIVA_MGT_DBG_IFC_BCHANNEL@GOTPAGE
Lloh24:
	ldr	x10, [x10, _DIVA_MGT_DBG_IFC_BCHANNEL@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	tst	w10, w9
	cset	w20, ne
	ldr	w10, [x28]
	tst	w10, w9
	cset	w21, ne
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	mul	x9, x25, x26
	ldr	w9, [x0, x9]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w22, #1
LBB0_17:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x8, #24]
	ldr	w0, [x8]
	mov	x1, x22
	mov	x2, x20
	blr	x9
	ldr	x8, [x23]
	add	x9, x25, x25, lsl #2
	lsl	x27, x9, #3
	add	x8, x8, x27
	ldr	x8, [x8, #8]
	ldr	x9, [x8, #16]
	ldr	w0, [x8]
	mov	x1, x22
	mov	x2, x21
	blr	x9
	ldr	x0, [x23]
	ldr	w8, [x0, x27]
	cmp	w22, w8
	b.ge	LBB0_8
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	madd	x8, x25, x26, x0
	ldr	x8, [x8, #8]
	add	w22, w22, #1
	b	LBB0_17
LBB0_19:
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w0, #2
	b.lt	LBB0_27
; %bb.20:
	mov	x22, #0
	mov	w24, #1
Lloh26:
	adrp	x20, _dbg_q_lock@GOTPAGE
Lloh27:
	ldr	x20, [x20, _dbg_q_lock@GOTPAGEOFF]
Lloh28:
	adrp	x21, l_.str.1@PAGE
Lloh29:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x24, x24, #1
	bl	_ARRAY_SIZE
	add	x22, x22, #40
	cmp	x24, w0, sxtw
	b.ge	LBB0_27
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	add	x8, x0, x22
	ldr	x9, [x8, #72]
	cbz	x9, LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x8, [x8, #48]
	cbz	x8, LBB0_21
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	add	x8, x0, x22
	ldr	x9, [x8, #56]
	cbz	x9, LBB0_21
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x8, [x8, #64]
	cbz	x8, LBB0_21
; %bb.26:                               ;   in Loop: Header=BB0_22 Depth=1
	add	x1, sp, #12
	mov	x0, x20
	mov	x2, x21
	bl	_diva_os_leave_spin_lock
	ldr	x8, [x23]
	add	x8, x8, x22
	str	xzr, [x8, #64]
	ldp	x8, x25, [x8, #48]
	ldr	x9, [x8, #8]
	ldr	w0, [x8]
	blr	x9
	blr	x25
	add	x1, sp, #12
	mov	x0, x20
	mov	x2, x21
	bl	_diva_os_enter_spin_lock
	ldr	x0, [x23]
	b	LBB0_21
LBB0_27:
Lloh30:
	adrp	x0, _dbg_q_lock@GOTPAGE
Lloh31:
	ldr	x0, [x0, _dbg_q_lock@GOTPAGEOFF]
Lloh32:
	adrp	x2, l_.str.1@PAGE
Lloh33:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x1, sp, #12
	bl	_diva_os_leave_spin_lock
Lloh34:
	adrp	x0, _dbg_adapter_lock@GOTPAGE
Lloh35:
	ldr	x0, [x0, _dbg_adapter_lock@GOTPAGEOFF]
Lloh36:
	adrp	x2, l_.str@PAGE
Lloh37:
	add	x2, x2, l_.str@PAGEOFF
	add	x1, sp, #8
	bl	_diva_os_leave_spin_lock
	mov	x0, x19
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.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
l_.str.1:                               ; @.str.1
	.asciz	"write_filter"

	.comm	_DIVA_MAX_SELECTIVE_FILTER_LENGTH,4,2 ; @DIVA_MAX_SELECTIVE_FILTER_LENGTH
	.comm	_TraceFilter,8,3                ; @TraceFilter
	.comm	_TraceFilterIdent,4,2           ; @TraceFilterIdent
	.comm	_TraceFilterChannel,4,2         ; @TraceFilterChannel
	.comm	_clients,8,3                    ; @clients
	.comm	_DIVA_MGT_DBG_IFC_BCHANNEL,4,2  ; @DIVA_MGT_DBG_IFC_BCHANNEL
	.comm	_DIVA_MGT_DBG_IFC_AUDIO,4,2     ; @DIVA_MGT_DBG_IFC_AUDIO
.subsections_via_symbols
