	.file	"extr_cs4231.c_snd_cs4231_capture_open.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_cs4231_capture_open, @function
snd_cs4231_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
	call	snd_pcm_substream_chip@PLT
	mov	r13, QWORD PTR 0[rbp]
	mov	esi, DWORD PTR CS4231_MODE_RECORD[rip]
	mov	rbx, rax
	mov	eax, DWORD PTR snd_cs4231_capture[rip]
	mov	rdi, rbx
	mov	DWORD PTR 8[r13], eax
	call	snd_cs4231_open@PLT
	test	eax, eax
	js	.L6
	mov	QWORD PTR 8[rbx], rbp
	mov	rdi, rbp
	xor	r12d, r12d
	mov	QWORD PTR [rbx], 0
	call	snd_pcm_set_sync@PLT
	mov	rdi, r13
	call	snd_cs4231_xrate@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[r13]
	mov	esi, DWORD PTR 0[r13]
	mov	r12d, eax
	call	snd_free_pages@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.cfi_endproc
.LFE0:
	.size	snd_cs4231_capture_open, .-snd_cs4231_capture_open
	.comm	snd_cs4231_capture,4,4
	.comm	CS4231_MODE_RECORD,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_cs4231.c_snd_cs4231_capture_open.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_cs4231_capture_open, %function
snd_cs4231_capture_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	bl	snd_pcm_substream_chip
	ldr	r3, .L7
	ldr	r7, [r5]
	ldr	r2, [r3]
	ldr	r3, .L7+4
	str	r2, [r7, #8]
	ldr	r1, [r3]
	mov	r6, r0
	bl	snd_cs4231_open
	subs	r4, r0, #0
	blt	.L6
	mov	r4, #0
	mov	r0, r5
	str	r5, [r6, #4]
	str	r4, [r6]
	bl	snd_pcm_set_sync
	mov	r0, r7
	bl	snd_cs4231_xrate
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r1, [r7]
	ldr	r0, [r7, #4]
	bl	snd_free_pages
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	snd_cs4231_capture
	.word	CS4231_MODE_RECORD
	.size	snd_cs4231_capture_open, .-snd_cs4231_capture_open
	.comm	snd_cs4231_capture,4,4
	.comm	CS4231_MODE_RECORD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
