	.file	"extr_rtc-mt7622.c_mtk_rtc_get_alarm_or_time.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mtk_rtc_get_alarm_or_time, @function
mtk_rtc_get_alarm_or_time:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 24[rsp], rsi
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, DWORD PTR MTK_SEC[rip]
	mov	edi, ebx
	call	MTK_RTC_TREG@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	mtk_r32@PLT
	mov	esi, DWORD PTR MTK_MIN[rip]
	mov	edi, ebx
	mov	r12, rax
	call	MTK_RTC_TREG@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	mtk_r32@PLT
	mov	esi, DWORD PTR MTK_HOU[rip]
	mov	edi, ebx
	mov	r15, rax
	call	MTK_RTC_TREG@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	mtk_r32@PLT
	mov	esi, DWORD PTR MTK_DOW[rip]
	mov	edi, ebx
	mov	r14, rax
	call	MTK_RTC_TREG@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	mtk_r32@PLT
	mov	esi, DWORD PTR MTK_DOM[rip]
	mov	edi, ebx
	mov	r13, rax
	call	MTK_RTC_TREG@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	mtk_r32@PLT
	mov	esi, DWORD PTR MTK_MON[rip]
	mov	edi, ebx
	mov	QWORD PTR [rsp], rax
	call	MTK_RTC_TREG@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	mtk_r32@PLT
	mov	esi, DWORD PTR MTK_YEA[rip]
	mov	edi, ebx
	mov	QWORD PTR 8[rsp], rax
	call	MTK_RTC_TREG@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	mtk_r32@PLT
	mov	esi, DWORD PTR MTK_SEC[rip]
	mov	edi, ebx
	mov	QWORD PTR 16[rsp], rax
	call	MTK_RTC_TREG@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	mtk_r32@PLT
	cmp	rax, r12
	jne	.L2
	mov	rcx, QWORD PTR 24[rsp]
	mov	QWORD PTR 48[rcx], rax
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR 40[rcx], r15
	mov	QWORD PTR 16[rcx], rax
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR 32[rcx], r14
	sub	rax, 1
	mov	QWORD PTR 24[rcx], r13
	mov	QWORD PTR 8[rcx], rax
	mov	rax, QWORD PTR 16[rsp]
	add	rax, QWORD PTR MTK_RTC_TM_YR_OFFSET[rip]
	mov	QWORD PTR [rcx], rax
	add	rsp, 40
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mtk_rtc_get_alarm_or_time, .-mtk_rtc_get_alarm_or_time
	.comm	MTK_YEA,4,4
	.comm	MTK_SEC,4,4
	.comm	MTK_RTC_TM_YR_OFFSET,8,8
	.comm	MTK_MON,4,4
	.comm	MTK_MIN,4,4
	.comm	MTK_HOU,4,4
	.comm	MTK_DOW,4,4
	.comm	MTK_DOM,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-mt7622.c_mtk_rtc_get_alarm_or_time.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mtk_rtc_get_alarm_or_time, %function
mtk_rtc_get_alarm_or_time:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	mov	r4, r2
	sub	sp, sp, #20
	ldr	fp, .L6
	str	r1, [sp, #12]
.L2:
	ldr	r1, [fp]
	mov	r0, r4
	bl	MTK_RTC_TREG
	mov	r1, r0
	mov	r0, r5
	bl	mtk_r32
	mov	r3, r0
	ldr	r2, .L6+4
	mov	r0, r4
	ldr	r1, [r2]
	str	r3, [sp, #4]
	bl	MTK_RTC_TREG
	mov	r1, r0
	mov	r0, r5
	bl	mtk_r32
	mov	r2, r0
	ldr	r3, .L6+8
	mov	r0, r4
	ldr	r1, [r3]
	str	r2, [sp, #8]
	bl	MTK_RTC_TREG
	mov	r1, r0
	mov	r0, r5
	bl	mtk_r32
	ldr	r3, .L6+12
	mov	r9, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	MTK_RTC_TREG
	mov	r1, r0
	mov	r0, r5
	bl	mtk_r32
	ldr	r3, .L6+16
	mov	r8, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	MTK_RTC_TREG
	mov	r1, r0
	mov	r0, r5
	bl	mtk_r32
	ldr	r3, .L6+20
	mov	r7, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	MTK_RTC_TREG
	mov	r1, r0
	mov	r0, r5
	bl	mtk_r32
	ldr	r3, .L6+24
	mov	r6, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	MTK_RTC_TREG
	mov	r1, r0
	mov	r0, r5
	bl	mtk_r32
	ldr	r1, [fp]
	mov	r10, r0
	mov	r0, r4
	bl	MTK_RTC_TREG
	mov	r1, r0
	mov	r0, r5
	bl	mtk_r32
	ldr	r3, [sp, #4]
	cmp	r0, r3
	bne	.L2
	ldr	r3, .L6+28
	ldr	r2, [sp, #12]
	ldr	r3, [r3]
	sub	r6, r6, #1
	add	r10, r3, r10
	mov	r3, r2
	str	r6, [r2, #4]
	str	r0, [r2, #24]
	ldr	r2, [sp, #8]
	str	r9, [r3, #16]
	str	r2, [r3, #20]
	str	r8, [r3, #12]
	str	r7, [r3, #8]
	str	r10, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	.align	2
.L6:
	.word	MTK_SEC
	.word	MTK_MIN
	.word	MTK_HOU
	.word	MTK_DOW
	.word	MTK_DOM
	.word	MTK_MON
	.word	MTK_YEA
	.word	MTK_RTC_TM_YR_OFFSET
	.size	mtk_rtc_get_alarm_or_time, .-mtk_rtc_get_alarm_or_time
	.comm	MTK_YEA,4,4
	.comm	MTK_SEC,4,4
	.comm	MTK_RTC_TM_YR_OFFSET,4,4
	.comm	MTK_MON,4,4
	.comm	MTK_MIN,4,4
	.comm	MTK_HOU,4,4
	.comm	MTK_DOW,4,4
	.comm	MTK_DOM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
