	.file	"extr_tlv320aic23.c_tlv320aic23_hw_params.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tlv320aic23_hw_params, @function
tlv320aic23_hw_params:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r13, QWORD PTR [rdx]
	mov	rdi, r13
	call	snd_soc_component_get_drvdata@PLT
	mov	rdi, rbp
	mov	r12, QWORD PTR 8[rax]
	mov	r14, QWORD PTR 16[rax]
	mov	rbx, rax
	call	params_rate@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR SNDRV_PCM_STREAM_PLAYBACK[rip]
	cmp	QWORD PTR [r15], rax
	je	.L11
	test	r14, r14
	mov	QWORD PTR 8[rbx], rdx
	cmove	r14, rdx
.L3:
	mov	esi, DWORD PTR [rbx]
	mov	rcx, r14
	mov	rdi, r13
	call	set_sample_rate_control@PLT
	test	eax, eax
	js	.L1
	mov	esi, DWORD PTR TLV320AIC23_DIGT_FMT[rip]
	mov	rdi, r13
	call	snd_soc_component_read32@PLT
	mov	rdi, rbp
	and	eax, -13
	mov	r12d, eax
	call	params_width@PLT
	cmp	eax, 24
	je	.L5
	cmp	eax, 32
	je	.L6
	mov	edx, r12d
	or	edx, 4
	cmp	eax, 20
	cmove	r12d, edx
.L7:
	mov	esi, DWORD PTR TLV320AIC23_DIGT_FMT[rip]
	mov	edx, r12d
	mov	rdi, r13
	call	snd_soc_component_write@PLT
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	QWORD PTR 16[rbx], rdx
	mov	r14, rdx
	test	r12, r12
	je	.L3
	mov	rdx, r12
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	or	r12d, 12
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	or	r12d, 8
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	tlv320aic23_hw_params, .-tlv320aic23_hw_params
	.comm	TLV320AIC23_DIGT_FMT,4,4
	.comm	SNDRV_PCM_STREAM_PLAYBACK,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_tlv320aic23.c_tlv320aic23_hw_params.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tlv320aic23_hw_params, %function
tlv320aic23_hw_params:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, [r2]
	mov	r8, r0
	mov	r0, r7
	mov	r5, r1
	bl	snd_soc_component_get_drvdata
	mov	r4, r0
	mov	r0, r5
	ldr	r9, [r4, #4]
	ldr	r6, [r4, #8]
	bl	params_rate
	ldr	r3, .L12
	ldr	r1, [r8]
	ldr	r3, [r3]
	mov	r2, r0
	cmp	r1, r3
	beq	.L11
	cmp	r6, #0
	moveq	r6, r0
	str	r0, [r4, #4]
.L3:
	mov	r3, r6
	mov	r0, r7
	ldr	r1, [r4]
	bl	set_sample_rate_control
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r6, .L12+4
	mov	r0, r7
	ldr	r1, [r6]
	bl	snd_soc_component_read32
	mov	r4, r0
	mov	r0, r5
	bl	params_width
	bic	r4, r4, #12
	cmp	r0, #24
	orreq	r4, r4, #8
	beq	.L7
	cmp	r0, #32
	orreq	r4, r4, #12
	beq	.L7
	cmp	r0, #20
	orreq	r4, r4, #4
.L7:
	mov	r2, r4
	mov	r0, r7
	ldr	r1, [r6]
	bl	snd_soc_component_write
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	cmp	r9, #0
	mov	r6, r0
	movne	r2, r9
	str	r0, [r4, #8]
	b	.L3
.L13:
	.align	2
.L12:
	.word	SNDRV_PCM_STREAM_PLAYBACK
	.word	TLV320AIC23_DIGT_FMT
	.size	tlv320aic23_hw_params, .-tlv320aic23_hw_params
	.comm	TLV320AIC23_DIGT_FMT,4,4
	.comm	SNDRV_PCM_STREAM_PLAYBACK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
