	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_hdmi_avi_infoframe_colorspace ## -- Begin function drm_hdmi_avi_infoframe_colorspace
	.p2align	4, 0x90
_drm_hdmi_avi_infoframe_colorspace:     ## @drm_hdmi_avi_infoframe_colorspace
	.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	%rdi, %r14
	movq	_FULL_COLORIMETRY_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	andq	(%rsi), %rbx
	movq	_hdmi_colorimetry_val@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %rbx
	jb	LBB0_1
## %bb.2:
	movq	_HDMI_COLORIMETRY_NO_DATA@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
LBB0_1:
	shlq	$3, %rbx
	addq	(%r15), %rbx
LBB0_3:
	movq	(%rbx), %rax
	movq	_NORMAL_COLORIMETRY_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	andq	%rax, %rcx
	movq	%rcx, (%r14)
	shrq	$2, %rax
	movq	_EXTENDED_COLORIMETRY_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	movq	%rax, 8(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FULL_COLORIMETRY_MASK,8,3      ## @FULL_COLORIMETRY_MASK
	.comm	_hdmi_colorimetry_val,8,3       ## @hdmi_colorimetry_val
	.comm	_HDMI_COLORIMETRY_NO_DATA,8,3   ## @HDMI_COLORIMETRY_NO_DATA
	.comm	_NORMAL_COLORIMETRY_MASK,8,3    ## @NORMAL_COLORIMETRY_MASK
	.comm	_EXTENDED_COLORIMETRY_MASK,8,3  ## @EXTENDED_COLORIMETRY_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_hdmi_avi_infoframe_colorspace ; -- Begin function drm_hdmi_avi_infoframe_colorspace
	.p2align	2
_drm_hdmi_avi_infoframe_colorspace:     ; @drm_hdmi_avi_infoframe_colorspace
	.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, x0
Lloh0:
	adrp	x8, _FULL_COLORIMETRY_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FULL_COLORIMETRY_MASK@GOTPAGEOFF]
	ldr	x9, [x1]
Lloh2:
	ldr	x8, [x8]
	and	x20, x8, x9
Lloh3:
	adrp	x21, _hdmi_colorimetry_val@GOTPAGE
Lloh4:
	ldr	x21, [x21, _hdmi_colorimetry_val@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	ldr	x8, [x21]
	add	x8, x8, x20, lsl #3
Lloh5:
	adrp	x9, _HDMI_COLORIMETRY_NO_DATA@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HDMI_COLORIMETRY_NO_DATA@GOTPAGEOFF]
	cmp	x20, x0
	csel	x8, x8, x9, lo
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _NORMAL_COLORIMETRY_MASK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NORMAL_COLORIMETRY_MASK@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	and	x9, x9, x8
	str	x9, [x19]
Lloh10:
	adrp	x9, _EXTENDED_COLORIMETRY_MASK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _EXTENDED_COLORIMETRY_MASK@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	and	x8, x9, x8, lsr #2
	str	x8, [x19, #8]
	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	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FULL_COLORIMETRY_MASK,8,3      ; @FULL_COLORIMETRY_MASK
	.comm	_hdmi_colorimetry_val,8,3       ; @hdmi_colorimetry_val
	.comm	_HDMI_COLORIMETRY_NO_DATA,8,3   ; @HDMI_COLORIMETRY_NO_DATA
	.comm	_NORMAL_COLORIMETRY_MASK,8,3    ; @NORMAL_COLORIMETRY_MASK
	.comm	_EXTENDED_COLORIMETRY_MASK,8,3  ; @EXTENDED_COLORIMETRY_MASK
.subsections_via_symbols
