	.file	"884460.c"
	.intel_syntax noprefix
	.text
	.globl	score
	.bss
	.align 4
	.type	score, @object
	.size	score, 4
score:
	.zero	4
	.globl	scheme
	.type	scheme, @object
	.size	scheme, 1
scheme:
	.zero	1
	.section	.rodata
.LC0:
	.string	"\033[38;5;%d;48;5;%dm"
	.text
	.globl	getColor
	.type	getColor, @function
getColor:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	eax, edi
	mov	QWORD PTR -176[rbp], rsi
	mov	QWORD PTR -184[rbp], rdx
	mov	BYTE PTR -164[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, -70932780774457592
	movabs	rdx, -69806863687483644
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -104[rbp], rdx
	movabs	rax, 3377746965823497
	movabs	rdx, 71777214278795277
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -88[rbp], rdx
	movabs	rax, -4785156209836056
	movabs	rdx, 69524272002039792
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	movabs	rax, 70651292912517368
	movabs	rdx, 71777209999491324
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	movabs	rax, -45599796643233813
	movabs	rdx, -15481355653218431
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	movabs	rax, -16607272737767481
	movabs	rdx, -16607277032865852
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	lea	rax, -112[rbp]
	mov	QWORD PTR -144[rbp], rax
	lea	rax, -80[rbp]
	mov	QWORD PTR -136[rbp], rax
	lea	rax, -48[rbp]
	mov	QWORD PTR -128[rbp], rax
	movzx	eax, BYTE PTR scheme[rip]
	movzx	eax, al
	cdqe
	mov	rax, QWORD PTR -144[rbp+rax*8]
	mov	QWORD PTR -160[rbp], rax
	movzx	eax, BYTE PTR scheme[rip]
	movzx	eax, al
	cdqe
	mov	rax, QWORD PTR -144[rbp+rax*8]
	add	rax, 1
	mov	QWORD PTR -152[rbp], rax
	cmp	BYTE PTR -164[rbp], 0
	je	.L2
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -160[rbp]
	lea	rdx, 2[rax]
	movzx	eax, BYTE PTR scheme[rip]
	movzx	eax, al
	cdqe
	mov	rax, QWORD PTR -144[rbp+rax*8]
	add	rax, 32
	cmp	rdx, rax
	jnb	.L3
	add	QWORD PTR -160[rbp], 2
	add	QWORD PTR -152[rbp], 2
.L3:
	movzx	eax, BYTE PTR -164[rbp]
	lea	edx, -1[rax]
	mov	BYTE PTR -164[rbp], dl
	test	al, al
	jne	.L4
.L2:
	mov	rax, QWORD PTR -160[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	ecx, al
	mov	rax, QWORD PTR -152[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rsi, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR -176[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	lea	rdx, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getColor, .-getColor
	.section	.rodata
.LC1:
	.string	"\033[H"
.LC2:
	.string	"2048.c %17d pts\n\n"
.LC3:
	.string	"%s"
.LC4:
	.string	"       "
.LC5:
	.string	"%u"
.LC6:
	.string	""
.LC7:
	.string	"%*s%s%*s"
.LC8:
	.string	"   \302\267   "
	.align 8
.LC9:
	.string	"        \342\206\220,\342\206\221,\342\206\222,\342\206\223 or q        "
.LC10:
	.string	"\033[A"
	.text
	.globl	drawBoard
	.type	drawBoard, @function
drawBoard:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -60[rbp], 7166747
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR score[rip]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	BYTE PTR -62[rbp], 0
	jmp	.L7
.L16:
	mov	BYTE PTR -63[rbp], 0
	jmp	.L8
.L9:
	movzx	eax, BYTE PTR -63[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -62[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	eax, al
	lea	rcx, -48[rbp]
	mov	edx, 40
	mov	rsi, rcx
	mov	edi, eax
	call	getColor
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -60[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -63[rbp]
	add	eax, 1
	mov	BYTE PTR -63[rbp], al
.L8:
	cmp	BYTE PTR -63[rbp], 3
	jbe	.L9
	mov	edi, 10
	call	putchar@PLT
	mov	BYTE PTR -63[rbp], 0
	jmp	.L10
.L13:
	movzx	eax, BYTE PTR -63[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -62[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	eax, al
	lea	rcx, -48[rbp]
	mov	edx, 40
	mov	rsi, rcx
	mov	edi, eax
	call	getColor
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -63[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -62[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	test	al, al
	je	.L11
	movzx	eax, BYTE PTR -63[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -62[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	eax, al
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	lea	rax, -56[rbp]
	mov	ecx, edx
	lea	rdx, .LC5[rip]
	mov	esi, 8
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	mov	eax, 7
	sub	eax, edx
	mov	BYTE PTR -61[rbp], al
	movzx	eax, BYTE PTR -61[rbp]
	shr	al
	movzx	ecx, al
	movzx	eax, BYTE PTR -61[rbp]
	movzx	edx, BYTE PTR -61[rbp]
	shr	dl
	movzx	edx, dl
	sub	eax, edx
	mov	esi, eax
	lea	rax, -56[rbp]
	lea	r9, .LC6[rip]
	mov	r8d, ecx
	mov	rcx, rax
	lea	rdx, .LC6[rip]
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L11:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	lea	rax, -60[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -63[rbp]
	add	eax, 1
	mov	BYTE PTR -63[rbp], al
.L10:
	cmp	BYTE PTR -63[rbp], 3
	jbe	.L13
	mov	edi, 10
	call	putchar@PLT
	mov	BYTE PTR -63[rbp], 0
	jmp	.L14
.L15:
	movzx	eax, BYTE PTR -63[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -62[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	eax, al
	lea	rcx, -48[rbp]
	mov	edx, 40
	mov	rsi, rcx
	mov	edi, eax
	call	getColor
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -60[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -63[rbp]
	add	eax, 1
	mov	BYTE PTR -63[rbp], al
.L14:
	cmp	BYTE PTR -63[rbp], 3
	jbe	.L15
	mov	edi, 10
	call	putchar@PLT
	movzx	eax, BYTE PTR -62[rbp]
	add	eax, 1
	mov	BYTE PTR -62[rbp], al
.L7:
	cmp	BYTE PTR -62[rbp], 3
	jbe	.L16
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	drawBoard, .-drawBoard
	.globl	findTarget
	.type	findTarget, @function
findTarget:
.LFB2:
	.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	ecx, esi
	mov	eax, edx
	mov	edx, ecx
	mov	BYTE PTR -28[rbp], dl
	mov	BYTE PTR -32[rbp], al
	cmp	BYTE PTR -28[rbp], 0
	jne	.L19
	movzx	eax, BYTE PTR -28[rbp]
	jmp	.L20
.L19:
	movzx	eax, BYTE PTR -28[rbp]
	sub	eax, 1
	mov	BYTE PTR -1[rbp], al
.L24:
	movzx	edx, BYTE PTR -1[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L21
	movzx	edx, BYTE PTR -1[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	movzx	ecx, BYTE PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	je	.L22
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	jmp	.L20
.L22:
	movzx	eax, BYTE PTR -1[rbp]
	jmp	.L20
.L21:
	movzx	eax, BYTE PTR -1[rbp]
	cmp	al, BYTE PTR -32[rbp]
	jne	.L23
	movzx	eax, BYTE PTR -1[rbp]
	jmp	.L20
.L23:
	movzx	eax, BYTE PTR -1[rbp]
	sub	eax, 1
	mov	BYTE PTR -1[rbp], al
	jmp	.L24
.L20:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	findTarget, .-findTarget
	.globl	slideArray
	.type	slideArray, @function
slideArray:
.LFB3:
	.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	QWORD PTR -24[rbp], rdi
	mov	BYTE PTR -4[rbp], 0
	mov	BYTE PTR -2[rbp], 0
	mov	BYTE PTR -3[rbp], 0
	jmp	.L26
.L30:
	movzx	edx, BYTE PTR -3[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L27
	movzx	edx, BYTE PTR -2[rbp]
	movzx	ecx, BYTE PTR -3[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	findTarget
	mov	BYTE PTR -1[rbp], al
	movzx	eax, BYTE PTR -1[rbp]
	cmp	al, BYTE PTR -3[rbp]
	je	.L27
	movzx	edx, BYTE PTR -1[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L28
	movzx	edx, BYTE PTR -3[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	ecx, BYTE PTR -1[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	jmp	.L29
.L28:
	movzx	edx, BYTE PTR -1[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	movzx	ecx, BYTE PTR -3[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L29
	movzx	edx, BYTE PTR -1[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	add	edx, 1
	mov	BYTE PTR [rax], dl
	movzx	edx, BYTE PTR -1[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, DWORD PTR score[rip]
	add	eax, edx
	mov	DWORD PTR score[rip], eax
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -2[rbp], al
.L29:
	movzx	edx, BYTE PTR -3[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	BYTE PTR -4[rbp], 1
.L27:
	movzx	eax, BYTE PTR -3[rbp]
	add	eax, 1
	mov	BYTE PTR -3[rbp], al
.L26:
	cmp	BYTE PTR -3[rbp], 3
	jbe	.L30
	movzx	eax, BYTE PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	slideArray, .-slideArray
	.globl	rotateBoard
	.type	rotateBoard, @function
rotateBoard:
.LFB4:
	.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	BYTE PTR -2[rbp], 4
	mov	BYTE PTR -4[rbp], 0
	jmp	.L33
.L36:
	movzx	eax, BYTE PTR -4[rbp]
	mov	BYTE PTR -3[rbp], al
	jmp	.L34
.L35:
	movzx	eax, BYTE PTR -4[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -3[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	mov	BYTE PTR -1[rbp], al
	movzx	eax, BYTE PTR -3[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -2[rbp]
	movzx	ecx, BYTE PTR -4[rbp]
	sub	eax, ecx
	lea	edi, -1[rax]
	movzx	eax, BYTE PTR -4[rbp]
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rcx, rax
	movzx	esi, BYTE PTR -3[rbp]
	movsx	rax, edi
	movzx	edx, BYTE PTR [rdx+rax]
	movsx	rax, esi
	mov	BYTE PTR [rcx+rax], dl
	movzx	eax, BYTE PTR -2[rbp]
	movzx	edx, BYTE PTR -4[rbp]
	sub	eax, edx
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -2[rbp]
	movzx	ecx, BYTE PTR -3[rbp]
	sub	eax, ecx
	lea	edi, -1[rax]
	movzx	eax, BYTE PTR -3[rbp]
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rcx, rax
	movzx	eax, BYTE PTR -2[rbp]
	movzx	esi, BYTE PTR -4[rbp]
	sub	eax, esi
	lea	esi, -1[rax]
	movsx	rax, edi
	movzx	edx, BYTE PTR [rdx+rax]
	movsx	rax, esi
	mov	BYTE PTR [rcx+rax], dl
	movzx	eax, BYTE PTR -2[rbp]
	movzx	edx, BYTE PTR -3[rbp]
	sub	eax, edx
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -4[rbp]
	movzx	ecx, BYTE PTR -2[rbp]
	movzx	esi, BYTE PTR -4[rbp]
	sub	ecx, esi
	movsx	rcx, ecx
	sal	rcx, 2
	lea	rsi, -4[rcx]
	mov	rcx, QWORD PTR -24[rbp]
	add	rcx, rsi
	movzx	esi, BYTE PTR -2[rbp]
	movzx	edi, BYTE PTR -3[rbp]
	sub	esi, edi
	sub	esi, 1
	cdqe
	movzx	edx, BYTE PTR [rdx+rax]
	movsx	rax, esi
	mov	BYTE PTR [rcx+rax], dl
	movzx	eax, BYTE PTR -2[rbp]
	movzx	edx, BYTE PTR -3[rbp]
	sub	eax, edx
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, [rdx+rax]
	movzx	eax, BYTE PTR -4[rbp]
	cdqe
	movzx	edx, BYTE PTR -1[rbp]
	mov	BYTE PTR [rcx+rax], dl
	movzx	eax, BYTE PTR -3[rbp]
	add	eax, 1
	mov	BYTE PTR -3[rbp], al
.L34:
	movzx	eax, BYTE PTR -3[rbp]
	movzx	edx, BYTE PTR -2[rbp]
	movzx	ecx, BYTE PTR -4[rbp]
	sub	edx, ecx
	sub	edx, 1
	cmp	eax, edx
	jl	.L35
	movzx	eax, BYTE PTR -4[rbp]
	add	eax, 1
	mov	BYTE PTR -4[rbp], al
.L33:
	movzx	eax, BYTE PTR -2[rbp]
	shr	al
	cmp	BYTE PTR -4[rbp], al
	jb	.L36
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	rotateBoard, .-rotateBoard
	.globl	moveUp
	.type	moveUp, @function
moveUp:
.LFB5:
	.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	QWORD PTR -24[rbp], rdi
	mov	BYTE PTR -2[rbp], 0
	mov	BYTE PTR -1[rbp], 0
	jmp	.L38
.L39:
	movzx	eax, BYTE PTR -1[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	slideArray
	or	al, BYTE PTR -2[rbp]
	movzx	eax, al
	test	eax, eax
	setne	al
	mov	BYTE PTR -2[rbp], al
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L38:
	cmp	BYTE PTR -1[rbp], 3
	jbe	.L39
	movzx	eax, BYTE PTR -2[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	moveUp, .-moveUp
	.globl	moveLeft
	.type	moveLeft, @function
moveLeft:
.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, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rotateBoard
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	moveUp
	mov	BYTE PTR -1[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rotateBoard
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rotateBoard
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rotateBoard
	movzx	eax, BYTE PTR -1[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	moveLeft, .-moveLeft
	.globl	moveDown
	.type	moveDown, @function
moveDown:
.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rotateBoard
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rotateBoard
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	moveUp
	mov	BYTE PTR -1[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rotateBoard
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rotateBoard
	movzx	eax, BYTE PTR -1[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	moveDown, .-moveDown
	.globl	moveRight
	.type	moveRight, @function
moveRight:
.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, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rotateBoard
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rotateBoard
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rotateBoard
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	moveUp
	mov	BYTE PTR -1[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rotateBoard
	movzx	eax, BYTE PTR -1[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	moveRight, .-moveRight
	.globl	findPairDown
	.type	findPairDown, @function
findPairDown:
.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	BYTE PTR -1[rbp], 0
	mov	BYTE PTR -3[rbp], 0
	jmp	.L48
.L53:
	mov	BYTE PTR -2[rbp], 0
	jmp	.L49
.L52:
	movzx	eax, BYTE PTR -3[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -2[rbp]
	cdqe
	movzx	edx, BYTE PTR [rdx+rax]
	movzx	eax, BYTE PTR -3[rbp]
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rcx, rax
	movzx	eax, BYTE PTR -2[rbp]
	add	eax, 1
	cdqe
	movzx	eax, BYTE PTR [rcx+rax]
	cmp	dl, al
	jne	.L50
	mov	eax, 1
	jmp	.L51
.L50:
	movzx	eax, BYTE PTR -2[rbp]
	add	eax, 1
	mov	BYTE PTR -2[rbp], al
.L49:
	cmp	BYTE PTR -2[rbp], 2
	jbe	.L52
	movzx	eax, BYTE PTR -3[rbp]
	add	eax, 1
	mov	BYTE PTR -3[rbp], al
.L48:
	cmp	BYTE PTR -3[rbp], 3
	jbe	.L53
	movzx	eax, BYTE PTR -1[rbp]
.L51:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	findPairDown, .-findPairDown
	.globl	countEmpty
	.type	countEmpty, @function
countEmpty:
.LFB10:
	.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	BYTE PTR -1[rbp], 0
	mov	BYTE PTR -3[rbp], 0
	jmp	.L55
.L59:
	mov	BYTE PTR -2[rbp], 0
	jmp	.L56
.L58:
	movzx	eax, BYTE PTR -3[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -2[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	test	al, al
	jne	.L57
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L57:
	movzx	eax, BYTE PTR -2[rbp]
	add	eax, 1
	mov	BYTE PTR -2[rbp], al
.L56:
	cmp	BYTE PTR -2[rbp], 3
	jbe	.L58
	movzx	eax, BYTE PTR -3[rbp]
	add	eax, 1
	mov	BYTE PTR -3[rbp], al
.L55:
	cmp	BYTE PTR -3[rbp], 3
	jbe	.L59
	movzx	eax, BYTE PTR -1[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	countEmpty, .-countEmpty
	.globl	gameEnded
	.type	gameEnded, @function
gameEnded:
.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, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	BYTE PTR -1[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	countEmpty
	test	al, al
	je	.L62
	mov	eax, 0
	jmp	.L63
.L62:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	findPairDown
	test	al, al
	je	.L64
	mov	eax, 0
	jmp	.L63
.L64:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rotateBoard
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	findPairDown
	test	al, al
	je	.L65
	mov	BYTE PTR -1[rbp], 0
.L65:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rotateBoard
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rotateBoard
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rotateBoard
	movzx	eax, BYTE PTR -1[rbp]
.L63:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	gameEnded, .-gameEnded
	.globl	addRandom
	.type	addRandom, @function
addRandom:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -51[rbp], 0
	movzx	eax, BYTE PTR initialized.2[rip]
	xor	eax, 1
	test	al, al
	je	.L67
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	BYTE PTR initialized.2[rip], 1
.L67:
	mov	BYTE PTR -53[rbp], 0
	jmp	.L68
.L72:
	mov	BYTE PTR -52[rbp], 0
	jmp	.L69
.L71:
	movzx	eax, BYTE PTR -53[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -52[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	test	al, al
	jne	.L70
	movzx	eax, BYTE PTR -51[rbp]
	cdqe
	movzx	edx, BYTE PTR -53[rbp]
	mov	BYTE PTR -48[rbp+rax*2], dl
	movzx	eax, BYTE PTR -51[rbp]
	cdqe
	movzx	edx, BYTE PTR -52[rbp]
	mov	BYTE PTR -47[rbp+rax*2], dl
	movzx	eax, BYTE PTR -51[rbp]
	add	eax, 1
	mov	BYTE PTR -51[rbp], al
.L70:
	movzx	eax, BYTE PTR -52[rbp]
	add	eax, 1
	mov	BYTE PTR -52[rbp], al
.L69:
	cmp	BYTE PTR -52[rbp], 3
	jbe	.L71
	movzx	eax, BYTE PTR -53[rbp]
	add	eax, 1
	mov	BYTE PTR -53[rbp], al
.L68:
	cmp	BYTE PTR -53[rbp], 3
	jbe	.L72
	cmp	BYTE PTR -51[rbp], 0
	je	.L75
	call	rand@PLT
	movzx	ecx, BYTE PTR -51[rbp]
	cdq
	idiv	ecx
	mov	eax, edx
	mov	BYTE PTR -50[rbp], al
	movzx	eax, BYTE PTR -50[rbp]
	cdqe
	movzx	eax, BYTE PTR -48[rbp+rax*2]
	mov	BYTE PTR -53[rbp], al
	movzx	eax, BYTE PTR -50[rbp]
	cdqe
	movzx	eax, BYTE PTR -47[rbp+rax*2]
	mov	BYTE PTR -52[rbp], al
	call	rand@PLT
	mov	ecx, eax
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	movsx	rax, edx
	imul	rax, rax, 954437177
	shr	rax, 32
	sar	eax
	sar	edx, 31
	sub	eax, edx
	add	eax, 1
	mov	BYTE PTR -49[rbp], al
	movzx	eax, BYTE PTR -53[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	lea	rcx, [rdx+rax]
	movzx	eax, BYTE PTR -52[rbp]
	cdqe
	movzx	edx, BYTE PTR -49[rbp]
	mov	BYTE PTR [rcx+rax], dl
.L75:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L74
	call	__stack_chk_fail@PLT
.L74:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	addRandom, .-addRandom
	.globl	initBoard
	.type	initBoard, @function
initBoard:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	BYTE PTR -2[rbp], 0
	jmp	.L77
.L80:
	mov	BYTE PTR -1[rbp], 0
	jmp	.L78
.L79:
	movzx	eax, BYTE PTR -2[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	mov	BYTE PTR [rdx+rax], 0
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L78:
	cmp	BYTE PTR -1[rbp], 3
	jbe	.L79
	movzx	eax, BYTE PTR -2[rbp]
	add	eax, 1
	mov	BYTE PTR -2[rbp], al
.L77:
	cmp	BYTE PTR -2[rbp], 3
	jbe	.L80
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	addRandom
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	addRandom
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	drawBoard
	mov	DWORD PTR score[rip], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	initBoard, .-initBoard
	.globl	setBufferedInput
	.type	setBufferedInput, @function
setBufferedInput:
.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, 96
	mov	eax, edi
	mov	BYTE PTR -84[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	BYTE PTR -84[rbp], 0
	je	.L82
	movzx	eax, BYTE PTR enabled.1[rip]
	xor	eax, 1
	test	al, al
	je	.L82
	lea	rdx, old.0[rip]
	mov	esi, 0
	mov	edi, 0
	call	tcsetattr@PLT
	mov	BYTE PTR enabled.1[rip], 1
	jmp	.L85
.L82:
	movzx	eax, BYTE PTR -84[rbp]
	xor	eax, 1
	test	al, al
	je	.L85
	movzx	eax, BYTE PTR enabled.1[rip]
	test	al, al
	je	.L85
	lea	rax, -80[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	tcgetattr@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR old.0[rip], rax
	mov	QWORD PTR old.0[rip+8], rdx
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR old.0[rip+16], rax
	mov	QWORD PTR old.0[rip+24], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR old.0[rip+32], rax
	mov	QWORD PTR old.0[rip+40], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR old.0[rip+48], rax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR old.0[rip+56], eax
	mov	eax, DWORD PTR -68[rbp]
	and	eax, -11
	mov	DWORD PTR -68[rbp], eax
	lea	rax, -80[rbp]
	mov	rdx, rax
	mov	esi, 0
	mov	edi, 0
	call	tcsetattr@PLT
	mov	BYTE PTR enabled.1[rip], 0
.L85:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L84
	call	__stack_chk_fail@PLT
.L84:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	setBufferedInput, .-setBufferedInput
	.section	.rodata
.LC11:
	.string	"%d "
.LC12:
	.string	"=> "
.LC13:
	.string	"expected "
	.align 8
.LC14:
	.string	"All %u tests executed successfully\n"
	.text
	.globl	test
	.type	test, @function
test:
.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, 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 4311744512
	movabs	rdx, 8606777344
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -104[rbp], rdx
	movabs	rax, 8606712064
	movabs	rdx, 8606711809
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -88[rbp], rdx
	movabs	rax, 8590000129
	movabs	rdx, 1108101628161
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	movabs	rax, 1108118405121
	movabs	rdx, 1108118339841
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	movabs	rax, 2207630033153
	movabs	rdx, 2211925000706
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	movabs	rax, 3307158503681
	movabs	rdx, 2211925000195
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	movabs	rax, 2207630032898
	mov	QWORD PTR -16[rbp], rax
	mov	BYTE PTR -138[rbp], 1
	mov	BYTE PTR -137[rbp], 13
	mov	BYTE PTR -140[rbp], 0
	jmp	.L87
.L103:
	movzx	eax, BYTE PTR -140[rbp]
	sal	eax, 3
	cdqe
	lea	rdx, -112[rbp]
	add	rax, rdx
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	add	rax, 4
	mov	QWORD PTR -128[rbp], rax
	mov	BYTE PTR -139[rbp], 0
	jmp	.L88
.L89:
	movzx	edx, BYTE PTR -139[rbp]
	mov	rax, QWORD PTR -136[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -139[rbp]
	movzx	edx, BYTE PTR [rdx]
	cdqe
	mov	BYTE PTR -116[rbp+rax], dl
	movzx	eax, BYTE PTR -139[rbp]
	add	eax, 1
	mov	BYTE PTR -139[rbp], al
.L88:
	cmp	BYTE PTR -139[rbp], 3
	jbe	.L89
	lea	rax, -116[rbp]
	mov	rdi, rax
	call	slideArray
	mov	BYTE PTR -139[rbp], 0
	jmp	.L90
.L92:
	movzx	eax, BYTE PTR -139[rbp]
	cdqe
	movzx	edx, BYTE PTR -116[rbp+rax]
	movzx	ecx, BYTE PTR -139[rbp]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	je	.L91
	mov	BYTE PTR -138[rbp], 0
.L91:
	movzx	eax, BYTE PTR -139[rbp]
	add	eax, 1
	mov	BYTE PTR -139[rbp], al
.L90:
	cmp	BYTE PTR -139[rbp], 3
	jbe	.L92
	movzx	eax, BYTE PTR -138[rbp]
	xor	eax, 1
	test	al, al
	je	.L93
	mov	BYTE PTR -139[rbp], 0
	jmp	.L94
.L95:
	movzx	edx, BYTE PTR -139[rbp]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -139[rbp]
	add	eax, 1
	mov	BYTE PTR -139[rbp], al
.L94:
	cmp	BYTE PTR -139[rbp], 3
	jbe	.L95
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	BYTE PTR -139[rbp], 0
	jmp	.L96
.L97:
	movzx	eax, BYTE PTR -139[rbp]
	cdqe
	movzx	eax, BYTE PTR -116[rbp+rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -139[rbp]
	add	eax, 1
	mov	BYTE PTR -139[rbp], al
.L96:
	cmp	BYTE PTR -139[rbp], 3
	jbe	.L97
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	BYTE PTR -139[rbp], 0
	jmp	.L98
.L99:
	movzx	edx, BYTE PTR -139[rbp]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -139[rbp]
	add	eax, 1
	mov	BYTE PTR -139[rbp], al
.L98:
	cmp	BYTE PTR -139[rbp], 3
	jbe	.L99
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	BYTE PTR -139[rbp], 0
	jmp	.L100
.L101:
	movzx	edx, BYTE PTR -139[rbp]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -139[rbp]
	add	eax, 1
	mov	BYTE PTR -139[rbp], al
.L100:
	cmp	BYTE PTR -139[rbp], 3
	jbe	.L101
	mov	edi, 10
	call	putchar@PLT
	jmp	.L102
.L93:
	movzx	eax, BYTE PTR -140[rbp]
	add	eax, 1
	mov	BYTE PTR -140[rbp], al
.L87:
	movzx	eax, BYTE PTR -140[rbp]
	cmp	al, BYTE PTR -137[rbp]
	jb	.L103
.L102:
	cmp	BYTE PTR -138[rbp], 0
	je	.L104
	movzx	eax, BYTE PTR -137[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
.L104:
	movzx	eax, BYTE PTR -138[rbp]
	xor	eax, 1
	movzx	eax, al
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L106
	call	__stack_chk_fail@PLT
.L106:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	test, .-test
	.section	.rodata
.LC15:
	.string	"         TERMINATED         "
.LC16:
	.string	"\033[?25h\033[m"
	.text
	.globl	signal_callback_handler
	.type	signal_callback_handler, @function
signal_callback_handler:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	edi, 1
	call	setBufferedInput
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	exit@PLT
	.cfi_endproc
.LFE16:
	.size	signal_callback_handler, .-signal_callback_handler
	.section	.rodata
.LC17:
	.string	"test"
.LC18:
	.string	"blackwhite"
.LC19:
	.string	"bluered"
.LC20:
	.string	"\033[?25l\033[2J"
	.align 8
.LC21:
	.string	"\nError! Cannot read keyboard input!"
.LC22:
	.string	"         GAME OVER          "
.LC23:
	.string	"        QUIT? (y/n)         "
.LC24:
	.string	"       RESTART? (y/n)       "
	.text
	.globl	main
	.type	main, @function
main:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -52[rbp], 2
	jne	.L109
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L109
	mov	eax, 0
	call	test
	jmp	.L128
.L109:
	cmp	DWORD PTR -52[rbp], 2
	jne	.L111
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L111
	mov	BYTE PTR scheme[rip], 1
.L111:
	cmp	DWORD PTR -52[rbp], 2
	jne	.L112
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L112
	mov	BYTE PTR scheme[rip], 2
.L112:
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, signal_callback_handler[rip]
	mov	edi, 2
	call	__sysv_signal@PLT
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	initBoard
	mov	edi, 0
	call	setBufferedInput
.L127:
	call	getchar@PLT
	mov	BYTE PTR -34[rbp], al
	cmp	BYTE PTR -34[rbp], -1
	jne	.L113
	lea	rdi, .LC21[rip]
	call	puts@PLT
	jmp	.L114
.L113:
	movsx	eax, BYTE PTR -34[rbp]
	sub	eax, 65
	cmp	eax, 54
	ja	.L115
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L117[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L117[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L117:
	.long	.L116-.L117
	.long	.L118-.L117
	.long	.L119-.L117
	.long	.L120-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L120-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L119-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L120-.L117
	.long	.L115-.L117
	.long	.L118-.L117
	.long	.L116-.L117
	.long	.L119-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L118-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L115-.L117
	.long	.L116-.L117
	.text
.L120:
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	moveLeft
	mov	BYTE PTR -33[rbp], al
	jmp	.L121
.L119:
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	moveRight
	mov	BYTE PTR -33[rbp], al
	jmp	.L121
.L116:
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	moveUp
	mov	BYTE PTR -33[rbp], al
	jmp	.L121
.L118:
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	moveDown
	mov	BYTE PTR -33[rbp], al
	jmp	.L121
.L115:
	mov	BYTE PTR -33[rbp], 0
.L121:
	cmp	BYTE PTR -33[rbp], 0
	je	.L122
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	drawBoard
	mov	edi, 150000
	call	usleep@PLT
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	addRandom
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	drawBoard
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	gameEnded
	test	al, al
	je	.L122
	lea	rdi, .LC22[rip]
	call	puts@PLT
	jmp	.L114
.L122:
	cmp	BYTE PTR -34[rbp], 113
	jne	.L123
	lea	rdi, .LC23[rip]
	call	puts@PLT
	call	getchar@PLT
	mov	BYTE PTR -34[rbp], al
	cmp	BYTE PTR -34[rbp], 121
	je	.L130
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	drawBoard
.L123:
	cmp	BYTE PTR -34[rbp], 114
	jne	.L127
	lea	rdi, .LC24[rip]
	call	puts@PLT
	call	getchar@PLT
	mov	BYTE PTR -34[rbp], al
	cmp	BYTE PTR -34[rbp], 121
	jne	.L126
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	initBoard
.L126:
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	drawBoard
	jmp	.L127
.L130:
	nop
.L114:
	mov	edi, 1
	call	setBufferedInput
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L128:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L129
	call	__stack_chk_fail@PLT
.L129:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	main, .-main
	.local	initialized.2
	.comm	initialized.2,1,1
	.data
	.type	enabled.1, @object
	.size	enabled.1, 1
enabled.1:
	.byte	1
	.local	old.0
	.comm	old.0,60,32
	.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	"884460.c"
	.text
	.global	score
	.bss
	.align	2
	.type	score, %object
	.size	score, 4
score:
	.space	4
	.global	scheme
	.type	scheme, %object
	.size	scheme, 1
scheme:
	.space	1
	.section	.rodata
	.align	2
.LC3:
	.ascii	"\033[38;5;%d;48;5;%dm\000"
	.align	2
.LC0:
	.ascii	"\010\377\001\377\002\377\003\377\004\377\005\377\006"
	.ascii	"\377\007\377\011\000\012\000\013\000\014\000\015\000"
	.ascii	"\016\000\377\000\377\000"
	.align	2
.LC1:
	.ascii	"\350\377\352\377\354\377\356\377\360\377\362\377\364"
	.ascii	"\377\366\000\370\000\371\000\372\000\373\000\374\000"
	.ascii	"\375\000\376\000\377\000"
	.align	2
.LC2:
	.ascii	"\353\377?\3779\377]\377\201\377\245\377\311\377\310"
	.ascii	"\377\307\377\306\377\305\377\304\377\304\377\304\377"
	.ascii	"\304\377\304\377"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getColor
	.syntax unified
	.arm
	.fpu softvfp
	.type	getColor, %function
getColor:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	mov	r3, r0
	str	r1, [fp, #-132]
	str	r2, [fp, #-136]
	strb	r3, [fp, #-125]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L6+4
	sub	ip, fp, #104
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L6+8
	sub	ip, fp, #72
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L6+12
	sub	ip, fp, #40
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #104
	str	r3, [fp, #-116]
	sub	r3, fp, #72
	str	r3, [fp, #-112]
	sub	r3, fp, #40
	str	r3, [fp, #-108]
	ldr	r3, .L6+16
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-112]
	str	r3, [fp, #-124]
	ldr	r3, .L6+16
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-120]
	ldrb	r3, [fp, #-125]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L2
	b	.L3
.L4:
	ldr	r3, [fp, #-124]
	add	r2, r3, #2
	ldr	r3, .L6+16
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-112]
	add	r3, r3, #32
	cmp	r2, r3
	bcs	.L3
	ldr	r3, [fp, #-124]
	add	r3, r3, #2
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-120]
	add	r3, r3, #2
	str	r3, [fp, #-120]
.L3:
	ldrb	r3, [fp, #-125]	@ zero_extendqisi2
	sub	r2, r3, #1
	strb	r2, [fp, #-125]
	cmp	r3, #0
	bne	.L4
.L2:
	ldr	r3, [fp, #-120]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-124]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L6+20
	ldr	r1, [fp, #-136]
	ldr	r0, [fp, #-132]
	bl	snprintf
	nop
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	scheme
	.word	.LC3
	.size	getColor, .-getColor
	.section	.rodata
	.align	2
.LC5:
	.ascii	"\033[H\000"
	.align	2
.LC6:
	.ascii	"2048.c %17d pts\012\012\000"
	.align	2
.LC7:
	.ascii	"%s\000"
	.align	2
.LC8:
	.ascii	"       \000"
	.align	2
.LC9:
	.ascii	"%u\000"
	.align	2
.LC10:
	.ascii	"\000"
	.align	2
.LC11:
	.ascii	"%*s%s%*s\000"
	.align	2
.LC12:
	.ascii	"   \302\267   \000"
	.align	2
.LC13:
	.ascii	"        \342\206\220,\342\206\221,\342\206\222,\342"
	.ascii	"\206\223 or q        \000"
	.align	2
.LC14:
	.ascii	"\033[A\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	drawBoard
	.syntax unified
	.arm
	.fpu softvfp
	.type	drawBoard, %function
drawBoard:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-72]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L20+4
	str	r3, [fp, #-60]
	ldr	r0, .L20+8
	bl	printf
	ldr	r3, .L20+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L20+16
	bl	printf
	mov	r3, #0
	strb	r3, [fp, #-62]
	b	.L9
.L18:
	mov	r3, #0
	strb	r3, [fp, #-63]
	b	.L10
.L11:
	ldrb	r3, [fp, #-63]	@ zero_extendqisi2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r2, r2, r3
	ldrb	r3, [fp, #-62]	@ zero_extendqisi2
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	sub	r1, fp, #48
	mov	r2, #40
	mov	r0, r3
	bl	getColor
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, .L20+20
	bl	printf
	ldr	r0, .L20+24
	bl	printf
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, .L20+20
	bl	printf
	ldrb	r3, [fp, #-63]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-63]
.L10:
	ldrb	r3, [fp, #-63]	@ zero_extendqisi2
	cmp	r3, #3
	bls	.L11
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	strb	r3, [fp, #-63]
	b	.L12
.L15:
	ldrb	r3, [fp, #-63]	@ zero_extendqisi2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r2, r2, r3
	ldrb	r3, [fp, #-62]	@ zero_extendqisi2
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	sub	r1, fp, #48
	mov	r2, #40
	mov	r0, r3
	bl	getColor
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, .L20+20
	bl	printf
	ldrb	r3, [fp, #-63]	@ zero_extendqisi2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r2, r2, r3
	ldrb	r3, [fp, #-62]	@ zero_extendqisi2
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L13
	ldrb	r3, [fp, #-63]	@ zero_extendqisi2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r2, r2, r3
	ldrb	r3, [fp, #-62]	@ zero_extendqisi2
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, #1
	lsl	r3, r3, r2
	sub	r0, fp, #56
	ldr	r2, .L20+28
	mov	r1, #8
	bl	snprintf
	sub	r3, fp, #56
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	and	r3, r3, #255
	rsb	r3, r3, #7
	strb	r3, [fp, #-61]
	ldrb	r3, [fp, #-61]	@ zero_extendqisi2
	ldrb	r2, [fp, #-61]	@ zero_extendqisi2
	lsr	r2, r2, #1
	and	r2, r2, #255
	sub	r1, r3, r2
	ldrb	r3, [fp, #-61]	@ zero_extendqisi2
	lsr	r3, r3, #1
	and	r3, r3, #255
	mov	r0, r3
	sub	r3, fp, #56
	ldr	r2, .L20+32
	str	r2, [sp, #4]
	str	r0, [sp]
	ldr	r2, .L20+32
	ldr	r0, .L20+36
	bl	printf
	b	.L14
.L13:
	ldr	r0, .L20+40
	bl	printf
.L14:
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, .L20+20
	bl	printf
	ldrb	r3, [fp, #-63]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-63]
.L12:
	ldrb	r3, [fp, #-63]	@ zero_extendqisi2
	cmp	r3, #3
	bls	.L15
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	strb	r3, [fp, #-63]
	b	.L16
.L17:
	ldrb	r3, [fp, #-63]	@ zero_extendqisi2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-72]
	add	r2, r2, r3
	ldrb	r3, [fp, #-62]	@ zero_extendqisi2
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	sub	r1, fp, #48
	mov	r2, #40
	mov	r0, r3
	bl	getColor
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, .L20+20
	bl	printf
	ldr	r0, .L20+24
	bl	printf
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, .L20+20
	bl	printf
	ldrb	r3, [fp, #-63]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-63]
.L16:
	ldrb	r3, [fp, #-63]	@ zero_extendqisi2
	cmp	r3, #3
	bls	.L17
	mov	r0, #10
	bl	putchar
	ldrb	r3, [fp, #-62]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-62]
.L9:
	ldrb	r3, [fp, #-62]	@ zero_extendqisi2
	cmp	r3, #3
	bls	.L18
	mov	r0, #10
	bl	putchar
	ldr	r0, .L20+44
	bl	puts
	ldr	r0, .L20+48
	bl	printf
	nop
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC15
	.word	7166747
	.word	.LC5
	.word	score
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	drawBoard, .-drawBoard
	.align	2
	.global	findTarget
	.syntax unified
	.arm
	.fpu softvfp
	.type	findTarget, %function
findTarget:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, r1
	strb	r3, [fp, #-17]
	mov	r3, r2
	strb	r3, [fp, #-18]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L23
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	b	.L24
.L23:
	ldrb	r3, [fp, #-17]
	sub	r3, r3, #1
	strb	r3, [fp, #-5]
.L28:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L25
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L26
	ldrb	r3, [fp, #-5]
	add	r3, r3, #1
	and	r3, r3, #255
	b	.L24
.L26:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	b	.L24
.L25:
	ldrb	r2, [fp, #-5]	@ zero_extendqisi2
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L27
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	b	.L24
.L27:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	sub	r3, r3, #1
	strb	r3, [fp, #-5]
	b	.L28
.L24:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	findTarget, .-findTarget
	.align	2
	.global	slideArray
	.syntax unified
	.arm
	.fpu softvfp
	.type	slideArray, %function
slideArray:
	@ 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]
	mov	r3, #0
	strb	r3, [fp, #-8]
	mov	r3, #0
	strb	r3, [fp, #-6]
	mov	r3, #0
	strb	r3, [fp, #-7]
	b	.L30
.L34:
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L31
	ldrb	r2, [fp, #-6]	@ zero_extendqisi2
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	findTarget
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r2, [fp, #-5]	@ zero_extendqisi2
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L31
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L32
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	b	.L33
.L32:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L33
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	add	r2, r2, #1
	and	r2, r2, #255
	strb	r2, [r3]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, #1
	lsl	r2, r3, r2
	ldr	r3, .L36
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L36
	str	r3, [r2]
	ldrb	r3, [fp, #-5]
	add	r3, r3, #1
	strb	r3, [fp, #-6]
.L33:
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #1
	strb	r3, [fp, #-8]
.L31:
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-7]
.L30:
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	cmp	r3, #3
	bls	.L34
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	score
	.size	slideArray, .-slideArray
	.align	2
	.global	rotateBoard
	.syntax unified
	.arm
	.fpu softvfp
	.type	rotateBoard, %function
rotateBoard:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #4
	strb	r3, [fp, #-6]
	mov	r3, #0
	strb	r3, [fp, #-8]
	b	.L39
.L42:
	ldrb	r3, [fp, #-8]
	strb	r3, [fp, #-7]
	b	.L40
.L41:
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	ldrb	r3, [r2, r3]
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r0, r2, r3
	ldrb	r2, [fp, #-6]	@ zero_extendqisi2
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	sub	r3, r2, r3
	sub	r1, r3, #1
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	ldrb	r1, [r0, r1]	@ zero_extendqisi2
	strb	r1, [r2, r3]
	ldrb	r2, [fp, #-6]	@ zero_extendqisi2
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	sub	r3, r2, r3
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r0, r2, r3
	ldrb	r2, [fp, #-6]	@ zero_extendqisi2
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	sub	r3, r2, r3
	sub	r1, r3, #1
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldrb	ip, [fp, #-6]	@ zero_extendqisi2
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	sub	r3, ip, r3
	sub	r3, r3, #1
	ldrb	r1, [r0, r1]	@ zero_extendqisi2
	strb	r1, [r2, r3]
	ldrb	r2, [fp, #-6]	@ zero_extendqisi2
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	sub	r3, r2, r3
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r0, r2, r3
	ldrb	r1, [fp, #-8]	@ zero_extendqisi2
	ldrb	r2, [fp, #-6]	@ zero_extendqisi2
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	sub	r3, r2, r3
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldrb	ip, [fp, #-6]	@ zero_extendqisi2
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	sub	r3, ip, r3
	sub	r3, r3, #1
	ldrb	r1, [r0, r1]	@ zero_extendqisi2
	strb	r1, [r2, r3]
	ldrb	r2, [fp, #-6]	@ zero_extendqisi2
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	sub	r3, r2, r3
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	ldrb	r1, [fp, #-5]
	strb	r1, [r2, r3]
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-7]
.L40:
	ldrb	r2, [fp, #-7]	@ zero_extendqisi2
	ldrb	r1, [fp, #-6]	@ zero_extendqisi2
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	sub	r3, r1, r3
	sub	r3, r3, #1
	cmp	r2, r3
	blt	.L41
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-8]
.L39:
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	lsr	r3, r3, #1
	and	r3, r3, #255
	ldrb	r2, [fp, #-8]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L42
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	rotateBoard, .-rotateBoard
	.align	2
	.global	moveUp
	.syntax unified
	.arm
	.fpu softvfp
	.type	moveUp, %function
moveUp:
	@ 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]
	mov	r3, #0
	strb	r3, [fp, #-6]
	mov	r3, #0
	strb	r3, [fp, #-5]
	b	.L44
.L45:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r0, r3
	bl	slideArray
	mov	r3, r0
	mov	r2, r3
	ldrb	r3, [fp, #-6]
	orr	r3, r2, r3
	and	r3, r3, #255
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	strb	r3, [fp, #-6]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L44:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #3
	bls	.L45
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	moveUp, .-moveUp
	.align	2
	.global	moveLeft
	.syntax unified
	.arm
	.fpu softvfp
	.type	moveLeft, %function
moveLeft:
	@ 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	r0, [fp, #-16]
	bl	rotateBoard
	ldr	r0, [fp, #-16]
	bl	moveUp
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldr	r0, [fp, #-16]
	bl	rotateBoard
	ldr	r0, [fp, #-16]
	bl	rotateBoard
	ldr	r0, [fp, #-16]
	bl	rotateBoard
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	moveLeft, .-moveLeft
	.align	2
	.global	moveDown
	.syntax unified
	.arm
	.fpu softvfp
	.type	moveDown, %function
moveDown:
	@ 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	r0, [fp, #-16]
	bl	rotateBoard
	ldr	r0, [fp, #-16]
	bl	rotateBoard
	ldr	r0, [fp, #-16]
	bl	moveUp
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldr	r0, [fp, #-16]
	bl	rotateBoard
	ldr	r0, [fp, #-16]
	bl	rotateBoard
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	moveDown, .-moveDown
	.align	2
	.global	moveRight
	.syntax unified
	.arm
	.fpu softvfp
	.type	moveRight, %function
moveRight:
	@ 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	r0, [fp, #-16]
	bl	rotateBoard
	ldr	r0, [fp, #-16]
	bl	rotateBoard
	ldr	r0, [fp, #-16]
	bl	rotateBoard
	ldr	r0, [fp, #-16]
	bl	moveUp
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldr	r0, [fp, #-16]
	bl	rotateBoard
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	moveRight, .-moveRight
	.align	2
	.global	findPairDown
	.syntax unified
	.arm
	.fpu softvfp
	.type	findPairDown, %function
findPairDown:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	strb	r3, [fp, #-5]
	mov	r3, #0
	strb	r3, [fp, #-7]
	b	.L54
.L59:
	mov	r3, #0
	strb	r3, [fp, #-6]
	b	.L55
.L58:
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	ldrb	r2, [r2, r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	lsl	r3, r3, #2
	ldr	r1, [fp, #-16]
	add	r1, r1, r3
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	add	r3, r3, #1
	ldrb	r3, [r1, r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L56
	mov	r3, #1
	b	.L57
.L56:
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-6]
.L55:
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	cmp	r3, #2
	bls	.L58
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-7]
.L54:
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	cmp	r3, #3
	bls	.L59
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
.L57:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	findPairDown, .-findPairDown
	.align	2
	.global	countEmpty
	.syntax unified
	.arm
	.fpu softvfp
	.type	countEmpty, %function
countEmpty:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	strb	r3, [fp, #-5]
	mov	r3, #0
	strb	r3, [fp, #-7]
	b	.L61
.L65:
	mov	r3, #0
	strb	r3, [fp, #-6]
	b	.L62
.L64:
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L63
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L63:
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-6]
.L62:
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	cmp	r3, #3
	bls	.L64
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-7]
.L61:
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	cmp	r3, #3
	bls	.L65
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	countEmpty, .-countEmpty
	.align	2
	.global	gameEnded
	.syntax unified
	.arm
	.fpu softvfp
	.type	gameEnded, %function
gameEnded:
	@ 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]
	mov	r3, #1
	strb	r3, [fp, #-5]
	ldr	r0, [fp, #-16]
	bl	countEmpty
	mov	r3, r0
	cmp	r3, #0
	beq	.L68
	mov	r3, #0
	b	.L69
.L68:
	ldr	r0, [fp, #-16]
	bl	findPairDown
	mov	r3, r0
	cmp	r3, #0
	beq	.L70
	mov	r3, #0
	b	.L69
.L70:
	ldr	r0, [fp, #-16]
	bl	rotateBoard
	ldr	r0, [fp, #-16]
	bl	findPairDown
	mov	r3, r0
	cmp	r3, #0
	beq	.L71
	mov	r3, #0
	strb	r3, [fp, #-5]
.L71:
	ldr	r0, [fp, #-16]
	bl	rotateBoard
	ldr	r0, [fp, #-16]
	bl	rotateBoard
	ldr	r0, [fp, #-16]
	bl	rotateBoard
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
.L69:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	gameEnded, .-gameEnded
	.global	__aeabi_idivmod
	.section	.rodata
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	addRandom
	.syntax unified
	.arm
	.fpu softvfp
	.type	addRandom, %function
addRandom:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	ldr	r3, .L82
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-43]
	ldr	r3, .L82+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L73
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	ldr	r3, .L82+4
	mov	r2, #1
	strb	r2, [r3]
.L73:
	mov	r3, #0
	strb	r3, [fp, #-45]
	b	.L74
.L78:
	mov	r3, #0
	strb	r3, [fp, #-44]
	b	.L75
.L77:
	ldrb	r3, [fp, #-45]	@ zero_extendqisi2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r2, r2, r3
	ldrb	r3, [fp, #-44]	@ zero_extendqisi2
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L76
	ldrb	r3, [fp, #-43]	@ zero_extendqisi2
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r2, [fp, #-45]
	strb	r2, [r3, #-36]
	ldrb	r3, [fp, #-43]	@ zero_extendqisi2
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r2, [fp, #-44]
	strb	r2, [r3, #-35]
	ldrb	r3, [fp, #-43]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-43]
.L76:
	ldrb	r3, [fp, #-44]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-44]
.L75:
	ldrb	r3, [fp, #-44]	@ zero_extendqisi2
	cmp	r3, #3
	bls	.L77
	ldrb	r3, [fp, #-45]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-45]
.L74:
	ldrb	r3, [fp, #-45]	@ zero_extendqisi2
	cmp	r3, #3
	bls	.L78
	ldrb	r3, [fp, #-43]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L81
	bl	rand
	mov	r2, r0
	ldrb	r3, [fp, #-43]	@ zero_extendqisi2
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	strb	r3, [fp, #-42]
	ldrb	r3, [fp, #-42]	@ zero_extendqisi2
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-36]
	strb	r3, [fp, #-45]
	ldrb	r3, [fp, #-42]	@ zero_extendqisi2
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-35]
	strb	r3, [fp, #-44]
	bl	rand
	mov	r1, r0
	ldr	r3, .L82+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	ldr	r3, .L82+12
	smull	r1, r3, r2, r3
	asr	r1, r3, #1
	asr	r3, r2, #31
	sub	r3, r1, r3
	and	r3, r3, #255
	add	r3, r3, #1
	strb	r3, [fp, #-41]
	ldrb	r3, [fp, #-45]	@ zero_extendqisi2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r2, r2, r3
	ldrb	r3, [fp, #-44]	@ zero_extendqisi2
	ldrb	r1, [fp, #-41]
	strb	r1, [r2, r3]
.L81:
	nop
	ldr	r3, .L82
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L80
	bl	__stack_chk_fail
.L80:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L83:
	.align	2
.L82:
	.word	.LC16
	.word	initialized.6045
	.word	1717986919
	.word	954437177
	.size	addRandom, .-addRandom
	.align	2
	.global	initBoard
	.syntax unified
	.arm
	.fpu softvfp
	.type	initBoard, %function
initBoard:
	@ 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]
	mov	r3, #0
	strb	r3, [fp, #-6]
	b	.L85
.L88:
	mov	r3, #0
	strb	r3, [fp, #-5]
	b	.L86
.L87:
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r1, #0
	strb	r1, [r2, r3]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L86:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #3
	bls	.L87
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-6]
.L85:
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	cmp	r3, #3
	bls	.L88
	ldr	r0, [fp, #-16]
	bl	addRandom
	ldr	r0, [fp, #-16]
	bl	addRandom
	ldr	r0, [fp, #-16]
	bl	drawBoard
	ldr	r3, .L89
	mov	r2, #0
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L90:
	.align	2
.L89:
	.word	score
	.size	initBoard, .-initBoard
	.section	.rodata
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	setBufferedInput
	.syntax unified
	.arm
	.fpu softvfp
	.type	setBufferedInput, %function
setBufferedInput:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	mov	r3, r0
	strb	r3, [fp, #-69]
	ldr	r3, .L96
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldrb	r3, [fp, #-69]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L92
	ldr	r3, .L96+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L92
	ldr	r2, .L96+8
	mov	r1, #0
	mov	r0, #0
	bl	tcsetattr
	ldr	r3, .L96+4
	mov	r2, #1
	strb	r2, [r3]
	b	.L95
.L92:
	ldrb	r3, [fp, #-69]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L95
	ldr	r3, .L96+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L95
	sub	r3, fp, #68
	mov	r1, r3
	mov	r0, #0
	bl	tcgetattr
	ldr	r3, .L96+8
	mov	lr, r3
	sub	ip, fp, #68
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2}
	stm	lr, {r0, r1, r2}
	ldr	r3, [fp, #-56]
	bic	r3, r3, #10
	str	r3, [fp, #-56]
	sub	r3, fp, #68
	mov	r2, r3
	mov	r1, #0
	mov	r0, #0
	bl	tcsetattr
	ldr	r3, .L96+4
	mov	r2, #0
	strb	r2, [r3]
.L95:
	nop
	ldr	r3, .L96
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L94
	bl	__stack_chk_fail
.L94:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L97:
	.align	2
.L96:
	.word	.LC17
	.word	enabled.6072
	.word	old.6073
	.size	setBufferedInput, .-setBufferedInput
	.section	.rodata
	.align	2
.LC19:
	.ascii	"%d \000"
	.align	2
.LC20:
	.ascii	"=> \000"
	.align	2
.LC21:
	.ascii	"expected \000"
	.align	2
.LC22:
	.ascii	"All %u tests executed successfully\012\000"
	.align	2
.LC18:
	.ascii	"\000\000\000\001\001\000\000\000\000\000\001\001\002"
	.ascii	"\000\000\000\000\001\000\001\002\000\000\000\001\000"
	.ascii	"\000\001\002\000\000\000\001\000\001\000\002\000\000"
	.ascii	"\000\001\001\001\000\002\001\000\000\001\000\001\001"
	.ascii	"\002\001\000\000\001\001\000\001\002\001\000\000\001"
	.ascii	"\001\001\001\002\002\000\000\002\002\001\001\003\002"
	.ascii	"\000\000\001\001\002\002\002\003\000\000\003\000\001"
	.ascii	"\001\003\002\000\000\002\000\001\001\002\002\000\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test
	.syntax unified
	.arm
	.fpu softvfp
	.type	test, %function
test:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	ldr	r3, .L119
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L119+4
	sub	r3, fp, #112
	mov	r1, r2
	mov	r2, #104
	mov	r0, r3
	bl	memcpy
	mov	r3, #1
	strb	r3, [fp, #-126]
	mov	r3, #13
	strb	r3, [fp, #-125]
	mov	r3, #0
	strb	r3, [fp, #-128]
	b	.L99
.L115:
	ldrb	r3, [fp, #-128]	@ zero_extendqisi2
	lsl	r3, r3, #3
	mov	r2, r3
	sub	r3, fp, #112
	add	r3, r3, r2
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-124]
	add	r3, r3, #4
	str	r3, [fp, #-120]
	mov	r3, #0
	strb	r3, [fp, #-127]
	b	.L100
.L101:
	ldrb	r3, [fp, #-127]	@ zero_extendqisi2
	ldr	r2, [fp, #-124]
	add	r2, r2, r3
	ldrb	r3, [fp, #-127]	@ zero_extendqisi2
	ldrb	r2, [r2]	@ zero_extendqisi2
	sub	r1, fp, #4
	add	r3, r1, r3
	strb	r2, [r3, #-112]
	ldrb	r3, [fp, #-127]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-127]
.L100:
	ldrb	r3, [fp, #-127]	@ zero_extendqisi2
	cmp	r3, #3
	bls	.L101
	sub	r3, fp, #116
	mov	r0, r3
	bl	slideArray
	mov	r3, #0
	strb	r3, [fp, #-127]
	b	.L102
.L104:
	ldrb	r3, [fp, #-127]	@ zero_extendqisi2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r2, [r3, #-112]	@ zero_extendqisi2
	ldrb	r3, [fp, #-127]	@ zero_extendqisi2
	ldr	r1, [fp, #-120]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L103
	mov	r3, #0
	strb	r3, [fp, #-126]
.L103:
	ldrb	r3, [fp, #-127]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-127]
.L102:
	ldrb	r3, [fp, #-127]	@ zero_extendqisi2
	cmp	r3, #3
	bls	.L104
	ldrb	r3, [fp, #-126]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L105
	mov	r3, #0
	strb	r3, [fp, #-127]
	b	.L106
.L107:
	ldrb	r3, [fp, #-127]	@ zero_extendqisi2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L119+8
	bl	printf
	ldrb	r3, [fp, #-127]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-127]
.L106:
	ldrb	r3, [fp, #-127]	@ zero_extendqisi2
	cmp	r3, #3
	bls	.L107
	ldr	r0, .L119+12
	bl	printf
	mov	r3, #0
	strb	r3, [fp, #-127]
	b	.L108
.L109:
	ldrb	r3, [fp, #-127]	@ zero_extendqisi2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-112]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L119+8
	bl	printf
	ldrb	r3, [fp, #-127]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-127]
.L108:
	ldrb	r3, [fp, #-127]	@ zero_extendqisi2
	cmp	r3, #3
	bls	.L109
	ldr	r0, .L119+16
	bl	printf
	mov	r3, #0
	strb	r3, [fp, #-127]
	b	.L110
.L111:
	ldrb	r3, [fp, #-127]	@ zero_extendqisi2
	ldr	r2, [fp, #-124]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L119+8
	bl	printf
	ldrb	r3, [fp, #-127]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-127]
.L110:
	ldrb	r3, [fp, #-127]	@ zero_extendqisi2
	cmp	r3, #3
	bls	.L111
	ldr	r0, .L119+12
	bl	printf
	mov	r3, #0
	strb	r3, [fp, #-127]
	b	.L112
.L113:
	ldrb	r3, [fp, #-127]	@ zero_extendqisi2
	ldr	r2, [fp, #-120]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L119+8
	bl	printf
	ldrb	r3, [fp, #-127]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-127]
.L112:
	ldrb	r3, [fp, #-127]	@ zero_extendqisi2
	cmp	r3, #3
	bls	.L113
	mov	r0, #10
	bl	putchar
	b	.L114
.L105:
	ldrb	r3, [fp, #-128]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-128]
.L99:
	ldrb	r2, [fp, #-128]	@ zero_extendqisi2
	ldrb	r3, [fp, #-125]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L115
.L114:
	ldrb	r3, [fp, #-126]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L116
	ldrb	r3, [fp, #-125]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L119+20
	bl	printf
.L116:
	ldrb	r3, [fp, #-126]
	eor	r3, r3, #1
	and	r3, r3, #255
	ldr	r2, .L119
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L118
	bl	__stack_chk_fail
.L118:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L120:
	.align	2
.L119:
	.word	.LC23
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	test, .-test
	.section	.rodata
	.align	2
.LC24:
	.ascii	"         TERMINATED         \000"
	.align	2
.LC25:
	.ascii	"\033[?25h\033[m\000"
	.text
	.align	2
	.global	signal_callback_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	signal_callback_handler, %function
signal_callback_handler:
	@ 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]
	ldr	r0, .L122
	bl	puts
	mov	r0, #1
	bl	setBufferedInput
	ldr	r0, .L122+4
	bl	printf
	ldr	r0, [fp, #-8]
	bl	exit
.L123:
	.align	2
.L122:
	.word	.LC24
	.word	.LC25
	.size	signal_callback_handler, .-signal_callback_handler
	.section	.rodata
	.align	2
.LC26:
	.ascii	"test\000"
	.align	2
.LC27:
	.ascii	"blackwhite\000"
	.align	2
.LC28:
	.ascii	"bluered\000"
	.align	2
.LC29:
	.ascii	"\033[?25l\033[2J\000"
	.align	2
.LC30:
	.ascii	"         GAME OVER          \000"
	.align	2
.LC31:
	.ascii	"        QUIT? (y/n)         \000"
	.align	2
.LC32:
	.ascii	"       RESTART? (y/n)       \000"
	.align	2
.LC33:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L146
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	bne	.L125
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L146+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L125
	bl	test
	mov	r3, r0
	b	.L143
.L125:
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	bne	.L127
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L146+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L127
	ldr	r3, .L146+12
	mov	r2, #1
	strb	r2, [r3]
.L127:
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	bne	.L128
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L146+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L128
	ldr	r3, .L146+12
	mov	r2, #2
	strb	r2, [r3]
.L128:
	ldr	r0, .L146+20
	bl	printf
	ldr	r1, .L146+24
	mov	r0, #2
	bl	__sysv_signal
	sub	r3, fp, #24
	mov	r0, r3
	bl	initBoard
	mov	r0, #0
	bl	setBufferedInput
.L142:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-26]
	ldrb	r3, [fp, #-26]	@ zero_extendqisi2
	sub	r3, r3, #65
	cmp	r3, #54
	ldrls	pc, [pc, r3, asl #2]
	b	.L129
.L131:
	.word	.L130
	.word	.L132
	.word	.L133
	.word	.L134
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L134
	.word	.L129
	.word	.L129
	.word	.L133
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L134
	.word	.L129
	.word	.L132
	.word	.L130
	.word	.L133
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L132
	.word	.L129
	.word	.L129
	.word	.L129
	.word	.L130
.L134:
	sub	r3, fp, #24
	mov	r0, r3
	bl	moveLeft
	mov	r3, r0
	strb	r3, [fp, #-25]
	b	.L135
.L133:
	sub	r3, fp, #24
	mov	r0, r3
	bl	moveRight
	mov	r3, r0
	strb	r3, [fp, #-25]
	b	.L135
.L130:
	sub	r3, fp, #24
	mov	r0, r3
	bl	moveUp
	mov	r3, r0
	strb	r3, [fp, #-25]
	b	.L135
.L132:
	sub	r3, fp, #24
	mov	r0, r3
	bl	moveDown
	mov	r3, r0
	strb	r3, [fp, #-25]
	b	.L135
.L129:
	mov	r3, #0
	strb	r3, [fp, #-25]
.L135:
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L136
	sub	r3, fp, #24
	mov	r0, r3
	bl	drawBoard
	ldr	r0, .L146+28
	bl	usleep
	sub	r3, fp, #24
	mov	r0, r3
	bl	addRandom
	sub	r3, fp, #24
	mov	r0, r3
	bl	drawBoard
	sub	r3, fp, #24
	mov	r0, r3
	bl	gameEnded
	mov	r3, r0
	cmp	r3, #0
	beq	.L136
	ldr	r0, .L146+32
	bl	puts
	b	.L137
.L136:
	ldrb	r3, [fp, #-26]	@ zero_extendqisi2
	cmp	r3, #113
	bne	.L138
	ldr	r0, .L146+36
	bl	puts
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-26]
	ldrb	r3, [fp, #-26]	@ zero_extendqisi2
	cmp	r3, #121
	beq	.L145
	sub	r3, fp, #24
	mov	r0, r3
	bl	drawBoard
.L138:
	ldrb	r3, [fp, #-26]	@ zero_extendqisi2
	cmp	r3, #114
	bne	.L142
	ldr	r0, .L146+40
	bl	puts
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-26]
	ldrb	r3, [fp, #-26]	@ zero_extendqisi2
	cmp	r3, #121
	bne	.L141
	sub	r3, fp, #24
	mov	r0, r3
	bl	initBoard
.L141:
	sub	r3, fp, #24
	mov	r0, r3
	bl	drawBoard
	b	.L142
.L145:
	nop
.L137:
	mov	r0, #1
	bl	setBufferedInput
	ldr	r0, .L146+44
	bl	printf
	mov	r3, #0
.L143:
	ldr	r2, .L146
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L144
	bl	__stack_chk_fail
.L144:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L147:
	.align	2
.L146:
	.word	.LC33
	.word	.LC26
	.word	.LC27
	.word	scheme
	.word	.LC28
	.word	.LC29
	.word	signal_callback_handler
	.word	150000
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC25
	.size	main, .-main
	.local	initialized.6045
	.comm	initialized.6045,1,1
	.data
	.type	enabled.6072, %object
	.size	enabled.6072, 1
enabled.6072:
	.byte	1
	.local	old.6073
	.comm	old.6073,60,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
