	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_dp_mst_mode
_set_dp_mst_mode:                       ## @set_dp_mst_mode
	.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
	cmpl	$1, %esi
	je	LBB0_4
## %bb.1:
	testl	%esi, %esi
	jne	LBB0_8
## %bb.2:
	movq	(%rbx), %rax
	movq	_dc_connection_mst_branch@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.3:
	movl	16(%rbx), %esi
	movq	%rbx, %rdi
	callq	_dp_disable_link_phy_mst
	movq	_dc_connection_single@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	24(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	_SIGNAL_TYPE_DISPLAY_PORT@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_4:
	movq	(%rbx), %rax
	movq	_dc_connection_single@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.5:
	movq	24(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.6:
	movl	16(%rbx), %esi
	movq	%rbx, %rdi
	callq	_dp_disable_link_phy
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_dp_enable_mst_on_sink
	movq	_dc_connection_mst_branch@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	8(%rbx), %rax
	movq	_SIGNAL_TYPE_DISPLAY_PORT_MST@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dc_connection_mst_branch,8,3   ## @dc_connection_mst_branch
	.comm	_dc_connection_single,8,3       ## @dc_connection_single
	.comm	_SIGNAL_TYPE_DISPLAY_PORT,4,2   ## @SIGNAL_TYPE_DISPLAY_PORT
	.comm	_SIGNAL_TYPE_DISPLAY_PORT_MST,4,2 ## @SIGNAL_TYPE_DISPLAY_PORT_MST
	.no_dead_strip	_set_dp_mst_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_dp_mst_mode
_set_dp_mst_mode:                       ; @set_dp_mst_mode
	.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
	cmp	w1, #1
	b.eq	LBB0_4
; %bb.1:
	cbnz	w1, LBB0_8
; %bb.2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _dc_connection_mst_branch@GOTPAGE
Lloh1:
	ldr	x9, [x9, _dc_connection_mst_branch@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.3:
	ldr	w1, [x19, #16]
	mov	x0, x19
	bl	_dp_disable_link_phy_mst
Lloh3:
	adrp	x8, _dc_connection_single@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dc_connection_single@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x8]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	stp	x9, x8, [x19]
Lloh6:
	adrp	x9, _SIGNAL_TYPE_DISPLAY_PORT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SIGNAL_TYPE_DISPLAY_PORT@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _dc_connection_single@GOTPAGE
Lloh9:
	ldr	x9, [x9, _dc_connection_single@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	w1, [x19, #16]
	mov	x0, x19
	bl	_dp_disable_link_phy
	mov	x0, x19
	mov	w1, #1
	bl	_dp_enable_mst_on_sink
Lloh11:
	adrp	x8, _dc_connection_mst_branch@GOTPAGE
Lloh12:
	ldr	x8, [x8, _dc_connection_mst_branch@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x9, _SIGNAL_TYPE_DISPLAY_PORT_MST@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SIGNAL_TYPE_DISPLAY_PORT_MST@GOTPAGEOFF]
LBB0_7:
	ldr	w9, [x9]
	str	w9, [x8]
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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_dc_connection_mst_branch,8,3   ; @dc_connection_mst_branch
	.comm	_dc_connection_single,8,3       ; @dc_connection_single
	.comm	_SIGNAL_TYPE_DISPLAY_PORT,4,2   ; @SIGNAL_TYPE_DISPLAY_PORT
	.comm	_SIGNAL_TYPE_DISPLAY_PORT_MST,4,2 ; @SIGNAL_TYPE_DISPLAY_PORT_MST
	.no_dead_strip	_set_dp_mst_mode
.subsections_via_symbols
