	.file	"extr_tw686x-audio.c_tw686x_pcm_trigger.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tw686x_pcm_trigger, @function
tw686x_pcm_trigger:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, esi
	call	snd_pcm_substream_chip@PLT
	mov	rbp, rax
	mov	rax, QWORD PTR [r12]
	lea	rdx, [rax+rax*2]
	mov	rax, QWORD PTR 16[rbp]
	lea	r12, [rax+rdx*8]
	cmp	ebx, 128
	je	.L2
	cmp	ebx, 129
	jne	.L3
	mov	rax, QWORD PTR 8[r12]
	cmp	QWORD PTR [rax], 0
	je	.L4
	cmp	QWORD PTR 8[rax], 0
	je	.L4
	lea	r14, 4[rbp]
	xor	r13d, r13d
	mov	rsi, r13
	mov	rdi, r14
	call	spin_lock_irqsave@PLT
	mov	DWORD PTR 0[rbp], 1
	mov	rdi, rbp
	mov	rsi, QWORD PTR AUDIO_CHANNEL_OFFSET[rip]
	add	rsi, QWORD PTR 16[r12]
	call	tw686x_enable_channel@PLT
	mov	rsi, r13
	mov	rdi, r14
	call	spin_unlock_irqrestore@PLT
	mov	edi, 100
	call	msecs_to_jiffies@PLT
	add	rax, QWORD PTR jiffies[rip]
	lea	rdi, 8[rbp]
	mov	rsi, rax
	call	mod_timer@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	eax, DWORD PTR EIO[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	r13d, r13d
	lea	r14, 4[rbp]
	mov	rsi, r13
	mov	rdi, r14
	call	spin_lock_irqsave@PLT
	mov	DWORD PTR 0[rbp], 0
	mov	rdi, rbp
	mov	rsi, QWORD PTR AUDIO_CHANNEL_OFFSET[rip]
	add	rsi, QWORD PTR 16[r12]
	call	tw686x_disable_channel@PLT
	mov	rsi, r13
	mov	rdi, r14
	call	spin_unlock_irqrestore@PLT
	mov	rsi, r13
	mov	rdi, r12
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR 8[r12]
	mov	rsi, r13
	mov	rdi, r12
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	call	spin_unlock_irqrestore@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	tw686x_pcm_trigger, .-tw686x_pcm_trigger
	.comm	jiffies,8,8
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	AUDIO_CHANNEL_OFFSET,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_tw686x-audio.c_tw686x_pcm_trigger.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tw686x_pcm_trigger, %function
tw686x_pcm_trigger:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r5, r1
	bl	snd_pcm_substream_chip
	ldr	r3, [r6]
	ldr	r6, [r0, #12]
	add	r3, r3, r3, lsl #1
	cmp	r5, #128
	mov	r4, r0
	add	r6, r6, r3, lsl #2
	beq	.L2
	cmp	r5, #129
	bne	.L3
	ldr	r3, [r6, #4]
	ldr	r2, [r3]
	cmp	r2, #0
	beq	.L4
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L4
	mov	r7, #0
	add	r5, r0, #4
	mov	r1, r7
	mov	r0, r5
	bl	spin_lock_irqsave
	mov	r2, #1
	ldr	r3, .L14
	ldr	r1, [r6, #8]
	ldr	r3, [r3]
	mov	r0, r4
	str	r2, [r4]
	add	r1, r1, r3
	bl	tw686x_enable_channel
	mov	r1, r7
	mov	r0, r5
	bl	spin_unlock_irqrestore
	mov	r0, #100
	bl	msecs_to_jiffies
	mov	r1, r0
	ldr	r3, .L14+4
	add	r0, r4, #8
	ldr	r3, [r3]
	add	r1, r1, r3
	bl	mod_timer
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r3, .L14+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r7, #0
	add	r8, r0, #4
	mov	r1, r7
	mov	r0, r8
	bl	spin_lock_irqsave
	ldr	r3, .L14
	ldr	r1, [r6, #8]
	ldr	r3, [r3]
	mov	r0, r4
	add	r1, r1, r3
	str	r7, [r4]
	bl	tw686x_disable_channel
	mov	r1, r7
	mov	r0, r8
	bl	spin_unlock_irqrestore
	mov	r1, r7
	mov	r0, r6
	bl	spin_lock_irqsave
	ldr	r3, [r6, #4]
	mov	r1, r7
	mov	r0, r6
	str	r7, [r3]
	str	r7, [r3, #4]
	bl	spin_unlock_irqrestore
	mov	r5, r7
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r3, .L14+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	.align	2
.L14:
	.word	AUDIO_CHANNEL_OFFSET
	.word	jiffies
	.word	EIO
	.word	EINVAL
	.size	tw686x_pcm_trigger, .-tw686x_pcm_trigger
	.comm	jiffies,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	AUDIO_CHANNEL_OFFSET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
