	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibx_infoframes_enabled
_ibx_infoframes_enabled:                ## @ibx_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	4(%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
	movl	%eax, %r14d
	movq	_VIDEO_DIP_ENABLE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	testl	%r14d, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_VIDEO_DIP_PORT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	andl	%r14d, %r12d
	movl	(%r15), %edi
	callq	_VIDEO_DIP_PORT
	cmpl	%eax, %r12d
	jne	LBB0_3
## %bb.2:
	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), %rax
	orl	(%rax), %ebx
	andl	%r14d, %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDEO_DIP_ENABLE,4,2           ## @VIDEO_DIP_ENABLE
	.comm	_VIDEO_DIP_PORT_MASK,4,2        ## @VIDEO_DIP_PORT_MASK
	.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	_ibx_infoframes_enabled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibx_infoframes_enabled
_ibx_infoframes_enabled:                ; @ibx_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
	mov	x20, x0
	ldr	w0, [x0, #4]
	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_3
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _VIDEO_DIP_PORT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIDEO_DIP_PORT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w21, w8, w0
	ldr	w0, [x20]
	bl	_VIDEO_DIP_PORT
	cmp	w21, w0
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _VIDEO_DIP_ENABLE_AVI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VIDEO_DIP_ENABLE_AVI@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _VIDEO_DIP_ENABLE_VENDOR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_VENDOR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _VIDEO_DIP_ENABLE_GAMUT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _VIDEO_DIP_ENABLE_GAMUT@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh14:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _VIDEO_DIP_ENABLE_SPD@GOTPAGE
Lloh16:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_SPD@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _VIDEO_DIP_ENABLE_GCP@GOTPAGE
Lloh19:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_GCP@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
	and	w0, w8, w19
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDEO_DIP_ENABLE,4,2           ; @VIDEO_DIP_ENABLE
	.comm	_VIDEO_DIP_PORT_MASK,4,2        ; @VIDEO_DIP_PORT_MASK
	.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	_ibx_infoframes_enabled
.subsections_via_symbols
