	.file	"extr_sonicvibes.c_snd_sonicvibes_playback_prepare.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_sonicvibes_playback_prepare, @function
snd_sonicvibes_playback_prepare:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	snd_pcm_substream_chip@PLT
	mov	rdi, r12
	mov	r14, QWORD PTR [r12]
	mov	rbp, rax
	call	snd_pcm_lib_buffer_bytes@PLT
	mov	rdi, r12
	lea	r15, 4[rbp]
	mov	r13d, eax
	call	snd_pcm_lib_period_bytes@PLT
	mov	DWORD PTR 0[rbp], r13d
	mov	edi, DWORD PTR 12[r14]
	cmp	DWORD PTR [r14], 1
	lea	r12d, -1[rax]
	setg	bl
	call	snd_pcm_format_width@PLT
	mov	rdi, rbp
	mov	esi, -4
	mov	r8d, eax
	mov	eax, ebx
	or	eax, 2
	cmp	r8d, 16
	cmove	ebx, eax
	movzx	edx, bl
	call	snd_sonicvibes_setfmt@PLT
	mov	esi, DWORD PTR 8[r14]
	mov	rdi, rbp
	call	snd_sonicvibes_set_dac_rate@PLT
	mov	rdi, r15
	call	spin_lock_irq@PLT
	mov	esi, DWORD PTR 4[r14]
	mov	edx, r13d
	mov	rdi, rbp
	call	snd_sonicvibes_setdmaa@PLT
	mov	esi, DWORD PTR SV_IREG_DMA_A_UPPER[rip]
	mov	edx, r12d
	mov	rdi, rbp
	shr	edx, 8
	call	snd_sonicvibes_out1@PLT
	mov	esi, DWORD PTR SV_IREG_DMA_A_LOWER[rip]
	mov	edx, r12d
	mov	rdi, rbp
	call	snd_sonicvibes_out1@PLT
	mov	rdi, r15
	call	spin_unlock_irq@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	snd_sonicvibes_playback_prepare, .-snd_sonicvibes_playback_prepare
	.comm	SV_IREG_DMA_A_UPPER,4,4
	.comm	SV_IREG_DMA_A_LOWER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sonicvibes.c_snd_sonicvibes_playback_prepare.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_sonicvibes_playback_prepare, %function
snd_sonicvibes_playback_prepare:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	bl	snd_pcm_substream_chip
	mov	r4, r0
	mov	r0, r5
	ldr	r6, [r5]
	bl	snd_pcm_lib_buffer_bytes
	mov	r7, r0
	mov	r0, r5
	bl	snd_pcm_lib_period_bytes
	ldr	r8, [r6]
	mov	r5, r0
	cmp	r8, #1
	ldr	r0, [r6, #12]
	str	r7, [r4]
	movle	r8, #0
	movgt	r8, #1
	bl	snd_pcm_format_width
	cmp	r0, #16
	orreq	r8, r8, #2
	mov	r2, r8
	mvn	r1, #3
	mov	r0, r4
	bl	snd_sonicvibes_setfmt
	add	r8, r4, #4
	ldr	r1, [r6, #8]
	mov	r0, r4
	bl	snd_sonicvibes_set_dac_rate
	mov	r0, r8
	bl	spin_lock_irq
	mov	r2, r7
	ldr	r1, [r6, #4]
	mov	r0, r4
	bl	snd_sonicvibes_setdmaa
	ldr	r3, .L5
	sub	r5, r5, #1
	ldr	r1, [r3]
	lsr	r2, r5, #8
	mov	r0, r4
	bl	snd_sonicvibes_out1
	ldr	r3, .L5+4
	mov	r2, r5
	ldr	r1, [r3]
	mov	r0, r4
	bl	snd_sonicvibes_out1
	mov	r0, r8
	bl	spin_unlock_irq
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	.align	2
.L5:
	.word	SV_IREG_DMA_A_UPPER
	.word	SV_IREG_DMA_A_LOWER
	.size	snd_sonicvibes_playback_prepare, .-snd_sonicvibes_playback_prepare
	.comm	SV_IREG_DMA_A_UPPER,4,4
	.comm	SV_IREG_DMA_A_LOWER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
