	.file	"extr_time.c_timer32_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	timer32_config, @function
timer32_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	USING_COMPARE@PLT
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR davinci_soc_info[rip]
	mov	rdx, QWORD PTR TID_CLOCKEVENT[rip]
	mov	rbp, QWORD PTR [rax]
	mov	rax, QWORD PTR timers[rip]
	mov	edi, DWORD PTR [rax+rdx*4]
	call	ID_TO_TIMER@PLT
	mov	rdi, QWORD PTR 16[rbx]
	cdqe
	mov	rdx, QWORD PTR 0[rbp+rax*8]
	add	rdx, rdi
	add	rdi, QWORD PTR 32[rbx]
	mov	rbp, rdx
	call	__raw_readl@PLT
	add	eax, DWORD PTR [rbx]
	mov	rsi, rbp
	mov	edi, eax
	call	__raw_writel@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	rdi, QWORD PTR TCR[rip]
	add	rdi, QWORD PTR 16[rbx]
	call	__raw_readl@PLT
	mov	ecx, DWORD PTR 4[rbx]
	mov	ebp, DWORD PTR TCR_ENAMODE_MASK[rip]
	mov	rsi, QWORD PTR TCR[rip]
	add	rsi, QWORD PTR 16[rbx]
	sal	ebp, cl
	not	ebp
	and	ebp, eax
	mov	edi, ebp
	call	__raw_writel@PLT
	mov	rsi, QWORD PTR 32[rbx]
	xor	edi, edi
	add	rsi, QWORD PTR 16[rbx]
	call	__raw_writel@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rsi, QWORD PTR 24[rbx]
	add	rsi, QWORD PTR 16[rbx]
	call	__raw_writel@PLT
	mov	eax, DWORD PTR 8[rbx]
	test	DWORD PTR TIMER_OPTS_ONESHOT[rip], eax
	je	.L4
	mov	ecx, DWORD PTR 4[rbx]
	mov	eax, DWORD PTR TCR_ENAMODE_ONESHOT[rip]
	sal	eax, cl
	or	ebp, eax
.L5:
	mov	rsi, QWORD PTR TCR[rip]
	mov	edi, ebp
	add	rsi, QWORD PTR 16[rbx]
	call	__raw_writel@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
.L4:
	.cfi_restore_state
	test	DWORD PTR TIMER_OPTS_PERIODIC[rip], eax
	je	.L5
	mov	ecx, DWORD PTR 4[rbx]
	mov	eax, DWORD PTR TCR_ENAMODE_PERIODIC[rip]
	sal	eax, cl
	or	ebp, eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	timer32_config, .-timer32_config
	.comm	timers,8,8
	.comm	davinci_soc_info,8,8
	.comm	TIMER_OPTS_PERIODIC,4,4
	.comm	TIMER_OPTS_ONESHOT,4,4
	.comm	TID_CLOCKEVENT,8,8
	.comm	TCR_ENAMODE_PERIODIC,4,4
	.comm	TCR_ENAMODE_ONESHOT,4,4
	.comm	TCR_ENAMODE_MASK,4,4
	.comm	TCR,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_time.c_timer32_config.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	timer32_config, %function
timer32_config:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	bl	USING_COMPARE
	subs	r5, r0, #0
	beq	.L2
	ldr	r1, .L12
	ldr	r2, .L12+4
	ldr	r3, .L12+8
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, [r2, r1, lsl #2]
	ldr	r6, [r3]
	bl	ID_TO_TIMER
	ldr	r2, [r4, #12]
	ldr	r3, [r4, #20]
	mov	r5, r0
	add	r0, r2, r3
	bl	__raw_readl
	ldr	r1, [r6, r5, lsl #2]
	ldr	r2, [r4, #12]
	ldr	r3, [r4]
	add	r1, r1, r2
	add	r0, r0, r3
	bl	__raw_writel
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r7, .L12+12
	ldr	r0, [r4, #12]
	ldr	r3, [r7]
	add	r0, r0, r3
	bl	__raw_readl
	ldr	r3, .L12+16
	ldr	r6, [r4, #4]
	ldr	r2, [r3]
	ldr	r1, [r4, #12]
	ldr	r3, [r7]
	bic	r6, r0, r2, lsl r6
	add	r1, r1, r3
	mov	r0, r6
	bl	__raw_writel
	ldr	r3, [r4, #20]
	ldr	r1, [r4, #12]
	mov	r0, r5
	add	r1, r1, r3
	bl	__raw_writel
	ldr	r3, [r4, #16]
	ldr	r1, [r4, #12]
	ldr	r0, [r4]
	add	r1, r1, r3
	bl	__raw_writel
	ldr	r2, .L12+20
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L11
	ldr	r2, .L12+24
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r2, .L12+28
	ldrne	r3, [r4, #4]
	ldrne	r2, [r2]
	orrne	r6, r6, r2, lsl r3
.L5:
	ldr	r1, [r4, #12]
	ldr	r3, [r7]
	mov	r0, r6
	add	r1, r1, r3
	bl	__raw_writel
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r2, .L12+32
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	orr	r6, r6, r2, lsl r3
	b	.L5
.L13:
	.align	2
.L12:
	.word	TID_CLOCKEVENT
	.word	timers
	.word	davinci_soc_info
	.word	TCR
	.word	TCR_ENAMODE_MASK
	.word	TIMER_OPTS_ONESHOT
	.word	TIMER_OPTS_PERIODIC
	.word	TCR_ENAMODE_PERIODIC
	.word	TCR_ENAMODE_ONESHOT
	.size	timer32_config, .-timer32_config
	.comm	timers,4,4
	.comm	davinci_soc_info,4,4
	.comm	TIMER_OPTS_PERIODIC,4,4
	.comm	TIMER_OPTS_ONESHOT,4,4
	.comm	TID_CLOCKEVENT,4,4
	.comm	TCR_ENAMODE_PERIODIC,4,4
	.comm	TCR_ENAMODE_ONESHOT,4,4
	.comm	TCR_ENAMODE_MASK,4,4
	.comm	TCR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
