	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_color
_parse_color:                           ## @parse_color
	.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	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	leaq	L_.str.8(%rip), %rdx
	movq	%rsi, %rdi
	movl	%r15d, %esi
	callq	_match_word
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_COLOR_NORMAL@GOTPCREL(%rip), %rax
LBB0_2:
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_23:
	xorl	%eax, %eax
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpl	$7, %r15d
	jne	LBB0_9
## %bb.4:
	cmpb	$35, (%r13)
	jne	LBB0_9
## %bb.5:
	leaq	1(%r13), %rdi
	leaq	24(%rbx), %rsi
	callq	_get_hex_color
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	leaq	3(%r13), %rdi
	leaq	20(%rbx), %rsi
	callq	_get_hex_color
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	leaq	5(%r13), %rdi
	leaq	16(%rbx), %rsi
	callq	_get_hex_color
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	_parse_color.color_names(%rip), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_14
## %bb.10:
	xorl	%ebx, %ebx
	movq	%r14, %r12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_match_word
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$8, %r12
	cmpq	%rax, %rbx
	jl	LBB0_11
LBB0_14:
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	movl	$10, %edx
	callq	_strtol
	movq	%rax, %rcx
	movq	-56(%rbp), %rdx
	subq	%r13, %rdx
	movslq	%r15d, %rsi
	movl	$-1, %eax
	cmpq	%rsi, %rdx
	jne	LBB0_24
## %bb.15:
	cmpq	$-1, %rcx
	jl	LBB0_24
## %bb.16:
	testq	%rcx, %rcx
	js	LBB0_17
## %bb.18:
	cmpq	$7, %rcx
	ja	LBB0_20
## %bb.19:
	movq	_COLOR_ANSI@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_12:
	movq	_COLOR_ANSI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	movl	%ebx, (%rcx)
	jmp	LBB0_23
LBB0_17:
	movq	_COLOR_NORMAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	jmp	LBB0_23
LBB0_20:
	cmpq	$255, %rcx
	ja	LBB0_24
## %bb.21:
	movq	_COLOR_256@GOTPCREL(%rip), %rax
LBB0_22:
	movq	(%rax), %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, 8(%rdx)
	movl	%ecx, (%rdx)
	jmp	LBB0_23
LBB0_8:
	movq	_COLOR_RGB@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__const
	.p2align	4                               ## @parse_color.color_names
_parse_color.color_names:
	.quad	L_.str
	.quad	L_.str.1
	.quad	L_.str.2
	.quad	L_.str.3
	.quad	L_.str.4
	.quad	L_.str.5
	.quad	L_.str.6
	.quad	L_.str.7

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"black"

L_.str.1:                               ## @.str.1
	.asciz	"red"

L_.str.2:                               ## @.str.2
	.asciz	"green"

L_.str.3:                               ## @.str.3
	.asciz	"yellow"

L_.str.4:                               ## @.str.4
	.asciz	"blue"

L_.str.5:                               ## @.str.5
	.asciz	"magenta"

L_.str.6:                               ## @.str.6
	.asciz	"cyan"

L_.str.7:                               ## @.str.7
	.asciz	"white"

L_.str.8:                               ## @.str.8
	.asciz	"normal"

	.comm	_COLOR_NORMAL,8,3               ## @COLOR_NORMAL
	.comm	_COLOR_RGB,8,3                  ## @COLOR_RGB
	.comm	_COLOR_ANSI,8,3                 ## @COLOR_ANSI
	.comm	_COLOR_256,8,3                  ## @COLOR_256
	.no_dead_strip	_parse_color
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_color
_parse_color:                           ; @parse_color
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x2, l_.str.8@PAGE
Lloh1:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x1
	mov	x1, x20
	bl	_match_word
	cbz	x0, LBB0_4
LBB0_1:
	mov	w0, #0
Lloh2:
	adrp	x8, _COLOR_NORMAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _COLOR_NORMAL@GOTPAGEOFF]
