	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce4_crtc_load_lut
_dce4_crtc_load_lut:                    ## @dce4_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_to_radeon_crtc
	movq	%rax, %r14
	movl	32(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movq	_EVERGREEN_DC_LUT_CONTROL@GOTPCREL(%rip), %rax
	movq	24(%r14), %rdi
	addq	(%rax), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_WREG32
	movq	_EVERGREEN_DC_LUT_BLACK_OFFSET_BLUE@GOTPCREL(%rip), %rax
	movq	24(%r14), %rdi
	addq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_EVERGREEN_DC_LUT_BLACK_OFFSET_GREEN@GOTPCREL(%rip), %rax
	movq	24(%r14), %rdi
	addq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_EVERGREEN_DC_LUT_BLACK_OFFSET_RED@GOTPCREL(%rip), %rax
	movq	24(%r14), %rdi
	addq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_EVERGREEN_DC_LUT_WHITE_OFFSET_BLUE@GOTPCREL(%rip), %rax
	movq	24(%r14), %rdi
	addq	(%rax), %rdi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_WREG32
	movq	_EVERGREEN_DC_LUT_WHITE_OFFSET_GREEN@GOTPCREL(%rip), %rax
	movq	24(%r14), %rdi
	addq	(%rax), %rdi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_WREG32
	movq	_EVERGREEN_DC_LUT_WHITE_OFFSET_RED@GOTPCREL(%rip), %rax
	movq	24(%r14), %rdi
	addq	(%rax), %rdi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_WREG32
	movq	_EVERGREEN_DC_LUT_RW_MODE@GOTPCREL(%rip), %rax
	movq	24(%r14), %rdi
	addq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_EVERGREEN_DC_LUT_WRITE_EN_MASK@GOTPCREL(%rip), %rax
	movq	24(%r14), %rdi
	addq	(%rax), %rdi
	movl	$7, %esi
	callq	_WREG32
	movq	_EVERGREEN_DC_LUT_RW_INDEX@GOTPCREL(%rip), %rax
	movq	24(%r14), %rdi
	addq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_EVERGREEN_DC_LUT_30_COLOR@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rdi
	addq	(%r15), %rdi
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movl	(%rax,%rbx,4), %eax
	shll	$20, %eax
	movl	(%rcx,%rbx,4), %esi
	shll	$10, %esi
	orl	%eax, %esi
	movq	16(%r14), %rax
	orl	(%rax,%rbx,4), %esi
	callq	_WREG32
	incq	%rbx
	cmpq	$256, %rbx                      ## imm = 0x100
	jne	LBB0_1
## %bb.2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d\n"

	.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
	.no_dead_strip	_dce4_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 dce4_crtc_load_lut
_dce4_crtc_load_lut:                    ; @dce4_crtc_load_lut
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_to_radeon_crtc
	mov	x19, x0
	ldr	w1, [x0, #32]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh2:
	adrp	x8, _EVERGREEN_DC_LUT_CONTROL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EVERGREEN_DC_LUT_CONTROL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x19, #24]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
Lloh5:
	adrp	x8, _EVERGREEN_DC_LUT_BLACK_OFFSET_BLUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EVERGREEN_DC_LUT_BLACK_OFFSET_BLUE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x19, #24]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
Lloh8:
	adrp	x8, _EVERGREEN_DC_LUT_BLACK_OFFSET_GREEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EVERGREEN_DC_LUT_BLACK_OFFSET_GREEN@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [x19, #24]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
Lloh11:
	adrp	x8, _EVERGREEN_DC_LUT_BLACK_OFFSET_RED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EVERGREEN_DC_LUT_BLACK_OFFSET_RED@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x9, [x19, #24]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
Lloh14:
	adrp	x8, _EVERGREEN_DC_LUT_WHITE_OFFSET_BLUE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EVERGREEN_DC_LUT_WHITE_OFFSET_BLUE@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x9, [x19, #24]
	add	x0, x9, x8
	mov	w1, #65535
	bl	_WREG32
Lloh17:
	adrp	x8, _EVERGREEN_DC_LUT_WHITE_OFFSET_GREEN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EVERGREEN_DC_LUT_WHITE_OFFSET_GREEN@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x9, [x19, #24]
	add	x0, x9, x8
	mov	w1, #65535
	bl	_WREG32
Lloh20:
	adrp	x8, _EVERGREEN_DC_LUT_WHITE_OFFSET_RED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EVERGREEN_DC_LUT_WHITE_OFFSET_RED@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	x9, [x19, #24]
	add	x0, x9, x8
	mov	w1, #65535
	bl	_WREG32
Lloh23:
	adrp	x8, _EVERGREEN_DC_LUT_RW_MODE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EVERGREEN_DC_LUT_RW_MODE@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	ldr	x9, [x19, #24]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
Lloh26:
	adrp	x8, _EVERGREEN_DC_LUT_WRITE_EN_MASK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EVERGREEN_DC_LUT_WRITE_EN_MASK@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	ldr	x9, [x19, #24]
	add	x0, x9, x8
	mov	w1, #7
	bl	_WREG32
Lloh29:
	adrp	x8, _EVERGREEN_DC_LUT_RW_INDEX@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EVERGREEN_DC_LUT_RW_INDEX@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	ldr	x9, [x19, #24]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
	mov	x20, #0
Lloh32:
	adrp	x21, _EVERGREEN_DC_LUT_30_COLOR@GOTPAGE
Lloh33:
	ldr	x21, [x21, _EVERGREEN_DC_LUT_30_COLOR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldp	x9, x10, [x19]
	ldr	w9, [x9, x20]
	ldr	w10, [x10, x20]
	ldp	x12, x11, [x19, #16]
	add	x0, x11, x8
	lsl	w8, w10, #10
	orr	w8, w8, w9, lsl #20
	ldr	w9, [x12, x20]
	orr	w1, w8, w9
	bl	_WREG32
	add	x20, x20, #4
	cmp	x20, #1024
	b.ne	LBB0_1
; %bb.2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d\n"

	.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
	.no_dead_strip	_dce4_crtc_load_lut
.subsections_via_symbols
