	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_hdmi_set_avi_infoframe
_intel_hdmi_set_avi_infoframe:          ## @intel_hdmi_set_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	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_enc_to_intel_hdmi
	movq	$0, -36(%rbp)
	movq	_DIP_LEN_AVI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -28(%rbp)
	movq	_DIP_VERSION_AVI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -24(%rbp)
	movq	_DIP_TYPE_AVI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -20(%rbp)
	movq	_DRM_MODE_FLAG_DBLCLK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_DIP_AVI_PR_2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -32(%rbp)
LBB0_2:
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.3:
	movq	_INTEL_MODE_LIMITED_COLOR_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%rbx), %eax
	jne	LBB0_4
## %bb.5:
	movq	_DIP_AVI_RGB_QUANT_RANGE_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_DIP_AVI_RGB_QUANT_RANGE_LIMITED@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
LBB0_7:
	movq	%rbx, %rdi
	callq	_drm_match_cea_mode
	movl	%eax, -40(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_intel_set_infoframe
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DIP_LEN_AVI,4,2                ## @DIP_LEN_AVI
	.comm	_DIP_VERSION_AVI,4,2            ## @DIP_VERSION_AVI
	.comm	_DIP_TYPE_AVI,4,2               ## @DIP_TYPE_AVI
	.comm	_DRM_MODE_FLAG_DBLCLK,4,2       ## @DRM_MODE_FLAG_DBLCLK
	.comm	_DIP_AVI_PR_2,4,2               ## @DIP_AVI_PR_2
	.comm	_INTEL_MODE_LIMITED_COLOR_RANGE,4,2 ## @INTEL_MODE_LIMITED_COLOR_RANGE
	.comm	_DIP_AVI_RGB_QUANT_RANGE_LIMITED,4,2 ## @DIP_AVI_RGB_QUANT_RANGE_LIMITED
	.comm	_DIP_AVI_RGB_QUANT_RANGE_FULL,4,2 ## @DIP_AVI_RGB_QUANT_RANGE_FULL
	.no_dead_strip	_intel_hdmi_set_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_set_avi_infoframe
_intel_hdmi_set_avi_infoframe:          ; @intel_hdmi_set_avi_infoframe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x20, x1
	mov	x19, x0
	bl	_enc_to_intel_hdmi
	stur	xzr, [sp, #12]
Lloh0:
	adrp	x8, _DIP_LEN_AVI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIP_LEN_AVI@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DIP_VERSION_AVI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DIP_VERSION_AVI@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #20]
Lloh6:
	adrp	x8, _DIP_TYPE_AVI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DIP_TYPE_AVI@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #28]
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _DRM_MODE_FLAG_DBLCLK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DRM_MODE_FLAG_DBLCLK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _DIP_AVI_PR_2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DIP_AVI_PR_2@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #16]
LBB0_2:
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w8, [x20, #4]
Lloh15:
	adrp	x9, _INTEL_MODE_LIMITED_COLOR_RANGE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _INTEL_MODE_LIMITED_COLOR_RANGE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _DIP_AVI_RGB_QUANT_RANGE_FULL@GOTPAGE
Lloh19:
	ldr	x10, [x10, _DIP_AVI_RGB_QUANT_RANGE_FULL@GOTPAGEOFF]
Lloh20:
	adrp	x11, _DIP_AVI_RGB_QUANT_RANGE_LIMITED@GOTPAGE
Lloh21:
	ldr	x11, [x11, _DIP_AVI_RGB_QUANT_RANGE_LIMITED@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [sp, #12]
LBB0_4:
	mov	x0, x20
	bl	_drm_match_cea_mode
	str	w0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_intel_set_infoframe
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DIP_LEN_AVI,4,2                ; @DIP_LEN_AVI
	.comm	_DIP_VERSION_AVI,4,2            ; @DIP_VERSION_AVI
	.comm	_DIP_TYPE_AVI,4,2               ; @DIP_TYPE_AVI
	.comm	_DRM_MODE_FLAG_DBLCLK,4,2       ; @DRM_MODE_FLAG_DBLCLK
	.comm	_DIP_AVI_PR_2,4,2               ; @DIP_AVI_PR_2
	.comm	_INTEL_MODE_LIMITED_COLOR_RANGE,4,2 ; @INTEL_MODE_LIMITED_COLOR_RANGE
	.comm	_DIP_AVI_RGB_QUANT_RANGE_LIMITED,4,2 ; @DIP_AVI_RGB_QUANT_RANGE_LIMITED
	.comm	_DIP_AVI_RGB_QUANT_RANGE_FULL,4,2 ; @DIP_AVI_RGB_QUANT_RANGE_FULL
	.no_dead_strip	_intel_hdmi_set_avi_infoframe
.subsections_via_symbols
