	.file	"extr_awacs.c_snd_pmac_awacs_get_switch.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_pmac_awacs_get_switch, @function
snd_pmac_awacs_get_switch:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	snd_kcontrol_chip@PLT
	mov	ebp, DWORD PTR 0[rbp]
	mov	rsi, r14
	lea	r13, 8[rax]
	mov	rbx, rax
	mov	rdi, r13
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR [rbx]
	movzx	edx, bpl
	mov	ecx, ebp
	movzx	ecx, ch
	mov	rsi, r14
	mov	rdi, r13
	mov	ebx, DWORD PTR [rax+rdx*4]
	sar	ebx, cl
	call	spin_unlock_irqrestore@PLT
	and	ebx, 1
	mov	eax, 1
	sub	eax, ebx
	and	ebp, 65536
	cmovne	ebx, eax
	mov	rax, QWORD PTR [r12]
	mov	DWORD PTR [rax], ebx
	xor	eax, eax
	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_pmac_awacs_get_switch, .-snd_pmac_awacs_get_switch
	.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_awacs.c_snd_pmac_awacs_get_switch.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_pmac_awacs_get_switch, %function
snd_pmac_awacs_get_switch:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r6, r0
	bl	snd_kcontrol_chip
	mov	r7, #0
	mov	r4, r0
	add	r8, r0, #4
	ldr	r6, [r6]
	mov	r1, r7
	mov	r0, r8
	bl	spin_lock_irqsave
	ldr	r3, [r4]
	and	r2, r6, #255
	ldr	r4, [r3, r2, lsl #2]
	asr	r3, r6, #8
	and	r3, r3, #255
	asr	r4, r4, r3
	mov	r0, r8
	mov	r1, r7
	bl	spin_unlock_irqrestore
	and	r4, r4, #1
	ldr	r3, [r5]
	tst	r6, #65536
	rsbne	r4, r4, #1
	mov	r0, #0
	str	r4, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
	.size	snd_pmac_awacs_get_switch, .-snd_pmac_awacs_get_switch
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
