	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_tc_port_sanitize         ## -- Begin function intel_tc_port_sanitize
	.p2align	4, 0x90
_intel_tc_port_sanitize:                ## @intel_tc_port_sanitize
	.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
	movq	%rdi, %rbx
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_intel_tc_port_get_current_mode
	movl	%eax, 4(%rbx)
	cmpq	$0, 24(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_intel_dp_mst_encoder_active_links
	movl	%eax, %r14d
	testl	%r14d, %r14d
	jne	LBB0_5
	jmp	LBB0_8
LBB0_2:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.3:
	callq	_to_intel_crtc
	movl	(%rax), %r14d
	testl	%r14d, %r14d
	je	LBB0_8
LBB0_5:
	movq	%rbx, %rdi
	callq	_icl_tc_phy_is_connected
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	8(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %edx
	callq	_DRM_DEBUG_KMS
LBB0_7:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_intel_tc_port_link_init_refcount
	jmp	LBB0_10
LBB0_8:
	cmpq	$0, 16(%rbx)
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_icl_tc_phy_connect
LBB0_10:
	movl	4(%rbx), %edi
	movl	8(%rbx), %r14d
	callq	_tc_port_mode_name
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_DRM_DEBUG_KMS
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Port %s: PHY disconnected with %d active link(s)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Port %s: sanitize mode (%s)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_tc_port_sanitize         ; -- Begin function intel_tc_port_sanitize
	.p2align	2
_intel_tc_port_sanitize:                ; @intel_tc_port_sanitize
	.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	_mutex_lock
	mov	x0, x19
	bl	_intel_tc_port_get_current_mode
	str	w0, [x19, #4]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_intel_dp_mst_encoder_active_links
	mov	x20, x0
	cbnz	w20, LBB0_4
	b	LBB0_7
LBB0_2:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_7
; %bb.3:
	bl	_to_intel_crtc
	ldr	w20, [x0]
	cbz	w20, LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_icl_tc_phy_is_connected
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w1, [x19, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_DRM_DEBUG_KMS
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_intel_tc_port_link_init_refcount
	b	LBB0_9
LBB0_7:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w1, #1
	bl	_icl_tc_phy_connect
LBB0_9:
	ldp	w0, w20, [x19, #4]
	bl	_tc_port_mode_name
	mov	x2, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_DRM_DEBUG_KMS
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Port %s: PHY disconnected with %d active link(s)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Port %s: sanitize mode (%s)\n"

.subsections_via_symbols
