	.file	"extr_rtc-wm8350.c_wm8350_rtc_start_alarm.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wm8350_rtc_start_alarm, @function
wm8350_rtc_start_alarm:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR WM8350_RTC_ALMSET[rip]
	mov	esi, DWORD PTR WM8350_RTC_TIME_CONTROL[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	r12d, DWORD PTR WM8350_SET_ALM_RETRIES[rip]
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	wm8350_clear_bits@PLT
	mov	ebx, eax
	test	eax, eax
	jns	.L4
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	sub	r12d, 1
	and	ebx, DWORD PTR WM8350_RTC_ALMSTS[rip]
	je	.L1
.L4:
	mov	esi, DWORD PTR WM8350_RTC_TIME_CONTROL[rip]
	mov	rdi, rbp
	call	wm8350_reg_read@PLT
	mov	edi, 1
	mov	ebx, eax
	call	msecs_to_jiffies@PLT
	mov	edi, eax
	call	schedule_timeout_uninterruptible@PLT
	test	r12d, r12d
	jne	.L11
	and	ebx, DWORD PTR WM8350_RTC_ALMSTS[rip]
	je	.L1
	mov	ebx, DWORD PTR ETIMEDOUT[rip]
	neg	ebx
.L1:
	mov	eax, ebx
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	wm8350_rtc_start_alarm, .-wm8350_rtc_start_alarm
	.comm	WM8350_SET_ALM_RETRIES,4,4
	.comm	WM8350_RTC_TIME_CONTROL,4,4
	.comm	WM8350_RTC_ALMSTS,4,4
	.comm	WM8350_RTC_ALMSET,4,4
	.comm	ETIMEDOUT,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_rtc-wm8350.c_wm8350_rtc_start_alarm.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wm8350_rtc_start_alarm, %function
wm8350_rtc_start_alarm:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r2, .L13
	ldr	r7, .L13+4
	ldr	r3, .L13+8
	ldr	r2, [r2]
	ldr	r1, [r7]
	mov	r6, r0
	ldr	r5, [r3]
	bl	wm8350_clear_bits
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, pc}
	ldr	r8, .L13+12
	b	.L4
.L12:
	ands	r0, r4, r0
	sub	r5, r5, #1
	popeq	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r1, [r7]
	mov	r0, r6
	bl	wm8350_reg_read
	mov	r4, r0
	mov	r0, #1
	bl	msecs_to_jiffies
	bl	schedule_timeout_uninterruptible
	cmp	r5, #0
	ldr	r0, [r8]
	bne	.L12
	ands	r0, r4, r0
	ldrne	r3, .L13+16
	ldrne	r0, [r3]
	rsbne	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	WM8350_RTC_ALMSET
	.word	WM8350_RTC_TIME_CONTROL
	.word	WM8350_SET_ALM_RETRIES
	.word	WM8350_RTC_ALMSTS
	.word	ETIMEDOUT
	.size	wm8350_rtc_start_alarm, .-wm8350_rtc_start_alarm
	.comm	WM8350_SET_ALM_RETRIES,4,4
	.comm	WM8350_RTC_TIME_CONTROL,4,4
	.comm	WM8350_RTC_ALMSTS,4,4
	.comm	WM8350_RTC_ALMSET,4,4
	.comm	ETIMEDOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
