	.file	"extr_ca0106_main.c_snd_ca0106_pcm_open_capture_channel.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_ca0106_pcm_open_capture_channel, @function
snd_ca0106_pcm_open_capture_channel:
.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
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	call	snd_pcm_substream_chip@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 24
	mov	r14, QWORD PTR [rbx]
	mov	r13, QWORD PTR [rax]
	mov	rbp, rax
	call	kzalloc@PLT
	test	rax, rax
	je	.L6
	mov	ecx, DWORD PTR snd_ca0106_pcm_free_substream[rip]
	movsx	rdx, r12d
	mov	QWORD PTR 16[rax], rbp
	mov	rdi, r14
	mov	QWORD PTR 8[rax], rbx
	lea	rdx, [rdx+rdx*2]
	mov	esi, DWORD PTR SNDRV_PCM_HW_PARAM_PERIODS[rip]
	mov	DWORD PTR [rax], r12d
	lea	rdx, 0[r13+rdx*8]
	mov	DWORD PTR 4[r14], ecx
	mov	ecx, DWORD PTR snd_ca0106_capture_hw[rip]
	mov	QWORD PTR 8[r14], rax
	mov	DWORD PTR [r14], ecx
	mov	QWORD PTR 16[rdx], rbp
	mov	DWORD PTR [rdx], r12d
	mov	DWORD PTR 4[rdx], 1
	mov	QWORD PTR 8[rdx], rax
	call	snd_pcm_hw_constraint_integer@PLT
	test	eax, eax
	js	.L1
	mov	edx, DWORD PTR SNDRV_PCM_HW_PARAM_PERIOD_BYTES[rip]
	xor	esi, esi
	mov	ecx, 64
	mov	rdi, r14
	call	snd_pcm_hw_constraint_step@PLT
	mov	edx, 0
	test	eax, eax
	cmovg	eax, edx
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L6:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.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
	.cfi_endproc
.LFE0:
	.size	snd_ca0106_pcm_open_capture_channel, .-snd_ca0106_pcm_open_capture_channel
	.comm	snd_ca0106_pcm_free_substream,4,4
	.comm	snd_ca0106_capture_hw,4,4
	.comm	SNDRV_PCM_HW_PARAM_PERIOD_BYTES,4,4
	.comm	SNDRV_PCM_HW_PARAM_PERIODS,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_ca0106_main.c_snd_ca0106_pcm_open_capture_channel.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_ca0106_pcm_open_capture_channel, %function
snd_ca0106_pcm_open_capture_channel:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r7, r0
	bl	snd_pcm_substream_chip
	mov	r5, r0
	ldr	r3, .L7
	mov	r0, #12
	ldr	r1, [r3]
	ldr	r6, [r5]
	ldr	r8, [r7]
	bl	kzalloc
	subs	r3, r0, #0
	beq	.L6
	mov	r0, #1
	ldr	r1, .L7+4
	ldr	r2, .L7+8
	ldr	r1, [r1]
	ldr	r2, [r2]
	str	r5, [r3, #8]
	stm	r3, {r4, r7}
	stmib	r8, {r1, r3}
	ldr	r1, .L7+12
	str	r2, [r8]
	add	r2, r6, r4, lsl #4
	str	r5, [r2, #12]
	ldr	r1, [r1]
	str	r4, [r6, r4, lsl #4]
	stmib	r2, {r0, r3}
	mov	r0, r8
	bl	snd_pcm_hw_constraint_integer
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L7+16
	mov	r0, r8
	ldr	r2, [r3]
	mov	r1, #0
	mov	r3, #64
	bl	snd_pcm_hw_constraint_step
	and	r0, r0, r0, asr #31
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r3, .L7+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	GFP_KERNEL
	.word	snd_ca0106_pcm_free_substream
	.word	snd_ca0106_capture_hw
	.word	SNDRV_PCM_HW_PARAM_PERIODS
	.word	SNDRV_PCM_HW_PARAM_PERIOD_BYTES
	.word	ENOMEM
	.size	snd_ca0106_pcm_open_capture_channel, .-snd_ca0106_pcm_open_capture_channel
	.comm	snd_ca0106_pcm_free_substream,4,4
	.comm	snd_ca0106_capture_hw,4,4
	.comm	SNDRV_PCM_HW_PARAM_PERIOD_BYTES,4,4
	.comm	SNDRV_PCM_HW_PARAM_PERIODS,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
