	.file	"extr_spdif_out.c_spdif_out_trigger.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	spdif_out_trigger, @function
spdif_out_trigger:
.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
	mov	rbp, rdi
	mov	rdi, rdx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	call	snd_soc_dai_get_drvdata@PLT
	mov	r12, rax
	mov	rax, QWORD PTR SNDRV_PCM_STREAM_PLAYBACK[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L6
	cmp	ebx, 132
	jg	.L4
	cmp	ebx, 129
	jg	.L5
	add	ebx, -128
	cmp	ebx, 1
	jbe	.L7
.L6:
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	cmp	ebx, 133
	jne	.L6
.L7:
	mov	rdi, QWORD PTR SPDIF_OUT_CTRL[rip]
	add	rdi, QWORD PTR [r12]
	call	readl@PLT
	mov	edi, DWORD PTR SPDIF_OPMODE_MASK[rip]
	mov	rsi, QWORD PTR SPDIF_OUT_CTRL[rip]
	add	rsi, QWORD PTR [r12]
	not	edi
	and	edi, eax
	or	edi, DWORD PTR SPDIF_OPMODE_OFF[rip]
	call	writel@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, QWORD PTR SPDIF_OUT_CTRL[rip]
	add	rdi, QWORD PTR [r12]
	call	readl@PLT
	mov	edi, DWORD PTR SPDIF_OPMODE_MASK[rip]
	not	edi
	and	edi, eax
	mov	eax, DWORD PTR 8[r12]
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR SPDIF_OPMODE_AUD_DATA[rip]
	or	eax, DWORD PTR SPDIF_STATE_NORMAL[rip]
	or	edi, eax
.L9:
	mov	rsi, QWORD PTR SPDIF_OUT_CTRL[rip]
	add	rsi, QWORD PTR [r12]
	call	writel@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	or	edi, DWORD PTR SPDIF_OPMODE_MUTE_PCM[rip]
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	spdif_out_trigger, .-spdif_out_trigger
	.comm	SPDIF_STATE_NORMAL,4,4
	.comm	SPDIF_OUT_CTRL,8,8
	.comm	SPDIF_OPMODE_OFF,4,4
	.comm	SPDIF_OPMODE_MUTE_PCM,4,4
	.comm	SPDIF_OPMODE_MASK,4,4
	.comm	SPDIF_OPMODE_AUD_DATA,4,4
	.comm	SNDRV_PCM_STREAM_PLAYBACK,8,8
	.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_spdif_out.c_spdif_out_trigger.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	spdif_out_trigger, %function
spdif_out_trigger:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r0, r2
	mov	r4, r1
	bl	snd_soc_dai_get_drvdata
	ldr	r3, .L15
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L6
	cmp	r4, #132
	mov	r5, r0
	bgt	.L4
	cmp	r4, #129
	bgt	.L5
	sub	r4, r4, #128
	cmp	r4, #1
	bhi	.L6
.L7:
	ldr	r4, .L15+4
	ldr	r0, [r5]
	ldr	r3, [r4]
	add	r0, r0, r3
	bl	readl
	ldr	r2, .L15+8
	ldr	r3, .L15+12
	ldr	ip, [r2]
	ldr	r1, [r5]
	ldr	r2, [r4]
	ldr	r3, [r3]
	bic	r0, r0, ip
	add	r1, r1, r2
	orr	r0, r0, r3
	bl	writel
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L4:
	cmp	r4, #133
	beq	.L7
.L6:
	ldr	r3, .L15+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r4, .L15+4
	ldr	r0, [r0]
	ldr	r3, [r4]
	add	r0, r0, r3
	bl	readl
	ldr	r3, .L15+8
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	cmp	r2, #0
	bic	r0, r0, r3
	ldreq	r2, .L15+20
	ldreq	r3, .L15+24
	ldrne	r3, .L15+28
	ldreq	r3, [r3]
	ldreq	r2, [r2]
	ldrne	r3, [r3]
	orreq	r3, r3, r2
	ldr	r1, [r5]
	orr	r0, r0, r3
	ldr	r3, [r4]
	add	r1, r1, r3
	bl	writel
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L16:
	.align	2
.L15:
	.word	SNDRV_PCM_STREAM_PLAYBACK
	.word	SPDIF_OUT_CTRL
	.word	SPDIF_OPMODE_MASK
	.word	SPDIF_OPMODE_OFF
	.word	EINVAL
	.word	SPDIF_STATE_NORMAL
	.word	SPDIF_OPMODE_AUD_DATA
	.word	SPDIF_OPMODE_MUTE_PCM
	.size	spdif_out_trigger, .-spdif_out_trigger
	.comm	SPDIF_STATE_NORMAL,4,4
	.comm	SPDIF_OUT_CTRL,4,4
	.comm	SPDIF_OPMODE_OFF,4,4
	.comm	SPDIF_OPMODE_MUTE_PCM,4,4
	.comm	SPDIF_OPMODE_MASK,4,4
	.comm	SPDIF_OPMODE_AUD_DATA,4,4
	.comm	SNDRV_PCM_STREAM_PLAYBACK,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
