	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_row
_draw_row:                              ## @draw_row
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movb	%dil, -42(%rbp)
	movb	$0, -41(%rbp)
	movl	$0, -49(%rbp)
	movl	$0, -52(%rbp)
	cmpb	$0, (%rsi)
	movb	(%rdx), %al
	je	LBB0_4
## %bb.1:
	testb	%al, %al
	jne	LBB0_3
## %bb.2:
	movb	$1, -52(%rbp)
	jmp	LBB0_3
LBB0_4:
	testb	%al, %al
	je	LBB0_5
LBB0_3:
	xorl	%eax, %eax
	xorl	%r12d, %r12d
LBB0_6:
	cmpb	$0, 1(%rsi)
	movb	1(%rdx), %cl
	je	LBB0_9
## %bb.7:
	testb	%cl, %cl
	jne	LBB0_10
## %bb.8:
	movb	$1, -51(%rbp)
	jmp	LBB0_10
LBB0_9:
	movl	%r12d, %r13d
	testb	%cl, %cl
	je	LBB0_11
LBB0_10:
	movl	$1, %r13d
	movl	%eax, %r12d
LBB0_11:
	cmpb	$0, 2(%rsi)
	movb	2(%rdx), %al
	je	LBB0_14
## %bb.12:
	testb	%al, %al
	jne	LBB0_15
## %bb.13:
	movb	$1, -50(%rbp)
	jmp	LBB0_15
LBB0_14:
	testb	%al, %al
	je	LBB0_16
LBB0_15:
	cmpl	$-1, %r12d
	movl	$2, %r13d
	cmovel	%r13d, %r12d
LBB0_16:
	cmpb	$0, 3(%rsi)
	movb	3(%rdx), %al
	je	LBB0_19
## %bb.17:
	testb	%al, %al
	jne	LBB0_20
## %bb.18:
	movb	$1, -49(%rbp)
	jmp	LBB0_20
LBB0_19:
	testb	%al, %al
	je	LBB0_21
LBB0_20:
	cmpl	$-1, %r12d
	movl	$3, %r13d
	cmovel	%r13d, %r12d
LBB0_21:
	cmpb	$0, 4(%rsi)
	movb	4(%rdx), %al
	je	LBB0_24
## %bb.22:
	testb	%al, %al
	jne	LBB0_25
## %bb.23:
	movb	$1, -48(%rbp)
	jmp	LBB0_25
LBB0_24:
	testb	%al, %al
	je	LBB0_26
LBB0_25:
	cmpl	$-1, %r12d
	movl	$4, %r13d
	cmovel	%r13d, %r12d
LBB0_26:
	cmpb	$0, 5(%rsi)
	movb	5(%rdx), %al
	je	LBB0_29
## %bb.27:
	testb	%al, %al
	jne	LBB0_30
## %bb.28:
	movb	$1, -47(%rbp)
	jmp	LBB0_30
LBB0_29:
	testb	%al, %al
	je	LBB0_31
LBB0_30:
	cmpl	$-1, %r12d
	movl	$5, %r13d
	cmovel	%r13d, %r12d
LBB0_31:
	cmpb	$0, 6(%rsi)
	movb	6(%rdx), %al
	je	LBB0_34
## %bb.32:
	testb	%al, %al
	jne	LBB0_35
## %bb.33:
	movb	$1, -46(%rbp)
	jmp	LBB0_35
LBB0_34:
	testb	%al, %al
	je	LBB0_36
LBB0_35:
	cmpl	$-1, %r12d
	movl	$6, %r13d
	cmovel	%r13d, %r12d
LBB0_37:
	movq	_curx@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leal	(%r14,%r13), %ebx
	incl	%ebx
	cmpl	%ebx, %edi
	jle	LBB0_39
## %bb.38:
	movq	_cury@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%r8d, %r14d
	callq	_send_goto_xy
	movl	%r14d, %r8d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	(%r15), %edi
LBB0_39:
	addl	%r12d, %r14d
	cmpl	%r14d, %edi
	jge	LBB0_41
## %bb.40:
	movq	_cury@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%r8d, %r14d
	callq	_send_goto_xy
	movl	%r14d, %r8d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	(%r15), %edi
LBB0_41:
	movl	%r8d, %esi
	callq	_send_goto_xy
	subl	(%r15), %ebx
	movl	%ebx, %edi
	callq	_send_deletes
	movl	(%r15), %edi
	subl	%r14d, %edi
	callq	_send_backspaces
	cmpl	%r13d, %r12d
	jle	LBB0_42
LBB0_47:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_42:
	movl	%r12d, %ebx
	movslq	%r13d, %r13
	incq	%r13
	leaq	-42(%rbp), %r14
	leaq	L_.str(%rip), %r12
	jmp	LBB0_43
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_43 Depth=1
	movq	%r14, %rdi
LBB0_46:                                ##   in Loop: Header=BB0_43 Depth=1
	callq	_tetris_send_string
	incl	(%r15)
	incq	%rbx
	cmpl	%ebx, %r13d
	je	LBB0_47
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$0, -52(%rbp,%rbx)
	je	LBB0_45
## %bb.44:                              ##   in Loop: Header=BB0_43 Depth=1
	movq	%r12, %rdi
	jmp	LBB0_46
LBB0_5:
	movl	$-1, %r12d
	movl	$1, %eax
	jmp	LBB0_6
