	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tetris_tick                    ## -- Begin function tetris_tick
	.p2align	4, 0x90
_tetris_tick:                           ## @tetris_tick
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_game_over@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	cmpl	$0, (%r14)
	je	LBB0_1
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movslq	%edi, %rax
	movq	_time@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, (%rcx)
	movq	_first_run@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	_next_down@GOTPCREL(%rip), %rdx
	testq	%rcx, %rcx
	jne	LBB0_3
## %bb.2:
	cmpq	(%rdx), %rax
	jg	LBB0_3
## %bb.9:
	xorl	%eax, %eax
	callq	_tetris_get_keypress
                                        ## kill: def $eax killed $eax def $rax
	movl	$1, %ebx
	decl	%eax
	cmpl	$3, %eax
	ja	LBB0_23
## %bb.10:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_11:
	movq	_rotation@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	leal	1(%r14), %eax
	leal	4(%r14), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	andl	$-4, %ecx
	negl	%ecx
	leal	(%r14,%rcx), %eax
	incl	%eax
	movl	%eax, (%r15)
	movq	_piece@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_temp_piece@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_copy_piece_from_to
	movl	(%r12), %edi
	movq	_shape@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%r15), %edx
	callq	_set_piece
	movq	_board@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	movq	_x@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_y@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_is_piece_hitting
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	%r14d, (%r15)
	movl	(%r12), %edi
	movl	(%r13), %esi
	movl	%r14d, %edx
	callq	_set_piece
	jmp	LBB0_23
LBB0_3:
	testq	%rcx, %rcx
	jne	LBB0_5
## %bb.4:
	movq	_board@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_piece@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_x@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_y@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	incl	%ecx
	callq	_is_piece_hitting
	testq	%rax, %rax
	je	LBB0_7
LBB0_5:
	movq	$0, (%rbx)
	movq	_piece@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_board@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rax, %rbx
	movq	_x@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_y@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_add_piece_to_board
	movl	(%rbx), %edi
	callq	_clear_lines
	movq	_score@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movl	%eax, (%rcx)
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	movl	$500, %ecx                      ## imm = 0x1F4
	subl	%eax, %ecx
	cmpl	$101, %ecx
	movl	$100, %eax
	cmovgel	%ecx, %eax
	movq	_down_delay@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_rotation@GOTPCREL(%rip), %rbx
	movl	$0, (%rbx)
	movq	_r@GOTPCREL(%rip), %r13
	movslq	(%r13), %rdi
	imulq	$-1840700269, %rdi, %rax        ## imm = 0x92492493
	shrq	$32, %rax
	addl	%edi, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	sarl	$2, %eax
	addl	%ecx, %eax
	leal	(,%rax,8), %ecx
	subl	%ecx, %eax
	addl	%edi, %eax
	movq	_shape@GOTPCREL(%rip), %r15
	movl	%eax, (%r15)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_myrandom
	movl	%eax, (%r13)
	movl	(%r12), %edi
	movl	(%r15), %esi
	movl	(%rbx), %edx
	callq	_set_piece
	movq	_x@GOTPCREL(%rip), %r13
	movl	$1, (%r13)
	movl	(%r12), %edi
	callq	_get_piece_min_y
	negl	%eax
	movq	_y@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	movl	(%r15), %edi
	callq	_get_shape_char
	movl	(%r13), %esi
	movq	%r13, %r15
	incl	%esi
	movl	(%rbx), %edx
	movq	%rbx, %r13
	movl	(%r12), %ecx
	xorl	%ebx, %ebx
	movl	%eax, %edi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_draw_piece_moved
	movq	_board@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	movl	(%r15), %edx
	movl	(%r13), %ecx
	callq	_is_piece_hitting
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movl	$1, (%r14)
	movl	$12, %edi
	movl	$10, %esi
	callq	_send_goto_xy
	leaq	L_.str(%rip), %rdi
	callq	_tetris_send_string
	xorl	%eax, %eax
	callq	_tetris_send_down
	leaq	L_.str.1(%rip), %rdi
	callq	_tetris_send_string
	movq	_score@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	leaq	-58(%rbp), %r14
	movq	%r14, %rdi
	callq	_sprintf
	movq	%r14, %rdi
	callq	_tetris_send_string
	jmp	LBB0_23
