	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_v10_0_crtc_load_lut
_dce_v10_0_crtc_load_lut:               ## @dce_v10_0_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_to_amdgpu_crtc
	movq	%rax, %r13
	movl	8(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movq	_mmINPUT_CSC_CONTROL@GOTPCREL(%rip), %r15
	movq	(%r13), %rdi
	addq	(%r15), %rdi
	callq	_RREG32
	movq	_INPUT_CSC_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_INPUT_CSC_GRPH_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%ebx, %ebx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_REG_SET_FIELD
	movl	(%r12), %esi
	movq	_INPUT_CSC_OVL_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_REG_SET_FIELD
	movq	(%r13), %rdi
	addq	(%r15), %rdi
	movl	%eax, %esi
	callq	_WREG32
	movq	_mmPRESCALE_GRPH_CONTROL@GOTPCREL(%rip), %r15
	movq	(%r13), %rdi
	addq	(%r15), %rdi
	callq	_RREG32
	movq	_PRESCALE_GRPH_CONTROL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_GRPH_PRESCALE_BYPASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movq	(%r13), %rdi
	addq	(%r15), %rdi
	movl	%eax, %esi
	callq	_WREG32
	movq	_mmPRESCALE_OVL_CONTROL@GOTPCREL(%rip), %r15
	movq	(%r13), %rdi
	addq	(%r15), %rdi
	callq	_RREG32
	movq	_PRESCALE_OVL_CONTROL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_OVL_PRESCALE_BYPASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movq	(%r13), %rdi
	addq	(%r15), %rdi
	movl	%eax, %esi
	callq	_WREG32
	movq	_mmINPUT_GAMMA_CONTROL@GOTPCREL(%rip), %r15
	movq	(%r13), %rdi
	addq	(%r15), %rdi
	callq	_RREG32
	movq	_INPUT_GAMMA_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_GRPH_INPUT_GAMMA_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_REG_SET_FIELD
	movl	(%r12), %esi
	movq	_OVL_INPUT_GAMMA_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_REG_SET_FIELD
	movq	(%r13), %rdi
	addq	(%r15), %rdi
	movl	%eax, %esi
	callq	_WREG32
	movq	_mmDC_LUT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%r13), %rdi
	addq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_mmDC_LUT_BLACK_OFFSET_BLUE@GOTPCREL(%rip), %rax
	movq	(%r13), %rdi
	addq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_mmDC_LUT_BLACK_OFFSET_GREEN@GOTPCREL(%rip), %rax
	movq	(%r13), %rdi
	addq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_mmDC_LUT_BLACK_OFFSET_RED@GOTPCREL(%rip), %rax
	movq	(%r13), %rdi
	addq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_mmDC_LUT_WHITE_OFFSET_BLUE@GOTPCREL(%rip), %rax
	movq	(%r13), %rdi
	addq	(%rax), %rdi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_WREG32
	movq	_mmDC_LUT_WHITE_OFFSET_GREEN@GOTPCREL(%rip), %rax
	movq	(%r13), %rdi
	addq	(%rax), %rdi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_WREG32
	movq	_mmDC_LUT_WHITE_OFFSET_RED@GOTPCREL(%rip), %rax
	movq	(%r13), %rdi
	addq	(%rax), %rdi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_WREG32
	movq	_mmDC_LUT_RW_MODE@GOTPCREL(%rip), %rax
	movq	(%r13), %rdi
	addq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_mmDC_LUT_WRITE_EN_MASK@GOTPCREL(%rip), %rax
	movq	(%r13), %rdi
	addq	(%rax), %rdi
	movl	$7, %esi
	callq	_WREG32
	movq	_mmDC_LUT_RW_INDEX@GOTPCREL(%rip), %rax
	movq	%r13, %r15
	movq	(%r13), %rdi
	addq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	movq	8(%r14), %r12
	movslq	(%r14), %rax
	leaq	(%r12,%rax,4), %r14
	leaq	(%r14,%rax,4), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movq	_mmDC_LUT_30_COLOR@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	movl	(%r12,%rbx,4), %eax
	shll	$14, %eax
	andl	$1072693248, %eax               ## imm = 0x3FF00000
	movl	(%r14,%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	_mmDEGAMMA_CONTROL@GOTPCREL(%rip), %r14
	movq	%r15, %rbx
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_RREG32
	movq	_DEGAMMA_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_GRPH_DEGAMMA_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_REG_SET_FIELD
	movl	(%r15), %esi
	movq	_OVL_DEGAMMA_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_REG_SET_FIELD
	movl	(%r15), %esi
	movq	_CURSOR_DEGAMMA_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_REG_SET_FIELD
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	movl	%eax, %esi
	callq	_WREG32
	movq	_mmGAMUT_REMAP_CONTROL@GOTPCREL(%rip), %r14
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_RREG32
	movq	_GAMUT_REMAP_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_GRPH_GAMUT_REMAP_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_REG_SET_FIELD
	movl	(%r15), %esi
	movq	_OVL_GAMUT_REMAP_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_REG_SET_FIELD
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	movl	%eax, %esi
	callq	_WREG32
	movq	_mmREGAMMA_CONTROL@GOTPCREL(%rip), %r14
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_RREG32
	movq	_REGAMMA_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_GRPH_REGAMMA_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_REG_SET_FIELD
	movl	(%r15), %esi
	movq	_OVL_REGAMMA_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_REG_SET_FIELD
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	movl	%eax, %esi
	callq	_WREG32
	movq	_mmOUTPUT_CSC_CONTROL@GOTPCREL(%rip), %r14
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_RREG32
	movq	_OUTPUT_CSC_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_OUTPUT_CSC_GRPH_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_REG_SET_FIELD
	movl	(%r15), %esi
	movq	_OUTPUT_CSC_OVL_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%ecx, %ecx
	callq	_REG_SET_FIELD
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	movl	%eax, %esi
	callq	_WREG32
	movq	_mmDENORM_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rbx), %rdi
	addq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_mmALPHA_CONTROL@GOTPCREL(%rip), %r14
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_RREG32
	movq	_ALPHA_CONTROL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_CURSOR_ALPHA_BLND_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d\n"

	.comm	_mmINPUT_CSC_CONTROL,8,3        ## @mmINPUT_CSC_CONTROL
	.comm	_INPUT_CSC_CONTROL,4,2          ## @INPUT_CSC_CONTROL
	.comm	_INPUT_CSC_GRPH_MODE,4,2        ## @INPUT_CSC_GRPH_MODE
	.comm	_INPUT_CSC_OVL_MODE,4,2         ## @INPUT_CSC_OVL_MODE
	.comm	_mmPRESCALE_GRPH_CONTROL,8,3    ## @mmPRESCALE_GRPH_CONTROL
	.comm	_PRESCALE_GRPH_CONTROL,4,2      ## @PRESCALE_GRPH_CONTROL
	.comm	_GRPH_PRESCALE_BYPASS,4,2       ## @GRPH_PRESCALE_BYPASS
	.comm	_mmPRESCALE_OVL_CONTROL,8,3     ## @mmPRESCALE_OVL_CONTROL
	.comm	_PRESCALE_OVL_CONTROL,4,2       ## @PRESCALE_OVL_CONTROL
	.comm	_OVL_PRESCALE_BYPASS,4,2        ## @OVL_PRESCALE_BYPASS
	.comm	_mmINPUT_GAMMA_CONTROL,8,3      ## @mmINPUT_GAMMA_CONTROL
	.comm	_INPUT_GAMMA_CONTROL,4,2        ## @INPUT_GAMMA_CONTROL
	.comm	_GRPH_INPUT_GAMMA_MODE,4,2      ## @GRPH_INPUT_GAMMA_MODE
	.comm	_OVL_INPUT_GAMMA_MODE,4,2       ## @OVL_INPUT_GAMMA_MODE
	.comm	_mmDC_LUT_CONTROL,8,3           ## @mmDC_LUT_CONTROL
	.comm	_mmDC_LUT_BLACK_OFFSET_BLUE,8,3 ## @mmDC_LUT_BLACK_OFFSET_BLUE
	.comm	_mmDC_LUT_BLACK_OFFSET_GREEN,8,3 ## @mmDC_LUT_BLACK_OFFSET_GREEN
	.comm	_mmDC_LUT_BLACK_OFFSET_RED,8,3  ## @mmDC_LUT_BLACK_OFFSET_RED
	.comm	_mmDC_LUT_WHITE_OFFSET_BLUE,8,3 ## @mmDC_LUT_WHITE_OFFSET_BLUE
	.comm	_mmDC_LUT_WHITE_OFFSET_GREEN,8,3 ## @mmDC_LUT_WHITE_OFFSET_GREEN
	.comm	_mmDC_LUT_WHITE_OFFSET_RED,8,3  ## @mmDC_LUT_WHITE_OFFSET_RED
	.comm	_mmDC_LUT_RW_MODE,8,3           ## @mmDC_LUT_RW_MODE
	.comm	_mmDC_LUT_WRITE_EN_MASK,8,3     ## @mmDC_LUT_WRITE_EN_MASK
	.comm	_mmDC_LUT_RW_INDEX,8,3          ## @mmDC_LUT_RW_INDEX
	.comm	_mmDC_LUT_30_COLOR,8,3          ## @mmDC_LUT_30_COLOR
	.comm	_mmDEGAMMA_CONTROL,8,3          ## @mmDEGAMMA_CONTROL
	.comm	_DEGAMMA_CONTROL,4,2            ## @DEGAMMA_CONTROL
	.comm	_GRPH_DEGAMMA_MODE,4,2          ## @GRPH_DEGAMMA_MODE
	.comm	_OVL_DEGAMMA_MODE,4,2           ## @OVL_DEGAMMA_MODE
	.comm	_CURSOR_DEGAMMA_MODE,4,2        ## @CURSOR_DEGAMMA_MODE
	.comm	_mmGAMUT_REMAP_CONTROL,8,3      ## @mmGAMUT_REMAP_CONTROL
	.comm	_GAMUT_REMAP_CONTROL,4,2        ## @GAMUT_REMAP_CONTROL
	.comm	_GRPH_GAMUT_REMAP_MODE,4,2      ## @GRPH_GAMUT_REMAP_MODE
	.comm	_OVL_GAMUT_REMAP_MODE,4,2       ## @OVL_GAMUT_REMAP_MODE
	.comm	_mmREGAMMA_CONTROL,8,3          ## @mmREGAMMA_CONTROL
	.comm	_REGAMMA_CONTROL,4,2            ## @REGAMMA_CONTROL
	.comm	_GRPH_REGAMMA_MODE,4,2          ## @GRPH_REGAMMA_MODE
	.comm	_OVL_REGAMMA_MODE,4,2           ## @OVL_REGAMMA_MODE
	.comm	_mmOUTPUT_CSC_CONTROL,8,3       ## @mmOUTPUT_CSC_CONTROL
	.comm	_OUTPUT_CSC_CONTROL,4,2         ## @OUTPUT_CSC_CONTROL
	.comm	_OUTPUT_CSC_GRPH_MODE,4,2       ## @OUTPUT_CSC_GRPH_MODE
	.comm	_OUTPUT_CSC_OVL_MODE,4,2        ## @OUTPUT_CSC_OVL_MODE
	.comm	_mmDENORM_CONTROL,8,3           ## @mmDENORM_CONTROL
	.comm	_mmALPHA_CONTROL,8,3            ## @mmALPHA_CONTROL
	.comm	_ALPHA_CONTROL,4,2              ## @ALPHA_CONTROL
	.comm	_CURSOR_ALPHA_BLND_ENA,4,2      ## @CURSOR_ALPHA_BLND_ENA
	.no_dead_strip	_dce_v10_0_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 dce_v10_0_crtc_load_lut
