	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_trident_clear_voices
_snd_trident_clear_voices:              ## @snd_trident_clear_voices
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	$0, -32(%rbp)
	movl	%edx, %eax
	orl	%esi, %eax
	xorl	%edi, %edi
	cmpw	$64, %ax
	setae	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_1
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpw	%r15w, %bx
	ja	LBB0_8
## %bb.2:
	movzwl	%bx, %eax
	movl	%r15d, %edx
	incl	%edx
	movl	%edx, %ecx
	subl	%eax, %ecx
	testb	$1, %cl
	je	LBB0_4
## %bb.3:
	movl	$1, %esi
	movl	%eax, %ecx
	shll	%cl, %esi
	movl	%eax, %ecx
	shrl	$5, %ecx
	orl	%esi, -32(%rbp,%rcx,4)
	incl	%eax
LBB0_4:
	cmpw	%bx, %r15w
	je	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %esi
	movl	%eax, %ecx
	shll	%cl, %esi
	movl	%eax, %ecx
	shrl	$5, %ecx
	orl	%esi, -32(%rbp,%rcx,4)
	leal	1(%rax), %ecx
	movl	$1, %esi
	shll	%cl, %esi
	shrl	$5, %ecx
	orl	%esi, -32(%rbp,%rcx,4)
	addl	$2, %eax
	cmpl	%eax, %edx
	jne	LBB0_5
LBB0_6:
	movl	-32(%rbp), %ebx
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.7:
	movq	_T4D_STOP_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_TRID_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outl
	movq	_T4D_AINTEN_A@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_TRID_REG
	movl	%eax, %edi
	callq	_inl
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_TRID_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outl
LBB0_8:
	movl	-28(%rbp), %ebx
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.10:
	movq	_T4D_STOP_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_TRID_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_outl
	movq	_T4D_AINTEN_B@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_TRID_REG
	movl	%eax, %edi
	callq	_inl
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_TRID_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outl                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_T4D_STOP_A,4,2                 ## @T4D_STOP_A
	.comm	_T4D_AINTEN_A,4,2               ## @T4D_AINTEN_A
	.comm	_T4D_STOP_B,4,2                 ## @T4D_STOP_B
	.comm	_T4D_AINTEN_B,4,2               ## @T4D_AINTEN_B
	.no_dead_strip	_snd_trident_clear_voices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_trident_clear_voices
_snd_trident_clear_voices:              ; @snd_trident_clear_voices
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	orr	w8, w2, w1
	cmp	w8, #63
	cset	w0, hi
	bl	_snd_BUG_ON
	cbz	x0, LBB0_2
LBB0_1:
	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
LBB0_2:
	cmp	w20, w21
	b.hi	LBB0_7
; %bb.3:
	add	w8, w21, #1
	mov	w9, #1
	add	x10, sp, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w11, w20, #5
	lsl	x11, x11, #2
	ldr	w12, [x10, x11]
	lsl	w13, w9, w20
	orr	w12, w12, w13
	str	w12, [x10, x11]
	add	w20, w20, #1
	cmp	w8, w20
	b.ne	LBB0_4
; %bb.5:
	ldr	w20, [sp, #8]
	cbz	w20, LBB0_7
; %bb.6:
Lloh0:
	adrp	x8, _T4D_STOP_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _T4D_STOP_A@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_TRID_REG
	mov	x1, x0
	mov	x0, x20
	bl	_outl
Lloh3:
	adrp	x21, _T4D_AINTEN_A@GOTPAGE
Lloh4:
	ldr	x21, [x21, _T4D_AINTEN_A@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_TRID_REG
	bl	_inl
	bic	w20, w0, w20
	ldr	w1, [x21]
	mov	x0, x19
	bl	_TRID_REG
	mov	x1, x0
	mov	x0, x20
	bl	_outl
LBB0_7:
	ldr	w20, [sp, #12]
	cbz	w20, LBB0_1
; %bb.8:
Lloh5:
	adrp	x8, _T4D_STOP_B@GOTPAGE
Lloh6:
	ldr	x8, [x8, _T4D_STOP_B@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_TRID_REG
	mov	x1, x0
	mov	x0, x20
	bl	_outl
Lloh8:
	adrp	x21, _T4D_AINTEN_B@GOTPAGE
Lloh9:
	ldr	x21, [x21, _T4D_AINTEN_B@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_TRID_REG
	bl	_inl
	bic	w20, w0, w20
	ldr	w1, [x21]
	mov	x0, x19
	bl	_TRID_REG
	mov	x1, x0
	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
	b	_outl
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_T4D_STOP_A,4,2                 ; @T4D_STOP_A
	.comm	_T4D_AINTEN_A,4,2               ; @T4D_AINTEN_A
	.comm	_T4D_STOP_B,4,2                 ; @T4D_STOP_B
	.comm	_T4D_AINTEN_B,4,2               ; @T4D_AINTEN_B
	.no_dead_strip	_snd_trident_clear_voices
.subsections_via_symbols
