	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function snd_trident_playback_prepare
LCPI0_0:
	.long	1023                            ## 0x3ff
	.long	127                             ## 0x7f
	.long	127                             ## 0x7f
	.long	127                             ## 0x7f
LCPI0_1:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_snd_trident_playback_prepare:          ## @snd_trident_playback_prepare
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	callq	_snd_pcm_substream_chip
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r13), %r15
	movq	8(%r13), %r14
	movq	16(%r14), %rbx
	movq	104(%rbx), %r12
	movq	16(%rax), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%rax), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irq
	movl	12(%r14), %edi
	callq	_snd_trident_convert_rate
	movl	%eax, 88(%rbx)
	movl	(%r14), %esi
	movl	12(%r14), %edi
	callq	_snd_trident_spurious_threshold
	movl	%eax, 84(%rbx)
	movq	96(%rbx), %rax
	leaq	8(%r14), %rcx
	testq	%rax, %rax
	cmovneq	%rax, %rcx
	movl	(%rcx), %eax
	movl	%eax, 80(%rbx)
	movq	$0, 72(%rbx)
	movl	4(%r14), %eax
	decl	%eax
	movl	%eax, (%rbx)
	movq	%r13, %rdi
	callq	_snd_trident_control_mode
	movl	%eax, 64(%rbx)
	movabsq	$4294967299, %rax               ## imm = 0x100000003
	movq	%rax, 4(%rbx)
	shlq	$4, %r15
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	movq	$0, 56(%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movups	(%rax,%r15), %xmm0
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movups	%xmm0, 12(%rbx)
	movl	$0, 28(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_snd_trident_write_voice_regs
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	movl	88(%rbx), %eax
	movl	%eax, 88(%r12)
	movl	84(%rbx), %eax
	movl	%eax, 84(%r12)
	movl	80(%rbx), %eax
	movl	%eax, 80(%r12)
	movq	$0, 72(%r12)
	movl	(%r14), %eax
	leal	3(%rax,%rax), %eax
	movl	%eax, (%r12)
	movl	64(%rbx), %eax
	movl	%eax, 64(%r12)
	movl	$3, 4(%r12)
	movq	(%r15), %rax
	movq	_TRIDENT_DEVICE_ID_SI7018@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setne	%dl
	movl	%edx, 8(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r12)
	movq	$0, 56(%r12)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1023,127,127,127]
	movups	%xmm0, 12(%r12)
	movl	$0, 28(%r12)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_snd_trident_write_voice_regs
	movl	$1, 32(%r12)
	movl	(%r14), %eax
	movl	%eax, 36(%r12)
	addl	%eax, %eax
	decl	%eax
	movl	%eax, (%r12)
LBB0_2:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irq
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRIDENT_DEVICE_ID_SI7018,8,3   ## @TRIDENT_DEVICE_ID_SI7018
	.no_dead_strip	_snd_trident_playback_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function snd_trident_playback_prepare
lCPI0_0:
	.long	3                               ; 0x3
	.long	1                               ; 0x1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
lCPI0_1:
	.long	1023                            ; 0x3ff
	.long	127                             ; 0x7f
	.long	127                             ; 0x7f
	.long	127                             ; 0x7f
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_snd_trident_playback_prepare:          ; @snd_trident_playback_prepare
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x0
	bl	_snd_pcm_substream_chip
	mov	x21, x0
	ldp	x25, x24, [x23]
	ldr	x22, [x24, #16]
	ldr	x20, [x22, #104]
	ldr	x26, [x0, #16]
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock_irq
	ldr	w0, [x24, #12]
	bl	_snd_trident_convert_rate
	str	w0, [x22, #88]
	ldr	w0, [x24, #12]
	ldr	w1, [x24]
	bl	_snd_trident_spurious_threshold
	str	w0, [x22, #84]
	ldr	x8, [x22, #96]
	add	x9, x24, #8
	cmp	x8, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x22, #80]
	str	xzr, [x22, #72]
	ldr	w8, [x24, #4]
	sub	w8, w8, #1
	str	w8, [x22]
	mov	x0, x23
	bl	_snd_trident_control_mode
	str	w0, [x22, #64]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x22, #4]
	stp	xzr, xzr, [x22, #48]
	str	xzr, [x22, #40]
	ldr	q0, [x26, x25, lsl #4]
	stur	q0, [x22, #12]
	str	wzr, [x22, #28]
	mov	x0, x21
	mov	x1, x22
	bl	_snd_trident_write_voice_regs
	cbz	x20, LBB0_2
; %bb.1:
	ldr	w8, [x22, #88]
	str	w8, [x20, #88]
	ldr	d0, [x22, #80]
	str	d0, [x20, #80]
	str	xzr, [x20, #72]
	ldr	w8, [x24]
	lsl	w8, w8, #1
	add	w8, w8, #3
	ldr	w9, [x22, #64]
	str	w9, [x20, #64]
	mov	w9, #3
	stp	w8, w9, [x20]
Lloh2:
	adrp	x8, _TRIDENT_DEVICE_ID_SI7018@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TRIDENT_DEVICE_ID_SI7018@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh4:
	ldr	x8, [x8]
	cmp	x9, x8
	cset	w8, ne
	str	w8, [x20, #8]
	stp	xzr, xzr, [x20, #48]
	str	xzr, [x20, #40]
Lloh5:
	adrp	x8, lCPI0_1@PAGE
Lloh6:
	ldr	q0, [x8, lCPI0_1@PAGEOFF]
	stur	q0, [x20, #12]
	str	wzr, [x20, #28]
	mov	x0, x21
	mov	x1, x20
	bl	_snd_trident_write_voice_regs
	mov	w8, #1
	ldr	w9, [x24]
	stp	w8, w9, [x20, #32]
	lsl	w8, w9, #1
	sub	w8, w8, #1
	str	w8, [x20]
LBB0_2:
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TRIDENT_DEVICE_ID_SI7018,8,3   ; @TRIDENT_DEVICE_ID_SI7018
	.no_dead_strip	_snd_trident_playback_prepare
.subsections_via_symbols
