	.file	"24583.c"
	.intel_syntax noprefix
	.text
	.globl	tetromino_first
	.bss
	.align 32
	.type	tetromino_first, @object
	.size	tetromino_first, 132
tetromino_first:
	.zero	132
	.globl	tetromino_next
	.align 32
	.type	tetromino_next, @object
	.size	tetromino_next, 132
tetromino_next:
	.zero	132
	.globl	coord_x
	.section	.rodata
	.align 32
	.type	coord_x, @object
	.size	coord_x, 224
coord_x:
	.long	0
	.long	5
	.long	0
	.long	0
	.long	4
	.long	5
	.long	6
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	4
	.long	5
	.long	6
	.long	7
	.long	4
	.long	5
	.long	0
	.long	0
	.long	4
	.long	5
	.long	0
	.long	0
	.long	4
	.long	5
	.long	0
	.long	0
	.long	0
	.long	5
	.long	6
	.long	0
	.long	0
	.long	5
	.long	6
	.long	0
	.long	4
	.long	5
	.long	0
	.long	0
	.long	4
	.long	0
	.long	0
	.long	0
	.long	4
	.long	5
	.long	6
	.long	0
	.long	0
	.long	0
	.long	6
	.long	0
	.long	4
	.long	5
	.long	6
	.long	0
	.globl	coord_y
	.align 32
	.type	coord_y, @object
	.size	coord_y, 224
coord_y:
	.long	0
	.long	1
	.long	0
	.long	0
	.long	2
	.long	2
	.long	2
	.long	0
	.long	0
	.long	0
	.long	0
	.long	0
	.long	2
	.long	2
	.long	2
	.long	2
	.long	1
	.long	1
	.long	0
	.long	0
	.long	2
	.long	2
	.long	0
	.long	0
	.long	1
	.long	1
	.long	0
	.long	0
	.long	0
	.long	2
	.long	2
	.long	0
	.long	0
	.long	1
	.long	1
	.long	0
	.long	2
	.long	2
	.long	0
	.long	0
	.long	1
	.long	0
	.long	0
	.long	0
	.long	2
	.long	2
	.long	2
	.long	0
	.long	0
	.long	0
	.long	1
	.long	0
	.long	2
	.long	2
	.long	2
	.long	0
	.globl	height
	.bss
	.align 4
	.type	height, @object
	.size	height, 4
height:
	.zero	4
	.globl	down_bottom_flag
	.align 4
	.type	down_bottom_flag, @object
	.size	down_bottom_flag, 4
down_bottom_flag:
	.zero	4
	.globl	line
	.align 4
	.type	line, @object
	.size	line, 4
line:
	.zero	4
	.globl	score
	.align 4
	.type	score, @object
	.size	score, 4
score:
	.zero	4
	.globl	level
	.align 4
	.type	level, @object
	.size	level, 4
level:
	.zero	4
	.globl	map
	.align 32
	.type	map, @object
	.size	map, 1496
map:
	.zero	1496
	.globl	mut
	.align 32
	.type	mut, @object
	.size	mut, 40
mut:
	.zero	40
	.text
	.globl	getch
	.type	getch, @function
