	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_hdmi_compute_avi_infoframe
_intel_hdmi_compute_avi_infoframe:      ## @intel_hdmi_compute_avi_infoframe
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 24(%rsi)
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	leaq	20(%rsi), %r13
	leaq	28(%rsi), %r15
	movq	(%rdx), %r12
	movq	_HDMI_INFOFRAME_TYPE_AVI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_intel_hdmi_infoframe_enable
	orl	%eax, 16(%rbx)
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_drm_hdmi_avi_infoframe_from_display_mode
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_12
## %bb.3:
	movq	(%rbx), %rax
	movq	_INTEL_OUTPUT_FORMAT_YCBCR420@GOTPCREL(%rip), %rdx
	movq	_INTEL_OUTPUT_FORMAT_YCBCR444@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	_HDMI_COLORSPACE_YUV444@GOTPCREL(%rip), %rcx
	cmpq	(%rdx), %rax
	je	LBB0_7
	jmp	LBB0_8
LBB0_1:
	movl	$1, %eax
	jmp	LBB0_12
LBB0_4:
	movq	_HDMI_COLORSPACE_RGB@GOTPCREL(%rip), %rcx
	cmpq	(%rdx), %rax
	jne	LBB0_8
LBB0_7:
	movq	_HDMI_COLORSPACE_YUV420@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %eax
	movl	%eax, 20(%rbx)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_drm_hdmi_avi_infoframe_colorspace
	cmpq	$0, 8(%rbx)
	jne	LBB0_9
## %bb.10:
	movq	_HDMI_QUANTIZATION_RANGE_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_HDMI_QUANTIZATION_RANGE_LIMITED@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_drm_hdmi_avi_infoframe_quant_range
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_drm_hdmi_avi_infoframe_content_type
	movq	%r13, %rdi
	callq	_hdmi_avi_infoframe_check
	movl	%eax, %edi
	callq	_WARN_ON
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	sete	%al
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_INFOFRAME_TYPE_AVI,4,2    ## @HDMI_INFOFRAME_TYPE_AVI
	.comm	_INTEL_OUTPUT_FORMAT_YCBCR420,8,3 ## @INTEL_OUTPUT_FORMAT_YCBCR420
	.comm	_HDMI_COLORSPACE_YUV420,4,2     ## @HDMI_COLORSPACE_YUV420
	.comm	_INTEL_OUTPUT_FORMAT_YCBCR444,8,3 ## @INTEL_OUTPUT_FORMAT_YCBCR444
	.comm	_HDMI_COLORSPACE_YUV444,4,2     ## @HDMI_COLORSPACE_YUV444
	.comm	_HDMI_COLORSPACE_RGB,4,2        ## @HDMI_COLORSPACE_RGB
	.comm	_HDMI_QUANTIZATION_RANGE_LIMITED,4,2 ## @HDMI_QUANTIZATION_RANGE_LIMITED
	.comm	_HDMI_QUANTIZATION_RANGE_FULL,4,2 ## @HDMI_QUANTIZATION_RANGE_FULL
	.no_dead_strip	_intel_hdmi_compute_avi_infoframe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_hdmi_compute_avi_infoframe
_intel_hdmi_compute_avi_infoframe:      ; @intel_hdmi_compute_avi_infoframe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x1, #24]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x22, x1
	add	x20, x1, #20
	add	x21, x1, #28
	ldr	x23, [x2]
Lloh0:
	adrp	x8, _HDMI_INFOFRAME_TYPE_AVI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDMI_INFOFRAME_TYPE_AVI@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_intel_hdmi_infoframe_enable
	ldr	w8, [x22, #16]
	orr	w8, w8, w0
	str	w8, [x22, #16]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	bl	_drm_hdmi_avi_infoframe_from_display_mode
	cbz	w0, LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _INTEL_OUTPUT_FORMAT_YCBCR420@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INTEL_OUTPUT_FORMAT_YCBCR420@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _INTEL_OUTPUT_FORMAT_YCBCR444@GOTPAGE
Lloh7:
	ldr	x10, [x10, _INTEL_OUTPUT_FORMAT_YCBCR444@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
Lloh9:
	adrp	x11, _HDMI_COLORSPACE_YUV420@GOTPAGE
Lloh10:
	ldr	x11, [x11, _HDMI_COLORSPACE_YUV420@GOTPAGEOFF]
Lloh11:
	adrp	x12, _HDMI_COLORSPACE_YUV444@GOTPAGE
Lloh12:
	ldr	x12, [x12, _HDMI_COLORSPACE_YUV444@GOTPAGEOFF]
Lloh13:
	adrp	x13, _HDMI_COLORSPACE_RGB@GOTPAGE
Lloh14:
	ldr	x13, [x13, _HDMI_COLORSPACE_RGB@GOTPAGEOFF]
	cmp	x8, x10
	csel	x10, x12, x13, eq
	cmp	x8, x9
	csel	x8, x11, x10, eq
	ldr	w8, [x8]
	str	w8, [x22, #20]
	mov	x0, x20
	mov	x1, x19
	bl	_drm_hdmi_avi_infoframe_colorspace
Lloh15:
	adrp	x8, _HDMI_QUANTIZATION_RANGE_LIMITED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HDMI_QUANTIZATION_RANGE_LIMITED@GOTPAGEOFF]
	ldr	x9, [x22, #8]
Lloh17:
	adrp	x10, _HDMI_QUANTIZATION_RANGE_FULL@GOTPAGE
Lloh18:
	ldr	x10, [x10, _HDMI_QUANTIZATION_RANGE_FULL@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	bl	_drm_hdmi_avi_infoframe_quant_range
	mov	x0, x20
	mov	x1, x19
	bl	_drm_hdmi_avi_infoframe_content_type
	mov	x0, x20
	bl	_hdmi_avi_infoframe_check
	bl	_WARN_ON
	cmp	x0, #0
	cset	w0, eq
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_INFOFRAME_TYPE_AVI,4,2    ; @HDMI_INFOFRAME_TYPE_AVI
	.comm	_INTEL_OUTPUT_FORMAT_YCBCR420,8,3 ; @INTEL_OUTPUT_FORMAT_YCBCR420
	.comm	_HDMI_COLORSPACE_YUV420,4,2     ; @HDMI_COLORSPACE_YUV420
	.comm	_INTEL_OUTPUT_FORMAT_YCBCR444,8,3 ; @INTEL_OUTPUT_FORMAT_YCBCR444
	.comm	_HDMI_COLORSPACE_YUV444,4,2     ; @HDMI_COLORSPACE_YUV444
	.comm	_HDMI_COLORSPACE_RGB,4,2        ; @HDMI_COLORSPACE_RGB
	.comm	_HDMI_QUANTIZATION_RANGE_LIMITED,4,2 ; @HDMI_QUANTIZATION_RANGE_LIMITED
	.comm	_HDMI_QUANTIZATION_RANGE_FULL,4,2 ; @HDMI_QUANTIZATION_RANGE_FULL
	.no_dead_strip	_intel_hdmi_compute_avi_infoframe
.subsections_via_symbols
