	.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	%esi, %r15d
	movq	%rdi, %r14
	leaq	_parse_color.color_names(%rip), %rdi
	callq	_ARRAY_SIZE
	movslq	%r15d, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	leaq	_parse_color.color_names(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	leaq	_parse_color.color_names(%rip), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$8, %r12
	cmpq	%rax, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_strncasecmp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpb	$0, (%r13,%rax)
	jne	LBB0_4
## %bb.6:
	decl	%ebx
	jmp	LBB0_7
LBB0_5:
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	movl	$10, %edx
	callq	_strtol
	movq	-56(%rbp), %rcx
	subq	%r14, %rcx
	cmpl	$256, %eax                      ## imm = 0x100
	movl	$-2, %ebx
	cmovll	%eax, %ebx
	movl	$-2, %edx
	cmpl	$-1, %eax
	cmovll	%edx, %ebx
	cmpq	-48(%rbp), %rcx                 ## 8-byte Folded Reload
	cmovnel	%edx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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
	.quad	L_.str.8

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

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

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

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

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

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

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

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

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

	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _parse_color.color_names@PAGE
Lloh1:
	add	x21, x21, _parse_color.color_names@PAGEOFF
	mov	x0, x21
	bl	_ARRAY_SIZE
	sxtw	x23, w20
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x24, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	x24, w0, sxtw
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x21, x24, lsl #3]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_strncasecmp
	cbnz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x22, x23]
	cbnz	w8, LBB0_2
; %bb.5:
	sub	w0, w24, #1
	b	LBB0_7
LBB0_6:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #10
	bl	_strtol
	ldr	x8, [sp, #8]
	sub	x8, x8, x19
	cmp	w0, #256
	mov	w9, #-2
	ccmp	w0, w9, #4, lt
	ccmp	x8, x23, #0, gt
	csel	w0, w0, w9, eq
LBB0_7:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.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
	.quad	l_.str.8

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

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

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

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

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

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

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

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

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

	.no_dead_strip	_parse_color
.subsections_via_symbols
