	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_set_infoframes
_vlv_set_infoframes:                    ## @vlv_set_infoframes
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	leaq	4(%rdi), %r15
	movl	4(%rdi), %edi
	callq	_to_i915
	movl	12(%r14), %edi
	callq	_to_intel_crtc
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_enc_to_intel_hdmi
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_VLV_TVIDEO_DIP_CTL
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %r15d
	movl	(%r13), %edi
	callq	_VIDEO_DIP_PORT
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_assert_hdmi_port_disabled
	movq	_VIDEO_DIP_SELECT_AVI@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_VIDEO_DIP_FREQ_VSYNC@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_1
## %bb.3:
	movq	_VIDEO_DIP_PORT_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	andl	%r15d, %edx
	cmpl	%edx, %ebx
	je	LBB0_5
## %bb.4:
	movq	_VIDEO_DIP_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r15d, %edi
	sarl	$29, %edx
	leaq	L_.str(%rip), %rsi
	callq	_WARN
	movl	(%r12), %eax
	notl	%eax
	andl	%r15d, %eax
	orl	%ebx, %eax
	movl	%eax, %r15d
LBB0_5:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	_VIDEO_DIP_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_VIDEO_DIP_ENABLE_AVI@GOTPCREL(%rip), %rax
	movq	_VIDEO_DIP_ENABLE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_VIDEO_DIP_ENABLE_GAMUT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_VIDEO_DIP_ENABLE_SPD@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_VIDEO_DIP_ENABLE_GCP@GOTPCREL(%rip), %r12
	orl	(%r12), %ebx
	notl	%ebx
	andl	%r15d, %ebx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_intel_hdmi_set_gcp_infoframe
	xorl	%esi, %esi
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%r12), %esi
LBB0_7:
	orl	%ebx, %esi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_POSTING_READ
	movq	_HDMI_INFOFRAME_TYPE_AVI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	8(%r14), %rcx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_intel_write_infoframe
	movq	_HDMI_INFOFRAME_TYPE_SPD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	4(%r14), %rcx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_intel_write_infoframe
	movq	_HDMI_INFOFRAME_TYPE_VENDOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r14, %rcx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_write_infoframe          ## TAILCALL
LBB0_1:
	movq	_VIDEO_DIP_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r15d, %eax
	je	LBB0_8
## %bb.2:
	movq	_VIDEO_DIP_ENABLE_AVI@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_VIDEO_DIP_ENABLE_VENDOR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_VIDEO_DIP_ENABLE_GAMUT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_VIDEO_DIP_ENABLE_SPD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_VIDEO_DIP_ENABLE_GCP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	%eax, %r15d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_I915_WRITE
	movl	%ebx, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_POSTING_READ                   ## TAILCALL
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDEO_DIP_SELECT_AVI,4,2       ## @VIDEO_DIP_SELECT_AVI
	.comm	_VIDEO_DIP_FREQ_VSYNC,4,2       ## @VIDEO_DIP_FREQ_VSYNC
	.comm	_VIDEO_DIP_ENABLE,4,2           ## @VIDEO_DIP_ENABLE
	.comm	_VIDEO_DIP_ENABLE_AVI,4,2       ## @VIDEO_DIP_ENABLE_AVI
	.comm	_VIDEO_DIP_ENABLE_VENDOR,4,2    ## @VIDEO_DIP_ENABLE_VENDOR
	.comm	_VIDEO_DIP_ENABLE_GAMUT,4,2     ## @VIDEO_DIP_ENABLE_GAMUT
	.comm	_VIDEO_DIP_ENABLE_SPD,4,2       ## @VIDEO_DIP_ENABLE_SPD
	.comm	_VIDEO_DIP_ENABLE_GCP,4,2       ## @VIDEO_DIP_ENABLE_GCP
	.comm	_VIDEO_DIP_PORT_MASK,4,2        ## @VIDEO_DIP_PORT_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DIP already enabled on port %c\n"

	.comm	_HDMI_INFOFRAME_TYPE_AVI,4,2    ## @HDMI_INFOFRAME_TYPE_AVI
	.comm	_HDMI_INFOFRAME_TYPE_SPD,4,2    ## @HDMI_INFOFRAME_TYPE_SPD
	.comm	_HDMI_INFOFRAME_TYPE_VENDOR,4,2 ## @HDMI_INFOFRAME_TYPE_VENDOR
	.no_dead_strip	_vlv_set_infoframes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlv_set_infoframes
