	.file	"extr_timer-qcom.c_msm_timer_set_next_event.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	msm_timer_set_next_event, @function
msm_timer_set_next_event:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdi, QWORD PTR TIMER_ENABLE[rip]
	add	rdi, QWORD PTR event_base[rip]
	call	readl_relaxed@PLT
	mov	rbx, QWORD PTR TIMER_ENABLE_EN[rip]
	mov	rsi, QWORD PTR TIMER_ENABLE[rip]
	movsx	rdi, eax
	add	rsi, QWORD PTR event_base[rip]
	not	rbx
	and	rbx, rdi
	mov	rdi, rbx
	call	writel_relaxed@PLT
	mov	rsi, QWORD PTR TIMER_CLEAR[rip]
	mov	rdi, rbx
	add	rsi, QWORD PTR event_base[rip]
	call	writel_relaxed@PLT
	mov	rsi, QWORD PTR TIMER_MATCH_VAL[rip]
	mov	rdi, rbp
	add	rsi, QWORD PTR event_base[rip]
	call	writel_relaxed@PLT
	mov	rdi, QWORD PTR sts_base[rip]
	test	rdi, rdi
	jne	.L2
.L4:
	or	rbx, QWORD PTR TIMER_ENABLE_EN[rip]
	mov	rsi, QWORD PTR TIMER_ENABLE[rip]
	mov	rdi, rbx
	add	rsi, QWORD PTR event_base[rip]
	call	writel_relaxed@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
.L3:
	.cfi_restore_state
	xor	eax, eax
	call	cpu_relax@PLT
	mov	rdi, QWORD PTR sts_base[rip]
.L2:
	call	readl_relaxed@PLT
	test	DWORD PTR TIMER_STS_GPT0_CLR_PEND[rip], eax
	jne	.L3
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	msm_timer_set_next_event, .-msm_timer_set_next_event
	.comm	sts_base,8,8
	.comm	event_base,8,8
	.comm	TIMER_STS_GPT0_CLR_PEND,4,4
	.comm	TIMER_MATCH_VAL,8,8
	.comm	TIMER_ENABLE_EN,8,8
	.comm	TIMER_ENABLE,8,8
	.comm	TIMER_CLEAR,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_timer-qcom.c_msm_timer_set_next_event.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	msm_timer_set_next_event, %function
msm_timer_set_next_event:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, .L9
	ldr	r8, .L9+4
	ldr	r2, [r6]
	ldr	r3, [r8]
	mov	r7, r0
	add	r0, r2, r3
	bl	readl_relaxed
	ldr	r9, .L9+8
	ldr	r3, [r8]
	ldr	r5, [r9]
	ldr	r1, [r6]
	bic	r5, r0, r5
	add	r1, r1, r3
	mov	r0, r5
	bl	writel_relaxed
	ldr	r3, .L9+12
	ldr	r1, [r6]
	ldr	r3, [r3]
	mov	r0, r5
	add	r1, r1, r3
	bl	writel_relaxed
	ldr	r3, .L9+16
	ldr	r1, [r6]
	ldr	r3, [r3]
	ldr	r4, .L9+20
	mov	r0, r7
	add	r1, r1, r3
	bl	writel_relaxed
	ldr	r0, [r4]
	cmp	r0, #0
	beq	.L4
	ldr	r7, .L9+24
	b	.L2
.L3:
	bl	cpu_relax
	ldr	r0, [r4]
.L2:
	bl	readl_relaxed
	ldr	r3, [r7]
	tst	r0, r3
	bne	.L3
.L4:
	ldr	r1, [r6]
	ldr	r3, [r8]
	ldr	r0, [r9]
	add	r1, r1, r3
	orr	r0, r5, r0
	bl	writel_relaxed
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	.align	2
.L9:
	.word	event_base
	.word	TIMER_ENABLE
	.word	TIMER_ENABLE_EN
	.word	TIMER_CLEAR
	.word	TIMER_MATCH_VAL
	.word	sts_base
	.word	TIMER_STS_GPT0_CLR_PEND
	.size	msm_timer_set_next_event, .-msm_timer_set_next_event
	.comm	sts_base,4,4
	.comm	event_base,4,4
	.comm	TIMER_STS_GPT0_CLR_PEND,4,4
	.comm	TIMER_MATCH_VAL,4,4
	.comm	TIMER_ENABLE_EN,4,4
	.comm	TIMER_ENABLE,4,4
	.comm	TIMER_CLEAR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
