	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function get_color_profile
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_get_color_profile:                     ## @get_color_profile
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movl	(%rcx), %ecx
	cmpl	$16, %ecx
	jne	LBB0_1
## %bb.3:
	testq	%r15, %r15
	je	LBB0_4
## %bb.5:
	leaq	68(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_49:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r12
	cmpq	%r12, %r15
	je	LBB0_50
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	subq	$8, %rsp
	leaq	-46(%rbp), %rdi
	leaq	-50(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movq	%r12, %r9
	pushq	%r14
	callq	_getPixelColorRGBA16
	addq	$16, %rsp
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_90
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, (%rbx)
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movzwl	-46(%rbp), %eax
	movzbl	%al, %ecx
	shrl	$8, %eax
	cmpl	%eax, %ecx
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movzwl	-50(%rbp), %eax
	movzbl	%al, %ecx
	shrl	$8, %eax
	cmpl	%eax, %ecx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movzwl	-48(%rbp), %eax
	movzbl	%al, %ecx
	shrl	$8, %eax
	cmpl	%eax, %ecx
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1,1,1]
	movups	%xmm0, (%rbx)
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, 16(%rbx)
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movzwl	-46(%rbp), %eax
	cmpw	-50(%rbp), %ax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpw	-48(%rbp), %ax
	je	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 16(%rbx)
	movl	$1, 8(%rbx)
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	24(%rbx), %ecx
	movzwl	-52(%rbp), %eax
	testl	%ecx, %ecx
	jne	LBB0_27
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpw	$-1, %ax
	je	LBB0_27
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$17, %r15
	jb	LBB0_24
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	testw	%ax, %ax
	jne	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, 28(%rbx)
	je	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=1
	movzwl	-46(%rbp), %eax
	cmpw	32(%rbx), %ax
	jne	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_6 Depth=1
	movzwl	-50(%rbp), %eax
	cmpw	34(%rbx), %ax
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_6 Depth=1
	movzwl	-48(%rbp), %eax
	cmpw	36(%rbx), %ax
	jne	LBB0_24
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_6 Depth=1
	testl	%ecx, %ecx
	jne	LBB0_33
## %bb.28:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpw	$-1, %ax
	jne	LBB0_33
## %bb.29:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, 28(%rbx)
	je	LBB0_33
## %bb.30:                              ##   in Loop: Header=BB0_6 Depth=1
	movzwl	-46(%rbp), %eax
	cmpw	32(%rbx), %ax
	jne	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_6 Depth=1
	movzwl	-50(%rbp), %eax
	cmpw	34(%rbx), %ax
	jne	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_6 Depth=1
	movzwl	-48(%rbp), %eax
	cmpw	36(%rbx), %ax
	jne	LBB0_33
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, 40(%rbx)
	movl	$1, 24(%rbx)
	jmp	LBB0_37
LBB0_25:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, 40(%rbx)
	je	LBB0_26
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, 8(%rbx)
	jne	LBB0_38
LBB0_34:                                ##   in Loop: Header=BB0_6 Depth=1
	movzbl	-46(%rbp), %edi
	callq	_getValueRequiredBits
	movl	44(%rbx), %ecx
	cmpl	%ecx, %eax
	jbe	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, 44(%rbx)
	movl	%eax, %ecx
LBB0_36:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$7, %ecx
	jbe	LBB0_38
LBB0_37:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, 8(%rbx)
LBB0_38:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, 12(%rbx)
	jne	LBB0_44
## %bb.39:                              ##   in Loop: Header=BB0_6 Depth=1
	movzbl	-46(%rbp), %esi
	movzbl	-50(%rbp), %edx
	movzbl	-48(%rbp), %ecx
	movzbl	-52(%rbp), %r8d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_color_tree_has
	testl	%eax, %eax
	jne	LBB0_44
## %bb.40:                              ##   in Loop: Header=BB0_6 Depth=1
	movzbl	-46(%rbp), %esi
	movzbl	-50(%rbp), %edx
	movzbl	-48(%rbp), %ecx
	movzbl	-52(%rbp), %r8d
	movl	48(%rbx), %r9d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_color_tree_add
	movl	48(%rbx), %eax
	cmpl	$255, %eax
	jg	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	56(%rbx), %rcx
	movzbl	-46(%rbp), %edx
	shll	$2, %eax
	movb	%dl, (%rcx,%rax)
	movzbl	-50(%rbp), %edx
	movb	%dl, 1(%rcx,%rax)
	movzbl	-48(%rbp), %edx
	movb	%dl, 2(%rcx,%rax)
	movzbl	-52(%rbp), %edx
	movb	%dl, 3(%rcx,%rax)
	movl	48(%rbx), %eax
LBB0_42:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%eax
	movl	%eax, 48(%rbx)
	cmpl	64(%rbx), %eax
	jb	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, 12(%rbx)
	.p2align	4, 0x90
LBB0_44:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, 24(%rbx)
	je	LBB0_49
## %bb.45:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, 12(%rbx)
	je	LBB0_49
## %bb.46:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, 16(%rbx)
	je	LBB0_49
## %bb.47:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, (%rbx)
	je	LBB0_49
## %bb.48:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, 8(%rbx)
	je	LBB0_49
	jmp	LBB0_90
LBB0_26:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, 28(%rbx)
	movzwl	-46(%rbp), %eax
	movw	%ax, 32(%rbx)
	movzwl	-50(%rbp), %eax
	movw	%ax, 34(%rbx)
	movzwl	-48(%rbp), %eax
	movw	%ax, 36(%rbx)
	cmpl	$0, 8(%rbx)
	jne	LBB0_38
	jmp	LBB0_34
LBB0_1:
	testq	%r15, %r15
	je	LBB0_2
## %bb.51:
	movl	%r8d, %eax
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leaq	68(%rbx), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_52
	.p2align	4, 0x90
LBB0_87:                                ##   in Loop: Header=BB0_52 Depth=1
	incq	%r12
	cmpq	%r12, %r15
	movq	%r14, %rax
	je	LBB0_88
LBB0_52:                                ## =>This Inner Loop Header: Depth=1
	movb	$0, -41(%rbp)
	movb	$0, -43(%rbp)
	movb	$0, -42(%rbp)
	movb	$0, -44(%rbp)
	leaq	-41(%rbp), %rdi
	leaq	-43(%rbp), %rsi
	leaq	-42(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movq	%r12, %r9
	movq	%rax, %r14
	pushq	%rax
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_getPixelColorRGBA8
	addq	$16, %rsp
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_89
## %bb.53:                              ##   in Loop: Header=BB0_52 Depth=1
	cmpl	$0, 16(%rbx)
	jne	LBB0_57
## %bb.54:                              ##   in Loop: Header=BB0_52 Depth=1
	movzbl	-41(%rbp), %eax
	cmpb	-43(%rbp), %al
	jne	LBB0_56
## %bb.55:                              ##   in Loop: Header=BB0_52 Depth=1
	cmpb	-42(%rbp), %al
	je	LBB0_57
LBB0_56:                                ##   in Loop: Header=BB0_52 Depth=1
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 16(%rbx)
	movl	$1, 8(%rbx)
	.p2align	4, 0x90
LBB0_57:                                ##   in Loop: Header=BB0_52 Depth=1
	movl	24(%rbx), %ecx
	movzbl	-44(%rbp), %eax
	testl	%ecx, %ecx
	jne	LBB0_66
## %bb.58:                              ##   in Loop: Header=BB0_52 Depth=1
	cmpb	$-1, %al
	je	LBB0_66
## %bb.59:                              ##   in Loop: Header=BB0_52 Depth=1
	testb	%al, %al
	je	LBB0_60
LBB0_64:                                ##   in Loop: Header=BB0_52 Depth=1
	movl	$1, 40(%rbx)
	movl	$1, 24(%rbx)
LBB0_76:                                ##   in Loop: Header=BB0_52 Depth=1
	movl	$1, 8(%rbx)
	jmp	LBB0_77
	.p2align	4, 0x90
LBB0_66:                                ##   in Loop: Header=BB0_52 Depth=1
	testl	%ecx, %ecx
	jne	LBB0_72
## %bb.67:                              ##   in Loop: Header=BB0_52 Depth=1
	cmpb	$-1, %al
	jne	LBB0_72
## %bb.68:                              ##   in Loop: Header=BB0_52 Depth=1
	cmpl	$0, 28(%rbx)
	je	LBB0_72
## %bb.69:                              ##   in Loop: Header=BB0_52 Depth=1
	movzbl	-41(%rbp), %eax
	cmpw	%ax, 32(%rbx)
	jne	LBB0_72
## %bb.70:                              ##   in Loop: Header=BB0_52 Depth=1
	movzbl	-43(%rbp), %eax
	cmpw	%ax, 34(%rbx)
	jne	LBB0_72
## %bb.71:                              ##   in Loop: Header=BB0_52 Depth=1
	movzbl	-42(%rbp), %eax
	cmpw	%ax, 36(%rbx)
	je	LBB0_64
	jmp	LBB0_72
LBB0_60:                                ##   in Loop: Header=BB0_52 Depth=1
	cmpl	$0, 28(%rbx)
	je	LBB0_65
## %bb.61:                              ##   in Loop: Header=BB0_52 Depth=1
	movzbl	-41(%rbp), %eax
	cmpw	%ax, 32(%rbx)
	jne	LBB0_64
## %bb.62:                              ##   in Loop: Header=BB0_52 Depth=1
	movzbl	-43(%rbp), %eax
	cmpw	%ax, 34(%rbx)
	jne	LBB0_64
## %bb.63:                              ##   in Loop: Header=BB0_52 Depth=1
	movzbl	-42(%rbp), %eax
	cmpw	%ax, 36(%rbx)
	jne	LBB0_64
	jmp	LBB0_72
LBB0_65:                                ##   in Loop: Header=BB0_52 Depth=1
	movl	$1, 28(%rbx)
	movzbl	-41(%rbp), %eax
	movw	%ax, 32(%rbx)
	movzbl	-43(%rbp), %eax
	movw	%ax, 34(%rbx)
	movzbl	-42(%rbp), %eax
	movw	%ax, 36(%rbx)
	.p2align	4, 0x90
LBB0_72:                                ##   in Loop: Header=BB0_52 Depth=1
	cmpl	$0, 8(%rbx)
	jne	LBB0_77
## %bb.73:                              ##   in Loop: Header=BB0_52 Depth=1
	movzbl	-41(%rbp), %edi
	callq	_getValueRequiredBits
	movl	44(%rbx), %ecx
	cmpl	%ecx, %eax
	jbe	LBB0_75
## %bb.74:                              ##   in Loop: Header=BB0_52 Depth=1
	movl	%eax, 44(%rbx)
	movl	%eax, %ecx
LBB0_75:                                ##   in Loop: Header=BB0_52 Depth=1
	cmpl	$7, %ecx
	ja	LBB0_76
	.p2align	4, 0x90
LBB0_77:                                ##   in Loop: Header=BB0_52 Depth=1
	cmpl	$0, 12(%rbx)
	jne	LBB0_83
## %bb.78:                              ##   in Loop: Header=BB0_52 Depth=1
	movzbl	-41(%rbp), %esi
	movzbl	-43(%rbp), %edx
	movzbl	-42(%rbp), %ecx
	movzbl	-44(%rbp), %r8d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_color_tree_has
	testl	%eax, %eax
	jne	LBB0_83
## %bb.79:                              ##   in Loop: Header=BB0_52 Depth=1
	movzbl	-41(%rbp), %esi
	movzbl	-43(%rbp), %edx
	movzbl	-42(%rbp), %ecx
	movzbl	-44(%rbp), %r8d
	movl	48(%rbx), %r9d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_color_tree_add
	movl	48(%rbx), %eax
	cmpl	$255, %eax
	jg	LBB0_81
## %bb.80:                              ##   in Loop: Header=BB0_52 Depth=1
	movq	56(%rbx), %rcx
	movzbl	-41(%rbp), %edx
	shll	$2, %eax
	movb	%dl, (%rcx,%rax)
	movzbl	-43(%rbp), %edx
	movb	%dl, 1(%rcx,%rax)
	movzbl	-42(%rbp), %edx
	movb	%dl, 2(%rcx,%rax)
	movzbl	-44(%rbp), %edx
	movb	%dl, 3(%rcx,%rax)
	movl	48(%rbx), %eax
LBB0_81:                                ##   in Loop: Header=BB0_52 Depth=1
	incl	%eax
	movl	%eax, 48(%rbx)
	cmpl	64(%rbx), %eax
	jb	LBB0_83
## %bb.82:                              ##   in Loop: Header=BB0_52 Depth=1
	movl	$1, 12(%rbx)
	.p2align	4, 0x90
LBB0_83:                                ##   in Loop: Header=BB0_52 Depth=1
	cmpl	$0, 24(%rbx)
	je	LBB0_87
## %bb.84:                              ##   in Loop: Header=BB0_52 Depth=1
	cmpl	$0, 12(%rbx)
	je	LBB0_87
## %bb.85:                              ##   in Loop: Header=BB0_52 Depth=1
	cmpl	$0, 16(%rbx)
	je	LBB0_87
## %bb.86:                              ##   in Loop: Header=BB0_52 Depth=1
	cmpl	$0, 8(%rbx)
	je	LBB0_87
	jmp	LBB0_89
LBB0_4:
	xorl	%r13d, %r13d
	jmp	LBB0_93
LBB0_2:
	xorl	%r13d, %r13d
	cmpl	$15, %ecx
	jle	LBB0_92
	jmp	LBB0_93
LBB0_50:
	xorl	%r13d, %r13d
	jmp	LBB0_90
LBB0_88:
	xorl	%r13d, %r13d
LBB0_89:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_90:
	movl	(%r14), %ecx
	cmpl	$15, %ecx
	jg	LBB0_93
LBB0_92:
	movl	32(%rbx), %eax
	movl	36(%rbx), %ecx
	movl	%eax, %edx
	shll	$8, %edx
	addl	%eax, %edx
	movw	%dx, 32(%rbx)
	movzwl	34(%rbx), %eax
	movl	%eax, %edx
	shll	$8, %edx
	addl	%eax, %edx
	movw	%dx, 34(%rbx)
	movl	%ecx, %eax
	shll	$8, %eax
	addl	%ecx, %eax
	movw	%ax, 36(%rbx)
LBB0_93:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_get_color_profile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_color_profile
_get_color_profile:                     ; @get_color_profile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w8, [x3]
	cmp	w8, #16
	b.ne	LBB0_47
; %bb.1:
	cbz	x21, LBB0_86
; %bb.2:
	mov	x24, #0
	add	x25, x19, #68
	movi.2s	v8, #1
	mov	w26, #1
	mov	w27, #65535
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	cmp	x21, x24
	b.eq	LBB0_84
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #14
	add	x1, sp, #12
	add	x2, sp, #10
	add	x3, sp, #8
	mov	x4, x22
	mov	x5, x24
	mov	x6, x20
	bl	_getPixelColorRGBA16
	mov	x23, x0
	cbnz	w0, LBB0_85
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	cbnz	w8, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrh	w8, [sp, #14]
	and	w9, w8, #0xff
	cmp	w9, w8, lsr #8
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrh	w8, [sp, #12]
	and	w9, w8, #0xff
	cmp	w9, w8, lsr #8
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrh	w8, [sp, #10]
	and	w9, w8, #0xff
	cmp	w9, w8, lsr #8
	b.eq	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	movi.4s	v0, #1
	str	q0, [x19]
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrh	w8, [sp, #14]
	ldrh	w9, [sp, #12]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrh	w9, [sp, #10]
	cmp	w8, w9
	b.eq	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	str	d8, [x19, #16]
	str	w26, [x19, #8]
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x19, #24]
	ldrh	w8, [sp, #8]
	cbnz	w9, LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, w27
	b.eq	LBB0_22
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x21, #17
	b.lo	LBB0_28
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w8, LBB0_28
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_29
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrh	w8, [sp, #14]
	ldrh	w9, [x19, #32]
	cmp	w8, w9
	b.ne	LBB0_28
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrh	w8, [sp, #12]
	ldrh	w9, [x19, #34]
	cmp	w8, w9
	b.ne	LBB0_28
; %bb.21:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrh	w8, [sp, #10]
	ldrh	w9, [x19, #36]
	cmp	w8, w9
	b.ne	LBB0_28
	b	LBB0_30
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w9, LBB0_30
; %bb.23:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, w27
	b.ne	LBB0_30
; %bb.24:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_30
; %bb.25:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrh	w8, [sp, #14]
	ldrh	w9, [x19, #32]
	cmp	w8, w9
	b.ne	LBB0_30
; %bb.26:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrh	w8, [sp, #12]
	ldrh	w9, [x19, #34]
	cmp	w8, w9
	b.ne	LBB0_30
; %bb.27:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrh	w8, [sp, #10]
	ldrh	w9, [x19, #36]
	cmp	w8, w9
	b.ne	LBB0_30
LBB0_28:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w26, [x19, #40]
	str	w26, [x19, #24]
	b	LBB0_34
LBB0_29:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #40]
	cbz	w8, LBB0_46
LBB0_30:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_35
LBB0_31:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w0, [sp, #14]
	bl	_getValueRequiredBits
	ldr	w8, [x19, #44]
	cmp	w0, w8
	b.ls	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_4 Depth=1
	str	w0, [x19, #44]
	mov	x8, x0
LBB0_33:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #7
	b.ls	LBB0_35
LBB0_34:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w26, [x19, #8]
LBB0_35:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_41
; %bb.36:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w1, [sp, #14]
	ldrb	w2, [sp, #12]
	ldrb	w3, [sp, #10]
	ldrb	w4, [sp, #8]
	mov	x0, x25
	bl	_color_tree_has
	cbnz	w0, LBB0_41
; %bb.37:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w1, [sp, #14]
	ldrb	w2, [sp, #12]
	ldrb	w3, [sp, #10]
	ldrb	w4, [sp, #8]
	ldr	w5, [x19, #48]
	mov	x0, x25
	bl	_color_tree_add
	ldr	w8, [x19, #48]
	cmp	w8, #255
	b.gt	LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19, #56]
	ldrb	w10, [sp, #14]
	lsl	w8, w8, #2
	add	x8, x9, x8
	strb	w10, [x8]
	ldrb	w9, [sp, #12]
	strb	w9, [x8, #1]
	ldrb	w9, [sp, #10]
	strb	w9, [x8, #2]
	ldrb	w9, [sp, #8]
	strb	w9, [x8, #3]
	ldr	w8, [x19, #48]
LBB0_39:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w8, #1
	str	w8, [x19, #48]
	ldr	w9, [x19, #64]
	cmp	w8, w9
	b.lo	LBB0_41
; %bb.40:                               ;   in Loop: Header=BB0_4 Depth=1
	str	w26, [x19, #12]
LBB0_41:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_3
; %bb.42:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_3
; %bb.43:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_3
; %bb.44:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.45:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_3
	b	LBB0_85
LBB0_46:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w26, [x19, #28]
	ldrh	w8, [sp, #14]
	strh	w8, [x19, #32]
	ldrh	w8, [sp, #12]
	strh	w8, [x19, #34]
	ldrh	w8, [sp, #10]
	strh	w8, [x19, #36]
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_35
	b	LBB0_31
LBB0_47:
	cbz	x21, LBB0_87
; %bb.48:
	mov	x24, x4
	mov	x25, #0
	add	x26, x19, #68
	movi.2s	v8, #1
	mov	w27, #1
	b	LBB0_50
LBB0_49:                                ;   in Loop: Header=BB0_50 Depth=1
	add	x25, x25, #1
	cmp	x21, x25
	b.eq	LBB0_84
LBB0_50:                                ; =>This Inner Loop Header: Depth=1
	strh	wzr, [sp, #6]
	strh	wzr, [sp, #4]
	add	x0, sp, #7
	add	x1, sp, #6
	add	x2, sp, #5
	add	x3, sp, #4
	mov	x4, x22
	mov	x5, x25
	mov	x6, x20
	mov	x7, x24
	bl	_getPixelColorRGBA8
	mov	x23, x0
	cbnz	w0, LBB0_85
; %bb.51:                               ;   in Loop: Header=BB0_50 Depth=1
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_54
; %bb.52:                               ;   in Loop: Header=BB0_50 Depth=1
	ldrb	w8, [sp, #7]
	ldrb	w9, [sp, #6]
	ldrb	w10, [sp, #5]
	cmp	w8, w9
	ccmp	w8, w10, #0, eq
	b.eq	LBB0_54
; %bb.53:                               ;   in Loop: Header=BB0_50 Depth=1
	str	d8, [x19, #16]
	str	w27, [x19, #8]
LBB0_54:                                ;   in Loop: Header=BB0_50 Depth=1
	ldr	w9, [x19, #24]
	ldrb	w8, [sp, #4]
	cbnz	w9, LBB0_59
; %bb.55:                               ;   in Loop: Header=BB0_50 Depth=1
	cmp	w8, #255
	b.eq	LBB0_59
; %bb.56:                               ;   in Loop: Header=BB0_50 Depth=1
	cbz	w8, LBB0_65
LBB0_57:                                ;   in Loop: Header=BB0_50 Depth=1
	str	w27, [x19, #40]
	str	w27, [x19, #24]
LBB0_58:                                ;   in Loop: Header=BB0_50 Depth=1
	str	w27, [x19, #8]
	b	LBB0_74
LBB0_59:                                ;   in Loop: Header=BB0_50 Depth=1
	cbnz	w9, LBB0_70
; %bb.60:                               ;   in Loop: Header=BB0_50 Depth=1
	cmp	w8, #255
	b.ne	LBB0_70
; %bb.61:                               ;   in Loop: Header=BB0_50 Depth=1
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_70
; %bb.62:                               ;   in Loop: Header=BB0_50 Depth=1
	ldrb	w8, [sp, #7]
	ldrh	w9, [x19, #32]
	cmp	w9, w8
	b.ne	LBB0_70
; %bb.63:                               ;   in Loop: Header=BB0_50 Depth=1
	ldrb	w8, [sp, #6]
	ldrh	w9, [x19, #34]
	cmp	w9, w8
	b.ne	LBB0_70
; %bb.64:                               ;   in Loop: Header=BB0_50 Depth=1
	ldrb	w8, [sp, #5]
	ldrh	w9, [x19, #36]
	cmp	w9, w8
	b.eq	LBB0_57
	b	LBB0_70
LBB0_65:                                ;   in Loop: Header=BB0_50 Depth=1
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_69
; %bb.66:                               ;   in Loop: Header=BB0_50 Depth=1
	ldrb	w8, [sp, #7]
	ldrh	w9, [x19, #32]
	cmp	w9, w8
	b.ne	LBB0_57
; %bb.67:                               ;   in Loop: Header=BB0_50 Depth=1
	ldrb	w8, [sp, #6]
	ldrh	w9, [x19, #34]
	cmp	w9, w8
	b.ne	LBB0_57
; %bb.68:                               ;   in Loop: Header=BB0_50 Depth=1
	ldrb	w8, [sp, #5]
	ldrh	w9, [x19, #36]
	cmp	w9, w8
	b.ne	LBB0_57
	b	LBB0_70
LBB0_69:                                ;   in Loop: Header=BB0_50 Depth=1
	str	w27, [x19, #28]
	ldrb	w8, [sp, #7]
	strh	w8, [x19, #32]
	ldrb	w8, [sp, #6]
	strh	w8, [x19, #34]
	ldrb	w8, [sp, #5]
	strh	w8, [x19, #36]
LBB0_70:                                ;   in Loop: Header=BB0_50 Depth=1
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_74
; %bb.71:                               ;   in Loop: Header=BB0_50 Depth=1
	ldrb	w0, [sp, #7]
	bl	_getValueRequiredBits
	ldr	w8, [x19, #44]
	cmp	w0, w8
	b.ls	LBB0_73
; %bb.72:                               ;   in Loop: Header=BB0_50 Depth=1
	str	w0, [x19, #44]
	mov	x8, x0
LBB0_73:                                ;   in Loop: Header=BB0_50 Depth=1
	cmp	w8, #7
	b.hi	LBB0_58
LBB0_74:                                ;   in Loop: Header=BB0_50 Depth=1
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_80
; %bb.75:                               ;   in Loop: Header=BB0_50 Depth=1
	ldrb	w1, [sp, #7]
	ldrb	w2, [sp, #6]
	ldrb	w3, [sp, #5]
	ldrb	w4, [sp, #4]
	mov	x0, x26
	bl	_color_tree_has
	cbnz	w0, LBB0_80
; %bb.76:                               ;   in Loop: Header=BB0_50 Depth=1
	ldrb	w1, [sp, #7]
	ldrb	w2, [sp, #6]
	ldrb	w3, [sp, #5]
	ldrb	w4, [sp, #4]
	ldr	w5, [x19, #48]
	mov	x0, x26
	bl	_color_tree_add
	ldr	w8, [x19, #48]
	cmp	w8, #255
	b.gt	LBB0_78
; %bb.77:                               ;   in Loop: Header=BB0_50 Depth=1
	ldr	x9, [x19, #56]
	ldrb	w10, [sp, #7]
	lsl	w8, w8, #2
	add	x8, x9, x8
	strb	w10, [x8]
	ldrb	w9, [sp, #6]
	strb	w9, [x8, #1]
	ldrb	w9, [sp, #5]
	strb	w9, [x8, #2]
	ldrb	w9, [sp, #4]
	strb	w9, [x8, #3]
	ldr	w8, [x19, #48]
LBB0_78:                                ;   in Loop: Header=BB0_50 Depth=1
	add	w8, w8, #1
	str	w8, [x19, #48]
	ldr	w9, [x19, #64]
	cmp	w8, w9
	b.lo	LBB0_80
; %bb.79:                               ;   in Loop: Header=BB0_50 Depth=1
	str	w27, [x19, #12]
LBB0_80:                                ;   in Loop: Header=BB0_50 Depth=1
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_49
; %bb.81:                               ;   in Loop: Header=BB0_50 Depth=1
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_49
; %bb.82:                               ;   in Loop: Header=BB0_50 Depth=1
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_49
; %bb.83:                               ;   in Loop: Header=BB0_50 Depth=1
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_49
	b	LBB0_85
LBB0_84:
	mov	w23, #0
LBB0_85:
	ldr	w8, [x20]
	cmp	w8, #15
	b.le	LBB0_88
	b	LBB0_89
LBB0_86:
	mov	w23, #0
	b	LBB0_89
LBB0_87:
	mov	w23, #0
	cmp	w8, #15
	b.gt	LBB0_89
LBB0_88:
	ldrh	w8, [x19, #32]
	add	w8, w8, w8, lsl #8
	strh	w8, [x19, #32]
	ldrh	w8, [x19, #34]
	add	w8, w8, w8, lsl #8
	strh	w8, [x19, #34]
	ldrh	w8, [x19, #36]
	add	w8, w8, w8, lsl #8
	strh	w8, [x19, #36]
LBB0_89:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_get_color_profile
.subsections_via_symbols
