	.file	"extr_rtc-cmos.c_cmos_irq_enable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cmos_irq_enable, @function
cmos_irq_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	mov	edi, DWORD PTR RTC_CONTROL[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	call	CMOS_READ@PLT
	mov	rdi, r12
	movzx	esi, al
	mov	ebp, esi
	call	cmos_checkintr@PLT
	or	ebp, ebx
	mov	esi, DWORD PTR RTC_CONTROL[rip]
	movzx	ebp, bpl
	mov	edi, ebp
	call	CMOS_WRITE@PLT
	xor	eax, eax
	call	use_hpet_alarm@PLT
	test	rax, rax
	jne	.L17
	test	BYTE PTR RTC_AIE[rip], bl
	jne	.L18
.L4:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	esi, ebp
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	cmos_checkintr@PLT
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	movzx	edi, bl
	call	hpet_set_rtc_irq_bit@PLT
	test	BYTE PTR RTC_AIE[rip], bl
	je	.L4
.L18:
	xor	eax, eax
	call	cmos_use_acpi_alarm@PLT
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR 8[r12]
	test	rax, rax
	je	.L4
	mov	edi, DWORD PTR [r12]
	call	rax
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	esi, ebp
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	cmos_checkintr@PLT
	.cfi_endproc
.LFE0:
	.size	cmos_irq_enable, .-cmos_irq_enable
	.comm	RTC_CONTROL,4,4
	.comm	RTC_AIE,1,1
	.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-cmos.c_cmos_irq_enable.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmos_irq_enable, %function
cmos_irq_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L19
	mov	r6, r0
	ldr	r0, [r7]
	mov	r5, r1
	bl	CMOS_READ
	mov	r4, r0
	mov	r1, r4
	orr	r4, r4, r5
	mov	r0, r6
	and	r4, r4, #255
	bl	cmos_checkintr
	ldr	r1, [r7]
	mov	r0, r4
	bl	CMOS_WRITE
	bl	use_hpet_alarm
	cmp	r0, #0
	bne	.L17
	ldr	r3, .L19+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	tst	r5, r3
	bne	.L18
.L4:
	mov	r1, r4
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	cmos_checkintr
.L17:
	mov	r0, r5
	bl	hpet_set_rtc_irq_bit
	ldr	r3, .L19+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	tst	r5, r3
	beq	.L4
.L18:
	bl	cmos_use_acpi_alarm
	cmp	r0, #0
	beq	.L4
	ldr	r3, [r6, #4]
	cmp	r3, #0
	beq	.L4
	ldr	r0, [r6]
	blx	r3
	mov	r1, r4
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	cmos_checkintr
.L20:
	.align	2
.L19:
	.word	RTC_CONTROL
	.word	RTC_AIE
	.size	cmos_irq_enable, .-cmos_irq_enable
	.comm	RTC_CONTROL,4,4
	.comm	RTC_AIE,1,1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
