	.file	"145451883.c"
	.intel_syntax noprefix
	.text
	.globl	orig_termios
	.bss
	.align 32
	.type	orig_termios, @object
	.size	orig_termios, 60
orig_termios:
	.zero	60
	.globl	x_field_min
	.section	.rodata
	.align 4
	.type	x_field_min, @object
	.size	x_field_min, 4
x_field_min:
	.long	16
	.globl	x_field_max
	.align 4
	.type	x_field_max, @object
	.size	x_field_max, 4
x_field_max:
	.long	46
	.globl	screen_memory
	.bss
	.align 32
	.type	screen_memory, @object
	.size	screen_memory, 2000
screen_memory:
	.zero	2000
	.globl	obstacles
	.align 32
	.type	obstacles, @object
	.size	obstacles, 2000
obstacles:
	.zero	2000
	.globl	eat_pellets
	.align 32
	.type	eat_pellets, @object
	.size	eat_pellets, 2000
eat_pellets:
	.zero	2000
	.globl	screen_updated
	.align 4
	.type	screen_updated, @object
	.size	screen_updated, 4
screen_updated:
	.zero	4
	.globl	game_points
	.align 4
	.type	game_points, @object
	.size	game_points, 4
game_points:
	.zero	4
	.section	.rodata
.LC0:
	.string	"\n*** Game Over ***"
.LC1:
	.string	"\n.. %i\n"
	.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
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	set_conio_terminal_mode
	mov	DWORD PTR -80[rbp], 16
	mov	DWORD PTR -76[rbp], 11
	mov	DWORD PTR -48[rbp], 40
	mov	DWORD PTR -44[rbp], 11
	mov	DWORD PTR -40[rbp], 1000
	mov	eax, 0
	call	getMillis_sinceMidnight
	mov	QWORD PTR -32[rbp], rax
	mov	eax, 0
	call	init_obstacles
	mov	eax, 0
	call	init_eat_pellets
	mov	edi, 32
	call	clear_screen_memory
	mov	ecx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	edx, 65
	mov	esi, ecx
	mov	edi, eax
	call	make_dot
	mov	ecx, DWORD PTR -76[rbp]
	mov	eax, DWORD PTR -80[rbp]
	mov	edx, 79
	mov	esi, ecx
	mov	edi, eax
	call	make_dot
	mov	eax, 0
	call	print_screen_memory_to_cli
	mov	DWORD PTR -84[rbp], 0
.L11:
	mov	eax, 0
	call	get_pressed_key
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 1
	jne	.L2
	lea	rax, -80[rbp]
	push	QWORD PTR -56[rbp]
	push	QWORD PTR -64[rbp]
	push	QWORD PTR -72[rbp]
	push	QWORD PTR -80[rbp]
	mov	edx, 1
	mov	esi, 0
	mov	rdi, rax
	call	move_game_object
	add	rsp, 32
	jmp	.L3
