	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rs690_bandwidth_update         ## -- Begin function rs690_bandwidth_update
	.p2align	4, 0x90
_rs690_bandwidth_update:                ## @rs690_bandwidth_update
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 24(%rdi)
	je	LBB0_16
## %bb.1:
	movq	%rdi, %rbx
	callq	_radeon_update_display_priority
	movq	16(%rbx), %rax
	movq	(%rax), %r14
	movq	8(%rax), %r15
	movq	8(%r14), %rax
	testq	%rax, %rax
	cmoveq	%rax, %r14
	movq	8(%r15), %rax
	testq	%rax, %rax
	cmoveq	%rax, %r15
	cmpl	$2, (%rbx)
	jne	LBB0_9
## %bb.2:
	movq	8(%rbx), %rax
	movq	_CHIP_RS690@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_CHIP_RS740@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_4:
	movq	_R_000104_MC_INIT_MISC_LAT_TIMER@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_RREG32_MC
	movl	%eax, %r12d
	movq	_C_000104_MC_DISP0R_INIT_LAT@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movq	_C_000104_MC_DISP1R_INIT_LAT@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movl	$1, %edi
	callq	_S_000104_MC_DISP0R_INIT_LAT
	orl	%eax, %r12d
LBB0_6:
	testq	%r15, %r15
	je	LBB0_8
## %bb.7:
	movl	$1, %edi
	callq	_S_000104_MC_DISP1R_INIT_LAT
	orl	%eax, %r12d
LBB0_8:
	movl	(%r13), %edi
	movl	%r12d, %esi
	callq	_WREG32_MC
LBB0_9:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_rs690_line_buffer_adjust
	movq	8(%rbx), %rax
	movq	_CHIP_RS690@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:
	movq	_CHIP_RS740@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
LBB0_11:
	movq	_R_006C9C_DCP_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_WREG32
	movq	8(%rbx), %rax
LBB0_12:
	movq	_CHIP_RS780@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.13:
	movq	_CHIP_RS880@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
LBB0_14:
	movq	_R_006C9C_DCP_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$2, %esi
	callq	_WREG32