LBB0_36:
	testl	%r12d, %r12d
	jns	LBB0_37
	jmp	LBB0_47
	.cfi_endproc
                                        ## -- End function
	.comm	_curx,4,2                       ## @curx
	.comm	_cury,4,2                       ## @cury
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

	.no_dead_strip	_draw_row
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_row
_draw_row:                              ; @draw_row
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x4
	mov	x20, x3
	strb	w0, [sp, #14]
	strb	wzr, [sp, #15]
	stur	wzr, [sp, #7]
	str	wzr, [sp, #4]
	ldrb	w9, [x1]
	ldrb	w8, [x2]
	cbz	w9, LBB0_3
; %bb.1:
	cbnz	w8, LBB0_4
; %bb.2:
	mov	w8, #1
	strb	w8, [sp, #4]
	b	LBB0_4
LBB0_3:
	cbz	w8, LBB0_46
LBB0_4:
	mov	w8, #0
	mov	w22, #0
LBB0_5:
	ldrb	w10, [x1, #1]
	ldrb	w9, [x2, #1]
	cbz	w10, LBB0_8
; %bb.6:
	cbnz	w9, LBB0_9
; %bb.7:
	mov	w9, #1
	strb	w9, [sp, #5]
	b	LBB0_9
LBB0_8:
	mov	x23, x22
	cbz	w9, LBB0_10
LBB0_9:
	mov	w23, #1
	mov	x22, x8
LBB0_10:
	ldrb	w9, [x1, #2]
	ldrb	w8, [x2, #2]
	cbz	w9, LBB0_13
; %bb.11:
	cbnz	w8, LBB0_14
; %bb.12:
	mov	w8, #1
	strb	w8, [sp, #6]
	b	LBB0_14
LBB0_13:
	cbz	w8, LBB0_15
LBB0_14:
	cmn	w22, #1
	mov	w23, #2
	csel	w22, w23, w22, eq
LBB0_15:
	ldrb	w9, [x1, #3]
	ldrb	w8, [x2, #3]
	cbz	w9, LBB0_18
; %bb.16:
	cbnz	w8, LBB0_19
; %bb.17:
	mov	w8, #1
	strb	w8, [sp, #7]
	b	LBB0_19
LBB0_18:
	cbz	w8, LBB0_20
LBB0_19:
	cmn	w22, #1
	mov	w23, #3
	csel	w22, w23, w22, eq
LBB0_20:
	ldrb	w9, [x1, #4]
	ldrb	w8, [x2, #4]
	cbz	w9, LBB0_23
; %bb.21:
	cbnz	w8, LBB0_24
; %bb.22:
	mov	w8, #1
	strb	w8, [sp, #8]
	b	LBB0_24
LBB0_23:
	cbz	w8, LBB0_25
LBB0_24:
	cmn	w22, #1
	mov	w23, #4
	csel	w22, w23, w22, eq
LBB0_25:
	ldrb	w9, [x1, #5]
	ldrb	w8, [x2, #5]
	cbz	w9, LBB0_28
; %bb.26:
	cbnz	w8, LBB0_29
; %bb.27:
	mov	w8, #1
	strb	w8, [sp, #9]
	b	LBB0_29
LBB0_28:
	cbz	w8, LBB0_30
LBB0_29:
	cmn	w22, #1
	mov	w23, #5
	csel	w22, w23, w22, eq
LBB0_30:
	ldrb	w9, [x1, #6]
	ldrb	w8, [x2, #6]
	cbz	w9, LBB0_33
; %bb.31:
	cbnz	w8, LBB0_34
; %bb.32:
	mov	w8, #1
	strb	w8, [sp, #10]
	b	LBB0_34
LBB0_33:
	cbz	w8, LBB0_47
LBB0_34:
	cmn	w22, #1
	mov	w23, #6
	csel	w22, w23, w22, eq
LBB0_35:
Lloh0:
	adrp	x24, _curx@GOTPAGE
Lloh1:
	ldr	x24, [x24, _curx@GOTPAGEOFF]
	ldr	w0, [x24]
	add	w8, w20, w23
	add	w21, w8, #1
	cmp	w0, w21
	b.le	LBB0_37
; %bb.36:
Lloh2:
	adrp	x8, _cury@GOTPAGE
Lloh3:
	ldr	x8, [x8, _cury@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_send_goto_xy
	ldr	w0, [x24]
LBB0_37:
	add	w20, w22, w20
	cmp	w0, w20
	b.ge	LBB0_39
; %bb.38:
Lloh5:
	adrp	x8, _cury@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cury@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_send_goto_xy
	ldr	w0, [x24]
LBB0_39:
	mov	x1, x19
	bl	_send_goto_xy
	ldr	w8, [x24]
	sub	w0, w21, w8
	bl	_send_deletes
	ldr	w8, [x24]
	sub	w0, w8, w20
	bl	_send_backspaces
	cmp	w22, w23
	b.le	LBB0_41
LBB0_40:
	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
	add	sp, sp, #80
	ret
LBB0_41:
	add	x8, sp, #4
	add	x20, x8, w22, uxtw
	sub	w8, w23, w22
	add	w21, w8, #1
Lloh8:
	adrp	x19, l_.str@PAGE
Lloh9:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_44
LBB0_42:                                ;   in Loop: Header=BB0_44 Depth=1
	add	x0, sp, #14
LBB0_43:                                ;   in Loop: Header=BB0_44 Depth=1
	bl	_tetris_send_string
	ldr	w8, [x24]
	add	w8, w8, #1
	str	w8, [x24]
	add	x20, x20, #1
	subs	w21, w21, #1
	b.eq	LBB0_40
LBB0_44:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20]
	cbz	w8, LBB0_42
; %bb.45:                               ;   in Loop: Header=BB0_44 Depth=1
	mov	x0, x19
	b	LBB0_43
LBB0_46:
	mov	w22, #-1
	mov	w8, #1
	b	LBB0_5
LBB0_47:
	tbz	w22, #31, LBB0_35
	b	LBB0_40
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_curx,4,2                       ; @curx
	.comm	_cury,4,2                       ; @cury
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

	.no_dead_strip	_draw_row
.subsections_via_symbols