.L2:
	cmp	DWORD PTR -84[rbp], 4
	jne	.L4
	lea	rax, -128[rbp]
	push	QWORD PTR -56[rbp]
	push	QWORD PTR -64[rbp]
	push	QWORD PTR -72[rbp]
	push	QWORD PTR -80[rbp]
	mov	edx, 1
	mov	esi, 2
	mov	rdi, rax
	call	move_game_object
	add	rsp, 32
	mov	rax, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR -120[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, QWORD PTR -104[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	jmp	.L3
.L4:
	cmp	DWORD PTR -84[rbp], 2
	jne	.L5
	lea	rax, -128[rbp]
	push	QWORD PTR -56[rbp]
	push	QWORD PTR -64[rbp]
	push	QWORD PTR -72[rbp]
	push	QWORD PTR -80[rbp]
	mov	edx, 1
	mov	esi, 3
	mov	rdi, rax
	call	move_game_object
	add	rsp, 32
	mov	rax, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR -120[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, QWORD PTR -104[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	jmp	.L3
.L5:
	cmp	DWORD PTR -84[rbp], 3
	jne	.L6
	lea	rax, -128[rbp]
	push	QWORD PTR -56[rbp]
	push	QWORD PTR -64[rbp]
	push	QWORD PTR -72[rbp]
	push	QWORD PTR -80[rbp]
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	move_game_object
	add	rsp, 32
	mov	rax, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR -120[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, QWORD PTR -104[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	jmp	.L3
.L6:
	cmp	DWORD PTR -84[rbp], 5
	je	.L14
.L3:
	lea	rax, -48[rbp]
	push	QWORD PTR -24[rbp]
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	mov	rdi, rax
	call	update_ghost_position
	add	rsp, 32
	push	QWORD PTR -24[rbp]
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	push	QWORD PTR -56[rbp]
	push	QWORD PTR -64[rbp]
	push	QWORD PTR -72[rbp]
	push	QWORD PTR -80[rbp]
	call	game_over
	add	rsp, 64
	test	al, al
	je	.L8
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L7
.L8:
	cmp	DWORD PTR -84[rbp], 0
	jne	.L9
	movzx	eax, BYTE PTR -24[rbp]
	test	al, al
	je	.L11
.L9:
	mov	edi, 32
	call	clear_screen_memory
	mov	ecx, DWORD PTR -76[rbp]
	mov	eax, DWORD PTR -80[rbp]
	mov	edx, 79
	mov	esi, ecx
	mov	edi, eax
	call	make_dot
	mov	ecx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	edx, 65
	mov	esi, ecx
	mov	edi, eax
	call	make_dot
	mov	eax, 0
	call	print_screen_memory_to_cli
	mov	eax, DWORD PTR game_points[rip]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -84[rbp], 0
	mov	BYTE PTR -24[rbp], 0
	jmp	.L11
.L14:
	nop
.L7:
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC2:
	.string	"\033[1;1H\033[2J"
.LC3:
	.string	"\n\r"
	.text
	.globl	print_screen_memory_to_cli
	.type	print_screen_memory_to_cli, @function
print_screen_memory_to_cli:
.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
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L16
.L26:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L17
.L25:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, obstacles[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 1
	jne	.L18
	mov	edi, 35
	call	putchar@PLT
	jmp	.L19
.L18:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, screen_memory[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L20
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, eat_pellets[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 1
	je	.L21
	cmp	eax, 5
	je	.L22
	jmp	.L27
.L21:
	mov	edi, 46
	call	putchar@PLT
	jmp	.L19
.L22:
	mov	edi, 43
	call	putchar@PLT
	jmp	.L19
.L27:
	mov	edi, 32
	call	putchar@PLT
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, screen_memory[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
.L19:
	add	DWORD PTR -4[rbp], 1
.L17:
	cmp	DWORD PTR -4[rbp], 79
	jle	.L25
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -8[rbp], 1
.L16:
	cmp	DWORD PTR -8[rbp], 24
	jle	.L26
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_screen_memory_to_cli, .-print_screen_memory_to_cli
	.globl	make_dot
	.type	make_dot, @function
make_dot:
.LFB8:
	.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
	mov	DWORD PTR -8[rbp], esi
	mov	eax, edx
	mov	BYTE PTR -12[rbp], al
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, screen_memory[rip]
	add	rdx, rax
	movzx	eax, BYTE PTR -12[rbp]
	mov	BYTE PTR [rdx], al
	mov	DWORD PTR screen_updated[rip], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	make_dot, .-make_dot
	.globl	clear_screen_memory
	.type	clear_screen_memory, @function
clear_screen_memory:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -20[rbp], al
	mov	DWORD PTR -8[rbp], 0
	jmp	.L30
.L33:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L31
.L32:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, screen_memory[rip]
	add	rdx, rax
	movzx	eax, BYTE PTR -20[rbp]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -4[rbp], 1
.L31:
	cmp	DWORD PTR -4[rbp], 79
	jle	.L32
	add	DWORD PTR -8[rbp], 1
.L30:
	cmp	DWORD PTR -8[rbp], 24
	jle	.L33
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	clear_screen_memory, .-clear_screen_memory
	.globl	get_pressed_key
	.type	get_pressed_key, @function
get_pressed_key:
.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, 16
	mov	DWORD PTR -4[rbp], 0
	mov	eax, 0
	call	kbhit
	test	eax, eax
	je	.L35
	mov	eax, 0
	call	getch
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 27
	jne	.L36
	mov	eax, 0
	call	getch
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 91
	jne	.L35
	mov	eax, 0
	call	getch
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 65
	jne	.L37
	mov	eax, 1
	jmp	.L38
.L37:
	cmp	DWORD PTR -4[rbp], 66
	jne	.L39
	mov	eax, 4
	jmp	.L38
.L39:
	cmp	DWORD PTR -4[rbp], 68
	jne	.L40
	mov	eax, 2
	jmp	.L38
.L40:
	cmp	DWORD PTR -4[rbp], 67
	jne	.L35
	mov	eax, 3
	jmp	.L38
.L36:
	cmp	DWORD PTR -4[rbp], 113
	jne	.L35
	mov	eax, 5
	jmp	.L38
.L35:
	mov	eax, 0
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	get_pressed_key, .-get_pressed_key
	.globl	move_game_object
	.type	move_game_object, @function
move_game_object:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	cmp	DWORD PTR -28[rbp], 3
	je	.L42
	cmp	DWORD PTR -28[rbp], 3
	ja	.L43
	cmp	DWORD PTR -28[rbp], 2
	je	.L44
	cmp	DWORD PTR -28[rbp], 2
	ja	.L43
	cmp	DWORD PTR -28[rbp], 0
	je	.L45
	cmp	DWORD PTR -28[rbp], 1
	je	.L46
	jmp	.L43
.L45:
	mov	eax, DWORD PTR 20[rbp]
	sub	eax, 1
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	jne	.L47
	mov	DWORD PTR -8[rbp], 24
.L47:
	mov	eax, DWORD PTR 16[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	edi, eax
	call	collision_with_obstacle
	test	eax, eax
	jne	.L57
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR 20[rbp], eax
	jmp	.L57
.L46:
	mov	eax, DWORD PTR 16[rbp]
	lea	edx, 1[rax]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 5
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	mov	ecx, DWORD PTR -4[rbp]
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	sal	eax, 4
	sub	edx, eax
	mov	DWORD PTR -4[rbp], edx
	mov	edx, DWORD PTR 20[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	collision_with_obstacle
	test	eax, eax
	jne	.L58
	mov	eax, 46
	cmp	DWORD PTR -4[rbp], eax
	jle	.L50
	mov	eax, 16
	mov	DWORD PTR 16[rbp], eax
	jmp	.L58
.L50:
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR 16[rbp], eax
	jmp	.L58
.L44:
	mov	eax, DWORD PTR 20[rbp]
	lea	edx, 1[rax]
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 3
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	DWORD PTR -8[rbp], eax
	mov	ecx, DWORD PTR -8[rbp]
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	lea	ecx, 0[0+rax*4]
	add	eax, ecx
	sub	edx, eax
	mov	DWORD PTR -8[rbp], edx
	mov	eax, DWORD PTR 16[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	edi, eax
	call	collision_with_obstacle
	test	eax, eax
	jne	.L59
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR 20[rbp], eax
	jmp	.L59
.L42:
	mov	eax, DWORD PTR 16[rbp]
	sub	eax, 1
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR 16[rbp]
	cmp	eax, -1
	jne	.L52
	mov	DWORD PTR -4[rbp], 79
.L52:
	mov	edx, DWORD PTR 20[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	collision_with_obstacle
	test	eax, eax
	jne	.L60
	mov	eax, 16
	cmp	DWORD PTR -4[rbp], eax
	jge	.L54
	mov	eax, 46
	mov	DWORD PTR 16[rbp], eax
	jmp	.L60
.L54:
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR 16[rbp], eax
	jmp	.L60
.L57:
	nop
	jmp	.L43
.L58:
	nop
	jmp	.L43
.L59:
	nop
	jmp	.L43
.L60:
	nop
.L43:
	cmp	DWORD PTR -32[rbp], 0
	je	.L55
	mov	edx, DWORD PTR 20[rbp]
	mov	eax, DWORD PTR 16[rbp]
	mov	esi, edx
	mov	edi, eax
	call	collect_eat_pellets
.L55:
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rbp]
	mov	rdx, QWORD PTR 24[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR 32[rbp]
	mov	rdx, QWORD PTR 40[rbp]
	mov	QWORD PTR 16[rcx], rax
	mov	QWORD PTR 24[rcx], rdx
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	move_game_object, .-move_game_object
	.globl	update_ghost_position
	.type	update_ghost_position, @function
update_ghost_position:
.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, 80
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	getMillis_sinceMidnight
	mov	QWORD PTR -16[rbp], rax
	mov	rcx, QWORD PTR 32[rbp]
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, rcx
	mov	rdx, rax
	mov	eax, DWORD PTR 24[rbp]
	cdqe
	cmp	rdx, rax
	jle	.L62
	call	rand@PLT
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 3
	je	.L63
	cmp	DWORD PTR -20[rbp], 3
	jg	.L64
	cmp	DWORD PTR -20[rbp], 2
	je	.L65
	cmp	DWORD PTR -20[rbp], 2
	jg	.L64
	cmp	DWORD PTR -20[rbp], 0
	je	.L66
	cmp	DWORD PTR -20[rbp], 1
	je	.L67
	jmp	.L64
.L66:
	push	QWORD PTR 40[rbp]
	push	QWORD PTR 32[rbp]
	push	QWORD PTR 24[rbp]
	push	QWORD PTR 16[rbp]
	mov	edx, 0
	mov	esi, 0
	lea	rdi, 16[rbp]
	call	move_game_object
	add	rsp, 32
	jmp	.L64
.L67:
	lea	rax, -80[rbp]
	push	QWORD PTR 40[rbp]
	push	QWORD PTR 32[rbp]
	push	QWORD PTR 24[rbp]
	push	QWORD PTR 16[rbp]
	mov	edx, 0
	mov	esi, 1
	mov	rdi, rax
	call	move_game_object
	add	rsp, 32
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR 16[rbp], rax
	mov	QWORD PTR 24[rbp], rdx
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR 32[rbp], rax
	mov	QWORD PTR 40[rbp], rdx
	jmp	.L64
.L65:
	lea	rax, -80[rbp]
	push	QWORD PTR 40[rbp]
	push	QWORD PTR 32[rbp]
	push	QWORD PTR 24[rbp]
	push	QWORD PTR 16[rbp]
	mov	edx, 0
	mov	esi, 2
	mov	rdi, rax
	call	move_game_object
	add	rsp, 32
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR 16[rbp], rax
	mov	QWORD PTR 24[rbp], rdx
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR 32[rbp], rax
	mov	QWORD PTR 40[rbp], rdx
	jmp	.L64
.L63:
	lea	rax, -80[rbp]
	push	QWORD PTR 40[rbp]
	push	QWORD PTR 32[rbp]
	push	QWORD PTR 24[rbp]
	push	QWORD PTR 16[rbp]
	mov	edx, 0
	mov	esi, 3
	mov	rdi, rax
	call	move_game_object
	add	rsp, 32
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR 16[rbp], rax
	mov	QWORD PTR 24[rbp], rdx
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR 32[rbp], rax
	mov	QWORD PTR 40[rbp], rdx
	nop
.L64:
	mov	BYTE PTR 40[rbp], 1
	mov	eax, 0
	call	getMillis_sinceMidnight
	mov	QWORD PTR 32[rbp], rax
	mov	rcx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rbp]
	mov	rdx, QWORD PTR 24[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR 32[rbp]
	mov	rdx, QWORD PTR 40[rbp]
	mov	QWORD PTR 16[rcx], rax
	mov	QWORD PTR 24[rcx], rdx
	jmp	.L68
.L62:
	mov	rcx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rbp]
	mov	rdx, QWORD PTR 24[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR 32[rbp]
	mov	rdx, QWORD PTR 40[rbp]
	mov	QWORD PTR 16[rcx], rax
	mov	QWORD PTR 24[rcx], rdx
.L68:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L69
	call	__stack_chk_fail@PLT
.L69:
	mov	rax, QWORD PTR -40[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	update_ghost_position, .-update_ghost_position
	.globl	collision_with_obstacle
	.type	collision_with_obstacle, @function
collision_with_obstacle:
.LFB13:
	.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
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, obstacles[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L71
	mov	eax, 1
	jmp	.L72
.L71:
	mov	eax, 0
.L72:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	collision_with_obstacle, .-collision_with_obstacle
	.globl	collect_eat_pellets
	.type	collect_eat_pellets, @function
collect_eat_pellets:
.LFB14:
	.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
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, eat_pellets[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	eax, DWORD PTR game_points[rip]
	add	eax, edx
	mov	DWORD PTR game_points[rip], eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, eat_pellets[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jle	.L75
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, eat_pellets[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L75:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	collect_eat_pellets, .-collect_eat_pellets
	.section	.rodata
.LC4:
	.string	"r"
.LC5:
	.string	"obstacles.txt"
	.text
	.globl	init_obstacles
	.type	init_obstacles, @function
init_obstacles:
.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, 32
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L77
.L82:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L78
.L81:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -17[rbp], al
	cmp	BYTE PTR -17[rbp], -1
	je	.L79
	cmp	BYTE PTR -17[rbp], 35
	jne	.L80
	mov	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, obstacles[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 1
	jmp	.L79
.L80:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, obstacles[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L79:
	add	DWORD PTR -12[rbp], 1
.L78:
	cmp	DWORD PTR -12[rbp], 79
	jle	.L81
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -17[rbp], al
	add	DWORD PTR -16[rbp], 1
.L77:
	cmp	DWORD PTR -16[rbp], 24
	jle	.L82
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	init_obstacles, .-init_obstacles
	.section	.rodata
.LC6:
	.string	"eat_pellets.txt"
	.text
	.globl	init_eat_pellets
	.type	init_eat_pellets, @function
init_eat_pellets:
.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, 32
	lea	rsi, .LC4[rip]
	lea	rdi, .LC6[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L84
.L90:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L85
.L89:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -17[rbp], al
	cmp	BYTE PTR -17[rbp], -1
	je	.L86
	cmp	BYTE PTR -17[rbp], 49
	jne	.L87
	mov	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, eat_pellets[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 1
	jmp	.L86
.L87:
	cmp	BYTE PTR -17[rbp], 53
	jne	.L88
	mov	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, eat_pellets[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 5
	jmp	.L86
.L88:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	lea	rdx, [rax+rcx]
	lea	rax, eat_pellets[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L86:
	add	DWORD PTR -12[rbp], 1
.L85:
	cmp	DWORD PTR -12[rbp], 79
	jle	.L89
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -17[rbp], al
	add	DWORD PTR -16[rbp], 1
.L84:
	cmp	DWORD PTR -16[rbp], 24
	jle	.L90
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	init_eat_pellets, .-init_eat_pellets
	.globl	game_over
	.type	game_over, @function
game_over:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, DWORD PTR 16[rbp]
	mov	eax, DWORD PTR 48[rbp]
	cmp	edx, eax
	jne	.L92
	mov	edx, DWORD PTR 20[rbp]
	mov	eax, DWORD PTR 52[rbp]
	cmp	edx, eax
	jne	.L92
	mov	eax, 1
	jmp	.L93
.L92:
	mov	eax, 0
.L93:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	game_over, .-game_over
	.globl	reset_terminal_mode
	.type	reset_terminal_mode, @function
reset_terminal_mode:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdx, orig_termios[rip]
	mov	esi, 0
	mov	edi, 0
	call	tcsetattr@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	reset_terminal_mode, .-reset_terminal_mode
	.globl	set_conio_terminal_mode
	.type	set_conio_terminal_mode, @function
set_conio_terminal_mode:
.LFB19:
	.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
	lea	rsi, orig_termios[rip]
	mov	edi, 0
	call	tcgetattr@PLT
	mov	rax, QWORD PTR orig_termios[rip]
	mov	rdx, QWORD PTR orig_termios[rip+8]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR orig_termios[rip+16]
	mov	rdx, QWORD PTR orig_termios[rip+24]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR orig_termios[rip+32]
	mov	rdx, QWORD PTR orig_termios[rip+40]
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR orig_termios[rip+48]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR orig_termios[rip+56]
	mov	DWORD PTR -24[rbp], eax
	lea	rdi, reset_terminal_mode[rip]
	call	atexit@PLT
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	cfmakeraw@PLT
	lea	rax, -80[rbp]
	mov	rdx, rax
	mov	esi, 0
	mov	edi, 0
	call	tcsetattr@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L96
	call	__stack_chk_fail@PLT
.L96:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	set_conio_terminal_mode, .-set_conio_terminal_mode
	.globl	kbhit
	.type	kbhit, @function
kbhit:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -144[rbp]
	mov	rdi, rdx
#APP
# 405 "the_stack_data/145451883.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -168[rbp], edx
	mov	DWORD PTR -164[rbp], eax
	mov	rax, QWORD PTR -144[rbp]
	or	rax, 1
	mov	QWORD PTR -144[rbp], rax
	lea	rdx, -160[rbp]
	lea	rax, -144[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1
	call	select@PLT
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L99
	call	__stack_chk_fail@PLT
.L99:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	kbhit, .-kbhit
	.globl	getch
	.type	getch, @function
getch:
.LFB21:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -13[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L101
	mov	eax, DWORD PTR -12[rbp]
	jmp	.L103
.L101:
	movzx	eax, BYTE PTR -13[rbp]
	movzx	eax, al
.L103:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L104
	call	__stack_chk_fail@PLT
.L104:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	getch, .-getch
	.globl	getMillis_sinceMidnight
	.type	getMillis_sinceMidnight, @function
getMillis_sinceMidnight:
.LFB22:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -32[rbp]
	imul	rsi, rax, 1000
	mov	rcx, QWORD PTR -24[rbp]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	add	rax, rsi
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L107
	call	__stack_chk_fail@PLT
.L107:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	getMillis_sinceMidnight, .-getMillis_sinceMidnight
	.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	"145451883.c"
	.text
	.comm	orig_termios,60,4
	.global	x_field_min
	.section	.rodata
	.align	2
	.type	x_field_min, %object
	.size	x_field_min, 4
x_field_min:
	.word	16
	.global	x_field_max
	.align	2
	.type	x_field_max, %object
	.size	x_field_max, 4
x_field_max:
	.word	46
	.comm	screen_memory,2000,4
	.comm	obstacles,2000,4
	.comm	eat_pellets,2000,4
	.comm	screen_updated,4,4
	.global	game_points
	.bss
	.align	2
	.type	game_points, %object
	.size	game_points, 4
game_points:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012*** Game Over ***\000"
	.align	2
.LC1:
	.ascii	"\012.. %i\012\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 = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	set_conio_terminal_mode
	mov	r3, #16
	str	r3, [fp, #-48]
	mov	r3, #11
	str	r3, [fp, #-44]
	mov	r3, #40
	str	r3, [fp, #-28]
	mov	r3, #11
	str	r3, [fp, #-24]
	mov	r3, #1000
	str	r3, [fp, #-20]
	bl	getMillis_sinceMidnight
	mov	r3, r0
	str	r3, [fp, #-16]
	bl	init_obstacles
	bl	init_eat_pellets
	mov	r0, #32
	bl	clear_screen_memory
	ldr	r3, [fp, #-28]
	ldr	r1, [fp, #-24]
	mov	r2, #65
	mov	r0, r3
	bl	make_dot
	ldr	r3, [fp, #-48]
	ldr	r1, [fp, #-44]
	mov	r2, #79
	mov	r0, r3
	bl	make_dot
	bl	print_screen_memory_to_cli
	mov	r3, #0
	str	r3, [fp, #-52]
.L11:
	bl	get_pressed_key
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #1
	bne	.L2
	sub	lr, fp, #48
	mov	ip, sp
	sub	r3, fp, #44
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-48]
	mov	r2, #1
	mov	r1, #0
	mov	r0, lr
	bl	move_game_object
	b	.L3
.L2:
	ldr	r3, [fp, #-52]
	cmp	r3, #4
	bne	.L4
	sub	lr, fp, #76
	mov	ip, sp
	sub	r3, fp, #44
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-48]
	mov	r2, #1
	mov	r1, #2
	mov	r0, lr
	bl	move_game_object
	sub	ip, fp, #48
	sub	lr, fp, #76
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	b	.L3
.L4:
	ldr	r3, [fp, #-52]
	cmp	r3, #2
	bne	.L5
	sub	lr, fp, #76
	mov	ip, sp
	sub	r3, fp, #44
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-48]
	mov	r2, #1
	mov	r1, #3
	mov	r0, lr
	bl	move_game_object
	sub	ip, fp, #48
	sub	lr, fp, #76
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	b	.L3
.L5:
	ldr	r3, [fp, #-52]
	cmp	r3, #3
	bne	.L6
	sub	lr, fp, #76
	mov	ip, sp
	sub	r3, fp, #44
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-48]
	mov	r2, #1
	mov	r1, #1
	mov	r0, lr
	bl	move_game_object
	sub	ip, fp, #48
	sub	lr, fp, #76
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	b	.L3
.L6:
	ldr	r3, [fp, #-52]
	cmp	r3, #5
	beq	.L14
.L3:
	sub	ip, fp, #28
	mov	r2, sp
	sub	r3, fp, #16
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	sub	r3, fp, #28
	ldm	r3, {r1, r2, r3}
	mov	r0, ip
	bl	update_ghost_position
	add	lr, sp, #4
	sub	ip, fp, #28
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldr	r3, [ip]
	str	r3, [lr]
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	sub	r3, fp, #48
	ldm	r3, {r0, r1, r2, r3}
	bl	game_over
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	ldr	r0, .L15+4
	bl	puts
	b	.L7
.L8:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L9
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L11
.L9:
	mov	r0, #32
	bl	clear_screen_memory
	ldr	r3, [fp, #-48]
	ldr	r1, [fp, #-44]
	mov	r2, #79
	mov	r0, r3
	bl	make_dot
	ldr	r3, [fp, #-28]
	ldr	r1, [fp, #-24]
	mov	r2, #65
	mov	r0, r3
	bl	make_dot
	bl	print_screen_memory_to_cli
	ldr	r3, .L15+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+12
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	strb	r3, [fp, #-12]
	b	.L11
.L14:
	nop
.L7:
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC2
	.word	.LC0
	.word	game_points
	.word	.LC1
	.size	main, .-main
	.section	.rodata
	.align	2
.LC3:
	.ascii	"\033[1;1H\033[2J\000"
	.align	2
.LC4:
	.ascii	"\012\015\000"
	.text
	.align	2
	.global	print_screen_memory_to_cli
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_screen_memory_to_cli, %function
print_screen_memory_to_cli:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L30
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L18
.L28:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L19
.L27:
	ldr	r1, .L30+4
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L20
	mov	r0, #35
	bl	putchar
	b	.L21
.L20:
	ldr	r1, .L30+8
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L22
	ldr	r1, .L30+12
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L23
	cmp	r3, #5
	beq	.L24
	b	.L29
.L23:
	mov	r0, #46
	bl	putchar
	b	.L21
.L24:
	mov	r0, #43
	bl	putchar
	b	.L21
.L29:
	mov	r0, #32
	bl	putchar
	b	.L21
.L22:
	ldr	r1, .L30+8
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
.L21:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L19:
	ldr	r3, [fp, #-8]
	cmp	r3, #79
	ble	.L27
	ldr	r0, .L30+16
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L18:
	ldr	r3, [fp, #-12]
	cmp	r3, #24
	ble	.L28
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC3
	.word	obstacles
	.word	screen_memory
	.word	eat_pellets
	.word	.LC4
	.size	print_screen_memory_to_cli, .-print_screen_memory_to_cli
	.align	2
	.global	make_dot
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_dot, %function
make_dot:
	@ 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]
	mov	r3, r2
	strb	r3, [fp, #-13]
	ldr	r1, .L33
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r2, [fp, #-13]
	strb	r2, [r3]
	ldr	r3, .L33+4
	mov	r2, #1
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L34:
	.align	2
.L33:
	.word	screen_memory
	.word	screen_updated
	.size	make_dot, .-make_dot
	.align	2
	.global	clear_screen_memory
	.syntax unified
	.arm
	.fpu softvfp
	.type	clear_screen_memory, %function
clear_screen_memory:
	@ 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
	mov	r3, r0
	strb	r3, [fp, #-13]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L36
.L39:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L37
.L38:
	ldr	r1, .L40
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r2, [fp, #-13]
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L37:
	ldr	r3, [fp, #-8]
	cmp	r3, #79
	ble	.L38
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L36:
	ldr	r3, [fp, #-12]
	cmp	r3, #24
	ble	.L39
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L41:
	.align	2
.L40:
	.word	screen_memory
	.size	clear_screen_memory, .-clear_screen_memory
	.align	2
	.global	get_pressed_key
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_pressed_key, %function
get_pressed_key:
	@ 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, #0
	str	r3, [fp, #-8]
	bl	kbhit
	mov	r3, r0
	cmp	r3, #0
	beq	.L43
	bl	getch
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #27
	bne	.L44
	bl	getch
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #91
	bne	.L43
	bl	getch
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #65
	bne	.L45
	mov	r3, #1
	b	.L46
.L45:
	ldr	r3, [fp, #-8]
	cmp	r3, #66
	bne	.L47
	mov	r3, #4
	b	.L46
.L47:
	ldr	r3, [fp, #-8]
	cmp	r3, #68
	bne	.L48
	mov	r3, #2
	b	.L46
.L48:
	ldr	r3, [fp, #-8]
	cmp	r3, #67
	bne	.L43
	mov	r3, #3
	b	.L46
.L44:
	ldr	r3, [fp, #-8]
	cmp	r3, #113
	bne	.L43
	mov	r3, #5
	b	.L46
.L43:
	mov	r3, #0
.L46:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	get_pressed_key, .-get_pressed_key
	.align	2
	.global	move_game_object
	.syntax unified
	.arm
	.fpu softvfp
	.type	move_game_object, %function
move_game_object:
	@ args = 24, pretend = 8, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #8
	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, #8]
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L50
.L52:
	.word	.L55
	.word	.L54
	.word	.L53
	.word	.L51
.L55:
	ldr	r3, [fp, #12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L56
	mov	r3, #24
	str	r3, [fp, #-12]
.L56:
	ldr	r3, [fp, #8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	collision_with_obstacle
	mov	r3, r0
	cmp	r3, #0
	bne	.L66
	ldr	r3, [fp, #-12]
	str	r3, [fp, #12]
	b	.L66
.L54:
	ldr	r3, [fp, #8]
	add	r2, r3, #1
	ldr	r3, .L70
	smull	r1, r3, r2, r3
	asr	r1, r3, #5
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #12]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	collision_with_obstacle
	mov	r3, r0
	cmp	r3, #0
	bne	.L67
	mov	r2, #46
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	ble	.L59
	mov	r3, #16
	str	r3, [fp, #8]
	b	.L67
.L59:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #8]
	b	.L67
.L53:
	ldr	r3, [fp, #12]
	add	r2, r3, #1
	ldr	r3, .L70+4
	smull	r1, r3, r2, r3
	asr	r1, r3, #3
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	collision_with_obstacle
	mov	r3, r0
	cmp	r3, #0
	bne	.L68
	ldr	r3, [fp, #-12]
	str	r3, [fp, #12]
	b	.L68
.L51:
	ldr	r3, [fp, #8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #8]
	cmn	r3, #1
	bne	.L61
	mov	r3, #79
	str	r3, [fp, #-8]
.L61:
	ldr	r3, [fp, #12]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	collision_with_obstacle
	mov	r3, r0
	cmp	r3, #0
	bne	.L69
	mov	r2, #16
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	bge	.L63
	mov	r3, #46
	str	r3, [fp, #8]
	b	.L69
.L63:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #8]
	b	.L69
.L66:
	nop
	b	.L50
.L67:
	nop
	b	.L50
.L68:
	nop
	b	.L50
.L69:
	nop
.L50:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L64
	ldr	r3, [fp, #8]
	ldr	r2, [fp, #12]
	mov	r1, r2
	mov	r0, r3
	bl	collect_eat_pellets
.L64:
	ldr	r3, [fp, #-16]
	mov	lr, r3
	add	ip, fp, #8
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldr	r3, [ip]
	str	r3, [lr]
	ldr	r0, [fp, #-16]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #8
	bx	lr
.L71:
	.align	2
.L70:
	.word	1717986919
	.word	1374389535
	.size	move_game_object, .-move_game_object
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	update_ghost_position
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_ghost_position, %function
update_ghost_position:
	@ args = 24, pretend = 16, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-24]
	add	r0, fp, #8
	stm	r0, {r1, r2, r3}
	ldr	r3, .L82
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	getMillis_sinceMidnight
	str	r0, [fp, #-16]
	ldr	r3, [fp, #20]
	ldr	r2, [fp, #-16]
	sub	r2, r2, r3
	ldr	r3, [fp, #16]
	cmp	r2, r3
	ble	.L73
	bl	rand
	mov	r3, r0
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L74
.L76:
	.word	.L79
	.word	.L78
	.word	.L77
	.word	.L75
.L79:
	add	lr, fp, #8
	mov	ip, sp
	add	r3, fp, #12
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #8]
	mov	r2, #0
	mov	r1, #0
	mov	r0, lr
	bl	move_game_object
	b	.L74
.L78:
	sub	lr, fp, #52
	mov	ip, sp
	add	r3, fp, #12
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #8]
	mov	r2, #0
	mov	r1, #1
	mov	r0, lr
	bl	move_game_object
	add	ip, fp, #8
	sub	lr, fp, #52
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	b	.L74
.L77:
	sub	lr, fp, #52
	mov	ip, sp
	add	r3, fp, #12
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #8]
	mov	r2, #0
	mov	r1, #2
	mov	r0, lr
	bl	move_game_object
	add	ip, fp, #8
	sub	lr, fp, #52
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	b	.L74
.L75:
	sub	lr, fp, #52
	mov	ip, sp
	add	r3, fp, #12
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #8]
	mov	r2, #0
	mov	r1, #3
	mov	r0, lr
	bl	move_game_object
	add	ip, fp, #8
	sub	lr, fp, #52
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	nop
.L74:
	mov	r3, #1
	strb	r3, [fp, #24]
	bl	getMillis_sinceMidnight
	mov	r3, r0
	str	r3, [fp, #20]
	ldr	r3, [fp, #-24]
	mov	lr, r3
	add	ip, fp, #8
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldr	r3, [ip]
	str	r3, [lr]
	b	.L72
.L73:
	ldr	r3, [fp, #-24]
	mov	lr, r3
	add	ip, fp, #8
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldr	r3, [ip]
	str	r3, [lr]
.L72:
	ldr	r3, .L82
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L81
	bl	__stack_chk_fail
.L81:
	ldr	r0, [fp, #-24]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L83:
	.align	2
.L82:
	.word	.LC5
	.size	update_ghost_position, .-update_ghost_position
	.align	2
	.global	collision_with_obstacle
	.syntax unified
	.arm
	.fpu softvfp
	.type	collision_with_obstacle, %function
collision_with_obstacle:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r1, .L87
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L85
	mov	r3, #1
	b	.L86
.L85:
	mov	r3, #0
.L86:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L88:
	.align	2
.L87:
	.word	obstacles
	.size	collision_with_obstacle, .-collision_with_obstacle
	.align	2
	.global	collect_eat_pellets
	.syntax unified
	.arm
	.fpu softvfp
	.type	collect_eat_pellets, %function
collect_eat_pellets:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r1, .L92
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L92+4
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L92+4
	str	r3, [r2]
	ldr	r1, .L92
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L91
	ldr	r1, .L92
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L91:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L93:
	.align	2
.L92:
	.word	eat_pellets
	.word	game_points
	.size	collect_eat_pellets, .-collect_eat_pellets
	.section	.rodata
	.align	2
.LC6:
	.ascii	"r\000"
	.align	2
.LC7:
	.ascii	"obstacles.txt\000"
	.text
	.align	2
	.global	init_obstacles
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_obstacles, %function
init_obstacles:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r1, .L101
	ldr	r0, .L101+4
	bl	fopen
	str	r0, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L95
.L100:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L96
.L99:
	ldr	r0, [fp, #-8]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-17]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L97
	ldr	r1, .L101+8
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3]
	b	.L98
.L97:
	ldr	r1, .L101+8
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L98:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L96:
	ldr	r3, [fp, #-12]
	cmp	r3, #79
	ble	.L99
	ldr	r0, [fp, #-8]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-17]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L95:
	ldr	r3, [fp, #-16]
	cmp	r3, #24
	ble	.L100
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L102:
	.align	2
.L101:
	.word	.LC6
	.word	.LC7
	.word	obstacles
	.size	init_obstacles, .-init_obstacles
	.section	.rodata
	.align	2
.LC8:
	.ascii	"eat_pellets.txt\000"
	.text
	.align	2
	.global	init_eat_pellets
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_eat_pellets, %function
init_eat_pellets:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r1, .L111
	ldr	r0, .L111+4
	bl	fopen
	str	r0, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L104
.L110:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L105
.L109:
	ldr	r0, [fp, #-8]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-17]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L106
	ldr	r1, .L111+8
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3]
	b	.L107
.L106:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #53
	bne	.L108
	ldr	r1, .L111+8
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #5
	strb	r2, [r3]
	b	.L107
.L108:
	ldr	r1, .L111+8
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	add	r2, r1, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L107:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L105:
	ldr	r3, [fp, #-12]
	cmp	r3, #79
	ble	.L109
	ldr	r0, [fp, #-8]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-17]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L104:
	ldr	r3, [fp, #-16]
	cmp	r3, #24
	ble	.L110
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L112:
	.align	2
.L111:
	.word	.LC6
	.word	.LC8
	.word	eat_pellets
	.size	init_eat_pellets, .-init_eat_pellets
	.align	2
	.global	game_over
	.syntax unified
	.arm
	.fpu softvfp
	.type	game_over, %function
game_over:
	@ args = 40, pretend = 16, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	sub	sp, sp, #16
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #24]
	cmp	r2, r3
	bne	.L114
	ldr	r2, [fp, #8]
	ldr	r3, [fp, #28]
	cmp	r2, r3
	bne	.L114
	mov	r3, #1
	b	.L115
.L114:
	mov	r3, #0
.L115:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	add	sp, sp, #16
	bx	lr
	.size	game_over, .-game_over
	.align	2
	.global	reset_terminal_mode
	.syntax unified
	.arm
	.fpu softvfp
	.type	reset_terminal_mode, %function
reset_terminal_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r2, .L117
	mov	r1, #0
	mov	r0, #0
	bl	tcsetattr
	nop
	pop	{fp, pc}
.L118:
	.align	2
.L117:
	.word	orig_termios
	.size	reset_terminal_mode, .-reset_terminal_mode
	.section	.rodata
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	set_conio_terminal_mode
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_conio_terminal_mode, %function
set_conio_terminal_mode:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L121
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L121+4
	mov	r0, #0
	bl	tcgetattr
	ldr	r3, .L121+4
	sub	ip, fp, #68
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r0, .L121+8
	bl	atexit
	sub	r3, fp, #68
	mov	r0, r3
	bl	cfmakeraw
	sub	r3, fp, #68
	mov	r2, r3
	mov	r1, #0
	mov	r0, #0
	bl	tcsetattr
	nop
	ldr	r3, .L121
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L120
	bl	__stack_chk_fail
.L120:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L122:
	.align	2
.L121:
	.word	.LC9
	.word	orig_termios
	.word	reset_terminal_mode
	.size	set_conio_terminal_mode, .-set_conio_terminal_mode
	.section	.rodata
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	kbhit
	.syntax unified
	.arm
	.fpu softvfp
	.type	kbhit, %function
kbhit:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #160
	ldr	r3, .L128
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-144]
	mov	r3, #0
	str	r3, [fp, #-140]
	sub	r3, fp, #136
	str	r3, [fp, #-148]
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L124
.L125:
	ldr	r3, [fp, #-148]
	ldr	r2, [fp, #-152]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L124:
	ldr	r3, [fp, #-152]
	cmp	r3, #31
	bls	.L125
	ldr	r3, [fp, #-136]
	orr	r3, r3, #1
	str	r3, [fp, #-136]
	sub	r1, fp, #136
	sub	r3, fp, #144
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	mov	r0, #1
	bl	select
	mov	r3, r0
	ldr	r2, .L128
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L127
	bl	__stack_chk_fail
.L127:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L129:
	.align	2
.L128:
	.word	.LC10
	.size	kbhit, .-kbhit
	.section	.rodata
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getch
	.syntax unified
	.arm
	.fpu softvfp
	.type	getch, %function
getch:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L135
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #13
	mov	r2, #1
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L131
	ldr	r3, [fp, #-12]
	b	.L133
.L131:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
.L133:
	ldr	r2, .L135
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L134
	bl	__stack_chk_fail
.L134:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L136:
	.align	2
.L135:
	.word	.LC11
	.size	getch, .-getch
	.section	.rodata
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getMillis_sinceMidnight
	.syntax unified
	.arm
	.fpu softvfp
	.type	getMillis_sinceMidnight, %function
getMillis_sinceMidnight:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L140
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r1, r3
	ldr	r3, [fp, #-12]
	ldr	r2, .L140+4
	smull	r0, r2, r3, r2
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r3, r2, r3
	add	r3, r1, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, .L140
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L139
	bl	__stack_chk_fail
.L139:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L141:
	.align	2
.L140:
	.word	.LC12
	.word	274877907
	.size	getMillis_sinceMidnight, .-getMillis_sinceMidnight
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