LBB0_14:
	movq	_board@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_piece@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_x@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	decl	%edx
	movq	_y@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	callq	_is_piece_hitting
	testq	%rax, %rax
	jne	LBB0_23
## %bb.15:
	decl	(%r15)
	movq	_shape@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_shape_char
	movl	(%r15), %esi
	incl	%esi
	movl	(%r12), %edx
	movl	(%r14), %ecx
	movl	%eax, %edi
	movl	$-1, %r8d
	jmp	LBB0_22
LBB0_16:
	movq	_y@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	_board@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_piece@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_x@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leal	1(%rax), %ecx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	callq	_is_piece_hitting
	testq	%rax, %rax
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	(%r15), %ecx
	leal	1(%rcx), %eax
	movl	%eax, (%r15)
	movl	(%r14), %edi
	movl	(%r12), %esi
	movl	(%r13), %edx
	addl	$2, %ecx
                                        ## kill: def $ecx killed $ecx killed $rcx
	jmp	LBB0_18
LBB0_20:
	movq	_board@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_piece@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_x@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	incl	%edx
	movq	_y@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	callq	_is_piece_hitting
	testq	%rax, %rax
	jne	LBB0_23
## %bb.21:
	incl	(%r15)
	movq	_shape@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_shape_char
	movl	(%r15), %esi
	incl	%esi
	movl	(%r12), %edx
	movl	(%r14), %ecx
	movl	$1, %ebx
	movl	%eax, %edi
	movl	$1, %r8d
LBB0_22:
	xorl	%r9d, %r9d
	callq	_draw_piece_moved
	jmp	LBB0_23
LBB0_19:
	movq	_shape@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_shape_char
	movl	(%r13), %esi
	incl	%esi
	movl	(%r12), %ecx
	movq	_empty_piece@GOTPCREL(%rip), %r14
	movl	(%r14), %r8d
	movl	%eax, %edi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_draw_piece
	movq	_shape@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_shape_char
	movl	(%r13), %esi
	incl	%esi
	movl	(%r15), %edx
	movl	(%r14), %ecx
	movl	(%r12), %r8d
	movl	%eax, %edi
	callq	_draw_piece
	movq	_down_delay@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	_time@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	_next_down@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_23
LBB0_7:
	incl	(%r12)
	movq	_shape@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_shape_char
	movl	(%r13), %esi
	incl	%esi
	movl	(%r12), %edx
	movl	(%r15), %ecx
	movl	%eax, %edi
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_draw_piece_moved
LBB0_8:
	movq	_down_delay@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	_time@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	_next_down@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$1, %ebx
	jmp	LBB0_23
LBB0_13:
	movl	(%r13), %edi
	callq	_get_shape_char
	movq	_x@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	incl	%esi
	movq	_y@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_temp_piece@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%r12), %r8d
	movl	%eax, %edi
	callq	_draw_piece
	jmp	LBB0_23
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_14
	.long	L0_0_set_16
	.long	L0_0_set_20
	.end_data_region
                                        ## -- End function
	.comm	_game_over,4,2                  ## @game_over
	.comm	_time,8,3                       ## @time
	.comm	_first_run,8,3                  ## @first_run
	.comm	_next_down,8,3                  ## @next_down
	.comm	_board,4,2                      ## @board
	.comm	_piece,4,2                      ## @piece
	.comm	_x,4,2                          ## @x
	.comm	_y,4,2                          ## @y
	.comm	_score,4,2                      ## @score
	.comm	_down_delay,4,2                 ## @down_delay
	.comm	_rotation,4,2                   ## @rotation
	.comm	_r,4,2                          ## @r
	.comm	_shape,4,2                      ## @shape
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" game over"

