	.file	"extr_ali5451.c_snd_ali_enable_spdif_chnout.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_ali_enable_spdif_chnout, @function
snd_ali_enable_spdif_chnout:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR ALI_GLOBAL_CONTROL[rip]
	call	ALI_REG@PLT
	mov	edi, eax
	call	inw@PLT
	movzx	ebx, WORD PTR ALI_SPDIF_OUT_SEL_PCM[rip]
	mov	esi, DWORD PTR ALI_GLOBAL_CONTROL[rip]
	mov	rdi, rbp
	not	ebx
	and	ebx, eax
	call	ALI_REG@PLT
	movzx	edi, bx
	mov	esi, eax
	call	outw@PLT
	mov	esi, DWORD PTR ALI_SPDIF_OUT_CHANNEL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	snd_ali_enable_special_channel@PLT
	.cfi_endproc
.LFE0:
	.size	snd_ali_enable_spdif_chnout, .-snd_ali_enable_spdif_chnout
	.comm	ALI_SPDIF_OUT_SEL_PCM,2,2
	.comm	ALI_SPDIF_OUT_CHANNEL,4,4
	.comm	ALI_GLOBAL_CONTROL,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_ali5451.c_snd_ali_enable_spdif_chnout.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_ali_enable_spdif_chnout, %function
snd_ali_enable_spdif_chnout:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, .L4
	mov	r5, r0
	ldr	r1, [r6]
	bl	ALI_REG
	bl	inw
	mov	r4, r0
	ldr	r3, .L4+4
	ldr	r1, [r6]
	ldrh	r3, [r3]
	mov	r0, r5
	bic	r4, r4, r3
	bl	ALI_REG
	lsl	r4, r4, #16
	asr	r4, r4, #16
	mov	r1, r0
	lsl	r0, r4, #16
	lsr	r0, r0, #16
	bl	outw
	ldr	r3, .L4+8
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	ldr	r1, [r3]
	b	snd_ali_enable_special_channel
.L5:
	.align	2
.L4:
	.word	ALI_GLOBAL_CONTROL
	.word	ALI_SPDIF_OUT_SEL_PCM
	.word	ALI_SPDIF_OUT_CHANNEL
	.size	snd_ali_enable_spdif_chnout, .-snd_ali_enable_spdif_chnout
	.comm	ALI_SPDIF_OUT_SEL_PCM,2,2
	.comm	ALI_SPDIF_OUT_CHANNEL,4,4
	.comm	ALI_GLOBAL_CONTROL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
