	.file	"extr_wm8940.c_wm8940_i2s_hw_params.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wm8940_i2s_hw_params, @function
wm8940_i2s_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
	mov	r14, rsi
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR 8[rdi]
	mov	esi, DWORD PTR WM8940_IFACE[rip]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	mov	rbp, QWORD PTR [rax]
	mov	rdi, rbp
	call	snd_soc_read@PLT
	mov	esi, DWORD PTR WM8940_ADDCNTRL[rip]
	mov	rdi, rbp
	and	eax, 64927
	mov	r12d, eax
	call	snd_soc_read@PLT
	mov	esi, DWORD PTR WM8940_COMPANDINGCTL[rip]
	mov	rdi, rbp
	and	eax, 65521
	mov	r13d, eax
	call	snd_soc_read@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR SNDRV_PCM_STREAM_CAPTURE[rip]
	cmp	QWORD PTR [r15], rax
	je	.L19
	mov	rdi, r14
	call	params_rate@PLT
	cmp	eax, 16000
	je	.L3
.L22:
	jle	.L20
	cmp	eax, 22050
	je	.L8
	cmp	eax, 32000
	jne	.L7
	or	r13d, 2
.L7:
	mov	esi, DWORD PTR WM8940_ADDCNTRL[rip]
	mov	edx, r13d
	mov	rdi, rbp
	call	snd_soc_write@PLT
	test	eax, eax
	je	.L21
.L10:
.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
.L20:
	.cfi_restore_state
	cmp	eax, 8000
	je	.L5
	cmp	eax, 11025
	jne	.L7
	or	r13d, 8
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, r14
	and	ebx, 65503
	call	params_format@PLT
	cmp	eax, 130
	je	.L11
	jg	.L12
	cmp	eax, 128
	je	.L13
	cmp	eax, 129
	jne	.L15
	or	r12d, 96
	.p2align 4,,10
	.p2align 3
.L15:
	mov	esi, DWORD PTR WM8940_COMPANDINGCTL[rip]
	mov	edx, ebx
	mov	rdi, rbp
	call	snd_soc_write@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR WM8940_IFACE[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	edx, r12d
	mov	rdi, rbp
	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
	jmp	snd_soc_write@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edx, r12d
	or	edx, 32
	cmp	eax, 131
	cmove	r12d, edx
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, r14
	call	params_channels@PLT
	mov	rdi, r14
	mov	r8d, eax
	mov	eax, r12d
	or	ah, 2
	cmp	r8d, 2
	cmove	r12d, eax
	call	params_rate@PLT
	cmp	eax, 16000
	jne	.L22
.L3:
	or	r13d, 6
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	or	r13d, 10
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	or	r13d, 4
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	or	ebx, 32
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L11:
	or	r12d, 64
	jmp	.L15
	.cfi_endproc
.LFE0:
	.size	wm8940_i2s_hw_params, .-wm8940_i2s_hw_params
	.comm	WM8940_IFACE,4,4
	.comm	WM8940_COMPANDINGCTL,4,4
	.comm	WM8940_ADDCNTRL,4,4
	.comm	SNDRV_PCM_STREAM_CAPTURE,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_wm8940.c_wm8940_i2s_hw_params.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wm8940_i2s_hw_params, %function
wm8940_i2s_hw_params:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0, #4]
	ldr	r10, .L21
	ldr	r3, [r3]
	mov	r7, r0
	ldr	r3, [r3]
	mov	r5, r1
	ldr	r4, [r3]
	ldr	r1, [r10]
	mov	r0, r4
	bl	snd_soc_read
	mov	r3, r0
	ldr	r8, .L21+4
	ldr	r6, .L21+8
	ldr	r1, [r8]
	mov	r0, r4
	and	r6, r6, r3
	bl	snd_soc_read
	mov	r3, r0
	ldr	r9, .L21+12
	ldr	fp, .L21+16
	mov	r0, r4
	ldr	r1, [r9]
	and	fp, fp, r3
	bl	snd_soc_read
	ldr	r3, .L21+20
	ldr	r2, [r7]
	ldr	r3, [r3]
	mov	r7, r0
	cmp	r2, r3
	beq	.L19
.L2:
	mov	r0, r5
	bl	params_rate
	cmp	r0, #16000
	orreq	fp, fp, #6
	beq	.L7
	ble	.L20
	ldr	r3, .L21+24
	cmp	r0, r3
	orreq	fp, fp, #4
	beq	.L7
	cmp	r0, #32000
	orreq	fp, fp, #2
.L7:
	mov	r2, fp
	mov	r0, r4
	ldr	r1, [r8]
	bl	snd_soc_write
	cmp	r0, #0
	popne	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r0, r5
	bl	params_format
	ldr	r2, .L21+28
	sub	r0, r0, #128
	and	r2, r2, r7
	cmp	r0, #3
	ldrls	pc, [pc, r0, asl #2]
	b	.L11
.L13:
	.word	.L16
	.word	.L15
	.word	.L14
	.word	.L12
.L20:
	cmp	r0, #8000
	orreq	fp, fp, #10
	beq	.L7
	ldr	r3, .L21+32
	cmp	r0, r3
	orreq	fp, fp, #8
	b	.L7
.L12:
	orr	r6, r6, #32
.L11:
	mov	r0, r4
	ldr	r1, [r9]
	bl	snd_soc_write
	cmp	r0, #0
	popne	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r2, r6
	mov	r0, r4
	ldr	r1, [r10]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	snd_soc_write
.L19:
	mov	r0, r5
	bl	params_channels
	cmp	r0, #2
	orreq	r6, r6, #512
	b	.L2
.L14:
	orr	r6, r6, #64
	b	.L11
.L15:
	orr	r6, r6, #96
	b	.L11
.L16:
	orr	r2, r2, #32
	b	.L11
.L22:
	.align	2
.L21:
	.word	WM8940_IFACE
	.word	WM8940_ADDCNTRL
	.word	64927
	.word	WM8940_COMPANDINGCTL
	.word	65521
	.word	SNDRV_PCM_STREAM_CAPTURE
	.word	22050
	.word	65503
	.word	11025
.L10:
	.size	wm8940_i2s_hw_params, .-wm8940_i2s_hw_params
	.comm	WM8940_IFACE,4,4
	.comm	WM8940_COMPANDINGCTL,4,4
	.comm	WM8940_ADDCNTRL,4,4
	.comm	SNDRV_PCM_STREAM_CAPTURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
