	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_sdvo_compute_config
_intel_sdvo_compute_config:             ## @intel_sdvo_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_to_sdvo
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_to_intel_sdvo_connector_state
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %edi
	callq	_to_intel_sdvo_connector
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movl	$24, (%r14)
	movq	_INTEL_OUTPUT_FORMAT_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movl	(%r15), %edi
	callq	_to_i915
	movl	%eax, %edi
	callq	_HAS_PCH_SPLIT
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$1, 4(%r14)
LBB0_2:
	leaq	40(%r14), %r13
	leaq	32(%r14), %r15
	movq	%rbx, %rdi
	callq	_IS_TV
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_intel_sdvo_set_output_timings_from_mode
	testl	%eax, %eax
	je	LBB0_27
## %bb.4:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r13, %rcx
	callq	_intel_sdvo_get_preferred_input_mode
	movl	$1, 8(%r14)
	jmp	LBB0_8
LBB0_5:
	movq	%rbx, %rdi
	callq	_IS_LVDS
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	8(%rbx), %rsi
	movq	%r12, %rdi
	callq	_intel_sdvo_set_output_timings_from_mode
	testl	%eax, %eax
	je	LBB0_27
## %bb.7:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r13, %rcx
	callq	_intel_sdvo_get_preferred_input_mode
LBB0_8:
	movq	_DRM_MODE_FLAG_DBLSCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_9
LBB0_27:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_28:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r13, %rdi
	callq	_intel_sdvo_get_pixel_multiplier
	movl	%eax, 24(%r14)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rax
	movq	_HDMI_AUDIO_OFF_DVI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:
	movl	8(%r12), %ecx
	movl	%ecx, 20(%r14)
LBB0_11:
	movq	_HDMI_AUDIO_ON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.12:
	movq	_HDMI_AUDIO_AUTO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.13:
	cmpq	$0, (%r12)
	je	LBB0_15
LBB0_14:
	movl	$1, 12(%r14)
LBB0_15:
	movq	8(%rdx), %rax
	movq	_INTEL_BROADCAST_RGB_AUTO@GOTPCREL(%rip), %rdx
	movl	20(%r14), %ecx
	cmpq	(%rdx), %rax
	jne	LBB0_18
## %bb.16:
	testl	%ecx, %ecx
	je	LBB0_21
## %bb.17:
	movq	%r13, %rdi
	callq	_drm_match_cea_mode
	cmpl	$1, %eax
	jg	LBB0_20
	jmp	LBB0_21
LBB0_18:
	testl	%ecx, %ecx
	je	LBB0_21
## %bb.19:
	movq	_INTEL_BROADCAST_RGB_LIMITED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
LBB0_20:
	movl	$1, 16(%r14)
LBB0_21:
	movq	%rbx, %rdi
	callq	_IS_TV
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	%r14, %rdi
	callq	_i9xx_adjust_sdvo_tv_clock
LBB0_23:
	cmpq	$0, (%rbx)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_25
## %bb.24:
	movl	(%rdx), %eax
	movl	%eax, 44(%r14)
LBB0_25:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_intel_sdvo_compute_avi_infoframe
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_28
## %bb.26:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"forcing bpc to 8 for SDVO\n"

	.comm	_INTEL_OUTPUT_FORMAT_RGB,4,2    ## @INTEL_OUTPUT_FORMAT_RGB
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ## @DRM_MODE_FLAG_DBLSCAN
	.comm	_HDMI_AUDIO_OFF_DVI,8,3         ## @HDMI_AUDIO_OFF_DVI
	.comm	_HDMI_AUDIO_ON,8,3              ## @HDMI_AUDIO_ON
	.comm	_HDMI_AUDIO_AUTO,8,3            ## @HDMI_AUDIO_AUTO
	.comm	_INTEL_BROADCAST_RGB_AUTO,8,3   ## @INTEL_BROADCAST_RGB_AUTO
	.comm	_INTEL_BROADCAST_RGB_LIMITED,8,3 ## @INTEL_BROADCAST_RGB_LIMITED
L_.str.1:                               ## @.str.1
	.asciz	"bad AVI infoframe\n"

	.no_dead_strip	_intel_sdvo_compute_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_sdvo_compute_config
