	.file	"129354.c"
	.intel_syntax noprefix
	.text
	.globl	y_max
	.bss
	.align 4
	.type	y_max, @object
	.size	y_max, 4
y_max:
	.zero	4
	.globl	x_max
	.align 4
	.type	x_max, @object
	.size	x_max, 4
x_max:
	.zero	4
	.text
	.type	move_is_okay, @function
move_is_okay:
.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	DWORD PTR -24[rbp], esi
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, DWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -20[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L2
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	winch@PLT
	movzx	eax, al
	jmp	.L3
.L2:
	mov	eax, 255
.L3:
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 32
	sete	al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	move_is_okay, .-move_is_okay
	.type	move_left, @function
move_left:
.LFB7:
	.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]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jle	.L9
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, edx
	mov	edi, eax
	call	move_is_okay
	test	al, al
	je	.L9
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L8
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 32
	mov	rdi, rax
	call	waddch@PLT
.L8:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
.L9:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	move_left, .-move_left
	.type	move_right, @function
move_right:
.LFB8:
	.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]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR x_max[rip]
	cmp	edx, eax
	jge	.L14
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, edx
	mov	edi, eax
	call	move_is_okay
	test	al, al
	je	.L14
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L13
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 32
	mov	rdi, rax
	call	waddch@PLT
.L13:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
.L14:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	move_right, .-move_right
	.globl	start_ncurses
	.type	start_ncurses, @function
start_ncurses:
.LFB9:
	.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	rax, QWORD PTR stdscr[rip]
	mov	esi, 1
	mov	rdi, rax
	call	keypad@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 0
	mov	rdi, rax
	call	intrflush@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 1
	mov	rdi, rax
	call	nodelay@PLT
	call	nonl@PLT
	call	cbreak@PLT
	call	noecho@PLT
	mov	edi, 0
	call	curs_set@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	start_ncurses, .-start_ncurses
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	start_ncurses
	mov	rax, QWORD PTR stdscr[rip]
	test	rax, rax
	je	.L17
	mov	rax, QWORD PTR stdscr[rip]
	movzx	eax, WORD PTR 4[rax]
	cwde
	add	eax, 1
	jmp	.L18
.L17:
	mov	eax, -1
.L18:
	mov	DWORD PTR y_max[rip], eax
	mov	rax, QWORD PTR stdscr[rip]
	test	rax, rax
	je	.L19
	mov	rax, QWORD PTR stdscr[rip]
	movzx	eax, WORD PTR 6[rax]
	cwde
	add	eax, 1
	jmp	.L20
.L19:
	mov	eax, -1
