	.file	"extr_clock.c_omap2_clk_enable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	omap2_clk_enable
	.type	omap2_clk_enable, @function
omap2_clk_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR [rdi]
	lea	edx, 1[rax]
	mov	DWORD PTR [rdi], edx
	test	eax, eax
	jne	.L7
	mov	rbx, rdi
	mov	rdi, QWORD PTR 8[rdi]
	test	rdi, rdi
	jne	.L22
	mov	rdi, QWORD PTR 16[rbx]
	test	rdi, rdi
	je	.L9
.L5:
	call	omap2_clk_enable
	mov	r12d, eax
	test	eax, eax
	jne	.L8
.L9:
	mov	rdi, rbx
	call	_omap2_clk_enable@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L23
.L7:
	xor	r12d, r12d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[rbx]
	test	rdi, rdi
	je	.L8
	call	omap2_clk_disable@PLT
.L8:
	mov	rdi, QWORD PTR 8[rbx]
	test	rdi, rdi
	jne	.L24
.L10:
	sub	DWORD PTR [rbx], 1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	rsi, rbx
	call	omap2_clkdm_clk_enable@PLT
	mov	rdi, QWORD PTR 16[rbx]
	test	rdi, rdi
	jne	.L5
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rsi, rbx
	call	omap2_clkdm_clk_disable@PLT
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	omap2_clk_enable, .-omap2_clk_enable
	.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_clock.c_omap2_clk_enable.c"
	.text
	.align	2
	.global	omap2_clk_enable
	.syntax unified
	.arm
	.fpu softvfp
	.type	omap2_clk_enable, %function
omap2_clk_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, lr}
	cmp	r3, #0
	add	r3, r3, #1
	str	r3, [r0]
	bne	.L7
	mov	r4, r0
	ldr	r0, [r0, #4]
	cmp	r0, #0
	bne	.L22
	ldr	r0, [r4, #8]
	cmp	r0, #0
	beq	.L9
.L5:
	bl	omap2_clk_enable
	subs	r5, r0, #0
	bne	.L8
.L9:
	mov	r0, r4
	bl	_omap2_clk_enable
	subs	r5, r0, #0
	bne	.L23
.L7:
	mov	r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L23:
	ldr	r0, [r4, #8]
	cmp	r0, #0
	beq	.L8
	bl	omap2_clk_disable
.L8:
	ldr	r0, [r4, #4]
	cmp	r0, #0
	bne	.L24
.L10:
	ldr	r3, [r4]
	mov	r0, r5
	sub	r3, r3, #1
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L22:
	mov	r1, r4
	bl	omap2_clkdm_clk_enable
	ldr	r0, [r4, #8]
	cmp	r0, #0
	bne	.L5
	b	.L9
.L24:
	mov	r1, r4
	bl	omap2_clkdm_clk_disable
	b	.L10
	.size	omap2_clk_enable, .-omap2_clk_enable
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
