	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpp1_cm_set_gamut_remap        ## -- Begin function dpp1_cm_set_gamut_remap
	.p2align	4, 0x90
_dpp1_cm_set_gamut_remap:               ## @dpp1_cm_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	%r14
	pushq	%rbx
	subq	$112, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	callq	_TO_DCN10_DPP
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	_GRAPHICS_GAMUT_ADJUST_TYPE_SW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	8(%rbx), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -80(%rbp)
	movups	16(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	movups	32(%rax), %xmm0
	movaps	%xmm0, -48(%rbp)
	leaq	-128(%rbp), %rbx
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$12, %edx
	callq	_convert_float_matrix
	movq	_GAMUT_REMAP_COEFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_program_gamut_remap
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$112, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	_GAMUT_REMAP_BYPASS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	addq	$112, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_program_gamut_remap            ## TAILCALL
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GRAPHICS_GAMUT_ADJUST_TYPE_SW,8,3 ## @GRAPHICS_GAMUT_ADJUST_TYPE_SW
	.comm	_GAMUT_REMAP_BYPASS,4,2         ## @GAMUT_REMAP_BYPASS
	.comm	_GAMUT_REMAP_COEFF,4,2          ## @GAMUT_REMAP_COEFF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpp1_cm_set_gamut_remap        ; -- Begin function dpp1_cm_set_gamut_remap
	.p2align	2
_dpp1_cm_set_gamut_remap:               ; @dpp1_cm_set_gamut_remap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	bl	_TO_DCN10_DPP
	mov	x19, x0
	ldr	x8, [x20]
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_3
; %bb.1:
	ldr	x8, [x20, #8]
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp, #48]
	ldr	q0, [x8, #32]
	str	q0, [sp, #80]
	mov	x0, sp
	add	x1, sp, #48
	mov	w2, #12
	bl	_convert_float_matrix
Lloh6:
	adrp	x8, _GAMUT_REMAP_COEFF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GAMUT_REMAP_COEFF@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, sp
	mov	x0, x19
	bl	_program_gamut_remap
	ldur	x8, [x29, #-24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.2:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_3:
Lloh12:
	adrp	x8, _GAMUT_REMAP_BYPASS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GAMUT_REMAP_BYPASS@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ldur	x8, [x29, #-24]
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_5
; %bb.4:
	mov	x0, x19
	mov	x1, #0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_program_gamut_remap
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GRAPHICS_GAMUT_ADJUST_TYPE_SW,8,3 ; @GRAPHICS_GAMUT_ADJUST_TYPE_SW
	.comm	_GAMUT_REMAP_BYPASS,4,2         ; @GAMUT_REMAP_BYPASS
	.comm	_GAMUT_REMAP_COEFF,4,2          ; @GAMUT_REMAP_COEFF
.subsections_via_symbols
