	.file	"extr_rtc-bd70528.c_bd70528_set_rtc_based_timers.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to disable WDG for RTC setting (%d)\n"
	.align 8
.LC1:
	.string	"Failed to disable 'elapsed timer' for RTC setting\n"
	.align 8
.LC2:
	.string	"Failed to disable 'wake timer' for RTC setting\n"
	.text
	.p2align 4
	.type	bd70528_set_rtc_based_timers, @function
bd70528_set_rtc_based_timers:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 4[rdi]
	and	esi, DWORD PTR BD70528_WDT_STATE_BIT[rip]
	call	bd70528_wdt_set@PLT
	test	eax, eax
	jne	.L10
	mov	esi, DWORD PTR BD70528_ELAPSED_STATE_BIT[rip]
	mov	edi, DWORD PTR 4[rbp]
	mov	rdx, r13
	and	esi, ebx
	call	bd70528_set_elapsed_tmr@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L11
	and	ebx, DWORD PTR BD70528_WAKE_STATE_BIT[rip]
	mov	edi, DWORD PTR 4[rbp]
	mov	rdx, r13
	mov	esi, ebx
	call	bd70528_set_wake@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L12
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	dev_err@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	mov	r12d, eax
	mov	edx, eax
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	dev_err@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	bd70528_set_rtc_based_timers, .-bd70528_set_rtc_based_timers
	.comm	BD70528_WDT_STATE_BIT,4,4
	.comm	BD70528_WAKE_STATE_BIT,4,4
	.comm	BD70528_ELAPSED_STATE_BIT,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-bd70528.c_bd70528_set_rtc_based_timers.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to disable WDG for RTC setting (%d)\012\000"
	.align	2
.LC1:
	.ascii	"Failed to disable 'elapsed timer' for RTC setting\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"Failed to disable 'wake timer' for RTC setting\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bd70528_set_rtc_based_timers, %function
bd70528_set_rtc_based_timers:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	ldr	r3, .L13
	mov	r5, r0
	ldr	r1, [r3]
	ldr	r0, [r0, #4]
	and	r1, r1, r6
	mov	r7, r2
	bl	bd70528_wdt_set
	subs	r4, r0, #0
	bne	.L10
	ldr	r3, .L13+4
	mov	r2, r7
	ldr	r1, [r3]
	ldr	r0, [r5, #4]
	and	r1, r1, r6
	bl	bd70528_set_elapsed_tmr
	subs	r4, r0, #0
	bne	.L11
	ldr	r3, .L13+8
	mov	r2, r7
	ldr	r1, [r3]
	ldr	r0, [r5, #4]
	and	r1, r1, r6
	bl	bd70528_set_wake
	subs	r4, r0, #0
	bne	.L12
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r0, [r5]
	ldr	r1, .L13+12
	bl	dev_err
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r2, r4
	ldr	r0, [r5]
	ldr	r1, .L13+16
	bl	dev_err
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r0, [r5]
	ldr	r1, .L13+20
	bl	dev_err
	b	.L1
.L14:
	.align	2
.L13:
	.word	BD70528_WDT_STATE_BIT
	.word	BD70528_ELAPSED_STATE_BIT
	.word	BD70528_WAKE_STATE_BIT
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.size	bd70528_set_rtc_based_timers, .-bd70528_set_rtc_based_timers
	.comm	BD70528_WDT_STATE_BIT,4,4
	.comm	BD70528_WAKE_STATE_BIT,4,4
	.comm	BD70528_ELAPSED_STATE_BIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
