	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_mst_mode_fixup
_radeon_mst_mode_fixup:                 ## @radeon_mst_mode_fixup
	.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	%rdx, %r14
	callq	_to_radeon_encoder
	movq	(%rax), %rbx
	movl	(%r14), %edi
	movl	$24, %esi
	callq	_drm_dp_calc_pbn_mode
	movl	%eax, 16(%rbx)
	movq	(%rbx), %rax
	movq	8(%rbx), %rdi
	movl	(%rax), %ecx
	movl	4(%rdi), %edx
	movl	8(%rdi), %r8d
	movl	%ecx, %esi
	andl	%edx, %esi
	movl	%esi, (%rdi)
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_drm_mode_set_crtcinfo
	movq	(%rbx), %rax
	movq	8(%rax), %rbx
	movl	8(%rbx), %edi
	callq	_drm_dp_max_lane_count
	movl	%eax, 4(%rbx)
	movl	8(%rbx), %edi
	callq	_drm_dp_max_link_rate
	movl	%eax, (%rbx)
	movl	4(%rbx), %edx
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	movl	$1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting active device to %08x from %08x %08x for encoder %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"dig clock %p %d %d\n"

	.no_dead_strip	_radeon_mst_mode_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_mst_mode_fixup
_radeon_mst_mode_fixup:                 ; @radeon_mst_mode_fixup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	bl	_to_radeon_encoder
	ldr	x20, [x0]
	ldr	w0, [x19]
	mov	w1, #24
	bl	_drm_dp_calc_pbn_mode
	str	w0, [x20, #16]
	ldp	x9, x8, [x20]
	ldr	w9, [x9]
	ldp	w10, w11, [x8, #4]
	and	w12, w9, w10
	str	w12, [x8]
	stp	x9, x11, [sp, #16]
	stp	x12, x10, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, x19
	mov	w1, #0
	bl	_drm_mode_set_crtcinfo
	ldr	x8, [x20]
	ldr	x19, [x8, #8]
	ldr	w0, [x19, #8]
	bl	_drm_dp_max_lane_count
	str	w0, [x19, #4]
	ldr	w0, [x19, #8]
	bl	_drm_dp_max_link_rate
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x19]
	ldr	w8, [x19, #4]
	stp	x8, x0, [sp, #8]
	str	x19, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w0, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting active device to %08x from %08x %08x for encoder %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"dig clock %p %d %d\n"

	.no_dead_strip	_radeon_mst_mode_fixup
.subsections_via_symbols