.L20:
	mov	DWORD PTR x_max[rip], eax
	mov	eax, DWORD PTR y_max[rip]
	sub	eax, 1
	mov	DWORD PTR -60[rbp], eax
	mov	DWORD PTR -64[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	lea	rax, move_left[rip]
	mov	QWORD PTR -24[rbp], rax
	lea	rax, move_right[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	edx, DWORD PTR -64[rbp]
	mov	ecx, DWORD PTR -60[rbp]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L33
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 42
	mov	rdi, rax
	call	waddch@PLT
.L33:
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], -1
	je	.L23
	cmp	DWORD PTR -68[rbp], 261
	je	.L24
	cmp	DWORD PTR -68[rbp], 261
	jg	.L35
	cmp	DWORD PTR -68[rbp], 260
	je	.L26
	cmp	DWORD PTR -68[rbp], 260
	jg	.L35
	cmp	DWORD PTR -68[rbp], 259
	je	.L36
	cmp	DWORD PTR -68[rbp], 259
	jg	.L35
	cmp	DWORD PTR -68[rbp], 119
	je	.L36
	cmp	DWORD PTR -68[rbp], 119
	jg	.L35
	cmp	DWORD PTR -68[rbp], 32
	je	.L36
	cmp	DWORD PTR -68[rbp], 32
	jl	.L35
	cmp	DWORD PTR -68[rbp], 100
	jg	.L35
	cmp	DWORD PTR -68[rbp], 65
	jl	.L35
	mov	eax, DWORD PTR -68[rbp]
	sub	eax, 65
	cmp	eax, 35
	ja	.L35
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L28[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L28[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L28:
	.long	.L26-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L24-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L26-.L28
	.long	.L35-.L28
	.long	.L35-.L28
	.long	.L24-.L28
	.text
.L26:
	mov	rdx, QWORD PTR -24[rbp]
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	rdx
	jmp	.L29
.L24:
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	rdx
	jmp	.L29
.L35:
	nop
	jmp	.L29
.L36:
	nop
.L29:
	mov	edx, DWORD PTR -64[rbp]
	mov	ecx, DWORD PTR -60[rbp]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L31
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 42
	mov	rdi, rax
	call	waddch@PLT
.L31:
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
.L23:
	cmp	DWORD PTR -68[rbp], 113
	je	.L32
	cmp	DWORD PTR -68[rbp], 81
	jne	.L33
.L32:
	call	endwin@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE10:
	.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	"129354.c"
	.text
	.comm	y_max,4,4
	.comm	x_max,4,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	move_is_okay, %function
move_is_okay:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L5
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L2
	ldr	r3, .L5
	ldr	r3, [r3]
	mov	r0, r3
	bl	winch
	mov	r3, r0
	and	r3, r3, #255
	b	.L3
.L2:
	mov	r3, #255
.L3:
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #32
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	stdscr
	.size	move_is_okay, .-move_is_okay
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	move_left, %function
move_left:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L11
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	sub	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	move_is_okay
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L12
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L10
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r1, #32
	mov	r0, r3
	bl	waddch
.L10:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3]
.L11:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	stdscr
	.size	move_left, .-move_left
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	move_right, %function
move_right:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, .L19
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L18
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	move_is_okay
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	ldr	r3, .L19+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L17
	ldr	r3, .L19+4
	ldr	r3, [r3]
	mov	r1, #32
	mov	r0, r3
	bl	waddch
.L17:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3]
.L18:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	x_max
	.word	stdscr
	.size	move_right, .-move_right
	.align	2
	.global	start_ncurses
	.syntax unified
	.arm
	.fpu softvfp
	.type	start_ncurses, %function
start_ncurses:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	initscr
	ldr	r3, .L22
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	keypad
	ldr	r3, .L22
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	intrflush
	ldr	r3, .L22
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	nodelay
	bl	nonl
	bl	cbreak
	bl	noecho
	mov	r0, #0
	bl	curs_set
	nop
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	stdscr
	.size	start_ncurses, .-start_ncurses
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L45
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	start_ncurses
	ldr	r3, .L45+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L25
	ldr	r3, .L45+4
	ldr	r3, [r3]
	ldrsh	r3, [r3, #4]
	add	r3, r3, #1
	b	.L26
.L25:
	mvn	r3, #0
.L26:
	ldr	r2, .L45+8
	str	r3, [r2]
	ldr	r3, .L45+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L27
	ldr	r3, .L45+4
	ldr	r3, [r3]
	ldrsh	r3, [r3, #6]
	add	r3, r3, #1
	b	.L28
.L27:
	mvn	r3, #0
.L28:
	ldr	r2, .L45+12
	str	r3, [r2]
	ldr	r3, .L45+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, .L45+16
	str	r3, [fp, #-16]
	ldr	r3, .L45+20
	str	r3, [fp, #-12]
	ldr	r3, .L45+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-44]
	ldr	r2, [fp, #-48]
	mov	r0, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L41
	ldr	r3, .L45+4
	ldr	r3, [r3]
	mov	r1, #42
	mov	r0, r3
	bl	waddch
.L41:
	ldr	r3, .L45+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmn	r3, #1
	beq	.L31
	ldr	r3, [fp, #-52]
	ldr	r2, .L45+24
	cmp	r3, r2
	beq	.L32
	ldr	r3, [fp, #-52]
	ldr	r2, .L45+24
	cmp	r3, r2
	bgt	.L43
	ldr	r3, [fp, #-52]
	cmp	r3, #260
	beq	.L34
	ldr	r3, [fp, #-52]
	cmp	r3, #260
	bgt	.L43
	ldr	r3, [fp, #-52]
	ldr	r2, .L45+28
	cmp	r3, r2
	beq	.L44
	ldr	r3, [fp, #-52]
	cmp	r3, #260
	bge	.L43
	ldr	r3, [fp, #-52]
	cmp	r3, #119
	beq	.L44
	ldr	r3, [fp, #-52]
	cmp	r3, #119
	bgt	.L43
	ldr	r3, [fp, #-52]
	cmp	r3, #32
	beq	.L44
	ldr	r3, [fp, #-52]
	cmp	r3, #32
	blt	.L43
	ldr	r3, [fp, #-52]
	cmp	r3, #100
	bgt	.L43
	ldr	r3, [fp, #-52]
	cmp	r3, #65
	blt	.L43
	ldr	r3, [fp, #-52]
	sub	r3, r3, #65
	cmp	r3, #35
	ldrls	pc, [pc, r3, asl #2]
	b	.L43
.L36:
	.word	.L34
	.word	.L43
	.word	.L43
	.word	.L32
	.word	.L43
	.word	.L43
	.word	.L43
	.word	.L43
	.word	.L43
	.word	.L43
	.word	.L43
	.word	.L43
	.word	.L43
	.word	.L43
	.word	.L43
	.word	.L43
	.word	.L43
	.word	.L43
	.word	.L43
	.word	.L43
	.word	.L43
	.word	.L43
	.word	.L43
	.word	.L43
	.word	.L43
	.word	.L43
	.word	.L43
	.word	.L43
	.word	.L43
	.word	.L43
	.word	.L43
	.word	.L43
	.word	.L34
	.word	.L43
	.word	.L43
	.word	.L32
.L34:
	ldr	r3, [fp, #-16]
	sub	r2, fp, #48
	mov	r0, r2
	blx	r3
	b	.L37
.L32:
	ldr	r3, [fp, #-12]
	sub	r2, fp, #48
	mov	r0, r2
	blx	r3
	b	.L37
.L43:
	nop
	b	.L37
.L44:
	nop
.L37:
	ldr	r3, .L45+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-44]
	ldr	r2, [fp, #-48]
	mov	r0, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L39
	ldr	r3, .L45+4
	ldr	r3, [r3]
	mov	r1, #42
	mov	r0, r3
	bl	waddch
.L39:
	ldr	r3, .L45+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
.L31:
	ldr	r3, [fp, #-52]
	cmp	r3, #113
	beq	.L40
	ldr	r3, [fp, #-52]
	cmp	r3, #81
	bne	.L41
.L40:
	bl	endwin
	mov	r0, #0
	bl	exit
.L46:
	.align	2
.L45:
	.word	.LC0
	.word	stdscr
	.word	y_max
	.word	x_max
	.word	move_left
	.word	move_right
	.word	261
	.word	259
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
