	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_sdvo_mode_fixup
_intel_sdvo_mode_fixup:                 ## @intel_sdvo_mode_fixup
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	callq	_to_intel_sdvo
	movq	%rax, %rbx
	cmpq	$0, 40(%rax)
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	jmp	LBB0_2
LBB0_4:
	cmpq	$0, 32(%rbx)
	je	LBB0_7
## %bb.5:
	movq	24(%rbx), %rsi
	movq	%rbx, %rdi
LBB0_2:
	callq	_intel_sdvo_set_output_timings_from_mode
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_intel_sdvo_get_preferred_input_mode
LBB0_7:
	movq	%r14, %rdi
	callq	_intel_sdvo_get_pixel_multiplier
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_intel_mode_set_pixel_multiplier
	cmpq	$0, 16(%rbx)
	je	LBB0_12
## %bb.8:
	cmpq	$0, 8(%rbx)
	je	LBB0_11
## %bb.9:
	movq	%r14, %rdi
	callq	_drm_match_cea_mode
	cmpl	$2, %eax
	jl	LBB0_11
## %bb.10:
	movq	_SDVO_COLOR_RANGE_16_235@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%rbx)
	jmp	LBB0_13
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_11:
	movq	$0, (%rbx)
	movl	$1, %eax
	jmp	LBB0_15
LBB0_12:
	movq	(%rbx), %rcx
LBB0_13:
	movl	$1, %eax
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.14:
	movq	_INTEL_MODE_LIMITED_COLOR_RANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%r14)
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDVO_COLOR_RANGE_16_235,8,3    ## @SDVO_COLOR_RANGE_16_235
	.comm	_INTEL_MODE_LIMITED_COLOR_RANGE,4,2 ## @INTEL_MODE_LIMITED_COLOR_RANGE
	.no_dead_strip	_intel_sdvo_mode_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_sdvo_mode_fixup
_intel_sdvo_mode_fixup:                 ; @intel_sdvo_mode_fixup
	.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
	mov	x19, x2
	mov	x21, x1
	bl	_to_intel_sdvo
	mov	x20, x0
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	bl	_intel_sdvo_set_output_timings_from_mode
	cbnz	w0, LBB0_4
	b	LBB0_13
LBB0_2:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x1, [x20, #24]
	mov	x0, x20
	bl	_intel_sdvo_set_output_timings_from_mode
	cbz	w0, LBB0_13
LBB0_4:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_intel_sdvo_get_preferred_input_mode
LBB0_5:
	mov	x0, x19
	bl	_intel_sdvo_get_pixel_multiplier
	mov	x1, x0
	mov	x0, x19
	bl	_intel_mode_set_pixel_multiplier
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_10
; %bb.6:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_drm_match_cea_mode
	cmp	w0, #2
	b.lt	LBB0_9
; %bb.8:
Lloh0:
	adrp	x8, _SDVO_COLOR_RANGE_16_235@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDVO_COLOR_RANGE_16_235@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x20]
	cbnz	x8, LBB0_11
	b	LBB0_12
LBB0_9:
	str	xzr, [x20]
	b	LBB0_12
LBB0_10:
	ldr	x8, [x20]
	cbz	x8, LBB0_12
LBB0_11:
Lloh3:
	adrp	x8, _INTEL_MODE_LIMITED_COLOR_RANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INTEL_MODE_LIMITED_COLOR_RANGE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_12:
	mov	w0, #1
LBB0_13:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SDVO_COLOR_RANGE_16_235,8,3    ; @SDVO_COLOR_RANGE_16_235
	.comm	_INTEL_MODE_LIMITED_COLOR_RANGE,4,2 ; @INTEL_MODE_LIMITED_COLOR_RANGE
	.no_dead_strip	_intel_sdvo_mode_fixup
.subsections_via_symbols
