	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce4_hdmi_set_color_depth      ## -- Begin function dce4_hdmi_set_color_depth
	.p2align	4, 0x90
_dce4_hdmi_set_color_depth:             ## @dce4_hdmi_set_color_depth
	.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
	movl	%edx, %r12d
	movq	%rsi, %r14
	callq	_radeon_get_connector_for_encoder
	movq	%rax, %r15
	movq	_HDMI_CONTROL@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	%r14, %rdi
	callq	_RREG32
	movq	_HDMI_DEEP_COLOR_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_HDMI_DEEP_COLOR_DEPTH_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	%ecx, %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	%r12d, %eax
	rorl	%eax
	cmpl	$5, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$6, %eax
	jne	LBB0_2
## %bb.4:
	orl	%ecx, %ebx
	movq	_HDMI_36BIT_DEEP_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_HDMI_DEEP_COLOR_DEPTH
	orl	%eax, %ebx
	movl	(%r15), %esi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_5
LBB0_3:
	orl	%ecx, %ebx
	movq	_HDMI_30BIT_DEEP_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_HDMI_DEEP_COLOR_DEPTH
	orl	%eax, %ebx
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
LBB0_5:
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	jmp	LBB0_6
LBB0_2:
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_DRM_DEBUG
LBB0_6:
	addq	(%r13), %r14
	movq	%r14, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_CONTROL,8,3               ## @HDMI_CONTROL
	.comm	_HDMI_DEEP_COLOR_ENABLE,4,2     ## @HDMI_DEEP_COLOR_ENABLE
	.comm	_HDMI_DEEP_COLOR_DEPTH_MASK,4,2 ## @HDMI_DEEP_COLOR_DEPTH_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Disabling hdmi deep color for %d bpc.\n"

	.comm	_HDMI_30BIT_DEEP_COLOR,4,2      ## @HDMI_30BIT_DEEP_COLOR
L_.str.1:                               ## @.str.1
	.asciz	"%s: Enabling hdmi deep color 30 for 10 bpc.\n"

	.comm	_HDMI_36BIT_DEEP_COLOR,4,2      ## @HDMI_36BIT_DEEP_COLOR
L_.str.2:                               ## @.str.2
	.asciz	"%s: Enabling hdmi deep color 36 for 12 bpc.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce4_hdmi_set_color_depth      ; -- Begin function dce4_hdmi_set_color_depth
	.p2align	2
_dce4_hdmi_set_color_depth:             ; @dce4_hdmi_set_color_depth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x2
	mov	x19, x1
	bl	_radeon_get_connector_for_encoder
	mov	x21, x0
Lloh0:
	adrp	x23, _HDMI_CONTROL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HDMI_CONTROL@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x0, x8, x19
	bl	_RREG32
Lloh2:
	adrp	x8, _HDMI_DEEP_COLOR_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HDMI_DEEP_COLOR_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _HDMI_DEEP_COLOR_DEPTH_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HDMI_DEEP_COLOR_DEPTH_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w9, w9, w8
	bic	w20, w0, w9
	ror	w9, w22, #1
	cmp	w9, #5
	b.eq	LBB0_3
; %bb.1:
	cmp	w9, #6
	b.ne	LBB0_4
; %bb.2:
	orr	w20, w20, w8
Lloh8:
	adrp	x8, _HDMI_36BIT_DEEP_COLOR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HDMI_36BIT_DEEP_COLOR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_HDMI_DEEP_COLOR_DEPTH
	orr	w20, w20, w0
	ldr	w1, [x21]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:
	orr	w20, w20, w8
Lloh13:
	adrp	x8, _HDMI_30BIT_DEEP_COLOR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HDMI_30BIT_DEEP_COLOR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_HDMI_DEEP_COLOR_DEPTH
	orr	w20, w20, w0
	ldr	w1, [x21]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
	ldr	w1, [x21]
	str	x22, [sp]
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
LBB0_5:
	bl	_DRM_DEBUG
	ldr	x8, [x23]
	add	x0, x8, x19
	mov	x1, x20
	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
	add	sp, sp, #80
	b	_WREG32
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_CONTROL,8,3               ; @HDMI_CONTROL
	.comm	_HDMI_DEEP_COLOR_ENABLE,4,2     ; @HDMI_DEEP_COLOR_ENABLE
	.comm	_HDMI_DEEP_COLOR_DEPTH_MASK,4,2 ; @HDMI_DEEP_COLOR_DEPTH_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Disabling hdmi deep color for %d bpc.\n"

	.comm	_HDMI_30BIT_DEEP_COLOR,4,2      ; @HDMI_30BIT_DEEP_COLOR
l_.str.1:                               ; @.str.1
	.asciz	"%s: Enabling hdmi deep color 30 for 10 bpc.\n"

	.comm	_HDMI_36BIT_DEEP_COLOR,4,2      ; @HDMI_36BIT_DEEP_COLOR
l_.str.2:                               ; @.str.2
	.asciz	"%s: Enabling hdmi deep color 36 for 12 bpc.\n"

.subsections_via_symbols
