	.file	"extr_trident_main.c_snd_trident_foldback_open.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_trident_foldback_open, @function
snd_trident_foldback_open:
.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	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	snd_pcm_substream_chip@PLT
	mov	esi, DWORD PTR SNDRV_TRIDENT_VOICE_TYPE_PCM[rip]
	xor	ecx, ecx
	xor	edx, edx
	mov	rdi, rax
	mov	rbp, QWORD PTR 8[rbx]
	call	snd_trident_alloc_voice@PLT
	test	rax, rax
	je	.L6
	mov	edx, DWORD PTR [rbx]
	mov	QWORD PTR [rax], rbx
	mov	rdi, rbp
	mov	ecx, 65536
	mov	esi, DWORD PTR SNDRV_PCM_HW_PARAM_BUFFER_SIZE[rip]
	mov	DWORD PTR 8[rax], edx
	xor	edx, edx
	mov	QWORD PTR 8[rbp], rax
	mov	eax, DWORD PTR snd_trident_pcm_free_substream[rip]
	mov	DWORD PTR 4[rbp], eax
	mov	eax, DWORD PTR snd_trident_foldback[rip]
	mov	DWORD PTR 0[rbp], eax
	call	snd_pcm_hw_constraint_minmax@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
.L6:
	.cfi_restore_state
	mov	eax, DWORD PTR EAGAIN[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_trident_foldback_open, .-snd_trident_foldback_open
	.comm	snd_trident_pcm_free_substream,4,4
	.comm	snd_trident_foldback,4,4
	.comm	SNDRV_TRIDENT_VOICE_TYPE_PCM,4,4
	.comm	SNDRV_PCM_HW_PARAM_BUFFER_SIZE,4,4
	.comm	EAGAIN,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_trident_main.c_snd_trident_foldback_open.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_trident_foldback_open, %function
snd_trident_foldback_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	snd_pcm_substream_chip
	mov	r3, #0
	ldr	r1, .L7
	mov	r2, r3
	ldr	r1, [r1]
	ldr	r5, [r4, #4]
	bl	snd_trident_alloc_voice
	subs	r3, r0, #0
	beq	.L6
	ldr	r1, .L7+4
	ldr	r2, .L7+8
	ldr	r0, [r1]
	ldr	r1, [r4]
	ldr	r2, [r2]
	str	r1, [r3, #4]
	ldr	r1, .L7+12
	str	r4, [r3]
	ldr	r1, [r1]
	stmib	r5, {r0, r3}
	str	r2, [r5]
	mov	r0, r5
	mov	r3, #65536
	mov	r2, #0
	bl	snd_pcm_hw_constraint_minmax
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r3, .L7+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	SNDRV_TRIDENT_VOICE_TYPE_PCM
	.word	snd_trident_pcm_free_substream
	.word	snd_trident_foldback
	.word	SNDRV_PCM_HW_PARAM_BUFFER_SIZE
	.word	EAGAIN
	.size	snd_trident_foldback_open, .-snd_trident_foldback_open
	.comm	snd_trident_pcm_free_substream,4,4
	.comm	snd_trident_foldback,4,4
	.comm	SNDRV_TRIDENT_VOICE_TYPE_PCM,4,4
	.comm	SNDRV_PCM_HW_PARAM_BUFFER_SIZE,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
