	.file	"extr_cmipci.c_snd_cmipci_get_volume.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_cmipci_get_volume, @function
snd_cmipci_get_volume:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 64
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	snd_kcontrol_chip@PLT
	mov	esi, DWORD PTR [rbx]
	mov	rdi, rsp
	mov	rbp, rax
	call	cmipci_sb_reg_decode@PLT
	mov	rdi, rbp
	call	spin_lock_irq@PLT
	mov	esi, DWORD PTR 40[rsp]
	mov	rdi, rbp
	call	snd_cmipci_mixer_read@PLT
	mov	ecx, DWORD PTR [rsp]
	mov	edx, DWORD PTR 4[rsp]
	sar	eax, cl
	and	eax, edx
	cmp	QWORD PTR 16[rsp], 0
	je	.L2
	sub	edx, eax
	mov	eax, edx
.L2:
	mov	rdx, QWORD PTR [r12]
	cmp	QWORD PTR 32[rsp], 0
	mov	DWORD PTR [rdx], eax
	jne	.L8
.L3:
	mov	rdi, rbp
	call	spin_unlock_irq@PLT
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR 24[rsp]
	mov	rdi, rbp
	call	snd_cmipci_mixer_read@PLT
	mov	ecx, DWORD PTR 8[rsp]
	mov	edx, DWORD PTR 4[rsp]
	sar	eax, cl
	and	eax, edx
	cmp	QWORD PTR 16[rsp], 0
	je	.L4
	sub	edx, eax
	mov	eax, edx
.L4:
	mov	rdx, QWORD PTR [r12]
	mov	DWORD PTR 4[rdx], eax
	jmp	.L3
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	snd_cmipci_get_volume, .-snd_cmipci_get_volume
	.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_cmipci.c_snd_cmipci_get_volume.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_cmipci_get_volume, %function
snd_cmipci_get_volume:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L19
	sub	sp, sp, #32
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r5, r1
	mov	r6, r0
	bl	snd_kcontrol_chip
	mov	r4, r0
	ldr	r1, [r6]
	mov	r0, sp
	bl	cmipci_sb_reg_decode
	mov	r0, r4
	bl	spin_lock_irq
	ldr	r1, [sp, #24]
	mov	r0, r4
	bl	snd_cmipci_mixer_read
	ldm	sp, {r2, r3}
	ldr	r1, [sp, #12]
	and	r0, r3, r0, asr r2
	cmp	r1, #0
	ldr	r2, [sp, #20]
	subne	r0, r3, r0
	ldr	r3, [r5]
	cmp	r2, #0
	str	r0, [r3]
	bne	.L17
.L3:
	mov	r0, r4
	bl	spin_unlock_irq
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	mov	r0, #0
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L17:
	ldr	r1, [sp, #16]
	mov	r0, r4
	bl	snd_cmipci_mixer_read
	ldr	r3, [sp, #4]
	ldr	r1, [sp, #12]
	ldr	r2, [sp, #8]
	cmp	r1, #0
	and	r0, r3, r0, asr r2
	subne	r0, r3, r0
	ldr	r3, [r5]
	str	r0, [r3, #4]
	b	.L3
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC0
	.size	snd_cmipci_get_volume, .-snd_cmipci_get_volume
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
