	.file	"extr_wm8994.c_wm8994_put_retune_mobile_enum.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wm8994_put_retune_mobile_enum, @function
wm8994_put_retune_mobile_enum:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	call	snd_soc_kcontrol_component@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	snd_soc_component_get_drvdata@PLT
	mov	edi, DWORD PTR [rbx]
	mov	r13, QWORD PTR 8[rax]
	mov	r14, rax
	call	wm8994_get_retune_mobile_block@PLT
	test	eax, eax
	js	.L1
	mov	rdx, QWORD PTR [r12]
	mov	edx, DWORD PTR [rdx]
	cmp	DWORD PTR 0[r13], edx
	jg	.L3
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rcx, QWORD PTR [r14]
	movsx	rsi, eax
	mov	rdi, rbp
	mov	DWORD PTR [rcx+rsi*4], edx
	mov	esi, eax
	call	wm8994_set_retune_mobile@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	wm8994_put_retune_mobile_enum, .-wm8994_put_retune_mobile_enum
	.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_wm8994.c_wm8994_put_retune_mobile_enum.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wm8994_put_retune_mobile_enum, %function
wm8994_put_retune_mobile_enum:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	mov	r5, r0
	bl	snd_soc_kcontrol_component
	mov	r7, r0
	bl	snd_soc_component_get_drvdata
	mov	r4, r0
	ldr	r0, [r5]
	ldr	r5, [r4, #4]
	bl	wm8994_get_retune_mobile_block
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [r6]
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L3
	ldr	r3, .L6
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r2, [r4]
	mov	r1, r0
	str	r3, [r2, r0, lsl #2]
	mov	r0, r7
	bl	wm8994_set_retune_mobile
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	.align	2
.L6:
	.word	EINVAL
	.size	wm8994_put_retune_mobile_enum, .-wm8994_put_retune_mobile_enum
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
