	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hsw_set_infoframes
_hsw_set_infoframes:                    ## @hsw_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, %rbx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r12
	movl	16(%rbx), %edi
	callq	_HSW_TVIDEO_DIP_CTL
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %r13d
	movl	16(%rbx), %esi
	movq	%r12, %rdi
	callq	_assert_hdmi_transcoder_func_disabled
	movq	_VIDEO_DIP_ENABLE_VSC_HSW@GOTPCREL(%rip), %rax
	movq	_VIDEO_DIP_ENABLE_AVI_HSW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	movq	_VIDEO_DIP_ENABLE_GCP_HSW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r12d
	movq	_VIDEO_DIP_ENABLE_VS_HSW@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_VIDEO_DIP_ENABLE_GMP_HSW@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_VIDEO_DIP_ENABLE_SPD_HSW@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_VIDEO_DIP_ENABLE_DRM_GLK@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	notl	%r12d
	andl	%r13d, %r12d
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_4
## %bb.1:
	movq	%rcx, %r13
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_intel_hdmi_set_gcp_infoframe
	xorl	%esi, %esi
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%r13), %esi
LBB0_3:
	orl	%r12d, %esi
	movl	%r15d, %edi
	callq	_I915_WRITE
	movl	%r15d, %edi
	callq	_POSTING_READ
	movq	_HDMI_INFOFRAME_TYPE_AVI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	12(%rbx), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_intel_write_infoframe
	movq	_HDMI_INFOFRAME_TYPE_SPD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	8(%rbx), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_intel_write_infoframe
	movq	_HDMI_INFOFRAME_TYPE_VENDOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	4(%rbx), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_intel_write_infoframe
	movq	_HDMI_INFOFRAME_TYPE_DRM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rcx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_write_infoframe          ## TAILCALL
LBB0_4:
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_I915_WRITE
	movl	%r15d, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_POSTING_READ                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDEO_DIP_ENABLE_VSC_HSW,4,2   ## @VIDEO_DIP_ENABLE_VSC_HSW
	.comm	_VIDEO_DIP_ENABLE_AVI_HSW,4,2   ## @VIDEO_DIP_ENABLE_AVI_HSW
	.comm	_VIDEO_DIP_ENABLE_GCP_HSW,4,2   ## @VIDEO_DIP_ENABLE_GCP_HSW
	.comm	_VIDEO_DIP_ENABLE_VS_HSW,4,2    ## @VIDEO_DIP_ENABLE_VS_HSW
	.comm	_VIDEO_DIP_ENABLE_GMP_HSW,4,2   ## @VIDEO_DIP_ENABLE_GMP_HSW
	.comm	_VIDEO_DIP_ENABLE_SPD_HSW,4,2   ## @VIDEO_DIP_ENABLE_SPD_HSW
	.comm	_VIDEO_DIP_ENABLE_DRM_GLK,4,2   ## @VIDEO_DIP_ENABLE_DRM_GLK
	.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
	.comm	_HDMI_INFOFRAME_TYPE_DRM,4,2    ## @HDMI_INFOFRAME_TYPE_DRM
	.no_dead_strip	_hsw_set_infoframes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hsw_set_infoframes
_hsw_set_infoframes:                    ; @hsw_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
	ldr	w0, [x0]
	bl	_to_i915
	mov	x23, x0
	ldr	w0, [x19, #16]
	bl	_HSW_TVIDEO_DIP_CTL
	mov	x21, x0
	bl	_I915_READ
	mov	x25, x0
	ldr	w1, [x19, #16]
	mov	x0, x23
	bl	_assert_hdmi_transcoder_func_disabled
Lloh0:
	adrp	x8, _VIDEO_DIP_ENABLE_VSC_HSW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIDEO_DIP_ENABLE_VSC_HSW@GOTPAGEOFF]
Lloh2:
	adrp	x9, _VIDEO_DIP_ENABLE_AVI_HSW@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_AVI_HSW@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x26, _VIDEO_DIP_ENABLE_GCP_HSW@GOTPAGE
Lloh7:
	ldr	x26, [x26, _VIDEO_DIP_ENABLE_GCP_HSW@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w8, w8, w9
Lloh8:
	adrp	x9, _VIDEO_DIP_ENABLE_VS_HSW@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_VS_HSW@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _VIDEO_DIP_ENABLE_GMP_HSW@GOTPAGE
Lloh12:
	ldr	x10, [x10, _VIDEO_DIP_ENABLE_GMP_HSW@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh13:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _VIDEO_DIP_ENABLE_SPD_HSW@GOTPAGE
Lloh15:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_SPD_HSW@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _VIDEO_DIP_ENABLE_DRM_GLK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_DRM_GLK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w23, w25, w8
	cbz	w24, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_intel_hdmi_set_gcp_infoframe
	ldr	w8, [x26]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w1, w8, w23
	mov	x0, x21
	bl	_I915_WRITE
	mov	x0, x21
	bl	_POSTING_READ
Lloh20:
	adrp	x8, _HDMI_INFOFRAME_TYPE_AVI@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HDMI_INFOFRAME_TYPE_AVI@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	add	x3, x19, #12
	mov	x0, x20
	mov	x1, x19
	bl	_intel_write_infoframe
Lloh23:
	adrp	x8, _HDMI_INFOFRAME_TYPE_SPD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HDMI_INFOFRAME_TYPE_SPD@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	add	x3, x19, #8
	mov	x0, x20
	mov	x1, x19
	bl	_intel_write_infoframe
Lloh26:
	adrp	x8, _HDMI_INFOFRAME_TYPE_VENDOR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HDMI_INFOFRAME_TYPE_VENDOR@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	add	x3, x19, #4
	mov	x0, x20
	mov	x1, x19
	bl	_intel_write_infoframe
Lloh29:
	adrp	x8, _HDMI_INFOFRAME_TYPE_DRM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _HDMI_INFOFRAME_TYPE_DRM@GOTPAGEOFF]
Lloh31:
	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_2:
	mov	x0, x21
	mov	x1, x23
	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
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDEO_DIP_ENABLE_VSC_HSW,4,2   ; @VIDEO_DIP_ENABLE_VSC_HSW
	.comm	_VIDEO_DIP_ENABLE_AVI_HSW,4,2   ; @VIDEO_DIP_ENABLE_AVI_HSW
	.comm	_VIDEO_DIP_ENABLE_GCP_HSW,4,2   ; @VIDEO_DIP_ENABLE_GCP_HSW
	.comm	_VIDEO_DIP_ENABLE_VS_HSW,4,2    ; @VIDEO_DIP_ENABLE_VS_HSW
	.comm	_VIDEO_DIP_ENABLE_GMP_HSW,4,2   ; @VIDEO_DIP_ENABLE_GMP_HSW
	.comm	_VIDEO_DIP_ENABLE_SPD_HSW,4,2   ; @VIDEO_DIP_ENABLE_SPD_HSW
	.comm	_VIDEO_DIP_ENABLE_DRM_GLK,4,2   ; @VIDEO_DIP_ENABLE_DRM_GLK
	.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
	.comm	_HDMI_INFOFRAME_TYPE_DRM,4,2    ; @HDMI_INFOFRAME_TYPE_DRM
	.no_dead_strip	_hsw_set_infoframes
.subsections_via_symbols
