	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function gen_line
LCPI0_0:
	.long	2                               ## 0x2
	.long	4                               ## 0x4
	.long	8                               ## 0x8
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_gen_line:                              ## @gen_line
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, -64(%rbp)                 ## 4-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	$2, %ecx
	jl	LBB0_3
## %bb.1:
	movl	16(%rbp), %r13d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	1(%rax), %ebx
	movslq	-80(%rbp), %r14                 ## 4-byte Folded Reload
	addq	-72(%rbp), %r14                 ## 8-byte Folded Reload
	shll	$3, %r13d
	movl	%eax, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %eax
	cltd
	idivl	%ebx
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	andl	$-8, %ecx
	subl	%ecx, %eax
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_gen_twopix
	addq	$4, %r14
	addl	$8, %r13d
	decl	%r15d
	jne	LBB0_2
LBB0_3:
	movq	_TSTAMP_MAX_Y@GOTPCREL(%rip), %rax
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jge	LBB0_15
## %bb.4:
	movq	24(%rbp), %r13
	movq	_TSTAMP_INPUT_X@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movq	%r13, %rdi
	callq	_strlen
	addl	%ebx, %eax
	cmpl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_15
## %bb.5:
	movq	_TSTAMP_MIN_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	cmpl	%esi, %eax
	jg	LBB0_8
## %bb.6:
	movq	_TSTAMP_MAX_Y@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	jl	LBB0_8
