	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function subcoloronechr
_subcoloronechr:                        ## @subcoloronechr
	.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
	movq	%r8, %r12
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rbx
	movq	_MAX_SIMPLE_CHR@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jge	LBB0_6
## %bb.1:
	movl	(%rbx), %eax
	leal	(%rax,%rax,2), %eax
	leal	48(,%rax,8), %edi
	callq	_MALLOC
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r15
	cmpl	$0, (%rbx)
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	jle	LBB0_9
## %bb.3:
	xorl	%r14d, %r14d
	movq	%rax, %rdx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	cmpq	%r13, %rcx
	jge	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	movq	16(%r15), %rcx
	movq	%rcx, 16(%rdx)
	movups	(%r15), %xmm0
	movups	%xmm0, (%rdx)
	addq	$24, %r15
	addq	$24, %rdx
	cmpl	%r14d, (%rbx)
	jg	LBB0_4
	jmp	LBB0_11
LBB0_6:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_subcolor
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_NOERR
	cmpq	(%r12), %rbx
	je	LBB0_19
## %bb.7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_PLAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	movq	%r14, %r8
	callq	_newarc
	movq	%rbx, (%r12)
	jmp	LBB0_19
LBB0_8:
	movq	_REG_ESPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CERR                           ## TAILCALL
LBB0_9:
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_10:
	movq	8(%r15), %rdx
	cmpq	%r13, %rdx
	jle	LBB0_20
LBB0_11:
	movl	%r14d, %ecx
	leaq	(%rcx,%rcx,2), %r12
	movq	%r13, 8(%rax,%r12,8)
	movq	%r13, (%rax,%r12,8)
	movq	%rbx, %rdi
	movq	%rax, %r13
	xorl	%esi, %esi
	callq	_newhicolorrow
	movq	%rax, %rcx
	movl	%ecx, 16(%r13,%r12,8)
	leal	1(%r14), %r12d
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_13:
	movl	%ecx, %esi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	callq	_subcoloronerow
	movl	(%rbx), %edx
	cmpl	%edx, %r14d
	jge	LBB0_16
## %bb.14:
	movslq	%r12d, %rax
	leaq	(%rax,%rax,2), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15,%rcx), %rdx
	movq	%rdx, 16(%rax,%rcx)
	movups	(%r15,%rcx), %xmm0
	movups	%xmm0, (%rax,%rcx)
	incl	%r14d
	movl	(%rbx), %edx
	addq	$24, %rcx
	incl	%r12d
	cmpl	%edx, %r14d
	jl	LBB0_15
LBB0_16:
	addl	$2, %edx
	xorl	%edi, %edi
	cmpl	%edx, %r12d
	setle	%dil
	callq	_assert
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	_FREE
LBB0_18:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	movl	%r12d, (%rbx)
LBB0_19:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	cmpq	%rcx, %rdx
	jne	LBB0_22
## %bb.21:
	movl	%r14d, %ecx
	incl	%r14d
	leaq	(%rcx,%rcx,2), %rdx
	movq	16(%r15), %rcx
	movq	%rcx, 16(%rax,%rdx,8)
	movups	(%r15), %xmm0
	movups	%xmm0, (%rax,%rdx,8)
	movl	16(%r15), %ecx
	addq	$24, %r15
	movl	%r14d, %r12d
	jmp	LBB0_12
LBB0_22:
	cmpq	%r13, %rdx
	jge	LBB0_24
## %bb.23:
	movl	%r14d, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	movq	%rdx, 8(%rax,%rcx,8)
	leaq	-1(%r13), %rdx
	movq	%rdx, (%rax,%rcx,8)
	movl	16(%r15), %edx
	movl	%edx, 16(%rax,%rcx,8)
	leal	1(%r14), %ecx
	jmp	LBB0_25
LBB0_24:
	movl	%r14d, %ecx
LBB0_25:
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movslq	%ecx, %r12
	leaq	(%r12,%r12,2), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, 8(%rax,%rcx,8)
	movq	%r13, (%rax,%rcx,8)
	movl	16(%r15), %esi
	movq	%rbx, %rdi
	callq	_newhicolorrow
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, %rcx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, 16(%rsi,%rax,8)
	incl	%r12d
	movq	(%r15), %rax
	cmpq	%r13, %rax
	jle	LBB0_29
## %bb.26:
	leaq	1(%r13), %rdi
	movslq	%r12d, %rdx
	leaq	(%rdx,%rdx,2), %r12
	movq	%rdi, 8(%rsi,%r12,8)
	movq	%rax, (%rsi,%r12,8)
	movslq	16(%r15), %rax
	cmpq	%r13, 8(%r15)
	jge	LBB0_28
## %bb.27:
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%rcx, %r13
	callq	_newhicolorrow
	movq	%r13, %rcx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_28:
	movl	%eax, 16(%rsi,%r12,8)
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	addl	$2, %eax
	movl	%eax, %r12d
LBB0_29:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %r15
	incl	%r14d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SIMPLE_CHR,8,3             ## @MAX_SIMPLE_CHR
	.comm	_PLAIN,4,2                      ## @PLAIN
	.comm	_REG_ESPACE,4,2                 ## @REG_ESPACE
	.no_dead_strip	_subcoloronechr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function subcoloronechr
_subcoloronechr:                        ; @subcoloronechr
	.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
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x25, x1
	mov	x24, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _MAX_SIMPLE_CHR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_SIMPLE_CHR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ge	LBB0_7
; %bb.1:
	ldr	w8, [x19]
	mov	w9, #24
	orr	w10, wzr, #0x30
	madd	w0, w8, w9, w10
	bl	_MALLOC
	cbz	x0, LBB0_9
