	.file	"extr_prodigy_hifi.c_wm_dac_vol_put.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wm_dac_vol_put, @function
wm_dac_vol_put:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	r14d, r14d
	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
	xor	ebx, ebx
	call	snd_kcontrol_chip@PLT
	mov	rdi, rax
	mov	r13, QWORD PTR 8[rax]
	mov	rbp, rax
	call	mutex_lock@PLT
.L3:
	mov	rdx, QWORD PTR 8[r13]
	mov	rcx, QWORD PTR [r12]
	lea	rax, 0[0+rbx*4]
	add	rcx, rax
	lea	rax, 8[rdx+rax]
	mov	edx, DWORD PTR [rax]
	cmp	DWORD PTR [rcx], edx
	je	.L2
	and	edx, DWORD PTR WM_VOL_MUTE[rip]
	mov	esi, DWORD PTR WM_DAC_ATTEN_L[rip]
	mov	rdi, rbp
	mov	r14d, 1
	mov	DWORD PTR [rax], edx
	or	edx, DWORD PTR [rcx]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR 0[r13]
	add	esi, ebx
	mov	ecx, DWORD PTR [rax+rbx*4]
	call	wm_set_vol@PLT
.L2:
	cmp	rbx, 1
	jne	.L4
	mov	rdi, rbp
	call	mutex_unlock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	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
.L4:
	.cfi_restore_state
	mov	ebx, 1
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	wm_dac_vol_put, .-wm_dac_vol_put
	.comm	WM_VOL_MUTE,4,4
	.comm	WM_DAC_ATTEN_L,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_prodigy_hifi.c_wm_dac_vol_put.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wm_dac_vol_put, %function
wm_dac_vol_put:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r1
	mov	r10, #0
	bl	snd_kcontrol_chip
	mov	r4, r10
	mov	r5, r0
	ldr	r7, [r0, #4]
	bl	mutex_lock
	ldr	r9, .L7
	ldr	r8, .L7+4
.L3:
	ldr	r0, [r7, #4]
	ldr	ip, [r6]
	lsl	r3, r4, #2
	add	r3, r3, #8
	ldr	r2, [r0, r3]
	ldr	r1, [ip, r4, lsl #2]
	cmp	r1, r2
	beq	.L2
	ldr	lr, [r8]
	ldr	r1, [r9]
	and	r2, r2, lr
	str	r2, [r0, r3]
	ldr	lr, [ip, r4, lsl #2]
	ldr	ip, [r7]
	orr	r2, r2, lr
	str	r2, [r0, r3]
	ldr	r3, [ip, r4, lsl #2]
	mov	r0, r5
	add	r1, r4, r1
	bl	wm_set_vol
	mov	r10, #1
.L2:
	cmp	r4, #1
	bne	.L4
	mov	r0, r5
	bl	mutex_unlock
	mov	r0, r10
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	mov	r4, #1
	b	.L3
.L8:
	.align	2
.L7:
	.word	WM_DAC_ATTEN_L
	.word	WM_VOL_MUTE
	.size	wm_dac_vol_put, .-wm_dac_vol_put
	.comm	WM_VOL_MUTE,4,4
	.comm	WM_DAC_ATTEN_L,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