_dce_v10_0_crtc_load_lut:               ; @dce_v10_0_crtc_load_lut
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	bl	_to_amdgpu_crtc
	mov	x19, x0
	ldr	w1, [x0, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh2:
	adrp	x21, _mmINPUT_CSC_CONTROL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _mmINPUT_CSC_CONTROL@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_RREG32
Lloh4:
	adrp	x22, _INPUT_CSC_CONTROL@GOTPAGE
Lloh5:
	ldr	x22, [x22, _INPUT_CSC_CONTROL@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh6:
	adrp	x8, _INPUT_CSC_GRPH_MODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INPUT_CSC_GRPH_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_REG_SET_FIELD
	ldr	w1, [x22]
Lloh9:
	adrp	x8, _INPUT_CSC_OVL_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INPUT_CSC_OVL_MODE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_REG_SET_FIELD
	mov	x1, x0
	ldr	x8, [x21]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_WREG32
Lloh12:
	adrp	x21, _mmPRESCALE_GRPH_CONTROL@GOTPAGE
Lloh13:
	ldr	x21, [x21, _mmPRESCALE_GRPH_CONTROL@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_RREG32
Lloh14:
	adrp	x8, _PRESCALE_GRPH_CONTROL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PRESCALE_GRPH_CONTROL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _GRPH_PRESCALE_BYPASS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GRPH_PRESCALE_BYPASS@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_REG_SET_FIELD
	mov	x1, x0
	ldr	x8, [x21]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_WREG32
Lloh20:
	adrp	x21, _mmPRESCALE_OVL_CONTROL@GOTPAGE
Lloh21:
	ldr	x21, [x21, _mmPRESCALE_OVL_CONTROL@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_RREG32
Lloh22:
	adrp	x8, _PRESCALE_OVL_CONTROL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PRESCALE_OVL_CONTROL@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _OVL_PRESCALE_BYPASS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _OVL_PRESCALE_BYPASS@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_REG_SET_FIELD
	mov	x1, x0
	ldr	x8, [x21]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_WREG32
Lloh28:
	adrp	x21, _mmINPUT_GAMMA_CONTROL@GOTPAGE
Lloh29:
	ldr	x21, [x21, _mmINPUT_GAMMA_CONTROL@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_RREG32
Lloh30:
	adrp	x22, _INPUT_GAMMA_CONTROL@GOTPAGE
Lloh31:
	ldr	x22, [x22, _INPUT_GAMMA_CONTROL@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh32:
	adrp	x8, _GRPH_INPUT_GAMMA_MODE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _GRPH_INPUT_GAMMA_MODE@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_REG_SET_FIELD
	ldr	w1, [x22]
Lloh35:
	adrp	x8, _OVL_INPUT_GAMMA_MODE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _OVL_INPUT_GAMMA_MODE@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_REG_SET_FIELD
	mov	x1, x0
	ldr	x8, [x21]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_WREG32
Lloh38:
	adrp	x8, _mmDC_LUT_CONTROL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _mmDC_LUT_CONTROL@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
Lloh41:
	adrp	x8, _mmDC_LUT_BLACK_OFFSET_BLUE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _mmDC_LUT_BLACK_OFFSET_BLUE@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
Lloh44:
	adrp	x8, _mmDC_LUT_BLACK_OFFSET_GREEN@GOTPAGE
Lloh45:
	ldr	x8, [x8, _mmDC_LUT_BLACK_OFFSET_GREEN@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
Lloh47:
	adrp	x8, _mmDC_LUT_BLACK_OFFSET_RED@GOTPAGE
Lloh48:
	ldr	x8, [x8, _mmDC_LUT_BLACK_OFFSET_RED@GOTPAGEOFF]
Lloh49:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
Lloh50:
	adrp	x8, _mmDC_LUT_WHITE_OFFSET_BLUE@GOTPAGE
Lloh51:
	ldr	x8, [x8, _mmDC_LUT_WHITE_OFFSET_BLUE@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x0, x9, x8
	mov	w1, #65535
	bl	_WREG32
Lloh53:
	adrp	x8, _mmDC_LUT_WHITE_OFFSET_GREEN@GOTPAGE
Lloh54:
	ldr	x8, [x8, _mmDC_LUT_WHITE_OFFSET_GREEN@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x0, x9, x8
	mov	w1, #65535
	bl	_WREG32
Lloh56:
	adrp	x8, _mmDC_LUT_WHITE_OFFSET_RED@GOTPAGE
Lloh57:
	ldr	x8, [x8, _mmDC_LUT_WHITE_OFFSET_RED@GOTPAGEOFF]
Lloh58:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x0, x9, x8
	mov	w1, #65535
	bl	_WREG32
Lloh59:
	adrp	x8, _mmDC_LUT_RW_MODE@GOTPAGE
Lloh60:
	ldr	x8, [x8, _mmDC_LUT_RW_MODE@GOTPAGEOFF]
Lloh61:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
Lloh62:
	adrp	x8, _mmDC_LUT_WRITE_EN_MASK@GOTPAGE
Lloh63:
	ldr	x8, [x8, _mmDC_LUT_WRITE_EN_MASK@GOTPAGEOFF]
Lloh64:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x0, x9, x8
	mov	w1, #7
	bl	_WREG32
Lloh65:
	adrp	x8, _mmDC_LUT_RW_INDEX@GOTPAGE
Lloh66:
	ldr	x8, [x8, _mmDC_LUT_RW_INDEX@GOTPAGEOFF]
Lloh67:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
	mov	x21, #0
	ldr	x22, [x20, #8]
	ldrsw	x8, [x20]
	lsl	x8, x8, #2
	add	x20, x22, x8
	add	x23, x20, x8
Lloh68:
	adrp	x24, _mmDC_LUT_30_COLOR@GOTPAGE
Lloh69:
	ldr	x24, [x24, _mmDC_LUT_30_COLOR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x9, [x19]
	add	x0, x9, x8
	ldr	w8, [x22, x21]
	lsl	w8, w8, #14
	ldr	w9, [x20, x21]
	and	w8, w8, #0x3ff00000
	lsr	w9, w9, #6
	bfi	w8, w9, #10, #10
	ldr	w9, [x23, x21]
	orr	w1, w8, w9, asr #6
	bl	_WREG32
	add	x21, x21, #4
	cmp	w21, #1024
	b.ne	LBB0_1
; %bb.2:
Lloh70:
	adrp	x20, _mmDEGAMMA_CONTROL@GOTPAGE
Lloh71:
	ldr	x20, [x20, _mmDEGAMMA_CONTROL@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_RREG32
Lloh72:
	adrp	x21, _DEGAMMA_CONTROL@GOTPAGE
Lloh73:
	ldr	x21, [x21, _DEGAMMA_CONTROL@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh74:
	adrp	x8, _GRPH_DEGAMMA_MODE@GOTPAGE
Lloh75:
	ldr	x8, [x8, _GRPH_DEGAMMA_MODE@GOTPAGEOFF]
Lloh76:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_REG_SET_FIELD
	ldr	w1, [x21]
Lloh77:
	adrp	x8, _OVL_DEGAMMA_MODE@GOTPAGE
Lloh78:
	ldr	x8, [x8, _OVL_DEGAMMA_MODE@GOTPAGEOFF]
Lloh79:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_REG_SET_FIELD
	ldr	w1, [x21]
Lloh80:
	adrp	x8, _CURSOR_DEGAMMA_MODE@GOTPAGE
Lloh81:
	ldr	x8, [x8, _CURSOR_DEGAMMA_MODE@GOTPAGEOFF]
Lloh82:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_REG_SET_FIELD
	mov	x1, x0
	ldr	x8, [x20]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_WREG32
Lloh83:
	adrp	x20, _mmGAMUT_REMAP_CONTROL@GOTPAGE
Lloh84:
	ldr	x20, [x20, _mmGAMUT_REMAP_CONTROL@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_RREG32
Lloh85:
	adrp	x21, _GAMUT_REMAP_CONTROL@GOTPAGE
Lloh86:
	ldr	x21, [x21, _GAMUT_REMAP_CONTROL@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh87:
	adrp	x8, _GRPH_GAMUT_REMAP_MODE@GOTPAGE
Lloh88:
	ldr	x8, [x8, _GRPH_GAMUT_REMAP_MODE@GOTPAGEOFF]
Lloh89:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_REG_SET_FIELD
	ldr	w1, [x21]
Lloh90:
	adrp	x8, _OVL_GAMUT_REMAP_MODE@GOTPAGE
Lloh91:
	ldr	x8, [x8, _OVL_GAMUT_REMAP_MODE@GOTPAGEOFF]
Lloh92:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_REG_SET_FIELD
	mov	x1, x0
	ldr	x8, [x20]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_WREG32
Lloh93:
	adrp	x20, _mmREGAMMA_CONTROL@GOTPAGE
Lloh94:
	ldr	x20, [x20, _mmREGAMMA_CONTROL@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_RREG32
Lloh95:
	adrp	x21, _REGAMMA_CONTROL@GOTPAGE
Lloh96:
	ldr	x21, [x21, _REGAMMA_CONTROL@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh97:
	adrp	x8, _GRPH_REGAMMA_MODE@GOTPAGE
Lloh98:
	ldr	x8, [x8, _GRPH_REGAMMA_MODE@GOTPAGEOFF]
Lloh99:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_REG_SET_FIELD
	ldr	w1, [x21]
Lloh100:
	adrp	x8, _OVL_REGAMMA_MODE@GOTPAGE
Lloh101:
	ldr	x8, [x8, _OVL_REGAMMA_MODE@GOTPAGEOFF]
Lloh102:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_REG_SET_FIELD
	mov	x1, x0
	ldr	x8, [x20]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_WREG32
Lloh103:
	adrp	x20, _mmOUTPUT_CSC_CONTROL@GOTPAGE
Lloh104:
	ldr	x20, [x20, _mmOUTPUT_CSC_CONTROL@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_RREG32
Lloh105:
	adrp	x21, _OUTPUT_CSC_CONTROL@GOTPAGE
Lloh106:
	ldr	x21, [x21, _OUTPUT_CSC_CONTROL@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh107:
	adrp	x8, _OUTPUT_CSC_GRPH_MODE@GOTPAGE
Lloh108:
	ldr	x8, [x8, _OUTPUT_CSC_GRPH_MODE@GOTPAGEOFF]
Lloh109:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_REG_SET_FIELD
	ldr	w1, [x21]
Lloh110:
	adrp	x8, _OUTPUT_CSC_OVL_MODE@GOTPAGE
Lloh111:
	ldr	x8, [x8, _OUTPUT_CSC_OVL_MODE@GOTPAGEOFF]
Lloh112:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_REG_SET_FIELD
	mov	x1, x0
	ldr	x8, [x20]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_WREG32
Lloh113:
	adrp	x8, _mmDENORM_CONTROL@GOTPAGE
Lloh114:
	ldr	x8, [x8, _mmDENORM_CONTROL@GOTPAGEOFF]
Lloh115:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
Lloh116:
	adrp	x20, _mmALPHA_CONTROL@GOTPAGE
Lloh117:
	ldr	x20, [x20, _mmALPHA_CONTROL@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_RREG32
Lloh118:
	adrp	x8, _ALPHA_CONTROL@GOTPAGE
Lloh119:
	ldr	x8, [x8, _ALPHA_CONTROL@GOTPAGEOFF]
Lloh120:
	ldr	w1, [x8]
Lloh121:
	adrp	x8, _CURSOR_ALPHA_BLND_ENA@GOTPAGE
Lloh122:
	ldr	x8, [x8, _CURSOR_ALPHA_BLND_ENA@GOTPAGEOFF]
Lloh123:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_REG_SET_FIELD
	mov	x1, x0
	ldr	x8, [x20]
	ldr	x9, [x19]
	add	x0, x9, x8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_WREG32
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh121, Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpLdrGot	Lloh116, Lloh117
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGot	Lloh105, Lloh106
	.loh AdrpLdrGot	Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGot	Lloh95, Lloh96
	.loh AdrpLdrGot	Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpLdrGot	Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh70, Lloh71
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d\n"

	.comm	_mmINPUT_CSC_CONTROL,8,3        ; @mmINPUT_CSC_CONTROL
	.comm	_INPUT_CSC_CONTROL,4,2          ; @INPUT_CSC_CONTROL
	.comm	_INPUT_CSC_GRPH_MODE,4,2        ; @INPUT_CSC_GRPH_MODE
	.comm	_INPUT_CSC_OVL_MODE,4,2         ; @INPUT_CSC_OVL_MODE
	.comm	_mmPRESCALE_GRPH_CONTROL,8,3    ; @mmPRESCALE_GRPH_CONTROL
	.comm	_PRESCALE_GRPH_CONTROL,4,2      ; @PRESCALE_GRPH_CONTROL
	.comm	_GRPH_PRESCALE_BYPASS,4,2       ; @GRPH_PRESCALE_BYPASS
	.comm	_mmPRESCALE_OVL_CONTROL,8,3     ; @mmPRESCALE_OVL_CONTROL
	.comm	_PRESCALE_OVL_CONTROL,4,2       ; @PRESCALE_OVL_CONTROL
	.comm	_OVL_PRESCALE_BYPASS,4,2        ; @OVL_PRESCALE_BYPASS
	.comm	_mmINPUT_GAMMA_CONTROL,8,3      ; @mmINPUT_GAMMA_CONTROL
	.comm	_INPUT_GAMMA_CONTROL,4,2        ; @INPUT_GAMMA_CONTROL
	.comm	_GRPH_INPUT_GAMMA_MODE,4,2      ; @GRPH_INPUT_GAMMA_MODE
	.comm	_OVL_INPUT_GAMMA_MODE,4,2       ; @OVL_INPUT_GAMMA_MODE
	.comm	_mmDC_LUT_CONTROL,8,3           ; @mmDC_LUT_CONTROL
	.comm	_mmDC_LUT_BLACK_OFFSET_BLUE,8,3 ; @mmDC_LUT_BLACK_OFFSET_BLUE
	.comm	_mmDC_LUT_BLACK_OFFSET_GREEN,8,3 ; @mmDC_LUT_BLACK_OFFSET_GREEN
	.comm	_mmDC_LUT_BLACK_OFFSET_RED,8,3  ; @mmDC_LUT_BLACK_OFFSET_RED
	.comm	_mmDC_LUT_WHITE_OFFSET_BLUE,8,3 ; @mmDC_LUT_WHITE_OFFSET_BLUE
	.comm	_mmDC_LUT_WHITE_OFFSET_GREEN,8,3 ; @mmDC_LUT_WHITE_OFFSET_GREEN
	.comm	_mmDC_LUT_WHITE_OFFSET_RED,8,3  ; @mmDC_LUT_WHITE_OFFSET_RED
	.comm	_mmDC_LUT_RW_MODE,8,3           ; @mmDC_LUT_RW_MODE
	.comm	_mmDC_LUT_WRITE_EN_MASK,8,3     ; @mmDC_LUT_WRITE_EN_MASK
	.comm	_mmDC_LUT_RW_INDEX,8,3          ; @mmDC_LUT_RW_INDEX
	.comm	_mmDC_LUT_30_COLOR,8,3          ; @mmDC_LUT_30_COLOR
	.comm	_mmDEGAMMA_CONTROL,8,3          ; @mmDEGAMMA_CONTROL
	.comm	_DEGAMMA_CONTROL,4,2            ; @DEGAMMA_CONTROL
	.comm	_GRPH_DEGAMMA_MODE,4,2          ; @GRPH_DEGAMMA_MODE
	.comm	_OVL_DEGAMMA_MODE,4,2           ; @OVL_DEGAMMA_MODE
	.comm	_CURSOR_DEGAMMA_MODE,4,2        ; @CURSOR_DEGAMMA_MODE
	.comm	_mmGAMUT_REMAP_CONTROL,8,3      ; @mmGAMUT_REMAP_CONTROL
	.comm	_GAMUT_REMAP_CONTROL,4,2        ; @GAMUT_REMAP_CONTROL
	.comm	_GRPH_GAMUT_REMAP_MODE,4,2      ; @GRPH_GAMUT_REMAP_MODE
	.comm	_OVL_GAMUT_REMAP_MODE,4,2       ; @OVL_GAMUT_REMAP_MODE
	.comm	_mmREGAMMA_CONTROL,8,3          ; @mmREGAMMA_CONTROL
	.comm	_REGAMMA_CONTROL,4,2            ; @REGAMMA_CONTROL
	.comm	_GRPH_REGAMMA_MODE,4,2          ; @GRPH_REGAMMA_MODE
	.comm	_OVL_REGAMMA_MODE,4,2           ; @OVL_REGAMMA_MODE
	.comm	_mmOUTPUT_CSC_CONTROL,8,3       ; @mmOUTPUT_CSC_CONTROL
	.comm	_OUTPUT_CSC_CONTROL,4,2         ; @OUTPUT_CSC_CONTROL
	.comm	_OUTPUT_CSC_GRPH_MODE,4,2       ; @OUTPUT_CSC_GRPH_MODE
	.comm	_OUTPUT_CSC_OVL_MODE,4,2        ; @OUTPUT_CSC_OVL_MODE
	.comm	_mmDENORM_CONTROL,8,3           ; @mmDENORM_CONTROL
	.comm	_mmALPHA_CONTROL,8,3            ; @mmALPHA_CONTROL
	.comm	_ALPHA_CONTROL,4,2              ; @ALPHA_CONTROL
	.comm	_CURSOR_ALPHA_BLND_ENA,4,2      ; @CURSOR_ALPHA_BLND_ENA
	.no_dead_strip	_dce_v10_0_crtc_load_lut
.subsections_via_symbols
