	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_sdvo_compute_avi_infoframe
_intel_sdvo_compute_avi_infoframe:      ## @intel_sdvo_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 16(%rsi)
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r12
	movq	%rsi, %rbx
	leaq	12(%rsi), %r15
	leaq	20(%rsi), %r14
	movq	_HDMI_INFOFRAME_TYPE_AVI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_intel_hdmi_infoframe_enable
	orl	%eax, 8(%rbx)
	movl	(%r12), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_drm_hdmi_avi_infoframe_from_display_mode
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_7
## %bb.3:
	movl	(%r12), %esi
	cmpq	$0, (%rbx)
	jne	LBB0_4
## %bb.5:
	movq	_HDMI_QUANTIZATION_RANGE_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movl	$1, %eax
	jmp	LBB0_7
LBB0_4:
	movq	_HDMI_QUANTIZATION_RANGE_LIMITED@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_drm_hdmi_avi_infoframe_quant_range
	movq	%r15, %rdi
	callq	_hdmi_avi_infoframe_check
	movl	%eax, %edi
	callq	_WARN_ON
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	sete	%al
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_INFOFRAME_TYPE_AVI,4,2    ## @HDMI_INFOFRAME_TYPE_AVI
	.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_sdvo_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_sdvo_compute_avi_infoframe
_intel_sdvo_compute_avi_infoframe:      ; @intel_sdvo_compute_avi_infoframe
	.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
	ldr	w8, [x1, #16]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x22, x2
	mov	x21, x1
	add	x19, x1, #12
	add	x20, x1, #20
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, [x21, #8]
	orr	w8, w8, w0
	str	w8, [x21, #8]
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	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	w1, [x22]
Lloh3:
	adrp	x8, _HDMI_QUANTIZATION_RANGE_LIMITED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDMI_QUANTIZATION_RANGE_LIMITED@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh5:
	adrp	x10, _HDMI_QUANTIZATION_RANGE_FULL@GOTPAGE
Lloh6:
	ldr	x10, [x10, _HDMI_QUANTIZATION_RANGE_FULL@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_drm_hdmi_avi_infoframe_quant_range
	mov	x0, x19
	bl	_hdmi_avi_infoframe_check
	bl	_WARN_ON
	cmp	x0, #0
	cset	w0, eq
LBB0_5:
	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	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_INFOFRAME_TYPE_AVI,4,2    ; @HDMI_INFOFRAME_TYPE_AVI
	.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_sdvo_compute_avi_infoframe
.subsections_via_symbols
