	.file	"extr_cmipci.c_snd_cmipci_capture_open.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_cmipci_capture_open, @function
snd_cmipci_capture_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	snd_pcm_substream_chip@PLT
	mov	esi, DWORD PTR CM_OPEN_CAPTURE[rip]
	mov	rdx, r12
	mov	rbp, QWORD PTR [r12]
	mov	rdi, rax
	mov	rbx, rax
	call	open_device_check@PLT
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR snd_cmipci_capture[rip]
	mov	QWORD PTR 0[rbp], rax
	mov	eax, DWORD PTR snd_cmipci_capture[rip+8]
	mov	DWORD PTR 8[rbp], eax
	mov	eax, DWORD PTR [rbx]
	cmp	eax, 68
	je	.L7
	cmp	eax, 55
	je	.L8
.L4:
	mov	esi, DWORD PTR SNDRV_PCM_HW_PARAM_BUFFER_SIZE[rip]
	mov	ecx, 65536
	xor	edx, edx
	mov	rdi, rbp
	call	snd_pcm_hw_constraint_minmax@PLT
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	eax, DWORD PTR SNDRV_PCM_RATE_44100[rip]
	or	eax, DWORD PTR SNDRV_PCM_RATE_48000[rip]
	mov	DWORD PTR 0[rbp], 41000
	mov	DWORD PTR 4[rbp], eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edx, DWORD PTR SNDRV_PCM_HW_PARAM_RATE[rip]
	xor	esi, esi
	lea	rcx, hw_constraints_rates[rip]
	mov	rdi, rbp
	call	snd_pcm_hw_constraint_list@PLT
	test	eax, eax
	js	.L1
	mov	eax, DWORD PTR SNDRV_PCM_RATE_KNOT[rip]
	mov	DWORD PTR 8[rbp], 128000
	or	DWORD PTR 4[rbp], eax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	snd_cmipci_capture_open, .-snd_cmipci_capture_open
	.comm	snd_cmipci_capture,12,8
	.comm	hw_constraints_rates,4,4
	.comm	SNDRV_PCM_RATE_KNOT,4,4
	.comm	SNDRV_PCM_RATE_48000,4,4
	.comm	SNDRV_PCM_RATE_44100,4,4
	.comm	SNDRV_PCM_HW_PARAM_RATE,4,4
	.comm	SNDRV_PCM_HW_PARAM_BUFFER_SIZE,4,4
	.comm	CM_OPEN_CAPTURE,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_cmipci.c_snd_cmipci_capture_open.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_cmipci_capture_open, %function
snd_cmipci_capture_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
	ldr	r3, .L9
	mov	r2, r4
	ldr	r1, [r3]
	mov	r5, r0
	ldr	r4, [r4]
	bl	open_device_check
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
	ldr	ip, [r5]
	ldr	r3, .L9+4
	cmp	ip, #68
	ldm	r3, {r0, r1, r2}
	stm	r4, {r0, r1, r2}
	beq	.L7
	cmp	ip, #55
	beq	.L8
.L4:
	ldr	r3, .L9+8
	mov	r0, r4
	ldr	r1, [r3]
	mov	r2, #0
	mov	r3, #65536
	bl	snd_pcm_hw_constraint_minmax
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r2, .L9+12
	ldr	r3, .L9+16
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, .L9+20
	orr	r3, r3, r1
	stm	r4, {r2, r3}
	b	.L4
.L8:
	ldr	r2, .L9+24
	mov	r1, #0
	mov	r0, r4
	ldr	r3, .L9+28
	ldr	r2, [r2]
	bl	snd_pcm_hw_constraint_list
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
	mov	r1, #128000
	ldr	r2, .L9+32
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	str	r1, [r4, #8]
	orr	r3, r3, r2
	str	r3, [r4, #4]
	b	.L4
.L10:
	.align	2
.L9:
	.word	CM_OPEN_CAPTURE
	.word	snd_cmipci_capture
	.word	SNDRV_PCM_HW_PARAM_BUFFER_SIZE
	.word	SNDRV_PCM_RATE_48000
	.word	SNDRV_PCM_RATE_44100
	.word	41000
	.word	SNDRV_PCM_HW_PARAM_RATE
	.word	hw_constraints_rates
	.word	SNDRV_PCM_RATE_KNOT
	.size	snd_cmipci_capture_open, .-snd_cmipci_capture_open
	.comm	snd_cmipci_capture,12,4
	.comm	hw_constraints_rates,4,4
	.comm	SNDRV_PCM_RATE_KNOT,4,4
	.comm	SNDRV_PCM_RATE_48000,4,4
	.comm	SNDRV_PCM_RATE_44100,4,4
	.comm	SNDRV_PCM_HW_PARAM_RATE,4,4
	.comm	SNDRV_PCM_HW_PARAM_BUFFER_SIZE,4,4
	.comm	CM_OPEN_CAPTURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
