	.file	"80211.c"
	.intel_syntax noprefix
	.text
	.globl	lock
	.bss
	.align 32
	.type	lock, @object
	.size	lock, 40
lock:
	.zero	40
	.text
	.globl	toogle_direction
	.type	toogle_direction, @function
toogle_direction:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 261
	je	.L2
	cmp	DWORD PTR -4[rbp], 261
	ja	.L3
	cmp	DWORD PTR -4[rbp], 260
	je	.L4
	cmp	DWORD PTR -4[rbp], 260
	ja	.L3
	cmp	DWORD PTR -4[rbp], 258
	je	.L5
	cmp	DWORD PTR -4[rbp], 259
	jne	.L3
	mov	eax, 258
	jmp	.L6
.L5:
	mov	eax, 259
	jmp	.L6
.L4:
	mov	eax, 261
	jmp	.L6
.L2:
	mov	eax, 260
	jmp	.L6
.L3:
	mov	eax, -1
.L6:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	toogle_direction, .-toogle_direction
	.globl	check_SNAKE
	.type	check_SNAKE, @function
check_SNAKE:
.LFB7:
	.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 -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L8
.L11:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	jne	.L9
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -32[rbp], eax
	jne	.L9
	mov	eax, 1
	jmp	.L10
.L9:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
.L8:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L11
	mov	eax, 0
.L10:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	check_SNAKE, .-check_SNAKE
	.globl	check_dead
	.type	check_dead, @function
check_dead:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR COLS[rip]
	sub	eax, 1
	cmp	DWORD PTR -8[rbp], eax
	jge	.L13
	cmp	DWORD PTR -8[rbp], 0
	jle	.L13
	mov	eax, DWORD PTR LINES[rip]
	sub	eax, 3
	cmp	DWORD PTR -4[rbp], eax
	jge	.L13
	cmp	DWORD PTR -4[rbp], 0
	jg	.L14
.L13:
	mov	eax, 1
	jmp	.L15
.L14:
	mov	edx, DWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	check_SNAKE
	test	al, al
	je	.L16
	mov	eax, 1
	jmp	.L15
.L16:
	mov	eax, 0
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	check_dead, .-check_dead
	.globl	make_FOOD
	.type	make_FOOD, @function
make_FOOD:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	edi, 20
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
.L20:
	call	rand@PLT
	mov	edx, DWORD PTR COLS[rip]
	mov	ecx, edx
	shr	ecx, 31
	add	edx, ecx
	sar	edx
	lea	ecx, -2[rdx]
	cdq
	idiv	ecx
	mov	eax, edx
	add	eax, eax
	add	eax, 1
	mov	DWORD PTR -8[rbp], eax
	call	rand@PLT
	mov	edx, DWORD PTR LINES[rip]
	lea	ecx, -4[rdx]
	cdq
	idiv	ecx
	mov	eax, edx
	add	eax, 1
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	check_SNAKE
	xor	eax, 1
	test	al, al
	jne	.L22
	jmp	.L20
.L22:
	nop
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 12[rax], 2
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 8[rax], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 16[rax], 262176
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	make_FOOD, .-make_FOOD
	.globl	init_SNAKE
	.type	init_SNAKE, @function
init_SNAKE:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -44[rbp], 21
	mov	DWORD PTR -40[rbp], 10
	mov	DWORD PTR -36[rbp], 2
	mov	edi, 16
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	rbx, QWORD PTR [rax]
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR 8[rbx]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L24
	mov	eax, -1
	jmp	.L23
.L24:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 8[rax], 0
	mov	DWORD PTR -48[rbp], 0
	jmp	.L26
