	.file	"572555.c"
	.intel_syntax noprefix
	.text
	.globl	win
	.bss
	.align 8
	.type	win, @object
	.size	win, 8
win:
	.zero	8
	.globl	frame
	.align 8
	.type	frame, @object
	.size	frame, 8
frame:
	.zero	8
	.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	call	initscr@PLT
	mov	ecx, 1
	mov	edx, 1
	mov	esi, 32
	mov	edi, 22
	call	newwin@PLT
	mov	QWORD PTR frame[rip], rax
	mov	rax, QWORD PTR frame[rip]
	sub	rsp, 8
	push	0
	push	0
	push	0
	mov	r9d, 0
	mov	r8d, 45
	mov	ecx, 45
	mov	edx, 124
	mov	esi, 124
	mov	rdi, rax
	call	wborder@PLT
	add	rsp, 32
	mov	ecx, 2
	mov	edx, 2
	mov	esi, 30
	mov	edi, 20
	call	newwin@PLT
	mov	QWORD PTR win[rip], rax
	call	noecho@PLT
	mov	rax, QWORD PTR frame[rip]
	mov	rdi, rax
	call	wrefresh@PLT
.L27:
	mov	rax, QWORD PTR win[rip]
	mov	edx, DWORD PTR -12[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	call	getchar@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 36
	je	.L2
	cmp	DWORD PTR -4[rbp], 36
	jl	.L29
	cmp	DWORD PTR -4[rbp], 113
	jg	.L29
	cmp	DWORD PTR -4[rbp], 94
	jl	.L29
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 94
	cmp	eax, 19
	ja	.L29
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L5[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L5[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L11-.L5
	.long	.L29-.L5
	.long	.L29-.L5
	.long	.L29-.L5
	.long	.L29-.L5
	.long	.L29-.L5
	.long	.L29-.L5
	.long	.L29-.L5
	.long	.L29-.L5
	.long	.L29-.L5
	.long	.L10-.L5
	.long	.L9-.L5
	.long	.L8-.L5
	.long	.L7-.L5
	.long	.L6-.L5
	.long	.L29-.L5
	.long	.L29-.L5
	.long	.L29-.L5
	.long	.L29-.L5
	.long	.L4-.L5
	.text
.L10:
	cmp	DWORD PTR -12[rbp], 0
	jle	.L30
	sub	DWORD PTR -12[rbp], 1
	jmp	.L30
.L8:
	cmp	DWORD PTR -8[rbp], 18
	jg	.L31
	add	DWORD PTR -8[rbp], 1
	jmp	.L31
.L7:
	cmp	DWORD PTR -8[rbp], 0
	jle	.L32
	sub	DWORD PTR -8[rbp], 1
	jmp	.L32
.L6:
	cmp	DWORD PTR -12[rbp], 28
	jg	.L33
	add	DWORD PTR -12[rbp], 1
	jmp	.L33
.L4:
	call	endwin@PLT
	call	echo@PLT
	mov	edi, 0
	call	exit@PLT
.L11:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L17
.L19:
	add	DWORD PTR -12[rbp], 1
.L17:
	mov	rax, QWORD PTR win[rip]
	mov	edx, DWORD PTR -12[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L34
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	winch@PLT
	cmp	eax, 32
	jne	.L34
	cmp	DWORD PTR -12[rbp], 28
	jle	.L19
	jmp	.L34
.L2:
	mov	DWORD PTR -12[rbp], 29
	jmp	.L20
.L22:
	sub	DWORD PTR -12[rbp], 1
.L20:
	mov	rax, QWORD PTR win[rip]
	mov	edx, DWORD PTR -12[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L21
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	winch@PLT
	cmp	eax, 32
	jne	.L21
	cmp	DWORD PTR -12[rbp], 0
	jg	.L22
.L21:
	add	DWORD PTR -12[rbp], 1
	jmp	.L13
.L9:
	call	getchar@PLT
	mov	BYTE PTR -13[rbp], al
	cmp	BYTE PTR -13[rbp], 27
	je	.L35
	movsx	edx, BYTE PTR -13[rbp]
	mov	rax, QWORD PTR win[rip]
	mov	esi, edx
	mov	rdi, rax
	call	waddch@PLT
	cmp	DWORD PTR -12[rbp], 28
	jg	.L25
	add	DWORD PTR -12[rbp], 1
	jmp	.L26
.L25:
	mov	DWORD PTR -12[rbp], 0
	add	DWORD PTR -8[rbp], 1
.L26:
	mov	rax, QWORD PTR win[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	jmp	.L9
.L35:
	nop
	jmp	.L13
.L29:
	nop
	jmp	.L27
.L30:
	nop
	jmp	.L27
.L31:
	nop
	jmp	.L27
.L32:
	nop
	jmp	.L27
.L33:
	nop
	jmp	.L27
.L34:
	nop
.L13:
	jmp	.L27
	.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	"572555.c"
	.text
	.comm	win,4,4
	.comm	frame,4,4
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	bl	initscr
	mov	r3, #1
	mov	r2, #1
	mov	r1, #32
	mov	r0, #22
	bl	newwin
	mov	r3, r0
	ldr	r2, .L36
	str	r3, [r2]
	ldr	r3, .L36
	ldr	r0, [r3]
	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, #45
	str	r3, [sp]
	mov	r3, #45
	mov	r2, #124
	mov	r1, #124
	bl	wborder
	mov	r3, #2
	mov	r2, #2
	mov	r1, #30
	mov	r0, #20
	bl	newwin
	mov	r3, r0
	ldr	r2, .L36+4
	str	r3, [r2]
	bl	noecho
	ldr	r3, .L36
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
.L27:
	ldr	r3, .L36+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	wmove
	ldr	r3, .L36+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	bl	getchar
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #36
	beq	.L2
	ldr	r3, [fp, #-8]
	cmp	r3, #36
	blt	.L29
	ldr	r3, [fp, #-8]
	cmp	r3, #113
	bgt	.L29
	ldr	r3, [fp, #-8]
	cmp	r3, #94
	blt	.L29
	ldr	r3, [fp, #-8]
	sub	r3, r3, #94
	cmp	r3, #19
	ldrls	pc, [pc, r3, asl #2]
	b	.L29
.L5:
	.word	.L11
	.word	.L29
	.word	.L29
	.word	.L29
	.word	.L29
	.word	.L29
	.word	.L29
	.word	.L29
	.word	.L29
	.word	.L29
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L29
	.word	.L29
	.word	.L29
	.word	.L29
	.word	.L4
.L10:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L30
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L30
.L8:
	ldr	r3, [fp, #-12]
	cmp	r3, #18
	bgt	.L31
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L31
.L7:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L32
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L32
.L6:
	ldr	r3, [fp, #-16]
	cmp	r3, #28
	bgt	.L33
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L33
.L4:
	bl	endwin
	bl	echo
	mov	r0, #0
	bl	exit
.L11:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L17
.L19:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L17:
	ldr	r3, .L36+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L34
	ldr	r3, .L36+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	winch
	mov	r3, r0
	cmp	r3, #32
	bne	.L34
	ldr	r3, [fp, #-16]
	cmp	r3, #28
	ble	.L19
	b	.L34
.L2:
	mov	r3, #29
	str	r3, [fp, #-16]
	b	.L20
.L22:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L20:
	ldr	r3, .L36+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L21
	ldr	r3, .L36+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	winch
	mov	r3, r0
	cmp	r3, #32
	bne	.L21
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L22
.L21:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L13
.L9:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-17]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #27
	beq	.L35
	ldr	r3, .L36+4
	ldr	r3, [r3]
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	mov	r1, r2
	mov	r0, r3
	bl	waddch
	ldr	r3, [fp, #-16]
	cmp	r3, #28
	bgt	.L25
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L26
.L25:
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L26:
	ldr	r3, .L36+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	b	.L9
.L35:
	nop
	b	.L13
.L29:
	nop
	b	.L27
.L30:
	nop
	b	.L27
.L31:
	nop
	b	.L27
.L32:
	nop
	b	.L27
.L33:
	nop
	b	.L27
.L34:
	nop
.L13:
	b	.L27
.L37:
	.align	2
.L36:
	.word	frame
	.word	win
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
