	.file	"221435.c"
	.intel_syntax noprefix
	.text
	.globl	current_getch
	.bss
	.align 4
	.type	current_getch, @object
	.size	current_getch, 4
current_getch:
	.zero	4
	.globl	doloop
	.data
	.align 4
	.type	doloop, @object
	.size	doloop, 4
doloop:
	.long	1
	.local	mainwnd
	.comm	mainwnd,8,8
	.local	screen
	.comm	screen,8,8
	.globl	my_win
	.bss
	.align 8
	.type	my_win, @object
	.size	my_win, 8
my_win:
	.zero	8
	.globl	now_sec
	.align 4
	.type	now_sec, @object
	.size	now_sec, 4
now_sec:
	.zero	4
	.globl	now_min
	.align 4
	.type	now_min, @object
	.size	now_min, 4
now_min:
	.zero	4
	.globl	now_hour
	.align 4
	.type	now_hour, @object
	.size	now_hour, 4
now_hour:
	.zero	4
	.globl	now_day
	.align 4
	.type	now_day, @object
	.size	now_day, 4
now_day:
	.zero	4
	.globl	now_wday
	.align 4
	.type	now_wday, @object
	.size	now_wday, 4
now_wday:
	.zero	4
	.globl	now_month
	.align 4
	.type	now_month, @object
	.size	now_month, 4
now_month:
	.zero	4
	.globl	now_year
	.align 4
	.type	now_year, @object
	.size	now_year, 4
now_year:
	.zero	4
	.globl	now
	.align 8
	.type	now, @object
	.size	now, 8
now:
	.zero	8
	.globl	now_tm
	.align 8
	.type	now_tm, @object
	.size	now_tm, 8
now_tm:
	.zero	8
	.text
	.globl	screen_init
	.type	screen_init, @function
