	.file	"extr_oxfw-pcm.c_pcm_capture_hw_params.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pcm_capture_hw_params, @function
pcm_capture_hw_params:
.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, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	r13, QWORD PTR 8[rdi]
	mov	rdi, rsi
	call	params_buffer_bytes@PLT
	mov	rdi, rbx
	mov	esi, eax
	call	snd_pcm_lib_alloc_vmalloc_buffer@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR [rbx]
	mov	rdx, QWORD PTR SNDRV_PCM_STATE_OPEN[rip]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR [rax], rdx
	je	.L6
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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	rdi, rbp
	call	params_rate@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	params_channels@PLT
	mov	rdi, r13
	mov	r14d, eax
	call	mutex_lock@PLT
	mov	edx, r12d
	lea	rsi, 8[r13]
	mov	ecx, r14d
	mov	rdi, r13
	call	snd_oxfw_stream_reserve_duplex@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L3
	add	DWORD PTR 4[r13], 1
.L3:
	mov	rdi, r13
	call	mutex_unlock@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.cfi_endproc
.LFE0:
	.size	pcm_capture_hw_params, .-pcm_capture_hw_params
	.comm	SNDRV_PCM_STATE_OPEN,8,8
	.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_oxfw-pcm.c_pcm_capture_hw_params.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pcm_capture_hw_params, %function
pcm_capture_hw_params:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r0, r1
	mov	r6, r1
	ldr	r7, [r4, #4]
	bl	params_buffer_bytes
	mov	r1, r0
	mov	r0, r4
	bl	snd_pcm_lib_alloc_vmalloc_buffer
	subs	r5, r0, #0
	blt	.L1
	ldr	r2, [r4]
	ldr	r3, .L7
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L6
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r0, r6
	bl	params_rate
	mov	r4, r0
	mov	r0, r6
	bl	params_channels
	mov	r5, r0
	mov	r0, r7
	bl	mutex_lock
	mov	r3, r5
	mov	r2, r4
	add	r1, r7, #8
	mov	r0, r7
	bl	snd_oxfw_stream_reserve_duplex
	subs	r5, r0, #0
	ldrge	r3, [r7, #4]
	mov	r0, r7
	addge	r3, r3, #1
	strge	r3, [r7, #4]
	bl	mutex_unlock
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	SNDRV_PCM_STATE_OPEN
	.size	pcm_capture_hw_params, .-pcm_capture_hw_params
	.comm	SNDRV_PCM_STATE_OPEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