_vlv_set_infoframes:                    ; @vlv_set_infoframes
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x19, x2
	mov	x24, x1
	mov	x20, x0
	mov	x21, x0
	ldr	w0, [x21, #4]!
	bl	_to_i915
	ldr	w0, [x19, #12]
	bl	_to_intel_crtc
	mov	x23, x0
	mov	x0, x21
	bl	_enc_to_intel_hdmi
	mov	x25, x0
	ldr	w0, [x23]
	bl	_VLV_TVIDEO_DIP_CTL
	mov	x21, x0
	bl	_I915_READ
	mov	x26, x0
	ldr	w0, [x20]
	bl	_VIDEO_DIP_PORT
	mov	x23, x0
	mov	x0, x25
	bl	_assert_hdmi_port_disabled
Lloh0:
	adrp	x8, _VIDEO_DIP_SELECT_AVI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIDEO_DIP_SELECT_AVI@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _VIDEO_DIP_FREQ_VSYNC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VIDEO_DIP_FREQ_VSYNC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w8, w26
	orr	w25, w8, w9
	cbz	w24, LBB0_4
; %bb.1:
Lloh6:
	adrp	x26, _VIDEO_DIP_PORT_MASK@GOTPAGE
Lloh7:
	ldr	x26, [x26, _VIDEO_DIP_PORT_MASK@GOTPAGEOFF]
	ldr	w8, [x26]
	and	w8, w8, w25
Lloh8:
	adrp	x24, _VIDEO_DIP_ENABLE@GOTPAGE
Lloh9:
	ldr	x24, [x24, _VIDEO_DIP_ENABLE@GOTPAGEOFF]
	cmp	w23, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w9, [x24]
	and	w0, w9, w25
	asr	w2, w8, #29
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN
	ldr	w8, [x26]
	bic	w8, w25, w8
	orr	w25, w8, w23
LBB0_3:
	ldr	w8, [x24]
	orr	w8, w8, w25
Lloh12:
	adrp	x9, _VIDEO_DIP_ENABLE_AVI@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_AVI@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _VIDEO_DIP_ENABLE_VENDOR@GOTPAGE
Lloh16:
	ldr	x10, [x10, _VIDEO_DIP_ENABLE_VENDOR@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
Lloh18:
	adrp	x11, _VIDEO_DIP_ENABLE_GAMUT@GOTPAGE
Lloh19:
	ldr	x11, [x11, _VIDEO_DIP_ENABLE_GAMUT@GOTPAGEOFF]
	orr	w9, w10, w9
Lloh20:
	ldr	w10, [x11]
	orr	w9, w9, w10
Lloh21:
	adrp	x10, _VIDEO_DIP_ENABLE_SPD@GOTPAGE
Lloh22:
	ldr	x10, [x10, _VIDEO_DIP_ENABLE_SPD@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh24:
	adrp	x23, _VIDEO_DIP_ENABLE_GCP@GOTPAGE
Lloh25:
	ldr	x23, [x23, _VIDEO_DIP_ENABLE_GCP@GOTPAGEOFF]
	ldr	w10, [x23]
	orr	w9, w9, w10
	bic	w24, w8, w9
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_intel_hdmi_set_gcp_infoframe
	ldr	w8, [x23]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w1, w8, w24
	mov	x0, x21
	bl	_I915_WRITE
	mov	x0, x21
	bl	_POSTING_READ
Lloh26:
	adrp	x8, _HDMI_INFOFRAME_TYPE_AVI@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HDMI_INFOFRAME_TYPE_AVI@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	add	x3, x19, #8
	mov	x0, x20
	mov	x1, x19
	bl	_intel_write_infoframe
Lloh29:
	adrp	x8, _HDMI_INFOFRAME_TYPE_SPD@GOTPAGE
Lloh30:
	ldr	x8, [x8, _HDMI_INFOFRAME_TYPE_SPD@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	add	x3, x19, #4
	mov	x0, x20
	mov	x1, x19
	bl	_intel_write_infoframe
Lloh32:
	adrp	x8, _HDMI_INFOFRAME_TYPE_VENDOR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _HDMI_INFOFRAME_TYPE_VENDOR@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x3, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_intel_write_infoframe
LBB0_4:
Lloh35:
	adrp	x8, _VIDEO_DIP_ENABLE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _VIDEO_DIP_ENABLE@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_6
; %bb.5:
Lloh38:
	adrp	x9, _VIDEO_DIP_ENABLE_AVI@GOTPAGE
Lloh39:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_AVI@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh41:
	adrp	x9, _VIDEO_DIP_ENABLE_VENDOR@GOTPAGE
Lloh42:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_VENDOR@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
Lloh44:
	adrp	x10, _VIDEO_DIP_ENABLE_GAMUT@GOTPAGE
Lloh45:
	ldr	x10, [x10, _VIDEO_DIP_ENABLE_GAMUT@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh46:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh47:
	adrp	x9, _VIDEO_DIP_ENABLE_SPD@GOTPAGE
Lloh48:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_SPD@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh50:
	adrp	x9, _VIDEO_DIP_ENABLE_GCP@GOTPAGE
Lloh51:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_GCP@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w1, w25, w8
	mov	x0, x21
	bl	_I915_WRITE
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_POSTING_READ
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDEO_DIP_SELECT_AVI,4,2       ; @VIDEO_DIP_SELECT_AVI
	.comm	_VIDEO_DIP_FREQ_VSYNC,4,2       ; @VIDEO_DIP_FREQ_VSYNC
	.comm	_VIDEO_DIP_ENABLE,4,2           ; @VIDEO_DIP_ENABLE
	.comm	_VIDEO_DIP_ENABLE_AVI,4,2       ; @VIDEO_DIP_ENABLE_AVI
	.comm	_VIDEO_DIP_ENABLE_VENDOR,4,2    ; @VIDEO_DIP_ENABLE_VENDOR
	.comm	_VIDEO_DIP_ENABLE_GAMUT,4,2     ; @VIDEO_DIP_ENABLE_GAMUT
	.comm	_VIDEO_DIP_ENABLE_SPD,4,2       ; @VIDEO_DIP_ENABLE_SPD
	.comm	_VIDEO_DIP_ENABLE_GCP,4,2       ; @VIDEO_DIP_ENABLE_GCP
	.comm	_VIDEO_DIP_PORT_MASK,4,2        ; @VIDEO_DIP_PORT_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DIP already enabled on port %c\n"

	.comm	_HDMI_INFOFRAME_TYPE_AVI,4,2    ; @HDMI_INFOFRAME_TYPE_AVI
	.comm	_HDMI_INFOFRAME_TYPE_SPD,4,2    ; @HDMI_INFOFRAME_TYPE_SPD
	.comm	_HDMI_INFOFRAME_TYPE_VENDOR,4,2 ; @HDMI_INFOFRAME_TYPE_VENDOR
	.no_dead_strip	_vlv_set_infoframes
.subsections_via_symbols
