	.file	"extr_dbri.c_snd_dbri_hw_free.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"hw_free.\n"
	.text
	.p2align 4
	.type	snd_dbri_hw_free, @function
snd_dbri_hw_free:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	snd_pcm_substream_chip@PLT
	mov	rsi, rbp
	mov	rdi, rax
	mov	r12, rax
	call	DBRI_STREAM@PLT
	mov	edi, DWORD PTR D_USR[rip]
	lea	rsi, .LC0[rip]
	mov	rbx, rax
	call	dprintk@PLT
	cmp	QWORD PTR 8[rbx], 0
	jne	.L11
.L2:
	mov	esi, DWORD PTR [rbx]
	cmp	esi, -1
	je	.L5
	mov	rdi, r12
	call	reset_pipe@PLT
	mov	DWORD PTR [rbx], -1
.L5:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	snd_pcm_lib_free_pages@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, rbp
	call	DBRI_STREAMNO@PLT
	cmp	rax, QWORD PTR DBRI_PLAY[rip]
	mov	ecx, DWORD PTR DMA_FROM_DEVICE[rip]
	jne	.L4
	mov	ecx, DWORD PTR DMA_TO_DEVICE[rip]
.L4:
	mov	rax, QWORD PTR 0[rbp]
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdi, QWORD PTR [r12]
	mov	edx, DWORD PTR [rax]
	call	dma_unmap_single@PLT
	mov	QWORD PTR 8[rbx], 0
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	snd_dbri_hw_free, .-snd_dbri_hw_free
	.comm	D_USR,4,4
	.comm	DMA_TO_DEVICE,4,4
	.comm	DMA_FROM_DEVICE,4,4
	.comm	DBRI_PLAY,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_dbri.c_snd_dbri_hw_free.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"hw_free.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_dbri_hw_free, %function
snd_dbri_hw_free:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	snd_pcm_substream_chip
	mov	r1, r5
	mov	r6, r0
	bl	DBRI_STREAM
	mov	r4, r0
	ldr	r3, .L15
	ldr	r1, .L15+4
	ldr	r0, [r3]
	bl	dprintk
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L14
.L2:
	ldr	r1, [r4]
	cmn	r1, #1
	beq	.L5
	mov	r0, r6
	bl	reset_pipe
	mvn	r3, #0
	str	r3, [r4]
.L5:
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	snd_pcm_lib_free_pages
.L14:
	mov	r0, r5
	bl	DBRI_STREAMNO
	ldr	r3, .L15+8
	ldr	r2, [r5]
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r0, r3
	ldreq	r3, .L15+12
	ldrne	r3, .L15+16
	ldr	r1, [r4, #4]
	ldr	r3, [r3]
	ldr	r0, [r6]
	bl	dma_unmap_single
	mov	r3, #0
	str	r3, [r4, #4]
	b	.L2
.L16:
	.align	2
.L15:
	.word	D_USR
	.word	.LC0
	.word	DBRI_PLAY
	.word	DMA_TO_DEVICE
	.word	DMA_FROM_DEVICE
	.size	snd_dbri_hw_free, .-snd_dbri_hw_free
	.comm	D_USR,4,4
	.comm	DMA_TO_DEVICE,4,4
	.comm	DMA_FROM_DEVICE,4,4
	.comm	DBRI_PLAY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