screen_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	initscr@PLT
	mov	QWORD PTR mainwnd[rip], rax
	call	noecho@PLT
	call	cbreak@PLT
	mov	rax, QWORD PTR mainwnd[rip]
	mov	esi, 1
	mov	rdi, rax
	call	nodelay@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	rax, QWORD PTR mainwnd[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	ecx, 1
	mov	edx, 1
	mov	esi, 27
	mov	edi, 13
	call	newwin@PLT
	mov	QWORD PTR screen[rip], rax
	mov	edi, DWORD PTR acs_map[rip+452]
	mov	ecx, DWORD PTR acs_map[rip+452]
	mov	edx, DWORD PTR acs_map[rip+480]
	mov	esi, DWORD PTR acs_map[rip+480]
	mov	rax, QWORD PTR screen[rip]
	sub	rsp, 8
	push	0
	push	0
	push	0
	mov	r9d, 0
	mov	r8d, edi
	mov	rdi, rax
	call	wborder@PLT
	add	rsp, 32
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	screen_init, .-screen_init
	.section	.rodata
.LC0:
	.string	"-------- HEADER --------"
.LC1:
	.string	"TIME: %d:%d:%d"
.LC2:
	.string	"DATE: %d-%d-%d"
.LC3:
	.string	"PRESS q TO END"
.LC4:
	.string	"-------- FOOTER --------"
	.text
	.type	update_display, @function
update_display:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 0
	call	curs_set@PLT
	mov	rax, QWORD PTR screen[rip]
	lea	rcx, .LC0[rip]
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	edx, DWORD PTR now_sec[rip]
	mov	esi, DWORD PTR now_min[rip]
	mov	ecx, DWORD PTR now_hour[rip]
	mov	rax, QWORD PTR screen[rip]
	sub	rsp, 8
	push	rdx
	mov	r9d, esi
	mov	r8d, ecx
	lea	rcx, .LC1[rip]
	mov	edx, 6
	mov	esi, 3
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	add	rsp, 16
	mov	edx, DWORD PTR now_year[rip]
	mov	esi, DWORD PTR now_month[rip]
	mov	ecx, DWORD PTR now_day[rip]
	mov	rax, QWORD PTR screen[rip]
	sub	rsp, 8
	push	rdx
	mov	r9d, esi
	mov	r8d, ecx
	lea	rcx, .LC2[rip]
	mov	edx, 6
	mov	esi, 5
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	add	rsp, 16
	mov	rax, QWORD PTR screen[rip]
	lea	rcx, .LC3[rip]
	mov	edx, 6
	mov	esi, 7
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR screen[rip]
	lea	rcx, .LC4[rip]
	mov	edx, 1
	mov	esi, 10
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	mov	rax, QWORD PTR screen[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	update_display, .-update_display
	.globl	screen_end
	.type	screen_end, @function
screen_end:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	endwin@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	screen_end, .-screen_end
	.globl	maketime
	.type	maketime, @function
maketime:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR now[rip], rax
	lea	rdi, now[rip]
	call	localtime@PLT
	mov	QWORD PTR now_tm[rip], rax
	mov	rax, QWORD PTR now_tm[rip]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR now_sec[rip], eax
	mov	rax, QWORD PTR now_tm[rip]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR now_min[rip], eax
	mov	rax, QWORD PTR now_tm[rip]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR now_hour[rip], eax
	mov	rax, QWORD PTR now_tm[rip]
	mov	eax, DWORD PTR 12[rax]
	mov	DWORD PTR now_day[rip], eax
	mov	rax, QWORD PTR now_tm[rip]
	mov	eax, DWORD PTR 24[rax]
	mov	DWORD PTR now_wday[rip], eax
	mov	rax, QWORD PTR now_tm[rip]
	mov	eax, DWORD PTR 16[rax]
	add	eax, 1
	mov	DWORD PTR now_month[rip], eax
	mov	rax, QWORD PTR now_tm[rip]
	mov	eax, DWORD PTR 20[rax]
	add	eax, 1900
	mov	DWORD PTR now_year[rip], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	maketime, .-maketime
	.section	.rodata
.LC5:
	.string	"TEST ENDS"
	.text
	.globl	main
	.type	main, @function
main:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	screen_init
	jmp	.L6
.L8:
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	DWORD PTR current_getch[rip], eax
	mov	eax, DWORD PTR current_getch[rip]
	cmp	eax, 113
	jne	.L7
	mov	DWORD PTR doloop[rip], 0
.L7:
	call	maketime
	call	update_display
	mov	edi, 1
	mov	eax, 0
	call	sleep@PLT
.L6:
	mov	eax, DWORD PTR doloop[rip]
	test	eax, eax
	jne	.L8
	call	screen_end
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.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	"221435.c"
	.text
	.comm	current_getch,4,4
	.global	doloop
	.data
	.align	2
	.type	doloop, %object
	.size	doloop, 4
doloop:
	.word	1
	.local	mainwnd
	.comm	mainwnd,4,4
	.local	screen
	.comm	screen,4,4
	.comm	my_win,4,4
	.comm	now_sec,4,4
	.comm	now_min,4,4
	.comm	now_hour,4,4
	.comm	now_day,4,4
	.comm	now_wday,4,4
	.comm	now_month,4,4
	.comm	now_year,4,4
	.comm	now,4,4
	.comm	now_tm,4,4
	.text
	.align	2
	.global	screen_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	screen_init, %function
screen_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	bl	initscr
	mov	r3, r0
	ldr	r2, .L2
	str	r3, [r2]
	bl	noecho
	bl	cbreak
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	nodelay
	ldr	r3, .L2+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	mov	r3, #1
	mov	r2, #1
	mov	r1, #27
	mov	r0, #13
	bl	newwin
	mov	r3, r0
	ldr	r2, .L2+8
	str	r3, [r2]
	ldr	r3, .L2+8
	ldr	r0, [r3]
	ldr	r3, .L2+12
	ldr	r1, [r3, #480]
	ldr	r3, .L2+12
	ldr	r2, [r3, #480]
	ldr	r3, .L2+12
	ldr	ip, [r3, #452]
	ldr	r3, .L2+12
	ldr	r3, [r3, #452]
	mov	lr, #0
	str	lr, [sp, #16]
	mov	lr, #0
	str	lr, [sp, #12]
	mov	lr, #0
	str	lr, [sp, #8]
	mov	lr, #0
	str	lr, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	bl	wborder
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	mainwnd
	.word	stdscr
	.word	screen
	.word	acs_map
	.size	screen_init, .-screen_init
	.section	.rodata
	.align	2
.LC0:
	.ascii	"-------- HEADER --------\000"
	.align	2
.LC1:
	.ascii	"TIME: %d:%d:%d\000"
	.align	2
.LC2:
	.ascii	"DATE: %d-%d-%d\000"
	.align	2
.LC3:
	.ascii	"PRESS q TO END\000"
	.align	2
.LC4:
	.ascii	"-------- FOOTER --------\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_display, %function
update_display:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r0, #0
	bl	curs_set
	ldr	r3, .L5
	ldr	r0, [r3]
	ldr	r3, .L5+4
	mov	r2, #1
	mov	r1, #1
	bl	mvwprintw
	ldr	r3, .L5
	ldr	r0, [r3]
	ldr	r3, .L5+8
	ldr	r3, [r3]
	ldr	r2, .L5+12
	ldr	r2, [r2]
	ldr	r1, .L5+16
	ldr	r1, [r1]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, .L5+20
	mov	r2, #6
	mov	r1, #3
	bl	mvwprintw
	ldr	r3, .L5
	ldr	r0, [r3]
	ldr	r3, .L5+24
	ldr	r3, [r3]
	ldr	r2, .L5+28
	ldr	r2, [r2]
	ldr	r1, .L5+32
	ldr	r1, [r1]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, .L5+36
	mov	r2, #6
	mov	r1, #5
	bl	mvwprintw
	ldr	r3, .L5
	ldr	r0, [r3]
	ldr	r3, .L5+40
	mov	r2, #6
	mov	r1, #7
	bl	mvwprintw
	ldr	r3, .L5
	ldr	r0, [r3]
	ldr	r3, .L5+44
	mov	r2, #1
	mov	r1, #10
	bl	mvwprintw
	ldr	r3, .L5
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	ldr	r3, .L5+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	screen
	.word	.LC0
	.word	now_hour
	.word	now_min
	.word	now_sec
	.word	.LC1
	.word	now_day
	.word	now_month
	.word	now_year
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	stdscr
	.size	update_display, .-update_display
	.align	2
	.global	screen_end
	.syntax unified
	.arm
	.fpu softvfp
	.type	screen_end, %function
screen_end:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	endwin
	nop
	pop	{fp, pc}
	.size	screen_end, .-screen_end
	.align	2
	.global	maketime
	.syntax unified
	.arm
	.fpu softvfp
	.type	maketime, %function
maketime:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #0
	bl	time
	mov	r3, r0
	ldr	r2, .L9
	str	r3, [r2]
	ldr	r0, .L9
	bl	localtime
	mov	r3, r0
	ldr	r2, .L9+4
	str	r3, [r2]
	ldr	r3, .L9+4
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r2, .L9+8
	str	r3, [r2]
	ldr	r3, .L9+4
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, .L9+12
	str	r3, [r2]
	ldr	r3, .L9+4
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r2, .L9+16
	str	r3, [r2]
	ldr	r3, .L9+4
	ldr	r3, [r3]
	ldr	r3, [r3, #12]
	ldr	r2, .L9+20
	str	r3, [r2]
	ldr	r3, .L9+4
	ldr	r3, [r3]
	ldr	r3, [r3, #24]
	ldr	r2, .L9+24
	str	r3, [r2]
	ldr	r3, .L9+4
	ldr	r3, [r3]
	ldr	r3, [r3, #16]
	add	r3, r3, #1
	ldr	r2, .L9+28
	str	r3, [r2]
	ldr	r3, .L9+4
	ldr	r3, [r3]
	ldr	r3, [r3, #20]
	add	r3, r3, #1888
	add	r3, r3, #12
	ldr	r2, .L9+32
	str	r3, [r2]
	nop
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	now
	.word	now_tm
	.word	now_sec
	.word	now_min
	.word	now_hour
	.word	now_day
	.word	now_wday
	.word	now_month
	.word	now_year
	.size	maketime, .-maketime
	.section	.rodata
	.align	2
.LC5:
	.ascii	"TEST ENDS\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	screen_init
	b	.L12
.L14:
	ldr	r3, .L16
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	mov	r3, r0
	ldr	r2, .L16+4
	str	r3, [r2]
	ldr	r3, .L16+4
	ldr	r3, [r3]
	cmp	r3, #113
	bne	.L13
	ldr	r3, .L16+8
	mov	r2, #0
	str	r2, [r3]
.L13:
	bl	maketime
	bl	update_display
	mov	r0, #1
	bl	sleep
.L12:
	ldr	r3, .L16+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L14
	bl	screen_end
	ldr	r0, .L16+12
	bl	puts
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	stdscr
	.word	current_getch
	.word	doloop
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
