	.file	"extr_pxa2xx-i2s.c_pxa2xx_i2s_hw_params.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pxa2xx_i2s_hw_params, @function
pxa2xx_i2s_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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR clk_i2s[rip]
	mov	rax, QWORD PTR [rax]
	mov	r13, QWORD PTR [rax]
	call	IS_ERR@PLT
	mov	edi, eax
	call	BUG_ON@PLT
	mov	edi, DWORD PTR clk_i2s[rip]
	call	clk_enable@PLT
	mov	QWORD PTR 8[rbp], rbp
	xor	eax, eax
	call	pxa_i2s_wait@PLT
	mov	rax, QWORD PTR SNDRV_PCM_STREAM_PLAYBACK[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L28
	lea	rax, pxa2xx_i2s_pcm_stereo_in[rip]
	mov	QWORD PTR 0[r13], rax
	mov	eax, DWORD PTR SACR0[rip]
	test	DWORD PTR SACR0_ENB[rip], eax
	je	.L16
.L5:
	mov	eax, DWORD PTR SAIMR[rip]
	or	eax, DWORD PTR SAIMR_RFS[rip]
.L6:
	mov	rdi, r12
	mov	DWORD PTR SAIMR[rip], eax
	call	params_rate@PLT
	cmp	eax, 22050
	je	.L7
	jg	.L8
	cmp	eax, 11025
	je	.L9
	cmp	eax, 16000
	jne	.L29
	mov	DWORD PTR SADIV[rip], 36
.L25:
	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
.L28:
	.cfi_restore_state
	lea	rax, pxa2xx_i2s_pcm_stereo_out[rip]
	mov	QWORD PTR 0[r13], rax
	mov	eax, DWORD PTR SACR0[rip]
	test	DWORD PTR SACR0_ENB[rip], eax
	jne	.L17
.L16:
	cmp	QWORD PTR pxa_i2s[rip+8], 0
	mov	DWORD PTR SACR0[rip], 0
	je	.L4
	mov	eax, DWORD PTR SACR0_BCKD[rip]
	mov	DWORD PTR SACR0[rip], eax
.L4:
	mov	edi, 14
	call	SACR0_RFTH@PLT
	mov	edi, 1
	mov	ebp, eax
	call	SACR0_TFTH@PLT
	or	ebp, eax
	mov	eax, DWORD PTR pxa_i2s[rip]
	or	DWORD PTR SACR0[rip], ebp
	or	DWORD PTR SACR1[rip], eax
	mov	rax, QWORD PTR SNDRV_PCM_STREAM_PLAYBACK[rip]
	cmp	QWORD PTR [rbx], rax
	jne	.L5
.L17:
	mov	eax, DWORD PTR SAIMR[rip]
	or	eax, DWORD PTR SAIMR_TFS[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L29:
	cmp	eax, 8000
	jne	.L25
	mov	DWORD PTR SADIV[rip], 72
	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
.L8:
	.cfi_restore_state
	cmp	eax, 48000
	je	.L13
	cmp	eax, 96000
	jne	.L30
	mov	DWORD PTR SADIV[rip], 6
	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
.L30:
	.cfi_restore_state
	cmp	eax, 44100
	jne	.L25
	mov	DWORD PTR SADIV[rip], 13
	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
.L7:
	.cfi_restore_state
	mov	DWORD PTR SADIV[rip], 26
	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
.L13:
	.cfi_restore_state
	mov	DWORD PTR SADIV[rip], 12
	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	DWORD PTR SADIV[rip], 52
	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	pxa2xx_i2s_hw_params, .-pxa2xx_i2s_hw_params
	.comm	pxa_i2s,16,16
	.comm	pxa2xx_i2s_pcm_stereo_out,4,4
	.comm	pxa2xx_i2s_pcm_stereo_in,4,4
	.comm	clk_i2s,4,4
	.comm	SNDRV_PCM_STREAM_PLAYBACK,8,8
	.comm	SAIMR_TFS,4,4
	.comm	SAIMR_RFS,4,4
	.comm	SAIMR,4,4
	.comm	SADIV,4,4
	.comm	SACR1,4,4
	.comm	SACR0_ENB,4,4
	.comm	SACR0_BCKD,4,4
	.comm	SACR0,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_pxa2xx-i2s.c_pxa2xx_i2s_hw_params.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pxa2xx_i2s_hw_params, %function
pxa2xx_i2s_hw_params:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r2
	mov	r4, r0
	ldr	r3, [r0, #4]
	ldr	r7, .L34
	ldr	r3, [r3]
	ldr	r0, [r7]
	ldr	r9, [r3]
	mov	r6, r1
	bl	IS_ERR
	bl	BUG_ON
	ldr	r8, .L34+4
	ldr	r0, [r7]
	bl	clk_enable
	str	r5, [r5, #4]
	bl	pxa_i2s_wait
	ldr	r2, [r4]
	ldr	r3, [r8]
	cmp	r2, r3
	beq	.L31
	ldr	r3, .L34+8
	ldr	r5, .L34+12
	ldr	r2, [r3]
	ldr	r1, [r5]
	ldr	r3, .L34+16
	tst	r1, r2
	str	r3, [r9]
	beq	.L16
.L5:
	ldr	r2, .L34+20
	ldr	r1, .L34+24
	ldr	r3, [r2]
	ldr	r1, [r1]
	orr	r3, r3, r1
.L6:
	mov	r0, r6
	str	r3, [r2]
	bl	params_rate
	ldr	r3, .L34+28
	cmp	r0, r3
	beq	.L7
	bgt	.L8
	ldr	r3, .L34+32
	cmp	r0, r3
	beq	.L9
	cmp	r0, #16000
	bne	.L32
	mov	r2, #36
	ldr	r3, .L34+36
	str	r2, [r3]
.L28:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L31:
	ldr	r3, .L34+8
	ldr	r5, .L34+12
	ldr	r2, [r3]
	ldr	r1, [r5]
	ldr	r3, .L34+40
	tst	r1, r2
	str	r3, [r9]
	bne	.L17
.L16:
	mov	r3, #0
	ldr	r9, .L34+44
	str	r3, [r5]
	ldr	r3, [r9, #4]
	mov	r0, #14
	cmp	r3, #0
	ldrne	r3, .L34+48
	ldrne	r3, [r3]
	strne	r3, [r5]
	bl	SACR0_RFTH
	mov	r7, r0
	mov	r0, #1
	bl	SACR0_TFTH
	ldr	ip, [r4]
	ldr	r2, .L34+52
	ldr	r1, [r8]
	orr	r7, r7, r0
	ldr	r3, [r9]
	ldr	r0, [r5]
	cmp	ip, r1
	ldr	r1, [r2]
	orr	r7, r0, r7
	orr	r3, r3, r1
	str	r7, [r5]
	str	r3, [r2]
	bne	.L5
.L17:
	ldr	r2, .L34+20
	ldr	r1, .L34+56
	ldr	r3, [r2]
	ldr	r1, [r1]
	orr	r3, r3, r1
	b	.L6
.L32:
	cmp	r0, #8000
	bne	.L28
	mov	r2, #72
	ldr	r3, .L34+36
	mov	r0, #0
	str	r2, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	ldr	r3, .L34+60
	cmp	r0, r3
	beq	.L13
	ldr	r3, .L34+64
	cmp	r0, r3
	bne	.L33
	mov	r2, #6
	ldr	r3, .L34+36
	mov	r0, #0
	str	r2, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L33:
	ldr	r3, .L34+68
	cmp	r0, r3
	bne	.L28
	mov	r2, #13
	ldr	r3, .L34+36
	mov	r0, #0
	str	r2, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	mov	r2, #12
	ldr	r3, .L34+36
	mov	r0, #0
	str	r2, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	mov	r2, #26
	ldr	r3, .L34+36
	mov	r0, #0
	str	r2, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	mov	r2, #52
	ldr	r3, .L34+36
	mov	r0, #0
	str	r2, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L35:
	.align	2
.L34:
	.word	clk_i2s
	.word	SNDRV_PCM_STREAM_PLAYBACK
	.word	SACR0_ENB
	.word	SACR0
	.word	pxa2xx_i2s_pcm_stereo_in
	.word	SAIMR
	.word	SAIMR_RFS
	.word	22050
	.word	11025
	.word	SADIV
	.word	pxa2xx_i2s_pcm_stereo_out
	.word	pxa_i2s
	.word	SACR0_BCKD
	.word	SACR1
	.word	SAIMR_TFS
	.word	48000
	.word	96000
	.word	44100
	.size	pxa2xx_i2s_hw_params, .-pxa2xx_i2s_hw_params
	.comm	pxa_i2s,8,4
	.comm	pxa2xx_i2s_pcm_stereo_out,4,4
	.comm	pxa2xx_i2s_pcm_stereo_in,4,4
	.comm	clk_i2s,4,4
	.comm	SNDRV_PCM_STREAM_PLAYBACK,4,4
	.comm	SAIMR_TFS,4,4
	.comm	SAIMR_RFS,4,4
	.comm	SAIMR,4,4
	.comm	SADIV,4,4
	.comm	SACR1,4,4
	.comm	SACR0_ENB,4,4
	.comm	SACR0_BCKD,4,4
	.comm	SACR0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
