	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_dp_mst_prepare_pll      ## -- Begin function radeon_dp_mst_prepare_pll
	.p2align	4, 0x90
_radeon_dp_mst_prepare_pll:             ## @radeon_dp_mst_prepare_pll
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_to_radeon_crtc
	movq	%rax, %r12
	movq	(%rbx), %rax
	movq	(%rax), %r14
	movl	12(%r12), %edi
	callq	_to_radeon_encoder
	movq	8(%rax), %rbx
	movq	%rax, %rdi
	callq	_radeon_mst_find_connector
	movq	(%rbx), %rcx
	movq	(%rcx), %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %ecx
	movl	%ecx, 4(%rax)
	movl	(%rax), %eax
	testl	%eax, %eax
	movl	$8, %ecx
	cmovnel	%eax, %ecx
	movl	%ecx, (%r12)
LBB0_2:
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_DRM_DEBUG_KMS
	movl	(%rbx), %ecx
	movq	%r12, %rsi
	addq	$4, %rsi
	movq	_ASIC_INTERNAL_SS_ON_DP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_radeon_atombios_get_asic_ss_info
	movl	%eax, 8(%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dp_clock %p %d\n"

	.comm	_ASIC_INTERNAL_SS_ON_DP,4,2     ## @ASIC_INTERNAL_SS_ON_DP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_dp_mst_prepare_pll      ; -- Begin function radeon_dp_mst_prepare_pll
	.p2align	2
_radeon_dp_mst_prepare_pll:             ; @radeon_dp_mst_prepare_pll
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x20, x0
	bl	_to_radeon_crtc
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x20, [x8]
	ldr	w0, [x0, #12]
	bl	_to_radeon_encoder
	ldr	x22, [x0, #8]
	bl	_radeon_mst_find_connector
	ldr	x8, [x22]
	ldr	x22, [x8]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x21]
	str	w8, [x0, #4]
	ldr	w8, [x0]
	mov	w9, #8
	cmp	w8, #0
	csel	w8, w9, w8, eq
	str	w8, [x19]
LBB0_2:
	ldr	w2, [x22]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_DRM_DEBUG_KMS
	ldr	w3, [x22]
	add	x1, x19, #4
Lloh2:
	adrp	x8, _ASIC_INTERNAL_SS_ON_DP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ASIC_INTERNAL_SS_ON_DP@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_radeon_atombios_get_asic_ss_info
	str	w0, [x19, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dp_clock %p %d\n"

	.comm	_ASIC_INTERNAL_SS_ON_DP,4,2     ; @ASIC_INTERNAL_SS_ON_DP
.subsections_via_symbols
