	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpp1_program_degamma_lut       ## -- Begin function dpp1_program_degamma_lut
	.p2align	4, 0x90
_dpp1_program_degamma_lut:              ## @dpp1_program_degamma_lut
	.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
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	%rsi, %rbx
	callq	_TO_DCN10_DPP
	movq	_CM_IGAM_LUT_RW_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CM_IGAM_LUT_HOST_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_REG_UPDATE
	movq	_CM_DGAM_LUT_WRITE_EN_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	%edi, %esi
	movl	$7, %edx
	callq	_REG_UPDATE
	movl	(%r12), %edi
	movq	_CM_DGAM_LUT_WRITE_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpl	$1, %r15d
	setne	%dl
	callq	_REG_UPDATE
	movq	_CM_DGAM_LUT_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	%edi, %edx
	xorl	%ecx, %ecx
	callq	_REG_SET
	testq	%r14, %r14
	je	LBB0_3
## %bb.1:
	addq	$20, %rbx
	movq	_CM_DGAM_LUT_DATA@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	(%rbx), %ecx
	xorl	%esi, %esi
	movl	%edi, %edx
	callq	_REG_SET
	movl	(%r15), %edi
	movl	-4(%rbx), %ecx
	xorl	%esi, %esi
	movl	%edi, %edx
	callq	_REG_SET
	movl	(%r15), %edi
	movl	-8(%rbx), %ecx
	xorl	%esi, %esi
	movl	%edi, %edx
	callq	_REG_SET
	movl	(%r15), %edi
	movl	-12(%rbx), %ecx
	xorl	%esi, %esi
	movl	%edi, %edx
	callq	_REG_SET
	movl	(%r15), %edi
	movl	-16(%rbx), %ecx
	xorl	%esi, %esi
	movl	%edi, %edx
	callq	_REG_SET
	movl	(%r15), %edi
	movl	-20(%rbx), %ecx
	xorl	%esi, %esi
	movl	%edi, %edx
	callq	_REG_SET
	addq	$24, %rbx
	decq	%r14
	jne	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CM_IGAM_LUT_RW_CONTROL,4,2     ## @CM_IGAM_LUT_RW_CONTROL
	.comm	_CM_IGAM_LUT_HOST_EN,4,2        ## @CM_IGAM_LUT_HOST_EN
	.comm	_CM_DGAM_LUT_WRITE_EN_MASK,4,2  ## @CM_DGAM_LUT_WRITE_EN_MASK
	.comm	_CM_DGAM_LUT_WRITE_SEL,4,2      ## @CM_DGAM_LUT_WRITE_SEL
	.comm	_CM_DGAM_LUT_INDEX,4,2          ## @CM_DGAM_LUT_INDEX
	.comm	_CM_DGAM_LUT_DATA,4,2           ## @CM_DGAM_LUT_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpp1_program_degamma_lut       ; -- Begin function dpp1_program_degamma_lut
	.p2align	2
_dpp1_program_degamma_lut:              ; @dpp1_program_degamma_lut
	.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	x21, x3
	mov	x19, x2
	mov	x20, x1
	bl	_TO_DCN10_DPP
Lloh0:
	adrp	x8, _CM_IGAM_LUT_RW_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CM_IGAM_LUT_RW_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _CM_IGAM_LUT_HOST_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CM_IGAM_LUT_HOST_EN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_REG_UPDATE
Lloh6:
	adrp	x22, _CM_DGAM_LUT_WRITE_EN_MASK@GOTPAGE
Lloh7:
	ldr	x22, [x22, _CM_DGAM_LUT_WRITE_EN_MASK@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x0
	mov	w2, #7
	bl	_REG_UPDATE
	ldr	w0, [x22]
Lloh8:
	adrp	x8, _CM_DGAM_LUT_WRITE_SEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CM_DGAM_LUT_WRITE_SEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	cmp	w21, #1
	cset	w2, ne
	bl	_REG_UPDATE
Lloh11:
	adrp	x8, _CM_DGAM_LUT_INDEX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CM_DGAM_LUT_INDEX@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	w1, #0
	mov	x2, x0
	mov	w3, #0
	bl	_REG_SET
	cbz	x19, LBB0_3
; %bb.1:
	add	x20, x20, #12
Lloh14:
	adrp	x21, _CM_DGAM_LUT_DATA@GOTPAGE
Lloh15:
	ldr	x21, [x21, _CM_DGAM_LUT_DATA@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldr	w3, [x20, #8]
	mov	w1, #0
	mov	x2, x0
	bl	_REG_SET
	ldr	w0, [x21]
	ldr	w3, [x20, #4]
	mov	w1, #0
	mov	x2, x0
	bl	_REG_SET
	ldr	w0, [x21]
	ldr	w3, [x20]
	mov	w1, #0
	mov	x2, x0
	bl	_REG_SET
	ldr	w0, [x21]
	ldur	w3, [x20, #-4]
	mov	w1, #0
	mov	x2, x0
	bl	_REG_SET
	ldr	w0, [x21]
	ldur	w3, [x20, #-8]
	mov	w1, #0
	mov	x2, x0
	bl	_REG_SET
	ldr	w0, [x21]
	ldur	w3, [x20, #-12]
	mov	w1, #0
	mov	x2, x0
	bl	_REG_SET
	add	x20, x20, #24
	subs	x19, x19, #1
	b.ne	LBB0_2
LBB0_3:
	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 AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_CM_IGAM_LUT_RW_CONTROL,4,2     ; @CM_IGAM_LUT_RW_CONTROL
	.comm	_CM_IGAM_LUT_HOST_EN,4,2        ; @CM_IGAM_LUT_HOST_EN
	.comm	_CM_DGAM_LUT_WRITE_EN_MASK,4,2  ; @CM_DGAM_LUT_WRITE_EN_MASK
	.comm	_CM_DGAM_LUT_WRITE_SEL,4,2      ; @CM_DGAM_LUT_WRITE_SEL
	.comm	_CM_DGAM_LUT_INDEX,4,2          ; @CM_DGAM_LUT_INDEX
	.comm	_CM_DGAM_LUT_DATA,4,2           ; @CM_DGAM_LUT_DATA
.subsections_via_symbols
