	.file	"extr_rtc-cadence.c_cdns_rtc_alarm_irq_enable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cdns_rtc_alarm_irq_enable, @function
cdns_rtc_alarm_irq_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	dev_get_drvdata@PLT
	mov	rsi, QWORD PTR CDNS_RTC_AENR[rip]
	mov	rbx, rax
	add	rsi, QWORD PTR [rax]
	test	ebp, ebp
	je	.L2
	mov	edi, DWORD PTR CDNS_RTC_AEI_SEC[rip]
	or	edi, DWORD PTR CDNS_RTC_AEI_MIN[rip]
	or	edi, DWORD PTR CDNS_RTC_AEI_HOUR[rip]
	or	edi, DWORD PTR CDNS_RTC_AEI_DATE[rip]
	or	edi, DWORD PTR CDNS_RTC_AEI_MNTH[rip]
	call	writel@PLT
	mov	edi, DWORD PTR CDNS_RTC_AEI_ALRM[rip]
	mov	rsi, QWORD PTR CDNS_RTC_IENR[rip]
	add	rsi, QWORD PTR [rbx]
	call	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
	xor	edi, edi
	call	writel@PLT
	mov	edi, DWORD PTR CDNS_RTC_AEI_ALRM[rip]
	mov	rsi, QWORD PTR CDNS_RTC_IDISR[rip]
	add	rsi, QWORD PTR [rbx]
	call	writel@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cdns_rtc_alarm_irq_enable, .-cdns_rtc_alarm_irq_enable
	.comm	CDNS_RTC_IENR,8,8
	.comm	CDNS_RTC_IDISR,8,8
	.comm	CDNS_RTC_AENR,8,8
	.comm	CDNS_RTC_AEI_SEC,4,4
	.comm	CDNS_RTC_AEI_MNTH,4,4
	.comm	CDNS_RTC_AEI_MIN,4,4
	.comm	CDNS_RTC_AEI_HOUR,4,4
	.comm	CDNS_RTC_AEI_DATE,4,4
	.comm	CDNS_RTC_AEI_ALRM,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-cadence.c_cdns_rtc_alarm_irq_enable.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cdns_rtc_alarm_irq_enable, %function
cdns_rtc_alarm_irq_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	bl	dev_get_drvdata
	cmp	r5, #0
	mov	r4, r0
	beq	.L2
	ldr	r3, .L7
	ldr	r2, .L7+4
	ldr	r1, .L7+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	ip, .L7+12
	ldr	r0, [r1]
	orr	r3, r3, r2
	ldr	r1, .L7+16
	ldr	r2, .L7+20
	ldr	ip, [ip]
	ldr	r2, [r2]
	orr	r3, r3, r0
	ldr	r0, [r1]
	ldr	r1, [r4]
	orr	r3, r3, ip
	orr	r0, r3, r0
	add	r1, r1, r2
	bl	writel
	ldr	r3, .L7+24
.L5:
	ldr	r2, [r3]
	ldr	r1, [r4]
	ldr	r3, .L7+28
	add	r1, r1, r2
	ldr	r0, [r3]
	bl	writel
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L7+20
	ldr	r1, [r0]
	ldr	r3, [r3]
	mov	r0, r5
	add	r1, r1, r3
	bl	writel
	ldr	r3, .L7+32
	b	.L5
.L8:
	.align	2
.L7:
	.word	CDNS_RTC_AEI_SEC
	.word	CDNS_RTC_AEI_MIN
	.word	CDNS_RTC_AEI_HOUR
	.word	CDNS_RTC_AEI_DATE
	.word	CDNS_RTC_AEI_MNTH
	.word	CDNS_RTC_AENR
	.word	CDNS_RTC_IENR
	.word	CDNS_RTC_AEI_ALRM
	.word	CDNS_RTC_IDISR
	.size	cdns_rtc_alarm_irq_enable, .-cdns_rtc_alarm_irq_enable
	.comm	CDNS_RTC_IENR,4,4
	.comm	CDNS_RTC_IDISR,4,4
	.comm	CDNS_RTC_AENR,4,4
	.comm	CDNS_RTC_AEI_SEC,4,4
	.comm	CDNS_RTC_AEI_MNTH,4,4
	.comm	CDNS_RTC_AEI_MIN,4,4
	.comm	CDNS_RTC_AEI_HOUR,4,4
	.comm	CDNS_RTC_AEI_DATE,4,4
	.comm	CDNS_RTC_AEI_ALRM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
