	.file	"extr_hda_codec.c_snd_hda_spdif_default_get.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_hda_spdif_default_get, @function
snd_hda_spdif_default_get:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	snd_kcontrol_chip@PLT
	xor	edi, edi
	mov	r13d, DWORD PTR [rbx]
	cmp	DWORD PTR 4[rax], r13d
	mov	rbp, rax
	setle	dil
	call	WARN_ON@PLT
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	mutex_lock@PLT
	lea	rdi, 4[rbp]
	mov	esi, r13d
	call	snd_array_elem@PLT
	mov	rdx, QWORD PTR [r12]
	mov	rdi, rbp
	movzx	ecx, BYTE PTR [rax]
	mov	DWORD PTR [rdx], ecx
	mov	ecx, DWORD PTR [rax]
	movzx	ecx, ch
	mov	DWORD PTR 4[rdx], ecx
	movzx	ecx, BYTE PTR 2[rax]
	mov	DWORD PTR 8[rdx], ecx
	mov	eax, DWORD PTR [rax]
	shr	eax, 24
	mov	DWORD PTR 12[rdx], eax
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	snd_hda_spdif_default_get, .-snd_hda_spdif_default_get
	.comm	EINVAL,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_hda_codec.c_snd_hda_spdif_default_get.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_hda_spdif_default_get, %function
snd_hda_spdif_default_get:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r5, r1
	bl	snd_kcontrol_chip
	ldr	r6, [r4]
	mov	r7, r0
	ldr	r0, [r0, #4]
	cmp	r0, r6
	movgt	r0, #0
	movle	r0, #1
	bl	WARN_ON
	subs	r4, r0, #0
	beq	.L2
	ldr	r3, .L6
	ldr	r0, [r3]
	rsb	r4, r0, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r7
	bl	mutex_lock
	mov	r1, r6
	add	r0, r7, #4
	bl	snd_array_elem
	mov	r3, r0
	ldrb	r1, [r0]	@ zero_extendqisi2
	ldr	r2, [r5]
	mov	r0, r7
	str	r1, [r2]
	ldrb	r1, [r3, #1]	@ zero_extendqisi2
	str	r1, [r2, #4]
	ldrb	r1, [r3, #2]	@ zero_extendqisi2
	str	r1, [r2, #8]
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	str	r3, [r2, #12]
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	.align	2
.L6:
	.word	EINVAL
	.size	snd_hda_spdif_default_get, .-snd_hda_spdif_default_get
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
