	.file	"225143966.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
	.type	default_rtc, @object
	.size	default_rtc, 10
default_rtc:
	.string	"/dev/rtc0"
.LC0:
	.string	"usage:  rtctest [rtcdev]\n"
	.align 8
.LC1:
	.string	"\n\t\t\tRTC Driver Test Example.\n\n"
	.align 8
.LC2:
	.string	"\n...Update IRQs not supported.\n"
.LC3:
	.string	"RTC_UIE_ON ioctl"
	.align 8
.LC4:
	.string	"Counting 5 update (1/sec) interrupts from reading %s:"
.LC5:
	.string	"read"
.LC6:
	.string	" %d"
	.align 8
.LC7:
	.string	"\nAgain, from using select(2) on /dev/rtc:"
.LC8:
	.string	"select"
.LC9:
	.string	"RTC_UIE_OFF ioctl"
.LC10:
	.string	"RTC_RD_TIME ioctl"
	.align 8
.LC11:
	.string	"\n\nCurrent RTC date/time is %d-%d-%d, %02d:%02d:%02d.\n"
	.align 8
.LC12:
	.string	"\n...Alarm IRQs not supported.\n"
.LC13:
	.string	"RTC_ALM_SET ioctl"
.LC14:
	.string	"RTC_ALM_READ ioctl"
	.align 8
.LC15:
	.string	"Alarm time now set to %02d:%02d:%02d.\n"
.LC16:
	.string	"RTC_AIE_ON ioctl"
	.align 8
.LC17:
	.string	"Waiting 5 seconds for alarm..."
.LC18:
	.string	" okay. Alarm rang.\n"
.LC19:
	.string	"RTC_AIE_OFF ioctl"
.LC20:
	.string	"\nNo periodic IRQ support\n"
.LC21:
	.string	"RTC_IRQP_READ ioctl"
.LC22:
	.string	"\nPeriodic IRQ rate is %ldHz.\n"
.LC23:
	.string	"Counting 20 interrupts at:"
	.align 8
.LC24:
	.string	"\n...Periodic IRQ rate is fixed\n"
.LC25:
	.string	"RTC_IRQP_SET ioctl"
.LC26:
	.string	"\n%ldHz:\t"
.LC27:
	.string	"RTC_PIE_ON ioctl"
.LC28:
	.string	"RTC_PIE_OFF ioctl"
