	.file	"extr_channel.c_chn_abort.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	chn_abort
	.type	chn_abort, @function
chn_abort:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	r12, QWORD PTR 16[rdi]
	mov	rbp, QWORD PTR 8[rdi]
	call	CHN_LOCKASSERT@PLT
	mov	rdi, rbx
	call	CHN_STOPPED@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	je	.L8
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edx, DWORD PTR CHN_F_TRIGGERED[rip]
	mov	eax, DWORD PTR [rbx]
	mov	rdi, rbx
	or	eax, DWORD PTR CHN_F_ABORTING[rip]
	mov	esi, DWORD PTR PCMTRIG_ABORT[rip]
	not	edx
	and	eax, edx
	mov	DWORD PTR [rbx], eax
	call	chn_trigger@PLT
	xor	esi, esi
	mov	rdi, r12
	call	sndbuf_setrun@PLT
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR CHN_F_VIRTUAL[rip], eax
	je	.L9
.L3:
	mov	rdi, rbp
	call	sndbuf_getready@PLT
	mov	edx, DWORD PTR CHN_F_ABORTING[rip]
	not	edx
	and	DWORD PTR [rbx], edx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, rbx
	call	chn_dmaupdate@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	chn_abort, .-chn_abort
	.comm	PCMTRIG_ABORT,4,4
	.comm	CHN_F_VIRTUAL,4,4
	.comm	CHN_F_TRIGGERED,4,4
	.comm	CHN_F_ABORTING,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_channel.c_chn_abort.c"
	.text
	.align	2
	.global	chn_abort
	.syntax unified
	.arm
	.fpu softvfp
	.type	chn_abort, %function
chn_abort:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldmib	r0, {r6, r7}
	mov	r4, r0
	bl	CHN_LOCKASSERT
	mov	r0, r4
	bl	CHN_STOPPED
	subs	r5, r0, #0
	beq	.L7
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r8, .L9
	ldr	r1, .L9+4
	ldr	r2, [r8]
	ldr	r3, [r4]
	ldr	r1, [r1]
	orr	r3, r3, r2
	ldr	r2, .L9+8
	bic	r3, r3, r1
	str	r3, [r4]
	ldr	r1, [r2]
	mov	r0, r4
	bl	chn_trigger
	mov	r1, r5
	mov	r0, r7
	bl	sndbuf_setrun
	ldr	r3, .L9+12
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L8
.L3:
	mov	r0, r6
	bl	sndbuf_getready
	ldr	r2, [r8]
	ldr	r3, [r4]
	bic	r3, r3, r2
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r0, r4
	bl	chn_dmaupdate
	b	.L3
.L10:
	.align	2
.L9:
	.word	CHN_F_ABORTING
	.word	CHN_F_TRIGGERED
	.word	PCMTRIG_ABORT
	.word	CHN_F_VIRTUAL
	.size	chn_abort, .-chn_abort
	.comm	PCMTRIG_ABORT,4,4
	.comm	CHN_F_VIRTUAL,4,4
	.comm	CHN_F_TRIGGERED,4,4
	.comm	CHN_F_ABORTING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
