	.file	"extr_pwm-ep93xx.c_ep93xx_pwm_polarity.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ep93xx_pwm_polarity, @function
ep93xx_pwm_polarity:
.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	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	to_ep93xx_pwm@PLT
	mov	edi, DWORD PTR [rax]
	mov	rbx, rax
	call	clk_enable@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rsi, QWORD PTR EP93XX_PWMx_INVERT[rip]
	add	rsi, QWORD PTR 8[rbx]
	cmp	DWORD PTR PWM_POLARITY_INVERSED[rip], ebp
	je	.L7
	xor	edi, edi
	call	writew@PLT
.L4:
	mov	edi, DWORD PTR [rbx]
	call	clk_disable@PLT
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, 1
	call	writew@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	ep93xx_pwm_polarity, .-ep93xx_pwm_polarity
	.comm	PWM_POLARITY_INVERSED,4,4
	.comm	EP93XX_PWMx_INVERT,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_pwm-ep93xx.c_ep93xx_pwm_polarity.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ep93xx_pwm_polarity, %function
ep93xx_pwm_polarity:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r2
	bl	to_ep93xx_pwm
	mov	r4, r0
	ldr	r0, [r0]
	bl	clk_enable
	subs	r5, r0, #0
	bne	.L1
	ldr	r2, .L7
	ldr	r3, .L7+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r4, #4]
	cmp	r2, r6
	moveq	r0, #1
	add	r1, r1, r3
	bl	writew
	ldr	r0, [r4]
	bl	clk_disable
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	PWM_POLARITY_INVERSED
	.word	EP93XX_PWMx_INVERT
	.size	ep93xx_pwm_polarity, .-ep93xx_pwm_polarity
	.comm	PWM_POLARITY_INVERSED,4,4
	.comm	EP93XX_PWMx_INVERT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
