	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_transform_set_gamut_remap
_dce_transform_set_gamut_remap:         ## @dce_transform_set_gamut_remap
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_TO_DCE_TRANSFORM
	movq	%rax, %r14
	movq	(%r13), %rax
	movq	_GRAPHICS_GAMUT_ADJUST_TYPE_SW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_GAMUT_MATRIX_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	(%r15), %r15d
	leaq	(,%r15,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	testl	%r15d, %r15d
	jle	LBB0_18
## %bb.4:
	movq	8(%r13), %rax
	xorl	%ecx, %ecx
	cmpl	$8, %r15d
	jb	LBB0_14
## %bb.5:
	movq	%rbx, %rdx
	subq	%rax, %rdx
	cmpq	$32, %rdx
	jb	LBB0_14
## %bb.6:
	movl	%r15d, %ecx
	andl	$-8, %ecx
	leaq	-8(%rcx), %rdx
	movq	%rdx, %rsi
	shrq	$3, %rsi
	incq	%rsi
	movl	%esi, %r8d
	andl	$3, %r8d
	cmpq	$24, %rdx
	jae	LBB0_8
## %bb.7:
	xorl	%edi, %edi
	jmp	LBB0_10
LBB0_1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_program_gamut_remap            ## TAILCALL
LBB0_8:
	andq	$-4, %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rax,%rdi,4), %xmm0
	movups	16(%rax,%rdi,4), %xmm1
	movaps	%xmm0, (%rbx,%rdi,4)
	movaps	%xmm1, 16(%rbx,%rdi,4)
	movups	32(%rax,%rdi,4), %xmm0
	movups	48(%rax,%rdi,4), %xmm1
	movaps	%xmm0, 32(%rbx,%rdi,4)
	movaps	%xmm1, 48(%rbx,%rdi,4)
	movups	64(%rax,%rdi,4), %xmm0
	movups	80(%rax,%rdi,4), %xmm1
	movaps	%xmm0, 64(%rbx,%rdi,4)
	movaps	%xmm1, 80(%rbx,%rdi,4)
	movups	96(%rax,%rdi,4), %xmm0
	movups	112(%rax,%rdi,4), %xmm1
	movaps	%xmm0, 96(%rbx,%rdi,4)
	movaps	%xmm1, 112(%rbx,%rdi,4)
	addq	$32, %rdi
	addq	$-4, %rsi
	jne	LBB0_9
LBB0_10:
	testq	%r8, %r8
	je	LBB0_13
## %bb.11:
	leaq	(%rbx,%rdi,4), %rsi
	addq	$16, %rsi
	leaq	(%rax,%rdi,4), %rdi
	addq	$16, %rdi
	shlq	$5, %r8
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rdi,%rdx), %xmm0
	movups	(%rdi,%rdx), %xmm1
	movaps	%xmm0, -16(%rsi,%rdx)
	movaps	%xmm1, (%rsi,%rdx)
	addq	$32, %rdx
	cmpq	%rdx, %r8
	jne	LBB0_12
LBB0_13:
	cmpq	%r15, %rcx
	je	LBB0_18
LBB0_14:
	movq	%rcx, %rdx
	notq	%rdx
	addq	%r15, %rdx
	movq	%r15, %rsi
	andq	$3, %rsi
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rcx,4), %edi
	movl	%edi, (%rbx,%rcx,4)
	incq	%rcx
	decq	%rsi
	jne	LBB0_15
LBB0_16:
	cmpq	$3, %rdx
	jb	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rcx,4), %edx
	movl	%edx, (%rbx,%rcx,4)
	movl	4(%rax,%rcx,4), %edx
	movl	%edx, 4(%rbx,%rcx,4)
	movl	8(%rax,%rcx,4), %edx
	movl	%edx, 8(%rbx,%rcx,4)
	movl	12(%rax,%rcx,4), %edx
	movl	%edx, 12(%rbx,%rcx,4)
	addq	$4, %rcx
	cmpq	%rcx, %r15
	jne	LBB0_17
LBB0_18:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_convert_float_matrix
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_program_gamut_remap
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GRAPHICS_GAMUT_ADJUST_TYPE_SW,8,3 ## @GRAPHICS_GAMUT_ADJUST_TYPE_SW
	.comm	_GAMUT_MATRIX_SIZE,4,2          ## @GAMUT_MATRIX_SIZE
	.no_dead_strip	_dce_transform_set_gamut_remap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce_transform_set_gamut_remap
_dce_transform_set_gamut_remap:         ; @dce_transform_set_gamut_remap
	.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
	sub	sp, sp, #16
	mov	x21, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_TO_DCE_TRANSFORM
	mov	x19, x0
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _GRAPHICS_GAMUT_ADJUST_TYPE_SW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GRAPHICS_GAMUT_ADJUST_TYPE_SW@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.1:
	mov	x22, sp
Lloh6:
	adrp	x12, _GAMUT_MATRIX_SIZE@GOTPAGE
Lloh7:
	ldr	x12, [x12, _GAMUT_MATRIX_SIZE@GOTPAGEOFF]
	ldr	w8, [x12]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x1, x9, x8
	mov	sp, x1
	ldr	w2, [x12]
	lsl	x8, x2, #2
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	cmp	w2, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x8, #0
	ldr	x9, [x21, #8]
	cmp	w2, #16
	b.lo	LBB0_7
; %bb.3:
	sub	x10, x1, x9
	cmp	x10, #64
	b.lo	LBB0_7
; %bb.4:
	and	x8, x2, #0xfffffff0
	add	x10, x1, #32
	add	x11, x9, #32
	mov	x12, x8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11], #64
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	subs	x12, x12, #16
	b.ne	LBB0_5
; %bb.6:
	cmp	x8, x2
	b.eq	LBB0_9
LBB0_7:
	lsl	x10, x8, #2
	add	x9, x9, x10
	add	x10, x1, x10
	sub	x8, x2, x8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9], #4
	str	w11, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_convert_float_matrix
	mov	x0, x19
	mov	x1, x20
	bl	_program_gamut_remap
	ldur	x8, [x29, #-40]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.10:
	mov	sp, x22
	sub	sp, x29, #32
	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
LBB0_11:
	ldur	x8, [x29, #-40]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x19
	mov	x1, #0
	sub	sp, x29, #32
	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
	b	_program_gamut_remap
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GRAPHICS_GAMUT_ADJUST_TYPE_SW,8,3 ; @GRAPHICS_GAMUT_ADJUST_TYPE_SW
	.comm	_GAMUT_MATRIX_SIZE,4,2          ; @GAMUT_MATRIX_SIZE
	.no_dead_strip	_dce_transform_set_gamut_remap
.subsections_via_symbols
