	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_sdvo_port_enabled        ## -- Begin function intel_sdvo_port_enabled
	.p2align	4, 0x90
_intel_sdvo_port_enabled:               ## @intel_sdvo_port_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	%rdx, %r14
	movq	%rdi, %r15
	movl	%esi, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_HAS_PCH_CPT
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_SDVO_PIPE_SEL_SHIFT_CPT@GOTPCREL(%rip), %rax
	movq	_SDVO_PIPE_SEL_MASK_CPT@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	%r15, %rdi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	movq	_SDVO_PIPE_SEL_MASK_CHV@GOTPCREL(%rip), %rcx
	cmoveq	_SDVO_PIPE_SEL_MASK@GOTPCREL(%rip), %rcx
	movq	_SDVO_PIPE_SEL_SHIFT_CHV@GOTPCREL(%rip), %rax
	cmoveq	_SDVO_PIPE_SEL_SHIFT@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rcx), %edx
	andl	%ebx, %edx
	movb	(%rax), %cl
	sarl	%cl, %edx
	movl	%edx, (%r14)
	movq	_SDVO_ENABLE@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDVO_PIPE_SEL_MASK_CPT,4,2     ## @SDVO_PIPE_SEL_MASK_CPT
	.comm	_SDVO_PIPE_SEL_SHIFT_CPT,4,2    ## @SDVO_PIPE_SEL_SHIFT_CPT
	.comm	_SDVO_PIPE_SEL_MASK_CHV,4,2     ## @SDVO_PIPE_SEL_MASK_CHV
	.comm	_SDVO_PIPE_SEL_SHIFT_CHV,4,2    ## @SDVO_PIPE_SEL_SHIFT_CHV
	.comm	_SDVO_PIPE_SEL_MASK,4,2         ## @SDVO_PIPE_SEL_MASK
	.comm	_SDVO_PIPE_SEL_SHIFT,4,2        ## @SDVO_PIPE_SEL_SHIFT
	.comm	_SDVO_ENABLE,4,2                ## @SDVO_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_sdvo_port_enabled        ; -- Begin function intel_sdvo_port_enabled
	.p2align	2
_intel_sdvo_port_enabled:               ; @intel_sdvo_port_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, x2
	mov	x21, x0
	mov	x0, x1
	bl	_I915_READ
	mov	x20, x0
	mov	x0, x21
	bl	_HAS_PCH_CPT
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _SDVO_PIPE_SEL_SHIFT_CPT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SDVO_PIPE_SEL_SHIFT_CPT@GOTPAGEOFF]
Lloh2:
	adrp	x8, _SDVO_PIPE_SEL_MASK_CPT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SDVO_PIPE_SEL_MASK_CPT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	x0, x21
	bl	_IS_CHERRYVIEW
Lloh4:
	adrp	x8, _SDVO_PIPE_SEL_MASK_CHV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SDVO_PIPE_SEL_MASK_CHV@GOTPAGEOFF]
Lloh6:
	adrp	x9, _SDVO_PIPE_SEL_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SDVO_PIPE_SEL_MASK@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
Lloh8:
	adrp	x9, _SDVO_PIPE_SEL_SHIFT_CHV@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SDVO_PIPE_SEL_SHIFT_CHV@GOTPAGEOFF]
Lloh10:
	adrp	x10, _SDVO_PIPE_SEL_SHIFT@GOTPAGE
Lloh11:
	ldr	x10, [x10, _SDVO_PIPE_SEL_SHIFT@GOTPAGEOFF]
	csel	x9, x10, x9, eq
LBB0_3:
	ldr	w8, [x8]
	and	w8, w8, w20
	ldr	w9, [x9]
	asr	w8, w8, w9
	str	w8, [x19]
Lloh12:
	adrp	x8, _SDVO_ENABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SDVO_ENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w0, w8, w20
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SDVO_PIPE_SEL_MASK_CPT,4,2     ; @SDVO_PIPE_SEL_MASK_CPT
	.comm	_SDVO_PIPE_SEL_SHIFT_CPT,4,2    ; @SDVO_PIPE_SEL_SHIFT_CPT
	.comm	_SDVO_PIPE_SEL_MASK_CHV,4,2     ; @SDVO_PIPE_SEL_MASK_CHV
	.comm	_SDVO_PIPE_SEL_SHIFT_CHV,4,2    ; @SDVO_PIPE_SEL_SHIFT_CHV
	.comm	_SDVO_PIPE_SEL_MASK,4,2         ; @SDVO_PIPE_SEL_MASK
	.comm	_SDVO_PIPE_SEL_SHIFT,4,2        ; @SDVO_PIPE_SEL_SHIFT
	.comm	_SDVO_ENABLE,4,2                ; @SDVO_ENABLE
.subsections_via_symbols