## %bb.7:
	movq	_rom8x16_bits@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%r12), %edx
	shll	$4, %edx
	subl	%eax, %esi
	addl	%edx, %esi
	movslq	%esi, %rax
	movl	(%rcx,%rax,4), %ebx
	movslq	(%r15), %r15
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	leaq	(%r14,%r15), %rsi
	testb	$-128, %bl
	movq	_WHITE@GOTPCREL(%rip), %r13
	movq	%r13, %rax
	cmoveq	_BLACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_gen_twopix
	testb	$64, %bl
	leaq	2(%r14,%r15), %rsi
	movq	%r13, %rax
	cmoveq	_BLACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_gen_twopix
	testb	$32, %bl
	leaq	4(%r14,%r15), %rsi
	movq	%r13, %rax
	movq	_BLACK@GOTPCREL(%rip), %rcx
	cmoveq	%rcx, %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_gen_twopix
	leaq	(%r14,%r15), %rsi
	addq	$6, %rsi
	leaq	8(%r14,%r15), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movd	%ebx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	pand	LCPI0_0(%rip), %xmm0
	leaq	10(%r14,%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	pxor	%xmm1, %xmm1
	pcmpeqd	%xmm0, %xmm1
	movmskps	%xmm1, %ebx
	testb	$8, %bl
	movq	%r13, %rax
	movq	_BLACK@GOTPCREL(%rip), %rcx
	cmovneq	%rcx, %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_gen_twopix
	testb	$4, %bl
	movq	%r13, %rax
	cmovneq	_BLACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_gen_twopix
	testb	$2, %bl
	movq	%r13, %rax
	cmovneq	_BLACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_gen_twopix
	leaq	(%r14,%r15), %rsi
	addq	$12, %rsi
	testb	$1, %bl
	cmovneq	_BLACK@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	24(%rbp), %r13
	movq	%r12, %rdi
	callq	_gen_twopix
LBB0_8:
	movq	_TSTAMP_MIN_X@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	%r13, %rdi
	callq	_strlen
	addl	%ebx, %eax
	cmpl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_15
## %bb.9:
	movq	_TSTAMP_MIN_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jg	LBB0_15
## %bb.10:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	_TSTAMP_MAX_Y@GOTPCREL(%rip), %rdx
	cmpl	%ecx, (%rdx)
	jl	LBB0_15
## %bb.11:
	movb	(%r13), %cl
	testb	%cl, %cl
	je	LBB0_15
## %bb.12:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addl	$-768, %esi                     ## imm = 0xFD00
	incq	%r13
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	leal	(%rdi,%rdx,2), %ebx
	addl	$12, %ebx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	_rom8x16_bits@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movsbl	%cl, %ecx
	shll	$4, %ecx
	addl	%esi, %ecx
	subl	%eax, %ecx
	movslq	%ecx, %rax
	movl	(%rdx,%rax,4), %r15d
	leal	-12(%rbx), %eax
	movslq	%eax, %rsi
	addq	%r13, %rsi
	testb	$-128, %r15b
	movq	_WHITE@GOTPCREL(%rip), %r12
	movq	%r12, %rax
	movq	_BLACK@GOTPCREL(%rip), %r14
	cmoveq	%r14, %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_gen_twopix
	leal	-10(%rbx), %eax
	movslq	%eax, %rsi
	addq	%r13, %rsi
	testb	$64, %r15b
	movq	%r12, %rax
	cmoveq	_BLACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_gen_twopix
	leal	-8(%rbx), %eax
	movslq	%eax, %rsi
	addq	%r13, %rsi
	testb	$32, %r15b
	movq	%r12, %rax
	movq	_BLACK@GOTPCREL(%rip), %rcx
	cmoveq	%rcx, %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_gen_twopix
	leal	-6(%rbx), %eax
	movslq	%eax, %rsi
	addq	%r13, %rsi
	testb	$16, %r15b
	movq	%r12, %rax
	movq	_BLACK@GOTPCREL(%rip), %rcx
	cmoveq	%rcx, %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_gen_twopix
	leal	-4(%rbx), %eax
	movslq	%eax, %rsi
	addq	%r13, %rsi
	testb	$8, %r15b
	movq	%r12, %rax
	movq	_BLACK@GOTPCREL(%rip), %r12
	cmoveq	%r12, %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_gen_twopix
	leal	-2(%rbx), %eax
	movslq	%eax, %rsi
	addq	%r13, %rsi
	testb	$4, %r15b
	movq	_WHITE@GOTPCREL(%rip), %rax
	cmoveq	%r12, %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_gen_twopix
	movslq	%ebx, %rsi
	addq	%r13, %rsi
	testb	$2, %r15b
	movq	_WHITE@GOTPCREL(%rip), %rax
	cmoveq	%r12, %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_gen_twopix
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movzbl	(%rdx), %ecx
	testb	%cl, %cl
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_TSTAMP_MIN_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incq	%rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	addl	$14, %ebx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_13
LBB0_15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TSTAMP_MAX_Y,4,2               ## @TSTAMP_MAX_Y
	.comm	_TSTAMP_INPUT_X,4,2             ## @TSTAMP_INPUT_X
	.comm	_TSTAMP_MIN_Y,4,2               ## @TSTAMP_MIN_Y
	.comm	_rom8x16_bits,8,3               ## @rom8x16_bits
	.comm	_WHITE,4,2                      ## @WHITE
	.comm	_BLACK,4,2                      ## @BLACK
	.comm	_TSTAMP_MIN_X,4,2               ## @TSTAMP_MIN_X
	.no_dead_strip	_gen_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen_line
_gen_line:                              ; @gen_line
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x7
	mov	x23, x5
	mov	x24, x4
	str	w2, [sp, #12]                   ; 4-byte Folded Spill
	mov	x19, x1
	mov	x20, x0
	cmp	w3, #0
	cinc	w8, w3, lt
	asr	w22, w8, #1
	cmp	w3, #2
	b.lt	LBB0_3
; %bb.1:
	add	w27, w22, #1
	lsl	w28, w6, #3
	mov	x26, x22
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	add	x25, x19, w8, sxtw
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sdiv	w8, w28, w27
	and	w9, w8, #0x7
	negs	w8, w8
	and	w8, w8, #0x7
	csneg	w2, w9, w8, mi
	mov	x0, x20
	mov	x1, x25
	bl	_gen_twopix
	add	x25, x25, #4
	add	w28, w28, #8
	subs	w26, w26, #1
	b.ne	LBB0_2
LBB0_3:
Lloh0:
	adrp	x27, _TSTAMP_MAX_Y@GOTPAGE
Lloh1:
	ldr	x27, [x27, _TSTAMP_MAX_Y@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, w24
	b.ge	LBB0_12
; %bb.4:
Lloh2:
	adrp	x24, _TSTAMP_INPUT_X@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TSTAMP_INPUT_X@GOTPAGEOFF]
	ldr	w25, [x24]
	mov	x0, x21
	bl	_strlen
	add	w8, w0, w25
	cmp	w8, w22
	b.ge	LBB0_12
; %bb.5:
Lloh4:
	adrp	x25, _TSTAMP_MIN_Y@GOTPAGE
Lloh5:
	ldr	x25, [x25, _TSTAMP_MIN_Y@GOTPAGEOFF]
	ldr	w8, [x25]
	ldr	w9, [x27]
	cmp	w8, w23
	ccmp	w9, w23, #8, le
	b.lt	LBB0_7
; %bb.6:
Lloh6:
	adrp	x9, _rom8x16_bits@GOTPAGE
Lloh7:
	ldr	x9, [x9, _rom8x16_bits@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w10, [x20]
	sub	w8, w23, w8
	add	w8, w8, w10, lsl #4
	ldr	w28, [x9, w8, sxtw #2]
	ldrsw	x8, [x24]
Lloh9:
	adrp	x10, _BLACK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _BLACK@GOTPAGEOFF]
	add	x24, x19, x8
Lloh11:
	adrp	x26, _WHITE@GOTPAGE
Lloh12:
	ldr	x26, [x26, _WHITE@GOTPAGEOFF]
	tst	w28, #0x80
	csel	x8, x10, x26, eq
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x24
	bl	_gen_twopix
	add	x1, x24, #2
	tst	w28, #0x40
Lloh13:
	adrp	x8, _BLACK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BLACK@GOTPAGEOFF]
	csel	x8, x8, x26, eq
	ldr	w2, [x8]
	mov	x0, x20
	bl	_gen_twopix
	add	x1, x24, #4
	tst	w28, #0x20
Lloh15:
	adrp	x8, _BLACK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BLACK@GOTPAGEOFF]
	csel	x8, x8, x26, eq
	ldr	w2, [x8]
	mov	x0, x20
	bl	_gen_twopix
	add	x1, x24, #6
	tst	w28, #0x10
Lloh17:
	adrp	x8, _BLACK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BLACK@GOTPAGEOFF]
	csel	x8, x8, x26, eq
	ldr	w2, [x8]
	mov	x0, x20
	bl	_gen_twopix
	add	x1, x24, #8
	tst	w28, #0x8
