	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce5_crtc_load_lut
_dce5_crtc_load_lut:                    ## @dce5_crtc_load_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_to_radeon_crtc
	movq	%rax, %r14
	movq	16(%r15), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	12(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movq	_NI_INPUT_CSC_CONTROL@GOTPCREL(%rip), %rax
	movq	(%r14), %r12
	addq	(%rax), %r12
	movq	_NI_INPUT_CSC_BYPASS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_NI_INPUT_CSC_GRPH_MODE
	movl	%eax, %r13d
	movl	(%rbx), %edi
	callq	_NI_INPUT_CSC_OVL_MODE
	orl	%eax, %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_WREG32
	movq	_NI_PRESCALE_GRPH_CONTROL@GOTPCREL(%rip), %rax
	movq	(%r14), %rdi
	addq	(%rax), %rdi
	movq	_NI_GRPH_PRESCALE_BYPASS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WREG32
	movq	_NI_PRESCALE_OVL_CONTROL@GOTPCREL(%rip), %rax
	movq	(%r14), %rdi
	addq	(%rax), %rdi
	movq	_NI_OVL_PRESCALE_BYPASS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WREG32
	movq	_NI_INPUT_GAMMA_CONTROL@GOTPCREL(%rip), %rax
	movq	(%r14), %r12
	addq	(%rax), %r12
	movq	_NI_INPUT_GAMMA_USE_LUT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_NI_GRPH_INPUT_GAMMA_MODE
	movl	%eax, %r13d
	movl	(%rbx), %edi
	callq	_NI_OVL_INPUT_GAMMA_MODE
	orl	%eax, %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_WREG32
	movq	_EVERGREEN_DC_LUT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%r14), %rdi
	addq	(%rax), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_WREG32
	movq	_EVERGREEN_DC_LUT_BLACK_OFFSET_BLUE@GOTPCREL(%rip), %rax
	movq	(%r14), %rdi
	addq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_EVERGREEN_DC_LUT_BLACK_OFFSET_GREEN@GOTPCREL(%rip), %rax
	movq	(%r14), %rdi
	addq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_EVERGREEN_DC_LUT_BLACK_OFFSET_RED@GOTPCREL(%rip), %rax
	movq	(%r14), %rdi
	addq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_EVERGREEN_DC_LUT_WHITE_OFFSET_BLUE@GOTPCREL(%rip), %rax
	movq	(%r14), %rdi
	addq	(%rax), %rdi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_WREG32
	movq	_EVERGREEN_DC_LUT_WHITE_OFFSET_GREEN@GOTPCREL(%rip), %rax
	movq	(%r14), %rdi
	addq	(%rax), %rdi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_WREG32
	movq	_EVERGREEN_DC_LUT_WHITE_OFFSET_RED@GOTPCREL(%rip), %rax
	movq	(%r14), %rdi
	addq	(%rax), %rdi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_WREG32
	movq	_EVERGREEN_DC_LUT_RW_MODE@GOTPCREL(%rip), %rax
	movq	(%r14), %rdi
	addq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_EVERGREEN_DC_LUT_WRITE_EN_MASK@GOTPCREL(%rip), %rax
	movq	(%r14), %rdi
	addq	(%rax), %rdi
	movl	$7, %esi
	callq	_WREG32
	movq	_EVERGREEN_DC_LUT_RW_INDEX@GOTPCREL(%rip), %rax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rdi
	addq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	movq	8(%r15), %r12
	movslq	(%r15), %rax
	leaq	(%r12,%rax,4), %r15
	leaq	(%r15,%rax,4), %r13
	movq	_EVERGREEN_DC_LUT_30_COLOR@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	movl	(%r12,%rbx,4), %eax
	shll	$14, %eax
	andl	$1072693248, %eax               ## imm = 0x3FF00000
	movl	(%r15,%rbx,4), %ecx
	shll	$4, %ecx
	andl	$1047552, %ecx                  ## imm = 0xFFC00
	orl	%eax, %ecx
	movl	(%r13,%rbx,4), %esi
	sarl	$6, %esi
	orl	%ecx, %esi
	callq	_WREG32
	incq	%rbx
	cmpl	$256, %ebx                      ## imm = 0x100
	jne	LBB0_1
