	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_hdmi_compute_config      ## -- Begin function intel_hdmi_compute_config
	.p2align	4, 0x90
_intel_hdmi_compute_config:             ## @intel_hdmi_compute_config
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_enc_to_intel_hdmi
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edi
	callq	_to_i915
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	8(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_to_intel_digital_connector_state
	movl	52(%rbx), %r9d
	movl	%r9d, -56(%rbp)
	leal	(%r9,%r9,4), %ecx
	leal	(%r9,%r9,4), %r15d
	addl	$3, %r15d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r15d
	sarl	$2, %r15d
	movl	%r15d, -52(%rbp)
	leal	(%r9,%r9,2), %ecx
	movl	%ecx, %r14d
	shrl	$31, %r14d
	addl	%ecx, %r14d
	sarl	%r14d
	movl	%r14d, -48(%rbp)
	movq	(%rax), %rcx
	movq	_HDMI_AUDIO_OFF_DVI@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, %rcx
	sete	%r8b
	movl	56(%rbx), %edi
	movq	_DRM_MODE_FLAG_DBLSCAN@GOTPCREL(%rip), %rsi
	testl	%edi, (%rsi)
	je	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_52
LBB0_2:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	leaq	52(%rbx), %r13
	movq	_INTEL_OUTPUT_FORMAT_RGB@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 48(%rbx)
	cmpq	%rdx, %rcx
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movb	%r8b, -41(%rbp)                 ## 1-byte Spill
	jne	LBB0_3
## %bb.9:
	movq	%rbx, %r12
	movl	$0, (%rbx)
	jmp	LBB0_7
LBB0_3:
	xorl	%ecx, %ecx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	cmpq	$0, 8(%rdx)
	setne	%cl
	movl	%ecx, (%rbx)
	je	LBB0_6
## %bb.4:
	movq	%rbx, %r12
	movl	$1, 4(%rbx)
	movq	8(%rax), %rcx
	movq	_INTEL_BROADCAST_RGB_AUTO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.5:
	movq	%r13, %rdi
	movq	%r9, %rbx
	callq	_drm_default_rgb_quant_range
	movq	%rbx, %r9
	movq	_HDMI_QUANTIZATION_RANGE_LIMITED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movl	56(%r12), %edi
	jmp	LBB0_11
LBB0_6:
	movq	%rbx, %r12
LBB0_7:
	movq	8(%rax), %rcx
	movq	_INTEL_BROADCAST_RGB_AUTO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.8:
	xorl	%ecx, %ecx
	jmp	LBB0_11
LBB0_10:
	movq	_INTEL_BROADCAST_RGB_LIMITED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	sete	%cl
LBB0_11:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movzbl	%cl, %ecx
	movl	%ecx, 8(%r12)
	movq	_DRM_MODE_FLAG_DBLCLK@GOTPCREL(%rip), %rcx
	testl	%edi, (%rcx)
	je	LBB0_13
## %bb.12:
	movl	$2, 12(%r12)
	addl	%r9d, %r9d
	movl	%r9d, -56(%rbp)
	addl	%r15d, %r15d
	movl	%r15d, -52(%rbp)
	addl	%r14d, %r14d
	movl	%r14d, -48(%rbp)
LBB0_13:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_drm_mode_is_420_only
	testq	%rax, %rax
	movq	%r12, %r15
	je	LBB0_16
## %bb.14:
	leaq	-48(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	leaq	-56(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_intel_hdmi_ycbcr420_config
	testl	%eax, %eax
	je	LBB0_15
LBB0_16:
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdi
	callq	_HAS_PCH_SPLIT
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movq	%r13, %rdi
	callq	_HAS_DDI
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	movl	$1, 16(%r15)
LBB0_19:
	cmpl	$0, (%r15)
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	$0, %r12d
	movb	-41(%rbp), %dl                  ## 1-byte Reload
	je	LBB0_24
## %bb.20:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	movq	_HDMI_AUDIO_AUTO@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_22
## %bb.21:
	movl	(%r14), %eax
	jmp	LBB0_23
LBB0_22:
	movq	_HDMI_AUDIO_ON@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rcx
	sete	%al
LBB0_23:
	movl	%eax, 20(%r15)
LBB0_24:
	movb	%dl, %r12b
	movq	%r15, %rdi
	movl	$12, %esi
	callq	_hdmi_deep_color_possible
	testq	%rax, %rax
	je	LBB0_27
## %bb.25:
	movl	-48(%rbp), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	movl	%r12d, %ecx
	callq	_hdmi_port_clock_valid
	movq	_MODE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_27
## %bb.26:
	movl	$36, %r14d
	leaq	-48(%rbp), %rbx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_31
LBB0_27:
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_hdmi_deep_color_possible
	testq	%rax, %rax
	je	LBB0_30
## %bb.28:
	movl	-52(%rbp), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	movl	%r12d, %ecx
	callq	_hdmi_port_clock_valid
	movq	_MODE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_30
## %bb.29:
	movl	$30, %r14d
	leaq	-52(%rbp), %rbx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_31
LBB0_30:
	movl	$24, %r14d
	leaq	-56(%rbp), %rbx
	leaq	L_.str.3(%rip), %rdi
LBB0_31:
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	(%rbx), %esi
	movl	%esi, 24(%r15)
	cmpl	$0, 44(%r15)
	jne	LBB0_33
## %bb.32:
	leaq	L_.str.4(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	%r14d, 28(%r15)
	movl	24(%r15), %esi
LBB0_33:
	xorl	%ebx, %ebx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	movl	%r12d, %ecx
	callq	_hdmi_port_clock_valid
	movq	_MODE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_34
## %bb.35:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %eax
	movl	%eax, 60(%r15)
	movl	$4, 32(%r15)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_42
## %bb.36:
	movq	%r13, %rdi
	callq	_INTEL_GEN
	cmpl	$9, %eax
	jg	LBB0_38
## %bb.37:
	movq	%r13, %rdi
	callq	_IS_GEMINILAKE
	testq	%rax, %rax
	je	LBB0_42
LBB0_38:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_40
## %bb.39:
	movl	$1, 36(%r15)
LBB0_40:
	cmpl	$340001, 24(%r15)               ## imm = 0x53021
	jl	LBB0_42
## %bb.41:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 36(%r15)
LBB0_42:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_intel_hdmi_compute_gcp_infoframe
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_intel_hdmi_compute_avi_infoframe
	testl	%eax, %eax
	je	LBB0_43
## %bb.44:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_intel_hdmi_compute_spd_infoframe
	testl	%eax, %eax
	je	LBB0_45
## %bb.46:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_intel_hdmi_compute_hdmi_infoframe
	testl	%eax, %eax
	je	LBB0_47
## %bb.48:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_intel_hdmi_compute_drm_infoframe
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_53
## %bb.49:
	leaq	L_.str.9(%rip), %rdi
	jmp	LBB0_50
LBB0_34:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_51
LBB0_15:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	jmp	LBB0_1
LBB0_43:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_50
LBB0_45:
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_50
LBB0_47:
	leaq	L_.str.8(%rip), %rdi
LBB0_50:
	xorl	%ebx, %ebx
LBB0_51:
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_52:
	subl	(%rax), %ebx
LBB0_53:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_AUDIO_OFF_DVI,8,3         ## @HDMI_AUDIO_OFF_DVI
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ## @DRM_MODE_FLAG_DBLSCAN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_INTEL_OUTPUT_FORMAT_RGB,4,2    ## @INTEL_OUTPUT_FORMAT_RGB
	.comm	_INTEL_BROADCAST_RGB_AUTO,8,3   ## @INTEL_BROADCAST_RGB_AUTO
	.comm	_HDMI_QUANTIZATION_RANGE_LIMITED,8,3 ## @HDMI_QUANTIZATION_RANGE_LIMITED
	.comm	_INTEL_BROADCAST_RGB_LIMITED,8,3 ## @INTEL_BROADCAST_RGB_LIMITED
	.comm	_DRM_MODE_FLAG_DBLCLK,4,2       ## @DRM_MODE_FLAG_DBLCLK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't support YCBCR420 output\n"

	.comm	_HDMI_AUDIO_AUTO,8,3            ## @HDMI_AUDIO_AUTO
	.comm	_HDMI_AUDIO_ON,8,3              ## @HDMI_AUDIO_ON
	.comm	_MODE_OK,8,3                    ## @MODE_OK
L_.str.1:                               ## @.str.1
	.asciz	"picking bpc to 12 for HDMI output\n"

L_.str.2:                               ## @.str.2
	.asciz	"picking bpc to 10 for HDMI output\n"

L_.str.3:                               ## @.str.3
	.asciz	"picking bpc to 8 for HDMI output\n"

L_.str.4:                               ## @.str.4
	.asciz	"forcing pipe bpp to %i for HDMI\n"

L_.str.5:                               ## @.str.5
	.asciz	"unsupported HDMI clock, rejecting mode\n"

L_.str.6:                               ## @.str.6
	.asciz	"bad AVI infoframe\n"

L_.str.7:                               ## @.str.7
	.asciz	"bad SPD infoframe\n"

L_.str.8:                               ## @.str.8
	.asciz	"bad HDMI infoframe\n"

L_.str.9:                               ## @.str.9
	.asciz	"bad DRM infoframe\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_hdmi_compute_config      ; -- Begin function intel_hdmi_compute_config
	.p2align	2
_intel_hdmi_compute_config:             ; @intel_hdmi_compute_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x26, x2
	mov	x20, x1
	mov	x19, x0
	bl	_enc_to_intel_hdmi
	mov	x21, x0
	ldr	w0, [x19]
	bl	_to_i915
	mov	x24, x0
	ldr	x25, [x26, #8]
	mov	x0, x26
	bl	_to_intel_digital_connector_state
	mov	x27, x20
	ldr	w28, [x27, #52]!
	add	w8, w28, w28, lsl #2
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w23, w8, #2
	stp	w23, w28, [sp, #24]
	add	w8, w28, w28, lsl #1
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w22, w8, #1
	str	w22, [sp, #20]
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _HDMI_AUDIO_OFF_DVI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDMI_AUDIO_OFF_DVI@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
	cmp	x9, x10
	cset	w12, eq
	ldr	w8, [x27, #4]
Lloh3:
	adrp	x11, _DRM_MODE_FLAG_DBLSCAN@GOTPAGE
Lloh4:
	ldr	x11, [x11, _DRM_MODE_FLAG_DBLSCAN@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	tst	w11, w8
	b.ne	LBB0_50
; %bb.1:
	str	w12, [sp, #16]                  ; 4-byte Folded Spill
	str	x26, [sp, #8]                   ; 8-byte Folded Spill
Lloh6:
	adrp	x11, _INTEL_OUTPUT_FORMAT_RGB@GOTPAGE
Lloh7:
	ldr	x11, [x11, _INTEL_OUTPUT_FORMAT_RGB@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	str	w11, [x20, #48]
	cmp	x9, x10
	mov	x26, x0
	b.ne	LBB0_3
; %bb.2:
	str	wzr, [x20]
	ldr	x10, [x0, #8]
Lloh9:
	adrp	x11, _INTEL_BROADCAST_RGB_AUTO@GOTPAGE
Lloh10:
	ldr	x11, [x11, _INTEL_BROADCAST_RGB_AUTO@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	x10, x11
	b.eq	LBB0_7
	b	LBB0_8
LBB0_3:
	ldr	x9, [x21, #8]
	cmp	x9, #0
	cset	w10, ne
	str	w10, [x20]
	cbz	x9, LBB0_6
; %bb.4:
	mov	w9, #1
	str	w9, [x20, #4]
	ldr	x10, [x0, #8]
Lloh12:
	adrp	x9, _INTEL_BROADCAST_RGB_AUTO@GOTPAGE
Lloh13:
	ldr	x9, [x9, _INTEL_BROADCAST_RGB_AUTO@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x10, x9
	b.ne	LBB0_8
; %bb.5:
	mov	x0, x27
	bl	_drm_default_rgb_quant_range
Lloh15:
	adrp	x8, _HDMI_QUANTIZATION_RANGE_LIMITED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HDMI_QUANTIZATION_RANGE_LIMITED@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w9, eq
	ldr	w8, [x20, #56]
	b	LBB0_9
LBB0_6:
	ldr	x10, [x0, #8]
Lloh18:
	adrp	x9, _INTEL_BROADCAST_RGB_AUTO@GOTPAGE
Lloh19:
	ldr	x9, [x9, _INTEL_BROADCAST_RGB_AUTO@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x10, x9
	b.ne	LBB0_8
LBB0_7:
	mov	w9, #0
	b	LBB0_9
LBB0_8:
Lloh21:
	adrp	x9, _INTEL_BROADCAST_RGB_LIMITED@GOTPAGE
Lloh22:
	ldr	x9, [x9, _INTEL_BROADCAST_RGB_LIMITED@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x10, x9
	cset	w9, eq
LBB0_9:
	str	w9, [x20, #8]
Lloh24:
	adrp	x9, _DRM_MODE_FLAG_DBLCLK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _DRM_MODE_FLAG_DBLCLK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	mov	w8, #2
	str	w8, [x20, #12]
	lsl	w9, w28, #1
	lsl	w8, w23, #1
	stp	w8, w9, [sp, #24]
	lsl	w8, w22, #1
	str	w8, [sp, #20]
LBB0_11:
	mov	x28, x25
	mov	x0, x25
	mov	x1, x27
	bl	_drm_mode_is_420_only
	cbz	x0, LBB0_13
; %bb.12:
	add	x2, sp, #20
	add	x3, sp, #24
	add	x4, sp, #28
	mov	x0, x28
	mov	x1, x20
	bl	_intel_hdmi_ycbcr420_config
	cbz	w0, LBB0_44
LBB0_13:
	mov	x25, x24
	mov	x0, x24
	bl	_HAS_PCH_SPLIT
	cbz	x0, LBB0_16
; %bb.14:
	mov	x0, x25
	bl	_HAS_DDI
	cbnz	w0, LBB0_16
; %bb.15:
	mov	w8, #1
	str	w8, [x20, #16]
LBB0_16:
	ldr	w8, [x20]
	mov	x24, x21
	ldr	w21, [sp, #16]                  ; 4-byte Folded Reload
	cbz	w8, LBB0_21
; %bb.17:
	ldr	x8, [x26]
Lloh27:
	adrp	x9, _HDMI_AUDIO_AUTO@GOTPAGE
Lloh28:
	ldr	x9, [x9, _HDMI_AUDIO_AUTO@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.18:
	ldr	w8, [x24]
	b	LBB0_20
LBB0_19:
Lloh30:
	adrp	x9, _HDMI_AUDIO_ON@GOTPAGE
Lloh31:
	ldr	x9, [x9, _HDMI_AUDIO_ON@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
LBB0_20:
	str	w8, [x20, #20]
LBB0_21:
	mov	x0, x20
	mov	w1, #12
	bl	_hdmi_deep_color_possible
Lloh33:
	adrp	x22, _MODE_OK@GOTPAGE
Lloh34:
	ldr	x22, [x22, _MODE_OK@GOTPAGEOFF]
	cbz	x0, LBB0_24
; %bb.22:
	ldr	w1, [sp, #20]
	mov	x0, x24
	mov	w2, #1
	mov	x3, x21
	bl	_hdmi_port_clock_valid
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_24
; %bb.23:
	mov	w23, #36
	add	x26, sp, #20
Lloh35:
	adrp	x0, l_.str.1@PAGE
Lloh36:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_28
LBB0_24:
	mov	x0, x20
	mov	w1, #10
	bl	_hdmi_deep_color_possible
	cbz	x0, LBB0_27
; %bb.25:
	ldr	w1, [sp, #24]
	mov	x0, x24
	mov	w2, #1
	mov	x3, x21
	bl	_hdmi_port_clock_valid
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_27
; %bb.26:
	mov	w23, #30
	add	x26, sp, #24
Lloh37:
	adrp	x0, l_.str.2@PAGE
Lloh38:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_28
LBB0_27:
	mov	w23, #24
	add	x26, sp, #28
Lloh39:
	adrp	x0, l_.str.3@PAGE
Lloh40:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_28:
	bl	_DRM_DEBUG_KMS
	ldr	w1, [x26]
	str	w1, [x20, #24]
	ldr	w8, [x20, #44]
	cbnz	w8, LBB0_30
; %bb.29:
	str	x23, [sp]
Lloh41:
	adrp	x0, l_.str.4@PAGE
Lloh42:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DRM_DEBUG_KMS
	str	w23, [x20, #28]
	ldr	w1, [x20, #24]
LBB0_30:
	mov	x0, x24
	mov	w2, #0
	mov	x3, x21
	bl	_hdmi_port_clock_valid
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_43
; %bb.31:
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w8, [x22]
	str	w8, [x20, #60]
	mov	w8, #4
	str	w8, [x20, #32]
	ldr	x8, [x28, #8]
	cbz	x8, LBB0_38
; %bb.32:
	mov	x0, x25
	bl	_INTEL_GEN
	cmp	w0, #9
	b.gt	LBB0_34
; %bb.33:
	mov	x0, x25
	bl	_IS_GEMINILAKE
	cbz	x0, LBB0_38
LBB0_34:
	ldr	x8, [x28]
	cbz	x8, LBB0_36
; %bb.35:
	mov	w8, #1
	str	w8, [x20, #36]
LBB0_36:
	ldr	w8, [x20, #24]
	mov	w9, #12321
	movk	w9, #5, lsl #16
	cmp	w8, w9
	b.lt	LBB0_38
; %bb.37:
	movi.2s	v0, #1
	stur	d0, [x20, #36]
LBB0_38:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_intel_hdmi_compute_gcp_infoframe
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_intel_hdmi_compute_avi_infoframe
	cbz	w0, LBB0_45
; %bb.39:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_intel_hdmi_compute_spd_infoframe
	cbz	w0, LBB0_46
; %bb.40:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_intel_hdmi_compute_hdmi_infoframe
	cbz	w0, LBB0_47
; %bb.41:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_intel_hdmi_compute_drm_infoframe
	cbz	w0, LBB0_48
; %bb.42:
	mov	w0, #0
	b	LBB0_51
LBB0_43:
Lloh43:
	adrp	x0, l_.str.5@PAGE
Lloh44:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_49
LBB0_44:
Lloh45:
	adrp	x0, l_.str@PAGE
Lloh46:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_50
LBB0_45:
Lloh47:
	adrp	x0, l_.str.6@PAGE
Lloh48:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_49
LBB0_46:
Lloh49:
	adrp	x0, l_.str.7@PAGE
Lloh50:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_49
LBB0_47:
Lloh51:
	adrp	x0, l_.str.8@PAGE
Lloh52:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_49
LBB0_48:
Lloh53:
	adrp	x0, l_.str.9@PAGE
Lloh54:
	add	x0, x0, l_.str.9@PAGEOFF
LBB0_49:
	bl	_DRM_DEBUG_KMS
LBB0_50:
Lloh55:
	adrp	x8, _EINVAL@GOTPAGE
Lloh56:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_51:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_AUDIO_OFF_DVI,8,3         ; @HDMI_AUDIO_OFF_DVI
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ; @DRM_MODE_FLAG_DBLSCAN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_INTEL_OUTPUT_FORMAT_RGB,4,2    ; @INTEL_OUTPUT_FORMAT_RGB
	.comm	_INTEL_BROADCAST_RGB_AUTO,8,3   ; @INTEL_BROADCAST_RGB_AUTO
	.comm	_HDMI_QUANTIZATION_RANGE_LIMITED,8,3 ; @HDMI_QUANTIZATION_RANGE_LIMITED
	.comm	_INTEL_BROADCAST_RGB_LIMITED,8,3 ; @INTEL_BROADCAST_RGB_LIMITED
	.comm	_DRM_MODE_FLAG_DBLCLK,4,2       ; @DRM_MODE_FLAG_DBLCLK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't support YCBCR420 output\n"

	.comm	_HDMI_AUDIO_AUTO,8,3            ; @HDMI_AUDIO_AUTO
	.comm	_HDMI_AUDIO_ON,8,3              ; @HDMI_AUDIO_ON
	.comm	_MODE_OK,8,3                    ; @MODE_OK
l_.str.1:                               ; @.str.1
	.asciz	"picking bpc to 12 for HDMI output\n"

l_.str.2:                               ; @.str.2
	.asciz	"picking bpc to 10 for HDMI output\n"

l_.str.3:                               ; @.str.3
	.asciz	"picking bpc to 8 for HDMI output\n"

l_.str.4:                               ; @.str.4
	.asciz	"forcing pipe bpp to %i for HDMI\n"

l_.str.5:                               ; @.str.5
	.asciz	"unsupported HDMI clock, rejecting mode\n"

l_.str.6:                               ; @.str.6
	.asciz	"bad AVI infoframe\n"

l_.str.7:                               ; @.str.7
	.asciz	"bad SPD infoframe\n"

l_.str.8:                               ; @.str.8
	.asciz	"bad HDMI infoframe\n"

l_.str.9:                               ; @.str.9
	.asciz	"bad DRM infoframe\n"

.subsections_via_symbols