_intel_sdvo_compute_config:             ; @intel_sdvo_compute_config
	.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	x19, x2
	mov	x20, x1
	mov	x24, x0
	bl	_to_sdvo
	mov	x21, x0
	mov	x0, x19
	bl	_to_intel_sdvo_connector_state
	mov	x23, x0
	ldr	w0, [x19, #4]
	bl	_to_intel_sdvo_connector
	mov	x22, x0
	add	x25, x20, #32
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w8, #24
	str	w8, [x20]
Lloh2:
	adrp	x8, _INTEL_OUTPUT_FORMAT_RGB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INTEL_OUTPUT_FORMAT_RGB@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20, #28]
	ldr	w0, [x24]
	bl	_to_i915
	bl	_HAS_PCH_SPLIT
	cbz	x0, LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x20, #4]
LBB0_2:
	add	x24, x20, #40
	mov	x0, x22
	bl	_IS_TV
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x21
	mov	x1, x25
	bl	_intel_sdvo_set_output_timings_from_mode
	cbz	w0, LBB0_9
; %bb.4:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x25
	mov	x3, x24
	bl	_intel_sdvo_get_preferred_input_mode
	mov	w8, #1
	str	w8, [x20, #8]
	b	LBB0_8
LBB0_5:
	mov	x0, x22
	bl	_IS_LVDS
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x1, [x22, #8]
	mov	x0, x21
	bl	_intel_sdvo_set_output_timings_from_mode
	cbz	w0, LBB0_9
; %bb.7:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x25
	mov	x3, x24
	bl	_intel_sdvo_get_preferred_input_mode
LBB0_8:
	ldr	w8, [x24]
Lloh5:
	adrp	x9, _DRM_MODE_FLAG_DBLSCAN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DRM_MODE_FLAG_DBLSCAN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
LBB0_9:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
LBB0_11:
	mov	x0, x24
	bl	_intel_sdvo_get_pixel_multiplier
	str	w0, [x20, #24]
	ldr	x8, [x23]
Lloh11:
	adrp	x9, _HDMI_AUDIO_OFF_DVI@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HDMI_AUDIO_OFF_DVI@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.12:
	ldr	w9, [x21, #8]
	str	w9, [x20, #20]
LBB0_13:
Lloh14:
	adrp	x9, _HDMI_AUDIO_ON@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HDMI_AUDIO_ON@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.14:
Lloh17:
	adrp	x9, _HDMI_AUDIO_AUTO@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HDMI_AUDIO_AUTO@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.15:
	ldr	x8, [x21]
	cbz	x8, LBB0_17
LBB0_16:
	mov	w8, #1
	str	w8, [x20, #12]
LBB0_17:
	ldr	x8, [x23, #8]
Lloh20:
	adrp	x9, _INTEL_BROADCAST_RGB_AUTO@GOTPAGE
Lloh21:
	ldr	x9, [x9, _INTEL_BROADCAST_RGB_AUTO@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x9]
	ldr	w9, [x20, #20]
	cmp	x8, x10
	b.ne	LBB0_20
; %bb.18:
	cbz	w9, LBB0_23
; %bb.19:
	mov	x0, x24
	bl	_drm_match_cea_mode
	cmp	w0, #1
	b.gt	LBB0_22
	b	LBB0_23
LBB0_20:
	cbz	w9, LBB0_23
; %bb.21:
Lloh23:
	adrp	x9, _INTEL_BROADCAST_RGB_LIMITED@GOTPAGE
Lloh24:
	ldr	x9, [x9, _INTEL_BROADCAST_RGB_LIMITED@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_23
LBB0_22:
	mov	w8, #1
	str	w8, [x20, #16]
LBB0_23:
	mov	x0, x22
	bl	_IS_TV
	cbz	x0, LBB0_25
; %bb.24:
	mov	x0, x20
	bl	_i9xx_adjust_sdvo_tv_clock
LBB0_25:
	ldr	x8, [x22]
	cbz	x8, LBB0_27
; %bb.26:
	ldr	w8, [x19]
	str	w8, [x20, #44]
LBB0_27:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_intel_sdvo_compute_avi_infoframe
	cbz	w0, LBB0_29
; %bb.28:
	mov	w0, #0
	b	LBB0_10
LBB0_29:
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"forcing bpc to 8 for SDVO\n"

	.comm	_INTEL_OUTPUT_FORMAT_RGB,4,2    ; @INTEL_OUTPUT_FORMAT_RGB
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ; @DRM_MODE_FLAG_DBLSCAN
	.comm	_HDMI_AUDIO_OFF_DVI,8,3         ; @HDMI_AUDIO_OFF_DVI
	.comm	_HDMI_AUDIO_ON,8,3              ; @HDMI_AUDIO_ON
	.comm	_HDMI_AUDIO_AUTO,8,3            ; @HDMI_AUDIO_AUTO
	.comm	_INTEL_BROADCAST_RGB_AUTO,8,3   ; @INTEL_BROADCAST_RGB_AUTO
	.comm	_INTEL_BROADCAST_RGB_LIMITED,8,3 ; @INTEL_BROADCAST_RGB_LIMITED
l_.str.1:                               ; @.str.1
	.asciz	"bad AVI infoframe\n"

	.no_dead_strip	_intel_sdvo_compute_config
.subsections_via_symbols