L_.str.1:                               ## @.str.1
	.asciz	" score "

L_.str.2:                               ## @.str.2
	.asciz	"%d"

	.comm	_temp_piece,4,2                 ## @temp_piece
	.comm	_empty_piece,4,2                ## @empty_piece
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tetris_tick                    ; -- Begin function tetris_tick
	.p2align	2
_tetris_tick:                           ; @tetris_tick
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x19, _game_over@GOTPAGE
Lloh4:
	ldr	x19, [x19, _game_over@GOTPAGEOFF]
	ldr	w8, [x19]
	cbz	w8, LBB0_4
LBB0_1:
	mov	w19, #0
LBB0_2:
	ldr	x8, [sp, #24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.3:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_4:
Lloh8:
	adrp	x21, _time@GOTPAGE
Lloh9:
	ldr	x21, [x21, _time@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x9, x8, w0, sxtw
	str	x9, [x21]
Lloh10:
	adrp	x22, _first_run@GOTPAGE
Lloh11:
	ldr	x22, [x22, _first_run@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh12:
	adrp	x26, _next_down@GOTPAGE
Lloh13:
	ldr	x26, [x26, _next_down@GOTPAGEOFF]
	ldr	x10, [x26]
	cmp	x8, #0
	ccmp	x9, x10, #0, eq
	b.le	LBB0_9
; %bb.5:
	cbnz	x8, LBB0_7
; %bb.6:
Lloh14:
	adrp	x8, _board@GOTPAGE
Lloh15:
	ldr	x8, [x8, _board@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x23, _piece@GOTPAGE
Lloh18:
	ldr	x23, [x23, _piece@GOTPAGEOFF]
Lloh19:
	adrp	x24, _x@GOTPAGE
Lloh20:
	ldr	x24, [x24, _x@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w2, [x24]
Lloh21:
	adrp	x25, _y@GOTPAGE
Lloh22:
	ldr	x25, [x25, _y@GOTPAGEOFF]
	ldr	w8, [x25]
	add	w3, w8, #1
	bl	_is_piece_hitting
	cbz	x0, LBB0_20
LBB0_7:
	str	xzr, [x22]
Lloh23:
	adrp	x23, _piece@GOTPAGE
Lloh24:
	ldr	x23, [x23, _piece@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh25:
	adrp	x24, _board@GOTPAGE
Lloh26:
	ldr	x24, [x24, _board@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh27:
	adrp	x25, _x@GOTPAGE
Lloh28:
	ldr	x25, [x25, _x@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh29:
	adrp	x26, _y@GOTPAGE
Lloh30:
	ldr	x26, [x26, _y@GOTPAGEOFF]
	ldr	w3, [x26]
	bl	_add_piece_to_board
	ldr	w0, [x24]
	bl	_clear_lines
Lloh31:
	adrp	x22, _score@GOTPAGE
Lloh32:
	ldr	x22, [x22, _score@GOTPAGEOFF]
	ldr	w8, [x22]
	add	w8, w8, w0
	str	w8, [x22]
	mov	w9, #-10
	mul	w8, w8, w9
	add	w8, w8, #500
	mov	w9, #100
	cmp	w8, #100
	csel	w8, w8, w9, gt
Lloh33:
	adrp	x9, _down_delay@GOTPAGE
Lloh34:
	ldr	x9, [x9, _down_delay@GOTPAGEOFF]
Lloh35:
	str	w8, [x9]
Lloh36:
	adrp	x27, _rotation@GOTPAGE
Lloh37:
	ldr	x27, [x27, _rotation@GOTPAGEOFF]
	str	wzr, [x27]
Lloh38:
	adrp	x28, _r@GOTPAGE
Lloh39:
	ldr	x28, [x28, _r@GOTPAGEOFF]
	ldrsw	x0, [x28]
	mov	x8, #-56173
	movk	x8, #37449, lsl #16
	mul	x8, x0, x8
	lsr	x8, x8, #32
	add	w8, w8, w0
	asr	w9, w8, #2
	add	w8, w9, w8, lsr #31
	sub	w8, w8, w8, lsl #3
	add	w8, w0, w8
Lloh40:
	adrp	x20, _shape@GOTPAGE
Lloh41:
	ldr	x20, [x20, _shape@GOTPAGEOFF]
	str	w8, [x20]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_myrandom
	str	w0, [x28]
	ldr	w0, [x23]
	ldr	w1, [x20]
	ldr	w2, [x27]
	bl	_set_piece
	mov	w27, #1
	str	w27, [x25]
	ldr	w0, [x23]
	bl	_get_piece_min_y
	neg	w8, w0
	str	w8, [x26]
	ldr	w0, [x20]
	bl	_get_shape_char
	ldr	w8, [x25]
	add	w1, w8, #1
	ldr	w2, [x26]
	ldr	w3, [x23]
	mov	w4, #0
	mov	w5, #0
	bl	_draw_piece_moved
	ldr	w0, [x24]
	ldr	w1, [x23]
	ldr	w2, [x25]
	ldr	w3, [x26]
	bl	_is_piece_hitting
	cbz	x0, LBB0_21
; %bb.8:
	str	w27, [x19]
	mov	w0, #12
	mov	w1, #10
	bl	_send_goto_xy
Lloh42:
	adrp	x0, l_.str@PAGE
Lloh43:
	add	x0, x0, l_.str@PAGEOFF
	bl	_tetris_send_string
	bl	_tetris_send_down
Lloh44:
	adrp	x0, l_.str.1@PAGE
Lloh45:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_tetris_send_string
	ldr	w2, [x22]
Lloh46:
	adrp	x1, l_.str.2@PAGE
Lloh47:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #14
	bl	_sprintf
	add	x0, sp, #14
	bl	_tetris_send_string
	b	LBB0_1
LBB0_9:
	bl	_tetris_get_keypress
	sub	w8, w0, #1
	cmp	w8, #3
	b.hi	LBB0_19
; %bb.10:
Lloh48:
	adrp	x9, lJTI0_0@PAGE
Lloh49:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_11
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_11:
Lloh50:
	adrp	x21, _rotation@GOTPAGE
Lloh51:
	ldr	x21, [x21, _rotation@GOTPAGEOFF]
	ldr	w19, [x21]
	add	w8, w19, #1
	negs	w9, w8
	and	w9, w9, #0x3
	and	w8, w8, #0x3
	csneg	w8, w8, w9, mi
	str	w8, [x21]
Lloh52:
	adrp	x20, _piece@GOTPAGE
Lloh53:
	ldr	x20, [x20, _piece@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh54:
	adrp	x22, _temp_piece@GOTPAGE
Lloh55:
	ldr	x22, [x22, _temp_piece@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_copy_piece_from_to
	ldr	w0, [x20]
Lloh56:
	adrp	x23, _shape@GOTPAGE
Lloh57:
	ldr	x23, [x23, _shape@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w2, [x21]
	bl	_set_piece
Lloh58:
	adrp	x8, _board@GOTPAGE
Lloh59:
	ldr	x8, [x8, _board@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x8]
	ldr	w1, [x20]
Lloh61:
	adrp	x24, _x@GOTPAGE
Lloh62:
	ldr	x24, [x24, _x@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh63:
	adrp	x25, _y@GOTPAGE
Lloh64:
	ldr	x25, [x25, _y@GOTPAGEOFF]
	ldr	w3, [x25]
	bl	_is_piece_hitting
	cbz	x0, LBB0_22
; %bb.12:
	str	w19, [x21]
	ldr	w0, [x20]
	ldr	w1, [x23]
	mov	x2, x19
	bl	_set_piece
	b	LBB0_19
LBB0_13:
Lloh65:
	adrp	x8, _board@GOTPAGE
Lloh66:
	ldr	x8, [x8, _board@GOTPAGEOFF]
Lloh67:
	ldr	w0, [x8]
Lloh68:
	adrp	x19, _piece@GOTPAGE
Lloh69:
	ldr	x19, [x19, _piece@GOTPAGEOFF]
Lloh70:
	adrp	x20, _x@GOTPAGE
Lloh71:
	ldr	x20, [x20, _x@GOTPAGEOFF]
	ldr	w1, [x19]
	ldr	w8, [x20]
	sub	w2, w8, #1
Lloh72:
	adrp	x21, _y@GOTPAGE
Lloh73:
	ldr	x21, [x21, _y@GOTPAGEOFF]
	ldr	w3, [x21]
	bl	_is_piece_hitting
	cbnz	x0, LBB0_19
; %bb.14:
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
Lloh74:
	adrp	x8, _shape@GOTPAGE
Lloh75:
	ldr	x8, [x8, _shape@GOTPAGEOFF]
Lloh76:
	ldr	w0, [x8]
	bl	_get_shape_char
	ldr	w8, [x20]
	add	w1, w8, #1
	ldr	w2, [x21]
	ldr	w3, [x19]
	mov	w4, #-1
	mov	w5, #0
	bl	_draw_piece_moved
	mov	w19, #1
	b	LBB0_2
LBB0_15:
Lloh77:
	adrp	x22, _y@GOTPAGE
Lloh78:
	ldr	x22, [x22, _y@GOTPAGEOFF]
	ldr	w19, [x22]
Lloh79:
	adrp	x25, _board@GOTPAGE
Lloh80:
	ldr	x25, [x25, _board@GOTPAGEOFF]
Lloh81:
	adrp	x23, _piece@GOTPAGE
Lloh82:
	ldr	x23, [x23, _piece@GOTPAGEOFF]
	ldr	w0, [x25]
	ldr	w1, [x23]
Lloh83:
	adrp	x24, _x@GOTPAGE
Lloh84:
	ldr	x24, [x24, _x@GOTPAGEOFF]
	ldr	w2, [x24]
	add	w3, w19, #1
	bl	_is_piece_hitting
	cbnz	x0, LBB0_17
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	add	w9, w8, #1
	str	w9, [x22]
	ldr	w0, [x25]
	ldr	w1, [x23]
	ldr	w2, [x24]
	add	w3, w8, #2
	bl	_is_piece_hitting
	cbz	x0, LBB0_16
LBB0_17:
Lloh85:
	adrp	x20, _shape@GOTPAGE
Lloh86:
	ldr	x20, [x20, _shape@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_get_shape_char
	ldr	w8, [x24]
	add	w1, w8, #1
	ldr	w3, [x23]
Lloh87:
	adrp	x25, _empty_piece@GOTPAGE
Lloh88:
	ldr	x25, [x25, _empty_piece@GOTPAGEOFF]
	ldr	w4, [x25]
	mov	x2, x19
	bl	_draw_piece
	ldr	w0, [x20]
	bl	_get_shape_char
	ldr	w8, [x24]
	add	w1, w8, #1
	ldr	w2, [x22]
	ldr	w3, [x25]
	ldr	w4, [x23]
	bl	_draw_piece
	ldr	x8, [x21]
Lloh89:
	adrp	x9, _down_delay@GOTPAGE
Lloh90:
	ldr	x9, [x9, _down_delay@GOTPAGEOFF]
Lloh91:
	ldrsw	x9, [x9]
	add	x8, x8, x9
	str	x8, [x26]
	mov	w19, #1
	b	LBB0_2
LBB0_18:
Lloh92:
	adrp	x8, _board@GOTPAGE
Lloh93:
	ldr	x8, [x8, _board@GOTPAGEOFF]
Lloh94:
	ldr	w0, [x8]
Lloh95:
	adrp	x19, _piece@GOTPAGE
Lloh96:
	ldr	x19, [x19, _piece@GOTPAGEOFF]
Lloh97:
	adrp	x20, _x@GOTPAGE
Lloh98:
	ldr	x20, [x20, _x@GOTPAGEOFF]
	ldr	w1, [x19]
	ldr	w8, [x20]
	add	w2, w8, #1
Lloh99:
	adrp	x21, _y@GOTPAGE
Lloh100:
	ldr	x21, [x21, _y@GOTPAGEOFF]
	ldr	w3, [x21]
	bl	_is_piece_hitting
	cbz	x0, LBB0_23
LBB0_19:
	mov	w19, #1
	b	LBB0_2
LBB0_20:
	ldr	w8, [x25]
	add	w8, w8, #1
	str	w8, [x25]
Lloh101:
	adrp	x8, _shape@GOTPAGE
Lloh102:
	ldr	x8, [x8, _shape@GOTPAGEOFF]
Lloh103:
	ldr	w0, [x8]
	bl	_get_shape_char
	ldr	w8, [x24]
	add	w1, w8, #1
	ldr	w2, [x25]
	ldr	w3, [x23]
	mov	w4, #0
	mov	w5, #1
	bl	_draw_piece_moved
LBB0_21:
	ldr	x8, [x21]
Lloh104:
	adrp	x9, _down_delay@GOTPAGE
Lloh105:
	ldr	x9, [x9, _down_delay@GOTPAGEOFF]
Lloh106:
	ldrsw	x9, [x9]
	add	x8, x8, x9
Lloh107:
	adrp	x9, _next_down@GOTPAGE
Lloh108:
	ldr	x9, [x9, _next_down@GOTPAGEOFF]
Lloh109:
	str	x8, [x9]
	mov	w19, #1
	b	LBB0_2
LBB0_22:
	ldr	w0, [x23]
	bl	_get_shape_char
	ldr	w8, [x24]
	add	w1, w8, #1
	ldr	w2, [x25]
	ldr	w3, [x22]
	ldr	w4, [x20]
	bl	_draw_piece
	mov	w19, #1
	b	LBB0_2
LBB0_23:
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
Lloh110:
	adrp	x8, _shape@GOTPAGE
Lloh111:
	ldr	x8, [x8, _shape@GOTPAGEOFF]
Lloh112:
	ldr	w0, [x8]
	bl	_get_shape_char
	ldr	w8, [x20]
	add	w1, w8, #1
	ldr	w2, [x21]
	ldr	w3, [x19]
	mov	w19, #1
	mov	w4, #1
	mov	w5, #0
	bl	_draw_piece_moved
	b	LBB0_2
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotStr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGot	Lloh87, Lloh88
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpLdrGot	Lloh99, Lloh100
	.loh AdrpLdrGot	Lloh97, Lloh98
	.loh AdrpLdrGot	Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotStr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_18-LBB0_11)>>2
                                        ; -- End function
	.comm	_game_over,4,2                  ; @game_over
	.comm	_time,8,3                       ; @time
	.comm	_first_run,8,3                  ; @first_run
	.comm	_next_down,8,3                  ; @next_down
	.comm	_board,4,2                      ; @board
	.comm	_piece,4,2                      ; @piece
	.comm	_x,4,2                          ; @x
	.comm	_y,4,2                          ; @y
	.comm	_score,4,2                      ; @score
	.comm	_down_delay,4,2                 ; @down_delay
	.comm	_rotation,4,2                   ; @rotation
	.comm	_r,4,2                          ; @r
	.comm	_shape,4,2                      ; @shape
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" game over"

l_.str.1:                               ; @.str.1
	.asciz	" score "

l_.str.2:                               ; @.str.2
	.asciz	"%d"

	.comm	_temp_piece,4,2                 ; @temp_piece
	.comm	_empty_piece,4,2                ; @empty_piece
.subsections_via_symbols
