	.file	"extr_pwm-sti.c_sti_pwm_enable.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to enable PWM device %u: %d\n"
	.text
	.p2align 4
	.type	sti_pwm_enable, @function
sti_pwm_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	to_sti_pwmchip@PLT
	mov	rbp, rax
	mov	rdi, rax
	mov	r13, QWORD PTR 24[rax]
	call	mutex_lock@PLT
	mov	eax, DWORD PTR 4[rbp]
	test	eax, eax
	je	.L7
.L2:
	add	eax, 1
	xor	r12d, r12d
	mov	DWORD PTR 4[rbp], eax
.L3:
	mov	rdi, rbp
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[rbp]
	call	clk_enable@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L3
	mov	edi, DWORD PTR 12[rbp]
	call	clk_enable@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L3
	mov	edi, DWORD PTR 8[rbp]
	mov	esi, 1
	call	regmap_field_write@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR 4[rbp]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, DWORD PTR [rbx]
	mov	ecx, eax
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	dev_err@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	sti_pwm_enable, .-sti_pwm_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_pwm-sti.c_sti_pwm_enable.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to enable PWM device %u: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sti_pwm_enable, %function
sti_pwm_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	bl	to_sti_pwmchip
	mov	r4, r0
	ldr	r7, [r0, #20]
	bl	mutex_lock
	ldr	r2, [r4, #4]
	cmp	r2, #0
	beq	.L7
.L2:
	mov	r5, #0
	add	r2, r2, #1
	str	r2, [r4, #4]
.L3:
	mov	r0, r4
	bl	mutex_unlock
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r0, [r4, #16]
	bl	clk_enable
	subs	r5, r0, #0
	bne	.L3
	ldr	r0, [r4, #12]
	bl	clk_enable
	subs	r5, r0, #0
	bne	.L3
	mov	r1, #1
	ldr	r0, [r4, #8]
	bl	regmap_field_write
	subs	r5, r0, #0
	ldreq	r2, [r4, #4]
	beq	.L2
.L4:
	mov	r0, r7
	mov	r3, r5
	ldr	r2, [r6]
	ldr	r1, .L8
	bl	dev_err
	b	.L3
.L9:
	.align	2
.L8:
	.word	.LC0
	.size	sti_pwm_enable, .-sti_pwm_enable
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
