	.file	"extr_oxygen_pcm.c_oxygen_rec_a_hw_params.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	oxygen_rec_a_hw_params, @function
oxygen_rec_a_hw_params:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	snd_pcm_substream_chip@PLT
	mov	rsi, r12
	mov	rdi, r13
	mov	rbp, rax
	call	oxygen_hw_params@PLT
	test	eax, eax
	js	.L1
	lea	r15, 24[rbp]
	mov	rdi, r15
	call	spin_lock_irq@PLT
	mov	rdi, r12
	mov	r13d, DWORD PTR OXYGEN_REC_FORMAT_A_MASK[rip]
	call	oxygen_format@PLT
	mov	ecx, DWORD PTR OXYGEN_REC_FORMAT_A_SHIFT[rip]
	mov	esi, DWORD PTR OXYGEN_REC_FORMAT[rip]
	mov	rdi, rbp
	sal	eax, cl
	mov	ecx, r13d
	mov	edx, eax
	call	oxygen_write8_masked@PLT
	mov	rdi, r12
	mov	r14d, DWORD PTR OXYGEN_I2S_RATE_MASK[rip]
	or	r14d, DWORD PTR OXYGEN_I2S_FORMAT_MASK[rip]
	or	r14d, DWORD PTR OXYGEN_I2S_MCLK_MASK[rip]
	or	r14d, DWORD PTR OXYGEN_I2S_BITS_MASK[rip]
	call	oxygen_rate@PLT
	mov	rdx, r12
	mov	rdi, rbp
	mov	ebx, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR PCM_A[rip]
	mov	r13d, eax
	call	get_mclk@PLT
	mov	rdi, r12
	or	r13d, eax
	call	oxygen_i2s_bits@PLT
	or	r13d, ebx
	mov	ecx, r14d
	mov	rdi, rbp
	mov	esi, DWORD PTR OXYGEN_I2S_A_FORMAT[rip]
	mov	edx, r13d
	or	edx, eax
	call	oxygen_write16_masked@PLT
	mov	rdi, r15
	call	spin_unlock_irq@PLT
	mov	rdi, rbp
	call	mutex_lock@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	[QWORD PTR 16[rbp]]
	mov	rdi, rbp
	call	mutex_unlock@PLT
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	oxygen_rec_a_hw_params, .-oxygen_rec_a_hw_params
	.comm	PCM_A,4,4
	.comm	OXYGEN_REC_FORMAT_A_SHIFT,4,4
	.comm	OXYGEN_REC_FORMAT_A_MASK,4,4
	.comm	OXYGEN_REC_FORMAT,4,4
	.comm	OXYGEN_I2S_RATE_MASK,4,4
	.comm	OXYGEN_I2S_MCLK_MASK,4,4
	.comm	OXYGEN_I2S_FORMAT_MASK,4,4
	.comm	OXYGEN_I2S_BITS_MASK,4,4
	.comm	OXYGEN_I2S_A_FORMAT,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_oxygen_pcm.c_oxygen_rec_a_hw_params.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	oxygen_rec_a_hw_params, %function
oxygen_rec_a_hw_params:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	mov	r6, r0
	bl	snd_pcm_substream_chip
	mov	r1, r5
	mov	r4, r0
	mov	r0, r6
	bl	oxygen_hw_params
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, r9, r10, pc}
	add	r7, r4, #12
	mov	r0, r7
	bl	spin_lock_irq
	ldr	r3, .L5
	mov	r0, r5
	ldr	r6, [r3]
	bl	oxygen_format
	ldr	r2, .L5+4
	ldr	r3, .L5+8
	ldr	r2, [r2]
	mov	r1, r6
	lsl	r2, r0, r2
	ldr	r3, [r3]
	mov	r0, r4
	bl	oxygen_write8_masked
	ldr	r3, .L5+12
	mov	r0, r5
	ldr	r8, [r3]
	bl	oxygen_rate
	ldr	r3, .L5+16
	mov	r2, r5
	ldr	r1, [r3]
	mov	r6, r0
	mov	r0, r4
	ldr	r9, [r4, #4]
	bl	get_mclk
	mov	r2, r0
	mov	r0, r5
	orr	r6, r6, r2
	bl	oxygen_i2s_bits
	ldr	r3, .L5+20
	ldr	r1, .L5+24
	ldr	r2, .L5+28
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	ip, .L5+32
	ldr	r2, [r2]
	ldr	ip, [ip]
	orr	r1, r3, r1
	orr	r3, r1, r2
	orr	r6, r6, r9
	orr	r2, r6, r0
	orr	r3, r3, ip
	mov	r1, r8
	mov	r0, r4
	bl	oxygen_write16_masked
	mov	r0, r7
	bl	spin_unlock_irq
	mov	r0, r4
	bl	mutex_lock
	mov	r1, r5
	ldr	r3, [r4, #8]
	mov	r0, r4
	blx	r3
	mov	r0, r4
	bl	mutex_unlock
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	.align	2
.L5:
	.word	OXYGEN_REC_FORMAT
	.word	OXYGEN_REC_FORMAT_A_SHIFT
	.word	OXYGEN_REC_FORMAT_A_MASK
	.word	OXYGEN_I2S_A_FORMAT
	.word	PCM_A
	.word	OXYGEN_I2S_RATE_MASK
	.word	OXYGEN_I2S_FORMAT_MASK
	.word	OXYGEN_I2S_MCLK_MASK
	.word	OXYGEN_I2S_BITS_MASK
	.size	oxygen_rec_a_hw_params, .-oxygen_rec_a_hw_params
	.comm	PCM_A,4,4
	.comm	OXYGEN_REC_FORMAT_A_SHIFT,4,4
	.comm	OXYGEN_REC_FORMAT_A_MASK,4,4
	.comm	OXYGEN_REC_FORMAT,4,4
	.comm	OXYGEN_I2S_RATE_MASK,4,4
	.comm	OXYGEN_I2S_MCLK_MASK,4,4
	.comm	OXYGEN_I2S_FORMAT_MASK,4,4
	.comm	OXYGEN_I2S_BITS_MASK,4,4
	.comm	OXYGEN_I2S_A_FORMAT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
