	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_transform_color_indexing
_parse_transform_color_indexing:        ## @parse_transform_color_indexing
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	addq	$16, %rdi
	movl	$8, %esi
	callq	_get_bits
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edx
	movl	$3, %r14d
	movb	$1, %r15b
	cmpl	$2, %eax
	jl	LBB0_3
## %bb.1:
	movl	$2, %r14d
	cmpl	$4, %eax
	jb	LBB0_3
## %bb.2:
	xorl	%r15d, %r15d
	cmpl	$16, %eax
	setb	%r15b
	movl	%r15d, %r14d
LBB0_3:
	movq	_IMAGE_ROLE_COLOR_INDEXING@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_decode_entropy_coded_image
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_20
## %bb.4:
	movq	8(%rbx), %rax
	movq	(%r12), %rdx
	shlq	$4, %rdx
	movl	%r14d, (%rax,%rdx)
	testb	%r15b, %r15b
	je	LBB0_6
## %bb.5:
	movl	$-1, %esi
	movl	%r14d, %ecx
	shll	%cl, %esi
	notl	%esi
	addl	4(%rbx), %esi
	sarl	%cl, %esi
	movl	%esi, (%rbx)
LBB0_6:
	movq	8(%rax,%rdx), %rcx
	movl	(%rcx), %esi
	xorl	%eax, %eax
	cmpl	$2, %esi
	jl	LBB0_20
## %bb.7:
	shll	$2, %esi
	movq	8(%rcx), %rax
	movq	(%rax), %rax
	leaq	32(%rax), %rcx
	cmpl	$6, %esi
	movl	$5, %edx
	cmovgel	%esi, %edx
	movl	%edx, %r9d
	addl	$-5, %r9d
	je	LBB0_8
## %bb.9:
	incq	%r9
	movq	%r9, %r8
	andq	$-2, %r8
	leaq	-2(%r8), %rsi
	movq	%rsi, %rbx
	shrq	%rbx
	incq	%rbx
	movl	%ebx, %edi
	andl	$3, %edi
	cmpq	$6, %rsi
	jae	LBB0_11
## %bb.10:
	xorl	%esi, %esi
	jmp	LBB0_13
LBB0_8:
	movl	$4, %eax
	jmp	LBB0_18
LBB0_11:
	andq	$-4, %rbx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rax,%rsi,8), %xmm0
	movdqu	16(%rax,%rsi,8), %xmm1
	movdqu	32(%rax,%rsi,8), %xmm2
	paddq	%xmm0, %xmm2
	movdqu	48(%rax,%rsi,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	%xmm2, 32(%rax,%rsi,8)
	movdqu	%xmm0, 48(%rax,%rsi,8)
	movdqu	64(%rax,%rsi,8), %xmm1
	paddq	%xmm2, %xmm1
	movdqu	%xmm1, 64(%rax,%rsi,8)
	movdqu	80(%rax,%rsi,8), %xmm1
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, 80(%rax,%rsi,8)
	addq	$8, %rsi
	addq	$-4, %rbx
	jne	LBB0_12
LBB0_13:
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.14:
	leaq	(%rax,%rsi,8), %rax
	addq	$32, %rax
	shlq	$4, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-32(%rax,%rsi), %xmm0
	movdqu	(%rax,%rsi), %xmm1
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, (%rax,%rsi)
	addq	$16, %rsi
	cmpq	%rsi, %rdi
	jne	LBB0_15
LBB0_16:
	xorl	%eax, %eax
	cmpq	%r8, %r9
	je	LBB0_20
## %bb.17:
	leaq	(%rcx,%r8,8), %rcx
	leal	4(%r8), %eax
LBB0_18:
	subl	%eax, %edx
	xorl	%eax, %eax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	-32(%rcx,%rsi,8), %rdi
	addq	%rdi, (%rcx,%rsi,8)
	incq	%rsi
	cmpl	%esi, %edx
	jne	LBB0_19
LBB0_20:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMAGE_ROLE_COLOR_INDEXING,8,3  ## @IMAGE_ROLE_COLOR_INDEXING
	.no_dead_strip	_parse_transform_color_indexing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_transform_color_indexing
_parse_transform_color_indexing:        ; @parse_transform_color_indexing
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	add	x0, x0, #16
	mov	w1, #8
	bl	_get_bits
	add	w2, w0, #1
	mov	w8, #3
	mov	w9, #1
	mov	w10, #2
	mov	w11, #1
	cmp	w0, #16
	cset	w12, lo
	cmp	w0, #4
	csel	w11, w11, w12, lo
	csel	w10, w10, w12, lo
	cmp	w0, #2
	csel	w21, w9, w11, lt
	csel	w20, w8, w10, lt
Lloh0:
	adrp	x22, _IMAGE_ROLE_COLOR_INDEXING@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IMAGE_ROLE_COLOR_INDEXING@GOTPAGEOFF]
	ldr	x1, [x22]
	mov	x0, x19
	mov	w3, #1
	bl	_decode_entropy_coded_image
	tbnz	w0, #31, LBB0_12
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	lsl	x10, x9, #4
	str	w20, [x8, x10]
	cbz	w21, LBB0_3
; %bb.2:
	ldr	w10, [x19, #4]
	mov	w11, #-1
	lsl	w11, w11, w20
	mvn	w11, w11
	add	w10, w10, w11
	asr	w10, w10, w20
	str	w10, [x19]
LBB0_3:
	add	x8, x8, x9, lsl #4
	ldr	x8, [x8, #8]
	ldr	w9, [x8]
	cmp	w9, #2
	b.lt	LBB0_11
; %bb.4:
	lsl	w9, w9, #2
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	add	x10, x8, #32
	mov	w8, #5
	cmp	w9, #5
	csel	w9, w9, w8, gt
	subs	w8, w9, #5
	b.eq	LBB0_8
; %bb.5:
	add	x12, x8, #1
	and	x13, x12, #0x1fffffffe
	add	x8, x10, x13, lsl #3
	add	w11, w13, #4
	mov	x14, x13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldur	q0, [x10, #-32]
	ldr	q1, [x10]
	add.2d	v0, v1, v0
	str	q0, [x10], #16
	subs	x14, x14, #2
	b.ne	LBB0_6
; %bb.7:
	cmp	x12, x13
	b.ne	LBB0_9
	b	LBB0_11
LBB0_8:
	mov	w11, #4
	mov	x8, x10
LBB0_9:
	sub	w9, w9, w11
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x8, #-32]
	ldr	x11, [x8]
	add	x10, x11, x10
	str	x10, [x8], #8
	subs	w9, w9, #1
	b.ne	LBB0_10
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IMAGE_ROLE_COLOR_INDEXING,8,3  ; @IMAGE_ROLE_COLOR_INDEXING
	.no_dead_strip	_parse_transform_color_indexing
.subsections_via_symbols
