	.file	"extr_jz4740.c_jz4740_codec_hw_params.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	jz4740_codec_hw_params, @function
jz4740_codec_hw_params:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR [rdx]
	call	snd_soc_component_get_drvdata@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	params_rate@PLT
	cmp	eax, 22050
	je	.L8
	jle	.L21
	cmp	eax, 44100
	je	.L13
	jle	.L22
	mov	edx, 8
	cmp	eax, 48000
	jne	.L5
.L2:
	mov	ecx, DWORD PTR JZ4740_CODEC_2_SAMPLE_RATE_OFFSET[rip]
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR JZ4740_REG_CODEC_2[rip]
	sal	edx, cl
	mov	ecx, edx
	mov	edx, DWORD PTR JZ4740_CODEC_2_SAMPLE_RATE_MASK[rip]
	call	regmap_update_bits@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	cmp	eax, 12000
	je	.L9
	jle	.L23
	mov	edx, 3
	cmp	eax, 16000
	je	.L2
.L5:
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	cmp	eax, 24000
	je	.L14
	cmp	eax, 32000
	jne	.L5
	mov	edx, 6
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L23:
	cmp	eax, 8000
	je	.L10
	cmp	eax, 11025
	jne	.L5
	mov	edx, 1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L10:
	xor	edx, edx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edx, 5
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edx, 2
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edx, 7
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edx, 4
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	jz4740_codec_hw_params, .-jz4740_codec_hw_params
	.comm	JZ4740_REG_CODEC_2,4,4
	.comm	JZ4740_CODEC_2_SAMPLE_RATE_OFFSET,4,4
	.comm	JZ4740_CODEC_2_SAMPLE_RATE_MASK,4,4
	.comm	EINVAL,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_jz4740.c_jz4740_codec_hw_params.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	jz4740_codec_hw_params, %function
jz4740_codec_hw_params:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r0, [r2]
	mov	r4, r1
	bl	snd_soc_component_get_drvdata
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	params_rate
	ldr	r3, .L22
	cmp	r0, r3
	beq	.L8
	ble	.L19
	ldr	r3, .L22+4
	cmp	r0, r3
	beq	.L13
	ble	.L20
	ldr	r3, .L22+8
	cmp	r0, r3
	moveq	r3, #8
	bne	.L5
.L2:
	ldr	r1, .L22+12
	ldr	r2, .L22+16
	ldr	ip, [r1]
	ldr	r1, .L22+20
	ldr	r0, [r4]
	ldr	r2, [r2]
	ldr	r1, [r1]
	lsl	r3, r3, ip
	bl	regmap_update_bits
	mov	r0, #0
	pop	{r4, pc}
.L19:
	ldr	r3, .L22+24
	cmp	r0, r3
	beq	.L9
	ble	.L21
	cmp	r0, #16000
	moveq	r3, #3
	beq	.L2
.L5:
	ldr	r3, .L22+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L20:
	ldr	r3, .L22+32
	cmp	r0, r3
	beq	.L14
	cmp	r0, #32000
	moveq	r3, #6
	beq	.L2
	b	.L5
.L21:
	cmp	r0, #8000
	beq	.L10
	ldr	r3, .L22+36
	cmp	r0, r3
	moveq	r3, #1
	beq	.L2
	b	.L5
.L10:
	mov	r3, #0
	b	.L2
.L14:
	mov	r3, #5
	b	.L2
.L9:
	mov	r3, #2
	b	.L2
.L13:
	mov	r3, #7
	b	.L2
.L8:
	mov	r3, #4
	b	.L2
.L23:
	.align	2
.L22:
	.word	22050
	.word	44100
	.word	48000
	.word	JZ4740_CODEC_2_SAMPLE_RATE_OFFSET
	.word	JZ4740_CODEC_2_SAMPLE_RATE_MASK
	.word	JZ4740_REG_CODEC_2
	.word	12000
	.word	EINVAL
	.word	24000
	.word	11025
	.size	jz4740_codec_hw_params, .-jz4740_codec_hw_params
	.comm	JZ4740_REG_CODEC_2,4,4
	.comm	JZ4740_CODEC_2_SAMPLE_RATE_OFFSET,4,4
	.comm	JZ4740_CODEC_2_SAMPLE_RATE_MASK,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