.LC29:
	.string	"\n\n\t\t\t *** Test complete ***\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 256
	mov	DWORD PTR -244[rbp], edi
	mov	QWORD PTR -256[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -236[rbp], 0
	lea	rax, default_rtc[rip]
	mov	QWORD PTR -200[rbp], rax
	cmp	DWORD PTR -244[rbp], 1
	je	.L41
	cmp	DWORD PTR -244[rbp], 2
	jne	.L3
	mov	rax, QWORD PTR -256[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -200[rbp], rax
	jmp	.L41
.L3:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L39
.L41:
	nop
	mov	rax, QWORD PTR -200[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -232[rbp], eax
	cmp	DWORD PTR -232[rbp], -1
	jne	.L6
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR -232[rbp]
	mov	edx, 0
	mov	esi, 28675
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -1
	jne	.L7
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 25
	jne	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	jmp	.L9
.L8:
	lea	rdi, .LC3[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L7:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -200[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	DWORD PTR -240[rbp], 1
	jmp	.L10
.L12:
	lea	rcx, -208[rbp]
	mov	eax, DWORD PTR -232[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -1
	jne	.L11
	lea	rdi, .LC5[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L11:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -240[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdi, rax
	call	fflush@PLT
	add	DWORD PTR -236[rbp], 1
	add	DWORD PTR -240[rbp], 1
.L10:
	cmp	DWORD PTR -240[rbp], 5
	jle	.L12
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 41
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	DWORD PTR -240[rbp], 1
	jmp	.L13
.L16:
	mov	QWORD PTR -192[rbp], 5
	mov	QWORD PTR -184[rbp], 0
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -144[rbp]
	mov	rdi, rdx
#APP
# 116 "the_stack_data/225143966.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -224[rbp], edx
	mov	DWORD PTR -220[rbp], eax
	mov	eax, DWORD PTR -232[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -144[rbp+rax*8]
	mov	eax, DWORD PTR -232[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -144[rbp+rax*8], rdx
	mov	eax, DWORD PTR -232[rbp]
	lea	edi, 1[rax]
	lea	rdx, -192[rbp]
	lea	rax, -144[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	call	select@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -1
	jne	.L14
	lea	rdi, .LC8[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L14:
	lea	rcx, -208[rbp]
	mov	eax, DWORD PTR -232[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -1
	jne	.L15
	lea	rdi, .LC5[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L15:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -240[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdi, rax
	call	fflush@PLT
	add	DWORD PTR -236[rbp], 1
	add	DWORD PTR -240[rbp], 1
.L13:
	cmp	DWORD PTR -240[rbp], 5
	jle	.L16
	mov	eax, DWORD PTR -232[rbp]
	mov	edx, 0
	mov	esi, 28676
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -1
	jne	.L42
	lea	rdi, .LC9[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L42:
	nop
.L9:
	lea	rdx, -192[rbp]
	mov	eax, DWORD PTR -232[rbp]
	mov	esi, 2149871625
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -1
	jne	.L17
	lea	rdi, .LC10[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L17:
	mov	edi, DWORD PTR -192[rbp]
	mov	esi, DWORD PTR -188[rbp]
	mov	r8d, DWORD PTR -184[rbp]
	mov	eax, DWORD PTR -172[rbp]
	lea	r10d, 1900[rax]
	mov	eax, DWORD PTR -176[rbp]
	lea	ecx, 1[rax]
	mov	edx, DWORD PTR -180[rbp]
	mov	rax, QWORD PTR stderr[rip]
	push	rdi
	push	rsi
	mov	r9d, r8d
	mov	r8d, r10d
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 16
	mov	eax, DWORD PTR -192[rbp]
	add	eax, 5
	mov	DWORD PTR -192[rbp], eax
	mov	eax, DWORD PTR -192[rbp]
	cmp	eax, 59
	jle	.L18
	mov	eax, DWORD PTR -192[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -2004318071
	shr	rdx, 32
	add	edx, eax
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 60
	sub	eax, ecx
	mov	edx, eax
	mov	DWORD PTR -192[rbp], edx
	mov	eax, DWORD PTR -188[rbp]
	add	eax, 1
	mov	DWORD PTR -188[rbp], eax
.L18:
	mov	eax, DWORD PTR -188[rbp]
	cmp	eax, 60
	jne	.L19
	mov	DWORD PTR -188[rbp], 0
	mov	eax, DWORD PTR -184[rbp]
	add	eax, 1
	mov	DWORD PTR -184[rbp], eax
.L19:
	mov	eax, DWORD PTR -184[rbp]
	cmp	eax, 24
	jne	.L20
	mov	DWORD PTR -184[rbp], 0
.L20:
	lea	rdx, -192[rbp]
	mov	eax, DWORD PTR -232[rbp]
	mov	esi, 1076129799
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -1
	jne	.L21
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 25
	jne	.L22
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	jmp	.L23
.L22:
	lea	rdi, .LC13[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L21:
	lea	rdx, -192[rbp]
	mov	eax, DWORD PTR -232[rbp]
	mov	esi, 2149871624
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -1
	jne	.L24
	lea	rdi, .LC14[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L24:
	mov	esi, DWORD PTR -192[rbp]
	mov	ecx, DWORD PTR -188[rbp]
	mov	edx, DWORD PTR -184[rbp]
	mov	rax, QWORD PTR stderr[rip]
	mov	r8d, esi
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -232[rbp]
	mov	edx, 0
	mov	esi, 28673
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -1
	jne	.L25
	lea	rdi, .LC16[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L25:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rcx, -208[rbp]
	mov	eax, DWORD PTR -232[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -1
	jne	.L26
	lea	rdi, .LC5[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L26:
	add	DWORD PTR -236[rbp], 1
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR -232[rbp]
	mov	edx, 0
	mov	esi, 28674
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -1
	jne	.L43
	lea	rdi, .LC19[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L43:
	nop
.L23:
	lea	rdx, -216[rbp]
	mov	eax, DWORD PTR -232[rbp]
	mov	esi, 2148036619
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -1
	jne	.L27
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 25
	jne	.L28
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
	jmp	.L29
.L28:
	lea	rdi, .LC21[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L27:
	mov	rdx, QWORD PTR -216[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 26
	mov	esi, 1
	lea	rdi, .LC23[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	QWORD PTR -216[rbp], 2
	jmp	.L30
.L38:
	mov	rdx, QWORD PTR -216[rbp]
	mov	eax, DWORD PTR -232[rbp]
	mov	esi, 1074294796
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -1
	jne	.L31
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 25
	jne	.L32
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC24[rip]
	call	fwrite@PLT
	jmp	.L29
.L32:
	lea	rdi, .LC25[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L31:
	mov	rdx, QWORD PTR -216[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, DWORD PTR -232[rbp]
	mov	edx, 0
	mov	esi, 28677
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -1
	jne	.L33
	lea	rdi, .LC27[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L33:
	mov	DWORD PTR -240[rbp], 1
	jmp	.L34
.L36:
	lea	rcx, -208[rbp]
	mov	eax, DWORD PTR -232[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -1
	jne	.L35
	lea	rdi, .LC5[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L35:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -240[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdi, rax
	call	fflush@PLT
	add	DWORD PTR -236[rbp], 1
	add	DWORD PTR -240[rbp], 1
.L34:
	cmp	DWORD PTR -240[rbp], 20
	jle	.L36
	mov	eax, DWORD PTR -232[rbp]
	mov	edx, 0
	mov	esi, 28678
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -228[rbp], eax
	cmp	DWORD PTR -228[rbp], -1
	jne	.L37
	lea	rdi, .LC28[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	exit@PLT
.L37:
	mov	rax, QWORD PTR -216[rbp]
	add	rax, rax
	mov	QWORD PTR -216[rbp], rax
.L30:
	mov	rax, QWORD PTR -216[rbp]
	cmp	rax, 64
	jbe	.L38
	nop
.L29:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC29[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR -232[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L39:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"225143966.c"
	.text
	.section	.rodata
	.align	2
	.type	default_rtc, %object
	.size	default_rtc, 10
default_rtc:
	.ascii	"/dev/rtc0\000"
	.align	2
.LC0:
	.ascii	"usage:  rtctest [rtcdev]\012\000"
	.align	2
.LC1:
	.ascii	"\012\011\011\011RTC Driver Test Example.\012\012\000"
	.align	2
.LC2:
	.ascii	"\012...Update IRQs not supported.\012\000"
	.align	2
.LC3:
	.ascii	"RTC_UIE_ON ioctl\000"
	.align	2
.LC4:
	.ascii	"Counting 5 update (1/sec) interrupts from reading %"
	.ascii	"s:\000"
	.align	2
.LC5:
	.ascii	"read\000"
	.align	2
.LC6:
	.ascii	" %d\000"
	.align	2
.LC7:
	.ascii	"\012Again, from using select(2) on /dev/rtc:\000"
	.align	2
.LC8:
	.ascii	"select\000"
	.align	2
.LC9:
	.ascii	"RTC_UIE_OFF ioctl\000"
	.align	2
.LC10:
	.ascii	"RTC_RD_TIME ioctl\000"
	.align	2
.LC11:
	.ascii	"\012\012Current RTC date/time is %d-%d-%d, %02d:%02"
	.ascii	"d:%02d.\012\000"
	.align	2
.LC12:
	.ascii	"\012...Alarm IRQs not supported.\012\000"
	.align	2
.LC13:
	.ascii	"RTC_ALM_SET ioctl\000"
	.align	2
.LC14:
	.ascii	"RTC_ALM_READ ioctl\000"
	.align	2
.LC15:
	.ascii	"Alarm time now set to %02d:%02d:%02d.\012\000"
	.align	2
.LC16:
	.ascii	"RTC_AIE_ON ioctl\000"
	.align	2
.LC17:
	.ascii	"Waiting 5 seconds for alarm...\000"
	.align	2
.LC18:
	.ascii	" okay. Alarm rang.\012\000"
	.align	2
.LC19:
	.ascii	"RTC_AIE_OFF ioctl\000"
	.align	2
.LC20:
	.ascii	"\012No periodic IRQ support\012\000"
	.align	2
.LC21:
	.ascii	"RTC_IRQP_READ ioctl\000"
	.align	2
.LC22:
	.ascii	"\012Periodic IRQ rate is %ldHz.\012\000"
	.align	2
.LC23:
	.ascii	"Counting 20 interrupts at:\000"
	.align	2
.LC24:
	.ascii	"\012...Periodic IRQ rate is fixed\012\000"
	.align	2
.LC25:
	.ascii	"RTC_IRQP_SET ioctl\000"
	.align	2
.LC26:
	.ascii	"\012%ldHz:\011\000"
	.align	2
.LC27:
	.ascii	"RTC_PIE_ON ioctl\000"
	.align	2
.LC28:
	.ascii	"RTC_PIE_OFF ioctl\000"
	.align	2
.LC29:
	.ascii	"\012\012\011\011\011 *** Test complete ***\012\000"
	.align	2
.LC30:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 216
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #236
	str	r0, [fp, #-224]
	str	r1, [fp, #-228]
	ldr	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-204]
	ldr	r3, .L46+4
	str	r3, [fp, #-200]
	ldr	r3, [fp, #-224]
	cmp	r3, #1
	beq	.L43
	ldr	r3, [fp, #-224]
	cmp	r3, #2
	bne	.L3
	ldr	r3, [fp, #-228]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-200]
	b	.L43
.L3:
	ldr	r3, .L46+8
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L46+12
	bl	fwrite
	mov	r3, #1
	b	.L41
.L43:
	nop
	mov	r1, #0
	ldr	r0, [fp, #-200]
	bl	open
	str	r0, [fp, #-192]
	ldr	r3, [fp, #-192]
	cmn	r3, #1
	bne	.L6
	ldr	r0, [fp, #-200]
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L6:
	ldr	r3, .L46+8
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L46+16
	bl	fwrite
	mov	r2, #0
	ldr	r1, .L46+20
	ldr	r0, [fp, #-192]
	bl	ioctl
	str	r0, [fp, #-188]
	ldr	r3, [fp, #-188]
	cmn	r3, #1
	bne	.L7
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #25
	bne	.L8
	ldr	r3, .L46+8
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L46+24
	bl	fwrite
	b	.L9
.L8:
	ldr	r0, .L46+28
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L7:
	ldr	r3, .L46+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-200]
	ldr	r1, .L46+32
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L46+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #1
	str	r3, [fp, #-208]
	b	.L10
.L12:
	sub	r3, fp, #212
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-192]
	bl	read
	str	r0, [fp, #-188]
	ldr	r3, [fp, #-188]
	cmn	r3, #1
	bne	.L11
	ldr	r0, .L46+36
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L11:
	ldr	r3, .L46+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-208]
	ldr	r1, .L46+40
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L46+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-204]
	add	r3, r3, #1
	str	r3, [fp, #-204]
	ldr	r3, [fp, #-208]
	add	r3, r3, #1
	str	r3, [fp, #-208]
.L10:
	ldr	r3, [fp, #-208]
	cmp	r3, #5
	ble	.L12
	ldr	r3, .L46+8
	ldr	r3, [r3]
	mov	r2, #41
	mov	r1, #1
	ldr	r0, .L46+44
	bl	fwrite
	ldr	r3, .L46+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #1
	str	r3, [fp, #-208]
	b	.L13
.L18:
	mov	r3, #5
	str	r3, [fp, #-180]
	mov	r3, #0
	str	r3, [fp, #-176]
	sub	r3, fp, #144
	str	r3, [fp, #-184]
	mov	r3, #0
	str	r3, [fp, #-196]
	b	.L14
.L15:
	ldr	r3, [fp, #-184]
	ldr	r2, [fp, #-196]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-196]
	add	r3, r3, #1
	str	r3, [fp, #-196]
.L14:
	ldr	r3, [fp, #-196]
	cmp	r3, #31
	bls	.L15
	ldr	r3, [fp, #-192]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r1, [r3, #-132]
	ldr	r3, [fp, #-192]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	str	r1, [r3, #-132]
	ldr	r3, [fp, #-192]
	add	r0, r3, #1
	sub	r1, fp, #144
	sub	r3, fp, #180
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	select
	str	r0, [fp, #-188]
	ldr	r3, [fp, #-188]
	cmn	r3, #1
	bne	.L16
	ldr	r0, .L46+48
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L16:
	sub	r3, fp, #212
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-192]
	bl	read
	str	r0, [fp, #-188]
	ldr	r3, [fp, #-188]
	cmn	r3, #1
	bne	.L17
	ldr	r0, .L46+36
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L17:
	ldr	r3, .L46+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-208]
	ldr	r1, .L46+40
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L46+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-204]
	add	r3, r3, #1
	str	r3, [fp, #-204]
	ldr	r3, [fp, #-208]
	add	r3, r3, #1
	str	r3, [fp, #-208]
.L13:
	ldr	r3, [fp, #-208]
	cmp	r3, #5
	ble	.L18
	mov	r2, #0
	ldr	r1, .L46+52
	ldr	r0, [fp, #-192]
	bl	ioctl
	str	r0, [fp, #-188]
	ldr	r3, [fp, #-188]
	cmn	r3, #1
	bne	.L44
	ldr	r0, .L46+56
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L44:
	nop
.L9:
	sub	r3, fp, #180
	mov	r2, r3
	ldr	r1, .L46+60
	ldr	r0, [fp, #-192]
	bl	ioctl
	str	r0, [fp, #-188]
	ldr	r3, [fp, #-188]
	cmn	r3, #1
	bne	.L19
	ldr	r0, .L46+64
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L19:
	ldr	r3, .L46+8
	ldr	ip, [r3]
	ldr	lr, [fp, #-168]
	ldr	r3, [fp, #-164]
	add	r4, r3, #1
	ldr	r3, [fp, #-160]
	add	r3, r3, #1888
	add	r3, r3, #12
	ldr	r2, [fp, #-172]
	ldr	r1, [fp, #-176]
	ldr	r0, [fp, #-180]
	str	r0, [sp, #12]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r4
	mov	r2, lr
	ldr	r1, .L46+68
	mov	r0, ip
	bl	fprintf
	ldr	r3, [fp, #-180]
	add	r3, r3, #5
	str	r3, [fp, #-180]
	ldr	r3, [fp, #-180]
	cmp	r3, #59
	ble	.L20
	ldr	r2, [fp, #-180]
	ldr	r3, .L46+72
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #5
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #4
	sub	r3, r3, r1
	lsl	r3, r3, #2
	sub	r1, r2, r3
	str	r1, [fp, #-180]
	ldr	r3, [fp, #-176]
	add	r3, r3, #1
	str	r3, [fp, #-176]
.L20:
	ldr	r3, [fp, #-176]
	cmp	r3, #60
	bne	.L21
	mov	r3, #0
	str	r3, [fp, #-176]
	ldr	r3, [fp, #-172]
	add	r3, r3, #1
	str	r3, [fp, #-172]
.L21:
	ldr	r3, [fp, #-172]
	cmp	r3, #24
	bne	.L22
	mov	r3, #0
	str	r3, [fp, #-172]
.L22:
	sub	r3, fp, #180
	mov	r2, r3
	ldr	r1, .L46+76
	ldr	r0, [fp, #-192]
	bl	ioctl
	str	r0, [fp, #-188]
	ldr	r3, [fp, #-188]
	cmn	r3, #1
	bne	.L23
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #25
	bne	.L24
	ldr	r3, .L46+8
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L46+80
	bl	fwrite
	b	.L25
.L24:
	ldr	r0, .L46+84
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L23:
	sub	r3, fp, #180
	mov	r2, r3
	ldr	r1, .L46+88
	ldr	r0, [fp, #-192]
	bl	ioctl
	str	r0, [fp, #-188]
	ldr	r3, [fp, #-188]
	cmn	r3, #1
	bne	.L26
	ldr	r0, .L46+92
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L26:
	ldr	r3, .L46+8
	ldr	r0, [r3]
	ldr	r2, [fp, #-172]
	ldr	r1, [fp, #-176]
	ldr	r3, [fp, #-180]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L46+96
	bl	fprintf
	mov	r2, #0
	ldr	r1, .L46+100
	ldr	r0, [fp, #-192]
	bl	ioctl
	str	r0, [fp, #-188]
	ldr	r3, [fp, #-188]
	cmn	r3, #1
	bne	.L27
	ldr	r0, .L46+104
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L27:
	ldr	r3, .L46+8
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L46+108
	bl	fwrite
	ldr	r3, .L46+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #212
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-192]
	bl	read
	str	r0, [fp, #-188]
	ldr	r3, [fp, #-188]
	cmn	r3, #1
	bne	.L28
	ldr	r0, .L46+36
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L28:
	ldr	r3, [fp, #-204]
	add	r3, r3, #1
	str	r3, [fp, #-204]
	ldr	r3, .L46+8
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L46+112
	bl	fwrite
	mov	r2, #0
	ldr	r1, .L46+116
	ldr	r0, [fp, #-192]
	bl	ioctl
	str	r0, [fp, #-188]
	ldr	r3, [fp, #-188]
	cmn	r3, #1
	bne	.L45
	ldr	r0, .L46+120
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L45:
	nop
.L25:
	sub	r3, fp, #216
	mov	r2, r3
	ldr	r1, .L46+124
	ldr	r0, [fp, #-192]
	bl	ioctl
	str	r0, [fp, #-188]
	ldr	r3, [fp, #-188]
	cmn	r3, #1
	bne	.L29
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #25
	bne	.L30
	ldr	r3, .L46+8
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L46+128
	bl	fwrite
	b	.L31
.L30:
	ldr	r0, .L46+132
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L29:
	ldr	r3, .L46+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-216]
	ldr	r1, .L46+136
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L46+8
	ldr	r3, [r3]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, .L46+140
	bl	fwrite
	ldr	r3, .L46+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #2
	str	r3, [fp, #-216]
	b	.L32
.L40:
	ldr	r3, [fp, #-216]
	mov	r2, r3
	ldr	r1, .L46+144
	ldr	r0, [fp, #-192]
	bl	ioctl
	str	r0, [fp, #-188]
	ldr	r3, [fp, #-188]
	cmn	r3, #1
	bne	.L33
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #25
	bne	.L34
	ldr	r3, .L46+8
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L46+148
	bl	fwrite
	b	.L31
.L34:
	ldr	r0, .L46+152
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L33:
	ldr	r3, .L46+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-216]
	ldr	r1, .L46+156
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L46+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r2, #0
	ldr	r1, .L46+160
	ldr	r0, [fp, #-192]
	bl	ioctl
	str	r0, [fp, #-188]
	ldr	r3, [fp, #-188]
	cmn	r3, #1
	bne	.L35
	ldr	r0, .L46+164
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L35:
	mov	r3, #1
	str	r3, [fp, #-208]
	b	.L36
.L38:
	sub	r3, fp, #212
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-192]
	bl	read
	str	r0, [fp, #-188]
	ldr	r3, [fp, #-188]
	cmn	r3, #1
	bne	.L37
	ldr	r0, .L46+36
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L37:
	ldr	r3, .L46+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-208]
	ldr	r1, .L46+40
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L46+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-204]
	add	r3, r3, #1
	str	r3, [fp, #-204]
	ldr	r3, [fp, #-208]
	add	r3, r3, #1
	str	r3, [fp, #-208]
.L36:
	ldr	r3, [fp, #-208]
	cmp	r3, #20
	ble	.L38
	mov	r2, #0
	ldr	r1, .L46+168
	ldr	r0, [fp, #-192]
	bl	ioctl
	str	r0, [fp, #-188]
	ldr	r3, [fp, #-188]
	cmn	r3, #1
	bne	.L39
	ldr	r0, .L46+172
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	exit
.L39:
	ldr	r3, [fp, #-216]
	lsl	r3, r3, #1
	str	r3, [fp, #-216]
.L32:
	ldr	r3, [fp, #-216]
	cmp	r3, #64
	bls	.L40
	nop
.L31:
	ldr	r3, .L46+8
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L46+176
	bl	fwrite
	ldr	r0, [fp, #-192]
	bl	close
	mov	r3, #0
.L41:
	ldr	r2, .L46
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L42
	bl	__stack_chk_fail
.L42:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC30
	.word	default_rtc
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	28675
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	28676
	.word	.LC9
	.word	-2145095671
	.word	.LC10
	.word	.LC11
	.word	-2004318071
	.word	1076129799
	.word	.LC12
	.word	.LC13
	.word	-2145095672
	.word	.LC14
	.word	.LC15
	.word	28673
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	28674
	.word	.LC19
	.word	-2147192821
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	1074032652
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	28677
	.word	.LC27
	.word	28678
	.word	.LC28
	.word	.LC29
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