; %bb.2:
	mov	x20, x0
	ldr	x28, [x19, #8]
	ldr	w8, [x19]
	cmp	w8, #1
	str	x22, [sp, #24]                  ; 8-byte Folded Spill
	b.lt	LBB0_10
; %bb.3:
	mov	x8, #0
	mov	x27, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x28, x8]
	cmp	x10, x25
	b.ge	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
	add	x9, x20, x8
	add	x10, x28, x8
	ldr	q0, [x10]
	ldr	x10, [x10, #16]
	str	x10, [x9, #16]
	str	q0, [x9]
	ldr	w9, [x19]
	add	x8, x8, #24
	cmp	w9, w27
	b.gt	LBB0_4
; %bb.6:
	add	x28, x28, x8
	b	LBB0_13
LBB0_7:
	mov	x0, x19
	mov	x1, x25
	bl	_subcolor
	mov	x19, x0
	bl	_NOERR
	ldr	x8, [x21]
	cmp	x19, x8
	b.eq	LBB0_20
; %bb.8:
	ldr	w0, [x24]
Lloh3:
	adrp	x8, _PLAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PLAIN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x19
	mov	x3, x23
	mov	x4, x22
	bl	_newarc
	str	x19, [x21]
	b	LBB0_20
LBB0_9:
Lloh6:
	adrp	x8, _REG_ESPACE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_ESPACE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	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
	b	_CERR
LBB0_10:
	mov	w27, #0
	b	LBB0_13
LBB0_11:
	add	x11, x28, x8
	ldr	x9, [x11, #8]
	cmp	x9, x25
	b.le	LBB0_21
; %bb.12:
	mov	x28, x11
LBB0_13:
	mov	w8, #24
	umaddl	x22, w27, w8, x20
	stp	x25, x25, [x22]
	mov	x0, x19
	mov	w1, #0
	bl	_newhicolorrow
	mov	x26, x0
	str	w26, [x22, #16]
	add	w22, w27, #1
LBB0_14:
	mov	x0, x24
	mov	x1, x26
	mov	x2, x23
	ldr	x3, [sp, #24]                   ; 8-byte Folded Reload
	mov	x4, x21
	bl	_subcoloronerow
	ldr	w9, [x19]
	cmp	w27, w9
	b.ge	LBB0_17
; %bb.15:
	mov	w8, #24
	smaddl	x8, w22, w8, x20
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	q0, [x28]
	ldr	x9, [x28, #16]
	str	x9, [x8, #16]
	str	q0, [x8], #24
	add	x28, x28, #24
	add	w27, w27, #1
	ldr	w9, [x19]
	add	w22, w22, #1
	cmp	w27, w9
	b.lt	LBB0_16
LBB0_17:
	add	w8, w9, #2
	cmp	w22, w8
	cset	w0, le
	bl	_assert
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_19
; %bb.18:
	bl	_FREE
LBB0_19:
	str	x20, [x19, #8]
	str	w22, [x19]
LBB0_20:
	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_21:
	cmp	x9, x10
	b.ne	LBB0_23
; %bb.22:
	add	w22, w27, #1
	and	x9, x27, #0xffffffff
	mov	w10, #24
	madd	x9, x9, x10, x20
	add	x8, x28, x8
	ldr	q0, [x8]
	ldr	x10, [x8, #16]
	str	x10, [x9, #16]
	str	q0, [x9]
	ldr	w26, [x8, #16]
	add	x28, x8, #24
	mov	x27, x22
	b	LBB0_14
LBB0_23:
	cmp	x9, x25
	str	x11, [sp, #8]                   ; 8-byte Folded Spill
	b.ge	LBB0_25
; %bb.24:
	and	x10, x27, #0xffffffff
	mov	w11, #24
	madd	x10, x10, x11, x20
	sub	x11, x25, #1
	stp	x11, x9, [x10]
	add	x9, x28, x8
	ldr	w9, [x9, #16]
	str	w9, [x10, #16]
	add	w10, w27, #1
	b	LBB0_26
LBB0_25:
	mov	x10, x27
LBB0_26:
	str	x10, [sp]                       ; 8-byte Folded Spill
	sxtw	x9, w10
	str	x9, [sp, #16]                   ; 8-byte Folded Spill
	mov	w9, #24
	smaddl	x22, w10, w9, x20
	stp	x25, x25, [x22]
	add	x28, x28, x8
	ldr	w1, [x28, #16]
	mov	x0, x19
	bl	_newhicolorrow
	mov	x26, x0
	str	w0, [x22, #16]
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x22, x8, #1
	ldr	x8, [x28]
	cmp	x8, x25
	b.le	LBB0_30
; %bb.27:
	add	x9, x25, #1
	mov	w10, #24
	madd	x10, x22, x10, x20
	stp	x8, x9, [x10]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldrsw	x1, [x28, #16]
	cmp	x8, x25
	b.ge	LBB0_29
; %bb.28:
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_newhicolorrow
	mov	x1, x0
LBB0_29:
	mov	w8, #24
	madd	x8, x22, x8, x20
	str	w1, [x8, #16]
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	add	w22, w8, #2
LBB0_30:
	add	x28, x28, #24
	add	w27, w27, #1
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SIMPLE_CHR,8,3             ; @MAX_SIMPLE_CHR
	.comm	_PLAIN,4,2                      ; @PLAIN
	.comm	_REG_ESPACE,4,2                 ; @REG_ESPACE
	.no_dead_strip	_subcoloronechr
.subsections_via_symbols
