	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function program_gamut_remap
_program_gamut_remap:                   ## @program_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	-24(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_GRAPHICS_GAMUT_ADJUST_TYPE_BYPASS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	movq	8(%rbx), %rcx
	cmpl	$1, (%rcx)
	jne	LBB0_4
## %bb.1:
	movq	_GRAPHICS_GAMUT_ADJUST_TYPE_SW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	movq	_CSC_TEMPERATURE_MATRIX_SIZE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_4
## %bb.2:
	movq	8(%rcx), %rcx
	movq	-24(%rbp), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rsi,4), %edi
	movl	%edi, (%rdx,%rsi,4)
	incq	%rsi
	movslq	(%rax), %rdi
	cmpq	%rdi, %rsi
	jl	LBB0_3
LBB0_4:
	movq	(%rbx), %rdi
	movq	(%rdi), %rax
	leaq	-24(%rbp), %rsi
	callq	*(%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRAPHICS_GAMUT_ADJUST_TYPE_BYPASS,4,2 ## @GRAPHICS_GAMUT_ADJUST_TYPE_BYPASS
	.comm	_GRAPHICS_GAMUT_ADJUST_TYPE_SW,4,2 ## @GRAPHICS_GAMUT_ADJUST_TYPE_SW
	.comm	_CSC_TEMPERATURE_MATRIX_SIZE,4,2 ## @CSC_TEMPERATURE_MATRIX_SIZE
	.no_dead_strip	_program_gamut_remap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function program_gamut_remap
_program_gamut_remap:                   ; @program_gamut_remap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh0:
	adrp	x8, _GRAPHICS_GAMUT_ADJUST_TYPE_BYPASS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GRAPHICS_GAMUT_ADJUST_TYPE_BYPASS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	x10, [x19, #8]
	ldr	w8, [x10]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _GRAPHICS_GAMUT_ADJUST_TYPE_SW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GRAPHICS_GAMUT_ADJUST_TYPE_SW@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh6:
	adrp	x8, _CSC_TEMPERATURE_MATRIX_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CSC_TEMPERATURE_MATRIX_SIZE@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x9, #0
	ldr	x10, [x10, #8]
	ldr	x11, [sp]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x9, #2
	ldr	w13, [x10, x12]
	str	w13, [x11, x12]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_3
LBB0_4:
	ldr	x0, [x19]
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	x1, sp
	blr	x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GRAPHICS_GAMUT_ADJUST_TYPE_BYPASS,4,2 ; @GRAPHICS_GAMUT_ADJUST_TYPE_BYPASS
	.comm	_GRAPHICS_GAMUT_ADJUST_TYPE_SW,4,2 ; @GRAPHICS_GAMUT_ADJUST_TYPE_SW
	.comm	_CSC_TEMPERATURE_MATRIX_SIZE,4,2 ; @CSC_TEMPERATURE_MATRIX_SIZE
	.no_dead_strip	_program_gamut_remap
.subsections_via_symbols
