	.file	"117328727.c"
	.intel_syntax noprefix
	.text
	.globl	rows
	.bss
	.align 4
	.type	rows, @object
	.size	rows, 4
rows:
	.zero	4
	.globl	cols
	.align 4
	.type	cols, @object
	.size	cols, 4
cols:
	.zero	4
	.globl	rowNum
	.align 4
	.type	rowNum, @object
	.size	rowNum, 4
rowNum:
	.zero	4
	.globl	colNum
	.align 4
	.type	colNum, @object
	.size	colNum, 4
colNum:
	.zero	4
	.globl	destRow
	.align 4
	.type	destRow, @object
	.size	destRow, 4
destRow:
	.zero	4
	.globl	destCol
	.align 4
	.type	destCol, @object
	.size	destCol, 4
destCol:
	.zero	4
	.globl	path_to_origin
	.align 32
	.type	path_to_origin, @object
	.size	path_to_origin, 400
path_to_origin:
	.zero	400
	.globl	bot_direction
	.align 4
	.type	bot_direction, @object
	.size	bot_direction, 4
bot_direction:
	.zero	4
	.globl	grid_direction
	.align 4
	.type	grid_direction, @object
	.size	grid_direction, 4
grid_direction:
	.zero	4
	.text
	.globl	getRow
	.type	getRow, @function
