	.file	"extr_stm32-lptimer-cnt.c_stm32_lptim_setup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	stm32_lptim_setup, @function
stm32_lptim_setup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	eax, DWORD PTR STM32_LPTIM_COUNTMODE[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, DWORD PTR STM32_LPTIM_ENC[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	edi, DWORD PTR STM32_LPTIM_CKPOL[rip]
	mov	r12d, ebp
	or	r12d, eax
	or	r12d, edi
	or	r12d, DWORD PTR STM32_LPTIM_PRESC[rip]
	cmp	QWORD PTR 8[rbx], 0
	je	.L2
	test	esi, esi
	jne	.L3
.L7:
	xor	ebp, ebp
.L4:
	call	FIELD_PREP@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR STM32_LPTIM_CFGR[rip]
	mov	edx, r12d
	or	eax, ebp
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	ecx, eax
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	regmap_update_bits@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	test	esi, esi
	je	.L7
	mov	ebp, eax
.L3:
	mov	esi, DWORD PTR 4[rbx]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	stm32_lptim_setup, .-stm32_lptim_setup
	.comm	STM32_LPTIM_PRESC,4,4
	.comm	STM32_LPTIM_ENC,4,4
	.comm	STM32_LPTIM_COUNTMODE,4,4
	.comm	STM32_LPTIM_CKPOL,4,4
	.comm	STM32_LPTIM_CFGR,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_stm32-lptimer-cnt.c_stm32_lptim_setup.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stm32_lptim_setup, %function
stm32_lptim_setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r2, .L9
	ldr	r3, .L9+4
	ldr	r0, .L9+8
	ldr	r6, [r2]
	ldr	r3, [r3]
	ldr	r2, .L9+12
	ldr	r0, [r0]
	ldr	ip, [r5, #8]
	ldr	r2, [r2]
	orr	r4, r6, r3
	orr	r4, r4, r0
	cmp	ip, #0
	orr	r4, r4, r2
	beq	.L2
	cmp	r1, #0
	bne	.L3
.L7:
	mov	r6, r1
.L4:
	bl	FIELD_PREP
	ldr	r1, .L9+16
	orr	r3, r0, r6
	mov	r2, r4
	ldr	r0, [r5]
	ldr	r1, [r1]
	pop	{r4, r5, r6, lr}
	b	regmap_update_bits
.L2:
	cmp	r1, #0
	beq	.L7
	mov	r6, r3
.L3:
	ldr	r1, [r5, #4]
	b	.L4
.L10:
	.align	2
.L9:
	.word	STM32_LPTIM_ENC
	.word	STM32_LPTIM_COUNTMODE
	.word	STM32_LPTIM_CKPOL
	.word	STM32_LPTIM_PRESC
	.word	STM32_LPTIM_CFGR
	.size	stm32_lptim_setup, .-stm32_lptim_setup
	.comm	STM32_LPTIM_PRESC,4,4
	.comm	STM32_LPTIM_ENC,4,4
	.comm	STM32_LPTIM_COUNTMODE,4,4
	.comm	STM32_LPTIM_CKPOL,4,4
	.comm	STM32_LPTIM_CFGR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
