	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_dp_mst_set_stream_attrib
_radeon_dp_mst_set_stream_attrib:       ## @radeon_dp_mst_set_stream_attrib
	.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
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	%esi, %eax
	sarl	%eax
	movq	_NI_DP_MSE_SAT0@GOTPCREL(%rip), %rcx
	movslq	%eax, %r14
	movq	(%rcx), %rdi
	addq	%r14, %rdi
	addq	(%r15), %rdi
	callq	_RREG32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	_NI_DP_MSE_SAT_SLOT_COUNT0
	movl	%eax, %r12d
	movl	%r13d, %edi
	callq	_NI_DP_MSE_SAT_SRC0
	orl	%eax, %r12d
	shll	$4, %ebx
	movl	%ebx, %ecx
	shll	%cl, %r12d
	movl	$65535, %r13d                   ## imm = 0xFFFF
	shll	%cl, %r13d
	notl	%r13d
	andl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	orl	%r12d, %r13d
	movq	_NI_DP_MSE_SAT0@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	%r14, %rsi
	addq	(%r15), %rsi
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %edx
	callq	_DRM_DEBUG_KMS
	addq	(%rbx), %r14
	addq	(%r15), %r14
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_WREG32
	movq	_NI_DP_MSE_SAT_UPDATE@GOTPCREL(%rip), %r14
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	movl	$1, %esi
	callq	_WREG32
	movl	$50, %ebx
	movq	_NI_DP_MSE_SAT_UPDATE_MASK@GOTPCREL(%rip), %r12
	movq	_NI_DP_MSE_16_MTP_KEEPOUT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_udelay
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_RREG32
	movl	(%r12), %edx
	orl	(%r13), %edx
	subl	$1, %ebx
	setb	%cl
	testl	%eax, %edx
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	%cl, %cl
	je	LBB0_1
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NI_DP_MSE_SAT0,8,3             ## @NI_DP_MSE_SAT0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"writing 0x%08x 0x%08x\n"

	.comm	_NI_DP_MSE_SAT_UPDATE,8,3       ## @NI_DP_MSE_SAT_UPDATE
	.comm	_NI_DP_MSE_SAT_UPDATE_MASK,4,2  ## @NI_DP_MSE_SAT_UPDATE_MASK
	.comm	_NI_DP_MSE_16_MTP_KEEPOUT,4,2   ## @NI_DP_MSE_16_MTP_KEEPOUT
	.no_dead_strip	_radeon_dp_mst_set_stream_attrib
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_dp_mst_set_stream_attrib
_radeon_dp_mst_set_stream_attrib:       ; @radeon_dp_mst_set_stream_attrib
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _NI_DP_MSE_SAT0@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NI_DP_MSE_SAT0@GOTPAGEOFF]
	ldr	x8, [x24]
	sbfx	x25, x22, #1, #31
	ldr	x9, [x0]
	add	x8, x8, x25
	add	x0, x8, x9
	bl	_RREG32
	mov	x23, x0
	mov	x0, x20
	bl	_NI_DP_MSE_SAT_SLOT_COUNT0
	mov	x20, x0
	mov	x0, x21
	bl	_NI_DP_MSE_SAT_SRC0
	orr	w8, w0, w20
	ubfiz	w9, w22, #4, #1
	lsl	w8, w8, w9
	mov	w10, #65535
	lsl	w9, w10, w9
	bic	w9, w23, w9
	orr	w20, w8, w9
	ldr	x8, [x24]
	ldr	x9, [x19]
	add	x8, x8, x25
	add	x1, x8, x9
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_DRM_DEBUG_KMS
	ldr	x8, [x24]
	ldr	x9, [x19]
	add	x8, x8, x25
	add	x0, x8, x9
	mov	x1, x20
	bl	_WREG32
Lloh4:
	adrp	x20, _NI_DP_MSE_SAT_UPDATE@GOTPAGE
Lloh5:
	ldr	x20, [x20, _NI_DP_MSE_SAT_UPDATE@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x9, [x19]
	add	x0, x9, x8
	mov	w1, #1
	bl	_WREG32
	mov	w21, #50
Lloh6:
	adrp	x22, _NI_DP_MSE_SAT_UPDATE_MASK@GOTPAGE
Lloh7:
	ldr	x22, [x22, _NI_DP_MSE_SAT_UPDATE_MASK@GOTPAGEOFF]
Lloh8:
	adrp	x23, _NI_DP_MSE_16_MTP_KEEPOUT@GOTPAGE
Lloh9:
	ldr	x23, [x23, _NI_DP_MSE_16_MTP_KEEPOUT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_RREG32
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w8, w9
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	w21, #0, #4, ne
	sub	w21, w21, #1
	b.ne	LBB0_1
; %bb.2:
	mov	w0, #0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NI_DP_MSE_SAT0,8,3             ; @NI_DP_MSE_SAT0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"writing 0x%08x 0x%08x\n"

	.comm	_NI_DP_MSE_SAT_UPDATE,8,3       ; @NI_DP_MSE_SAT_UPDATE
	.comm	_NI_DP_MSE_SAT_UPDATE_MASK,4,2  ; @NI_DP_MSE_SAT_UPDATE_MASK
	.comm	_NI_DP_MSE_16_MTP_KEEPOUT,4,2   ; @NI_DP_MSE_16_MTP_KEEPOUT
	.no_dead_strip	_radeon_dp_mst_set_stream_attrib
.subsections_via_symbols