LBB0_15:
	movq	16(%rbx), %rax
	movq	(%rax), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_rs690_crtc_bandwidth_compute
	movq	16(%rbx), %rax
	movq	8(%rax), %rsi
	leaq	-56(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_rs690_crtc_bandwidth_compute
	movq	16(%rbx), %rax
	movq	(%rax), %rsi
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_rs690_crtc_bandwidth_compute
	movq	16(%rbx), %rax
	movq	8(%rax), %rsi
	leaq	-88(%rbp), %r13
	movq	%rbx, %rdi
	movq	%r13, %rdx
	movl	$1, %ecx
	callq	_rs690_crtc_bandwidth_compute
	movl	-48(%rbp), %eax
	decl	%eax
	movl	-56(%rbp), %esi
	shll	$16, %esi
	addl	$-65536, %esi                   ## imm = 0xFFFF0000
	orl	%eax, %esi
	movq	_R_006D58_LB_MAX_REQ_OUTSTANDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WREG32
	leaq	-72(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-80(%rbp), %r9
	movq	%rbx, %rdi
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_rs690_compute_mode_priority
	leaq	-68(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-76(%rbp), %r9
	movq	%rbx, %rdi
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdx
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_rs690_compute_mode_priority
	movq	_R_006548_D1MODE_PRIORITY_A_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-80(%rbp), %esi
	callq	_WREG32
	movq	_R_00654C_D1MODE_PRIORITY_B_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-76(%rbp), %esi
	callq	_WREG32
	movq	_R_006D48_D2MODE_PRIORITY_A_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-72(%rbp), %esi
	callq	_WREG32
	movq	_R_006D4C_D2MODE_PRIORITY_B_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-68(%rbp), %esi
	callq	_WREG32
LBB0_16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHIP_RS690,8,3                 ## @CHIP_RS690
	.comm	_CHIP_RS740,8,3                 ## @CHIP_RS740
	.comm	_R_000104_MC_INIT_MISC_LAT_TIMER,4,2 ## @R_000104_MC_INIT_MISC_LAT_TIMER
	.comm	_C_000104_MC_DISP0R_INIT_LAT,4,2 ## @C_000104_MC_DISP0R_INIT_LAT
	.comm	_C_000104_MC_DISP1R_INIT_LAT,4,2 ## @C_000104_MC_DISP1R_INIT_LAT
	.comm	_R_006C9C_DCP_CONTROL,4,2       ## @R_006C9C_DCP_CONTROL
	.comm	_CHIP_RS780,8,3                 ## @CHIP_RS780
	.comm	_CHIP_RS880,8,3                 ## @CHIP_RS880
	.comm	_R_006D58_LB_MAX_REQ_OUTSTANDING,4,2 ## @R_006D58_LB_MAX_REQ_OUTSTANDING
	.comm	_R_006548_D1MODE_PRIORITY_A_CNT,4,2 ## @R_006548_D1MODE_PRIORITY_A_CNT
	.comm	_R_00654C_D1MODE_PRIORITY_B_CNT,4,2 ## @R_00654C_D1MODE_PRIORITY_B_CNT
	.comm	_R_006D48_D2MODE_PRIORITY_A_CNT,4,2 ## @R_006D48_D2MODE_PRIORITY_A_CNT
	.comm	_R_006D4C_D2MODE_PRIORITY_B_CNT,4,2 ## @R_006D4C_D2MODE_PRIORITY_B_CNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rs690_bandwidth_update         ; -- Begin function rs690_bandwidth_update
	.p2align	2
_rs690_bandwidth_update:                ; @rs690_bandwidth_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_13
; %bb.1:
	mov	x19, x0
	bl	_radeon_update_display_priority
	ldr	x8, [x19, #16]
	ldp	x9, x8, [x8]
	ldr	x10, [x9, #8]
	cmp	x10, #0
	csel	x20, xzr, x9, eq
	ldr	x9, [x8, #8]
	cmp	x9, #0
	csel	x21, xzr, x8, eq
	ldr	w8, [x19]
Lloh0:
	adrp	x23, _CHIP_RS690@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CHIP_RS690@GOTPAGEOFF]
Lloh2:
	adrp	x24, _CHIP_RS740@GOTPAGE
Lloh3:
	ldr	x24, [x24, _CHIP_RS740@GOTPAGEOFF]
	cmp	w8, #2
	b.ne	LBB0_8
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	ldr	x10, [x24]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
; %bb.3:
Lloh4:
	adrp	x25, _R_000104_MC_INIT_MISC_LAT_TIMER@GOTPAGE
Lloh5:
	ldr	x25, [x25, _R_000104_MC_INIT_MISC_LAT_TIMER@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_RREG32_MC
Lloh6:
	adrp	x8, _C_000104_MC_DISP0R_INIT_LAT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _C_000104_MC_DISP0R_INIT_LAT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh9:
	adrp	x9, _C_000104_MC_DISP1R_INIT_LAT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _C_000104_MC_DISP1R_INIT_LAT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w22, w8, w9
	cbz	x20, LBB0_5
; %bb.4:
	mov	w0, #1
	bl	_S_000104_MC_DISP0R_INIT_LAT
	orr	w22, w0, w22
LBB0_5:
	cbz	x21, LBB0_7
; %bb.6:
	mov	w0, #1
	bl	_S_000104_MC_DISP1R_INIT_LAT
	orr	w22, w0, w22
LBB0_7:
	ldr	w0, [x25]
	mov	x1, x22
	bl	_WREG32_MC
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_rs690_line_buffer_adjust
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	ldr	x10, [x24]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_10
; %bb.9:
Lloh12:
	adrp	x8, _R_006C9C_DCP_CONTROL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _R_006C9C_DCP_CONTROL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_WREG32
	ldr	x8, [x19, #8]
LBB0_10:
Lloh15:
	adrp	x9, _CHIP_RS780@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CHIP_RS780@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _CHIP_RS880@GOTPAGE
Lloh19:
	ldr	x10, [x10, _CHIP_RS880@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_12
; %bb.11:
Lloh21:
	adrp	x8, _R_006C9C_DCP_CONTROL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _R_006C9C_DCP_CONTROL@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	w1, #2
	bl	_WREG32
LBB0_12:
	ldr	x8, [x19, #16]
	ldr	x1, [x8]
	add	x2, sp, #40
	mov	x0, x19
	mov	w3, #0
	bl	_rs690_crtc_bandwidth_compute
	ldr	x8, [x19, #16]
	ldr	x1, [x8, #8]
	add	x2, sp, #24
	mov	x0, x19
	mov	w3, #0
	bl	_rs690_crtc_bandwidth_compute
	ldr	x8, [x19, #16]
	ldr	x1, [x8]
	add	x2, sp, #32
	mov	x0, x19
	mov	w3, #1
	bl	_rs690_crtc_bandwidth_compute
	ldr	x8, [x19, #16]
	ldr	x1, [x8, #8]
	add	x2, sp, #16
	mov	x0, x19
	mov	w3, #1
	bl	_rs690_crtc_bandwidth_compute
	ldr	w8, [sp, #40]
	sub	w8, w8, #1
	ldr	w9, [sp, #24]
	lsl	w9, w9, #16
	sub	w9, w9, #16, lsl #12            ; =65536
	orr	w1, w9, w8
Lloh24:
	adrp	x8, _R_006D58_LB_MAX_REQ_OUTSTANDING@GOTPAGE
Lloh25:
	ldr	x8, [x8, _R_006D58_LB_MAX_REQ_OUTSTANDING@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_WREG32
	add	x1, sp, #40
	add	x2, sp, #24
	add	x5, sp, #12
	add	x6, sp, #4
	mov	x0, x19
	mov	x3, x20
	mov	x4, x21
	bl	_rs690_compute_mode_priority
	add	x1, sp, #32
	add	x2, sp, #16
	add	x5, sp, #8
	mov	x6, sp
	mov	x0, x19
	mov	x3, x20
	mov	x4, x21
	bl	_rs690_compute_mode_priority
Lloh27:
	adrp	x8, _R_006548_D1MODE_PRIORITY_A_CNT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _R_006548_D1MODE_PRIORITY_A_CNT@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	w1, [sp, #12]
	bl	_WREG32
Lloh30:
	adrp	x8, _R_00654C_D1MODE_PRIORITY_B_CNT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _R_00654C_D1MODE_PRIORITY_B_CNT@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ldr	w1, [sp, #8]
	bl	_WREG32
Lloh33:
	adrp	x8, _R_006D48_D2MODE_PRIORITY_A_CNT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _R_006D48_D2MODE_PRIORITY_A_CNT@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ldr	w1, [sp, #4]
	bl	_WREG32
Lloh36:
	adrp	x8, _R_006D4C_D2MODE_PRIORITY_B_CNT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _R_006D4C_D2MODE_PRIORITY_B_CNT@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	ldr	w1, [sp]
	bl	_WREG32
LBB0_13:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_CHIP_RS690,8,3                 ; @CHIP_RS690
	.comm	_CHIP_RS740,8,3                 ; @CHIP_RS740
	.comm	_R_000104_MC_INIT_MISC_LAT_TIMER,4,2 ; @R_000104_MC_INIT_MISC_LAT_TIMER
	.comm	_C_000104_MC_DISP0R_INIT_LAT,4,2 ; @C_000104_MC_DISP0R_INIT_LAT
	.comm	_C_000104_MC_DISP1R_INIT_LAT,4,2 ; @C_000104_MC_DISP1R_INIT_LAT
	.comm	_R_006C9C_DCP_CONTROL,4,2       ; @R_006C9C_DCP_CONTROL
	.comm	_CHIP_RS780,8,3                 ; @CHIP_RS780
	.comm	_CHIP_RS880,8,3                 ; @CHIP_RS880
	.comm	_R_006D58_LB_MAX_REQ_OUTSTANDING,4,2 ; @R_006D58_LB_MAX_REQ_OUTSTANDING
	.comm	_R_006548_D1MODE_PRIORITY_A_CNT,4,2 ; @R_006548_D1MODE_PRIORITY_A_CNT
	.comm	_R_00654C_D1MODE_PRIORITY_B_CNT,4,2 ; @R_00654C_D1MODE_PRIORITY_B_CNT
	.comm	_R_006D48_D2MODE_PRIORITY_A_CNT,4,2 ; @R_006D48_D2MODE_PRIORITY_A_CNT
	.comm	_R_006D4C_D2MODE_PRIORITY_B_CNT,4,2 ; @R_006D4C_D2MODE_PRIORITY_B_CNT
.subsections_via_symbols