getRow:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR rowNum[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getRow, .-getRow
	.globl	getCol
	.type	getCol, @function
getCol:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR colNum[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	getCol, .-getCol
	.globl	getDirection
	.type	getDirection, @function
getDirection:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR bot_direction[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	getDirection, .-getDirection
	.globl	set_grid
	.type	set_grid, @function
set_grid:
.LFB3:
	.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 -4[rbp]
	mov	DWORD PTR rows[rip], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR cols[rip], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	set_grid, .-set_grid
	.globl	set_direction
	.type	set_direction, @function
set_direction:
.LFB4:
	.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	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR bot_direction[rip], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	set_direction, .-set_direction
	.globl	check_loc
	.type	check_loc, @function
check_loc:
.LFB5:
	.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 rows[rip]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jge	.L10
	mov	eax, DWORD PTR cols[rip]
	sub	eax, 1
	cmp	DWORD PTR -8[rbp], eax
	jge	.L10
	mov	eax, 1
	jmp	.L11
.L10:
	mov	eax, 0
.L11:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	check_loc, .-check_loc
	.globl	update_bot_location
	.type	update_bot_location, @function
update_bot_location:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR rowNum[rip]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR colNum[rip]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR bot_direction[rip]
	test	eax, eax
	jne	.L13
	add	DWORD PTR -4[rbp], 1
	jmp	.L14
.L13:
	mov	eax, DWORD PTR bot_direction[rip]
	cmp	eax, 1
	jne	.L15
	add	DWORD PTR -8[rbp], 1
	jmp	.L14
.L15:
	mov	eax, DWORD PTR bot_direction[rip]
	cmp	eax, 2
	jne	.L16
	sub	DWORD PTR -4[rbp], 1
	jmp	.L14
.L16:
	mov	eax, DWORD PTR bot_direction[rip]
	cmp	eax, 3
	jne	.L14
	sub	DWORD PTR -8[rbp], 1
.L14:
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR rowNum[rip], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR colNum[rip], eax
	mov	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	update_bot_location, .-update_bot_location
	.globl	move_bot
	.type	move_bot, @function
move_bot:
.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, 24
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 13
	jne	.L19
	mov	eax, 0
	jmp	.L20
.L19:
	cmp	DWORD PTR -20[rbp], 11
	jne	.L21
	mov	eax, DWORD PTR bot_direction[rip]
	test	eax, eax
	jne	.L22
	mov	DWORD PTR bot_direction[rip], 1
	jmp	.L23
.L22:
	mov	eax, DWORD PTR bot_direction[rip]
	cmp	eax, 1
	jne	.L24
	mov	DWORD PTR bot_direction[rip], 2
	jmp	.L23
.L24:
	mov	eax, DWORD PTR bot_direction[rip]
	cmp	eax, 2
	jne	.L25
	mov	DWORD PTR bot_direction[rip], 3
	jmp	.L23
.L25:
	mov	eax, DWORD PTR bot_direction[rip]
	cmp	eax, 3
	jne	.L23
	mov	DWORD PTR bot_direction[rip], 0
	jmp	.L23
.L21:
	cmp	DWORD PTR -20[rbp], 12
	jne	.L26
	mov	eax, DWORD PTR bot_direction[rip]
	test	eax, eax
	jne	.L27
	mov	DWORD PTR bot_direction[rip], 3
	jmp	.L23
.L27:
	mov	eax, DWORD PTR bot_direction[rip]
	cmp	eax, 3
	jne	.L28
	mov	DWORD PTR bot_direction[rip], 2
	jmp	.L23
.L28:
	mov	eax, DWORD PTR bot_direction[rip]
	cmp	eax, 2
	jne	.L29
	mov	DWORD PTR bot_direction[rip], 1
	jmp	.L23
.L29:
	mov	eax, DWORD PTR bot_direction[rip]
	cmp	eax, 1
	jne	.L23
	mov	DWORD PTR bot_direction[rip], 0
	jmp	.L23
.L26:
	cmp	DWORD PTR -20[rbp], 10
	jne	.L23
	mov	eax, 0
	call	update_bot_location
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L20
.L23:
	mov	eax, 1
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	move_bot, .-move_bot
	.globl	follow_path
	.type	follow_path, @function
follow_path:
.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 -8[rbp], 0
	jmp	.L31
.L34:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	move_bot
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 1
	je	.L32
	mov	eax, 0
	jmp	.L33
.L32:
	add	DWORD PTR -8[rbp], 1
.L31:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L34
	mov	eax, 1
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	follow_path, .-follow_path
	.globl	reach_origin
	.type	reach_origin, @function
reach_origin:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR rowNum[rip]
	test	eax, eax
	jle	.L36
	mov	eax, DWORD PTR bot_direction[rip]
	cmp	eax, 3
	je	.L40
	mov	eax, DWORD PTR bot_direction[rip]
	test	eax, eax
	jne	.L38
	mov	edi, 12
	call	move_bot
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, path_to_origin[rip]
	mov	DWORD PTR [rdx+rax], 12
	add	DWORD PTR -4[rbp], 1
	jmp	.L40
.L38:
	mov	eax, DWORD PTR bot_direction[rip]
	cmp	eax, 1
	jne	.L39
	mov	edi, 12
	call	move_bot
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, path_to_origin[rip]
	mov	DWORD PTR [rdx+rax], 12
	add	DWORD PTR -4[rbp], 1
	mov	edi, 12
	call	move_bot
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, path_to_origin[rip]
	mov	DWORD PTR [rdx+rax], 12
	add	DWORD PTR -4[rbp], 1
	jmp	.L40
.L39:
	mov	eax, DWORD PTR bot_direction[rip]
	cmp	eax, 2
	jne	.L40
	mov	edi, 11
	call	move_bot
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, path_to_origin[rip]
	mov	DWORD PTR [rdx+rax], 11
	add	DWORD PTR -4[rbp], 1
	jmp	.L40
.L41:
	mov	edi, 10
	call	move_bot
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, path_to_origin[rip]
	mov	DWORD PTR [rdx+rax], 10
	add	DWORD PTR -4[rbp], 1
.L40:
	mov	eax, DWORD PTR rowNum[rip]
	test	eax, eax
	jg	.L41
	jmp	.L42
.L36:
	mov	eax, DWORD PTR rowNum[rip]
	test	eax, eax
	jns	.L42
	mov	eax, DWORD PTR bot_direction[rip]
	cmp	eax, 1
	je	.L46
	mov	eax, DWORD PTR bot_direction[rip]
	test	eax, eax
	jne	.L44
	mov	edi, 11
	call	move_bot
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, path_to_origin[rip]
	mov	DWORD PTR [rdx+rax], 11
	add	DWORD PTR -4[rbp], 1
	jmp	.L46
.L44:
	mov	eax, DWORD PTR bot_direction[rip]
	cmp	eax, 2
	jne	.L45
	mov	edi, 12
	call	move_bot
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, path_to_origin[rip]
	mov	DWORD PTR [rdx+rax], 12
	add	DWORD PTR -4[rbp], 1
	jmp	.L46
.L45:
	mov	eax, DWORD PTR bot_direction[rip]
	cmp	eax, 3
	jne	.L46
	mov	edi, 12
	call	move_bot
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, path_to_origin[rip]
	mov	DWORD PTR [rdx+rax], 12
	add	DWORD PTR -4[rbp], 1
	mov	edi, 12
	call	move_bot
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, path_to_origin[rip]
	mov	DWORD PTR [rdx+rax], 12
	add	DWORD PTR -4[rbp], 1
	jmp	.L46
.L47:
	mov	edi, 10
	call	move_bot
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, path_to_origin[rip]
	mov	DWORD PTR [rdx+rax], 10
	add	DWORD PTR -4[rbp], 1
.L46:
	mov	eax, DWORD PTR rowNum[rip]
	test	eax, eax
	js	.L47
.L42:
	mov	eax, DWORD PTR colNum[rip]
	test	eax, eax
	jle	.L48
	mov	eax, DWORD PTR bot_direction[rip]
	cmp	eax, 2
	je	.L52
	mov	eax, DWORD PTR bot_direction[rip]
	test	eax, eax
	jne	.L50
	mov	edi, 12
	call	move_bot
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, path_to_origin[rip]
	mov	DWORD PTR [rdx+rax], 12
	add	DWORD PTR -4[rbp], 1
	mov	edi, 12
	call	move_bot
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, path_to_origin[rip]
	mov	DWORD PTR [rdx+rax], 12
	add	DWORD PTR -4[rbp], 1
	jmp	.L52
.L50:
	mov	eax, DWORD PTR bot_direction[rip]
	cmp	eax, 1
	jne	.L51
	mov	edi, 11
	call	move_bot
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, path_to_origin[rip]
	mov	DWORD PTR [rdx+rax], 11
	add	DWORD PTR -4[rbp], 1
	jmp	.L52
.L51:
	mov	eax, DWORD PTR bot_direction[rip]
	cmp	eax, 3
	jne	.L52
	mov	edi, 12
	call	move_bot
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, path_to_origin[rip]
	mov	DWORD PTR [rdx+rax], 12
	add	DWORD PTR -4[rbp], 1
	jmp	.L52
.L53:
	mov	edi, 10
	call	move_bot
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, path_to_origin[rip]
	mov	DWORD PTR [rdx+rax], 10
	add	DWORD PTR -4[rbp], 1
.L52:
	mov	eax, DWORD PTR colNum[rip]
	test	eax, eax
	jg	.L53
	jmp	.L54
.L48:
	mov	eax, DWORD PTR colNum[rip]
	test	eax, eax
	jns	.L54
	mov	eax, DWORD PTR bot_direction[rip]
	test	eax, eax
	je	.L58
	mov	eax, DWORD PTR bot_direction[rip]
	cmp	eax, 1
	jne	.L56
	mov	edi, 12
	call	move_bot
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, path_to_origin[rip]
	mov	DWORD PTR [rdx+rax], 12
	add	DWORD PTR -4[rbp], 1
	jmp	.L58
.L56:
	mov	eax, DWORD PTR bot_direction[rip]
	cmp	eax, 2
	jne	.L57
	mov	edi, 12
	call	move_bot
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, path_to_origin[rip]
	mov	DWORD PTR [rdx+rax], 12
	add	DWORD PTR -4[rbp], 1
	mov	edi, 12
	call	move_bot
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, path_to_origin[rip]
	mov	DWORD PTR [rdx+rax], 12
	add	DWORD PTR -4[rbp], 1
	jmp	.L58
.L57:
	mov	eax, DWORD PTR bot_direction[rip]
	cmp	eax, 3
	jne	.L58
	mov	edi, 11
	call	move_bot
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, path_to_origin[rip]
	mov	DWORD PTR [rdx+rax], 11
	add	DWORD PTR -4[rbp], 1
	jmp	.L58
.L59:
	mov	edi, 10
	call	move_bot
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, path_to_origin[rip]
	mov	DWORD PTR [rdx+rax], 10
	add	DWORD PTR -4[rbp], 1
.L58:
	mov	eax, DWORD PTR colNum[rip]
	test	eax, eax
	js	.L59
.L54:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	reach_origin, .-reach_origin
	.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	"117328727.c"
	.text
	.comm	rows,4,4
	.comm	cols,4,4
	.global	rowNum
	.bss
	.align	2
	.type	rowNum, %object
	.size	rowNum, 4
rowNum:
	.space	4
	.global	colNum
	.align	2
	.type	colNum, %object
	.size	colNum, 4
colNum:
	.space	4
	.global	destRow
	.align	2
	.type	destRow, %object
	.size	destRow, 4
destRow:
	.space	4
	.global	destCol
	.align	2
	.type	destCol, %object
	.size	destCol, 4
destCol:
	.space	4
	.comm	path_to_origin,400,4
	.comm	bot_direction,4,4
	.comm	grid_direction,4,4
	.text
	.align	2
	.global	getRow
	.syntax unified
	.arm
	.fpu softvfp
	.type	getRow, %function
getRow:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L4:
	.align	2
.L3:
	.word	rowNum
	.size	getRow, .-getRow
	.align	2
	.global	getCol
	.syntax unified
	.arm
	.fpu softvfp
	.type	getCol, %function
getCol:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L7
	ldr	r3, [r3]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L8:
	.align	2
.L7:
	.word	colNum
	.size	getCol, .-getCol
	.align	2
	.global	getDirection
	.syntax unified
	.arm
	.fpu softvfp
	.type	getDirection, %function
getDirection:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L12:
	.align	2
.L11:
	.word	bot_direction
	.size	getDirection, .-getDirection
	.align	2
	.global	set_grid
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_grid, %function
set_grid:
	@ 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	r2, .L14
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r2, .L14+4
	ldr	r3, [fp, #-12]
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L15:
	.align	2
.L14:
	.word	rows
	.word	cols
	.size	set_grid, .-set_grid
	.align	2
	.global	set_direction
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_direction, %function
set_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]
	ldr	r2, .L17
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L18:
	.align	2
.L17:
	.word	bot_direction
	.size	set_direction, .-set_direction
	.align	2
	.global	check_loc
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_loc, %function
check_loc:
	@ 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	r3, .L22
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bge	.L20
	ldr	r3, .L22+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L20
	mov	r3, #1
	b	.L21
.L20:
	mov	r3, #0
.L21:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L23:
	.align	2
.L22:
	.word	rows
	.word	cols
	.size	check_loc, .-check_loc
	.align	2
	.global	update_bot_location
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_bot_location, %function
update_bot_location:
	@ 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
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, .L30+4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L30+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L25
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L26
.L25:
	ldr	r3, .L30+8
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L27
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L26
.L27:
	ldr	r3, .L30+8
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L28
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L26
.L28:
	ldr	r3, .L30+8
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L26
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L26:
	ldr	r2, .L30
	ldr	r3, [fp, #-12]
	str	r3, [r2]
	ldr	r2, .L30+4
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	mov	r3, #1
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L31:
	.align	2
.L30:
	.word	rowNum
	.word	colNum
	.word	bot_direction
	.size	update_bot_location, .-update_bot_location
	.align	2
	.global	move_bot
	.syntax unified
	.arm
	.fpu softvfp
	.type	move_bot, %function
move_bot:
	@ 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]
	ldr	r3, [fp, #-16]
	cmp	r3, #13
	bne	.L33
	mov	r3, #0
	b	.L34
.L33:
	ldr	r3, [fp, #-16]
	cmp	r3, #11
	bne	.L35
	ldr	r3, .L44
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L36
	ldr	r3, .L44
	mov	r2, #1
	str	r2, [r3]
	b	.L37
.L36:
	ldr	r3, .L44
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L38
	ldr	r3, .L44
	mov	r2, #2
	str	r2, [r3]
	b	.L37
.L38:
	ldr	r3, .L44
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L39
	ldr	r3, .L44
	mov	r2, #3
	str	r2, [r3]
	b	.L37
.L39:
	ldr	r3, .L44
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L37
	ldr	r3, .L44
	mov	r2, #0
	str	r2, [r3]
	b	.L37
.L35:
	ldr	r3, [fp, #-16]
	cmp	r3, #12
	bne	.L40
	ldr	r3, .L44
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L41
	ldr	r3, .L44
	mov	r2, #3
	str	r2, [r3]
	b	.L37
.L41:
	ldr	r3, .L44
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L42
	ldr	r3, .L44
	mov	r2, #2
	str	r2, [r3]
	b	.L37
.L42:
	ldr	r3, .L44
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L43
	ldr	r3, .L44
	mov	r2, #1
	str	r2, [r3]
	b	.L37
.L43:
	ldr	r3, .L44
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L37
	ldr	r3, .L44
	mov	r2, #0
	str	r2, [r3]
	b	.L37
.L40:
	ldr	r3, [fp, #-16]
	cmp	r3, #10
	bne	.L37
	bl	update_bot_location
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	b	.L34
.L37:
	mov	r3, #1
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	bot_direction
	.size	move_bot, .-move_bot
	.align	2
	.global	follow_path
	.syntax unified
	.arm
	.fpu softvfp
	.type	follow_path, %function
follow_path:
	@ 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	r3, #0
	str	r3, [fp, #-12]
	b	.L47
.L50:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	move_bot
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	beq	.L48
	mov	r3, #0
	b	.L49
.L48:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L47:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L50
	mov	r3, #1
.L49:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	follow_path, .-follow_path
	.align	2
	.global	reach_origin
	.syntax unified
	.arm
	.fpu softvfp
	.type	reach_origin, %function
reach_origin:
	@ 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]
	ldr	r3, .L77
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L52
	ldr	r3, .L77+4
	ldr	r3, [r3]
	cmp	r3, #3
	beq	.L56
	ldr	r3, .L77+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L54
	mov	r0, #12
	bl	move_bot
	ldr	r2, .L77+8
	ldr	r3, [fp, #-8]
	mov	r1, #12
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L56
.L54:
	ldr	r3, .L77+4
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L55
	mov	r0, #12
	bl	move_bot
	ldr	r2, .L77+8
	ldr	r3, [fp, #-8]
	mov	r1, #12
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	mov	r0, #12
	bl	move_bot
	ldr	r2, .L77+8
	ldr	r3, [fp, #-8]
	mov	r1, #12
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L56
.L55:
	ldr	r3, .L77+4
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L56
	mov	r0, #11
	bl	move_bot
	ldr	r2, .L77+8
	ldr	r3, [fp, #-8]
	mov	r1, #11
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L56
.L57:
	mov	r0, #10
	bl	move_bot
	ldr	r2, .L77+8
	ldr	r3, [fp, #-8]
	mov	r1, #10
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L56:
	ldr	r3, .L77
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L57
	b	.L58
.L52:
	ldr	r3, .L77
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L58
	ldr	r3, .L77+4
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L62
	ldr	r3, .L77+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L60
	mov	r0, #11
	bl	move_bot
	ldr	r2, .L77+8
	ldr	r3, [fp, #-8]
	mov	r1, #11
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L62
.L60:
	ldr	r3, .L77+4
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L61
	mov	r0, #12
	bl	move_bot
	ldr	r2, .L77+8
	ldr	r3, [fp, #-8]
	mov	r1, #12
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L62
.L61:
	ldr	r3, .L77+4
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L62
	mov	r0, #12
	bl	move_bot
	ldr	r2, .L77+8
	ldr	r3, [fp, #-8]
	mov	r1, #12
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	mov	r0, #12
	bl	move_bot
	ldr	r2, .L77+8
	ldr	r3, [fp, #-8]
	mov	r1, #12
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L62
.L63:
	mov	r0, #10
	bl	move_bot
	ldr	r2, .L77+8
	ldr	r3, [fp, #-8]
	mov	r1, #10
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L62:
	ldr	r3, .L77
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L63
.L58:
	ldr	r3, .L77+12
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L64
	ldr	r3, .L77+4
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L68
	ldr	r3, .L77+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L66
	mov	r0, #12
	bl	move_bot
	ldr	r2, .L77+8
	ldr	r3, [fp, #-8]
	mov	r1, #12
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	mov	r0, #12
	bl	move_bot
	ldr	r2, .L77+8
	ldr	r3, [fp, #-8]
	mov	r1, #12
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L68
.L66:
	ldr	r3, .L77+4
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L67
	mov	r0, #11
	bl	move_bot
	ldr	r2, .L77+8
	ldr	r3, [fp, #-8]
	mov	r1, #11
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L68
.L67:
	ldr	r3, .L77+4
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L68
	mov	r0, #12
	bl	move_bot
	ldr	r2, .L77+8
	ldr	r3, [fp, #-8]
	mov	r1, #12
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L68
.L69:
	mov	r0, #10
	bl	move_bot
	ldr	r2, .L77+8
	ldr	r3, [fp, #-8]
	mov	r1, #10
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L68:
	ldr	r3, .L77+12
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L69
	b	.L70
.L64:
	ldr	r3, .L77+12
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L70
	ldr	r3, .L77+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L74
	ldr	r3, .L77+4
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L72
	mov	r0, #12
	bl	move_bot
	ldr	r2, .L77+8
	ldr	r3, [fp, #-8]
	mov	r1, #12
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L74
.L72:
	ldr	r3, .L77+4
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L73
	mov	r0, #12
	bl	move_bot
	ldr	r2, .L77+8
	ldr	r3, [fp, #-8]
	mov	r1, #12
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	mov	r0, #12
	bl	move_bot
	ldr	r2, .L77+8
	ldr	r3, [fp, #-8]
	mov	r1, #12
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L74
.L73:
	ldr	r3, .L77+4
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L74
	mov	r0, #11
	bl	move_bot
	ldr	r2, .L77+8
	ldr	r3, [fp, #-8]
	mov	r1, #11
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L74
.L75:
	mov	r0, #10
	bl	move_bot
	ldr	r2, .L77+8
	ldr	r3, [fp, #-8]
	mov	r1, #10
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L74:
	ldr	r3, .L77+12
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L75
.L70:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L78:
	.align	2
.L77:
	.word	rowNum
	.word	bot_direction
	.word	path_to_origin
	.word	colNum
	.size	reach_origin, .-reach_origin
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
