	.file	"extr_pcm.c_usb6fire_pcm_open.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"invalid stream type.\n"
	.text
	.p2align 4
	.type	usb6fire_pcm_open, @function
usb6fire_pcm_open:
.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
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	snd_pcm_substream_chip@PLT
	cmp	QWORD PTR 56[rax], 0
	je	.L2
	mov	eax, DWORD PTR EPIPE[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
	lea	r12, 8[rax]
	mov	r13, QWORD PTR 8[rbp]
	mov	rbx, rax
	mov	rdi, r12
	call	mutex_lock@PLT
	movdqu	xmm0, XMMWORD PTR pcm_hw[rip]
	mov	rax, QWORD PTR 0[rbp]
	cmp	rax, QWORD PTR SNDRV_PCM_STREAM_PLAYBACK[rip]
	movups	XMMWORD PTR 0[r13], xmm0
	je	.L11
	cmp	rax, QWORD PTR SNDRV_PCM_STREAM_CAPTURE[rip]
	jne	.L12
	mov	edi, DWORD PTR rates[rip]
	mov	r14, QWORD PTR [rbx]
	call	ARRAY_SIZE@PLT
	cmp	r14, rax
	jnb	.L8
	mov	rdx, QWORD PTR [rbx]
	mov	rax, QWORD PTR rates_alsaid[rip]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	QWORD PTR 8[r13], rax
.L8:
	mov	eax, DWORD PTR IN_N_CHANNELS[rip]
	add	rbx, 24
	mov	DWORD PTR 0[r13], eax
.L6:
	mov	QWORD PTR 8[rbx], rbp
	mov	rdi, r12
	mov	DWORD PTR [rbx], 0
	call	mutex_unlock@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
.L12:
	.cfi_restore_state
	mov	rdi, r12
	call	mutex_unlock@PLT
	mov	rax, QWORD PTR 16[rbx]
	lea	rsi, .LC0[rip]
	mov	rdi, QWORD PTR [rax]
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[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
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR rates[rip]
	mov	r14, QWORD PTR [rbx]
	call	ARRAY_SIZE@PLT
	cmp	r14, rax
	jnb	.L5
	mov	rdx, QWORD PTR [rbx]
	mov	rax, QWORD PTR rates_alsaid[rip]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	QWORD PTR 8[r13], rax
.L5:
	mov	eax, DWORD PTR OUT_N_CHANNELS[rip]
	add	rbx, 40
	mov	DWORD PTR 0[r13], eax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	usb6fire_pcm_open, .-usb6fire_pcm_open
	.comm	rates_alsaid,8,8
	.comm	rates,4,4
	.comm	pcm_hw,16,16
	.comm	SNDRV_PCM_STREAM_PLAYBACK,8,8
	.comm	SNDRV_PCM_STREAM_CAPTURE,8,8
	.comm	OUT_N_CHANNELS,4,4
	.comm	IN_N_CHANNELS,4,4
	.comm	EPIPE,4,4
	.comm	EINVAL,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_pcm.c_usb6fire_pcm_open.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"invalid stream type.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usb6fire_pcm_open, %function
usb6fire_pcm_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	bl	snd_pcm_substream_chip
	ldr	r5, [r0, #28]
	cmp	r5, #0
	beq	.L2
	ldr	r3, .L13
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	add	r6, r0, #4
	mov	r4, r0
	mov	r0, r6
	ldr	r8, [r7, #4]
	bl	mutex_lock
	ldr	r2, .L13+4
	ldr	r3, .L13+8
	ldr	ip, [r2]
	ldr	r2, [r7]
	ldm	r3, {r0, r1}
	cmp	r2, ip
	stm	r8, {r0, r1}
	beq	.L11
	ldr	r3, .L13+12
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L12
	ldr	r3, .L13+16
	ldr	r9, [r4]
	ldr	r0, [r3]
	bl	ARRAY_SIZE
	cmp	r9, r0
	ldrcc	r3, .L13+20
	ldrcc	r2, [r4]
	ldrcc	r3, [r3]
	add	r4, r4, #12
	ldrcc	r3, [r3, r2, lsl #2]
	strcc	r3, [r8, #4]
	ldr	r3, .L13+24
	ldr	r3, [r3]
	str	r3, [r8]
.L6:
	mov	r3, #0
	mov	r0, r6
	str	r7, [r4, #4]
	str	r3, [r4]
	bl	mutex_unlock
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	mov	r0, r6
	bl	mutex_unlock
	ldr	r3, [r4, #8]
	ldr	r1, .L13+28
	ldr	r0, [r3]
	bl	dev_err
	ldr	r3, .L13+32
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	ldr	r3, .L13+16
	ldr	r9, [r4]
	ldr	r0, [r3]
	bl	ARRAY_SIZE
	cmp	r9, r0
	ldrcc	r3, .L13+20
	ldrcc	r2, [r4]
	ldrcc	r3, [r3]
	add	r4, r4, #20
	ldrcc	r3, [r3, r2, lsl #2]
	strcc	r3, [r8, #4]
	ldr	r3, .L13+36
	ldr	r3, [r3]
	str	r3, [r8]
	b	.L6
.L14:
	.align	2
.L13:
	.word	EPIPE
	.word	SNDRV_PCM_STREAM_PLAYBACK
	.word	pcm_hw
	.word	SNDRV_PCM_STREAM_CAPTURE
	.word	rates
	.word	rates_alsaid
	.word	IN_N_CHANNELS
	.word	.LC0
	.word	EINVAL
	.word	OUT_N_CHANNELS
	.size	usb6fire_pcm_open, .-usb6fire_pcm_open
	.comm	rates_alsaid,4,4
	.comm	rates,4,4
	.comm	pcm_hw,8,4
	.comm	SNDRV_PCM_STREAM_PLAYBACK,4,4
	.comm	SNDRV_PCM_STREAM_CAPTURE,4,4
	.comm	OUT_N_CHANNELS,4,4
	.comm	IN_N_CHANNELS,4,4
	.comm	EPIPE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
