	.file	"extr_xlnx_spdif.c_xlnx_spdif_trigger.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xlnx_spdif_trigger, @function
xlnx_spdif_trigger:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR [rdx]
	call	dev_get_drvdata@PLT
	mov	rdi, QWORD PTR XSPDIF_CONTROL_REG[rip]
	add	rdi, QWORD PTR [rax]
	mov	rbp, rax
	call	readl@PLT
	cmp	ebx, 132
	jg	.L2
	cmp	ebx, 129
	jg	.L3
	add	ebx, -128
	cmp	ebx, 1
	ja	.L4
.L5:
	mov	edi, DWORD PTR XSPDIF_CORE_ENABLE_MASK[rip]
	mov	rsi, QWORD PTR XSPDIF_CONTROL_REG[rip]
	add	rsi, QWORD PTR 0[rbp]
	not	edi
	and	edi, eax
	call	writel@PLT
	xor	eax, eax
.L1:
	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
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	ebx, 133
	je	.L5
.L4:
	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
.L3:
	.cfi_restore_state
	or	eax, DWORD PTR XSPDIF_CORE_ENABLE_MASK[rip]
	mov	rsi, QWORD PTR XSPDIF_CONTROL_REG[rip]
	mov	edi, eax
	add	rsi, QWORD PTR 0[rbp]
	call	writel@PLT
	mov	ecx, DWORD PTR SNDRV_PCM_STREAM_CAPTURE[rip]
	xor	eax, eax
	cmp	DWORD PTR [r12], ecx
	jne	.L1
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, r13
	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
	jmp	rx_stream_detect@PLT
	.cfi_endproc
.LFE0:
	.size	xlnx_spdif_trigger, .-xlnx_spdif_trigger
	.comm	XSPDIF_CORE_ENABLE_MASK,4,4
	.comm	XSPDIF_CONTROL_REG,8,8
	.comm	SNDRV_PCM_STREAM_CAPTURE,4,4
	.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_xlnx_spdif.c_xlnx_spdif_trigger.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xlnx_spdif_trigger, %function
xlnx_spdif_trigger:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	ldr	r0, [r2]
	mov	r4, r1
	mov	r6, r2
	bl	dev_get_drvdata
	ldr	r8, .L14
	mov	r5, r0
	ldr	r3, [r8]
	ldr	r0, [r0]
	add	r0, r0, r3
	bl	readl
	cmp	r4, #132
	bgt	.L2
	cmp	r4, #129
	bgt	.L3
	sub	r4, r4, #128
	cmp	r4, #1
	bhi	.L4
.L5:
	ldr	r3, .L14+4
	ldr	r1, [r5]
	ldr	r2, [r8]
	ldr	r3, [r3]
	add	r1, r1, r2
	bic	r0, r0, r3
	bl	writel
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	cmp	r4, #133
	beq	.L5
.L4:
	ldr	r3, .L14+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r3, .L14+4
	ldr	r2, [r8]
	ldr	r3, [r3]
	ldr	r1, [r5]
	orr	r0, r0, r3
	add	r1, r1, r2
	bl	writel
	ldr	r3, .L14+12
	ldr	r2, [r7]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L13
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	rx_stream_detect
.L15:
	.align	2
.L14:
	.word	XSPDIF_CONTROL_REG
	.word	XSPDIF_CORE_ENABLE_MASK
	.word	EINVAL
	.word	SNDRV_PCM_STREAM_CAPTURE
	.size	xlnx_spdif_trigger, .-xlnx_spdif_trigger
	.comm	XSPDIF_CORE_ENABLE_MASK,4,4
	.comm	XSPDIF_CONTROL_REG,4,4
	.comm	SNDRV_PCM_STREAM_CAPTURE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
