	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_core_link_disable_stream       ## -- Begin function core_link_disable_stream
	.p2align	4, 0x90
_core_link_disable_stream:              ## @core_link_disable_stream
	.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, %r13
	movq	(%rdi), %rax
	movq	24(%rax), %rcx
	movq	32(%rax), %rax
	movq	(%rax), %r15
	movq	(%rcx), %r12
	callq	*8(%r15)
	movq	(%r13), %rax
	movq	(%rax), %rdi
	movq	_SIGNAL_TYPE_DISPLAY_PORT_MST@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_deallocate_mst_payload
	movq	(%r13), %rax
	movq	(%rax), %rdi
LBB0_2:
	callq	_dc_is_hdmi_signal
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movl	$0, -48(%rbp)
	movq	8(%r13), %rax
	movl	(%rax), %r14d
	movq	_EXT_DISPLAY_PATH_CAPS__EXT_CHIP_MASK@GOTPCREL(%rip), %rax
	movzwl	(%rax), %ebx
	andw	(%r12), %bx
	movl	4(%r12), %edi
	movl	$165000, %esi                   ## imm = 0x28488
	xorl	%edx, %edx
	callq	_dal_ddc_service_write_scdc_data
	movq	_EXT_DISPLAY_PATH_CAPS__HDMI20_TISN65DP159RSBT@GOTPCREL(%rip), %rax
	cmpw	(%rax), %bx
	jne	LBB0_7
## %bb.4:
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_get_ext_hdmi_settings
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	-48(%rbp), %rcx
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_write_i2c_retimer_setting
	jmp	LBB0_9
LBB0_7:
	movq	_EXT_DISPLAY_PATH_CAPS__HDMI20_PI3EQX1204@GOTPCREL(%rip), %rax
	cmpw	(%rax), %bx
	jne	LBB0_9
## %bb.8:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_write_i2c_redriver_setting
	jmp	LBB0_9
LBB0_6:
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_write_i2c_default_retimer_setting
LBB0_9:
	movq	%r13, %rdi
	callq	*(%r15)
	movq	(%r13), %rax
	movl	16(%rax), %edi
	movq	(%rax), %rsi
	callq	_disable_link
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGNAL_TYPE_DISPLAY_PORT_MST,8,3 ## @SIGNAL_TYPE_DISPLAY_PORT_MST
	.comm	_EXT_DISPLAY_PATH_CAPS__EXT_CHIP_MASK,2,1 ## @EXT_DISPLAY_PATH_CAPS__EXT_CHIP_MASK
	.comm	_EXT_DISPLAY_PATH_CAPS__HDMI20_TISN65DP159RSBT,2,1 ## @EXT_DISPLAY_PATH_CAPS__HDMI20_TISN65DP159RSBT
	.comm	_EXT_DISPLAY_PATH_CAPS__HDMI20_PI3EQX1204,2,1 ## @EXT_DISPLAY_PATH_CAPS__HDMI20_PI3EQX1204
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_core_link_disable_stream       ; -- Begin function core_link_disable_stream
	.p2align	2
_core_link_disable_stream:              ; @core_link_disable_stream
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x8, [x0]
	ldp	x8, x9, [x8, #24]
	ldr	x21, [x9]
	ldr	x22, [x8]
	ldr	x8, [x21, #8]
	blr	x8
	ldr	x8, [x19]
	ldr	x0, [x8]
Lloh0:
	adrp	x8, _SIGNAL_TYPE_DISPLAY_PORT_MST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIGNAL_TYPE_DISPLAY_PORT_MST@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_deallocate_mst_payload
	ldr	x8, [x19]
	ldr	x0, [x8]
LBB0_2:
	bl	_dc_is_hdmi_signal
	cbz	x0, LBB0_9
; %bb.3:
	str	wzr, [sp, #8]
	ldr	x8, [x19, #8]
	ldr	w20, [x8]
	ldrh	w8, [x22]
Lloh3:
	adrp	x9, _EXT_DISPLAY_PATH_CAPS__EXT_CHIP_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EXT_DISPLAY_PATH_CAPS__EXT_CHIP_MASK@GOTPAGEOFF]
	ldrh	w9, [x9]
	and	w23, w9, w8
	ldr	w0, [x22, #4]
	mov	w1, #33928
	movk	w1, #2, lsl #16
	mov	w2, #0
	bl	_dal_ddc_service_write_scdc_data
Lloh5:
	adrp	x8, _EXT_DISPLAY_PATH_CAPS__HDMI20_TISN65DP159RSBT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EXT_DISPLAY_PATH_CAPS__HDMI20_TISN65DP159RSBT@GOTPAGEOFF]
	ldrh	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_6
; %bb.4:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_get_ext_hdmi_settings
	cbz	x0, LBB0_8
; %bb.5:
	add	x3, sp, #8
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_write_i2c_retimer_setting
	b	LBB0_9
LBB0_6:
Lloh7:
	adrp	x8, _EXT_DISPLAY_PATH_CAPS__HDMI20_PI3EQX1204@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EXT_DISPLAY_PATH_CAPS__HDMI20_PI3EQX1204@GOTPAGEOFF]
	ldrh	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_9
; %bb.7:
	mov	x0, x19
	mov	w1, #0
	bl	_write_i2c_redriver_setting
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_write_i2c_default_retimer_setting
LBB0_9:
	ldr	x8, [x21]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
	ldr	w0, [x8, #16]
	ldr	x1, [x8]
	bl	_disable_link
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGNAL_TYPE_DISPLAY_PORT_MST,8,3 ; @SIGNAL_TYPE_DISPLAY_PORT_MST
	.comm	_EXT_DISPLAY_PATH_CAPS__EXT_CHIP_MASK,2,1 ; @EXT_DISPLAY_PATH_CAPS__EXT_CHIP_MASK
	.comm	_EXT_DISPLAY_PATH_CAPS__HDMI20_TISN65DP159RSBT,2,1 ; @EXT_DISPLAY_PATH_CAPS__HDMI20_TISN65DP159RSBT
	.comm	_EXT_DISPLAY_PATH_CAPS__HDMI20_PI3EQX1204,2,1 ; @EXT_DISPLAY_PATH_CAPS__HDMI20_PI3EQX1204
.subsections_via_symbols