## %bb.2:
	movq	_NI_DEGAMMA_CONTROL@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %r15
	addq	(%rax), %r15
	movq	_NI_DEGAMMA_BYPASS@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_NI_GRPH_DEGAMMA_MODE
	movl	%eax, %r12d
	movl	(%r14), %edi
	callq	_NI_OVL_DEGAMMA_MODE
	orl	%eax, %r12d
	movl	(%r14), %edi
	callq	_NI_ICON_DEGAMMA_MODE
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_NI_CURSOR_DEGAMMA_MODE
	orl	%eax, %ebx
	orl	%r12d, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_WREG32
	movq	_NI_GAMUT_REMAP_CONTROL@GOTPCREL(%rip), %rax
	movq	(%r13), %r15
	addq	(%rax), %r15
	movq	_NI_GAMUT_REMAP_BYPASS@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_NI_GRPH_GAMUT_REMAP_MODE
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_NI_OVL_GAMUT_REMAP_MODE
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_WREG32
	movq	_NI_REGAMMA_CONTROL@GOTPCREL(%rip), %rax
	movq	(%r13), %r15
	addq	(%rax), %r15
	movq	_NI_REGAMMA_BYPASS@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_NI_GRPH_REGAMMA_MODE
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_NI_OVL_REGAMMA_MODE
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_WREG32
	movq	_NI_OUTPUT_CSC_CONTROL@GOTPCREL(%rip), %rax
	movq	(%r13), %r15
	addq	(%rax), %r15
	movl	8(%r13), %edi
	callq	_NI_OUTPUT_CSC_GRPH_MODE
	movl	%eax, %ebx
	movq	_NI_OUTPUT_CSC_BYPASS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_NI_OUTPUT_CSC_OVL_MODE
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_WREG32
	movl	$26944, %edi                    ## imm = 0x6940
	addq	(%r13), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ASIC_IS_DCE8
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_CIK_ALPHA_CONTROL@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rdi
	addq	(%rax), %rdi
	movq	_CIK_CURSOR_ALPHA_BLND_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d\n"

	.comm	_NI_INPUT_CSC_CONTROL,8,3       ## @NI_INPUT_CSC_CONTROL
	.comm	_NI_INPUT_CSC_BYPASS,4,2        ## @NI_INPUT_CSC_BYPASS
	.comm	_NI_PRESCALE_GRPH_CONTROL,8,3   ## @NI_PRESCALE_GRPH_CONTROL
	.comm	_NI_GRPH_PRESCALE_BYPASS,4,2    ## @NI_GRPH_PRESCALE_BYPASS
	.comm	_NI_PRESCALE_OVL_CONTROL,8,3    ## @NI_PRESCALE_OVL_CONTROL
	.comm	_NI_OVL_PRESCALE_BYPASS,4,2     ## @NI_OVL_PRESCALE_BYPASS
	.comm	_NI_INPUT_GAMMA_CONTROL,8,3     ## @NI_INPUT_GAMMA_CONTROL
	.comm	_NI_INPUT_GAMMA_USE_LUT,4,2     ## @NI_INPUT_GAMMA_USE_LUT
	.comm	_EVERGREEN_DC_LUT_CONTROL,8,3   ## @EVERGREEN_DC_LUT_CONTROL
	.comm	_EVERGREEN_DC_LUT_BLACK_OFFSET_BLUE,8,3 ## @EVERGREEN_DC_LUT_BLACK_OFFSET_BLUE
	.comm	_EVERGREEN_DC_LUT_BLACK_OFFSET_GREEN,8,3 ## @EVERGREEN_DC_LUT_BLACK_OFFSET_GREEN
	.comm	_EVERGREEN_DC_LUT_BLACK_OFFSET_RED,8,3 ## @EVERGREEN_DC_LUT_BLACK_OFFSET_RED
	.comm	_EVERGREEN_DC_LUT_WHITE_OFFSET_BLUE,8,3 ## @EVERGREEN_DC_LUT_WHITE_OFFSET_BLUE
	.comm	_EVERGREEN_DC_LUT_WHITE_OFFSET_GREEN,8,3 ## @EVERGREEN_DC_LUT_WHITE_OFFSET_GREEN
	.comm	_EVERGREEN_DC_LUT_WHITE_OFFSET_RED,8,3 ## @EVERGREEN_DC_LUT_WHITE_OFFSET_RED
	.comm	_EVERGREEN_DC_LUT_RW_MODE,8,3   ## @EVERGREEN_DC_LUT_RW_MODE
	.comm	_EVERGREEN_DC_LUT_WRITE_EN_MASK,8,3 ## @EVERGREEN_DC_LUT_WRITE_EN_MASK
	.comm	_EVERGREEN_DC_LUT_RW_INDEX,8,3  ## @EVERGREEN_DC_LUT_RW_INDEX
	.comm	_EVERGREEN_DC_LUT_30_COLOR,8,3  ## @EVERGREEN_DC_LUT_30_COLOR
	.comm	_NI_DEGAMMA_CONTROL,8,3         ## @NI_DEGAMMA_CONTROL
	.comm	_NI_DEGAMMA_BYPASS,4,2          ## @NI_DEGAMMA_BYPASS
	.comm	_NI_GAMUT_REMAP_CONTROL,8,3     ## @NI_GAMUT_REMAP_CONTROL
	.comm	_NI_GAMUT_REMAP_BYPASS,4,2      ## @NI_GAMUT_REMAP_BYPASS
	.comm	_NI_REGAMMA_CONTROL,8,3         ## @NI_REGAMMA_CONTROL
	.comm	_NI_REGAMMA_BYPASS,4,2          ## @NI_REGAMMA_BYPASS
	.comm	_NI_OUTPUT_CSC_CONTROL,8,3      ## @NI_OUTPUT_CSC_CONTROL
	.comm	_NI_OUTPUT_CSC_BYPASS,4,2       ## @NI_OUTPUT_CSC_BYPASS
	.comm	_CIK_ALPHA_CONTROL,8,3          ## @CIK_ALPHA_CONTROL
	.comm	_CIK_CURSOR_ALPHA_BLND_ENA,4,2  ## @CIK_CURSOR_ALPHA_BLND_ENA
	.no_dead_strip	_dce5_crtc_load_lut
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce5_crtc_load_lut
_dce5_crtc_load_lut:                    ; @dce5_crtc_load_lut
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
	bl	_to_radeon_crtc
	mov	x19, x0
	ldr	x8, [x21, #16]
	ldr	x20, [x8]
	ldr	w1, [x0, #12]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh2:
	adrp	x8, _NI_INPUT_CSC_CONTROL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NI_INPUT_CSC_CONTROL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x22, x9, x8
Lloh5:
	adrp	x24, _NI_INPUT_CSC_BYPASS@GOTPAGE
Lloh6:
	ldr	x24, [x24, _NI_INPUT_CSC_BYPASS@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_NI_INPUT_CSC_GRPH_MODE
	mov	x23, x0
	ldr	w0, [x24]
	bl	_NI_INPUT_CSC_OVL_MODE
	orr	w1, w0, w23
	mov	x0, x22
	bl	_WREG32
Lloh7:
	adrp	x8, _NI_PRESCALE_GRPH_CONTROL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NI_PRESCALE_GRPH_CONTROL@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x0, x9, x8
Lloh10:
	adrp	x8, _NI_GRPH_PRESCALE_BYPASS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NI_GRPH_PRESCALE_BYPASS@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_WREG32
Lloh13:
	adrp	x8, _NI_PRESCALE_OVL_CONTROL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NI_PRESCALE_OVL_CONTROL@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x0, x9, x8
Lloh16:
	adrp	x8, _NI_OVL_PRESCALE_BYPASS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NI_OVL_PRESCALE_BYPASS@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_WREG32
Lloh19:
	adrp	x8, _NI_INPUT_GAMMA_CONTROL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NI_INPUT_GAMMA_CONTROL@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x22, x9, x8
Lloh22:
	adrp	x24, _NI_INPUT_GAMMA_USE_LUT@GOTPAGE
Lloh23:
	ldr	x24, [x24, _NI_INPUT_GAMMA_USE_LUT@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_NI_GRPH_INPUT_GAMMA_MODE
	mov	x23, x0
	ldr	w0, [x24]
	bl	_NI_OVL_INPUT_GAMMA_MODE
	orr	w1, w0, w23
	mov	x0, x22
	bl	_WREG32
Lloh24:
	adrp	x8, _EVERGREEN_DC_LUT_CONTROL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EVERGREEN_DC_LUT_CONTROL@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
Lloh27:
	adrp	x8, _EVERGREEN_DC_LUT_BLACK_OFFSET_BLUE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EVERGREEN_DC_LUT_BLACK_OFFSET_BLUE@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
Lloh30:
	adrp	x8, _EVERGREEN_DC_LUT_BLACK_OFFSET_GREEN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EVERGREEN_DC_LUT_BLACK_OFFSET_GREEN@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
Lloh33:
	adrp	x8, _EVERGREEN_DC_LUT_BLACK_OFFSET_RED@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EVERGREEN_DC_LUT_BLACK_OFFSET_RED@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
Lloh36:
	adrp	x8, _EVERGREEN_DC_LUT_WHITE_OFFSET_BLUE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EVERGREEN_DC_LUT_WHITE_OFFSET_BLUE@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x0, x9, x8
	mov	w1, #65535
	bl	_WREG32
Lloh39:
	adrp	x8, _EVERGREEN_DC_LUT_WHITE_OFFSET_GREEN@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EVERGREEN_DC_LUT_WHITE_OFFSET_GREEN@GOTPAGEOFF]
Lloh41:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x0, x9, x8
	mov	w1, #65535
	bl	_WREG32
Lloh42:
	adrp	x8, _EVERGREEN_DC_LUT_WHITE_OFFSET_RED@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EVERGREEN_DC_LUT_WHITE_OFFSET_RED@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x0, x9, x8
	mov	w1, #65535
	bl	_WREG32
Lloh45:
	adrp	x8, _EVERGREEN_DC_LUT_RW_MODE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _EVERGREEN_DC_LUT_RW_MODE@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
Lloh48:
	adrp	x8, _EVERGREEN_DC_LUT_WRITE_EN_MASK@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EVERGREEN_DC_LUT_WRITE_EN_MASK@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x0, x9, x8
	mov	w1, #7
	bl	_WREG32
Lloh51:
	adrp	x8, _EVERGREEN_DC_LUT_RW_INDEX@GOTPAGE
Lloh52:
	ldr	x8, [x8, _EVERGREEN_DC_LUT_RW_INDEX@GOTPAGEOFF]
Lloh53:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
	mov	x22, #0
	ldr	x23, [x21, #8]
	ldrsw	x8, [x21]
	lsl	x8, x8, #2
	add	x21, x23, x8
	add	x24, x21, x8
Lloh54:
	adrp	x25, _EVERGREEN_DC_LUT_30_COLOR@GOTPAGE
Lloh55:
	ldr	x25, [x25, _EVERGREEN_DC_LUT_30_COLOR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	x9, [x19]
	add	x0, x9, x8
	ldr	w8, [x23, x22]
	lsl	w8, w8, #14
	ldr	w9, [x21, x22]
	and	w8, w8, #0x3ff00000
	lsr	w9, w9, #6
	bfi	w8, w9, #10, #10
	ldr	w9, [x24, x22]
	orr	w1, w8, w9, asr #6
	bl	_WREG32
	add	x22, x22, #4
	cmp	w22, #1024
	b.ne	LBB0_1
; %bb.2:
Lloh56:
	adrp	x8, _NI_DEGAMMA_CONTROL@GOTPAGE
Lloh57:
	ldr	x8, [x8, _NI_DEGAMMA_CONTROL@GOTPAGEOFF]
Lloh58:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x21, x9, x8
Lloh59:
	adrp	x23, _NI_DEGAMMA_BYPASS@GOTPAGE
Lloh60:
	ldr	x23, [x23, _NI_DEGAMMA_BYPASS@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_NI_GRPH_DEGAMMA_MODE
	mov	x22, x0
	ldr	w0, [x23]
	bl	_NI_OVL_DEGAMMA_MODE
	orr	w22, w0, w22
	ldr	w0, [x23]
	bl	_NI_ICON_DEGAMMA_MODE
	orr	w22, w22, w0
	ldr	w0, [x23]
	bl	_NI_CURSOR_DEGAMMA_MODE
	orr	w1, w22, w0
	mov	x0, x21
	bl	_WREG32
Lloh61:
	adrp	x8, _NI_GAMUT_REMAP_CONTROL@GOTPAGE
Lloh62:
	ldr	x8, [x8, _NI_GAMUT_REMAP_CONTROL@GOTPAGEOFF]
Lloh63:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x21, x9, x8
Lloh64:
	adrp	x23, _NI_GAMUT_REMAP_BYPASS@GOTPAGE
Lloh65:
	ldr	x23, [x23, _NI_GAMUT_REMAP_BYPASS@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_NI_GRPH_GAMUT_REMAP_MODE
	mov	x22, x0
	ldr	w0, [x23]
	bl	_NI_OVL_GAMUT_REMAP_MODE
	orr	w1, w0, w22
	mov	x0, x21
	bl	_WREG32
Lloh66:
	adrp	x8, _NI_REGAMMA_CONTROL@GOTPAGE
Lloh67:
	ldr	x8, [x8, _NI_REGAMMA_CONTROL@GOTPAGEOFF]
Lloh68:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x21, x9, x8
Lloh69:
	adrp	x23, _NI_REGAMMA_BYPASS@GOTPAGE
Lloh70:
	ldr	x23, [x23, _NI_REGAMMA_BYPASS@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_NI_GRPH_REGAMMA_MODE
	mov	x22, x0
	ldr	w0, [x23]
	bl	_NI_OVL_REGAMMA_MODE
	orr	w1, w0, w22
	mov	x0, x21
	bl	_WREG32
Lloh71:
	adrp	x8, _NI_OUTPUT_CSC_CONTROL@GOTPAGE
Lloh72:
	ldr	x8, [x8, _NI_OUTPUT_CSC_CONTROL@GOTPAGEOFF]
Lloh73:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x21, x9, x8
	ldr	w0, [x19, #8]
	bl	_NI_OUTPUT_CSC_GRPH_MODE
	mov	x22, x0
Lloh74:
	adrp	x8, _NI_OUTPUT_CSC_BYPASS@GOTPAGE
Lloh75:
	ldr	x8, [x8, _NI_OUTPUT_CSC_BYPASS@GOTPAGEOFF]
Lloh76:
	ldr	w0, [x8]
	bl	_NI_OUTPUT_CSC_OVL_MODE
	orr	w1, w0, w22
	mov	x0, x21
	bl	_WREG32
	ldr	x8, [x19]
	mov	w9, #26944
	add	x0, x8, x9
	mov	w1, #0
	bl	_WREG32
	mov	x0, x20
	bl	_ASIC_IS_DCE8
	cbz	x0, LBB0_4
; %bb.3:
Lloh77:
	adrp	x8, _CIK_ALPHA_CONTROL@GOTPAGE
Lloh78:
	ldr	x8, [x8, _CIK_ALPHA_CONTROL@GOTPAGEOFF]
Lloh79:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x0, x9, x8
Lloh80:
	adrp	x8, _CIK_CURSOR_ALPHA_BLND_ENA@GOTPAGE
Lloh81:
	ldr	x8, [x8, _CIK_CURSOR_ALPHA_BLND_ENA@GOTPAGEOFF]
Lloh82:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_WREG32
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d\n"

	.comm	_NI_INPUT_CSC_CONTROL,8,3       ; @NI_INPUT_CSC_CONTROL
	.comm	_NI_INPUT_CSC_BYPASS,4,2        ; @NI_INPUT_CSC_BYPASS
	.comm	_NI_PRESCALE_GRPH_CONTROL,8,3   ; @NI_PRESCALE_GRPH_CONTROL
	.comm	_NI_GRPH_PRESCALE_BYPASS,4,2    ; @NI_GRPH_PRESCALE_BYPASS
	.comm	_NI_PRESCALE_OVL_CONTROL,8,3    ; @NI_PRESCALE_OVL_CONTROL
	.comm	_NI_OVL_PRESCALE_BYPASS,4,2     ; @NI_OVL_PRESCALE_BYPASS
	.comm	_NI_INPUT_GAMMA_CONTROL,8,3     ; @NI_INPUT_GAMMA_CONTROL
	.comm	_NI_INPUT_GAMMA_USE_LUT,4,2     ; @NI_INPUT_GAMMA_USE_LUT
	.comm	_EVERGREEN_DC_LUT_CONTROL,8,3   ; @EVERGREEN_DC_LUT_CONTROL
	.comm	_EVERGREEN_DC_LUT_BLACK_OFFSET_BLUE,8,3 ; @EVERGREEN_DC_LUT_BLACK_OFFSET_BLUE
	.comm	_EVERGREEN_DC_LUT_BLACK_OFFSET_GREEN,8,3 ; @EVERGREEN_DC_LUT_BLACK_OFFSET_GREEN
	.comm	_EVERGREEN_DC_LUT_BLACK_OFFSET_RED,8,3 ; @EVERGREEN_DC_LUT_BLACK_OFFSET_RED
	.comm	_EVERGREEN_DC_LUT_WHITE_OFFSET_BLUE,8,3 ; @EVERGREEN_DC_LUT_WHITE_OFFSET_BLUE
	.comm	_EVERGREEN_DC_LUT_WHITE_OFFSET_GREEN,8,3 ; @EVERGREEN_DC_LUT_WHITE_OFFSET_GREEN
	.comm	_EVERGREEN_DC_LUT_WHITE_OFFSET_RED,8,3 ; @EVERGREEN_DC_LUT_WHITE_OFFSET_RED
	.comm	_EVERGREEN_DC_LUT_RW_MODE,8,3   ; @EVERGREEN_DC_LUT_RW_MODE
	.comm	_EVERGREEN_DC_LUT_WRITE_EN_MASK,8,3 ; @EVERGREEN_DC_LUT_WRITE_EN_MASK
	.comm	_EVERGREEN_DC_LUT_RW_INDEX,8,3  ; @EVERGREEN_DC_LUT_RW_INDEX
	.comm	_EVERGREEN_DC_LUT_30_COLOR,8,3  ; @EVERGREEN_DC_LUT_30_COLOR
	.comm	_NI_DEGAMMA_CONTROL,8,3         ; @NI_DEGAMMA_CONTROL
	.comm	_NI_DEGAMMA_BYPASS,4,2          ; @NI_DEGAMMA_BYPASS
	.comm	_NI_GAMUT_REMAP_CONTROL,8,3     ; @NI_GAMUT_REMAP_CONTROL
	.comm	_NI_GAMUT_REMAP_BYPASS,4,2      ; @NI_GAMUT_REMAP_BYPASS
	.comm	_NI_REGAMMA_CONTROL,8,3         ; @NI_REGAMMA_CONTROL
	.comm	_NI_REGAMMA_BYPASS,4,2          ; @NI_REGAMMA_BYPASS
	.comm	_NI_OUTPUT_CSC_CONTROL,8,3      ; @NI_OUTPUT_CSC_CONTROL
	.comm	_NI_OUTPUT_CSC_BYPASS,4,2       ; @NI_OUTPUT_CSC_BYPASS
	.comm	_CIK_ALPHA_CONTROL,8,3          ; @CIK_ALPHA_CONTROL
	.comm	_CIK_CURSOR_ALPHA_BLND_ENA,4,2  ; @CIK_CURSOR_ALPHA_BLND_ENA
	.no_dead_strip	_dce5_crtc_load_lut
.subsections_via_symbols
