	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function subcolor
_subcolor:                              ## @subcolor
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	_MAX_SIMPLE_CHR@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%rsi, (%rax)
	setge	%dil
	callq	_assert
	movq	(%r14), %rax
	movq	_CHR_MIN@GOTPCREL(%rip), %r13
	movq	%r15, %rcx
	subq	(%r13), %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_newsub
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_CISERR
	movq	_COLORLESS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rcx, %r12
	jmp	LBB0_7
LBB0_2:
	xorl	%edi, %edi
	cmpq	%rcx, %r12
	setne	%dil
	callq	_assert
	cmpq	%r12, %rbx
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %r12
	jmp	LBB0_7
LBB0_4:
	movq	8(%r14), %rax
	shlq	$4, %rbx
	decq	(%rax,%rbx)
	movq	%r12, %rsi
	shlq	$4, %rsi
	leaq	(%rax,%rsi), %rcx
	movq	(%rax,%rsi), %rdx
	testq	%rdx, %rdx
	jne	LBB0_6
## %bb.5:
	movq	%r15, 8(%rax,%rsi)
LBB0_6:
	incq	%rdx
	movq	%rdx, (%rcx)
	movq	(%r14), %rax
	subq	(%r13), %r15
	movq	%r12, (%rax,%r15,8)
LBB0_7:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SIMPLE_CHR,8,3             ## @MAX_SIMPLE_CHR
	.comm	_CHR_MIN,8,3                    ## @CHR_MIN
	.comm	_COLORLESS,8,3                  ## @COLORLESS
	.no_dead_strip	_subcolor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function subcolor
_subcolor:                              ; @subcolor
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MAX_SIMPLE_CHR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_SIMPLE_CHR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	cset	w0, ge
	bl	_assert
	ldr	x8, [x20]
Lloh3:
	adrp	x23, _CHR_MIN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _CHR_MIN@GOTPAGEOFF]
	ldr	x9, [x23]
	sub	x9, x19, x9
	ldr	x22, [x8, x9, lsl #3]
	mov	x0, x20
	mov	x1, x22
	bl	_newsub
	mov	x21, x0
	bl	_CISERR
	mov	x8, x0
Lloh5:
	adrp	x9, _COLORLESS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _COLORLESS@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x9]
	cbnz	x8, LBB0_5
; %bb.1:
	cmp	x21, x0
	cset	w0, ne
	bl	_assert
	mov	x0, x22
	cmp	x22, x21
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x20, #8]
	lsl	x9, x22, #4
	ldr	x10, [x8, x9]
	sub	x10, x10, #1
	str	x10, [x8, x9]
	add	x8, x8, x21, lsl #4
	ldr	x9, [x8]
	cbnz	x9, LBB0_4
; %bb.3:
	str	x19, [x8, #8]
LBB0_4:
	add	x9, x9, #1
	str	x9, [x8]
	ldr	x8, [x20]
	ldr	x9, [x23]
	sub	x9, x19, x9
	str	x21, [x8, x9, lsl #3]
	mov	x0, x21
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SIMPLE_CHR,8,3             ; @MAX_SIMPLE_CHR
	.comm	_CHR_MIN,8,3                    ; @CHR_MIN
	.comm	_COLORLESS,8,3                  ; @COLORLESS
	.no_dead_strip	_subcolor
.subsections_via_symbols
