	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc_port_live_status_mask
_tc_port_live_status_mask:              ## @tc_port_live_status_mask
	.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	%rdi, %r14
	movl	12(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r15
	movl	8(%r14), %esi
	movq	%rax, %rdi
	callq	_intel_port_to_tc
	movl	%eax, %r12d
	movl	4(%r14), %edi
	callq	_PORT_TX_DFLEXDPSP
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_intel_uncore_read
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_TC_LIVE_STATE_TBT
	testl	%ebx, %eax
	je	LBB0_3
## %bb.4:
	movq	_TC_PORT_TBT_ALT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r13d
	jmp	LBB0_5
LBB0_1:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	xorl	%r13d, %r13d
	jmp	LBB0_11
LBB0_3:
	xorl	%r13d, %r13d
LBB0_5:
	movl	%r12d, %edi
	callq	_TC_LIVE_STATE_TC
	testl	%ebx, %eax
	je	LBB0_7
## %bb.6:
	movq	_TC_PORT_DP_ALT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %r13d
LBB0_7:
	movq	_SDEISR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_intel_uncore_read
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_SDE_TC_HOTPLUG_ICP
	testl	%ebx, %eax
	je	LBB0_9
## %bb.8:
	movq	_TC_PORT_LEGACY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %r13d
LBB0_9:
	movl	%r13d, %edi
	callq	_hweight32
	xorl	%edi, %edi
	cmpl	$2, %eax
	setge	%dil
	callq	_WARN_ON
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_tc_port_fixup_legacy_flag
LBB0_11:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Port %s: PHY in TCCOLD, nothing connected\n"

	.comm	_TC_PORT_TBT_ALT,4,2            ## @TC_PORT_TBT_ALT
	.comm	_TC_PORT_DP_ALT,4,2             ## @TC_PORT_DP_ALT
	.comm	_SDEISR,4,2                     ## @SDEISR
	.comm	_TC_PORT_LEGACY,4,2             ## @TC_PORT_LEGACY
	.no_dead_strip	_tc_port_live_status_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc_port_live_status_mask
_tc_port_live_status_mask:              ; @tc_port_live_status_mask
	.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	x19, x0
	ldr	w0, [x0, #12]
	bl	_to_i915
	mov	x21, x0
	ldr	w1, [x19, #8]
	bl	_intel_port_to_tc
	mov	x22, x0
	ldr	w0, [x19, #4]
	bl	_PORT_TX_DFLEXDPSP
	mov	x1, x0
	mov	x0, x21
	bl	_intel_uncore_read
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	mov	x23, x0
	mov	x0, x22
	bl	_TC_LIVE_STATE_TBT
	tst	w0, w23
	b.eq	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _TC_PORT_TBT_ALT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TC_PORT_TBT_ALT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_BIT
	mov	x20, x0
	b	LBB0_5
LBB0_3:
	ldr	w1, [x19]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w20, #0
	b	LBB0_11
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x22
	bl	_TC_LIVE_STATE_TC
	tst	w0, w23
	b.eq	LBB0_7
; %bb.6:
Lloh5:
	adrp	x8, _TC_PORT_DP_ALT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TC_PORT_DP_ALT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_BIT
	orr	w20, w0, w20
LBB0_7:
Lloh8:
	adrp	x8, _SDEISR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SDEISR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_intel_uncore_read
	mov	x21, x0
	mov	x0, x22
	bl	_SDE_TC_HOTPLUG_ICP
	tst	w0, w21
	b.eq	LBB0_9
; %bb.8:
Lloh11:
	adrp	x8, _TC_PORT_LEGACY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TC_PORT_LEGACY@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_BIT
	orr	w20, w0, w20
LBB0_9:
	mov	x0, x20
	bl	_hweight32
	cmp	w0, #1
	cset	w0, gt
	bl	_WARN_ON
	cbnz	w0, LBB0_11
; %bb.10:
	mov	x0, x19
	mov	x1, x20
	bl	_tc_port_fixup_legacy_flag
LBB0_11:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Port %s: PHY in TCCOLD, nothing connected\n"

	.comm	_TC_PORT_TBT_ALT,4,2            ; @TC_PORT_TBT_ALT
	.comm	_TC_PORT_DP_ALT,4,2             ; @TC_PORT_DP_ALT
	.comm	_SDEISR,4,2                     ; @SDEISR
	.comm	_TC_PORT_LEGACY,4,2             ; @TC_PORT_LEGACY
	.no_dead_strip	_tc_port_live_status_mask
.subsections_via_symbols
