	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpp1_set_degamma               ## -- Begin function dpp1_set_degamma
	.p2align	4, 0x90
_dpp1_set_degamma:                      ## @dpp1_set_degamma
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_TO_DCN10_DPP
	movq	%rbx, %rdi
	callq	_dpp1_enable_cm_block
	cmpl	$128, %r14d
	je	LBB0_6
## %bb.1:
	cmpl	$129, %r14d
	je	LBB0_5
## %bb.2:
	cmpl	$130, %r14d
	jne	LBB0_7
## %bb.3:
	movq	_CM_DGAM_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CM_DGAM_LUT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	jmp	LBB0_4
LBB0_6:
	movq	_CM_DGAM_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CM_DGAM_LUT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$2, %edx
	jmp	LBB0_4
LBB0_5:
	movq	_CM_DGAM_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CM_DGAM_LUT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_REG_UPDATE                     ## TAILCALL
LBB0_7:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_BREAK_TO_DEBUGGER              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CM_DGAM_CONTROL,4,2            ## @CM_DGAM_CONTROL
	.comm	_CM_DGAM_LUT_MODE,4,2           ## @CM_DGAM_LUT_MODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpp1_set_degamma               ; -- Begin function dpp1_set_degamma
	.p2align	2
_dpp1_set_degamma:                      ; @dpp1_set_degamma
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_TO_DCN10_DPP
	mov	x0, x20
	bl	_dpp1_enable_cm_block
	cmp	w19, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w19, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w19, #130
	b.ne	LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _CM_DGAM_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CM_DGAM_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _CM_DGAM_LUT_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CM_DGAM_LUT_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _CM_DGAM_CONTROL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CM_DGAM_CONTROL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _CM_DGAM_LUT_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CM_DGAM_LUT_MODE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w2, #2
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _CM_DGAM_CONTROL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CM_DGAM_CONTROL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _CM_DGAM_LUT_MODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CM_DGAM_LUT_MODE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w2, #1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_REG_UPDATE
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_BREAK_TO_DEBUGGER
	.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	_CM_DGAM_CONTROL,4,2            ; @CM_DGAM_CONTROL
	.comm	_CM_DGAM_LUT_MODE,4,2           ; @CM_DGAM_LUT_MODE
.subsections_via_symbols
