	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_hdmi_mode_fixup          ## -- Begin function intel_hdmi_mode_fixup
	.p2align	4, 0x90
_intel_hdmi_mode_fixup:                 ## @intel_hdmi_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	callq	_enc_to_intel_hdmi
	movq	%rax, %rbx
	cmpq	$0, 16(%rax)
	je	LBB0_1
## %bb.2:
	cmpq	$0, 8(%rbx)
	je	LBB0_8
## %bb.3:
	movq	%r14, %rdi
	callq	_drm_match_cea_mode
	cmpl	$2, %eax
	jl	LBB0_8
## %bb.4:
	movq	_SDVO_COLOR_RANGE_16_235@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_7
LBB0_8:
	movq	$0, (%rbx)
	jmp	LBB0_7
LBB0_1:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	movq	_INTEL_MODE_LIMITED_COLOR_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_7:
	movl	$1, %eax
	popq	%rbx
	popq	%r14
	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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_hdmi_mode_fixup          ; -- Begin function intel_hdmi_mode_fixup
	.p2align	2
_intel_hdmi_mode_fixup:                 ; @intel_hdmi_mode_fixup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	bl	_enc_to_intel_hdmi
	mov	x20, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_drm_match_cea_mode
	cmp	w0, #2
	b.lt	LBB0_4
; %bb.3:
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_6
	b	LBB0_7
LBB0_4:
	str	xzr, [x20]
	b	LBB0_7
LBB0_5:
	ldr	x8, [x20]
	cbz	x8, LBB0_7
LBB0_6:
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_7:
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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
.subsections_via_symbols
