	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __lookup_rgb
___lookup_rgb:                          ## @__lookup_rgb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	shll	$16, %edi
	shll	$8, %esi
	addl	%edi, %esi
	addl	%edx, %esi
	movq	_color_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	$21, %eax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, -20(%rcx,%rax,4)
	je	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%esi, -16(%rcx,%rax,4)
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%esi, -12(%rcx,%rax,4)
	je	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%esi, -8(%rcx,%rax,4)
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%esi, -4(%rcx,%rax,4)
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%esi, (%rcx,%rax,4)
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	$6, %rax
	cmpq	$261, %rax                      ## imm = 0x105
	jne	LBB0_1
## %bb.8:
	movl	$-1, %eax
LBB0_11:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_9:
	addq	$-5, %rax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_10:
	addq	$-4, %rax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_12:
	addq	$-3, %rax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_13:
	addq	$-2, %rax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_14:
	decq	%rax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_color_table,8,3                ## @color_table
	.no_dead_strip	___lookup_rgb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __lookup_rgb
___lookup_rgb:                          ; @__lookup_rgb
	.cfi_startproc
; %bb.0:
	lsl	w8, w1, #8
	add	w8, w8, w0, lsl #16
	add	w8, w8, w2
Lloh0:
	adrp	x9, _color_table@GOTPAGE
Lloh1:
	ldr	x9, [x9, _color_table@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	w0, #16
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9, x0, lsl #2]
	cmp	w10, w8
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x0, x0, #1
	cmp	x0, #256
	b.ne	LBB0_1
; %bb.3:
	mov	w0, #-1
LBB0_4:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_color_table,8,3                ; @color_table
	.no_dead_strip	___lookup_rgb
.subsections_via_symbols
