	.file	"extr_emu10k1.c_emupchan_trigger.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	emupchan_trigger, @function
emupchan_trigger:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edi, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	mov	r12, QWORD PTR 24[rsi]
	call	PCMTRIG_COMMON@PLT
	test	eax, eax
	jne	.L9
	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
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR [r12]
	call	snd_mtxlock@PLT
	mov	eax, DWORD PTR PCMTRIG_START[rip]
	cmp	eax, ebp
	je	.L10
.L3:
	xor	edx, edx
	cmp	ebp, eax
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdi, r12
	sete	dl
	mov	DWORD PTR [rbx], edx
	call	emu_vtrigger@PLT
	mov	edi, DWORD PTR [r12]
	call	snd_mtxunlock@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
.L10:
	.cfi_restore_state
	mov	rdi, rbx
	call	emu_vsetup@PLT
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdi, r12
	call	emu_vwrite@PLT
	mov	rdi, r12
	call	emu_settimer@PLT
	mov	esi, 1
	mov	rdi, r12
	call	emu_enatimer@PLT
	mov	eax, DWORD PTR PCMTRIG_START[rip]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	emupchan_trigger, .-emupchan_trigger
	.comm	PCMTRIG_START,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_emu10k1.c_emupchan_trigger.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	emupchan_trigger, %function
emupchan_trigger:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r0, r2
	mov	r4, r2
	mov	r5, r1
	ldr	r6, [r1, #12]
	bl	PCMTRIG_COMMON
	cmp	r0, #0
	bne	.L9
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r7, .L11
	ldr	r0, [r6]
	bl	snd_mtxlock
	ldr	r2, [r7]
	cmp	r2, r4
	beq	.L10
.L3:
	sub	r2, r4, r2
	clz	r2, r2
	lsr	r2, r2, #5
	ldr	r1, [r5, #4]
	str	r2, [r5]
	mov	r0, r6
	bl	emu_vtrigger
	ldr	r0, [r6]
	bl	snd_mtxunlock
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r0, r5
	bl	emu_vsetup
	ldr	r1, [r5, #4]
	mov	r0, r6
	bl	emu_vwrite
	mov	r0, r6
	bl	emu_settimer
	mov	r1, #1
	mov	r0, r6
	bl	emu_enatimer
	ldr	r2, [r7]
	b	.L3
.L12:
	.align	2
.L11:
	.word	PCMTRIG_START
	.size	emupchan_trigger, .-emupchan_trigger
	.comm	PCMTRIG_START,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
