	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehl_combo_phy_a_mux
_ehl_combo_phy_a_mux:                   ## @ehl_combo_phy_a_mux
	.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
	movl	%esi, %r14d
	movq	(%rdi), %rax
	movq	_PORT_A@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r15
	movq	_PORT_D@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rbx
	xorl	%esi, %esi
	callq	_intel_bios_is_dsi_present
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	testq	%r15, %r15
	jne	LBB0_4
## %bb.2:
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_ICL_PHY_MISC_MUX_DDID@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	%r14d, %eax
	jmp	LBB0_7
LBB0_4:
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_6:
	movq	_ICL_PHY_MISC_MUX_DDID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%r14d, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_A,8,3                     ## @PORT_A
	.comm	_PORT_D,8,3                     ## @PORT_D
	.comm	_ICL_PHY_MISC_MUX_DDID,4,2      ## @ICL_PHY_MISC_MUX_DDID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VBT claims to have both internal and external displays on PHY A.  Configuring for internal.\n"

	.no_dead_strip	_ehl_combo_phy_a_mux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehl_combo_phy_a_mux
_ehl_combo_phy_a_mux:                   ; @ehl_combo_phy_a_mux
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PORT_A@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PORT_A@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x21, [x8, x9, lsl #3]
Lloh3:
	adrp	x9, _PORT_D@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PORT_D@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x20, [x8, x9, lsl #3]
	mov	x1, #0
	bl	_intel_bios_is_dsi_present
	cmp	x20, #0
	ccmp	x21, #0, #0, ne
	ccmp	w0, #0, #0, eq
	b.eq	LBB0_4
; %bb.1:
	cbz	x20, LBB0_3
; %bb.2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_3:
Lloh8:
	adrp	x8, _ICL_PHY_MISC_MUX_DDID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ICL_PHY_MISC_MUX_DDID@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w0, w19, w8
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _ICL_PHY_MISC_MUX_DDID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ICL_PHY_MISC_MUX_DDID@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w0, w8, w19
LBB0_5:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_A,8,3                     ; @PORT_A
	.comm	_PORT_D,8,3                     ; @PORT_D
	.comm	_ICL_PHY_MISC_MUX_DDID,4,2      ; @ICL_PHY_MISC_MUX_DDID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VBT claims to have both internal and external displays on PHY A.  Configuring for internal.\n"

	.no_dead_strip	_ehl_combo_phy_a_mux
.subsections_via_symbols
