	.file	"extr_clockdomain.c_clkdm_clk_disable.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"clockdomain: %s: disabled\n"
	.text
	.p2align 4
	.globl	clkdm_clk_disable
	.type	clkdm_clk_disable, @function
clkdm_clk_disable:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L16
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	rsi, rsi
	je	.L2
	mov	rax, QWORD PTR arch_clkdm[rip]
	test	rax, rax
	je	.L2
	cmp	QWORD PTR [rax], 0
	je	.L2
	mov	rbx, rdi
	mov	edi, DWORD PTR 8[rdi]
	call	pwrdm_lock@PLT
	mov	rdi, rbp
	call	__clk_get_enable_count@PLT
	test	rax, rax
	mov	rax, QWORD PTR [rbx]
	je	.L20
	test	rax, rax
	je	.L21
.L7:
	sub	rax, 1
	mov	QWORD PTR [rbx], rax
	test	rax, rax
	jg	.L6
	mov	rax, QWORD PTR arch_clkdm[rip]
	mov	rdi, rbx
	call	[QWORD PTR [rax]]
	mov	edi, DWORD PTR 8[rbx]
	call	pwrdm_state_switch_nolock@PLT
	mov	esi, DWORD PTR 12[rbx]
	lea	rdi, .LC0[rip]
	call	pr_debug@PLT
.L6:
	mov	edi, DWORD PTR 8[rbx]
	call	pwrdm_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	test	rax, rax
	jne	.L7
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -24
	.cfi_offset 6, -16
	mov	edi, DWORD PTR 8[rbx]
	call	pwrdm_unlock@PLT
	mov	edi, 1
	call	WARN_ON@PLT
	mov	eax, DWORD PTR ERANGE[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	clkdm_clk_disable, .-clkdm_clk_disable
	.comm	arch_clkdm,8,8
	.comm	ERANGE,4,4
	.comm	EINVAL,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_clockdomain.c_clkdm_clk_disable.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"clockdomain: %s: disabled\012\000"
	.text
	.align	2
	.global	clkdm_clk_disable
	.syntax unified
	.arm
	.fpu softvfp
	.type	clkdm_clk_disable, %function
clkdm_clk_disable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	cmpne	r0, #0
	beq	.L16
	push	{r4, r5, r6, lr}
	ldr	r6, .L22
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	mov	r4, r1
	mov	r5, r0
	ldr	r0, [r0, #4]
	bl	pwrdm_lock
	mov	r0, r4
	bl	__clk_get_enable_count
	cmp	r0, #0
	ldr	r3, [r5]
	beq	.L20
	cmp	r3, #0
	beq	.L21
.L7:
	sub	r3, r3, #1
	cmp	r3, #0
	str	r3, [r5]
	bgt	.L6
	ldr	r3, [r6]
	mov	r0, r5
	ldr	r3, [r3]
	blx	r3
	ldr	r0, [r5, #4]
	bl	pwrdm_state_switch_nolock
	ldr	r1, [r5, #8]
	ldr	r0, .L22+4
	bl	pr_debug
.L6:
	ldr	r0, [r5, #4]
	bl	pwrdm_unlock
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L22+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L16:
	ldr	r3, .L22+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L20:
	cmp	r3, #0
	bne	.L7
	b	.L6
.L21:
	ldr	r0, [r5, #4]
	bl	pwrdm_unlock
	mov	r0, #1
	bl	WARN_ON
	ldr	r3, .L22+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L23:
	.align	2
.L22:
	.word	arch_clkdm
	.word	.LC0
	.word	EINVAL
	.word	ERANGE
	.size	clkdm_clk_disable, .-clkdm_clk_disable
	.comm	arch_clkdm,4,4
	.comm	ERANGE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
