	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function g4x_infoframes_enabled
_g4x_infoframes_enabled:                ## @g4x_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	%rdi, %r15
	movl	4(%rdi), %edi
	callq	_to_i915
	movq	_VIDEO_DIP_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %r14d
	movq	_VIDEO_DIP_ENABLE@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	testl	%r14d, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_VIDEO_DIP_PORT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r14d, %ebx
	movl	(%r15), %edi
	callq	_VIDEO_DIP_PORT
	cmpl	%eax, %ebx
	jne	LBB0_3
## %bb.2:
	movq	_VIDEO_DIP_ENABLE_AVI@GOTPCREL(%rip), %rax
	movq	_VIDEO_DIP_ENABLE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	movq	_VIDEO_DIP_ENABLE_SPD@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	andl	%r14d, %r12d
LBB0_3:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDEO_DIP_CTL,4,2              ## @VIDEO_DIP_CTL
	.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_SPD,4,2       ## @VIDEO_DIP_ENABLE_SPD
	.no_dead_strip	_g4x_infoframes_enabled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g4x_infoframes_enabled
_g4x_infoframes_enabled:                ; @g4x_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	x20, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
Lloh0:
	adrp	x8, _VIDEO_DIP_CTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIDEO_DIP_CTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
Lloh3:
	adrp	x8, _VIDEO_DIP_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIDEO_DIP_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
Lloh6:
	adrp	x8, _VIDEO_DIP_PORT_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VIDEO_DIP_PORT_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w21, w8, w0
	ldr	w0, [x20]
	bl	_VIDEO_DIP_PORT
	cmp	w21, w0
	b.ne	LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _VIDEO_DIP_ENABLE_AVI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VIDEO_DIP_ENABLE_AVI@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _VIDEO_DIP_ENABLE_VENDOR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_VENDOR@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
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
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDEO_DIP_CTL,4,2              ; @VIDEO_DIP_CTL
	.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_SPD,4,2       ; @VIDEO_DIP_ENABLE_SPD
	.no_dead_strip	_g4x_infoframes_enabled
.subsections_via_symbols