.L27:
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, DWORD PTR -48[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -44[rbp]
	lea	ecx, [rdx+rax]
	mov	edx, DWORD PTR -40[rbp]
	lea	rax, -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	create_BOX
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	draw_BOX
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	push_SNAKE
	add	DWORD PTR -48[rbp], 1
.L26:
	cmp	DWORD PTR -48[rbp], 4
	jle	.L27
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
.L23:
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	init_SNAKE, .-init_SNAKE
	.globl	destroy_SNAKE
	.type	destroy_SNAKE, @function
destroy_SNAKE:
.LFB11:
	.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
	jmp	.L30
.L31:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
.L30:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L31
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	destroy_SNAKE, .-destroy_SNAKE
	.globl	push_SNAKE
	.type	push_SNAKE, @function
push_SNAKE:
.LFB12:
	.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L33
	mov	eax, -1
	jmp	.L34
.L33:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	eax, 0
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	push_SNAKE, .-push_SNAKE
	.globl	pop_SNAKE
	.type	pop_SNAKE, @function
pop_SNAKE:
.LFB13:
	.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rdx, rax
	jne	.L36
	mov	eax, -1
	jmp	.L37
.L36:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rdx]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	QWORD PTR -8[rbp], rax
	jne	.L38
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
.L38:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	pop_SNAKE, .-pop_SNAKE
	.globl	move_SNAKE
	.type	move_SNAKE, @function
