	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bxt_ddi_phy_is_enabled         ## -- Begin function bxt_ddi_phy_is_enabled
	.p2align	4, 0x90
_bxt_ddi_phy_is_enabled:                ## @bxt_ddi_phy_is_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	callq	_bxt_get_phy_info
	movq	%rax, %rbx
	movq	_BXT_P_CR_GT_DISP_PWRON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, (%rbx)
	je	LBB0_6
## %bb.1:
	movl	%r14d, %edi
	callq	_BXT_PORT_CL1CM_DW0
	movl	%eax, %edi
	callq	_I915_READ
	movq	_PHY_POWER_GOOD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_PHY_RESERVED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%ecx, %edx
	andl	%eax, %edx
	cmpl	%ecx, %edx
	jne	LBB0_2
## %bb.3:
	movl	%r14d, %edi
	callq	_BXT_PHY_CTL_FAMILY
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %ecx
	movq	_COMMON_RESET_DIS@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	testl	%ecx, (%rdx)
	jne	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rdi
LBB0_5:
	movl	%r14d, %esi
	callq	_DRM_DEBUG_DRIVER
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BXT_P_CR_GT_DISP_PWRON,4,2     ## @BXT_P_CR_GT_DISP_PWRON
	.comm	_PHY_POWER_GOOD,4,2             ## @PHY_POWER_GOOD
	.comm	_PHY_RESERVED,4,2               ## @PHY_RESERVED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DDI PHY %d powered, but power hasn't settled\n"

	.comm	_COMMON_RESET_DIS,4,2           ## @COMMON_RESET_DIS
L_.str.1:                               ## @.str.1
	.asciz	"DDI PHY %d powered, but still in reset\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bxt_ddi_phy_is_enabled         ; -- Begin function bxt_ddi_phy_is_enabled
	.p2align	2
_bxt_ddi_phy_is_enabled:                ; @bxt_ddi_phy_is_enabled
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_bxt_get_phy_info
	mov	x20, x0
Lloh0:
	adrp	x8, _BXT_P_CR_GT_DISP_PWRON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BXT_P_CR_GT_DISP_PWRON@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_BXT_PORT_CL1CM_DW0
	bl	_I915_READ
Lloh3:
	adrp	x8, _PHY_POWER_GOOD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHY_POWER_GOOD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PHY_RESERVED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PHY_RESERVED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w9, w9, w8
	and	w9, w9, w0
	cmp	w9, w8
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_BXT_PHY_CTL_FAMILY
	bl	_I915_READ
Lloh9:
	adrp	x8, _COMMON_RESET_DIS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _COMMON_RESET_DIS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.3:
	mov	w0, #1
	b	LBB0_8
LBB0_4:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	mov	x1, x19
	bl	_DRM_DEBUG_DRIVER
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_BXT_P_CR_GT_DISP_PWRON,4,2     ; @BXT_P_CR_GT_DISP_PWRON
	.comm	_PHY_POWER_GOOD,4,2             ; @PHY_POWER_GOOD
	.comm	_PHY_RESERVED,4,2               ; @PHY_RESERVED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DDI PHY %d powered, but power hasn't settled\n"

	.comm	_COMMON_RESET_DIS,4,2           ; @COMMON_RESET_DIS
l_.str.1:                               ; @.str.1
	.asciz	"DDI PHY %d powered, but still in reset\n"

.subsections_via_symbols
