	.file	"168894269.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Your terminal does not support color"
.LC1:
	.string	"Press F10 to exit"
.LC2:
	.string	" moved \n"
.LC3:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	call	initscr@PLT
	call	has_colors@PLT
	xor	eax, 1
	test	al, al
	je	.L2
	call	endwin@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L3
.L2:
	call	start_color@PLT
	call	use_default_colors@PLT
	mov	edx, 2
	mov	esi, 4
	mov	edi, 1
	call	init_pair@PLT
	call	cbreak@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 1
	mov	rdi, rax
	call	keypad@PLT
	mov	edi, 0
	call	curs_set@PLT
	mov	DWORD PTR -28[rbp], 3
	mov	DWORD PTR -24[rbp], 10
	mov	eax, DWORD PTR LINES[rip]
	sub	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR COLS[rip]
	sub	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -36[rbp], eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printw@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	ecx, 4
	mov	edx, 4
	mov	esi, 24
	mov	edi, 12
	call	create_newwin
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 262144
	mov	rdi, rax
	call	wbkgd@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	scrollok@PLT
	mov	ecx, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	esi, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	create_newwin
	mov	QWORD PTR -16[rbp], rax
	jmp	.L4
.L10:
	cmp	DWORD PTR -20[rbp], 261
	je	.L5
	cmp	DWORD PTR -20[rbp], 261
	jg	.L6
	cmp	DWORD PTR -20[rbp], 260
	je	.L7
	cmp	DWORD PTR -20[rbp], 260
	jg	.L6
	cmp	DWORD PTR -20[rbp], 258
	je	.L8
	cmp	DWORD PTR -20[rbp], 259
	je	.L9
	jmp	.L6
.L7:
	sub	DWORD PTR -36[rbp], 1
	jmp	.L6
.L5:
	add	DWORD PTR -36[rbp], 1
	jmp	.L6
.L9:
	sub	DWORD PTR -32[rbp], 1
	jmp	.L6
.L8:
	add	DWORD PTR -32[rbp], 1
	nop
.L6:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	destroy_win
	mov	ecx, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	esi, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	create_newwin
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	wbkgd@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, .LC2[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	wprintw@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	wrefresh@PLT
.L4:
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 274
	jne	.L10
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	destroy_win
	call	endwin@PLT
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	create_newwin
	.type	create_newwin, @function
create_newwin:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	DWORD PTR -32[rbp], ecx
	mov	ecx, DWORD PTR -32[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	esi, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	newwin@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	push	0
	push	0
	push	0
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	wborder@PLT
	add	rsp, 32
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	create_newwin, .-create_newwin
	.globl	destroy_win
	.type	destroy_win, @function
destroy_win:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	sub	rsp, 8
	push	32
	push	32
	push	32
	mov	r9d, 32
	mov	r8d, 32
	mov	ecx, 32
	mov	edx, 32
	mov	esi, 32
	mov	rdi, rax
	call	wborder@PLT
	add	rsp, 32
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	delwin@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	destroy_win, .-destroy_win
	.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	"168894269.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Your terminal does not support color\000"
	.align	2
.LC1:
	.ascii	"Press F10 to exit\000"
	.align	2
.LC2:
	.ascii	" moved \012\000"
	.align	2
.LC3:
	.ascii	"%s\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	bl	initscr
	bl	has_colors
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L2
	bl	endwin
	ldr	r0, .L12
	bl	puts
	mov	r3, #0
	b	.L3
.L2:
	bl	start_color
	bl	use_default_colors
	mov	r2, #2
	mov	r1, #4
	mov	r0, #1
	bl	init_pair
	bl	cbreak
	ldr	r3, .L12+4
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	keypad
	mov	r0, #0
	bl	curs_set
	mov	r3, #3
	str	r3, [fp, #-20]
	mov	r3, #10
	str	r3, [fp, #-16]
	ldr	r3, .L12+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, .L12+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r0, .L12+16
	bl	printw
	ldr	r3, .L12+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	mov	r3, #4
	mov	r2, #4
	mov	r1, #24
	mov	r0, #12
	bl	create_newwin
	str	r0, [fp, #-12]
	mov	r1, #262144
	ldr	r0, [fp, #-12]
	bl	wbkgd
	ldr	r0, [fp, #-12]
	bl	wrefresh
	mov	r1, #1
	ldr	r0, [fp, #-12]
	bl	scrollok
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	create_newwin
	str	r0, [fp, #-32]
	b	.L4
.L11:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #256
	sub	r3, r3, #2
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L5
.L7:
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L6
.L8:
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L5
.L6:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L5
.L9:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L5
.L10:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	nop
.L5:
	ldr	r0, [fp, #-32]
	bl	destroy_win
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	create_newwin
	str	r0, [fp, #-32]
	mov	r1, #256
	ldr	r0, [fp, #-32]
	bl	wbkgd
	ldr	r2, .L12+20
	ldr	r1, .L12+24
	ldr	r0, [fp, #-12]
	bl	wprintw
	ldr	r0, [fp, #-12]
	bl	wrefresh
.L4:
	ldr	r3, .L12+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, .L12+28
	cmp	r3, r2
	bne	.L11
	ldr	r0, [fp, #-12]
	bl	destroy_win
	bl	endwin
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	stdscr
	.word	LINES
	.word	COLS
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	274
	.size	main, .-main
	.align	2
	.global	create_newwin
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_newwin, %function
create_newwin:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	newwin
	str	r0, [fp, #-8]
	mov	r3, #0
	str	r3, [sp, #16]
	mov	r3, #0
	str	r3, [sp, #12]
	mov	r3, #0
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	wborder
	ldr	r0, [fp, #-8]
	bl	wrefresh
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	create_newwin, .-create_newwin
	.align	2
	.global	destroy_win
	.syntax unified
	.arm
	.fpu softvfp
	.type	destroy_win, %function
destroy_win:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-8]
	mov	r3, #32
	str	r3, [sp, #16]
	mov	r3, #32
	str	r3, [sp, #12]
	mov	r3, #32
	str	r3, [sp, #8]
	mov	r3, #32
	str	r3, [sp, #4]
	mov	r3, #32
	str	r3, [sp]
	mov	r3, #32
	mov	r2, #32
	mov	r1, #32
	ldr	r0, [fp, #-8]
	bl	wborder
	ldr	r0, [fp, #-8]
	bl	wrefresh
	ldr	r0, [fp, #-8]
	bl	delwin
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	destroy_win, .-destroy_win
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
