	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_color                      ## -- Begin function get_color
	.p2align	4, 0x90
_get_color:                             ## @get_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, -20(%rbp)
	movq	_COLOR_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	_color_list@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_find_color_item_in_list@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-20(%rbp), %rdx
	callq	_list_find
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movl	(%r14), %edi
	movl	(%rbx), %esi
	leaq	-24(%rbp), %rdx
	callq	_list_find
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	movq	(%rax), %rax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	-20(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	callq	_FATAL
                                        ## implicit-def: $rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_COLOR_NORMAL,4,2               ## @COLOR_NORMAL
	.comm	_color_list,4,2                 ## @color_list
	.comm	_find_color_item_in_list,4,2    ## @find_color_item_in_list
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to find color item %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_color                      ; -- Begin function get_color
	.p2align	2
_get_color:                             ; @get_color
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	w0, [sp, #12]
Lloh0:
	adrp	x8, _COLOR_NORMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COLOR_NORMAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh3:
	adrp	x19, _color_list@GOTPAGE
Lloh4:
	ldr	x19, [x19, _color_list@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh5:
	adrp	x20, _find_color_item_in_list@GOTPAGE
Lloh6:
	ldr	x20, [x20, _find_color_item_in_list@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_list_find
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	ldr	w1, [x20]
	add	x2, sp, #8
	bl	_list_find
	cbz	x0, LBB0_4
LBB0_2:
	ldr	x0, [x0]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	ldr	w1, [sp, #12]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FATAL
                                        ; implicit-def: $x0
	b	LBB0_3
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_COLOR_NORMAL,4,2               ; @COLOR_NORMAL
	.comm	_color_list,4,2                 ; @color_list
	.comm	_find_color_item_in_list,4,2    ; @find_color_item_in_list
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to find color item %d"

.subsections_via_symbols
