	.file	"extr_rme9652.c_snd_rme9652_initialize_memory.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s: no buffers available\n"
	.text
	.p2align 4
	.type	snd_rme9652_initialize_memory, @function
snd_rme9652_initialize_memory:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, DWORD PTR RME9652_DMA_AREA_BYTES[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	lea	rbp, 32[rdi]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	edi, DWORD PTR 64[rdi]
	mov	rsi, rbp
	call	snd_hammerfall_get_buffer@PLT
	test	rax, rax
	js	.L5
	mov	edi, DWORD PTR 64[rbx]
	mov	edx, DWORD PTR RME9652_DMA_AREA_BYTES[rip]
	lea	rsi, 16[rbx]
	call	snd_hammerfall_get_buffer@PLT
	test	rax, rax
	js	.L5
	mov	rdi, QWORD PTR 40[rbx]
	mov	esi, 65536
	call	ALIGN@PLT
	mov	rdi, QWORD PTR 24[rbx]
	mov	esi, 65536
	mov	r12, rax
	call	ALIGN@PLT
	mov	esi, DWORD PTR RME9652_rec_buffer[rip]
	mov	rdx, r12
	mov	rdi, rbx
	mov	rbp, rax
	call	rme9652_write@PLT
	mov	esi, DWORD PTR RME9652_play_buffer[rip]
	mov	rdx, rbp
	mov	rdi, rbx
	call	rme9652_write@PLT
	add	r12, QWORD PTR 32[rbx]
	add	rbp, QWORD PTR 16[rbx]
	xor	eax, eax
	sub	r12, QWORD PTR 40[rbx]
	sub	rbp, QWORD PTR 24[rbx]
	mov	QWORD PTR [rbx], r12
	mov	QWORD PTR 8[rbx], rbp
	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
.L5:
	.cfi_restore_state
	cmp	QWORD PTR 32[rbx], 0
	jne	.L11
.L4:
	mov	rax, QWORD PTR 56[rbx]
	mov	edx, DWORD PTR 48[rbx]
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR [rax]
	call	dev_err@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, rbp
	call	snd_dma_free_pages@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	snd_rme9652_initialize_memory, .-snd_rme9652_initialize_memory
	.comm	RME9652_rec_buffer,4,4
	.comm	RME9652_play_buffer,4,4
	.comm	RME9652_DMA_AREA_BYTES,4,4
	.comm	ENOMEM,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_rme9652.c_snd_rme9652_initialize_memory.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s: no buffers available\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_rme9652_initialize_memory, %function
snd_rme9652_initialize_memory:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L12
	add	r6, r0, #16
	mov	r4, r0
	mov	r1, r6
	ldr	r0, [r0, #32]
	ldr	r2, [r5]
	bl	snd_hammerfall_get_buffer
	cmp	r0, #0
	blt	.L5
	ldr	r2, [r5]
	ldr	r0, [r4, #32]
	add	r1, r4, #8
	bl	snd_hammerfall_get_buffer
	cmp	r0, #0
	blt	.L5
	mov	r1, #65536
	ldr	r0, [r4, #20]
	bl	ALIGN
	mov	r1, #65536
	mov	r6, r0
	ldr	r0, [r4, #12]
	bl	ALIGN
	mov	r5, r0
	ldr	r3, .L12+4
	mov	r2, r6
	ldr	r1, [r3]
	mov	r0, r4
	bl	rme9652_write
	ldr	r3, .L12+8
	mov	r2, r5
	ldr	r1, [r3]
	mov	r0, r4
	bl	rme9652_write
	ldr	r1, [r4, #20]
	ldr	r2, [r4, #16]
	ldr	r3, [r4, #8]
	sub	r2, r2, r1
	ldr	r1, [r4, #12]
	add	r2, r2, r6
	sub	r3, r3, r1
	add	r3, r3, r5
	mov	r0, #0
	stm	r4, {r2, r3}
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L11
.L4:
	ldr	r3, [r4, #28]
	ldr	r2, [r4, #24]
	ldr	r0, [r3]
	ldr	r1, .L12+12
	bl	dev_err
	ldr	r3, .L12+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L11:
	mov	r0, r6
	bl	snd_dma_free_pages
	b	.L4
.L13:
	.align	2
.L12:
	.word	RME9652_DMA_AREA_BYTES
	.word	RME9652_rec_buffer
	.word	RME9652_play_buffer
	.word	.LC0
	.word	ENOMEM
	.size	snd_rme9652_initialize_memory, .-snd_rme9652_initialize_memory
	.comm	RME9652_rec_buffer,4,4
	.comm	RME9652_play_buffer,4,4
	.comm	RME9652_DMA_AREA_BYTES,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
