	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icl_tc_phy_is_connected
_icl_tc_phy_is_connected:               ## @icl_tc_phy_is_connected
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_icl_tc_phy_status_complete
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_icl_tc_phy_is_in_safe_mode
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	8(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movl	8(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movq	(%rbx), %rax
	movq	_TC_PORT_TBT_ALT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%al
	jmp	LBB0_5
LBB0_4:
	movq	(%rbx), %rax
	movq	_TC_PORT_DP_ALT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_TC_PORT_LEGACY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
LBB0_5:
	movzbl	%al, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Port %s: PHY status not complete\n"

	.comm	_TC_PORT_TBT_ALT,8,3            ## @TC_PORT_TBT_ALT
L_.str.1:                               ## @.str.1
	.asciz	"Port %s: PHY still in safe mode\n"

	.comm	_TC_PORT_DP_ALT,8,3             ## @TC_PORT_DP_ALT
	.comm	_TC_PORT_LEGACY,8,3             ## @TC_PORT_LEGACY
	.no_dead_strip	_icl_tc_phy_is_connected
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icl_tc_phy_is_connected
_icl_tc_phy_is_connected:               ; @icl_tc_phy_is_connected
	.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, x0
	bl	_icl_tc_phy_status_complete
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_icl_tc_phy_is_in_safe_mode
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w1, [x19, #8]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w0, #0
	b	LBB0_6
LBB0_3:
	ldr	w1, [x19, #8]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _TC_PORT_TBT_ALT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _TC_PORT_TBT_ALT@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _TC_PORT_DP_ALT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TC_PORT_DP_ALT@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh10:
	adrp	x9, _TC_PORT_LEGACY@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TC_PORT_LEGACY@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
LBB0_5:
	cset	w0, eq
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Port %s: PHY status not complete\n"

	.comm	_TC_PORT_TBT_ALT,8,3            ; @TC_PORT_TBT_ALT
l_.str.1:                               ; @.str.1
	.asciz	"Port %s: PHY still in safe mode\n"

	.comm	_TC_PORT_DP_ALT,8,3             ; @TC_PORT_DP_ALT
	.comm	_TC_PORT_LEGACY,8,3             ; @TC_PORT_LEGACY
	.no_dead_strip	_icl_tc_phy_is_connected
.subsections_via_symbols
