	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_hdmi_avi_infoframe_quant_range ## -- Begin function drm_hdmi_avi_infoframe_quant_range
	.p2align	4, 0x90
_drm_hdmi_avi_infoframe_quant_range:    ## @drm_hdmi_avi_infoframe_quant_range
	.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
	movl	%ecx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	cmpq	$0, (%rsi)
	jne	LBB0_3
## %bb.1:
	movq	%rdx, %rdi
	callq	_drm_default_rgb_quant_range
	movl	%ebx, %ecx
	cmpl	%ebx, %eax
	je	LBB0_3
## %bb.2:
	movq	_HDMI_QUANTIZATION_RANGE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_3:
	movl	%ecx, (%r14)
	movq	%r15, %rdi
	callq	_is_hdmi2_sink
	movq	_HDMI_QUANTIZATION_RANGE_LIMITED@GOTPCREL(%rip), %rsi
	movq	_HDMI_YCC_QUANTIZATION_RANGE_LIMITED@GOTPCREL(%rip), %rcx
	movq	%rcx, %rdx
	cmpl	%ebx, (%rsi)
	je	LBB0_5
## %bb.4:
	movq	_HDMI_YCC_QUANTIZATION_RANGE_FULL@GOTPCREL(%rip), %rdx
LBB0_5:
	testl	%eax, %eax
	cmoveq	%rcx, %rdx
	movl	(%rdx), %eax
	movl	%eax, 4(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_QUANTIZATION_RANGE_DEFAULT,4,2 ## @HDMI_QUANTIZATION_RANGE_DEFAULT
	.comm	_HDMI_QUANTIZATION_RANGE_LIMITED,4,2 ## @HDMI_QUANTIZATION_RANGE_LIMITED
	.comm	_HDMI_YCC_QUANTIZATION_RANGE_LIMITED,4,2 ## @HDMI_YCC_QUANTIZATION_RANGE_LIMITED
	.comm	_HDMI_YCC_QUANTIZATION_RANGE_FULL,4,2 ## @HDMI_YCC_QUANTIZATION_RANGE_FULL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_hdmi_avi_infoframe_quant_range ; -- Begin function drm_hdmi_avi_infoframe_quant_range
	.p2align	2
_drm_hdmi_avi_infoframe_quant_range:    ; @drm_hdmi_avi_infoframe_quant_range
	.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	x20, x3
	mov	x21, x1
	mov	x19, x0
	ldr	x9, [x1]
	mov	x8, x3
	cbnz	x9, LBB0_2
; %bb.1:
	mov	x0, x2
	bl	_drm_default_rgb_quant_range
Lloh0:
	adrp	x8, _HDMI_QUANTIZATION_RANGE_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDMI_QUANTIZATION_RANGE_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w20
	csel	w8, w20, w8, eq
LBB0_2:
	str	w8, [x19]
	mov	x0, x21
	bl	_is_hdmi2_sink
Lloh3:
	adrp	x8, _HDMI_QUANTIZATION_RANGE_LIMITED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDMI_QUANTIZATION_RANGE_LIMITED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w20
Lloh6:
	adrp	x8, _HDMI_YCC_QUANTIZATION_RANGE_LIMITED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HDMI_YCC_QUANTIZATION_RANGE_LIMITED@GOTPAGEOFF]
	ccmp	w0, #0, #4, ne
Lloh8:
	adrp	x9, _HDMI_YCC_QUANTIZATION_RANGE_FULL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HDMI_YCC_QUANTIZATION_RANGE_FULL@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #4]
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_QUANTIZATION_RANGE_DEFAULT,4,2 ; @HDMI_QUANTIZATION_RANGE_DEFAULT
	.comm	_HDMI_QUANTIZATION_RANGE_LIMITED,4,2 ; @HDMI_QUANTIZATION_RANGE_LIMITED
	.comm	_HDMI_YCC_QUANTIZATION_RANGE_LIMITED,4,2 ; @HDMI_YCC_QUANTIZATION_RANGE_LIMITED
	.comm	_HDMI_YCC_QUANTIZATION_RANGE_FULL,4,2 ; @HDMI_YCC_QUANTIZATION_RANGE_FULL
.subsections_via_symbols
