	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_dp_port_enabled          ## -- Begin function intel_dp_port_enabled
	.p2align	4, 0x90
_intel_dp_port_enabled:                 ## @intel_dp_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_I915_READ
	movl	%eax, %r15d
	movq	_DP_PORT_EN@GOTPCREL(%rip), %rax
	movl	%r15d, %r13d
	andl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_IS_IVYBRIDGE
	movq	_PORT_A@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpl	%r12d, (%r14)
	jne	LBB0_3
## %bb.2:
	movq	_DP_PIPE_SEL_MASK_IVB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	movq	_DP_PIPE_SEL_SHIFT_IVB@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_3:
	movq	%rbx, %rdi
	callq	_HAS_PCH_CPT
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	cmpl	%r12d, (%r14)
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_cpt_dp_port_selected
	andl	%eax, %r13d
	jmp	LBB0_10
LBB0_6:
	movq	%rbx, %rdi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_DP_PIPE_SEL_MASK_CHV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	movq	_DP_PIPE_SEL_SHIFT_CHV@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_8:
	movq	_DP_PIPE_SEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	movq	_DP_PIPE_SEL_SHIFT@GOTPCREL(%rip), %rcx
LBB0_9:
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_10:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_PORT_EN,4,2                 ## @DP_PORT_EN
	.comm	_PORT_A,4,2                     ## @PORT_A
	.comm	_DP_PIPE_SEL_MASK_IVB,4,2       ## @DP_PIPE_SEL_MASK_IVB
	.comm	_DP_PIPE_SEL_SHIFT_IVB,4,2      ## @DP_PIPE_SEL_SHIFT_IVB
	.comm	_DP_PIPE_SEL_MASK_CHV,4,2       ## @DP_PIPE_SEL_MASK_CHV
	.comm	_DP_PIPE_SEL_SHIFT_CHV,4,2      ## @DP_PIPE_SEL_SHIFT_CHV
	.comm	_DP_PIPE_SEL_MASK,4,2           ## @DP_PIPE_SEL_MASK
	.comm	_DP_PIPE_SEL_SHIFT,4,2          ## @DP_PIPE_SEL_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_dp_port_enabled          ; -- Begin function intel_dp_port_enabled
	.p2align	2
_intel_dp_port_enabled:                 ; @intel_dp_port_enabled
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x22, x2
	mov	x23, x0
	mov	x0, x1
	bl	_I915_READ
	mov	x21, x0
Lloh0:
	adrp	x8, _DP_PORT_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DP_PORT_EN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w19, w8, w0
	mov	x0, x23
	bl	_IS_IVYBRIDGE
Lloh3:
	adrp	x24, _PORT_A@GOTPAGE
Lloh4:
	ldr	x24, [x24, _PORT_A@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x24]
	cmp	w8, w22
	b.ne	LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _DP_PIPE_SEL_MASK_IVB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DP_PIPE_SEL_MASK_IVB@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w8, w8, w21
Lloh8:
	adrp	x9, _DP_PIPE_SEL_SHIFT_IVB@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DP_PIPE_SEL_SHIFT_IVB@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
	mov	x0, x23
	bl	_HAS_PCH_CPT
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w8, [x24]
	cmp	w8, w22
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	bl	_cpt_dp_port_selected
	and	w19, w0, w19
	b	LBB0_10
LBB0_6:
	mov	x0, x23
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_8
; %bb.7:
Lloh10:
	adrp	x8, _DP_PIPE_SEL_MASK_CHV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DP_PIPE_SEL_MASK_CHV@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w8, w8, w21
Lloh13:
	adrp	x9, _DP_PIPE_SEL_SHIFT_CHV@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DP_PIPE_SEL_SHIFT_CHV@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh15:
	adrp	x8, _DP_PIPE_SEL_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DP_PIPE_SEL_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	and	w8, w8, w21
Lloh18:
	adrp	x9, _DP_PIPE_SEL_SHIFT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DP_PIPE_SEL_SHIFT@GOTPAGEOFF]
LBB0_9:
	ldr	w9, [x9]
	asr	w8, w8, w9
	str	w8, [x20]
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_PORT_EN,4,2                 ; @DP_PORT_EN
	.comm	_PORT_A,4,2                     ; @PORT_A
	.comm	_DP_PIPE_SEL_MASK_IVB,4,2       ; @DP_PIPE_SEL_MASK_IVB
	.comm	_DP_PIPE_SEL_SHIFT_IVB,4,2      ; @DP_PIPE_SEL_SHIFT_IVB
	.comm	_DP_PIPE_SEL_MASK_CHV,4,2       ; @DP_PIPE_SEL_MASK_CHV
	.comm	_DP_PIPE_SEL_SHIFT_CHV,4,2      ; @DP_PIPE_SEL_SHIFT_CHV
	.comm	_DP_PIPE_SEL_MASK,4,2           ; @DP_PIPE_SEL_MASK
	.comm	_DP_PIPE_SEL_SHIFT,4,2          ; @DP_PIPE_SEL_SHIFT
.subsections_via_symbols
