	.file	"extr_hdsp.c_snd_hdsp_put_da_gain.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_hdsp_put_da_gain, @function
snd_hdsp_put_da_gain:
.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
	call	snd_kcontrol_chip@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	snd_hdsp_use_is_exclusive@PLT
	test	eax, eax
	jne	.L2
	mov	r13d, DWORD PTR EBUSY[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	neg	r13d
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR [r12]
	mov	esi, 2
	mov	rdi, rbp
	mov	r12d, 0
	cmp	DWORD PTR [rax], 2
	cmovle	esi, DWORD PTR [rax]
	test	esi, esi
	cmovns	r12d, esi
	xor	r13d, r13d
	call	spin_lock_irq@PLT
	mov	rdi, rbp
	call	hdsp_da_gain@PLT
	cmp	eax, r12d
	je	.L4
	mov	esi, r12d
	mov	rdi, rbp
	xor	r13d, r13d
	call	hdsp_set_da_gain@PLT
	test	rax, rax
	sete	r13b
.L4:
	mov	rdi, rbp
	call	spin_unlock_irq@PLT
	mov	eax, r13d
	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	snd_hdsp_put_da_gain, .-snd_hdsp_put_da_gain
	.comm	EBUSY,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_hdsp.c_snd_hdsp_put_da_gain.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_hdsp_put_da_gain, %function
snd_hdsp_put_da_gain:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	bl	snd_kcontrol_chip
	mov	r4, r0
	bl	snd_hdsp_use_is_exclusive
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L8
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, [r5]
	mov	r0, r4
	ldr	r1, [r3]
	cmp	r1, #2
	movge	r1, #2
	bic	r5, r1, r1, asr #31
	bl	spin_lock_irq
	mov	r0, r4
	bl	hdsp_da_gain
	cmp	r0, r5
	moveq	r5, #0
	beq	.L4
	mov	r1, r5
	mov	r0, r4
	bl	hdsp_set_da_gain
	clz	r5, r0
	lsr	r5, r5, #5
.L4:
	mov	r0, r4
	bl	spin_unlock_irq
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	EBUSY
	.size	snd_hdsp_put_da_gain, .-snd_hdsp_put_da_gain
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
