	.file	"4424.c"
	.intel_syntax noprefix
	.text
	.local	max_x
	.comm	max_x,4,4
	.local	max_y
	.comm	max_y,4,4
	.globl	check_snake_overlap
	.type	check_snake_overlap, @function
check_snake_overlap:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	jmp	.L2
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -16[rbp], eax
	jne	.L3
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -12[rbp], eax
	jne	.L3
	mov	eax, -1
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
.L2:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L5
	mov	eax, 0
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	check_snake_overlap, .-check_snake_overlap
	.globl	update_and_print_snake
	.type	update_and_print_snake, @function
update_and_print_snake:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -36[rbp], ecx
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L7
.L11:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[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	.L9
	mov	edx, DWORD PTR acs_map[rip+388]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, edx
	mov	rdi, rax
	call	waddch@PLT
.L9:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L10
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L10
	cmp	DWORD PTR -36[rbp], 0
	jne	.L10
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], 0
.L10:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -24[rbp], rax
.L7:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L11
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	update_and_print_snake, .-update_and_print_snake
	.globl	generate_random_pos
	.type	generate_random_pos, @function
generate_random_pos:
.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	QWORD PTR -16[rbp], rsi
	call	rand@PLT
	mov	edx, DWORD PTR max_y[rip]
	lea	ecx, -2[rdx]
	cdq
	idiv	ecx
	mov	eax, edx
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	call	rand@PLT
	mov	edx, DWORD PTR max_x[rip]
	lea	ecx, -2[rdx]
	cdq
	idiv	ecx
	mov	eax, edx
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	generate_random_pos, .-generate_random_pos
	.globl	print_frame
	.type	print_frame, @function
print_frame:
.LFB9:
	.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	DWORD PTR -4[rbp], 1
	jmp	.L15
