	.file	"extr_emumixer.c_snd_emu10k1_shared_spdif_put.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_emu10k1_shared_spdif_put, @function
snd_emu10k1_shared_spdif_put:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	call	snd_kcontrol_chip@PLT
	mov	rbp, rax
	mov	rax, QWORD PTR [rbx]
	mov	ebx, DWORD PTR [rax]
	mov	rax, QWORD PTR 24[rbp]
	cmp	QWORD PTR 8[rax], 0
	je	.L2
	test	ebx, ebx
	sete	bl
	movzx	ebx, bl
.L2:
	xor	esi, esi
	mov	rdi, rbp
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR 24[rbp]
	mov	rdi, QWORD PTR 8[rbp]
	cmp	QWORD PTR [rax], 0
	jne	.L4
	cmp	QWORD PTR 16[rbp], 0
	jne	.L24
.L4:
	add	rdi, QWORD PTR HCFG[rip]
	call	inl@PLT
	test	ebx, ebx
	jne	.L15
.L14:
	mov	edi, DWORD PTR HCFG_GPOUT0[rip]
	xor	r12d, r12d
	xor	ebx, ebx
.L11:
	mov	edx, eax
	and	edx, edi
	cmp	edx, ebx
	setne	dl
	movzx	edx, dl
	or	r12d, edx
	jne	.L13
.L12:
	mov	rdi, rbp
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.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
.L15:
	.cfi_restore_state
	xor	r12d, r12d
.L10:
	mov	ebx, DWORD PTR HCFG_GPOUT0[rip]
	mov	edi, ebx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L24:
	add	rdi, QWORD PTR A_IOCFG[rip]
	call	inl@PLT
	mov	edi, DWORD PTR A_IOCFG_GPOUT0[rip]
	mov	rsi, QWORD PTR 8[rbp]
	test	ebx, ebx
	jne	.L5
	test	eax, edi
	je	.L19
	not	edi
	add	rsi, QWORD PTR A_IOCFG[rip]
	and	edi, eax
	call	outl@PLT
	mov	rdi, QWORD PTR 8[rbp]
	add	rdi, QWORD PTR HCFG[rip]
	call	inl@PLT
	mov	edi, DWORD PTR HCFG_GPOUT0[rip]
	.p2align 4,,10
	.p2align 3
.L13:
	not	edi
	mov	rsi, QWORD PTR HCFG[rip]
	add	rsi, QWORD PTR 8[rbp]
	mov	r12d, 1
	and	eax, edi
	or	eax, ebx
	mov	edi, eax
	call	outl@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edx, eax
	and	edx, edi
	cmp	edi, edx
	jne	.L25
	add	rsi, QWORD PTR HCFG[rip]
	xor	r12d, r12d
	mov	rdi, rsi
	call	inl@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L19:
	add	rsi, QWORD PTR HCFG[rip]
	mov	rdi, rsi
	call	inl@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L25:
	add	rsi, QWORD PTR A_IOCFG[rip]
	or	edi, eax
	mov	r12d, 1
	call	outl@PLT
	mov	rdi, QWORD PTR 8[rbp]
	add	rdi, QWORD PTR HCFG[rip]
	call	inl@PLT
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	snd_emu10k1_shared_spdif_put, .-snd_emu10k1_shared_spdif_put
	.comm	HCFG_GPOUT0,4,4
	.comm	HCFG,8,8
	.comm	A_IOCFG_GPOUT0,4,4
	.comm	A_IOCFG,8,8
	.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_emumixer.c_snd_emu10k1_shared_spdif_put.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_emu10k1_shared_spdif_put, %function
snd_emu10k1_shared_spdif_put:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	bl	snd_kcontrol_chip
	ldr	r3, [r0, #12]
	ldr	r2, [r5]
	ldr	r3, [r3, #4]
	ldr	r6, [r2]
	cmp	r3, #0
	clzne	r6, r6
	mov	r4, r0
	mov	r1, #0
	lsrne	r6, r6, #5
	bl	spin_lock_irqsave
	ldr	r3, [r4, #12]
	ldr	r5, [r3]
	cmp	r5, #0
	bne	.L3
	ldr	r2, [r4, #8]
	ldr	r3, [r4, #4]
	cmp	r2, #0
	bne	.L30
.L4:
	ldr	r7, .L32
	ldr	r0, [r7]
	add	r0, r3, r0
	bl	inl
	cmp	r6, #0
	bne	.L15
.L14:
	mov	r5, #0
	mov	r6, r5
	ldr	r3, .L32+4
	ldr	r3, [r3]
.L11:
	and	r2, r0, r3
	cmp	r2, r6
	orrne	r5, r5, #1
	cmp	r5, #0
	bne	.L13
.L12:
	mov	r0, r4
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r3, [r4, #4]
	b	.L4
.L15:
	mov	r5, #0
.L10:
	ldr	r3, .L32+4
	ldr	r6, [r3]
	mov	r3, r6
	b	.L11
.L30:
	ldr	r7, .L32+8
	ldr	r0, [r7]
	add	r0, r3, r0
	bl	inl
	ldr	r3, .L32+12
	cmp	r6, #0
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	bne	.L5
	tst	r0, r3
	beq	.L25
	ldr	r1, [r7]
	ldr	r7, .L32
	add	r1, r2, r1
	bic	r0, r0, r3
	bl	outl
	ldr	r3, [r4, #4]
	ldr	r0, [r7]
	add	r0, r0, r3
	bl	inl
	ldr	r3, .L32+4
	ldr	r3, [r3]
.L13:
	ldr	r2, [r7]
	ldr	r1, [r4, #4]
	bic	r0, r0, r3
	orr	r0, r0, r6
	add	r1, r1, r2
	bl	outl
	mov	r5, #1
	b	.L12
.L5:
	bics	r1, r3, r0
	bne	.L31
	ldr	r7, .L32
	ldr	r0, [r7]
	add	r0, r2, r0
	bl	inl
	b	.L10
.L25:
	ldr	r7, .L32
	ldr	r0, [r7]
	add	r0, r2, r0
	bl	inl
	b	.L14
.L31:
	ldr	r1, [r7]
	ldr	r7, .L32
	add	r1, r2, r1
	orr	r0, r0, r3
	bl	outl
	ldr	r0, [r7]
	ldr	r3, [r4, #4]
	mov	r5, #1
	add	r0, r0, r3
	bl	inl
	b	.L10
.L33:
	.align	2
.L32:
	.word	HCFG
	.word	HCFG_GPOUT0
	.word	A_IOCFG
	.word	A_IOCFG_GPOUT0
	.size	snd_emu10k1_shared_spdif_put, .-snd_emu10k1_shared_spdif_put
	.comm	HCFG_GPOUT0,4,4
	.comm	HCFG,4,4
	.comm	A_IOCFG_GPOUT0,4,4
	.comm	A_IOCFG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