Lloh19:
	adrp	x8, _BLACK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BLACK@GOTPAGEOFF]
	csel	x8, x8, x26, eq
	ldr	w2, [x8]
	mov	x0, x20
	bl	_gen_twopix
	add	x1, x24, #10
	tst	w28, #0x4
Lloh21:
	adrp	x8, _BLACK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BLACK@GOTPAGEOFF]
	csel	x8, x8, x26, eq
	ldr	w2, [x8]
	mov	x0, x20
	bl	_gen_twopix
	add	x1, x24, #12
	tst	w28, #0x2
Lloh23:
	adrp	x8, _BLACK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BLACK@GOTPAGEOFF]
	csel	x8, x8, x26, eq
	ldr	w2, [x8]
	mov	x0, x20
	bl	_gen_twopix
LBB0_7:
Lloh25:
	adrp	x24, _TSTAMP_MIN_X@GOTPAGE
Lloh26:
	ldr	x24, [x24, _TSTAMP_MIN_X@GOTPAGEOFF]
	ldr	w26, [x24]
	mov	x0, x21
	bl	_strlen
	ldr	w8, [x25]
	ldr	w9, [x27]
	add	w10, w0, w26
	cmp	w10, w22
	ccmp	w8, w23, #0, lt
	ccmp	w9, w23, #8, le
	b.lt	LBB0_12
; %bb.8:
	ldrb	w9, [x21]
	cbz	w9, LBB0_12
; %bb.9:
	ldr	w10, [x24]
	sub	w23, w23, #768
	add	x21, x21, #1
	ldr	w11, [sp, #12]                  ; 4-byte Folded Reload
	add	w10, w11, w10, lsl #1
	add	w22, w10, #12
Lloh27:
	adrp	x24, _rom8x16_bits@GOTPAGE
Lloh28:
	ldr	x24, [x24, _rom8x16_bits@GOTPAGEOFF]
Lloh29:
	adrp	x26, _BLACK@GOTPAGE
Lloh30:
	ldr	x26, [x26, _BLACK@GOTPAGEOFF]
Lloh31:
	adrp	x27, _WHITE@GOTPAGE
Lloh32:
	ldr	x27, [x27, _WHITE@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x24]
	add	w9, w23, w9, sxtb #4
	sub	w8, w9, w8
	ldr	w28, [x10, w8, sxtw #2]
	sub	w8, w22, #12
	add	x1, x19, w8, sxtw
	tst	w28, #0x80
	csel	x8, x26, x27, eq
	ldr	w2, [x8]
	mov	x0, x20
	bl	_gen_twopix
	sub	w8, w22, #10
	add	x1, x19, w8, sxtw
	tst	w28, #0x40
	csel	x8, x26, x27, eq
	ldr	w2, [x8]
	mov	x0, x20
	bl	_gen_twopix
	sub	w8, w22, #8
	add	x1, x19, w8, sxtw
	tst	w28, #0x20
	csel	x8, x26, x27, eq
	ldr	w2, [x8]
	mov	x0, x20
	bl	_gen_twopix
	sub	w8, w22, #6
	add	x1, x19, w8, sxtw
	tst	w28, #0x10
	csel	x8, x26, x27, eq
	ldr	w2, [x8]
	mov	x0, x20
	bl	_gen_twopix
	sub	w8, w22, #4
	add	x1, x19, w8, sxtw
	tst	w28, #0x8
	csel	x8, x26, x27, eq
	ldr	w2, [x8]
	mov	x0, x20
	bl	_gen_twopix
	sub	w8, w22, #2
	add	x1, x19, w8, sxtw
	tst	w28, #0x4
	csel	x8, x26, x27, eq
	ldr	w2, [x8]
	mov	x0, x20
	bl	_gen_twopix
	add	x1, x19, w22, sxtw
	tst	w28, #0x2
	csel	x8, x26, x27, eq
	ldr	w2, [x8]
	mov	x0, x20
	bl	_gen_twopix
	ldrb	w9, [x21]
	cbz	w9, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x25]
	add	x21, x21, #1
	add	w22, w22, #14
	b	LBB0_10
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_TSTAMP_MAX_Y,4,2               ; @TSTAMP_MAX_Y
	.comm	_TSTAMP_INPUT_X,4,2             ; @TSTAMP_INPUT_X
	.comm	_TSTAMP_MIN_Y,4,2               ; @TSTAMP_MIN_Y
	.comm	_rom8x16_bits,8,3               ; @rom8x16_bits
	.comm	_WHITE,4,2                      ; @WHITE
	.comm	_BLACK,4,2                      ; @BLACK
	.comm	_TSTAMP_MIN_X,4,2               ; @TSTAMP_MIN_X
	.no_dead_strip	_gen_line
.subsections_via_symbols
