	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_dp_mst_probe            ## -- Begin function radeon_dp_mst_probe
	.p2align	4, 0x90
_radeon_dp_mst_probe:                   ## @radeon_dp_mst_probe
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_radeon_mst@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	$0, (%rax)
	je	LBB0_9
## %bb.1:
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	24(%rdi), %r15
	movq	(%rax), %rdi
	callq	_ASIC_IS_DCE5
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	movq	(%r15), %rax
	movq	_DP_DPCD_REV@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$18, (%rax,%rcx,4)
	jl	LBB0_9
## %bb.3:
	movq	8(%r14), %rdi
	movq	_DP_MSTM_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movl	$1, %ecx
	callq	_drm_dp_dpcd_read
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	_DP_MST_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -28(%rbp)
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movl	$1, 8(%r15)
	movl	$1, %esi
	jmp	LBB0_8
LBB0_4:
	movl	8(%r15), %esi
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movl	$0, 8(%r15)
	xorl	%esi, %esi
LBB0_8:
	movq	%r14, %rdi
	callq	_drm_dp_mst_topology_mgr_set_mst
	movl	8(%r15), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_radeon_mst,4,2                 ## @radeon_mst
	.comm	_DP_DPCD_REV,8,3                ## @DP_DPCD_REV
	.comm	_DP_MSTM_CAP,4,2                ## @DP_MSTM_CAP
	.comm	_DP_MST_CAP,4,2                 ## @DP_MST_CAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sink is MST capable\n"

L_.str.1:                               ## @.str.1
	.asciz	"Sink is not MST capable\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_dp_mst_probe            ; -- Begin function radeon_dp_mst_probe
	.p2align	2
_radeon_dp_mst_probe:                   ; @radeon_dp_mst_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _radeon_mst@GOTPAGE
Lloh1:
	ldr	x8, [x8, _radeon_mst@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	ldp	x8, x20, [x0, #16]
	ldr	x0, [x8]
	bl	_ASIC_IS_DCE5
	cbz	w0, LBB0_10
; %bb.2:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _DP_DPCD_REV@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DP_DPCD_REV@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, #18
	b.ge	LBB0_4
LBB0_3:
	mov	w0, #0
	b	LBB0_10
LBB0_4:
	ldr	x0, [x19, #8]
Lloh6:
	adrp	x8, _DP_MSTM_CAP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DP_MSTM_CAP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	w3, #1
	bl	_drm_dp_dpcd_read
	cbz	w0, LBB0_7
; %bb.5:
	ldr	w8, [sp, #12]
Lloh9:
	adrp	x9, _DP_MST_CAP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DP_MST_CAP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w1, #1
	str	w1, [x20, #8]
	b	LBB0_9
LBB0_7:
	ldr	w1, [x20, #8]
	b	LBB0_9
LBB0_8:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w1, #0
	str	wzr, [x20, #8]
LBB0_9:
	mov	x0, x19
	bl	_drm_dp_mst_topology_mgr_set_mst
	ldr	w0, [x20, #8]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_radeon_mst,4,2                 ; @radeon_mst
	.comm	_DP_DPCD_REV,8,3                ; @DP_DPCD_REV
	.comm	_DP_MSTM_CAP,4,2                ; @DP_MSTM_CAP
	.comm	_DP_MST_CAP,4,2                 ; @DP_MST_CAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sink is MST capable\n"

l_.str.1:                               ; @.str.1
	.asciz	"Sink is not MST capable\n"

.subsections_via_symbols
