	.file	"extr_dsp_spos_scb_lib.c_cs46xx_dsp_pcm_channel_set_period.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"period size (%d) not supported by HW\n"
	.text
	.p2align 4
	.globl	cs46xx_dsp_pcm_channel_set_period
	.type	cs46xx_dsp_pcm_channel_set_period, @function
cs46xx_dsp_pcm_channel_set_period:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR [rsi]
	mov	rbx, rsi
	mov	esi, DWORD PTR [rax]
	sal	esi, 2
	call	snd_cs46xx_peek@PLT
	mov	r8d, eax
	mov	eax, DWORD PTR DMA_RQ_C1_SOURCE_SIZE_MASK[rip]
	not	eax
	and	eax, r8d
	cmp	r12d, 256
	je	.L2
	jg	.L3
	cmp	r12d, 64
	je	.L4
	mov	edx, DWORD PTR DMA_RQ_C1_SOURCE_MOD64[rip]
	or	edx, eax
	cmp	r12d, 128
	jne	.L19
.L11:
	mov	rax, QWORD PTR [rbx]
	mov	rdi, rbp
	mov	esi, DWORD PTR [rax]
	sal	esi, 2
	call	snd_cs46xx_poke@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	r12d, 1024
	je	.L8
	mov	edx, DWORD PTR DMA_RQ_C1_SOURCE_MOD1024[rip]
	or	edx, eax
	cmp	r12d, 2048
	je	.L11
	or	eax, DWORD PTR DMA_RQ_C1_SOURCE_MOD256[rip]
	mov	edx, eax
	cmp	r12d, 512
	je	.L11
.L7:
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR [rax]
	call	dev_dbg@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	or	eax, DWORD PTR DMA_RQ_C1_SOURCE_MOD16[rip]
	mov	edx, eax
	cmp	r12d, 32
	je	.L11
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	or	eax, DWORD PTR DMA_RQ_C1_SOURCE_MOD128[rip]
	mov	edx, eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L4:
	or	eax, DWORD PTR DMA_RQ_C1_SOURCE_MOD32[rip]
	mov	edx, eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	or	eax, DWORD PTR DMA_RQ_C1_SOURCE_MOD512[rip]
	mov	edx, eax
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	cs46xx_dsp_pcm_channel_set_period, .-cs46xx_dsp_pcm_channel_set_period
	.comm	EINVAL,4,4
	.comm	DMA_RQ_C1_SOURCE_SIZE_MASK,4,4
	.comm	DMA_RQ_C1_SOURCE_MOD64,4,4
	.comm	DMA_RQ_C1_SOURCE_MOD512,4,4
	.comm	DMA_RQ_C1_SOURCE_MOD32,4,4
	.comm	DMA_RQ_C1_SOURCE_MOD256,4,4
	.comm	DMA_RQ_C1_SOURCE_MOD16,4,4
	.comm	DMA_RQ_C1_SOURCE_MOD128,4,4
	.comm	DMA_RQ_C1_SOURCE_MOD1024,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_dsp_spos_scb_lib.c_cs46xx_dsp_pcm_channel_set_period.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"period size (%d) not supported by HW\012\000"
	.text
	.align	2
	.global	cs46xx_dsp_pcm_channel_set_period
	.syntax unified
	.arm
	.fpu softvfp
	.type	cs46xx_dsp_pcm_channel_set_period, %function
cs46xx_dsp_pcm_channel_set_period:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1]
	push	{r4, r5, r6, lr}
	mov	r5, r1
	ldr	r1, [r3]
	mov	r4, r2
	lsl	r1, r1, #2
	mov	r6, r0
	bl	snd_cs46xx_peek
	ldr	r3, .L17
	cmp	r4, #256
	ldr	r2, [r3]
	bic	r2, r0, r2
	beq	.L2
	bgt	.L3
	cmp	r4, #64
	beq	.L4
	cmp	r4, #128
	bne	.L15
	ldr	r3, .L17+4
	ldr	r0, [r3]
	orr	r2, r2, r0
.L11:
	ldr	r3, [r5]
	mov	r0, r6
	ldr	r1, [r3]
	lsl	r1, r1, #2
	bl	snd_cs46xx_poke
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L15:
	cmp	r4, #32
	bne	.L7
	ldr	r3, .L17+8
	ldr	r0, [r3]
	orr	r2, r2, r0
	b	.L11
.L3:
	cmp	r4, #1024
	beq	.L8
	cmp	r4, #2048
	ldreq	r3, .L17+12
	ldreq	r0, [r3]
	orreq	r2, r2, r0
	beq	.L11
.L16:
	cmp	r4, #512
	bne	.L7
	ldr	r3, .L17+16
	ldr	r0, [r3]
	orr	r2, r2, r0
	b	.L11
.L2:
	ldr	r3, .L17+20
	ldr	r0, [r3]
	orr	r2, r2, r0
	b	.L11
.L4:
	ldr	r3, .L17+24
	ldr	r0, [r3]
	orr	r2, r2, r0
	b	.L11
.L7:
	ldr	r3, [r6]
	mov	r2, r4
	ldr	r0, [r3]
	ldr	r1, .L17+28
	bl	dev_dbg
	ldr	r3, .L17+32
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r3, .L17+36
	ldr	r0, [r3]
	orr	r2, r2, r0
	b	.L11
.L18:
	.align	2
.L17:
	.word	DMA_RQ_C1_SOURCE_SIZE_MASK
	.word	DMA_RQ_C1_SOURCE_MOD64
	.word	DMA_RQ_C1_SOURCE_MOD16
	.word	DMA_RQ_C1_SOURCE_MOD1024
	.word	DMA_RQ_C1_SOURCE_MOD256
	.word	DMA_RQ_C1_SOURCE_MOD128
	.word	DMA_RQ_C1_SOURCE_MOD32
	.word	.LC0
	.word	EINVAL
	.word	DMA_RQ_C1_SOURCE_MOD512
	.size	cs46xx_dsp_pcm_channel_set_period, .-cs46xx_dsp_pcm_channel_set_period
	.comm	EINVAL,4,4
	.comm	DMA_RQ_C1_SOURCE_SIZE_MASK,4,4
	.comm	DMA_RQ_C1_SOURCE_MOD64,4,4
	.comm	DMA_RQ_C1_SOURCE_MOD512,4,4
	.comm	DMA_RQ_C1_SOURCE_MOD32,4,4
	.comm	DMA_RQ_C1_SOURCE_MOD256,4,4
	.comm	DMA_RQ_C1_SOURCE_MOD16,4,4
	.comm	DMA_RQ_C1_SOURCE_MOD128,4,4
	.comm	DMA_RQ_C1_SOURCE_MOD1024,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
