	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpp20_set_3dlut_mode
_dpp20_set_3dlut_mode:                  ## @dpp20_set_3dlut_mode
	.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	%ecx, %r14d
	movl	%esi, %ebx
	callq	_TO_DCN20_DPP
	movq	_LUT_BYPASS@GOTPCREL(%rip), %rax
	movq	_LUT_RAM_A@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	%ebx, (%rcx)
	sete	%dl
	movl	$2, %ecx
	subl	%edx, %ecx
	xorl	%edx, %edx
	cmpl	%ebx, (%rax)
	cmovnel	%ecx, %edx
	movq	_CM_3DLUT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CM_3DLUT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r8d, %r8d
	cmpl	$1, %r14d
	setne	%r8b
	movl	%edi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_REG_UPDATE_2                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LUT_BYPASS,4,2                 ## @LUT_BYPASS
	.comm	_LUT_RAM_A,4,2                  ## @LUT_RAM_A
	.comm	_CM_3DLUT_MODE,4,2              ## @CM_3DLUT_MODE
	.comm	_CM_3DLUT_SIZE,4,2              ## @CM_3DLUT_SIZE
	.no_dead_strip	_dpp20_set_3dlut_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpp20_set_3dlut_mode
_dpp20_set_3dlut_mode:                  ; @dpp20_set_3dlut_mode
	.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, x3
	mov	x20, x1
	bl	_TO_DCN20_DPP
Lloh0:
	adrp	x8, _LUT_BYPASS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LUT_BYPASS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _LUT_RAM_A@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LUT_RAM_A@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w20
	mov	w9, #1
	cinc	w9, w9, ne
Lloh6:
	adrp	x10, _CM_3DLUT_MODE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CM_3DLUT_MODE@GOTPAGEOFF]
	cmp	w8, w20
	csel	w2, wzr, w9, eq
Lloh8:
	ldr	w0, [x10]
Lloh9:
	adrp	x8, _CM_3DLUT_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CM_3DLUT_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	cmp	w19, #1
	cset	w4, ne
	mov	x1, x0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_REG_UPDATE_2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LUT_BYPASS,4,2                 ; @LUT_BYPASS
	.comm	_LUT_RAM_A,4,2                  ; @LUT_RAM_A
	.comm	_CM_3DLUT_MODE,4,2              ; @CM_3DLUT_MODE
	.comm	_CM_3DLUT_SIZE,4,2              ; @CM_3DLUT_SIZE
	.no_dead_strip	_dpp20_set_3dlut_mode
.subsections_via_symbols
