	.file	"extr_als300.c_snd_als300_playback_prepare.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Period bytes: %d Buffer bytes %d\n"
	.text
	.p2align 4
	.type	snd_als300_playback_prepare, @function
snd_als300_playback_prepare:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	snd_pcm_substream_chip@PLT
	mov	rdi, rbp
	mov	r12, QWORD PTR 0[rbp]
	mov	r13, rax
	call	snd_pcm_lib_period_bytes@PLT
	mov	rdi, rbp
	movzx	ebx, ax
	call	snd_pcm_lib_buffer_bytes@PLT
	mov	rdi, r13
	mov	ebp, eax
	call	spin_lock_irq@PLT
	mov	edi, DWORD PTR 4[r13]
	mov	esi, DWORD PTR PLAYBACK_CONTROL[rip]
	call	snd_als300_gcr_read@PLT
	movzx	edx, bp
	mov	esi, ebx
	lea	rdi, .LC0[rip]
	call	snd_als300_dbgplay@PLT
	mov	edi, DWORD PTR 4[r13]
	mov	esi, DWORD PTR PLAYBACK_CONTROL[rip]
	lea	edx, -1[rbx]
	movzx	edx, dx
	call	snd_als300_gcr_write@PLT
	movzx	edx, WORD PTR [r12]
	mov	edi, DWORD PTR 4[r13]
	mov	esi, DWORD PTR PLAYBACK_START[rip]
	call	snd_als300_gcr_write@PLT
	movzx	edx, WORD PTR [r12]
	mov	edi, DWORD PTR 4[r13]
	mov	esi, DWORD PTR PLAYBACK_END[rip]
	lea	edx, -1[rbp+rdx]
	movzx	edx, dx
	call	snd_als300_gcr_write@PLT
	mov	rdi, r13
	call	spin_unlock_irq@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	snd_als300_playback_prepare, .-snd_als300_playback_prepare
	.comm	TRANSFER_START,4,4
	.comm	PLAYBACK_START,4,4
	.comm	PLAYBACK_END,4,4
	.comm	PLAYBACK_CONTROL,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_als300.c_snd_als300_playback_prepare.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Period bytes: %d Buffer bytes %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_als300_playback_prepare, %function
snd_als300_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	r7, [r5]
	bl	snd_pcm_lib_period_bytes
	mov	r6, r0
	mov	r0, r5
	bl	snd_pcm_lib_buffer_bytes
	mov	r5, r0
	ldr	r8, .L4
	mov	r0, r4
	bl	spin_lock_irq
	ldr	r1, [r8]
	ldr	r0, [r4, #4]
	bl	snd_als300_gcr_read
	mov	r2, r5
	mov	r1, r6
	ldr	r0, .L4+4
	bl	snd_als300_dbgplay
	sub	r2, r6, #1
	lsl	r2, r2, #16
	ldr	r1, [r8]
	ldr	r0, [r4, #4]
	lsr	r2, r2, #16
	bl	snd_als300_gcr_write
	ldr	r3, .L4+8
	ldrh	r2, [r7]
	ldr	r1, [r3]
	ldr	r0, [r4, #4]
	bl	snd_als300_gcr_write
	ldrh	r2, [r7]
	ldr	r3, .L4+12
	sub	r2, r2, #1
	add	r2, r5, r2
	lsl	r2, r2, #16
	ldr	r1, [r3]
	lsr	r2, r2, #16
	ldr	r0, [r4, #4]
	bl	snd_als300_gcr_write
	mov	r0, r4
	bl	spin_unlock_irq
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	.align	2
.L4:
	.word	PLAYBACK_CONTROL
	.word	.LC0
	.word	PLAYBACK_START
	.word	PLAYBACK_END
	.size	snd_als300_playback_prepare, .-snd_als300_playback_prepare
	.comm	TRANSFER_START,4,4
	.comm	PLAYBACK_START,4,4
	.comm	PLAYBACK_END,4,4
	.comm	PLAYBACK_CONTROL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
