	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clear_lines
_clear_lines:                           ## @clear_lines
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	192(%rdi), %r12
	movl	$19, %ebx
	pxor	%xmm2, %xmm2
	movq	_curx@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$12, %edi
	movl	%ebx, %esi
	callq	_send_goto_xy
	movl	$12, %edi
	callq	_send_backspaces
	xorl	%eax, %eax
	callq	_tetris_send_backspace
	pxor	%xmm2, %xmm2
	movq	_cury@GOTPCREL(%rip), %rax
	decl	(%rax)
	movl	$12, (%r13)
	incl	%r14d
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	addq	$-10, %r12
	addq	$-1, %rbx
	jae	LBB0_8
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-2(%r12), %eax
	movzbl	-1(%r12), %ecx
	movq	(%r12), %xmm0                   ## xmm0 = mem[0],zero
	movdqa	%xmm0, %xmm1
	pcmpeqb	%xmm2, %xmm1
	pmovmskb	%xmm1, %edx
	testb	%dl, %dl
	jne	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	%cl, %cl
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	%al, %al
	jne	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%r14d, %r14d
	jle	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r14d, %edx
	addq	%rbx, %rdx
	leaq	(%rdx,%rdx,4), %rdx
	movb	%al, (%r15,%rdx,2)
	movb	%cl, 1(%r15,%rdx,2)
	pextrb	$0, %xmm0, 2(%r15,%rdx,2)
	pextrb	$1, %xmm0, 3(%r15,%rdx,2)
	pextrb	$2, %xmm0, 4(%r15,%rdx,2)
	pextrb	$3, %xmm0, 5(%r15,%rdx,2)
	pextrb	$4, %xmm0, 6(%r15,%rdx,2)
	pextrb	$5, %xmm0, 7(%r15,%rdx,2)
	pextrb	$6, %xmm0, 8(%r15,%rdx,2)
	pextrb	$7, %xmm0, 9(%r15,%rdx,2)
	jmp	LBB0_7
LBB0_8:
	testl	%r14d, %r14d
	movq	_cury@GOTPCREL(%rip), %r12
	jle	LBB0_11
## %bb.9:
	movl	%r14d, %eax
	addq	%rax, %rax
	leaq	(%rax,%rax,4), %rsi
	movq	%r15, %rdi
	callq	___bzero
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_send_goto_xy
	movl	%r14d, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_draw_board_line
	movl	$0, (%r13)
	incl	(%r12)
	decl	%ebx
	jne	LBB0_10
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cury,4,2                       ## @cury
	.comm	_curx,4,2                       ## @curx
	.no_dead_strip	_clear_lines
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clear_lines
_clear_lines:                           ; @clear_lines
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
	mov	w19, #0
	add	x24, x0, #199
	mov	w21, #19
	mov	w25, #10
	mov	w26, #12
Lloh0:
	adrp	x22, _cury@GOTPAGE
Lloh1:
	ldr	x22, [x22, _cury@GOTPAGEOFF]
Lloh2:
	adrp	x23, _curx@GOTPAGE
Lloh3:
	ldr	x23, [x23, _curx@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #12
	mov	x1, x21
	bl	_send_goto_xy
	mov	w0, #12
	bl	_send_backspaces
	bl	_tetris_send_backspace
	ldr	w8, [x22]
	sub	w8, w8, #1
	str	w8, [x22]
	str	w26, [x23]
	add	w19, w19, #1
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x21, x21, #1
	sub	x24, x24, #10
	cmn	x21, #1
	b.eq	LBB0_15
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldurb	w8, [x24, #-9]
	ldurb	w9, [x24, #-8]
	ldurb	w10, [x24, #-7]
	ldurb	w11, [x24, #-6]
	ldurb	w12, [x24, #-5]
	ldurb	w13, [x24, #-4]
	ldurb	w14, [x24, #-3]
	ldurb	w15, [x24, #-2]
	ldurb	w16, [x24, #-1]
	ldrb	w17, [x24]
	cbz	w17, LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w16, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w15, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w14, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w13, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w12, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w11, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	cbz	w10, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	cbz	w9, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w8, LBB0_1
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w19, #1
	b.lt	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x21, w19, uxtw
	madd	x0, x0, x25, x20
	strb	w8, [x0]
	strb	w9, [x0, #1]
	strb	w10, [x0, #2]
	strb	w11, [x0, #3]
	strb	w12, [x0, #4]
	strb	w13, [x0, #5]
	strb	w14, [x0, #6]
	strb	w15, [x0, #7]
	strb	w16, [x0, #8]
	strb	w17, [x0, #9]
	b	LBB0_2
LBB0_15:
	cmp	w19, #0
	b.le	LBB0_18
; %bb.16:
	mov	w8, #10
	umull	x1, w19, w8
	mov	x0, x20
	bl	_bzero
	mov	w0, #0
	mov	w1, #0
	bl	_send_goto_xy
	mov	x20, x19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	bl	_draw_board_line
	str	wzr, [x23]
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	subs	w20, w20, #1
	b.ne	LBB0_17
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_cury,4,2                       ; @cury
	.comm	_curx,4,2                       ; @curx
	.no_dead_strip	_clear_lines
.subsections_via_symbols
