	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpt_infoframes_enabled
_cpt_infoframes_enabled:                ## @cpt_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movl	(%rdi), %edi
	callq	_to_i915
	movl	(%rbx), %edi
	callq	_to_intel_crtc
	movl	(%rax), %edi
	callq	_TVIDEO_DIP_CTL
	movl	%eax, %edi
	callq	_I915_READ
	movq	_VIDEO_DIP_ENABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_VIDEO_DIP_ENABLE_AVI@GOTPCREL(%rip), %rdx
	movq	_VIDEO_DIP_ENABLE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_VIDEO_DIP_ENABLE_GAMUT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_VIDEO_DIP_ENABLE_SPD@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_VIDEO_DIP_ENABLE_GCP@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	andl	%eax, %ecx
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
LBB0_3:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	.no_dead_strip	_cpt_infoframes_enabled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpt_infoframes_enabled
_cpt_infoframes_enabled:                ; @cpt_infoframes_enabled
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	w0, [x0]
	bl	_to_i915
	ldr	w0, [x19]
	bl	_to_intel_crtc
	ldr	w0, [x0]
	bl	_TVIDEO_DIP_CTL
	bl	_I915_READ
Lloh0:
	adrp	x8, _VIDEO_DIP_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIDEO_DIP_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _VIDEO_DIP_ENABLE_AVI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIDEO_DIP_ENABLE_AVI@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _VIDEO_DIP_ENABLE_VENDOR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_VENDOR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _VIDEO_DIP_ENABLE_GAMUT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _VIDEO_DIP_ENABLE_GAMUT@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh11:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _VIDEO_DIP_ENABLE_SPD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_SPD@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _VIDEO_DIP_ENABLE_GCP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_GCP@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
	and	w0, w8, w0
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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
	.cfi_endproc
                                        ; -- End function
	.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
	.no_dead_strip	_cpt_infoframes_enabled
.subsections_via_symbols