.L20:
	mov	rax, QWORD PTR stdscr[rip]
	mov	ecx, DWORD PTR -4[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L17
	mov	edx, DWORD PTR acs_map[rip+480]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, edx
	mov	rdi, rax
	call	waddch@PLT
.L17:
	mov	eax, DWORD PTR max_x[rip]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	ecx, DWORD PTR -4[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L19
	mov	edx, DWORD PTR acs_map[rip+480]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, edx
	mov	rdi, rax
	call	waddch@PLT
.L19:
	add	DWORD PTR -4[rbp], 1
.L15:
	mov	eax, DWORD PTR max_y[rip]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jl	.L20
	mov	DWORD PTR -4[rbp], 1
	jmp	.L21
.L26:
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, DWORD PTR -4[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L23
	mov	edx, DWORD PTR acs_map[rip+452]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, edx
	mov	rdi, rax
	call	waddch@PLT
.L23:
	mov	eax, DWORD PTR max_y[rip]
	lea	ecx, -1[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, DWORD PTR -4[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L25
	mov	edx, DWORD PTR acs_map[rip+452]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, edx
	mov	rdi, rax
	call	waddch@PLT
.L25:
	add	DWORD PTR -4[rbp], 1
.L21:
	mov	eax, DWORD PTR max_x[rip]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jl	.L26
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L28
	mov	edx, DWORD PTR acs_map[rip+432]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, edx
	mov	rdi, rax
	call	waddch@PLT
.L28:
	mov	eax, DWORD PTR max_y[rip]
	lea	ecx, -1[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, 0
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L30
	mov	edx, DWORD PTR acs_map[rip+436]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, edx
	mov	rdi, rax
	call	waddch@PLT
.L30:
	mov	eax, DWORD PTR max_x[rip]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 0
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L32
	mov	edx, DWORD PTR acs_map[rip+428]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, edx
	mov	rdi, rax
	call	waddch@PLT
.L32:
	mov	eax, DWORD PTR max_x[rip]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR max_y[rip]
	lea	ecx, -1[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L35
	mov	edx, DWORD PTR acs_map[rip+424]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, edx
	mov	rdi, rax
	call	waddch@PLT
.L35:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	print_frame, .-print_frame
	.section	.rodata
.LC0:
	.string	"%dx%d\n"
.LC1:
	.string	"[%3dx%3d][score: %d]"
	.text
	.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -40[rbp], 199
	mov	DWORD PTR -36[rbp], 5
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -48[rbp], 10
	mov	DWORD PTR -44[rbp], 10
	mov	DWORD PTR -24[rbp], 4
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	call	initscr@PLT
	mov	edi, 0
	call	curs_set@PLT
	call	noecho@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 100
	mov	rdi, rax
	call	wtimeout@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 1
	mov	rdi, rax
	call	keypad@PLT
	mov	rax, QWORD PTR stdscr[rip]
	test	rax, rax
	je	.L37
	mov	rax, QWORD PTR stdscr[rip]
	movzx	eax, WORD PTR 4[rax]
	cwde
	add	eax, 1
	jmp	.L38
.L37:
	mov	eax, -1
.L38:
	mov	DWORD PTR max_y[rip], eax
	mov	rax, QWORD PTR stdscr[rip]
	test	rax, rax
	je	.L39
	mov	rax, QWORD PTR stdscr[rip]
	movzx	eax, WORD PTR 6[rax]
	cwde
	add	eax, 1
	jmp	.L40
.L39:
	mov	eax, -1
.L40:
	mov	DWORD PTR max_x[rip], eax
	mov	edx, DWORD PTR max_x[rip]
	mov	eax, DWORD PTR max_y[rip]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printw@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L42
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 88
	mov	rdi, rax
	call	waddch@PLT
.L42:
	lea	rdx, -48[rbp]
	lea	rax, -44[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	generate_random_pos
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
.L62:
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 261
	je	.L43
	cmp	DWORD PTR -20[rbp], 261
	jg	.L65
	cmp	DWORD PTR -20[rbp], 260
	je	.L45
	cmp	DWORD PTR -20[rbp], 260
	jg	.L65
	cmp	DWORD PTR -20[rbp], 259
	je	.L46
	cmp	DWORD PTR -20[rbp], 259
	jg	.L65
	cmp	DWORD PTR -20[rbp], 27
	je	.L47
	cmp	DWORD PTR -20[rbp], 258
	je	.L48
	jmp	.L65
.L47:
	call	endwin@PLT
	mov	eax, 0
	jmp	.L63
.L45:
	mov	DWORD PTR -24[rbp], 2
	jmp	.L50
.L43:
	mov	DWORD PTR -24[rbp], 3
	jmp	.L50
.L46:
	mov	DWORD PTR -24[rbp], 0
	jmp	.L50
.L48:
	mov	DWORD PTR -24[rbp], 1
	jmp	.L50
.L65:
	nop
.L50:
	cmp	DWORD PTR -24[rbp], 3
	je	.L51
	cmp	DWORD PTR -24[rbp], 3
	ja	.L66
	cmp	DWORD PTR -24[rbp], 2
	je	.L53
	cmp	DWORD PTR -24[rbp], 2
	ja	.L66
	cmp	DWORD PTR -24[rbp], 0
	je	.L54
	cmp	DWORD PTR -24[rbp], 1
	je	.L55
	jmp	.L66
.L53:
	sub	DWORD PTR -40[rbp], 1
	jmp	.L56
.L51:
	add	DWORD PTR -40[rbp], 1
	jmp	.L56
.L54:
	sub	DWORD PTR -36[rbp], 1
	jmp	.L56
.L55:
	add	DWORD PTR -36[rbp], 1
	jmp	.L56
.L66:
	nop
.L56:
	mov	DWORD PTR -28[rbp], 0
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wclear@PLT
	mov	eax, 0
	call	print_frame
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, 3
	mov	esi, 0
	mov	rdi, rax
	call	wmove@PLT
	mov	ecx, DWORD PTR -32[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printw@PLT
	cmp	DWORD PTR -40[rbp], 0
	jle	.L57
	mov	eax, DWORD PTR max_x[rip]
	sub	eax, 1
	cmp	DWORD PTR -40[rbp], eax
	jge	.L57
	cmp	DWORD PTR -36[rbp], 0
	jle	.L57
	mov	eax, DWORD PTR max_y[rip]
	sub	eax, 1
	cmp	DWORD PTR -36[rbp], eax
	jge	.L57
	cmp	DWORD PTR -24[rbp], 4
	je	.L58
	mov	edx, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	check_snake_overlap
	test	eax, eax
	je	.L58
.L57:
	call	endwin@PLT
	mov	eax, 0
	jmp	.L63
.L58:
	mov	eax, DWORD PTR -44[rbp]
	cmp	DWORD PTR -36[rbp], eax
	jne	.L59
	mov	eax, DWORD PTR -48[rbp]
	cmp	DWORD PTR -40[rbp], eax
	jne	.L59
	lea	rdx, -48[rbp]
	lea	rax, -44[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	generate_random_pos
	mov	DWORD PTR -28[rbp], 1
	add	DWORD PTR -32[rbp], 1
.L59:
	mov	edx, DWORD PTR -48[rbp]
	mov	ecx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L61
	mov	edx, DWORD PTR acs_map[rip+384]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, edx
	mov	rdi, rax
	call	waddch@PLT
.L61:
	mov	ecx, DWORD PTR -28[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	esi, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	update_and_print_snake
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	jmp	.L62
.L63:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L64
	call	__stack_chk_fail@PLT
.L64:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"4424.c"
	.text
	.local	max_x
	.comm	max_x,4,4
	.local	max_y
	.comm	max_y,4,4
	.align	2
	.global	check_snake_overlap
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_snake_overlap, %function
check_snake_overlap:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	b	.L2
.L5:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L3
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L3
	mvn	r3, #0
	b	.L4
.L3:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L5
	mov	r3, #0
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	check_snake_overlap, .-check_snake_overlap
	.align	2
	.global	update_and_print_snake
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_and_print_snake, %function
update_and_print_snake:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
	b	.L7
.L11:
	ldr	r3, .L13
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r2, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L9
	ldr	r3, .L13
	ldr	r3, [r3]
	ldr	r2, .L13+4
	ldr	r2, [r2, #388]
	mov	r1, r2
	mov	r0, r3
	bl	waddch
.L9:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #8]
.L10:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-16]
.L7:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	stdscr
	.word	acs_map
	.size	update_and_print_snake, .-update_and_print_snake
	.global	__aeabi_idivmod
	.align	2
	.global	generate_random_pos
	.syntax unified
	.arm
	.fpu softvfp
	.type	generate_random_pos, %function
generate_random_pos:
	@ 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]
	str	r1, [fp, #-12]
	bl	rand
	mov	r2, r0
	ldr	r3, .L16
	ldr	r3, [r3]
	sub	r3, r3, #2
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	bl	rand
	mov	r2, r0
	ldr	r3, .L16+4
	ldr	r3, [r3]
	sub	r3, r3, #2
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	add	r2, r3, #1
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	max_y
	.word	max_x
	.size	generate_random_pos, .-generate_random_pos
	.align	2
	.global	print_frame
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_frame, %function
print_frame:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L19
.L24:
	ldr	r3, .L40
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L21
	ldr	r3, .L40
	ldr	r3, [r3]
	ldr	r2, .L40+4
	ldr	r2, [r2, #480]
	mov	r1, r2
	mov	r0, r3
	bl	waddch
.L21:
	ldr	r3, .L40
	ldr	r0, [r3]
	ldr	r3, .L40+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-8]
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L23
	ldr	r3, .L40
	ldr	r3, [r3]
	ldr	r2, .L40+4
	ldr	r2, [r2, #480]
	mov	r1, r2
	mov	r0, r3
	bl	waddch
.L23:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L19:
	ldr	r3, .L40+12
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L24
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L25
.L30:
	ldr	r3, .L40
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	mov	r1, #0
	mov	r0, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L27
	ldr	r3, .L40
	ldr	r3, [r3]
	ldr	r2, .L40+4
	ldr	r2, [r2, #452]
	mov	r1, r2
	mov	r0, r3
	bl	waddch
.L27:
	ldr	r3, .L40
	ldr	r0, [r3]
	ldr	r3, .L40+12
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	mov	r1, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L29
	ldr	r3, .L40
	ldr	r3, [r3]
	ldr	r2, .L40+4
	ldr	r2, [r2, #452]
	mov	r1, r2
	mov	r0, r3
	bl	waddch
.L29:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L25:
	ldr	r3, .L40+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L30
	ldr	r3, .L40
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L32
	ldr	r3, .L40
	ldr	r3, [r3]
	ldr	r2, .L40+4
	ldr	r2, [r2, #432]
	mov	r1, r2
	mov	r0, r3
	bl	waddch
.L32:
	ldr	r3, .L40
	ldr	r0, [r3]
	ldr	r3, .L40+12
	ldr	r3, [r3]
	sub	r3, r3, #1
	mov	r2, #0
	mov	r1, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L34
	ldr	r3, .L40
	ldr	r3, [r3]
	ldr	r2, .L40+4
	ldr	r2, [r2, #436]
	mov	r1, r2
	mov	r0, r3
	bl	waddch
.L34:
	ldr	r3, .L40
	ldr	r0, [r3]
	ldr	r3, .L40+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	mov	r2, r3
	mov	r1, #0
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L36
	ldr	r3, .L40
	ldr	r3, [r3]
	ldr	r2, .L40+4
	ldr	r2, [r2, #428]
	mov	r1, r2
	mov	r0, r3
	bl	waddch
.L36:
	ldr	r3, .L40
	ldr	r0, [r3]
	ldr	r3, .L40+12
	ldr	r3, [r3]
	sub	r1, r3, #1
	ldr	r3, .L40+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	mov	r2, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L39
	ldr	r3, .L40
	ldr	r3, [r3]
	ldr	r2, .L40+4
	ldr	r2, [r2, #424]
	mov	r1, r2
	mov	r0, r3
	bl	waddch
.L39:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	stdscr
	.word	acs_map
	.word	max_x
	.word	max_y
	.size	print_frame, .-print_frame
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%dx%d\012\000"
	.align	2
.LC1:
	.ascii	"[%3dx%3d][score: %d]\000"
	.align	2
.LC2:
	.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
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L75
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #199
	str	r3, [fp, #-36]
	mov	r3, #5
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #10
	str	r3, [fp, #-44]
	mov	r3, #10
	str	r3, [fp, #-40]
	mov	r3, #4
	str	r3, [fp, #-20]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-36]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #8]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	initscr
	mov	r0, #0
	bl	curs_set
	bl	noecho
	ldr	r3, .L75+4
	ldr	r3, [r3]
	mov	r1, #100
	mov	r0, r3
	bl	wtimeout
	ldr	r3, .L75+4
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	keypad
	ldr	r3, .L75+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L43
	ldr	r3, .L75+4
	ldr	r3, [r3]
	ldrsh	r3, [r3, #4]
	add	r3, r3, #1
	b	.L44
.L43:
	mvn	r3, #0
.L44:
	ldr	r2, .L75+8
	str	r3, [r2]
	ldr	r3, .L75+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L45
	ldr	r3, .L75+4
	ldr	r3, [r3]
	ldrsh	r3, [r3, #6]
	add	r3, r3, #1
	b	.L46
.L45:
	mvn	r3, #0
.L46:
	ldr	r2, .L75+12
	str	r3, [r2]
	ldr	r3, .L75+8
	ldr	r3, [r3]
	ldr	r2, .L75+12
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L75+16
	bl	printw
	ldr	r3, .L75+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L48
	ldr	r3, .L75+4
	ldr	r3, [r3]
	mov	r1, #88
	mov	r0, r3
	bl	waddch
.L48:
	sub	r2, fp, #44
	sub	r3, fp, #40
	mov	r1, r2
	mov	r0, r3
	bl	generate_random_pos
	ldr	r3, .L75+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
.L70:
	ldr	r3, .L75+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #27
	beq	.L49
	ldr	r3, [fp, #-12]
	cmp	r3, #27
	blt	.L73
	ldr	r3, [fp, #-12]
	ldr	r2, .L75+20
	cmp	r3, r2
	bgt	.L73
	ldr	r3, [fp, #-12]
	ldr	r2, .L75+24
	cmp	r3, r2
	blt	.L73
	ldr	r3, [fp, #-12]
	sub	r3, r3, #256
	sub	r3, r3, #2
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L73
.L52:
	.word	.L55
	.word	.L54
	.word	.L53
	.word	.L51
.L49:
	bl	endwin
	mov	r3, #0
	b	.L71
.L53:
	mov	r3, #2
	str	r3, [fp, #-20]
	b	.L57
.L51:
	mov	r3, #3
	str	r3, [fp, #-20]
	b	.L57
.L54:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L57
.L55:
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L57
.L73:
	nop
.L57:
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L74
.L60:
	.word	.L63
	.word	.L62
	.word	.L61
	.word	.L59
.L61:
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	str	r3, [fp, #-36]
	b	.L64
.L59:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	b	.L64
.L63:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L64
.L62:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L64
.L74:
	nop
.L64:
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, .L75+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wclear
	bl	print_frame
	ldr	r3, .L75+4
	ldr	r3, [r3]
	mov	r2, #3
	mov	r1, #0
	mov	r0, r3
	bl	wmove
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-32]
	ldr	r0, .L75+28
	bl	printw
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	ble	.L65
	ldr	r3, .L75+12
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bge	.L65
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	ble	.L65
	ldr	r3, .L75+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bge	.L65
	ldr	r3, [fp, #-20]
	cmp	r3, #4
	beq	.L66
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-16]
	bl	check_snake_overlap
	mov	r3, r0
	cmp	r3, #0
	beq	.L66
.L65:
	bl	endwin
	mov	r3, #0
	b	.L71
.L66:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bne	.L67
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bne	.L67
	sub	r2, fp, #44
	sub	r3, fp, #40
	mov	r1, r2
	mov	r0, r3
	bl	generate_random_pos
	mov	r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L67:
	ldr	r3, .L75+4
	ldr	r3, [r3]
	ldr	r1, [fp, #-40]
	ldr	r2, [fp, #-44]
	mov	r0, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L69
	ldr	r3, .L75+4
	ldr	r3, [r3]
	ldr	r2, .L75+32
	ldr	r2, [r2, #384]
	mov	r1, r2
	mov	r0, r3
	bl	waddch
.L69:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-16]
	bl	update_and_print_snake
	str	r0, [fp, #-16]
	ldr	r3, .L75+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	b	.L70
.L71:
	ldr	r2, .L75
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L72
	bl	__stack_chk_fail
.L72:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L76:
	.align	2
.L75:
	.word	.LC2
	.word	stdscr
	.word	max_y
	.word	max_x
	.word	.LC0
	.word	261
	.word	258
	.word	.LC1
	.word	acs_map
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
