	.file	"extr_mcbsp.c_omap1_mcbsp_free.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	omap1_mcbsp_free, @function
omap1_mcbsp_free:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR OMAP_MCBSP1[rip], edi
	je	.L2
	cmp	DWORD PTR OMAP_MCBSP3[rip], edi
	je	.L2
.L7:
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR dsp_use[rip]
	sub	rax, 1
	mov	QWORD PTR dsp_use[rip], rax
	jne	.L7
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	call	omap_dsp_release_mem@PLT
	mov	edi, DWORD PTR api_clk[rip]
	call	IS_ERR@PLT
	test	eax, eax
	je	.L11
.L5:
	mov	edi, DWORD PTR dsp_clk[rip]
	call	IS_ERR@PLT
	test	eax, eax
	je	.L12
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR api_clk[rip]
	call	clk_disable@PLT
	mov	edi, DWORD PTR api_clk[rip]
	call	clk_put@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, DWORD PTR dsp_clk[rip]
	call	clk_disable@PLT
	mov	edi, DWORD PTR dsp_clk[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 8
	jmp	clk_put@PLT
	.cfi_endproc
.LFE0:
	.size	omap1_mcbsp_free, .-omap1_mcbsp_free
	.comm	dsp_use,8,8
	.comm	dsp_clk,4,4
	.comm	api_clk,4,4
	.comm	OMAP_MCBSP3,4,4
	.comm	OMAP_MCBSP1,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_mcbsp.c_omap1_mcbsp_free.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	omap1_mcbsp_free, %function
omap1_mcbsp_free:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L12
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L2
	ldr	r3, .L12+4
	ldr	r3, [r3]
	cmp	r3, r0
	bxne	lr
.L2:
	ldr	r2, .L12+8
	ldr	r3, [r2]
	sub	r3, r3, #1
	cmp	r3, #0
	str	r3, [r2]
	bxne	lr
	push	{r4, lr}
	ldr	r4, .L12+12
	bl	omap_dsp_release_mem
	ldr	r0, [r4]
	bl	IS_ERR
	cmp	r0, #0
	beq	.L11
.L5:
	ldr	r4, .L12+16
	ldr	r0, [r4]
	bl	IS_ERR
	cmp	r0, #0
	popne	{r4, pc}
	ldr	r0, [r4]
	bl	clk_disable
	ldr	r0, [r4]
	pop	{r4, lr}
	b	clk_put
.L11:
	ldr	r0, [r4]
	bl	clk_disable
	ldr	r0, [r4]
	bl	clk_put
	b	.L5
.L13:
	.align	2
.L12:
	.word	OMAP_MCBSP1
	.word	OMAP_MCBSP3
	.word	dsp_use
	.word	api_clk
	.word	dsp_clk
	.size	omap1_mcbsp_free, .-omap1_mcbsp_free
	.comm	dsp_use,4,4
	.comm	dsp_clk,4,4
	.comm	api_clk,4,4
	.comm	OMAP_MCBSP3,4,4
	.comm	OMAP_MCBSP1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
