	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ReadColorMap
_ReadColorMap:                          ## @ReadColorMap
	.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	_FALSE@GOTPCREL(%rip), %rax
	testl	%esi, %esi
	jle	LBB0_6
## %bb.1:
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movl	%esi, %r13d
	movq	_CM_GREEN@GOTPCREL(%rip), %r15
	movq	_CM_BLUE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	leaq	-43(%rbp), %rsi
	movl	$3, %edx
	callq	_ReadOK
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	-43(%rbp), %eax
	movq	_CM_RED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$8, %rcx
	movb	%al, (%rbx,%rcx)
	movzbl	-42(%rbp), %eax
	movq	(%r15), %rcx
	shlq	$8, %rcx
	movb	%al, (%rbx,%rcx)
	movzbl	-41(%rbp), %eax
	movq	(%r12), %rcx
	shlq	$8, %rcx
	movb	%al, (%rbx,%rcx)
	incq	%rbx
	decq	%r13
	jne	LBB0_2
## %bb.5:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_CM_RED,8,3                     ## @CM_RED
	.comm	_CM_GREEN,8,3                   ## @CM_GREEN
	.comm	_CM_BLUE,8,3                    ## @CM_BLUE
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_ReadColorMap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ReadColorMap
_ReadColorMap:                          ; @ReadColorMap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cmp	w1, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	mov	w22, w1
Lloh0:
	adrp	x21, _TRUE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TRUE@GOTPAGEOFF]
Lloh2:
	adrp	x23, _CM_RED@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CM_RED@GOTPAGEOFF]
Lloh4:
	adrp	x25, _CM_GREEN@GOTPAGE
Lloh5:
	ldr	x25, [x25, _CM_GREEN@GOTPAGEOFF]
Lloh6:
	adrp	x26, _CM_BLUE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _CM_BLUE@GOTPAGEOFF]
Lloh8:
	adrp	x24, _FALSE@GOTPAGE
Lloh9:
	ldr	x24, [x24, _FALSE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #13
	mov	x0, x20
	mov	w2, #3
	bl	_ReadOK
	cbz	w0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [sp, #13]
	ldr	x9, [x23]
	lsl	x9, x9, #8
	strb	w8, [x19, x9]
	ldrb	w8, [sp, #14]
	ldr	x9, [x25]
	lsl	x9, x9, #8
	strb	w8, [x19, x9]
	ldrb	w8, [sp, #15]
	ldr	x9, [x26]
	lsl	x9, x9, #8
	strb	w8, [x19, x9]
	add	x19, x19, #1
	subs	x22, x22, #1
	b.ne	LBB0_2
; %bb.4:
	mov	x21, x24
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x21, _FALSE@GOTPAGE
Lloh11:
	ldr	x21, [x21, _FALSE@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_CM_RED,8,3                     ; @CM_RED
	.comm	_CM_GREEN,8,3                   ; @CM_GREEN
	.comm	_CM_BLUE,8,3                    ; @CM_BLUE
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_ReadColorMap
.subsections_via_symbols
