	.file	"266550.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"For 10x10 board, enter 1\nFor 15x15 board, enter 2"
.LC1:
	.string	"%d"
.LC2:
	.string	"Please enter 1 or 2: "
	.align 8
.LC3:
	.string	"Dices rolled to choose first player."
	.align 8
.LC4:
	.string	"Player's dice : %d --- Computer's dice : %d\n"
.LC5:
	.string	"Player will play first."
.LC6:
	.string	"Computer will play first."
.LC7:
	.string	"\n"
.LC8:
	.string	"TURN : PLAYER"
.LC9:
	.string	"TURN : COMPUTER"
	.align 8
.LC10:
	.string	"Do you want to continue to play (Y/y: Yes, N/n: No):"
.LC11:
	.string	"%c"
	.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
	sub	rsp, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -72[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -68[rbp], 0
	mov	DWORD PTR -64[rbp], 0
	mov	DWORD PTR -60[rbp], 1
	mov	DWORD PTR -56[rbp], 1
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -44[rbp], 1
	mov	DWORD PTR -40[rbp], 1
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	BYTE PTR -73[rbp], 89
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -72[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L2
.L3:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -72[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L2:
	mov	eax, DWORD PTR -72[rbp]
	test	eax, eax
	jle	.L3
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, 2
	jg	.L3
	nop
.L4:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L4
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, 1
	jne	.L5
	mov	DWORD PTR -36[rbp], 10
	jmp	.L6
.L5:
	mov	DWORD PTR -36[rbp], 15
.L6:
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	mov	DWORD PTR -64[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	mov	DWORD PTR -48[rbp], eax
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, edx
	mov	edi, eax
	call	create2Darray
	mov	QWORD PTR -16[rbp], rax
	mov	edx, DWORD PTR -36[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	initializeBoard
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	initializeSnakesLadders
	mov	eax, DWORD PTR -36[rbp]
	and	eax, 1
	test	eax, eax
	je	.L7
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	mov	DWORD PTR -24[rbp], eax
.L7:
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 715827883
	shr	rax, 32
	mov	esi, edx
	sar	esi, 31
	mov	ecx, eax
	sub	ecx, esi
	mov	eax, ecx
	add	eax, eax
	add	eax, ecx
	add	eax, eax
	mov	ecx, edx
	sub	ecx, eax
	lea	eax, 1[rcx]
	mov	DWORD PTR -32[rbp], eax
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 715827883
	shr	rax, 32
	mov	esi, edx
	sar	esi, 31
	mov	ecx, eax
	sub	ecx, esi
	mov	eax, ecx
	add	eax, eax
	add	eax, ecx
	add	eax, eax
	mov	ecx, edx
	sub	ecx, eax
	lea	eax, 1[rcx]
	mov	DWORD PTR -72[rbp], eax
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L8
.L9:
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 715827883
	shr	rax, 32
	mov	esi, edx
	sar	esi, 31
	mov	ecx, eax
	sub	ecx, esi
	mov	eax, ecx
	add	eax, eax
	add	eax, ecx
	add	eax, eax
	mov	ecx, edx
	sub	ecx, eax
	lea	eax, 1[rcx]
	mov	DWORD PTR -32[rbp], eax
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 715827883
	shr	rax, 32
	mov	esi, edx
	sar	esi, 31
	mov	ecx, eax
	sub	ecx, esi
	mov	eax, ecx
	add	eax, eax
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	ecx, edx
	lea	eax, 1[rcx]
	mov	DWORD PTR -72[rbp], eax
.L8:
	mov	eax, DWORD PTR -72[rbp]
	cmp	DWORD PTR -32[rbp], eax
	je	.L9
	mov	edx, DWORD PTR -72[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -72[rbp]
	cmp	DWORD PTR -32[rbp], eax
	jle	.L10
	mov	DWORD PTR -28[rbp], 700
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L11
.L10:
	mov	DWORD PTR -28[rbp], 701
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L11:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	DWORD PTR -32[rbp], 0
	mov	BYTE PTR -73[rbp], 89
	jmp	.L12
.L18:
	add	DWORD PTR -32[rbp], 1
	cmp	DWORD PTR -28[rbp], 700
	jne	.L13
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	edi, DWORD PTR -40[rbp]
	lea	r9, -60[rbp]
	lea	r8, -64[rbp]
	lea	rcx, -68[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	esi, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -16[rbp]
	sub	rsp, 8
	push	rdi
	lea	rdi, -56[rbp]
	push	rdi
	push	700
	mov	rdi, rax
	call	move
	add	rsp, 32
	mov	DWORD PTR -28[rbp], 701
	jmp	.L14
.L13:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	edi, DWORD PTR -56[rbp]
	lea	r9, -44[rbp]
	lea	r8, -48[rbp]
	lea	rcx, -52[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	esi, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -16[rbp]
	sub	rsp, 8
	push	rdi
	lea	rdi, -40[rbp]
	push	rdi
	push	701
	mov	rdi, rax
	call	move
	add	rsp, 32
	mov	DWORD PTR -28[rbp], 700
.L14:
	mov	edx, DWORD PTR -36[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	displayBoard
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -73[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	nop
.L15:
	call	getchar@PLT
	cmp	eax, 10
	jne	.L15
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L12:
	movzx	eax, BYTE PTR -73[rbp]
	cmp	al, 89
	je	.L16
	movzx	eax, BYTE PTR -73[rbp]
	cmp	al, 121
	jne	.L17
.L16:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 700
	je	.L17
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 701
	jne	.L18
.L17:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 700
	jne	.L19
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	mov	edi, 700
	call	displayResults
	jmp	.L20
.L19:
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	mov	edi, 701
	call	displayResults
.L20:
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	initializeSnakesLadders
	.type	initializeSnakesLadders, @function
initializeSnakesLadders:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	cmp	DWORD PTR -12[rbp], 10
	jne	.L24
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, 3
	mov	esi, 2
	mov	rdi, rax
	call	locateLadder
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, 5
	mov	esi, 1
	mov	rdi, rax
	call	locateLadder
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	locateCurlySnake
	jmp	.L26
.L24:
	cmp	DWORD PTR -12[rbp], 15
	jne	.L26
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, 3
	mov	esi, 2
	mov	rdi, rax
	call	locateLadder
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, 5
	mov	esi, 1
	mov	rdi, rax
	call	locateLadder
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, 6
	mov	esi, 1
	mov	rdi, rax
	call	locateLadder
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, 9
	mov	esi, 1
	mov	rdi, rax
	call	locateStraightSnake
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	locateCurlySnake
.L26:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	initializeSnakesLadders, .-initializeSnakesLadders
	.globl	checkSnakes
	.type	checkSnakes, @function
checkSnakes:
.LFB8:
	.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	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -44[rbp], ecx
	mov	DWORD PTR -48[rbp], r8d
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 601
	jne	.L28
	mov	DWORD PTR -8[rbp], 0
	jmp	.L29
.L33:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L30
.L32:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 602
	jne	.L31
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
.L31:
	add	DWORD PTR -4[rbp], 1
.L30:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L32
	add	DWORD PTR -8[rbp], 1
.L29:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jl	.L33
	jmp	.L46
.L28:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 611
	jne	.L35
	mov	DWORD PTR -8[rbp], 0
	jmp	.L36
.L40:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L37
.L39:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 612
	jne	.L38
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
.L38:
	add	DWORD PTR -4[rbp], 1
.L37:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L39
	add	DWORD PTR -8[rbp], 1
.L36:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jl	.L40
	jmp	.L46
.L35:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 621
	jne	.L46
	mov	DWORD PTR -8[rbp], 0
	jmp	.L41
.L45:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L42
.L44:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 622
	jne	.L43
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
.L43:
	add	DWORD PTR -4[rbp], 1
.L42:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L44
	add	DWORD PTR -8[rbp], 1
.L41:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jl	.L45
.L46:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	checkSnakes, .-checkSnakes
	.globl	checkLadders
	.type	checkLadders, @function
checkLadders:
.LFB9:
	.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	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -44[rbp], ecx
	mov	DWORD PTR -48[rbp], r8d
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 502
	jne	.L53
	mov	DWORD PTR -4[rbp], 1
	jmp	.L49
.L51:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 501
	je	.L54
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
.L49:
	cmp	DWORD PTR -4[rbp], 0
	jg	.L51
	jmp	.L53
.L54:
	nop
.L53:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	checkLadders, .-checkLadders
	.section	.rodata
.LC12:
	.string	"Dice1 : %d --- Dice2 : %d\n"
	.text
	.globl	move
	.type	move, @function
move:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	QWORD PTR -40[rbp], rcx
	mov	QWORD PTR -48[rbp], r8
	mov	QWORD PTR -56[rbp], r9
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	rax, QWORD PTR 24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 715827883
	shr	rax, 32
	mov	esi, edx
	sar	esi, 31
	mov	ecx, eax
	sub	ecx, esi
	mov	eax, ecx
	add	eax, eax
	add	eax, ecx
	add	eax, eax
	mov	ecx, edx
	sub	ecx, eax
	lea	eax, 1[rcx]
	mov	DWORD PTR -12[rbp], eax
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 715827883
	shr	rax, 32
	mov	esi, edx
	sar	esi, 31
	mov	ecx, eax
	sub	ecx, esi
	mov	eax, ecx
	add	eax, eax
	add	eax, ecx
	add	eax, eax
	mov	ecx, edx
	sub	ecx, eax
	lea	eax, 1[rcx]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jne	.L56
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	jne	.L57
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L58
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, 1
	cmp	DWORD PTR -32[rbp], eax
	jg	.L59
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 1
	jmp	.L60
.L59:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 2
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L60
.L58:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L60
.L57:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L60
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, 1
	cmp	DWORD PTR -32[rbp], eax
	jg	.L61
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 1
	jmp	.L60
.L61:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 1
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -28[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, ecx
	sub	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L60
.L56:
	cmp	DWORD PTR -12[rbp], 5
	jne	.L62
	cmp	DWORD PTR -8[rbp], 6
	je	.L63
.L62:
	cmp	DWORD PTR -12[rbp], 6
	jne	.L64
	cmp	DWORD PTR -8[rbp], 5
	jne	.L64
.L63:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L65
.L75:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	jne	.L66
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	jg	.L67
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jg	.L68
	mov	eax, DWORD PTR -32[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L69
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 0
	jmp	.L71
.L69:
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 0
	jmp	.L71
.L68:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 2
	jmp	.L67
.L66:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jns	.L67
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jg	.L72
	mov	eax, DWORD PTR -32[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L73
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 0
	jmp	.L71
.L73:
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 0
	jmp	.L71
.L72:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 1
.L67:
	add	DWORD PTR -16[rbp], 1
.L65:
	cmp	DWORD PTR -16[rbp], 13
	jle	.L75
	jmp	.L60
.L71:
	jmp	.L60
.L64:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	jne	.L76
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L77
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jg	.L78
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 0
	jmp	.L60
.L78:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 2
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -28[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	add	ecx, eax
	mov	eax, DWORD PTR -8[rbp]
	add	eax, ecx
	sub	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L60
.L77:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -8[rbp]
	add	edx, ecx
	add	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L60
.L76:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -8[rbp]
	add	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L79
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jg	.L80
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 0
	jmp	.L60
.L80:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 1
	mov	eax, DWORD PTR -4[rbp]
	not	eax
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L60
.L79:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -8[rbp]
	add	ecx, edx
	sub	eax, ecx
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
.L60:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 700
	je	.L81
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 701
	jne	.L82
.L81:
	mov	rax, QWORD PTR 24[rbp]
	mov	edx, DWORD PTR 32[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L83
.L82:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR 24[rbp]
	mov	DWORD PTR [rax], edx
.L83:
	mov	edi, DWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rsi, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	checkSnakes
	mov	edi, DWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rsi, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	checkLadders
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR 16[rbp]
	mov	DWORD PTR [rdx], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	move, .-move
	.section	.rodata
	.align 8
.LC13:
	.string	"Exception happened when map creating."
	.text
	.globl	locateCurlySnake
	.type	locateCurlySnake, @function
locateCurlySnake:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	DWORD PTR -52[rbp], ecx
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 600
	jmp	.L85
.L90:
	call	rand@PLT
	mov	edx, DWORD PTR -48[rbp]
	lea	ecx, -4[rdx]
	cdq
	idiv	ecx
	mov	DWORD PTR -8[rbp], edx
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -28[rbp], eax
	call	rand@PLT
	mov	edx, DWORD PTR -52[rbp]
	lea	ecx, -2[rdx]
	cdq
	idiv	ecx
	mov	DWORD PTR -4[rbp], edx
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -24[rbp], eax
	jmp	.L86
.L89:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L87
	add	DWORD PTR -28[rbp], 1
	mov	eax, DWORD PTR -48[rbp]
	sub	eax, 4
	cmp	DWORD PTR -28[rbp], eax
	jl	.L87
	mov	DWORD PTR -20[rbp], 1
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -28[rbp], eax
.L87:
	cmp	DWORD PTR -20[rbp], 1
	jne	.L86
	sub	DWORD PTR -28[rbp], 1
	cmp	DWORD PTR -28[rbp], 0
	jns	.L86
	mov	DWORD PTR -20[rbp], 0
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	jne	.L88
	sub	DWORD PTR -24[rbp], 1
	cmp	DWORD PTR -24[rbp], 0
	jns	.L88
	mov	DWORD PTR -16[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -24[rbp], eax
.L88:
	cmp	DWORD PTR -16[rbp], 1
	jne	.L86
	add	DWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	sub	eax, 2
	cmp	DWORD PTR -24[rbp], eax
	jl	.L86
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L86:
	mov	edx, DWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	controlCurlySnake
	cmp	eax, 1
	jne	.L89
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	esi, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	drawCurlySnake
	add	DWORD PTR -12[rbp], 10
	sub	DWORD PTR -44[rbp], 1
.L85:
	cmp	DWORD PTR -44[rbp], 0
	jg	.L90
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	locateCurlySnake, .-locateCurlySnake
	.globl	controlCurlySnake
	.type	controlCurlySnake, @function
controlCurlySnake:
.LFB12:
	.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	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L92
.L95:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 300
	jle	.L93
	mov	eax, 0
	jmp	.L94
.L93:
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -28[rbp], 1
.L92:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L95
	sub	DWORD PTR -28[rbp], 1
	mov	DWORD PTR -4[rbp], 0
	jmp	.L96
.L98:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 300
	jle	.L97
	mov	eax, 0
	jmp	.L94
.L97:
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -32[rbp], 1
.L96:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L98
	sub	DWORD PTR -32[rbp], 1
	mov	DWORD PTR -4[rbp], 0
	jmp	.L99
.L101:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 300
	jle	.L100
	mov	eax, 0
	jmp	.L94
.L100:
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -28[rbp], 1
.L99:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L101
	mov	eax, 1
.L94:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	controlCurlySnake, .-controlCurlySnake
	.globl	drawCurlySnake
	.type	drawCurlySnake, @function
drawCurlySnake:
.LFB13:
	.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	DWORD PTR -36[rbp], ecx
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR -36[rbp]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -28[rbp], 1
	mov	DWORD PTR -4[rbp], 1
	jmp	.L103
.L104:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -28[rbp], 1
.L103:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L104
	sub	DWORD PTR -28[rbp], 1
	mov	DWORD PTR -4[rbp], 0
	jmp	.L105
.L106:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -32[rbp], 1
.L105:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L106
	sub	DWORD PTR -32[rbp], 1
	mov	DWORD PTR -4[rbp], 0
	jmp	.L107
.L108:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -28[rbp], 1
.L107:
	cmp	DWORD PTR -4[rbp], 1
	jle	.L108
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR -36[rbp]
	add	edx, 2
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	drawCurlySnake, .-drawCurlySnake
	.globl	locateStraightSnake
	.type	locateStraightSnake, @function
locateStraightSnake:
.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 -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	DWORD PTR -20[rbp], ecx
	mov	DWORD PTR -24[rbp], r8d
	mov	edi, DWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r9d, 620
	mov	r8d, edi
	mov	rdi, rax
	call	locateStraight
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	locateStraightSnake, .-locateStraightSnake
	.globl	locateLadder
	.type	locateLadder, @function
locateLadder:
.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
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	DWORD PTR -20[rbp], ecx
	mov	DWORD PTR -24[rbp], r8d
	mov	edi, DWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	esi, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r9d, 500
	mov	r8d, edi
	mov	rdi, rax
	call	locateStraight
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	locateLadder, .-locateLadder
	.globl	locateStraight
	.type	locateStraight, @function
locateStraight:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	DWORD PTR -52[rbp], ecx
	mov	DWORD PTR -56[rbp], r8d
	mov	DWORD PTR -60[rbp], r9d
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L112
.L117:
	call	rand@PLT
	cdq
	idiv	DWORD PTR -52[rbp]
	mov	DWORD PTR -8[rbp], edx
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -24[rbp], eax
	call	rand@PLT
	mov	edx, DWORD PTR -56[rbp]
	sub	edx, DWORD PTR -48[rbp]
	lea	ecx, 1[rdx]
	cdq
	idiv	ecx
	mov	DWORD PTR -4[rbp], edx
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -20[rbp], eax
	jmp	.L113
.L116:
	cmp	DWORD PTR -16[rbp], 0
	jne	.L114
	add	DWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L114
	mov	DWORD PTR -16[rbp], 1
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -24[rbp], eax
.L114:
	cmp	DWORD PTR -16[rbp], 1
	jne	.L113
	sub	DWORD PTR -24[rbp], 1
	cmp	DWORD PTR -24[rbp], 0
	jns	.L113
	mov	DWORD PTR -16[rbp], 0
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jne	.L115
	sub	DWORD PTR -20[rbp], 1
	cmp	DWORD PTR -20[rbp], 0
	jns	.L115
	mov	DWORD PTR -12[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -20[rbp], eax
.L115:
	cmp	DWORD PTR -12[rbp], 1
	jne	.L113
	add	DWORD PTR -20[rbp], 1
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -48[rbp]
	add	eax, edx
	cmp	DWORD PTR -56[rbp], eax
	jge	.L113
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L113:
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	esi, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	controlStraight
	cmp	eax, 1
	jne	.L116
	mov	edi, DWORD PTR -60[rbp]
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	esi, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	drawStraight
	sub	DWORD PTR -44[rbp], 1
.L112:
	cmp	DWORD PTR -44[rbp], 0
	jg	.L117
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	locateStraight, .-locateStraight
	.globl	controlStraight
	.type	controlStraight, @function
controlStraight:
.LFB17:
	.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	DWORD PTR -36[rbp], ecx
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L119
.L122:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 300
	jle	.L120
	mov	eax, 0
	jmp	.L121
.L120:
	add	DWORD PTR -4[rbp], 1
	add	DWORD PTR -36[rbp], 1
.L119:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L122
	mov	eax, 1
.L121:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	controlStraight, .-controlStraight
	.globl	drawStraight
	.type	drawStraight, @function
drawStraight:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	DWORD PTR -20[rbp], ecx
	mov	DWORD PTR -24[rbp], r8d
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR -24[rbp]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -20[rbp], 1
	sub	DWORD PTR -12[rbp], 1
	jmp	.L124
.L125:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR [rdx], eax
	sub	DWORD PTR -12[rbp], 1
	add	DWORD PTR -20[rbp], 1
.L124:
	cmp	DWORD PTR -12[rbp], 1
	jg	.L125
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR -24[rbp]
	add	edx, 2
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	drawStraight, .-drawStraight
	.globl	initializeBoard
	.type	initializeBoard, @function
initializeBoard:
.LFB19:
	.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	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 1
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, 1
	mov	DWORD PTR -16[rbp], eax
	jmp	.L127
.L134:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L128
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -4[rbp], 1
	jmp	.L129
.L130:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -8[rbp], 1
	add	DWORD PTR -12[rbp], 1
.L129:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L130
	jmp	.L131
.L128:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -4[rbp], 0
	jmp	.L132
.L133:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -8[rbp], 1
	sub	DWORD PTR -12[rbp], 1
.L132:
	cmp	DWORD PTR -12[rbp], 0
	jns	.L133
.L131:
	sub	DWORD PTR -16[rbp], 1
.L127:
	cmp	DWORD PTR -16[rbp], 0
	jns	.L134
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	initializeBoard, .-initializeBoard
	.section	.rodata
.LC14:
	.string	"%3d "
.LC15:
	.string	"  a "
.LC16:
	.string	"  A "
.LC17:
	.string	"  b "
.LC18:
	.string	"  B "
.LC19:
	.string	"  c "
.LC20:
	.string	"  C "
.LC21:
	.string	"  - "
.LC22:
	.string	"  @ "
.LC23:
	.string	"  # "
	.text
	.globl	displayBoard
	.type	displayBoard, @function
displayBoard:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L136
.L153:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L137
.L152:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 299
	jg	.L138
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L139
.L138:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 600
	je	.L140
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 602
	jne	.L141
.L140:
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L139
.L141:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 601
	jne	.L142
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L139
.L142:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 610
	je	.L143
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 612
	jne	.L144
.L143:
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L139
.L144:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 611
	jne	.L145
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L139
.L145:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 620
	je	.L146
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 622
	jne	.L147
.L146:
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L139
.L147:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 621
	jne	.L148
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L139
.L148:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 500
	je	.L149
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 502
	je	.L149
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 501
	jne	.L150
.L149:
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L139
.L150:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 700
	jne	.L151
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L139
.L151:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 701
	jne	.L139
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
.L139:
	add	DWORD PTR -4[rbp], 1
.L137:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L152
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -8[rbp], 1
.L136:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jl	.L153
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	displayBoard, .-displayBoard
	.section	.rodata
	.align 8
.LC24:
	.string	"Congratulations! The player has won :) The board is completed in %d rounds.\n"
	.align 8
.LC25:
	.string	"No! The computer has won :( The board is completed in %d rounds.\n"
	.text
	.globl	displayResults
	.type	displayResults, @function
displayResults:
.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	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	cmp	DWORD PTR -4[rbp], 700
	jne	.L155
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L157
.L155:
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
.L157:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	displayResults, .-displayResults
	.globl	create2Darray
	.type	create2Darray, @function
create2Darray:
.LFB22:
	.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, 40
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	DWORD PTR -28[rbp], 0
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -28[rbp], 0
	jmp	.L159
.L160:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 2
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -28[rbp], 1
.L159:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jl	.L160
	mov	rax, QWORD PTR -24[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	create2Darray, .-create2Darray
	.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	"266550.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"For 10x10 board, enter 1\012For 15x15 board, enter "
	.ascii	"2\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Please enter 1 or 2: \000"
	.align	2
.LC3:
	.ascii	"Dices rolled to choose first player.\000"
	.align	2
.LC4:
	.ascii	"Player's dice : %d --- Computer's dice : %d\012\000"
	.align	2
.LC5:
	.ascii	"Player will play first.\000"
	.align	2
.LC6:
	.ascii	"Computer will play first.\000"
	.align	2
.LC7:
	.ascii	"\012\000"
	.align	2
.LC8:
	.ascii	"TURN : PLAYER\000"
	.align	2
.LC9:
	.ascii	"TURN : COMPUTER\000"
	.align	2
.LC10:
	.ascii	"Do you want to continue to play (Y/y: Yes, N/n: No)"
	.ascii	":\000"
	.align	2
.LC11:
	.ascii	"%c\000"
	.align	2
.LC12:
	.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, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #1
	str	r3, [fp, #-56]
	mov	r3, #1
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #1
	str	r3, [fp, #-40]
	mov	r3, #1
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #89
	strb	r3, [fp, #-69]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	ldr	r0, .L23+4
	bl	puts
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L23+8
	bl	__isoc99_scanf
	b	.L2
.L3:
	ldr	r0, .L23+12
	bl	printf
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L23+8
	bl	__isoc99_scanf
.L2:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	ble	.L3
	ldr	r3, [fp, #-68]
	cmp	r3, #2
	bgt	.L3
	nop
.L4:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L4
	ldr	r3, [fp, #-68]
	cmp	r3, #1
	bne	.L5
	mov	r3, #10
	str	r3, [fp, #-32]
	b	.L6
.L5:
	mov	r3, #15
	str	r3, [fp, #-32]
.L6:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-32]
	bl	create2Darray
	str	r0, [fp, #-12]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-12]
	bl	initializeBoard
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-12]
	bl	initializeSnakesLadders
	ldr	r3, [fp, #-32]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
.L7:
	bl	rand
	mov	r1, r0
	ldr	r3, .L23+16
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	add	r3, r2, #1
	str	r3, [fp, #-28]
	bl	rand
	mov	r1, r0
	ldr	r3, .L23+16
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	add	r3, r2, #1
	str	r3, [fp, #-68]
	ldr	r0, .L23+20
	bl	puts
	b	.L8
.L9:
	bl	rand
	mov	r1, r0
	ldr	r3, .L23+16
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	add	r3, r2, #1
	str	r3, [fp, #-28]
	bl	rand
	mov	r1, r0
	ldr	r3, .L23+16
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	add	r3, r2, #1
	str	r3, [fp, #-68]
.L8:
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	beq	.L9
	ldr	r3, [fp, #-68]
	mov	r2, r3
	ldr	r1, [fp, #-28]
	ldr	r0, .L23+24
	bl	printf
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	ble	.L10
	mov	r3, #700
	str	r3, [fp, #-24]
	ldr	r0, .L23+28
	bl	puts
	b	.L11
.L10:
	ldr	r3, .L23+32
	str	r3, [fp, #-24]
	ldr	r0, .L23+36
	bl	puts
.L11:
	ldr	r0, .L23+40
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #89
	strb	r3, [fp, #-69]
	b	.L12
.L18:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #700
	bne	.L13
	ldr	r0, .L23+44
	bl	puts
	ldr	r3, [fp, #-36]
	sub	r2, fp, #64
	str	r3, [sp, #16]
	sub	r3, fp, #52
	str	r3, [sp, #12]
	mov	r3, #700
	str	r3, [sp, #8]
	sub	r3, fp, #56
	str	r3, [sp, #4]
	sub	r3, fp, #60
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-12]
	bl	move
	ldr	r3, .L23+32
	str	r3, [fp, #-24]
	b	.L14
.L13:
	ldr	r0, .L23+48
	bl	puts
	ldr	r3, [fp, #-52]
	sub	r2, fp, #48
	str	r3, [sp, #16]
	sub	r3, fp, #36
	str	r3, [sp, #12]
	ldr	r3, .L23+32
	str	r3, [sp, #8]
	sub	r3, fp, #40
	str	r3, [sp, #4]
	sub	r3, fp, #44
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-12]
	bl	move
	mov	r3, #700
	str	r3, [fp, #-24]
.L14:
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-12]
	bl	displayBoard
	ldr	r0, .L23+52
	bl	printf
	sub	r3, fp, #69
	mov	r1, r3
	ldr	r0, .L23+56
	bl	__isoc99_scanf
	nop
.L15:
	bl	getchar
	mov	r3, r0
	cmp	r3, #10
	bne	.L15
	ldr	r0, .L23+40
	bl	puts
.L12:
	ldrb	r3, [fp, #-69]	@ zero_extendqisi2
	cmp	r3, #89
	beq	.L16
	ldrb	r3, [fp, #-69]	@ zero_extendqisi2
	cmp	r3, #121
	bne	.L17
.L16:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #700
	beq	.L17
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L23+32
	cmp	r3, r2
	bne	.L18
.L17:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #700
	bne	.L19
	ldr	r1, [fp, #-28]
	mov	r0, #700
	bl	displayResults
	b	.L20
.L19:
	ldr	r1, [fp, #-28]
	ldr	r0, .L23+32
	bl	displayResults
.L20:
	mov	r3, #0
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC12
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	715827883
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	701
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.align	2
	.global	initializeSnakesLadders
	.syntax unified
	.arm
	.fpu softvfp
	.type	initializeSnakesLadders, %function
initializeSnakesLadders:
	@ args = 0, pretend = 0, frame = 8
	@ 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]
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	bne	.L26
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	ldr	r3, [fp, #-12]
	mov	r2, #3
	mov	r1, #2
	ldr	r0, [fp, #-8]
	bl	locateLadder
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	ldr	r3, [fp, #-12]
	mov	r2, #5
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	locateLadder
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	mov	r1, #2
	ldr	r0, [fp, #-8]
	bl	locateCurlySnake
	b	.L28
.L26:
	ldr	r3, [fp, #-12]
	cmp	r3, #15
	bne	.L28
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	ldr	r3, [fp, #-12]
	mov	r2, #3
	mov	r1, #2
	ldr	r0, [fp, #-8]
	bl	locateLadder
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	ldr	r3, [fp, #-12]
	mov	r2, #5
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	locateLadder
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	ldr	r3, [fp, #-12]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	locateLadder
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	ldr	r3, [fp, #-12]
	mov	r2, #9
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	locateStraightSnake
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-12]
	mov	r1, #2
	ldr	r0, [fp, #-8]
	bl	locateCurlySnake
.L28:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	initializeSnakesLadders, .-initializeSnakesLadders
	.align	2
	.global	checkSnakes
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkSnakes, %function
checkSnakes:
	@ args = 4, 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]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L49
	cmp	r3, r2
	bne	.L30
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L31
.L35:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L32
.L34:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L49+4
	cmp	r3, r2
	bne	.L33
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
.L33:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L32:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L34
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L31:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L35
	b	.L48
.L30:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L49+8
	cmp	r3, r2
	bne	.L37
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L38
.L42:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L39
.L41:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #612
	bne	.L40
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
.L40:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L39:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L41
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L38:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L42
	b	.L48
.L37:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L49+12
	cmp	r3, r2
	bne	.L48
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L43
.L47:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L44
.L46:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L49+16
	cmp	r3, r2
	bne	.L45
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
.L45:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L44:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L46
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L43:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L47
.L48:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L50:
	.align	2
.L49:
	.word	601
	.word	602
	.word	611
	.word	621
	.word	622
	.size	checkSnakes, .-checkSnakes
	.align	2
	.global	checkLadders
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkLadders, %function
checkLadders:
	@ args = 4, 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]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L59
	cmp	r3, r2
	bne	.L57
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L53
.L55:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L59+4
	cmp	r3, r2
	beq	.L58
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3]
.L53:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L55
	b	.L57
.L58:
	nop
.L57:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L60:
	.align	2
.L59:
	.word	502
	.word	501
	.size	checkLadders, .-checkLadders
	.section	.rodata
	.align	2
.LC13:
	.ascii	"Dice1 : %d --- Dice2 : %d\012\000"
	.text
	.align	2
	.global	move
	.syntax unified
	.arm
	.fpu softvfp
	.type	move, %function
move:
	@ args = 20, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #16]
	ldr	r2, [r2]
	str	r2, [r3]
	bl	rand
	mov	r1, r0
	ldr	r3, .L90
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	add	r3, r2, #1
	str	r3, [fp, #-16]
	bl	rand
	mov	r1, r0
	ldr	r3, .L90
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	add	r3, r2, #1
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bne	.L62
	ldr	r3, [fp, #8]
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L63
	ldr	r3, [fp, #-36]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L64
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bgt	.L65
	ldr	r3, [fp, #-36]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	sub	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r2, [r3]
	ldr	r3, [fp, #8]
	mov	r2, #1
	str	r2, [r3]
	b	.L66
.L65:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r2, [r3]
	ldr	r3, [fp, #8]
	mov	r2, #2
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	b	.L66
.L64:
	ldr	r3, [fp, #-36]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	sub	r2, r2, r3
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	b	.L66
.L63:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L66
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bgt	.L67
	ldr	r3, [fp, #-36]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	sub	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r2, [r3]
	ldr	r3, [fp, #8]
	mov	r2, #1
	str	r2, [r3]
	b	.L66
.L67:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r2, [r3]
	ldr	r3, [fp, #8]
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	sub	r2, r3, #1
	ldr	r3, [fp, #-28]
	add	r2, r2, r3
	ldr	r3, [fp, #-36]
	ldr	r1, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r1, r3
	sub	r2, r2, r3
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	b	.L66
.L62:
	ldr	r3, [fp, #-16]
	cmp	r3, #5
	bne	.L68
	ldr	r3, [fp, #-12]
	cmp	r3, #6
	beq	.L69
.L68:
	ldr	r3, [fp, #-16]
	cmp	r3, #6
	bne	.L70
	ldr	r3, [fp, #-12]
	cmp	r3, #5
	bne	.L70
.L69:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L71
.L81:
	ldr	r3, [fp, #8]
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L72
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bgt	.L73
	ldr	r3, [fp, #-28]
	sub	r2, r3, #1
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L74
	ldr	r3, [fp, #-32]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L75
	ldr	r3, [fp, #-36]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #4]
	mov	r2, #0
	str	r2, [r3]
	b	.L77
.L75:
	ldr	r3, [fp, #-28]
	sub	r2, r3, #1
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	ldr	r3, [fp, #4]
	mov	r2, #0
	str	r2, [r3]
	b	.L77
.L74:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r2, [r3]
	ldr	r3, [fp, #8]
	mov	r2, #2
	str	r2, [r3]
	b	.L73
.L72:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L73
	ldr	r3, [fp, #-36]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L78
	ldr	r3, [fp, #-32]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L79
	ldr	r3, [fp, #-36]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #4]
	mov	r2, #0
	str	r2, [r3]
	b	.L77
.L79:
	ldr	r3, [fp, #-28]
	sub	r2, r3, #1
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	ldr	r3, [fp, #4]
	mov	r2, #0
	str	r2, [r3]
	b	.L77
.L78:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r2, [r3]
	ldr	r3, [fp, #8]
	mov	r2, #1
	str	r2, [r3]
.L73:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L71:
	ldr	r3, [fp, #-20]
	cmp	r3, #13
	ble	.L81
	b	.L66
.L77:
	b	.L66
.L70:
	ldr	r3, [fp, #8]
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L82
	ldr	r3, [fp, #-36]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L83
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L84
	ldr	r3, [fp, #-36]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #4]
	mov	r2, #0
	str	r2, [r3]
	b	.L66
.L84:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r2, [r3]
	ldr	r3, [fp, #8]
	mov	r2, #2
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	sub	r2, r3, #1
	ldr	r3, [fp, #-28]
	add	r2, r2, r3
	ldr	r3, [fp, #-36]
	ldr	r1, [r3]
	ldr	r3, [fp, #-16]
	add	r1, r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	sub	r2, r2, r3
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	b	.L66
.L83:
	ldr	r3, [fp, #-36]
	ldr	r2, [r3]
	ldr	r1, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	b	.L66
.L82:
	ldr	r3, [fp, #-36]
	ldr	r2, [r3]
	ldr	r1, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L85
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L86
	ldr	r3, [fp, #-36]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #4]
	mov	r2, #0
	str	r2, [r3]
	b	.L66
.L86:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #4]
	str	r2, [r3]
	ldr	r3, [fp, #8]
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mvn	r2, r3
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	b	.L66
.L85:
	ldr	r3, [fp, #-36]
	ldr	r2, [r3]
	ldr	r1, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	sub	r2, r2, r3
	ldr	r3, [fp, #-36]
	str	r2, [r3]
.L66:
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, .L90+4
	bl	printf
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #700
	beq	.L87
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L90+8
	cmp	r3, r2
	bne	.L88
.L87:
	ldr	r3, [fp, #16]
	ldr	r2, [fp, #20]
	str	r2, [r3]
	b	.L89
.L88:
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #16]
	str	r2, [r3]
.L89:
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #4]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-24]
	bl	checkSnakes
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #4]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-24]
	bl	checkLadders
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #12]
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L91:
	.align	2
.L90:
	.word	715827883
	.word	.LC13
	.word	701
	.size	move, .-move
	.global	__aeabi_idivmod
	.section	.rodata
	.align	2
.LC14:
	.ascii	"Exception happened when map creating.\000"
	.text
	.align	2
	.global	locateCurlySnake
	.syntax unified
	.arm
	.fpu softvfp
	.type	locateCurlySnake, %function
locateCurlySnake:
	@ 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, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #600
	str	r3, [fp, #-16]
	b	.L93
.L98:
	bl	rand
	mov	r2, r0
	ldr	r3, [fp, #-48]
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-32]
	bl	rand
	mov	r2, r0
	ldr	r3, [fp, #-52]
	sub	r3, r3, #2
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-28]
	b	.L94
.L97:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L95
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-48]
	sub	r3, r3, #4
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L95
	mov	r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-32]
.L95:
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bne	.L94
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L94
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L96
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L96
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-28]
.L96:
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bne	.L94
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-52]
	sub	r3, r3, #2
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L94
	ldr	r0, .L99
	bl	puts
	mov	r0, #0
	bl	exit
.L94:
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-40]
	bl	controlCurlySnake
	mov	r3, r0
	cmp	r3, #1
	bne	.L97
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-40]
	bl	drawCurlySnake
	ldr	r3, [fp, #-16]
	add	r3, r3, #10
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	str	r3, [fp, #-44]
.L93:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bgt	.L98
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L100:
	.align	2
.L99:
	.word	.LC14
	.size	locateCurlySnake, .-locateCurlySnake
	.align	2
	.global	controlCurlySnake
	.syntax unified
	.arm
	.fpu softvfp
	.type	controlCurlySnake, %function
controlCurlySnake:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L102
.L105:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #300
	ble	.L103
	mov	r3, #0
	b	.L104
.L103:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L102:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L105
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L106
.L108:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #300
	ble	.L107
	mov	r3, #0
	b	.L104
.L107:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L106:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L108
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L109
.L111:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #300
	ble	.L110
	mov	r3, #0
	b	.L104
.L110:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L109:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L111
	mov	r3, #1
.L104:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	controlCurlySnake, .-controlCurlySnake
	.align	2
	.global	drawCurlySnake
	.syntax unified
	.arm
	.fpu softvfp
	.type	drawCurlySnake, %function
drawCurlySnake:
	@ 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]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L113
.L114:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L113:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L114
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L115
.L116:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L115:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L116
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L117
.L118:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L117:
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	ble	.L118
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	add	r2, r2, #2
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	drawCurlySnake, .-drawCurlySnake
	.align	2
	.global	locateStraightSnake
	.syntax unified
	.arm
	.fpu softvfp
	.type	locateStraightSnake, %function
locateStraightSnake:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	mov	r3, #620
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	locateStraight
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	locateStraightSnake, .-locateStraightSnake
	.align	2
	.global	locateLadder
	.syntax unified
	.arm
	.fpu softvfp
	.type	locateLadder, %function
locateLadder:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	mov	r3, #500
	str	r3, [sp, #4]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	locateStraight
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	locateLadder, .-locateLadder
	.align	2
	.global	locateStraight
	.syntax unified
	.arm
	.fpu softvfp
	.type	locateStraight, %function
locateStraight:
	@ args = 8, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L122
.L127:
	bl	rand
	mov	r3, r0
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-28]
	bl	rand
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	add	r3, r3, #1
	mov	r1, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-24]
	b	.L123
.L126:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L124
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L124
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-28]
.L124:
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bne	.L123
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L123
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L125
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L125
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-24]
.L125:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L123
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldr	r2, [fp, #4]
	cmp	r2, r3
	bge	.L123
	ldr	r0, .L128
	bl	puts
	mov	r0, #0
	bl	exit
.L123:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-32]
	bl	controlStraight
	mov	r3, r0
	cmp	r3, #1
	bne	.L126
	ldr	r3, [fp, #8]
	str	r3, [sp]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-32]
	bl	drawStraight
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	str	r3, [fp, #-36]
.L122:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bgt	.L127
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L129:
	.align	2
.L128:
	.word	.LC14
	.size	locateStraight, .-locateStraight
	.align	2
	.global	controlStraight
	.syntax unified
	.arm
	.fpu softvfp
	.type	controlStraight, %function
controlStraight:
	@ 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]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L131
.L134:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #300
	ble	.L132
	mov	r3, #0
	b	.L133
.L132:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L131:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L134
	mov	r3, #1
.L133:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	controlStraight, .-controlStraight
	.align	2
	.global	drawStraight
	.syntax unified
	.arm
	.fpu softvfp
	.type	drawStraight, %function
drawStraight:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #4]
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L136
.L137:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #4]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L136:
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bgt	.L137
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #4]
	add	r2, r2, #2
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	drawStraight, .-drawStraight
	.align	2
	.global	initializeBoard
	.syntax unified
	.arm
	.fpu softvfp
	.type	initializeBoard, %function
initializeBoard:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L139
.L146:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L140
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L141
.L142:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L141:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L142
	b	.L143
.L140:
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L144
.L145:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L144:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L145
.L143:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
.L139:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L146
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	initializeBoard, .-initializeBoard
	.section	.rodata
	.align	2
.LC15:
	.ascii	"%3d \000"
	.align	2
.LC16:
	.ascii	"  a \000"
	.align	2
.LC17:
	.ascii	"  A \000"
	.align	2
.LC18:
	.ascii	"  b \000"
	.align	2
.LC19:
	.ascii	"  B \000"
	.align	2
.LC20:
	.ascii	"  c \000"
	.align	2
.LC21:
	.ascii	"  C \000"
	.align	2
.LC22:
	.ascii	"  - \000"
	.align	2
.LC23:
	.ascii	"  @ \000"
	.align	2
.LC24:
	.ascii	"  # \000"
	.text
	.align	2
	.global	displayBoard
	.syntax unified
	.arm
	.fpu softvfp
	.type	displayBoard, %function
displayBoard:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L148
.L165:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L149
.L164:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #300
	bge	.L150
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L166
	bl	printf
	b	.L151
.L150:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #600
	beq	.L152
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L166+4
	cmp	r3, r2
	bne	.L153
.L152:
	ldr	r0, .L166+8
	bl	printf
	b	.L151
.L153:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L166+12
	cmp	r3, r2
	bne	.L154
	ldr	r0, .L166+16
	bl	printf
	b	.L151
.L154:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L166+20
	cmp	r3, r2
	beq	.L155
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #612
	bne	.L156
.L155:
	ldr	r0, .L166+24
	bl	printf
	b	.L151
.L156:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L166+28
	cmp	r3, r2
	bne	.L157
	ldr	r0, .L166+32
	bl	printf
	b	.L151
.L157:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #620
	beq	.L158
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L166+36
	cmp	r3, r2
	bne	.L159
.L158:
	ldr	r0, .L166+40
	bl	printf
	b	.L151
.L159:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L166+44
	cmp	r3, r2
	bne	.L160
	ldr	r0, .L166+48
	bl	printf
	b	.L151
.L160:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #500
	beq	.L161
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L166+52
	cmp	r3, r2
	beq	.L161
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L166+56
	cmp	r3, r2
	bne	.L162
.L161:
	ldr	r0, .L166+60
	bl	printf
	b	.L151
.L162:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #700
	bne	.L163
	ldr	r0, .L166+64
	bl	printf
	b	.L151
.L163:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L166+68
	cmp	r3, r2
	bne	.L151
	ldr	r0, .L166+72
	bl	printf
.L151:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L149:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L164
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L148:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L165
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L167:
	.align	2
.L166:
	.word	.LC15
	.word	602
	.word	.LC16
	.word	601
	.word	.LC17
	.word	610
	.word	.LC18
	.word	611
	.word	.LC19
	.word	622
	.word	.LC20
	.word	621
	.word	.LC21
	.word	502
	.word	501
	.word	.LC22
	.word	.LC23
	.word	701
	.word	.LC24
	.size	displayBoard, .-displayBoard
	.section	.rodata
	.align	2
.LC25:
	.ascii	"Congratulations! The player has won :) The board is"
	.ascii	" completed in %d rounds.\012\000"
	.align	2
.LC26:
	.ascii	"No! The computer has won :( The board is completed "
	.ascii	"in %d rounds.\012\000"
	.text
	.align	2
	.global	displayResults
	.syntax unified
	.arm
	.fpu softvfp
	.type	displayResults, %function
displayResults:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #700
	bne	.L169
	ldr	r1, [fp, #-12]
	ldr	r0, .L172
	bl	printf
	b	.L171
.L169:
	ldr	r1, [fp, #-12]
	ldr	r0, .L172+4
	bl	printf
.L171:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L173:
	.align	2
.L172:
	.word	.LC25
	.word	.LC26
	.size	displayResults, .-displayResults
	.align	2
	.global	create2Darray
	.syntax unified
	.arm
	.fpu softvfp
	.type	create2Darray, %function
create2Darray:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L175
.L176:
	ldr	r3, [fp, #-24]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L175:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L176
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	create2Darray, .-create2Darray
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
