	.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_si7018_capture_prepare
LCPI0_0:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1
LCPI0_1:
	.long	3                               ## 0x3
	.long	127                             ## 0x7f
	.long	127                             ## 0x7f
	.long	0                               ## 0x0
LCPI0_2:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_snd_trident_si7018_capture_prepare:    ## @snd_trident_si7018_capture_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	(%r12), %r13
	movq	16(%r13), %rbx
	movq	96(%rbx), %r15
	movq	%rax, %rdi
	callq	_spin_lock_irq
	movl	12(%r13), %eax
	movl	%eax, 80(%rbx)
	movl	8(%r13), %edi
	callq	_snd_trident_convert_adc_rate
	movl	%eax, 88(%rbx)
	movl	(%r13), %esi
	movl	8(%r13), %edi
	callq	_snd_trident_spurious_threshold
	movl	%eax, 84(%rbx)
	movq	$0, 72(%rbx)
	movl	4(%r13), %eax
	decl	%eax
	movl	%eax, (%rbx)
	movq	%r12, %rdi
	callq	_snd_trident_control_mode
	movl	%eax, 64(%rbx)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,0,0,1]
	movups	%xmm0, 4(%rbx)
	movq	_T4D_DEFAULT_PCM_PAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movabsq	$152282360446976, %rax          ## imm = 0x8A8000000000
	movq	%rax, 24(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	movq	$0, 56(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_snd_trident_write_voice_regs
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movl	8(%r13), %edi
	callq	_snd_trident_convert_rate
	movl	%eax, 88(%r15)
	movl	84(%rbx), %eax
	movl	%eax, 84(%r15)
	movl	80(%rbx), %eax
	movl	%eax, 80(%r15)
	movq	$0, 72(%r15)
	movl	(%r13), %eax
	leal	19(%rax,%rax), %eax
	movl	%eax, (%r15)
	movl	64(%rbx), %eax
	movl	%eax, 64(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r15)
	movq	$0, 56(%r15)
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [3,127,127,0]
	movups	%xmm0, 4(%r15)
	movabsq	$4393751543935, %rax            ## imm = 0x3FF0000007F
	movq	%rax, 20(%r15)
	movl	$0, 28(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_snd_trident_write_voice_regs
	movl	$1, 32(%r15)
	movl	(%r13), %eax
	movl	%eax, 36(%r15)
	addl	%eax, %eax
	decl	%eax
	movl	%eax, (%r15)
LBB0_2:
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_T4D_DEFAULT_PCM_PAN,4,2        ## @T4D_DEFAULT_PCM_PAN
	.no_dead_strip	_snd_trident_si7018_capture_prepare
.subsections_via_symbols

	.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_si7018_capture_prepare
lCPI0_0:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1
lCPI0_2:
	.long	3                               ; 0x3
	.long	127                             ; 0x7f
	.long	127                             ; 0x7f
	.long	0                               ; 0x0
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_1:
	.long	0                               ; 0x0
	.long	35456                           ; 0x8a80
lCPI0_3:
	.long	127                             ; 0x7f
	.long	1023                            ; 0x3ff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_snd_trident_si7018_capture_prepare:    ; @snd_trident_si7018_capture_prepare
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	ldr	x23, [x22]
	ldr	x21, [x23, #16]
	ldr	x20, [x21, #96]
	bl	_spin_lock_irq
	ldp	w0, w8, [x23, #8]
	str	w8, [x21, #80]
	bl	_snd_trident_convert_adc_rate
	str	w0, [x21, #88]
	ldr	w0, [x23, #8]
	ldr	w1, [x23]
	bl	_snd_trident_spurious_threshold
	str	w0, [x21, #84]
	str	xzr, [x21, #72]
	ldr	w8, [x23, #4]
	sub	w8, w8, #1
	str	w8, [x21]
	mov	x0, x22
	bl	_snd_trident_control_mode
	str	w0, [x21, #64]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x21, #4]
Lloh2:
	adrp	x8, _T4D_DEFAULT_PCM_PAN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _T4D_DEFAULT_PCM_PAN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x21, #20]
	stp	xzr, xzr, [x21, #48]
	str	xzr, [x21, #40]
Lloh5:
	adrp	x8, lCPI0_1@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [x21, #24]
	mov	x0, x19
	mov	x1, x21
	bl	_snd_trident_write_voice_regs
	cbz	x20, LBB0_2
; %bb.1:
	ldr	w0, [x23, #8]
	bl	_snd_trident_convert_rate
	str	w0, [x20, #88]
	ldr	d0, [x21, #80]
	str	d0, [x20, #80]
	str	xzr, [x20, #72]
	ldr	w8, [x23]
	lsl	w8, w8, #1
	add	w8, w8, #19
	str	w8, [x20]
	ldr	w8, [x21, #64]
	str	w8, [x20, #64]
	stp	xzr, xzr, [x20, #48]
	str	xzr, [x20, #40]
Lloh7:
	adrp	x8, lCPI0_2@PAGE
Lloh8:
	ldr	q0, [x8, lCPI0_2@PAGEOFF]
	stur	q0, [x20, #4]
Lloh9:
	adrp	x8, lCPI0_3@PAGE
Lloh10:
	ldr	d0, [x8, lCPI0_3@PAGEOFF]
	stur	d0, [x20, #20]
	str	wzr, [x20, #28]
	mov	x0, x19
	mov	x1, x20
	bl	_snd_trident_write_voice_regs
	mov	w8, #1
	ldr	w9, [x23]
	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, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpAdrp	Lloh7, Lloh9
	.loh AdrpLdr	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_T4D_DEFAULT_PCM_PAN,4,2        ; @T4D_DEFAULT_PCM_PAN
	.no_dead_strip	_snd_trident_si7018_capture_prepare
.subsections_via_symbols
