	.file	"extr_cs46xx_lib.c_snd_cs46xx_playback_hw_params.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_cs46xx_playback_hw_params, @function
snd_cs46xx_playback_hw_params:
.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, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR 8[rdi]
	mov	rdi, rsi
	mov	r13, QWORD PTR 24[r12]
	call	params_periods@PLT
	cmp	rax, QWORD PTR CS46XX_FRAGS[rip]
	mov	rax, QWORD PTR 8[r13]
	je	.L8
	cmp	QWORD PTR 16[r12], rax
	je	.L9
.L5:
	mov	rdi, rbp
	call	params_buffer_bytes@PLT
	mov	rdi, rbx
	mov	esi, eax
	call	snd_pcm_lib_malloc_pages@PLT
	test	eax, eax
	js	.L1
	lea	rax, snd_cs46xx_playback_indirect_ops[rip]
	mov	QWORD PTR [rbx], rax
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	cmp	QWORD PTR 16[r12], rax
	je	.L3
	mov	rdi, rbx
	call	snd_pcm_lib_free_pages@PLT
	mov	rax, QWORD PTR 8[r13]
.L3:
	mov	QWORD PTR 16[r12], rax
	mov	rax, QWORD PTR 24[r13]
	mov	QWORD PTR 8[r12], rax
	mov	rax, QWORD PTR 16[r13]
	mov	QWORD PTR [r12], rax
	lea	rax, snd_cs46xx_playback_ops[rip]
	mov	QWORD PTR [rbx], rax
	add	rsp, 8
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	QWORD PTR 16[r12], 0
	mov	QWORD PTR 8[r12], 0
	mov	QWORD PTR [r12], 0
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	snd_cs46xx_playback_hw_params, .-snd_cs46xx_playback_hw_params
	.comm	snd_cs46xx_playback_rear_ops,4,4
	.comm	snd_cs46xx_playback_ops,4,4
	.comm	snd_cs46xx_playback_indirect_rear_ops,4,4
	.comm	snd_cs46xx_playback_indirect_ops,4,4
	.comm	snd_cs46xx_playback_indirect_iec958_ops,4,4
	.comm	snd_cs46xx_playback_indirect_clfe_ops,4,4
	.comm	snd_cs46xx_playback_iec958_ops,4,4
	.comm	snd_cs46xx_playback_clfe_ops,4,4
	.comm	ENXIO,4,4
	.comm	EINVAL,4,4
	.comm	DSP_PCM_REAR_CHANNEL,8,8
	.comm	DSP_PCM_MAIN_CHANNEL,8,8
	.comm	DSP_PCM_CENTER_LFE_CHANNEL,8,8
	.comm	DSP_IEC958_CHANNEL,8,8
	.comm	CS46XX_FRAGS,8,8
	.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_cs46xx_lib.c_snd_cs46xx_playback_hw_params.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_cs46xx_playback_hw_params, %function
snd_cs46xx_playback_hw_params:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r0, #4]
	mov	r4, r0
	mov	r0, r1
	ldr	r7, [r6, #12]
	mov	r5, r1
	bl	params_periods
	ldr	r3, .L9
	ldr	r2, [r6, #8]
	ldr	r3, [r3]
	cmp	r0, r3
	ldr	r3, [r7, #4]
	beq	.L8
	cmp	r2, r3
	moveq	r3, #0
	mov	r0, r5
	streq	r3, [r6, #8]
	streq	r3, [r6, #4]
	streq	r3, [r6]
	bl	params_buffer_bytes
	mov	r1, r0
	mov	r0, r4
	bl	snd_pcm_lib_malloc_pages
	cmp	r0, #0
	ldrge	r3, .L9+4
	movge	r0, #0
	strge	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	cmp	r2, r3
	beq	.L3
	mov	r0, r4
	bl	snd_pcm_lib_free_pages
	ldr	r3, [r7, #4]
.L3:
	ldr	r0, [r7, #12]
	ldr	r1, [r7, #8]
	ldr	r2, .L9+8
	stmib	r6, {r0, r3}
	str	r1, [r6]
	mov	r0, #0
	str	r2, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	CS46XX_FRAGS
	.word	snd_cs46xx_playback_indirect_ops
	.word	snd_cs46xx_playback_ops
	.size	snd_cs46xx_playback_hw_params, .-snd_cs46xx_playback_hw_params
	.comm	snd_cs46xx_playback_rear_ops,4,4
	.comm	snd_cs46xx_playback_ops,4,4
	.comm	snd_cs46xx_playback_indirect_rear_ops,4,4
	.comm	snd_cs46xx_playback_indirect_ops,4,4
	.comm	snd_cs46xx_playback_indirect_iec958_ops,4,4
	.comm	snd_cs46xx_playback_indirect_clfe_ops,4,4
	.comm	snd_cs46xx_playback_iec958_ops,4,4
	.comm	snd_cs46xx_playback_clfe_ops,4,4
	.comm	ENXIO,4,4
	.comm	EINVAL,4,4
	.comm	DSP_PCM_REAR_CHANNEL,4,4
	.comm	DSP_PCM_MAIN_CHANNEL,4,4
	.comm	DSP_PCM_CENTER_LFE_CHANNEL,4,4
	.comm	DSP_IEC958_CHANNEL,4,4
	.comm	CS46XX_FRAGS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
