	.file	"extr_ad1816a_lib.c_snd_ad1816a_get_double.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_ad1816a_get_double, @function
snd_ad1816a_get_double:
.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
	mov	rbx, rdi
	call	snd_kcontrol_chip@PLT
	mov	ebp, DWORD PTR [rbx]
	mov	rsi, r14
	mov	r13, rax
	mov	rdi, rax
	call	spin_lock_irqsave@PLT
	movzx	esi, bpl
	mov	rdi, r13
	mov	ebx, ebp
	call	snd_ad1816a_read@PLT
	mov	ecx, ebp
	sar	ebx, 16
	mov	rsi, QWORD PTR [r12]
	movzx	eax, ax
	sar	ecx, 8
	movzx	ebx, bl
	mov	rdi, r13
	and	ecx, 15
	mov	edx, eax
	sar	edx, cl
	mov	ecx, ebp
	sar	ecx, 12
	and	edx, ebx
	and	ecx, 15
	mov	WORD PTR [rsi], dx
	sar	eax, cl
	and	eax, ebx
	mov	WORD PTR 2[rsi], ax
	mov	rsi, r14
	call	spin_unlock_irqrestore@PLT
	shr	ebp, 24
	je	.L2
	mov	rax, QWORD PTR [r12]
	mov	edx, ebx
	sub	bx, WORD PTR 2[rax]
	sub	dx, WORD PTR [rax]
	mov	WORD PTR [rax], dx
	mov	WORD PTR 2[rax], bx
.L2:
	pop	rbx
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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_ad1816a_get_double, .-snd_ad1816a_get_double
	.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_ad1816a_lib.c_snd_ad1816a_get_double.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_ad1816a_get_double, %function
snd_ad1816a_get_double:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	mov	r4, r0
	bl	snd_kcontrol_chip
	mov	r8, #0
	mov	r7, r0
	ldr	r5, [r4]
	mov	r1, r8
	bl	spin_lock_irqsave
	and	r1, r5, #255
	mov	r0, r7
	bl	snd_ad1816a_read
	asr	r4, r5, #16
	asr	r3, r5, #8
	asr	r1, r5, #12
	ldr	ip, [r6]
	and	r4, r4, #255
	and	r1, r1, #15
	and	r3, r3, #15
	and	r3, r4, r0, asr r3
	and	r2, r4, r0, asr r1
	strh	r3, [ip]	@ movhi
	mov	r0, r7
	mov	r1, r8
	strh	r2, [ip, #2]	@ movhi
	bl	spin_unlock_irqrestore
	lsrs	r3, r5, #24
	beq	.L2
	ldr	r3, [r6]
	lsl	r4, r4, #16
	ldrh	r1, [r3]
	ldrh	r2, [r3, #2]
	rsb	r1, r1, r4, lsr #16
	rsb	r4, r2, r4, lsr #16
	strh	r1, [r3]	@ movhi
	strh	r4, [r3, #2]	@ movhi
.L2:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
	.size	snd_ad1816a_get_double, .-snd_ad1816a_get_double
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
