	.file	"extr_harmony.c_snd_harmony_capture_trigger.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_harmony_capture_trigger, @function
snd_harmony_capture_trigger:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	snd_pcm_substream_chip@PLT
	cmp	QWORD PTR 16[rax], 0
	je	.L2
	mov	eax, DWORD PTR EBUSY[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rax
	mov	rbp, rax
	call	spin_lock@PLT
	cmp	ebx, 129
	je	.L4
	cmp	ebx, 130
	jne	.L5
	mov	DWORD PTR 8[rbp], 1
	mov	edx, DWORD PTR 28[rbp]
	mov	rdi, rbp
	mov	esi, DWORD PTR HARMONY_PNXTADD[rip]
	call	harmony_write@PLT
	mov	edx, DWORD PTR 24[rbp]
	mov	esi, DWORD PTR HARMONY_RNXTADD[rip]
	mov	rdi, rbp
	call	harmony_write@PLT
	mov	rdi, rbp
	call	harmony_unmute@PLT
	mov	rdi, rbp
	call	harmony_enable_interrupts@PLT
.L6:
	mov	rdi, rbp
	call	spin_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	DWORD PTR 8[rbp], 0
	mov	rdi, rbp
	call	harmony_mute@PLT
	mov	edx, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR HARMONY_RNXTADD[rip]
	mov	rdi, rbp
	call	harmony_write@PLT
	mov	rdi, rbp
	call	harmony_disable_interrupts@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbp
	call	spin_unlock@PLT
	xor	eax, eax
	call	snd_BUG@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	snd_harmony_capture_trigger, .-snd_harmony_capture_trigger
	.comm	HARMONY_RNXTADD,4,4
	.comm	HARMONY_PNXTADD,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,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_harmony.c_snd_harmony_capture_trigger.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_harmony_capture_trigger, %function
snd_harmony_capture_trigger:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r1
	bl	snd_pcm_substream_chip
	ldr	r5, [r0, #12]
	cmp	r5, #0
	beq	.L2
	ldr	r3, .L9
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L2:
	mov	r4, r0
	bl	spin_lock
	cmp	r6, #129
	beq	.L4
	cmp	r6, #130
	bne	.L5
	mov	r2, #1
	ldr	r3, .L9+4
	str	r2, [r4, #8]
	ldr	r1, [r3]
	ldr	r2, [r4, #20]
	mov	r0, r4
	bl	harmony_write
	ldr	r3, .L9+8
	ldr	r2, [r4, #16]
	ldr	r1, [r3]
	mov	r0, r4
	bl	harmony_write
	mov	r0, r4
	bl	harmony_unmute
	mov	r0, r4
	bl	harmony_enable_interrupts
.L6:
	mov	r0, r4
	bl	spin_unlock
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L4:
	mov	r0, r4
	str	r5, [r4, #8]
	bl	harmony_mute
	ldr	r3, .L9+8
	mov	r0, r4
	ldr	r2, [r4, #4]
	ldr	r1, [r3]
	bl	harmony_write
	mov	r0, r4
	bl	harmony_disable_interrupts
	b	.L6
.L5:
	mov	r0, r4
	bl	spin_unlock
	bl	snd_BUG
	ldr	r3, .L9+12
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	EBUSY
	.word	HARMONY_PNXTADD
	.word	HARMONY_RNXTADD
	.word	EINVAL
	.size	snd_harmony_capture_trigger, .-snd_harmony_capture_trigger
	.comm	HARMONY_RNXTADD,4,4
	.comm	HARMONY_PNXTADD,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