getch:
.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, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -144[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	tcgetattr@PLT
	mov	rax, QWORD PTR -144[rbp]
	mov	rdx, QWORD PTR -136[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR -120[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, QWORD PTR -104[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -88[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	and	eax, -3451
	mov	DWORD PTR -68[rbp], eax
	lea	rax, -80[rbp]
	mov	rdx, rax
	mov	esi, 0
	mov	edi, 0
	call	tcsetattr@PLT
	call	getchar@PLT
	mov	BYTE PTR -145[rbp], al
	lea	rax, -144[rbp]
	mov	rdx, rax
	mov	esi, 0
	mov	edi, 0
	call	tcsetattr@PLT
	movzx	eax, BYTE PTR -145[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getch, .-getch
	.globl	init_map
	.type	init_map, @function
init_map:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -16[rbp], 0
	jmp	.L5
.L11:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L6
.L10:
	cmp	DWORD PTR -12[rbp], 11
	jg	.L7
	cmp	DWORD PTR -16[rbp], 21
	je	.L8
	cmp	DWORD PTR -16[rbp], 0
	je	.L8
	cmp	DWORD PTR -12[rbp], 0
	je	.L8
	cmp	DWORD PTR -12[rbp], 11
	jne	.L7
.L8:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, map[rip]
	mov	DWORD PTR [rdx+rax], 2
	jmp	.L9
.L7:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, map[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 3
	jg	.L9
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, map[rip]
	mov	DWORD PTR [rdx+rax], 0
.L9:
	add	DWORD PTR -12[rbp], 1
.L6:
	cmp	DWORD PTR -12[rbp], 15
	jle	.L10
	add	DWORD PTR -16[rbp], 1
.L5:
	cmp	DWORD PTR -16[rbp], 21
	jle	.L11
	mov	DWORD PTR -8[rbp], 0
	jmp	.L12
.L17:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L13
.L16:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	add	rax, 16
	lea	rdx, 0[0+rax*4]
	lea	rax, tetromino_first[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L14
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	add	rax, 16
	lea	rdx, 0[0+rax*4]
	lea	rax, tetromino_first[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, tetromino_first[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, map[rip]
	mov	DWORD PTR [rdx+rax], 1
.L14:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	add	rax, 16
	lea	rdx, 0[0+rax*4]
	lea	rax, tetromino_next[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L15
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	add	rax, 16
	lea	rdx, 0[0+rax*4]
	lea	rax, tetromino_next[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, tetromino_next[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	add	edx, 8
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, map[rip]
	mov	DWORD PTR [rdx+rax], 3
.L15:
	add	DWORD PTR -4[rbp], 1
.L13:
	cmp	DWORD PTR -4[rbp], 3
	jle	.L16
	add	DWORD PTR -8[rbp], 1
.L12:
	cmp	DWORD PTR -8[rbp], 3
	jle	.L17
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	init_map, .-init_map
	.section	.rodata
.LC0:
	.string	"\033[1;1f\n\n\t\t"
.LC1:
	.string	"  "
.LC2:
	.string	"\033[37;4%dm  \033[0m"
.LC3:
	.string	"\342\200\225\342\200\225"
.LC4:
	.string	"\357\275\234"
.LC5:
	.string	"\357\274\213"
.LC6:
	.string	"\033[37m%s\033[0m"
.LC7:
	.string	"\033[4%dm  \033[0m"
.LC8:
	.string	"\n\t\t"
	.align 8
.LC9:
	.string	"\033[5;9f\033[32mscore:\033[6;9f%5d\033[8;9fline:\033[9;9f%5d\033[11;9flevel:\033[12;9f%5d\n"
	.text
	.globl	draw_map
	.type	draw_map, @function
draw_map:
.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, 16
	lea	rdi, mut[rip]
	call	pthread_mutex_lock@PLT
	call	init_map
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L19
.L35:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L20
.L34:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, map[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 3
	je	.L21
	cmp	eax, 3
	jg	.L22
	cmp	eax, 2
	je	.L23
	cmp	eax, 2
	jg	.L22
	test	eax, eax
	je	.L24
	cmp	eax, 1
	je	.L25
	jmp	.L22
.L24:
	mov	eax, DWORD PTR tetromino_next[rip+128]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L26
.L25:
	mov	eax, DWORD PTR tetromino_first[rip+128]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L26
.L23:
	cmp	DWORD PTR -8[rbp], 0
	je	.L27
	cmp	DWORD PTR -8[rbp], 21
	jne	.L28
.L27:
	cmp	DWORD PTR -4[rbp], 0
	je	.L29
	cmp	DWORD PTR -4[rbp], 11
	je	.L29
.L28:
	cmp	DWORD PTR -8[rbp], 0
	je	.L30
	cmp	DWORD PTR -8[rbp], 21
	jne	.L31
.L30:
	lea	rax, .LC3[rip]
	jmp	.L33
.L31:
	lea	rax, .LC4[rip]
	jmp	.L33
.L29:
	lea	rax, .LC5[rip]
.L33:
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L26
.L21:
	mov	eax, DWORD PTR tetromino_next[rip+128]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L26
.L22:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, map[rip]
	mov	eax, DWORD PTR [rdx+rax]
	sub	eax, 3
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L26:
	add	DWORD PTR -4[rbp], 1
.L20:
	cmp	DWORD PTR -4[rbp], 15
	jle	.L34
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -8[rbp], 1
.L19:
	cmp	DWORD PTR -8[rbp], 21
	jle	.L35
	mov	ecx, DWORD PTR level[rip]
	mov	edx, DWORD PTR line[rip]
	mov	eax, DWORD PTR score[rip]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, mut[rip]
	call	pthread_mutex_unlock@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	draw_map, .-draw_map
	.globl	get_tetromino
	.type	get_tetromino, @function
get_tetromino:
.LFB9:
	.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, 168
	.cfi_offset 3, -24
	mov	QWORD PTR -168[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdx, -160[rbp]
	mov	eax, 0
	mov	ecx, 16
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	call	rand@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm2, QWORD PTR .LC10[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC11[rip]
	mulsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, coord_x[rip]
	lea	rcx, [rdx+rax]
	lea	rax, -160[rbp]
	mov	edx, 32
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, coord_y[rip]
	lea	rcx, [rdx+rax]
	lea	rax, -160[rbp]
	add	rax, 64
	mov	edx, 32
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -168[rbp]
	mov	rcx, QWORD PTR -160[rbp]
	mov	rbx, QWORD PTR -152[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR -144[rbp]
	mov	rbx, QWORD PTR -136[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR -128[rbp]
	mov	rbx, QWORD PTR -120[rbp]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	mov	rcx, QWORD PTR -112[rbp]
	mov	rbx, QWORD PTR -104[rbp]
	mov	QWORD PTR 48[rax], rcx
	mov	QWORD PTR 56[rax], rbx
	mov	rcx, QWORD PTR -96[rbp]
	mov	rbx, QWORD PTR -88[rbp]
	mov	QWORD PTR 64[rax], rcx
	mov	QWORD PTR 72[rax], rbx
	mov	rcx, QWORD PTR -80[rbp]
	mov	rbx, QWORD PTR -72[rbp]
	mov	QWORD PTR 80[rax], rcx
	mov	QWORD PTR 88[rax], rbx
	mov	rcx, QWORD PTR -64[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	mov	QWORD PTR 96[rax], rcx
	mov	QWORD PTR 104[rax], rbx
	mov	rcx, QWORD PTR -48[rbp]
	mov	rbx, QWORD PTR -40[rbp]
	mov	QWORD PTR 112[rax], rcx
	mov	QWORD PTR 120[rax], rbx
	mov	edx, DWORD PTR -32[rbp]
	mov	DWORD PTR 128[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	mov	rax, QWORD PTR -168[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	get_tetromino, .-get_tetromino
	.globl	judge
	.type	judge, @function
judge:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 1
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 3
	mov	DWORD PTR -16[rbp], eax
	jmp	.L40
.L50:
	mov	DWORD PTR -12[rbp], 1
	jmp	.L41
.L44:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, map[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 3
	jg	.L42
	mov	DWORD PTR -20[rbp], 0
	jmp	.L43
.L42:
	add	DWORD PTR -12[rbp], 1
.L41:
	cmp	DWORD PTR -12[rbp], 10
	jle	.L44
.L43:
	cmp	DWORD PTR -20[rbp], 0
	je	.L45
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L46
.L49:
	mov	DWORD PTR -4[rbp], 1
	jmp	.L47
.L48:
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, map[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 4
	add	rax, rcx
	add	rax, rsi
	lea	rcx, 0[0+rax*4]
	lea	rax, map[rip]
	mov	DWORD PTR [rcx+rax], edx
	add	DWORD PTR -4[rbp], 1
.L47:
	cmp	DWORD PTR -4[rbp], 10
	jle	.L48
	sub	DWORD PTR -8[rbp], 1
.L46:
	cmp	DWORD PTR -8[rbp], 1
	jg	.L49
	add	DWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR line[rip]
	add	eax, 1
	mov	DWORD PTR line[rip], eax
.L45:
	add	DWORD PTR -16[rbp], 1
	mov	DWORD PTR -20[rbp], 1
.L40:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L50
	mov	eax, DWORD PTR -24[rbp]
	imul	eax, eax
	imul	edx, eax, 50
	mov	eax, DWORD PTR score[rip]
	add	eax, edx
	mov	DWORD PTR score[rip], eax
	mov	eax, DWORD PTR level[rip]
	cmp	eax, 9
	jg	.L51
	mov	eax, DWORD PTR line[rip]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	jmp	.L52
.L51:
	mov	eax, 0
.L52:
	mov	DWORD PTR level[rip], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	judge, .-judge
	.globl	can_down_move
	.type	can_down_move, @function
can_down_move:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -8[rbp], 0
	jmp	.L54
.L59:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L55
.L58:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	add	rax, 16
	mov	eax, DWORD PTR 16[rbp+rax*4]
	test	eax, eax
	je	.L56
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	add	rax, 16
	mov	eax, DWORD PTR 16[rbp+rax*4]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR 16[rbp+rax*4]
	movsx	rcx, eax
	movsx	rdx, edx
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, map[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jle	.L56
	mov	eax, 1
	jmp	.L57
.L56:
	add	DWORD PTR -4[rbp], 1
.L55:
	cmp	DWORD PTR -4[rbp], 3
	jle	.L58
	add	DWORD PTR -8[rbp], 1
.L54:
	cmp	DWORD PTR -8[rbp], 3
	jle	.L59
	mov	eax, 0
.L57:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	can_down_move, .-can_down_move
	.globl	horizontal_move
	.type	horizontal_move, @function
horizontal_move:
.LFB12:
	.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, 184
	.cfi_offset 3, -24
	mov	DWORD PTR -180[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR tetromino_first[rip]
	mov	rdx, QWORD PTR tetromino_first[rip+8]
	mov	QWORD PTR -160[rbp], rax
	mov	QWORD PTR -152[rbp], rdx
	mov	rax, QWORD PTR tetromino_first[rip+16]
	mov	rdx, QWORD PTR tetromino_first[rip+24]
	mov	QWORD PTR -144[rbp], rax
	mov	QWORD PTR -136[rbp], rdx
	mov	rax, QWORD PTR tetromino_first[rip+32]
	mov	rdx, QWORD PTR tetromino_first[rip+40]
	mov	QWORD PTR -128[rbp], rax
	mov	QWORD PTR -120[rbp], rdx
	mov	rax, QWORD PTR tetromino_first[rip+48]
	mov	rdx, QWORD PTR tetromino_first[rip+56]
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -104[rbp], rdx
	mov	rax, QWORD PTR tetromino_first[rip+64]
	mov	rdx, QWORD PTR tetromino_first[rip+72]
	mov	QWORD PTR -96[rbp], rax
	mov	QWORD PTR -88[rbp], rdx
	mov	rax, QWORD PTR tetromino_first[rip+80]
	mov	rdx, QWORD PTR tetromino_first[rip+88]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR tetromino_first[rip+96]
	mov	rdx, QWORD PTR tetromino_first[rip+104]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR tetromino_first[rip+112]
	mov	rdx, QWORD PTR tetromino_first[rip+120]
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	eax, DWORD PTR tetromino_first[rip+128]
	mov	DWORD PTR -32[rbp], eax
	mov	DWORD PTR -168[rbp], 0
	jmp	.L61
.L67:
	mov	DWORD PTR -164[rbp], 0
	jmp	.L62
.L66:
	mov	eax, DWORD PTR -164[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	add	rax, 16
	mov	eax, DWORD PTR -160[rbp+rax*4]
	test	eax, eax
	je	.L63
	mov	eax, DWORD PTR -164[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	add	rax, 16
	mov	eax, DWORD PTR -160[rbp+rax*4]
	mov	edx, DWORD PTR -164[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -168[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	ecx, DWORD PTR -160[rbp+rdx*4]
	mov	edx, DWORD PTR -180[rbp]
	add	edx, ecx
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, map[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jg	.L69
	mov	eax, DWORD PTR -164[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR -160[rbp+rax*4]
	mov	eax, DWORD PTR -180[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -164[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	DWORD PTR -160[rbp+rax*4], edx
.L63:
	add	DWORD PTR -164[rbp], 1
.L62:
	cmp	DWORD PTR -164[rbp], 3
	jle	.L66
	add	DWORD PTR -168[rbp], 1
.L61:
	cmp	DWORD PTR -168[rbp], 3
	jle	.L67
	mov	rax, QWORD PTR -160[rbp]
	mov	rdx, QWORD PTR -152[rbp]
	mov	QWORD PTR tetromino_first[rip], rax
	mov	QWORD PTR tetromino_first[rip+8], rdx
	mov	rax, QWORD PTR -144[rbp]
	mov	rdx, QWORD PTR -136[rbp]
	mov	QWORD PTR tetromino_first[rip+16], rax
	mov	QWORD PTR tetromino_first[rip+24], rdx
	mov	rax, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR -120[rbp]
	mov	QWORD PTR tetromino_first[rip+32], rax
	mov	QWORD PTR tetromino_first[rip+40], rdx
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, QWORD PTR -104[rbp]
	mov	QWORD PTR tetromino_first[rip+48], rax
	mov	QWORD PTR tetromino_first[rip+56], rdx
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	QWORD PTR tetromino_first[rip+64], rax
	mov	QWORD PTR tetromino_first[rip+72], rdx
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR tetromino_first[rip+80], rax
	mov	QWORD PTR tetromino_first[rip+88], rdx
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR tetromino_first[rip+96], rax
	mov	QWORD PTR tetromino_first[rip+104], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR tetromino_first[rip+112], rax
	mov	QWORD PTR tetromino_first[rip+120], rdx
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR tetromino_first[rip+128], eax
	sub	rsp, 136
	mov	rax, rsp
	mov	rcx, QWORD PTR tetromino_first[rip]
	mov	rbx, QWORD PTR tetromino_first[rip+8]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+16]
	mov	rbx, QWORD PTR tetromino_first[rip+24]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+32]
	mov	rbx, QWORD PTR tetromino_first[rip+40]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+48]
	mov	rbx, QWORD PTR tetromino_first[rip+56]
	mov	QWORD PTR 48[rax], rcx
	mov	QWORD PTR 56[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+64]
	mov	rbx, QWORD PTR tetromino_first[rip+72]
	mov	QWORD PTR 64[rax], rcx
	mov	QWORD PTR 72[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+80]
	mov	rbx, QWORD PTR tetromino_first[rip+88]
	mov	QWORD PTR 80[rax], rcx
	mov	QWORD PTR 88[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+96]
	mov	rbx, QWORD PTR tetromino_first[rip+104]
	mov	QWORD PTR 96[rax], rcx
	mov	QWORD PTR 104[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+112]
	mov	rbx, QWORD PTR tetromino_first[rip+120]
	mov	QWORD PTR 112[rax], rcx
	mov	QWORD PTR 120[rax], rbx
	mov	edx, DWORD PTR tetromino_first[rip+128]
	mov	DWORD PTR 128[rax], edx
	call	can_down_move
	add	rsp, 136
	mov	DWORD PTR down_bottom_flag[rip], eax
	jmp	.L60
.L69:
	nop
.L60:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L68
	call	__stack_chk_fail@PLT
.L68:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	horizontal_move, .-horizontal_move
	.globl	rotate
	.type	rotate, @function
rotate:
.LFB13:
	.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, 168
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR tetromino_first[rip+128]
	cmp	eax, 2
	je	.L82
	mov	DWORD PTR -176[rbp], 0
	mov	eax, DWORD PTR tetromino_first[rip+128]
	cmp	eax, 1
	jne	.L73
	mov	eax, 4
	jmp	.L74
.L73:
	mov	eax, 3
.L74:
	mov	DWORD PTR -164[rbp], eax
	lea	rdx, -160[rbp]
	mov	eax, 0
	mov	ecx, 16
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	DWORD PTR [rdx], eax
	add	rdx, 4
	mov	eax, DWORD PTR tetromino_first[rip+128]
	mov	DWORD PTR -32[rbp], eax
	mov	DWORD PTR -172[rbp], 0
	jmp	.L75
.L79:
	mov	DWORD PTR -168[rbp], 0
	jmp	.L76
.L78:
	mov	eax, DWORD PTR -164[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -168[rbp]
	mov	edx, DWORD PTR -172[rbp]
	movsx	rdx, edx
	cdqe
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, tetromino_first[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L77
	mov	eax, DWORD PTR -164[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -168[rbp]
	mov	edx, DWORD PTR -172[rbp]
	movsx	rdx, edx
	cdqe
	sal	rax, 2
	add	rax, rdx
	add	rax, 16
	lea	rdx, 0[0+rax*4]
	lea	rax, tetromino_first[rip]
	mov	eax, DWORD PTR [rdx+rax]
	sub	eax, DWORD PTR -164[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -168[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -172[rbp]
	add	eax, edx
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -168[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -172[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	add	rax, 16
	mov	DWORD PTR -160[rbp+rax*4], edx
	mov	eax, DWORD PTR -164[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -168[rbp]
	mov	edx, DWORD PTR -172[rbp]
	movsx	rdx, edx
	cdqe
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, tetromino_first[rip]
	mov	eax, DWORD PTR [rdx+rax]
	sub	eax, DWORD PTR -172[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -168[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -168[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -172[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	DWORD PTR -160[rbp+rax*4], edx
	mov	eax, DWORD PTR -168[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -172[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	add	rax, 16
	mov	eax, DWORD PTR -160[rbp+rax*4]
	mov	edx, DWORD PTR -168[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -172[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	edx, DWORD PTR -160[rbp+rdx*4]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, map[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jle	.L77
	mov	DWORD PTR -176[rbp], 1
.L77:
	add	DWORD PTR -168[rbp], 1
.L76:
	mov	eax, DWORD PTR -168[rbp]
	cmp	eax, DWORD PTR -164[rbp]
	jl	.L78
	add	DWORD PTR -172[rbp], 1
.L75:
	mov	eax, DWORD PTR -172[rbp]
	cmp	eax, DWORD PTR -164[rbp]
	jl	.L79
	cmp	DWORD PTR -176[rbp], 0
	jne	.L80
	mov	rax, QWORD PTR -160[rbp]
	mov	rdx, QWORD PTR -152[rbp]
	mov	QWORD PTR tetromino_first[rip], rax
	mov	QWORD PTR tetromino_first[rip+8], rdx
	mov	rax, QWORD PTR -144[rbp]
	mov	rdx, QWORD PTR -136[rbp]
	mov	QWORD PTR tetromino_first[rip+16], rax
	mov	QWORD PTR tetromino_first[rip+24], rdx
	mov	rax, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR -120[rbp]
	mov	QWORD PTR tetromino_first[rip+32], rax
	mov	QWORD PTR tetromino_first[rip+40], rdx
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, QWORD PTR -104[rbp]
	mov	QWORD PTR tetromino_first[rip+48], rax
	mov	QWORD PTR tetromino_first[rip+56], rdx
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	QWORD PTR tetromino_first[rip+64], rax
	mov	QWORD PTR tetromino_first[rip+72], rdx
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR tetromino_first[rip+80], rax
	mov	QWORD PTR tetromino_first[rip+88], rdx
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR tetromino_first[rip+96], rax
	mov	QWORD PTR tetromino_first[rip+104], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR tetromino_first[rip+112], rax
	mov	QWORD PTR tetromino_first[rip+120], rdx
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR tetromino_first[rip+128], eax
.L80:
	sub	rsp, 136
	mov	rax, rsp
	mov	rcx, QWORD PTR tetromino_first[rip]
	mov	rbx, QWORD PTR tetromino_first[rip+8]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+16]
	mov	rbx, QWORD PTR tetromino_first[rip+24]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+32]
	mov	rbx, QWORD PTR tetromino_first[rip+40]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+48]
	mov	rbx, QWORD PTR tetromino_first[rip+56]
	mov	QWORD PTR 48[rax], rcx
	mov	QWORD PTR 56[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+64]
	mov	rbx, QWORD PTR tetromino_first[rip+72]
	mov	QWORD PTR 64[rax], rcx
	mov	QWORD PTR 72[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+80]
	mov	rbx, QWORD PTR tetromino_first[rip+88]
	mov	QWORD PTR 80[rax], rcx
	mov	QWORD PTR 88[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+96]
	mov	rbx, QWORD PTR tetromino_first[rip+104]
	mov	QWORD PTR 96[rax], rcx
	mov	QWORD PTR 104[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+112]
	mov	rbx, QWORD PTR tetromino_first[rip+120]
	mov	QWORD PTR 112[rax], rcx
	mov	QWORD PTR 120[rax], rbx
	mov	edx, DWORD PTR tetromino_first[rip+128]
	mov	DWORD PTR 128[rax], edx
	call	can_down_move
	add	rsp, 136
	mov	DWORD PTR down_bottom_flag[rip], eax
	jmp	.L70
.L82:
	nop
.L70:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L81
	call	__stack_chk_fail@PLT
.L81:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	rotate, .-rotate
	.section	.rodata
	.align 8
.LC12:
	.string	"\033[10;23f\033[47;30mGame Over!\n\033[0m"
	.text
	.globl	down_move
	.type	down_move, @function
down_move:
.LFB14:
	.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, 184
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR down_bottom_flag[rip]
	test	eax, eax
	jne	.L84
	mov	DWORD PTR -44[rbp], 0
	jmp	.L85
.L89:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L86
.L88:
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	add	rax, 16
	lea	rdx, 0[0+rax*4]
	lea	rax, tetromino_first[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -40[rbp]
	movsx	rcx, edx
	mov	edx, DWORD PTR -44[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, tetromino_first[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	movsx	rcx, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, map[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jg	.L87
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	add	rax, 16
	lea	rdx, 0[0+rax*4]
	lea	rax, tetromino_first[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	add	rax, 16
	lea	rdx, 0[0+rax*4]
	lea	rax, tetromino_first[rip]
	mov	DWORD PTR [rdx+rax], ecx
.L87:
	add	DWORD PTR -40[rbp], 1
.L86:
	cmp	DWORD PTR -40[rbp], 3
	jle	.L88
	add	DWORD PTR -44[rbp], 1
.L85:
	cmp	DWORD PTR -44[rbp], 3
	jle	.L89
	sub	rsp, 136
	mov	rax, rsp
	mov	rcx, QWORD PTR tetromino_first[rip]
	mov	rbx, QWORD PTR tetromino_first[rip+8]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+16]
	mov	rbx, QWORD PTR tetromino_first[rip+24]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+32]
	mov	rbx, QWORD PTR tetromino_first[rip+40]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+48]
	mov	rbx, QWORD PTR tetromino_first[rip+56]
	mov	QWORD PTR 48[rax], rcx
	mov	QWORD PTR 56[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+64]
	mov	rbx, QWORD PTR tetromino_first[rip+72]
	mov	QWORD PTR 64[rax], rcx
	mov	QWORD PTR 72[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+80]
	mov	rbx, QWORD PTR tetromino_first[rip+88]
	mov	QWORD PTR 80[rax], rcx
	mov	QWORD PTR 88[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+96]
	mov	rbx, QWORD PTR tetromino_first[rip+104]
	mov	QWORD PTR 96[rax], rcx
	mov	QWORD PTR 104[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+112]
	mov	rbx, QWORD PTR tetromino_first[rip+120]
	mov	QWORD PTR 112[rax], rcx
	mov	QWORD PTR 120[rax], rbx
	mov	edx, DWORD PTR tetromino_first[rip+128]
	mov	DWORD PTR 128[rax], edx
	call	can_down_move
	add	rsp, 136
	mov	DWORD PTR down_bottom_flag[rip], eax
	jmp	.L83
.L84:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L91
.L95:
	mov	DWORD PTR -28[rbp], 0
	jmp	.L92
.L94:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	add	rax, 16
	lea	rdx, 0[0+rax*4]
	lea	rax, tetromino_first[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L93
	mov	ecx, DWORD PTR tetromino_first[rip+128]
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	add	rax, 16
	lea	rdx, 0[0+rax*4]
	lea	rax, tetromino_first[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -28[rbp]
	movsx	rsi, edx
	mov	edx, DWORD PTR -32[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rsi
	lea	rsi, 0[0+rdx*4]
	lea	rdx, tetromino_first[rip]
	mov	edx, DWORD PTR [rsi+rdx]
	add	ecx, 4
	movsx	rsi, edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	add	rax, rdx
	add	rax, rsi
	lea	rdx, 0[0+rax*4]
	lea	rax, map[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	add	rax, 16
	lea	rdx, 0[0+rax*4]
	lea	rax, tetromino_first[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -36[rbp], eax
.L93:
	add	DWORD PTR -28[rbp], 1
.L92:
	cmp	DWORD PTR -28[rbp], 3
	jle	.L94
	add	DWORD PTR -32[rbp], 1
.L91:
	cmp	DWORD PTR -32[rbp], 3
	jle	.L95
	mov	eax, DWORD PTR map[rip+152]
	cmp	eax, 3
	jg	.L96
	mov	eax, DWORD PTR map[rip+156]
	cmp	eax, 3
	jg	.L96
	mov	eax, DWORD PTR map[rip+160]
	cmp	eax, 3
	jg	.L96
	mov	eax, DWORD PTR map[rip+164]
	cmp	eax, 3
	jle	.L97
.L96:
	mov	eax, 0
	call	draw_map
	mov	edx, 1496
	mov	esi, 0
	lea	rdi, map[rip]
	call	memset@PLT
	call	init_map
	mov	eax, 0
	mov	DWORD PTR level[rip], eax
	mov	DWORD PTR line[rip], eax
	mov	DWORD PTR score[rip], eax
	mov	DWORD PTR down_bottom_flag[rip], eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	getch
	jmp	.L83
.L97:
	mov	eax, DWORD PTR score[rip]
	add	eax, 10
	mov	DWORD PTR score[rip], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	judge
	mov	rax, QWORD PTR tetromino_next[rip]
	mov	rdx, QWORD PTR tetromino_next[rip+8]
	mov	QWORD PTR tetromino_first[rip], rax
	mov	QWORD PTR tetromino_first[rip+8], rdx
	mov	rax, QWORD PTR tetromino_next[rip+16]
	mov	rdx, QWORD PTR tetromino_next[rip+24]
	mov	QWORD PTR tetromino_first[rip+16], rax
	mov	QWORD PTR tetromino_first[rip+24], rdx
	mov	rax, QWORD PTR tetromino_next[rip+32]
	mov	rdx, QWORD PTR tetromino_next[rip+40]
	mov	QWORD PTR tetromino_first[rip+32], rax
	mov	QWORD PTR tetromino_first[rip+40], rdx
	mov	rax, QWORD PTR tetromino_next[rip+48]
	mov	rdx, QWORD PTR tetromino_next[rip+56]
	mov	QWORD PTR tetromino_first[rip+48], rax
	mov	QWORD PTR tetromino_first[rip+56], rdx
	mov	rax, QWORD PTR tetromino_next[rip+64]
	mov	rdx, QWORD PTR tetromino_next[rip+72]
	mov	QWORD PTR tetromino_first[rip+64], rax
	mov	QWORD PTR tetromino_first[rip+72], rdx
	mov	rax, QWORD PTR tetromino_next[rip+80]
	mov	rdx, QWORD PTR tetromino_next[rip+88]
	mov	QWORD PTR tetromino_first[rip+80], rax
	mov	QWORD PTR tetromino_first[rip+88], rdx
	mov	rax, QWORD PTR tetromino_next[rip+96]
	mov	rdx, QWORD PTR tetromino_next[rip+104]
	mov	QWORD PTR tetromino_first[rip+96], rax
	mov	QWORD PTR tetromino_first[rip+104], rdx
	mov	rax, QWORD PTR tetromino_next[rip+112]
	mov	rdx, QWORD PTR tetromino_next[rip+120]
	mov	QWORD PTR tetromino_first[rip+112], rax
	mov	QWORD PTR tetromino_first[rip+120], rdx
	mov	eax, DWORD PTR tetromino_next[rip+128]
	mov	DWORD PTR tetromino_first[rip+128], eax
	lea	rax, -192[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	get_tetromino
	mov	rax, QWORD PTR -192[rbp]
	mov	rdx, QWORD PTR -184[rbp]
	mov	QWORD PTR tetromino_next[rip], rax
	mov	QWORD PTR tetromino_next[rip+8], rdx
	mov	rax, QWORD PTR -176[rbp]
	mov	rdx, QWORD PTR -168[rbp]
	mov	QWORD PTR tetromino_next[rip+16], rax
	mov	QWORD PTR tetromino_next[rip+24], rdx
	mov	rax, QWORD PTR -160[rbp]
	mov	rdx, QWORD PTR -152[rbp]
	mov	QWORD PTR tetromino_next[rip+32], rax
	mov	QWORD PTR tetromino_next[rip+40], rdx
	mov	rax, QWORD PTR -144[rbp]
	mov	rdx, QWORD PTR -136[rbp]
	mov	QWORD PTR tetromino_next[rip+48], rax
	mov	QWORD PTR tetromino_next[rip+56], rdx
	mov	rax, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR -120[rbp]
	mov	QWORD PTR tetromino_next[rip+64], rax
	mov	QWORD PTR tetromino_next[rip+72], rdx
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, QWORD PTR -104[rbp]
	mov	QWORD PTR tetromino_next[rip+80], rax
	mov	QWORD PTR tetromino_next[rip+88], rdx
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	QWORD PTR tetromino_next[rip+96], rax
	mov	QWORD PTR tetromino_next[rip+104], rdx
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR tetromino_next[rip+112], rax
	mov	QWORD PTR tetromino_next[rip+120], rdx
	mov	eax, DWORD PTR -64[rbp]
	mov	DWORD PTR tetromino_next[rip+128], eax
	sub	rsp, 8
	sub	rsp, 136
	mov	rax, rsp
	mov	rcx, QWORD PTR tetromino_first[rip]
	mov	rbx, QWORD PTR tetromino_first[rip+8]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+16]
	mov	rbx, QWORD PTR tetromino_first[rip+24]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+32]
	mov	rbx, QWORD PTR tetromino_first[rip+40]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+48]
	mov	rbx, QWORD PTR tetromino_first[rip+56]
	mov	QWORD PTR 48[rax], rcx
	mov	QWORD PTR 56[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+64]
	mov	rbx, QWORD PTR tetromino_first[rip+72]
	mov	QWORD PTR 64[rax], rcx
	mov	QWORD PTR 72[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+80]
	mov	rbx, QWORD PTR tetromino_first[rip+88]
	mov	QWORD PTR 80[rax], rcx
	mov	QWORD PTR 88[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+96]
	mov	rbx, QWORD PTR tetromino_first[rip+104]
	mov	QWORD PTR 96[rax], rcx
	mov	QWORD PTR 104[rax], rbx
	mov	rcx, QWORD PTR tetromino_first[rip+112]
	mov	rbx, QWORD PTR tetromino_first[rip+120]
	mov	QWORD PTR 112[rax], rcx
	mov	QWORD PTR 120[rax], rbx
	mov	edx, DWORD PTR tetromino_first[rip+128]
	mov	DWORD PTR 128[rax], edx
	call	can_down_move
	add	rsp, 144
	mov	DWORD PTR down_bottom_flag[rip], eax
.L83:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L98
	call	__stack_chk_fail@PLT
.L98:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	down_move, .-down_move
	.section	.rodata
.LC13:
	.string	"\033[2J\033[1;1H\t\tBye~ @Author QAIU"
	.text
	.globl	event
	.type	event, @function
event:
.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 -24[rbp], rdi
.L114:
	mov	eax, 0
	call	getch
	movsx	eax, al
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 54
	jg	.L100
	cmp	DWORD PTR -4[rbp], 10
	jge	.L101
	jmp	.L102
.L111:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 81
	cmp	eax, 38
	ja	.L102
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L104[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L104[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L104:
	.long	.L106-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L108-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L107-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L106-.L104
	.long	.L102-.L104
	.long	.L105-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L102-.L104
	.long	.L103-.L104
	.text
.L101:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 10
	cmp	eax, 44
	ja	.L102
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L109[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L109[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L109:
	.long	.L112-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L112-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L102-.L109
	.long	.L103-.L109
	.long	.L102-.L109
	.long	.L108-.L109
	.long	.L105-.L109
	.long	.L107-.L109
	.text
.L100:
	cmp	DWORD PTR -4[rbp], 119
	jg	.L102
	cmp	DWORD PTR -4[rbp], 81
	jge	.L111
	jmp	.L102
.L108:
	mov	edi, -1
	call	horizontal_move
	jmp	.L102
.L107:
	mov	edi, 1
	call	horizontal_move
	jmp	.L102
.L103:
	mov	eax, 0
	call	rotate
	jmp	.L102
.L105:
	mov	eax, 0
	call	down_move
	jmp	.L102
.L113:
	mov	eax, 0
	call	down_move
.L112:
	mov	eax, DWORD PTR down_bottom_flag[rip]
	test	eax, eax
	je	.L113
	mov	eax, 0
	call	down_move
	jmp	.L102
.L106:
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L102:
	mov	eax, 0
	call	draw_map
	jmp	.L114
	.cfi_endproc
.LFE15:
	.size	event, .-event
	.section	.rodata
.LC14:
	.string	"\033[?25l\033[2J"
	.text
	.globl	main
	.type	main, @function
main:
.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, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, event[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -160[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	get_tetromino
	mov	rax, QWORD PTR -160[rbp]
	mov	rdx, QWORD PTR -152[rbp]
	mov	QWORD PTR tetromino_next[rip], rax
	mov	QWORD PTR tetromino_next[rip+8], rdx
	mov	rax, QWORD PTR -144[rbp]
	mov	rdx, QWORD PTR -136[rbp]
	mov	QWORD PTR tetromino_next[rip+16], rax
	mov	QWORD PTR tetromino_next[rip+24], rdx
	mov	rax, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR -120[rbp]
	mov	QWORD PTR tetromino_next[rip+32], rax
	mov	QWORD PTR tetromino_next[rip+40], rdx
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, QWORD PTR -104[rbp]
	mov	QWORD PTR tetromino_next[rip+48], rax
	mov	QWORD PTR tetromino_next[rip+56], rdx
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	QWORD PTR tetromino_next[rip+64], rax
	mov	QWORD PTR tetromino_next[rip+72], rdx
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR tetromino_next[rip+80], rax
	mov	QWORD PTR tetromino_next[rip+88], rdx
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR tetromino_next[rip+96], rax
	mov	QWORD PTR tetromino_next[rip+104], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR tetromino_next[rip+112], rax
	mov	QWORD PTR tetromino_next[rip+120], rdx
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR tetromino_next[rip+128], eax
	lea	rax, -160[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	get_tetromino
	mov	rax, QWORD PTR -160[rbp]
	mov	rdx, QWORD PTR -152[rbp]
	mov	QWORD PTR tetromino_first[rip], rax
	mov	QWORD PTR tetromino_first[rip+8], rdx
	mov	rax, QWORD PTR -144[rbp]
	mov	rdx, QWORD PTR -136[rbp]
	mov	QWORD PTR tetromino_first[rip+16], rax
	mov	QWORD PTR tetromino_first[rip+24], rdx
	mov	rax, QWORD PTR -128[rbp]
	mov	rdx, QWORD PTR -120[rbp]
	mov	QWORD PTR tetromino_first[rip+32], rax
	mov	QWORD PTR tetromino_first[rip+40], rdx
	mov	rax, QWORD PTR -112[rbp]
	mov	rdx, QWORD PTR -104[rbp]
	mov	QWORD PTR tetromino_first[rip+48], rax
	mov	QWORD PTR tetromino_first[rip+56], rdx
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	QWORD PTR tetromino_first[rip+64], rax
	mov	QWORD PTR tetromino_first[rip+72], rdx
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR tetromino_first[rip+80], rax
	mov	QWORD PTR tetromino_first[rip+88], rdx
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR tetromino_first[rip+96], rax
	mov	QWORD PTR tetromino_first[rip+104], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR tetromino_first[rip+112], rax
	mov	QWORD PTR tetromino_first[rip+120], rdx
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR tetromino_first[rip+128], eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
.L116:
	mov	eax, 0
	call	draw_map
	mov	eax, DWORD PTR level[rip]
	imul	eax, eax, -80000
	add	eax, 500000
	mov	edi, eax
	call	usleep@PLT
	mov	eax, 0
	call	down_move
	jmp	.L116
	.cfi_endproc
.LFE16:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC10:
	.long	-4194304
	.long	1105199103
	.align 8
.LC11:
	.long	0
	.long	1075576832
	.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	"24583.c"
	.text
	.comm	tetromino_first,132,4
	.comm	tetromino_next,132,4
	.global	coord_x
	.section	.rodata
	.align	2
	.type	coord_x, %object
	.size	coord_x, 224
coord_x:
	.word	0
	.word	5
	.word	0
	.word	0
	.word	4
	.word	5
	.word	6
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	4
	.word	5
	.word	6
	.word	7
	.word	4
	.word	5
	.word	0
	.word	0
	.word	4
	.word	5
	.word	0
	.word	0
	.word	4
	.word	5
	.word	0
	.word	0
	.word	0
	.word	5
	.word	6
	.word	0
	.word	0
	.word	5
	.word	6
	.word	0
	.word	4
	.word	5
	.word	0
	.word	0
	.word	4
	.word	0
	.word	0
	.word	0
	.word	4
	.word	5
	.word	6
	.word	0
	.word	0
	.word	0
	.word	6
	.word	0
	.word	4
	.word	5
	.word	6
	.word	0
	.global	coord_y
	.align	2
	.type	coord_y, %object
	.size	coord_y, 224
coord_y:
	.word	0
	.word	1
	.word	0
	.word	0
	.word	2
	.word	2
	.word	2
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	2
	.word	2
	.word	2
	.word	2
	.word	1
	.word	1
	.word	0
	.word	0
	.word	2
	.word	2
	.word	0
	.word	0
	.word	1
	.word	1
	.word	0
	.word	0
	.word	0
	.word	2
	.word	2
	.word	0
	.word	0
	.word	1
	.word	1
	.word	0
	.word	2
	.word	2
	.word	0
	.word	0
	.word	1
	.word	0
	.word	0
	.word	0
	.word	2
	.word	2
	.word	2
	.word	0
	.word	0
	.word	0
	.word	1
	.word	0
	.word	2
	.word	2
	.word	2
	.word	0
	.global	height
	.bss
	.align	2
	.type	height, %object
	.size	height, 4
height:
	.space	4
	.global	down_bottom_flag
	.align	2
	.type	down_bottom_flag, %object
	.size	down_bottom_flag, 4
down_bottom_flag:
	.space	4
	.global	line
	.align	2
	.type	line, %object
	.size	line, 4
line:
	.space	4
	.global	score
	.align	2
	.type	score, %object
	.size	score, 4
score:
	.space	4
	.global	level
	.align	2
	.type	level, %object
	.size	level, 4
level:
	.space	4
	.global	map
	.align	2
	.type	map, %object
	.size	map, 1496
map:
	.space	1496
	.global	mut
	.align	2
	.type	mut, %object
	.size	mut, 24
mut:
	.space	24
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getch
	.syntax unified
	.arm
	.fpu softvfp
	.type	getch, %function
getch:
	@ 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, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #128
	mov	r1, r3
	mov	r0, #0
	bl	tcgetattr
	sub	ip, fp, #68
	sub	lr, fp, #128
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r3, [fp, #-56]
	bic	r3, r3, #3440
	bic	r3, r3, #10
	str	r3, [fp, #-56]
	sub	r3, fp, #68
	mov	r2, r3
	mov	r1, #0
	mov	r0, #0
	bl	tcsetattr
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-129]
	sub	r3, fp, #128
	mov	r2, r3
	mov	r1, #0
	mov	r0, #0
	bl	tcsetattr
	ldrb	r3, [fp, #-129]	@ zero_extendqisi2
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	getch, .-getch
	.align	2
	.global	init_map
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_map, %function
init_map:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L7
.L13:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L8
.L12:
	ldr	r3, [fp, #-16]
	cmp	r3, #11
	bgt	.L9
	ldr	r3, [fp, #-20]
	cmp	r3, #21
	beq	.L10
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-16]
	cmp	r3, #11
	bne	.L9
.L10:
	ldr	r1, .L20
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	mov	r2, #2
	str	r2, [r1, r3, lsl #2]
	b	.L11
.L9:
	ldr	r1, .L20
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	cmp	r3, #3
	bgt	.L11
	ldr	r1, .L20
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	mov	r2, #0
	str	r2, [r1, r3, lsl #2]
.L11:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L8:
	ldr	r3, [fp, #-16]
	cmp	r3, #15
	ble	.L12
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L7:
	ldr	r3, [fp, #-20]
	cmp	r3, #21
	ble	.L13
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L14
.L19:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L15
.L18:
	ldr	r1, .L20+4
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	add	r3, r3, #16
	ldr	r3, [r1, r3, lsl #2]
	cmp	r3, #0
	beq	.L16
	ldr	r1, .L20+4
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	add	r3, r3, #16
	ldr	r2, [r1, r3, lsl #2]
	ldr	r0, .L20+4
	ldr	r3, [fp, #-12]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	ldr	r1, [r0, r3, lsl #2]
	ldr	r0, .L20
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	add	r3, r3, r1
	mov	r2, #1
	str	r2, [r0, r3, lsl #2]
.L16:
	ldr	r1, .L20+8
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	add	r3, r3, #16
	ldr	r3, [r1, r3, lsl #2]
	cmp	r3, #0
	beq	.L17
	ldr	r1, .L20+8
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	add	r3, r3, #16
	ldr	r2, [r1, r3, lsl #2]
	ldr	r0, .L20+8
	ldr	r3, [fp, #-12]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	ldr	r3, [r0, r3, lsl #2]
	add	r1, r3, #8
	ldr	r0, .L20
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	add	r3, r3, r1
	mov	r2, #3
	str	r2, [r0, r3, lsl #2]
.L17:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L15:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	ble	.L18
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L14:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	ble	.L19
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L21:
	.align	2
.L20:
	.word	map
	.word	tetromino_first
	.word	tetromino_next
	.size	init_map, .-init_map
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\033[1;1f\012\012\011\011\000"
	.align	2
.LC2:
	.ascii	"  \000"
	.align	2
.LC3:
	.ascii	"\033[37;4%dm  \033[0m\000"
	.align	2
.LC4:
	.ascii	"\342\200\225\342\200\225\000"
	.align	2
.LC5:
	.ascii	"\357\275\234\000"
	.align	2
.LC6:
	.ascii	"\357\274\213\000"
	.align	2
.LC7:
	.ascii	"\033[37m%s\033[0m\000"
	.align	2
.LC8:
	.ascii	"\033[4%dm  \033[0m\000"
	.align	2
.LC9:
	.ascii	"\012\011\011\000"
	.align	2
.LC10:
	.ascii	"\033[5;9f\033[32mscore:\033[6;9f%5d\033[8;9fline:\033"
	.ascii	"[9;9f%5d\033[11;9flevel:\033[12;9f%5d\012\000"
	.text
	.align	2
	.global	draw_map
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_map, %function
draw_map:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L41
	bl	pthread_mutex_lock
	bl	init_map
	ldr	r0, .L41+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L23
.L40:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L24
.L39:
	ldr	r1, .L41+8
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L25
.L27:
	.word	.L30
	.word	.L29
	.word	.L28
	.word	.L26
.L30:
	ldr	r3, .L41+12
	ldr	r3, [r3, #128]
	mov	r1, r3
	ldr	r0, .L41+16
	bl	printf
	b	.L31
.L29:
	ldr	r3, .L41+20
	ldr	r3, [r3, #128]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L41+24
	bl	printf
	b	.L31
.L28:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L32
	ldr	r3, [fp, #-12]
	cmp	r3, #21
	bne	.L33
.L32:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L34
	ldr	r3, [fp, #-8]
	cmp	r3, #11
	beq	.L34
.L33:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L35
	ldr	r3, [fp, #-12]
	cmp	r3, #21
	bne	.L36
.L35:
	ldr	r3, .L41+28
	b	.L38
.L36:
	ldr	r3, .L41+32
	b	.L38
.L34:
	ldr	r3, .L41+36
.L38:
	mov	r1, r3
	ldr	r0, .L41+40
	bl	printf
	b	.L31
.L26:
	ldr	r3, .L41+12
	ldr	r3, [r3, #128]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L41+44
	bl	printf
	b	.L31
.L25:
	ldr	r1, .L41+8
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	sub	r3, r3, #3
	mov	r1, r3
	ldr	r0, .L41+44
	bl	printf
	nop
.L31:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L24:
	ldr	r3, [fp, #-8]
	cmp	r3, #15
	ble	.L39
	ldr	r0, .L41+48
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L23:
	ldr	r3, [fp, #-12]
	cmp	r3, #21
	ble	.L40
	ldr	r3, .L41+52
	ldr	r1, [r3]
	ldr	r3, .L41+56
	ldr	r2, [r3]
	ldr	r3, .L41+60
	ldr	r3, [r3]
	ldr	r0, .L41+64
	bl	printf
	ldr	r0, .L41
	bl	pthread_mutex_unlock
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	mut
	.word	.LC1
	.word	map
	.word	tetromino_next
	.word	.LC2
	.word	tetromino_first
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	score
	.word	line
	.word	level
	.word	.LC10
	.size	draw_map, .-draw_map
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.global	__aeabi_d2iz
	.section	.rodata
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_tetromino
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_tetromino, %function
get_tetromino:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	str	r0, [fp, #-144]
	ldr	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #140
	mov	r2, #132
	mov	r1, #0
	mov	r0, r3
	bl	memset
	bl	rand
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r2, .L46+4
	ldr	r3, .L46+8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L46+12
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #5
	ldr	r2, .L46+16
	add	r1, r3, r2
	sub	r3, fp, #140
	mov	r2, #32
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #5
	ldr	r2, .L46+20
	add	r1, r3, r2
	sub	r3, fp, #140
	add	r3, r3, #64
	mov	r2, #32
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-144]
	mov	r0, r3
	sub	r3, fp, #140
	mov	r2, #132
	mov	r1, r3
	bl	memcpy
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L45
	bl	__stack_chk_fail
.L45:
	ldr	r0, [fp, #-144]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC11
	.word	-4194304
	.word	1105199103
	.word	1075576832
	.word	coord_x
	.word	coord_y
	.size	get_tetromino, .-get_tetromino
	.align	2
	.global	judge
	.syntax unified
	.arm
	.fpu softvfp
	.type	judge, %function
judge:
	@ 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, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #3
	str	r3, [fp, #-20]
	b	.L49
.L59:
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L50
.L53:
	ldr	r1, .L62
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	add	r3, r3, r2
	ldr	r3, [r1, r3, lsl #2]
	cmp	r3, #3
	bgt	.L51
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L52
.L51:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L50:
	ldr	r3, [fp, #-16]
	cmp	r3, #10
	ble	.L53
.L52:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L54
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-12]
	b	.L55
.L58:
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L56
.L57:
	ldr	r3, [fp, #-12]
	sub	r2, r3, #1
	ldr	r1, .L62
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	add	r3, r3, r2
	ldr	r1, [r1, r3, lsl #2]
	ldr	r0, .L62
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	add	r3, r3, r2
	str	r1, [r0, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L56:
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	ble	.L57
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L55:
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bgt	.L58
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, .L62+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L62+4
	str	r3, [r2]
.L54:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-24]
.L49:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	ble	.L59
	ldr	r3, [fp, #-28]
	mul	r2, r3, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, .L62+8
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L62+8
	str	r3, [r2]
	ldr	r3, .L62+12
	ldr	r3, [r3]
	cmp	r3, #9
	bgt	.L60
	ldr	r3, .L62+4
	ldr	r3, [r3]
	ldr	r2, .L62+16
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	b	.L61
.L60:
	mov	r3, #0
.L61:
	ldr	r2, .L62+12
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L63:
	.align	2
.L62:
	.word	map
	.word	line
	.word	score
	.word	level
	.word	1717986919
	.size	judge, .-judge
	.align	2
	.global	can_down_move
	.syntax unified
	.arm
	.fpu softvfp
	.type	can_down_move, %function
can_down_move:
	@ args = 132, pretend = 16, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	sub	sp, sp, #16
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L65
.L70:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L66
.L69:
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	add	r3, r3, #16
	lsl	r3, r3, #2
	add	r3, fp, r3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L67
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	add	r3, r3, #16
	lsl	r3, r3, #2
	add	r3, fp, r3
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-12]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-8]
	add	r3, r1, r3
	lsl	r3, r3, #2
	add	r3, fp, r3
	ldr	r1, [r3, #4]
	ldr	r0, .L71
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	add	r3, r3, r1
	ldr	r3, [r0, r3, lsl #2]
	cmp	r3, #1
	ble	.L67
	mov	r3, #1
	b	.L68
.L67:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L66:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	ble	.L69
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L65:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	ble	.L70
	mov	r3, #0
.L68:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	add	sp, sp, #16
	bx	lr
.L72:
	.align	2
.L71:
	.word	map
	.size	can_down_move, .-can_down_move
	.section	.rodata
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	horizontal_move
	.syntax unified
	.arm
	.fpu softvfp
	.type	horizontal_move, %function
horizontal_move:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #276
	str	r0, [fp, #-160]
	ldr	r3, .L83
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r2, .L83+4
	sub	r3, fp, #148
	mov	r1, r2
	mov	r2, #132
	mov	r0, r3
	bl	memcpy
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L74
.L80:
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L75
.L79:
	ldr	r3, [fp, #-156]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-152]
	add	r3, r2, r3
	add	r3, r3, #16
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-136]
	cmp	r3, #0
	beq	.L76
	ldr	r3, [fp, #-156]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-152]
	add	r3, r2, r3
	add	r3, r3, #16
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-136]
	ldr	r3, [fp, #-156]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-152]
	add	r3, r1, r3
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r1, [r3, #-136]
	ldr	r3, [fp, #-160]
	add	r1, r1, r3
	ldr	r0, .L83+8
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	add	r3, r3, r1
	ldr	r3, [r0, r3, lsl #2]
	cmp	r3, #1
	bgt	.L82
	ldr	r3, [fp, #-156]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-152]
	add	r3, r2, r3
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-136]
	ldr	r3, [fp, #-160]
	add	r2, r2, r3
	ldr	r3, [fp, #-156]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-152]
	add	r3, r1, r3
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-136]
.L76:
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L75:
	ldr	r3, [fp, #-152]
	cmp	r3, #3
	ble	.L79
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L74:
	ldr	r3, [fp, #-156]
	cmp	r3, #3
	ble	.L80
	ldr	r3, .L83+4
	mov	r0, r3
	sub	r3, fp, #148
	mov	r2, #132
	mov	r1, r3
	bl	memcpy
	ldr	r4, .L83+4
	mov	r0, sp
	add	r3, r4, #16
	mov	r2, #116
	mov	r1, r3
	bl	memcpy
	ldm	r4, {r0, r1, r2, r3}
	bl	can_down_move
	mov	r3, r0
	ldr	r2, .L83+12
	str	r3, [r2]
	b	.L73
.L82:
	nop
.L73:
	ldr	r3, .L83
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L81
	bl	__stack_chk_fail
.L81:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L84:
	.align	2
.L83:
	.word	.LC12
	.word	tetromino_first
	.word	map
	.word	down_bottom_flag
	.size	horizontal_move, .-horizontal_move
	.section	.rodata
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	rotate
	.syntax unified
	.arm
	.fpu softvfp
	.type	rotate, %function
rotate:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #276
	ldr	r3, .L98
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L98+4
	ldr	r3, [r3, #128]
	cmp	r3, #2
	beq	.L97
	mov	r3, #0
	str	r3, [fp, #-164]
	ldr	r3, .L98+4
	ldr	r3, [r3, #128]
	cmp	r3, #1
	bne	.L88
	mov	r3, #4
	b	.L89
.L88:
	mov	r3, #3
.L89:
	str	r3, [fp, #-152]
	sub	r3, fp, #148
	mov	r2, #132
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L98+4
	ldr	r3, [r3, #128]
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-160]
	b	.L90
.L94:
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L91
.L93:
	ldr	r3, [fp, #-152]
	sub	r2, r3, #1
	ldr	r3, [fp, #-156]
	sub	r3, r2, r3
	ldr	r1, .L98+4
	lsl	r2, r3, #2
	ldr	r3, [fp, #-160]
	add	r3, r2, r3
	ldr	r3, [r1, r3, lsl #2]
	cmp	r3, #0
	beq	.L92
	ldr	r3, [fp, #-152]
	sub	r2, r3, #1
	ldr	r3, [fp, #-156]
	sub	r3, r2, r3
	ldr	r1, .L98+4
	lsl	r2, r3, #2
	ldr	r3, [fp, #-160]
	add	r3, r2, r3
	add	r3, r3, #16
	ldr	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-152]
	sub	r2, r2, r3
	ldr	r3, [fp, #-156]
	add	r2, r2, r3
	ldr	r3, [fp, #-160]
	add	r3, r2, r3
	add	r2, r3, #1
	ldr	r3, [fp, #-160]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-156]
	add	r3, r1, r3
	add	r3, r3, #16
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-136]
	ldr	r3, [fp, #-152]
	sub	r2, r3, #1
	ldr	r3, [fp, #-156]
	sub	r3, r2, r3
	ldr	r1, .L98+4
	lsl	r2, r3, #2
	ldr	r3, [fp, #-160]
	add	r3, r2, r3
	ldr	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-160]
	sub	r2, r2, r3
	ldr	r3, [fp, #-156]
	add	r2, r2, r3
	ldr	r3, [fp, #-160]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-156]
	add	r3, r1, r3
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-136]
	ldr	r3, [fp, #-160]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-156]
	add	r3, r2, r3
	add	r3, r3, #16
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-136]
	ldr	r3, [fp, #-160]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-156]
	add	r3, r1, r3
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r1, [r3, #-136]
	ldr	r0, .L98+8
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	add	r3, r3, r1
	ldr	r3, [r0, r3, lsl #2]
	cmp	r3, #1
	ble	.L92
	mov	r3, #1
	str	r3, [fp, #-164]
.L92:
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L91:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-152]
	cmp	r2, r3
	blt	.L93
	ldr	r3, [fp, #-160]
	add	r3, r3, #1
	str	r3, [fp, #-160]
.L90:
	ldr	r2, [fp, #-160]
	ldr	r3, [fp, #-152]
	cmp	r2, r3
	blt	.L94
	ldr	r3, [fp, #-164]
	cmp	r3, #0
	bne	.L95
	ldr	r3, .L98+4
	mov	r0, r3
	sub	r3, fp, #148
	mov	r2, #132
	mov	r1, r3
	bl	memcpy
.L95:
	ldr	r4, .L98+4
	mov	r0, sp
	add	r3, r4, #16
	mov	r2, #116
	mov	r1, r3
	bl	memcpy
	ldm	r4, {r0, r1, r2, r3}
	bl	can_down_move
	mov	r3, r0
	ldr	r2, .L98+12
	str	r3, [r2]
	b	.L85
.L97:
	nop
.L85:
	ldr	r3, .L98
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L96
	bl	__stack_chk_fail
.L96:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L99:
	.align	2
.L98:
	.word	.LC13
	.word	tetromino_first
	.word	map
	.word	down_bottom_flag
	.size	rotate, .-rotate
	.section	.rodata
	.align	2
.LC14:
	.ascii	"\033[10;23f\033[47;30mGame Over!\012\033[0m\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	down_move
	.syntax unified
	.arm
	.fpu softvfp
	.type	down_move, %function
down_move:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #284
	ldr	r3, .L116
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L116+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L101
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L102
.L106:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L103
.L105:
	ldr	r1, .L116+8
	ldr	r3, [fp, #-36]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	add	r3, r3, #16
	ldr	r2, [r1, r3, lsl #2]
	ldr	r0, .L116+8
	ldr	r3, [fp, #-36]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-32]
	add	r3, r1, r3
	ldr	r1, [r0, r3, lsl #2]
	ldr	r0, .L116+12
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	add	r3, r3, r1
	ldr	r3, [r0, r3, lsl #2]
	cmp	r3, #1
	bgt	.L104
	ldr	r1, .L116+8
	ldr	r3, [fp, #-36]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	add	r3, r3, #16
	ldr	r3, [r1, r3, lsl #2]
	add	r2, r3, #1
	ldr	r0, .L116+8
	ldr	r3, [fp, #-36]
	lsl	r1, r3, #2
	ldr	r3, [fp, #-32]
	add	r3, r1, r3
	add	r3, r3, #16
	str	r2, [r0, r3, lsl #2]
.L104:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L103:
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	ble	.L105
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L102:
	ldr	r3, [fp, #-36]
	cmp	r3, #3
	ble	.L106
	ldr	r4, .L116+8
	mov	r0, sp
	add	r3, r4, #16
	mov	r2, #116
	mov	r1, r3
	bl	memcpy
	ldm	r4, {r0, r1, r2, r3}
	bl	can_down_move
	mov	r3, r0
	ldr	r2, .L116+4
	str	r3, [r2]
	b	.L100
.L101:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L108
.L112:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L109
.L111:
	ldr	r1, .L116+8
	ldr	r3, [fp, #-24]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	add	r3, r3, #16
	ldr	r3, [r1, r3, lsl #2]
	cmp	r3, #0
	beq	.L110
	ldr	r3, .L116+8
	ldr	r3, [r3, #128]
	ldr	r0, .L116+8
	ldr	r2, [fp, #-24]
	lsl	r1, r2, #2
	ldr	r2, [fp, #-20]
	add	r2, r1, r2
	add	r2, r2, #16
	ldr	r2, [r0, r2, lsl #2]
	ldr	ip, .L116+8
	ldr	r1, [fp, #-24]
	lsl	r0, r1, #2
	ldr	r1, [fp, #-20]
	add	r1, r0, r1
	ldr	r0, [ip, r1, lsl #2]
	add	r1, r3, #4
	ldr	ip, .L116+12
	mov	r3, r2
	lsl	r3, r3, #4
	add	r3, r3, r2
	add	r3, r3, r0
	str	r1, [ip, r3, lsl #2]
	ldr	r1, .L116+8
	ldr	r3, [fp, #-24]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	add	r3, r3, #16
	ldr	r3, [r1, r3, lsl #2]
	str	r3, [fp, #-28]
.L110:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L109:
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	ble	.L111
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L108:
	ldr	r3, [fp, #-24]
	cmp	r3, #3
	ble	.L112
	ldr	r3, .L116+12
	ldr	r3, [r3, #152]
	cmp	r3, #3
	bgt	.L113
	ldr	r3, .L116+12
	ldr	r3, [r3, #156]
	cmp	r3, #3
	bgt	.L113
	ldr	r3, .L116+12
	ldr	r3, [r3, #160]
	cmp	r3, #3
	bgt	.L113
	ldr	r3, .L116+12
	ldr	r3, [r3, #164]
	cmp	r3, #3
	ble	.L114
.L113:
	bl	draw_map
	ldr	r2, .L116+16
	mov	r1, #0
	ldr	r0, .L116+12
	bl	memset
	bl	init_map
	mov	r3, #0
	ldr	r2, .L116+20
	str	r3, [r2]
	ldr	r2, .L116+24
	str	r3, [r2]
	ldr	r2, .L116+28
	str	r3, [r2]
	ldr	r2, .L116+4
	str	r3, [r2]
	ldr	r0, .L116+32
	bl	printf
	bl	getch
	b	.L100
.L114:
	ldr	r3, .L116+28
	ldr	r3, [r3]
	add	r3, r3, #10
	ldr	r2, .L116+28
	str	r3, [r2]
	ldr	r0, [fp, #-28]
	bl	judge
	ldr	r2, .L116+8
	ldr	r3, .L116+36
	mov	r0, r2
	mov	r1, r3
	mov	r3, #132
	mov	r2, r3
	bl	memcpy
	ldr	r4, .L116+36
	sub	r3, fp, #172
	mov	r0, r3
	bl	get_tetromino
	mov	r0, r4
	sub	r3, fp, #172
	mov	r2, #132
	mov	r1, r3
	bl	memcpy
	ldr	r4, .L116+8
	mov	r0, sp
	add	r3, r4, #16
	mov	r2, #116
	mov	r1, r3
	bl	memcpy
	ldm	r4, {r0, r1, r2, r3}
	bl	can_down_move
	mov	r3, r0
	ldr	r2, .L116+4
	str	r3, [r2]
.L100:
	ldr	r3, .L116
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L115
	bl	__stack_chk_fail
.L115:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L117:
	.align	2
.L116:
	.word	.LC15
	.word	down_bottom_flag
	.word	tetromino_first
	.word	map
	.word	1496
	.word	level
	.word	line
	.word	score
	.word	.LC14
	.word	tetromino_next
	.size	down_move, .-down_move
	.section	.rodata
	.align	2
.LC16:
	.ascii	"\033[2J\033[1;1H\011\011Bye~ @Author QAIU\000"
	.text
	.align	2
	.global	event
	.syntax unified
	.arm
	.fpu softvfp
	.type	event, %function
event:
	@ 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]
.L133:
	bl	getch
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #54
	bgt	.L119
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	bge	.L120
	b	.L121
.L130:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #81
	cmp	r3, #38
	ldrls	pc, [pc, r3, asl #2]
	b	.L121
.L123:
	.word	.L125
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L127
	.word	.L121
	.word	.L121
	.word	.L126
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L125
	.word	.L121
	.word	.L124
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L122
.L120:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #10
	cmp	r3, #44
	ldrls	pc, [pc, r3, asl #2]
	b	.L121
.L128:
	.word	.L131
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L131
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L121
	.word	.L122
	.word	.L121
	.word	.L127
	.word	.L124
	.word	.L126
.L119:
	ldr	r3, [fp, #-8]
	cmp	r3, #119
	bgt	.L121
	ldr	r3, [fp, #-8]
	cmp	r3, #81
	bge	.L130
	b	.L121
.L127:
	mvn	r0, #0
	bl	horizontal_move
	b	.L121
.L126:
	mov	r0, #1
	bl	horizontal_move
	b	.L121
.L122:
	bl	rotate
	b	.L121
.L124:
	bl	down_move
	b	.L121
.L132:
	bl	down_move
.L131:
	ldr	r3, .L134
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L132
	bl	down_move
	b	.L121
.L125:
	ldr	r0, .L134+4
	bl	puts
	mov	r0, #0
	bl	exit
.L121:
	bl	draw_map
	b	.L133
.L135:
	.align	2
.L134:
	.word	down_bottom_flag
	.word	.LC16
	.size	event, .-event
	.section	.rodata
	.align	2
.LC17:
	.ascii	"\033[?25l\033[2J\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #148
	ldr	r3, .L139
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	sub	r0, fp, #20
	mov	r3, #0
	ldr	r2, .L139+4
	mov	r1, #0
	bl	pthread_create
	ldr	r4, .L139+8
	sub	r3, fp, #156
	mov	r0, r3
	bl	get_tetromino
	mov	r0, r4
	sub	r3, fp, #156
	mov	r2, #132
	mov	r1, r3
	bl	memcpy
	ldr	r4, .L139+12
	sub	r3, fp, #156
	mov	r0, r3
	bl	get_tetromino
	mov	r0, r4
	sub	r3, fp, #156
	mov	r2, #132
	mov	r1, r3
	bl	memcpy
	ldr	r0, .L139+16
	bl	printf
.L137:
	bl	draw_map
	ldr	r3, .L139+20
	ldr	r3, [r3]
	ldr	r2, .L139+24
	mul	r3, r2, r3
	add	r3, r3, #499712
	add	r3, r3, #288
	mov	r0, r3
	bl	usleep
	bl	down_move
	b	.L137
.L140:
	.align	2
.L139:
	.word	.LC18
	.word	event
	.word	tetromino_next
	.word	tetromino_first
	.word	.LC17
	.word	level
	.word	-80000
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