move_SNAKE:
.LFB14:
	.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, DWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	lea	rax, -16[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	create_BOX
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	draw_BOX
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	push_SNAKE
	lea	rdx, -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pop_SNAKE
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	draw_BOX
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	move_SNAKE, .-move_SNAKE
	.globl	create_BOX
	.type	create_BOX, @function
create_BOX:
.LFB15:
	.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	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	edi, 20
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -16[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 12[rax], 2
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 8[rax], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 16[rax], 262176
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	create_BOX, .-create_BOX
	.globl	draw_BOX
	.type	draw_BOX, @function
draw_BOX:
.LFB16:
	.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 -40[rbp], rdi
	mov	eax, esi
	mov	BYTE PTR -44[rbp], al
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR -4[rbp], eax
	cmp	BYTE PTR -44[rbp], 0
	je	.L43
	mov	DWORD PTR -24[rbp], 0
	jmp	.L44
.L49:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L45
.L48:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -24[rbp]
	add	edx, eax
	mov	ecx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -20[rbp]
	add	ecx, eax
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L47
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, edx
	mov	rdi, rax
	call	waddch@PLT
.L47:
	add	DWORD PTR -20[rbp], 1
.L45:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L48
	add	DWORD PTR -24[rbp], 1
.L44:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jl	.L49
	jmp	.L50
.L43:
	mov	DWORD PTR -24[rbp], 0
	jmp	.L51
.L56:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L52
.L55:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -24[rbp]
	add	edx, eax
	mov	ecx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -20[rbp]
	add	ecx, eax
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L54
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 32
	mov	rdi, rax
	call	waddch@PLT
.L54:
	add	DWORD PTR -20[rbp], 1
.L52:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L55
	add	DWORD PTR -24[rbp], 1
.L51:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jl	.L56
.L50:
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	draw_BOX, .-draw_BOX
	.globl	print_align_center
	.type	print_align_center, @function
print_align_center:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	QWORD PTR -56[rbp], rdx
	mov	eax, DWORD PTR COLS[rip]
	movsx	rbx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, rbx
	sub	rax, rdx
	shr	rax
	mov	DWORD PTR -20[rbp], eax
	mov	rcx, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	esi, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	mvwprintw@PLT
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	print_align_center, .-print_align_center
	.section	.rodata
.LC0:
	.string	"%i"
	.text
	.globl	threadFunc
	.type	threadFunc, @function
threadFunc:
.LFB18:
	.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	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -47[rbp], 0
	mov	DWORD PTR -36[rbp], 260
	mov	DWORD PTR -28[rbp], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rax]
	lea	rax, -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	make_FOOD
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	draw_BOX
.L72:
	lea	rdi, lock[rip]
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -44[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	DWORD PTR -32[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR 16[rax]
	mov	BYTE PTR -45[rbp], al
	lea	rdi, lock[rip]
	call	pthread_mutex_unlock@PLT
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jne	.L59
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	toogle_direction
	mov	DWORD PTR -32[rbp], eax
	jmp	.L60
.L59:
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	toogle_direction
	mov	DWORD PTR -36[rbp], eax
.L60:
	cmp	DWORD PTR -32[rbp], 261
	je	.L61
	cmp	DWORD PTR -32[rbp], 261
	jg	.L75
	cmp	DWORD PTR -32[rbp], 260
	je	.L63
	cmp	DWORD PTR -32[rbp], 260
	jg	.L75
	cmp	DWORD PTR -32[rbp], 258
	je	.L64
	cmp	DWORD PTR -32[rbp], 259
	jne	.L75
	sub	DWORD PTR -40[rbp], 1
	jmp	.L65
.L64:
	add	DWORD PTR -40[rbp], 1
	jmp	.L65
.L63:
	sub	DWORD PTR -44[rbp], 2
	jmp	.L65
.L61:
	add	DWORD PTR -44[rbp], 2
	jmp	.L65
.L75:
	nop
.L65:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -44[rbp], eax
	jne	.L66
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -40[rbp], eax
	jne	.L66
	mov	BYTE PTR -46[rbp], 1
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	push_SNAKE
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rax]
	lea	rax, -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	make_FOOD
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	draw_BOX
	add	DWORD PTR -28[rbp], 1
	mov	eax, DWORD PTR LINES[rip]
	lea	edi, -2[rax]
	mov	eax, DWORD PTR -28[rbp]
	mov	ecx, eax
	lea	rdx, .LC0[rip]
	mov	esi, 9
	mov	eax, 0
	call	mvprintw@PLT
	jmp	.L67
.L66:
	mov	BYTE PTR -46[rbp], 0
.L67:
	movzx	eax, BYTE PTR -46[rbp]
	xor	eax, 1
	test	al, al
	je	.L68
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -44[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	check_dead
	mov	BYTE PTR -47[rbp], al
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -44[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	move_SNAKE
.L68:
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	cmp	BYTE PTR -47[rbp], 0
	jne	.L69
	cmp	BYTE PTR -45[rbp], 0
	je	.L70
.L69:
	lea	rdi, lock[rip]
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR 16[rax], 1
	lea	rdi, lock[rip]
	call	pthread_mutex_unlock@PLT
	nop
	nop
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L73
	jmp	.L74
.L70:
	mov	edi, 25000
	call	usleep@PLT
	jmp	.L72
.L74:
	call	__stack_chk_fail@PLT
.L73:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	threadFunc, .-threadFunc
	.section	.rodata
	.align 8
.LC1:
	.string	"BY BILY(gongbudaizhe@gmail.com)"
.LC2:
	.string	"SCORE:0"
.LC3:
	.string	"SNAKE GAME"
.LC4:
	.string	"PRESS ANY KEY TO START"
.LC5:
	.string	"          "
.LC6:
	.string	"                      "
	.text
	.globl	main
	.type	main, @function
main:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 104
	.cfi_offset 3, -24
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	call	initscr@PLT
	call	cbreak@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	esi, 1
	mov	rdi, rax
	call	keypad@PLT
	call	noecho@PLT
	mov	DWORD PTR -92[rbp], 3
	mov	DWORD PTR -88[rbp], 10
	lea	rax, .LC1[rip]
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR LINES[rip]
	sub	eax, 2
	lea	rdx, .LC2[rip]
	mov	esi, 3
	mov	edi, eax
	mov	eax, 0
	call	mvprintw@PLT
	mov	eax, DWORD PTR COLS[rip]
	mov	ebx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	mov	eax, ebx
	sub	eax, edx
	mov	esi, eax
	mov	eax, DWORD PTR LINES[rip]
	lea	ecx, -2[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, rax
	mov	edi, ecx
	mov	eax, 0
	call	mvprintw@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	eax, DWORD PTR COLS[rip]
	mov	edx, DWORD PTR LINES[rip]
	lea	edi, -2[rdx]
	mov	ecx, 0
	mov	edx, 0
	mov	esi, eax
	call	newwin@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[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 -56[rbp]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	eax, DWORD PTR LINES[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	ecx, eax
	mov	rax, QWORD PTR stdscr[rip]
	lea	rdx, .LC3[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	print_align_center
	mov	eax, DWORD PTR LINES[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	lea	ecx, 1[rax]
	mov	rax, QWORD PTR stdscr[rip]
	lea	rdx, .LC4[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	print_align_center
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	eax, DWORD PTR LINES[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	ecx, eax
	mov	rax, QWORD PTR stdscr[rip]
	lea	rdx, .LC5[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	print_align_center
	mov	eax, DWORD PTR LINES[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	lea	ecx, 1[rax]
	mov	rax, QWORD PTR stdscr[rip]
	lea	rdx, .LC6[rip]
	mov	esi, ecx
	mov	rdi, rax
	call	print_align_center
	mov	edi, 0
	call	curs_set@PLT
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	init_SNAKE
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	BYTE PTR -32[rbp], 0
	mov	DWORD PTR -36[rbp], 261
	mov	esi, 0
	lea	rdi, lock[rip]
	call	pthread_mutex_init@PLT
	lea	rdx, -48[rbp]
	lea	rax, -72[rbp]
	mov	rcx, rdx
	lea	rdx, threadFunc[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
.L81:
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 113
	jne	.L77
	lea	rdi, lock[rip]
	call	pthread_mutex_lock@PLT
	mov	BYTE PTR -32[rbp], 1
	lea	rdi, lock[rip]
	call	pthread_mutex_unlock@PLT
	mov	BYTE PTR -93[rbp], 1
	jmp	.L78
.L77:
	lea	rdi, lock[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR -84[rbp]
	mov	DWORD PTR -36[rbp], eax
	movzx	eax, BYTE PTR -32[rbp]
	mov	BYTE PTR -93[rbp], al
	lea	rdi, lock[rip]
	call	pthread_mutex_unlock@PLT
.L78:
	cmp	BYTE PTR -93[rbp], 0
	jne	.L85
	jmp	.L81
.L85:
	nop
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	destroy_SNAKE
	call	endwin@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L83
	call	__stack_chk_fail@PLT
.L83:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.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	"80211.c"
	.text
	.comm	lock,24,4
	.align	2
	.global	toogle_direction
	.syntax unified
	.arm
	.fpu softvfp
	.type	toogle_direction, %function
toogle_direction:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #256
	sub	r3, r3, #2
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L6:
	ldr	r3, .L9
	b	.L8
.L7:
	ldr	r3, .L9+4
	b	.L8
.L5:
	ldr	r3, .L9+8
	b	.L8
.L3:
	mov	r3, #260
	b	.L8
.L2:
	mvn	r3, #0
.L8:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L10:
	.align	2
.L9:
	.word	258
	.word	259
	.word	261
	.size	toogle_direction, .-toogle_direction
	.align	2
	.global	check_SNAKE
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_SNAKE, %function
check_SNAKE:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	b	.L12
.L15:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L13
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L13
	mov	r3, #1
	b	.L14
.L13:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L12:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L15
	mov	r3, #0
.L14:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	check_SNAKE, .-check_SNAKE
	.align	2
	.global	check_dead
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_dead, %function
check_dead:
	@ 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]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, .L21
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L17
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L17
	ldr	r3, .L21+4
	ldr	r3, [r3]
	sub	r3, r3, #3
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bge	.L17
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L18
.L17:
	mov	r3, #1
	b	.L19
.L18:
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	check_SNAKE
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	mov	r3, #1
	b	.L19
.L20:
	mov	r3, #0
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	COLS
	.word	LINES
	.size	check_dead, .-check_dead
	.global	__aeabi_idivmod
	.align	2
	.global	make_FOOD
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_FOOD, %function
make_FOOD:
	@ 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]
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3]
.L26:
	bl	rand
	ldr	r3, .L29
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	sub	r3, r3, #2
	mov	r1, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, #1
	str	r3, [fp, #-12]
	bl	rand
	mov	r2, r0
	ldr	r3, .L29+4
	ldr	r3, [r3]
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-20]
	bl	check_SNAKE
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L28
	b	.L26
.L28:
	nop
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r2, #2
	str	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, .L29+8
	str	r2, [r3, #16]
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	COLS
	.word	LINES
	.word	262176
	.size	make_FOOD, .-make_FOOD
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	init_SNAKE
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_SNAKE, %function
init_SNAKE:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #21
	str	r3, [fp, #-28]
	mov	r3, #10
	str	r3, [fp, #-24]
	mov	r3, #2
	str	r3, [fp, #-20]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-40]
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	ldr	r4, [r3]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #4]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	ldr	r2, [r4, #4]
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L32
	mvn	r3, #0
	b	.L31
.L32:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #4]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L34
.L35:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-32]
	mul	r2, r3, r2
	ldr	r3, [fp, #-28]
	add	r1, r2, r3
	sub	r3, fp, #36
	ldr	r2, [fp, #-24]
	mov	r0, r3
	bl	create_BOX
	ldr	r3, [fp, #-36]
	mov	r1, #1
	mov	r0, r3
	bl	draw_BOX
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	mov	r1, r2
	mov	r0, r3
	bl	push_SNAKE
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L34:
	ldr	r3, [fp, #-32]
	cmp	r3, #4
	ble	.L35
	ldr	r3, .L37+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
.L31:
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC0
	.word	stdscr
	.size	init_SNAKE, .-init_SNAKE
	.align	2
	.global	destroy_SNAKE
	.syntax unified
	.arm
	.fpu softvfp
	.type	destroy_SNAKE, %function
destroy_SNAKE:
	@ 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]
	b	.L40
.L41:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
.L40:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L41
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	destroy_SNAKE, .-destroy_SNAKE
	.align	2
	.global	push_SNAKE
	.syntax unified
	.arm
	.fpu softvfp
	.type	push_SNAKE, %function
push_SNAKE:
	@ 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]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L43
	mvn	r3, #0
	b	.L44
.L43:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	mov	r3, #0
.L44:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	push_SNAKE, .-push_SNAKE
	.align	2
	.global	pop_SNAKE
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop_SNAKE, %function
pop_SNAKE:
	@ 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, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bne	.L46
	mvn	r3, #0
	b	.L47
.L46:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r2, [r2, #4]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L48
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
.L48:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r0, [fp, #-8]
	bl	free
	mov	r3, #0
.L47:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	pop_SNAKE, .-pop_SNAKE
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	move_SNAKE
	.syntax unified
	.arm
	.fpu softvfp
	.type	move_SNAKE, %function
move_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]
	ldr	r3, .L51
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #12
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	create_BOX
	ldr	r3, [fp, #-12]
	mov	r1, #1
	mov	r0, r3
	bl	draw_BOX
	ldr	r3, [fp, #-12]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	push_SNAKE
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	pop_SNAKE
	ldr	r3, [fp, #-12]
	mov	r1, #0
	mov	r0, r3
	bl	draw_BOX
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	free
	nop
	ldr	r3, .L51
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L50
	bl	__stack_chk_fail
.L50:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L52:
	.align	2
.L51:
	.word	.LC1
	.size	move_SNAKE, .-move_SNAKE
	.align	2
	.global	create_BOX
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_BOX, %function
create_BOX:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, #2
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, .L54
	str	r2, [r3, #16]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	262176
	.size	create_BOX, .-create_BOX
	.align	2
	.global	draw_BOX
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_BOX, %function
draw_BOX:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	mov	r3, r1
	strb	r3, [fp, #-33]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L57
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L58
.L63:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L59
.L62:
	ldr	r3, .L71
	ldr	r0, [r3]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	add	r1, r2, r3
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L61
	ldr	r3, .L71
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	mov	r1, r3
	mov	r0, r2
	bl	waddch
.L61:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L59:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L62
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L58:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L63
	b	.L64
.L57:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L65
.L70:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L66
.L69:
	ldr	r3, .L71
	ldr	r0, [r3]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	add	r1, r2, r3
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r3
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L68
	ldr	r3, .L71
	ldr	r3, [r3]
	mov	r1, #32
	mov	r0, r3
	bl	waddch
.L68:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L66:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L69
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L65:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L70
.L64:
	ldr	r3, .L71
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L72:
	.align	2
.L71:
	.word	stdscr
	.size	draw_BOX, .-draw_BOX
	.align	2
	.global	print_align_center
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_align_center, %function
print_align_center:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, .L74
	ldr	r3, [r3]
	mov	r4, r3
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r3, r0
	sub	r3, r4, r3
	lsr	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	mvwprintw
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L75:
	.align	2
.L74:
	.word	COLS
	.size	print_align_center, .-print_align_center
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%i\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	threadFunc
	.syntax unified
	.arm
	.fpu softvfp
	.type	threadFunc, %function
threadFunc:
	@ 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]
	ldr	r3, .L96
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-39]
	mov	r3, #260
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	sub	r3, fp, #36
	mov	r1, r2
	mov	r0, r3
	bl	make_FOOD
	ldr	r3, [fp, #-36]
	mov	r1, #1
	mov	r0, r3
	bl	draw_BOX
.L92:
	ldr	r0, .L96+4
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3, #12]
	strb	r3, [fp, #-37]
	ldr	r0, .L96+4
	bl	pthread_mutex_unlock
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L77
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	toogle_direction
	mov	r3, r0
	str	r3, [fp, #-20]
	b	.L78
.L77:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	toogle_direction
	mov	r3, r0
	str	r3, [fp, #-24]
.L78:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #256
	sub	r3, r3, #2
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L95
.L81:
	.word	.L84
	.word	.L83
	.word	.L82
	.word	.L80
.L83:
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L85
.L84:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L85
.L82:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #2
	str	r3, [fp, #-32]
	b	.L85
.L80:
	ldr	r3, [fp, #-32]
	add	r3, r3, #2
	str	r3, [fp, #-32]
	b	.L85
.L95:
	nop
.L85:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bne	.L86
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bne	.L86
	mov	r3, #1
	strb	r3, [fp, #-38]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	mov	r1, r2
	mov	r0, r3
	bl	push_SNAKE
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	sub	r3, fp, #36
	mov	r1, r2
	mov	r0, r3
	bl	make_FOOD
	ldr	r3, [fp, #-36]
	mov	r1, #1
	mov	r0, r3
	bl	draw_BOX
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, .L96+8
	ldr	r3, [r3]
	sub	r0, r3, #2
	ldr	r3, [fp, #-16]
	ldr	r2, .L96+12
	mov	r1, #9
	bl	mvprintw
	b	.L87
.L86:
	mov	r3, #0
	strb	r3, [fp, #-38]
.L87:
	ldrb	r3, [fp, #-38]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L88
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	check_dead
	mov	r3, r0
	strb	r3, [fp, #-39]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	move_SNAKE
.L88:
	ldr	r3, .L96+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	ldrb	r3, [fp, #-39]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L89
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L90
.L89:
	ldr	r0, .L96+4
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-12]
	mov	r2, #1
	strb	r2, [r3, #12]
	ldr	r0, .L96+4
	bl	pthread_mutex_unlock
	nop
	nop
	ldr	r2, .L96
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L93
	b	.L94
.L90:
	ldr	r0, .L96+20
	bl	usleep
	b	.L92
.L94:
	bl	__stack_chk_fail
.L93:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L97:
	.align	2
.L96:
	.word	.LC3
	.word	lock
	.word	LINES
	.word	.LC2
	.word	stdscr
	.word	25000
	.size	threadFunc, .-threadFunc
	.section	.rodata
	.align	2
.LC4:
	.ascii	"BY BILY(gongbudaizhe@gmail.com)\000"
	.align	2
.LC5:
	.ascii	"SCORE:0\000"
	.align	2
.LC6:
	.ascii	"SNAKE GAME\000"
	.align	2
.LC7:
	.ascii	"PRESS ANY KEY TO START\000"
	.align	2
.LC8:
	.ascii	"          \000"
	.align	2
.LC9:
	.ascii	"                      \000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #88
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L108
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	initscr
	bl	cbreak
	ldr	r3, .L108+4
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	keypad
	bl	noecho
	mov	r3, #3
	str	r3, [fp, #-52]
	mov	r3, #10
	str	r3, [fp, #-48]
	ldr	r3, .L108+8
	str	r3, [fp, #-44]
	ldr	r3, .L108+12
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, .L108+16
	mov	r1, #3
	mov	r0, r3
	bl	mvprintw
	ldr	r3, .L108+12
	ldr	r3, [r3]
	sub	r4, r3, #2
	ldr	r3, .L108+20
	ldr	r3, [r3]
	mov	r5, r3
	ldr	r0, [fp, #-44]
	bl	strlen
	mov	r3, r0
	sub	r3, r5, r3
	ldr	r2, [fp, #-44]
	mov	r1, r3
	mov	r0, r4
	bl	mvprintw
	ldr	r3, .L108+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	ldr	r3, .L108+12
	ldr	r3, [r3]
	sub	r0, r3, #2
	ldr	r3, .L108+20
	ldr	r1, [r3]
	mov	r3, #0
	mov	r2, #0
	bl	newwin
	str	r0, [fp, #-40]
	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, #-40]
	bl	wborder
	ldr	r0, [fp, #-40]
	bl	wrefresh
	ldr	r3, .L108+4
	ldr	r0, [r3]
	ldr	r3, .L108+12
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	ldr	r2, .L108+24
	mov	r1, r3
	bl	print_align_center
	ldr	r3, .L108+4
	ldr	r0, [r3]
	ldr	r3, .L108+12
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	add	r3, r3, #1
	ldr	r2, .L108+28
	mov	r1, r3
	bl	print_align_center
	ldr	r3, .L108+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	ldr	r3, .L108+4
	ldr	r0, [r3]
	ldr	r3, .L108+12
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	ldr	r2, .L108+32
	mov	r1, r3
	bl	print_align_center
	ldr	r3, .L108+4
	ldr	r0, [r3]
	ldr	r3, .L108+12
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	add	r3, r3, #1
	ldr	r2, .L108+36
	mov	r1, r3
	bl	print_align_center
	mov	r0, #0
	bl	curs_set
	sub	r3, fp, #60
	mov	r0, r3
	bl	init_SNAKE
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-32]
	mov	r3, #0
	strb	r3, [fp, #-20]
	ldr	r3, .L108+40
	str	r3, [fp, #-24]
	mov	r1, #0
	ldr	r0, .L108+44
	bl	pthread_mutex_init
	sub	r3, fp, #32
	sub	r0, fp, #56
	ldr	r2, .L108+48
	mov	r1, #0
	bl	pthread_create
.L103:
	ldr	r3, .L108+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #113
	bne	.L99
	ldr	r0, .L108+44
	bl	pthread_mutex_lock
	mov	r3, #1
	strb	r3, [fp, #-20]
	ldr	r0, .L108+44
	bl	pthread_mutex_unlock
	mov	r3, #1
	strb	r3, [fp, #-61]
	b	.L100
.L99:
	ldr	r0, .L108+44
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-24]
	ldrb	r3, [fp, #-20]
	strb	r3, [fp, #-61]
	ldr	r0, .L108+44
	bl	pthread_mutex_unlock
.L100:
	ldrb	r3, [fp, #-61]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L107
	b	.L103
.L107:
	nop
	ldr	r3, [fp, #-56]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-60]
	mov	r0, r3
	bl	destroy_SNAKE
	bl	endwin
	mov	r3, #0
	ldr	r2, .L108
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L105
	bl	__stack_chk_fail
.L105:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L109:
	.align	2
.L108:
	.word	.LC10
	.word	stdscr
	.word	.LC4
	.word	LINES
	.word	.LC5
	.word	COLS
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	261
	.word	lock
	.word	threadFunc
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
