	.file	"extr_cobalt-alsa-pcm.c_snd_cobalt_pcm_capture_open.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_cobalt_pcm_capture_open, @function
snd_cobalt_pcm_capture_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12, QWORD PTR [rdi]
	call	snd_pcm_substream_chip@PLT
	mov	esi, DWORD PTR SNDRV_PCM_HW_PARAM_PERIODS[rip]
	mov	r13, QWORD PTR 16[rax]
	mov	rbx, rax
	mov	eax, DWORD PTR snd_cobalt_hdmi_capture[rip]
	mov	rdi, r12
	mov	DWORD PTR 8[r12], eax
	call	snd_pcm_hw_constraint_integer@PLT
	mov	eax, DWORD PTR [rbx]
	mov	QWORD PTR 8[rbx], rbp
	mov	QWORD PTR [r12], r13
	lea	edx, 1[rax]
	xor	eax, eax
	mov	DWORD PTR [rbx], edx
	cmp	edx, 1
	je	.L9
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	ecx, DWORD PTR 0[r13]
	mov	esi, DWORD PTR alsa_fnc[rip]
	lea	rdi, 4[r13]
	mov	rdx, r13
	call	vb2_thread_start@PLT
	test	eax, eax
	je	.L1
	sub	DWORD PTR [rbx], 1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	snd_cobalt_pcm_capture_open, .-snd_cobalt_pcm_capture_open
	.comm	snd_cobalt_hdmi_capture,4,4
	.comm	alsa_fnc,4,4
	.comm	SNDRV_PCM_HW_PARAM_PERIODS,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_cobalt-alsa-pcm.c_snd_cobalt_pcm_capture_open.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_cobalt_pcm_capture_open, %function
snd_cobalt_pcm_capture_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r0]
	mov	r5, r0
	bl	snd_pcm_substream_chip
	mov	r4, r0
	ldr	r3, .L10
	ldr	r2, .L10+4
	ldr	r3, [r3]
	ldr	r7, [r0, #8]
	ldr	r1, [r2]
	str	r3, [r6, #4]
	mov	r0, r6
	bl	snd_pcm_hw_constraint_integer
	ldr	r3, [r4]
	str	r5, [r4, #4]
	add	r3, r3, #1
	cmp	r3, #1
	str	r7, [r6]
	str	r3, [r4]
	beq	.L9
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	mov	r0, r7
	ldr	r1, .L10+8
	ldr	r3, [r0], #4
	mov	r2, r7
	ldr	r1, [r1]
	bl	vb2_thread_start
	cmp	r0, #0
	ldrne	r3, [r4]
	subne	r3, r3, #1
	strne	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	snd_cobalt_hdmi_capture
	.word	SNDRV_PCM_HW_PARAM_PERIODS
	.word	alsa_fnc
	.size	snd_cobalt_pcm_capture_open, .-snd_cobalt_pcm_capture_open
	.comm	snd_cobalt_hdmi_capture,4,4
	.comm	alsa_fnc,4,4
	.comm	SNDRV_PCM_HW_PARAM_PERIODS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