LBB0_2:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_3:
	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_4:
	cmp	w20, #7
	b.ne	LBB0_9
; %bb.5:
	ldrb	w8, [x21]
	cmp	w8, #35
	b.ne	LBB0_9
; %bb.6:
	add	x0, x21, #1
	add	x1, x19, #24
	bl	_get_hex_color
	cbnz	w0, LBB0_9
; %bb.7:
	add	x0, x21, #3
	add	x1, x19, #20
	bl	_get_hex_color
	cbnz	w0, LBB0_9
; %bb.8:
	add	x0, x21, #5
	add	x1, x19, #16
	bl	_get_hex_color
	cbz	w0, LBB0_23
LBB0_9:
Lloh4:
	adrp	x22, _parse_color.color_names@PAGE
Lloh5:
	add	x22, x22, _parse_color.color_names@PAGEOFF
	mov	x0, x22
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.10:
	mov	x23, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x22, x23, lsl #3]
	mov	x0, x21
	mov	x1, x20
	bl	_match_word
	cbnz	x0, LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x23, x23, #1
	mov	x0, x22
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.lt	LBB0_11
LBB0_13:
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #10
	bl	_strtol
	mov	x8, x0
	ldr	x9, [sp, #8]
	sub	x9, x9, x21
	mov	w0, #-1
	cmp	x9, w20, sxtw
	b.ne	LBB0_3
; %bb.14:
	cmn	x8, #1
	b.lt	LBB0_3
; %bb.15:
	tbnz	x8, #63, LBB0_1
; %bb.16:
	cmp	x8, #7
	b.hi	LBB0_19
; %bb.17:
	mov	w0, #0
Lloh6:
	adrp	x9, _COLOR_ANSI@GOTPAGE
Lloh7:
	ldr	x9, [x9, _COLOR_ANSI@GOTPAGEOFF]
	b	LBB0_21
LBB0_18:
	mov	w0, #0
Lloh8:
	adrp	x8, _COLOR_ANSI@GOTPAGE
Lloh9:
	ldr	x8, [x8, _COLOR_ANSI@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	str	w23, [x19]
	b	LBB0_3
LBB0_19:
	cmp	x8, #255
	b.hi	LBB0_22
; %bb.20:
	mov	w0, #0
Lloh11:
	adrp	x9, _COLOR_256@GOTPAGE
Lloh12:
	ldr	x9, [x9, _COLOR_256@GOTPAGEOFF]
LBB0_21:
	ldr	x9, [x9]
	str	x9, [x19, #8]
	str	w8, [x19]
	b	LBB0_3
LBB0_22:
	mov	w0, #-1
	b	LBB0_3
LBB0_23:
Lloh13:
	adrp	x8, _COLOR_RGB@GOTPAGE
Lloh14:
	ldr	x8, [x8, _COLOR_RGB@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @parse_color.color_names
_parse_color.color_names:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.5
	.quad	l_.str.6
	.quad	l_.str.7

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"black"

l_.str.1:                               ; @.str.1
	.asciz	"red"

l_.str.2:                               ; @.str.2
	.asciz	"green"

l_.str.3:                               ; @.str.3
	.asciz	"yellow"

l_.str.4:                               ; @.str.4
	.asciz	"blue"

l_.str.5:                               ; @.str.5
	.asciz	"magenta"

l_.str.6:                               ; @.str.6
	.asciz	"cyan"

l_.str.7:                               ; @.str.7
	.asciz	"white"

l_.str.8:                               ; @.str.8
	.asciz	"normal"

	.comm	_COLOR_NORMAL,8,3               ; @COLOR_NORMAL
	.comm	_COLOR_RGB,8,3                  ; @COLOR_RGB
	.comm	_COLOR_ANSI,8,3                 ; @COLOR_ANSI
	.comm	_COLOR_256,8,3                  ; @COLOR_256
	.no_dead_strip	_parse_color
.subsections_via_symbols
