	.file	"extr_ac97_codec.c_snd_ac97_ad18xx_pcm_get_bits.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_ac97_ad18xx_pcm_get_bits, @function
snd_ac97_ad18xx_pcm_get_bits:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	snd_kcontrol_chip@PLT
	mov	edx, DWORD PTR [rbx]
	mov	rsi, QWORD PTR 8[rax]
	mov	ecx, edx
	mov	r8d, edx
	mov	edi, edx
	and	edx, 3
	lea	r9, [rsi+rdx*4]
	sar	ecx, 8
	sar	edi, 16
	mov	rsi, QWORD PTR 0[rbp]
	mov	edx, DWORD PTR [r9]
	and	ecx, 15
	sar	r8d, 12
	movzx	edi, dil
	and	r8d, 15
	sar	edx, cl
	not	edx
	and	edx, edi
	mov	DWORD PTR [rsi], edx
	cmp	ecx, r8d
	je	.L2
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR AC97_STEREO_MUTES[rip], eax
	je	.L2
	mov	eax, DWORD PTR [r9]
	mov	ecx, r8d
	sar	eax, cl
	not	eax
	and	edi, eax
	mov	DWORD PTR 4[rsi], edi
.L2:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	snd_ac97_ad18xx_pcm_get_bits, .-snd_ac97_ad18xx_pcm_get_bits
	.comm	AC97_STEREO_MUTES,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_ac97_codec.c_snd_ac97_ad18xx_pcm_get_bits.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_ac97_ad18xx_pcm_get_bits, %function
snd_ac97_ad18xx_pcm_get_bits:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r4, r1
	bl	snd_kcontrol_chip
	ldr	r3, [r5]
	ldr	r5, [r0, #4]
	and	r6, r3, #3
	asr	ip, r3, #16
	ldr	lr, [r5, r6, lsl #2]
	asr	r2, r3, #8
	asr	r3, r3, #12
	and	r2, r2, #15
	ldr	r4, [r4]
	and	r1, ip, #255
	and	r3, r3, #15
	bic	ip, r1, lr, asr r2
	cmp	r2, r3
	str	ip, [r4]
	beq	.L2
	ldr	r2, .L8
	ldr	r0, [r0]
	ldr	r2, [r2]
	tst	r0, r2
	ldrne	r2, [r5, r6, lsl #2]
	bicne	r3, r1, r2, asr r3
	strne	r3, [r4, #4]
.L2:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	AC97_STEREO_MUTES
	.size	snd_ac97_ad18xx_pcm_get_bits, .-snd_ac97_ad18xx_pcm_get_bits
	.comm	AC97_STEREO_MUTES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
