	.file	"extr_ice1724.c_snd_vt1724_spdif_sw_put.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_vt1724_spdif_sw_put, @function
snd_vt1724_spdif_sw_put:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	snd_kcontrol_chip@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	spin_lock_irq@PLT
	mov	esi, DWORD PTR SPDIF_CFG[rip]
	mov	rdi, rbp
	call	ICEREG1724@PLT
	mov	edi, eax
	call	inb@PLT
	movzx	ebx, BYTE PTR VT1724_CFG_SPDIF_OUT_EN[rip]
	mov	rdx, QWORD PTR 0[r13]
	mov	r12d, eax
	mov	eax, ebx
	not	eax
	and	eax, r12d
	or	ebx, eax
	cmp	QWORD PTR [rdx], 0
	cmove	ebx, eax
	cmp	bl, r12b
	je	.L3
	mov	esi, DWORD PTR SPDIF_CFG[rip]
	mov	rdi, rbp
	call	ICEREG1724@PLT
	movzx	edi, bl
	mov	esi, eax
	call	outb@PLT
.L3:
	mov	rdi, rbp
	call	spin_unlock_irq@PLT
	xor	eax, eax
	cmp	bl, r12b
	setne	al
	add	rsp, 8
	.cfi_def_cfa_offset 40
	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_vt1724_spdif_sw_put, .-snd_vt1724_spdif_sw_put
	.comm	VT1724_CFG_SPDIF_OUT_EN,1,1
	.comm	SPDIF_CFG,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_ice1724.c_snd_vt1724_spdif_sw_put.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_vt1724_spdif_sw_put, %function
snd_vt1724_spdif_sw_put:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	bl	snd_kcontrol_chip
	mov	r6, r0
	ldr	r7, .L9
	bl	spin_lock_irq
	ldr	r1, [r7]
	mov	r0, r6
	bl	ICEREG1724
	bl	inb
	ldr	r3, .L9+4
	ldr	r2, [r4]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r2, [r2]
	bic	r4, r0, r3
	cmp	r2, #0
	and	r4, r4, #255
	orrne	r4, r3, r4
	cmp	r4, r0
	mov	r5, r0
	beq	.L3
	ldr	r1, [r7]
	mov	r0, r6
	bl	ICEREG1724
	mov	r1, r0
	mov	r0, r4
	bl	outb
.L3:
	mov	r0, r6
	bl	spin_unlock_irq
	subs	r0, r4, r5
	movne	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	SPDIF_CFG
	.word	VT1724_CFG_SPDIF_OUT_EN
	.size	snd_vt1724_spdif_sw_put, .-snd_vt1724_spdif_sw_put
	.comm	VT1724_CFG_SPDIF_OUT_EN,1,1
	.comm	SPDIF_CFG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
