	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rs600_bandwidth_update         ## -- Begin function rs600_bandwidth_update
	.p2align	4, 0x90
_rs600_bandwidth_update:                ## @rs600_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	callq	_radeon_update_display_priority
	movq	8(%rbx), %rax
	movq	(%rax), %rsi
	movq	8(%rax), %rdx
	movq	8(%rsi), %rax
	testq	%rax, %rax
	cmoveq	%rax, %rsi
	movq	8(%rdx), %rax
	testq	%rax, %rax
	cmoveq	%rax, %rdx
	movq	%rbx, %rdi
	callq	_rs690_line_buffer_adjust
	cmpl	$2, (%rbx)
	jne	LBB0_2
## %bb.3:
	movq	_R_006548_D1MODE_PRIORITY_A_CNT@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_RREG32
	movl	%eax, %ebx
	movq	_R_006D48_D2MODE_PRIORITY_A_CNT@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_RREG32
	movl	%eax, %r14d
	movl	$1, %edi
	callq	_S_006548_D1MODE_PRIORITY_A_ALWAYS_ON
	orl	%eax, %ebx
	movl	$1, %edi
	callq	_S_006D48_D2MODE_PRIORITY_A_ALWAYS_ON
	orl	%eax, %r14d
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_WREG32
	movq	_R_00654C_D1MODE_PRIORITY_B_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_WREG32
	movl	(%r15), %edi
	movl	%r14d, %esi
	callq	_WREG32
	movq	_R_006D4C_D2MODE_PRIORITY_B_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R_006548_D1MODE_PRIORITY_A_CNT,4,2 ## @R_006548_D1MODE_PRIORITY_A_CNT
	.comm	_R_006D48_D2MODE_PRIORITY_A_CNT,4,2 ## @R_006D48_D2MODE_PRIORITY_A_CNT
	.comm	_R_00654C_D1MODE_PRIORITY_B_CNT,4,2 ## @R_00654C_D1MODE_PRIORITY_B_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	_rs600_bandwidth_update         ; -- Begin function rs600_bandwidth_update
	.p2align	2
_rs600_bandwidth_update:                ; @rs600_bandwidth_update
	.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
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_radeon_update_display_priority
	ldr	x8, [x19, #8]
	ldp	x9, x8, [x8]
	ldr	x10, [x9, #8]
	cmp	x10, #0
	csel	x1, xzr, x9, eq
	ldr	x9, [x8, #8]
	cmp	x9, #0
	csel	x2, xzr, x8, eq
	mov	x0, x19
	bl	_rs690_line_buffer_adjust
	ldr	w8, [x19]
	cmp	w8, #2
	b.ne	LBB0_3
; %bb.2:
Lloh0:
	adrp	x21, _R_006548_D1MODE_PRIORITY_A_CNT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _R_006548_D1MODE_PRIORITY_A_CNT@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_RREG32
	mov	x19, x0
Lloh2:
	adrp	x22, _R_006D48_D2MODE_PRIORITY_A_CNT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _R_006D48_D2MODE_PRIORITY_A_CNT@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_RREG32
	mov	x20, x0
	mov	w0, #1
	bl	_S_006548_D1MODE_PRIORITY_A_ALWAYS_ON
	orr	w19, w0, w19
	mov	w0, #1
	bl	_S_006D48_D2MODE_PRIORITY_A_ALWAYS_ON
	orr	w20, w0, w20
	ldr	w0, [x21]
	mov	x1, x19
	bl	_WREG32
Lloh4:
	adrp	x8, _R_00654C_D1MODE_PRIORITY_B_CNT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _R_00654C_D1MODE_PRIORITY_B_CNT@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_WREG32
	ldr	w0, [x22]
	mov	x1, x20
	bl	_WREG32
Lloh7:
	adrp	x8, _R_006D4C_D2MODE_PRIORITY_B_CNT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _R_006D4C_D2MODE_PRIORITY_B_CNT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x20
	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
	b	_WREG32
LBB0_3:
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_R_006548_D1MODE_PRIORITY_A_CNT,4,2 ; @R_006548_D1MODE_PRIORITY_A_CNT
	.comm	_R_006D48_D2MODE_PRIORITY_A_CNT,4,2 ; @R_006D48_D2MODE_PRIORITY_A_CNT
	.comm	_R_00654C_D1MODE_PRIORITY_B_CNT,4,2 ; @R_00654C_D1MODE_PRIORITY_B_CNT
	.comm	_R_006D4C_D2MODE_PRIORITY_B_CNT,4,2 ; @R_006D4C_D2MODE_PRIORITY_B_CNT
.subsections_via_symbols
