	.file	"extr_ice1712.c_snd_ice1712_pro_mixer_switch_put.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_ice1712_pro_mixer_switch_put, @function
snd_ice1712_pro_mixer_switch_put:
.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
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	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_kcontrol_chip@PLT
	lea	rsi, 8[r13]
	mov	rdi, rbx
	mov	rbp, rax
	call	snd_ctl_get_ioffidx@PLT
	add	eax, DWORD PTR [rbx]
	lea	r14, 8[rbp]
	mov	r12d, eax
	mov	rax, QWORD PTR 0[r13]
	xor	r13d, r13d
	mov	rdi, r14
	cmp	QWORD PTR [rax], 0
	sete	r13b
	sal	r13d, 15
	cmp	QWORD PTR 8[rax], 1
	sbb	ebx, ebx
	call	spin_lock_irq@PLT
	mov	rax, QWORD PTR 0[rbp]
	movsx	rdx, r12d
	mov	esi, r12d
	and	ebx, -2147483648
	mov	rdi, rbp
	lea	rdx, [rax+rdx*4]
	mov	ecx, DWORD PTR [rdx]
	mov	eax, ecx
	and	eax, 2147450879
	or	eax, r13d
	or	eax, ebx
	mov	DWORD PTR [rdx], eax
	cmp	ecx, eax
	setne	bl
	call	snd_ice1712_update_volume@PLT
	mov	rdi, r14
	call	spin_unlock_irq@PLT
	movzx	eax, bl
	pop	rbx
	.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
	.cfi_endproc
.LFE0:
	.size	snd_ice1712_pro_mixer_switch_put, .-snd_ice1712_pro_mixer_switch_put
	.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_ice1712.c_snd_ice1712_pro_mixer_switch_put.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_ice1712_pro_mixer_switch_put, %function
snd_ice1712_pro_mixer_switch_put:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r1
	mov	r6, r0
	bl	snd_kcontrol_chip
	add	r1, r7, #4
	mov	r5, r0
	mov	r0, r6
	bl	snd_ctl_get_ioffidx
	mov	r4, r0
	ldr	r3, [r7]
	ldr	r1, [r6]
	ldm	r3, {r2, r3}
	cmp	r2, #0
	movne	r8, #0
	moveq	r8, #32768
	cmp	r3, #0
	movne	r7, #0
	moveq	r7, #-2147483648
	add	r6, r5, #4
	mov	r0, r6
	add	r4, r4, r1
	bl	spin_lock_irq
	ldr	ip, [r5]
	mov	r1, r4
	ldr	r2, [ip, r4, lsl #2]
	mov	r0, r5
	bic	r3, r2, #-2147483648
	bic	r3, r3, #32768
	orr	r3, r3, r8
	orr	r3, r3, r7
	str	r3, [ip, r4, lsl #2]
	subs	r4, r2, r3
	movne	r4, #1
	bl	snd_ice1712_update_volume
	mov	r0, r6
	bl	spin_unlock_irq
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
	.size	snd_ice1712_pro_mixer_switch_put, .-snd_ice1712_pro_mixer_switch_put
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
