	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hsw_infoframes_enabled
_hsw_infoframes_enabled:                ## @hsw_infoframes_enabled
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_HSW_TVIDEO_DIP_CTL
	movl	%eax, %edi
	callq	_I915_READ
	movq	_VIDEO_DIP_ENABLE_VSC_HSW@GOTPCREL(%rip), %rcx
	movq	_VIDEO_DIP_ENABLE_AVI_HSW@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	movq	_VIDEO_DIP_ENABLE_GCP_HSW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_VIDEO_DIP_ENABLE_VS_HSW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_VIDEO_DIP_ENABLE_GMP_HSW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movl	%eax, %r15d
	movq	_VIDEO_DIP_ENABLE_SPD_HSW@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_INTEL_GEN
	cmpl	$9, %eax
	jg	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_IS_GEMINILAKE
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	_VIDEO_DIP_ENABLE_DRM_GLK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_3:
	andl	%r15d, %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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
	.no_dead_strip	_hsw_infoframes_enabled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hsw_infoframes_enabled
_hsw_infoframes_enabled:                ; @hsw_infoframes_enabled
	.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
	mov	x19, x1
	ldr	w0, [x0]
	bl	_to_i915
	mov	x20, x0
	ldr	w0, [x19]
	bl	_HSW_TVIDEO_DIP_CTL
	bl	_I915_READ
	mov	x19, x0
Lloh0:
	adrp	x8, _VIDEO_DIP_ENABLE_VSC_HSW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIDEO_DIP_ENABLE_VSC_HSW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _VIDEO_DIP_ENABLE_AVI_HSW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_AVI_HSW@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _VIDEO_DIP_ENABLE_GCP_HSW@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_GCP_HSW@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _VIDEO_DIP_ENABLE_VS_HSW@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_VS_HSW@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _VIDEO_DIP_ENABLE_GMP_HSW@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_GMP_HSW@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _VIDEO_DIP_ENABLE_SPD_HSW@GOTPAGE
Lloh16:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_SPD_HSW@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w21, w8, w9
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #9
	b.gt	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_IS_GEMINILAKE
	cbz	x0, LBB0_3
LBB0_2:
Lloh18:
	adrp	x8, _VIDEO_DIP_ENABLE_DRM_GLK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VIDEO_DIP_ENABLE_DRM_GLK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_3:
	and	w0, w21, w19
	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	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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
	.no_dead_strip	_hsw_infoframes_enabled
.subsections_via_symbols
