	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpp20_read_state               ## -- Begin function dpp20_read_state
	.p2align	4, 0x90
_dpp20_read_state:                      ## @dpp20_read_state
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_TO_DCN20_DPP
	movq	_DPP_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DPP_CLOCK_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	64(%rbx), %rdx
	callq	_REG_GET
	movq	_CM_DGAM_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CM_DGAM_LUT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	56(%rbx), %rdx
	callq	_REG_GET
	movq	_CM_GAMUT_REMAP_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CM_GAMUT_REMAP_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	48(%rbx), %rdx
	callq	_REG_GET
	cmpq	$0, 48(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_CM_GAMUT_REMAP_C11_C12@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_REG_READ
	movq	%rax, 40(%rbx)
	movq	_CM_GAMUT_REMAP_C13_C14@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_REG_READ
	movq	%rax, 32(%rbx)
	movq	_CM_GAMUT_REMAP_C21_C22@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_REG_READ
	movq	%rax, 24(%rbx)
	movq	_CM_GAMUT_REMAP_C23_C24@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_REG_READ
	movq	%rax, 16(%rbx)
	movq	_CM_GAMUT_REMAP_C31_C32@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_REG_READ
	movq	%rax, 8(%rbx)
	movq	_CM_GAMUT_REMAP_C33_C34@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_REG_READ
	movq	%rax, (%rbx)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPP_CONTROL,4,2                ## @DPP_CONTROL
	.comm	_DPP_CLOCK_ENABLE,4,2           ## @DPP_CLOCK_ENABLE
	.comm	_CM_DGAM_CONTROL,4,2            ## @CM_DGAM_CONTROL
	.comm	_CM_DGAM_LUT_MODE,4,2           ## @CM_DGAM_LUT_MODE
	.comm	_CM_GAMUT_REMAP_CONTROL,4,2     ## @CM_GAMUT_REMAP_CONTROL
	.comm	_CM_GAMUT_REMAP_MODE,4,2        ## @CM_GAMUT_REMAP_MODE
	.comm	_CM_GAMUT_REMAP_C11_C12,4,2     ## @CM_GAMUT_REMAP_C11_C12
	.comm	_CM_GAMUT_REMAP_C13_C14,4,2     ## @CM_GAMUT_REMAP_C13_C14
	.comm	_CM_GAMUT_REMAP_C21_C22,4,2     ## @CM_GAMUT_REMAP_C21_C22
	.comm	_CM_GAMUT_REMAP_C23_C24,4,2     ## @CM_GAMUT_REMAP_C23_C24
	.comm	_CM_GAMUT_REMAP_C31_C32,4,2     ## @CM_GAMUT_REMAP_C31_C32
	.comm	_CM_GAMUT_REMAP_C33_C34,4,2     ## @CM_GAMUT_REMAP_C33_C34
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpp20_read_state               ; -- Begin function dpp20_read_state
	.p2align	2
_dpp20_read_state:                      ; @dpp20_read_state
	.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
	bl	_TO_DCN20_DPP
Lloh0:
	adrp	x8, _DPP_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPP_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _DPP_CLOCK_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DPP_CLOCK_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, x19, #64
	bl	_REG_GET
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]
	add	x2, x19, #56
	bl	_REG_GET
Lloh12:
	adrp	x8, _CM_GAMUT_REMAP_CONTROL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CM_GAMUT_REMAP_CONTROL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _CM_GAMUT_REMAP_MODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CM_GAMUT_REMAP_MODE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, x19, #48
	bl	_REG_GET
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_2
; %bb.1:
Lloh18:
	adrp	x8, _CM_GAMUT_REMAP_C11_C12@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CM_GAMUT_REMAP_C11_C12@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_REG_READ
	str	x0, [x19, #40]
Lloh21:
	adrp	x8, _CM_GAMUT_REMAP_C13_C14@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CM_GAMUT_REMAP_C13_C14@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_REG_READ
	str	x0, [x19, #32]
Lloh24:
	adrp	x8, _CM_GAMUT_REMAP_C21_C22@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CM_GAMUT_REMAP_C21_C22@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_REG_READ
	str	x0, [x19, #24]
Lloh27:
	adrp	x8, _CM_GAMUT_REMAP_C23_C24@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CM_GAMUT_REMAP_C23_C24@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	_REG_READ
	str	x0, [x19, #16]
Lloh30:
	adrp	x8, _CM_GAMUT_REMAP_C31_C32@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CM_GAMUT_REMAP_C31_C32@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_REG_READ
	str	x0, [x19, #8]
Lloh33:
	adrp	x8, _CM_GAMUT_REMAP_C33_C34@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CM_GAMUT_REMAP_C33_C34@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_REG_READ
	str	x0, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_DPP_CONTROL,4,2                ; @DPP_CONTROL
	.comm	_DPP_CLOCK_ENABLE,4,2           ; @DPP_CLOCK_ENABLE
	.comm	_CM_DGAM_CONTROL,4,2            ; @CM_DGAM_CONTROL
	.comm	_CM_DGAM_LUT_MODE,4,2           ; @CM_DGAM_LUT_MODE
	.comm	_CM_GAMUT_REMAP_CONTROL,4,2     ; @CM_GAMUT_REMAP_CONTROL
	.comm	_CM_GAMUT_REMAP_MODE,4,2        ; @CM_GAMUT_REMAP_MODE
	.comm	_CM_GAMUT_REMAP_C11_C12,4,2     ; @CM_GAMUT_REMAP_C11_C12
	.comm	_CM_GAMUT_REMAP_C13_C14,4,2     ; @CM_GAMUT_REMAP_C13_C14
	.comm	_CM_GAMUT_REMAP_C21_C22,4,2     ; @CM_GAMUT_REMAP_C21_C22
	.comm	_CM_GAMUT_REMAP_C23_C24,4,2     ; @CM_GAMUT_REMAP_C23_C24
	.comm	_CM_GAMUT_REMAP_C31_C32,4,2     ; @CM_GAMUT_REMAP_C31_C32
	.comm	_CM_GAMUT_REMAP_C33_C34,4,2     ; @CM_GAMUT_REMAP_C33_C34
.subsections_via_symbols
