	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rv515_bandwidth_avivo_update   ## -- Begin function rv515_bandwidth_avivo_update
	.p2align	4, 0x90
_rv515_bandwidth_avivo_update:          ## @rv515_bandwidth_avivo_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
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %r15
	movq	8(%rax), %r14
	movq	8(%r15), %rax
	testq	%rax, %rax
	cmoveq	%rax, %r15
	movq	8(%r14), %rax
	testq	%rax, %rax
	cmoveq	%rax, %r14
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_rs690_line_buffer_adjust
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_rv515_crtc_bandwidth_compute
	movq	(%rbx), %rax
	movq	8(%rax), %rsi
	leaq	-56(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_rv515_crtc_bandwidth_compute
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_rv515_crtc_bandwidth_compute
	movq	(%rbx), %rax
	movq	8(%rax), %rsi
	leaq	-88(%rbp), %r13
	movq	%rbx, %rdi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_rv515_crtc_bandwidth_compute
	movl	-56(%rbp), %esi
	shll	$16, %esi
	orl	-48(%rbp), %esi
	movq	_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	%r15, %rcx
	movq	%r14, %r8
	callq	_rv515_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	%r15, %rcx
	movq	%r14, %r8
	callq	_rv515_compute_mode_priority
	movq	_D1MODE_PRIORITY_A_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-80(%rbp), %esi
	callq	_WREG32
	movq	_D1MODE_PRIORITY_B_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-76(%rbp), %esi
	callq	_WREG32
	movq	_D2MODE_PRIORITY_A_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-72(%rbp), %esi
	callq	_WREG32
	movq	_D2MODE_PRIORITY_B_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-68(%rbp), %esi
	callq	_WREG32
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LB_MAX_REQ_OUTSTANDING,4,2     ## @LB_MAX_REQ_OUTSTANDING
	.comm	_D1MODE_PRIORITY_A_CNT,4,2      ## @D1MODE_PRIORITY_A_CNT
	.comm	_D1MODE_PRIORITY_B_CNT,4,2      ## @D1MODE_PRIORITY_B_CNT
	.comm	_D2MODE_PRIORITY_A_CNT,4,2      ## @D2MODE_PRIORITY_A_CNT
	.comm	_D2MODE_PRIORITY_B_CNT,4,2      ## @D2MODE_PRIORITY_B_CNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rv515_bandwidth_avivo_update   ; -- Begin function rv515_bandwidth_avivo_update
	.p2align	2
_rv515_bandwidth_avivo_update:          ; @rv515_bandwidth_avivo_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	ldr	x8, [x0]
	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
	mov	x1, x20
	mov	x2, x21
	bl	_rs690_line_buffer_adjust
	ldr	x8, [x19]
	ldr	x1, [x8]
	add	x2, sp, #40
	mov	x0, x19
	mov	w3, #0
	bl	_rv515_crtc_bandwidth_compute
	ldr	x8, [x19]
	ldr	x1, [x8, #8]
	add	x2, sp, #24
	mov	x0, x19
	mov	w3, #0
	bl	_rv515_crtc_bandwidth_compute
	ldr	x8, [x19]
	ldr	x1, [x8]
	add	x2, sp, #32
	mov	x0, x19
	mov	w3, #0
	bl	_rv515_crtc_bandwidth_compute
	ldr	x8, [x19]
	ldr	x1, [x8, #8]
	add	x2, sp, #16
	mov	x0, x19
	mov	w3, #0
	bl	_rv515_crtc_bandwidth_compute
	ldr	w8, [sp, #40]
	ldr	w9, [sp, #24]
	orr	w1, w8, w9, lsl #16
Lloh0:
	adrp	x8, _LB_MAX_REQ_OUTSTANDING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LB_MAX_REQ_OUTSTANDING@GOTPAGEOFF]
Lloh2:
	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	_rv515_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	_rv515_compute_mode_priority
Lloh3:
	adrp	x8, _D1MODE_PRIORITY_A_CNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _D1MODE_PRIORITY_A_CNT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [sp, #12]
	bl	_WREG32
Lloh6:
	adrp	x8, _D1MODE_PRIORITY_B_CNT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _D1MODE_PRIORITY_B_CNT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [sp, #8]
	bl	_WREG32
Lloh9:
	adrp	x8, _D2MODE_PRIORITY_A_CNT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _D2MODE_PRIORITY_A_CNT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w1, [sp, #4]
	bl	_WREG32
Lloh12:
	adrp	x8, _D2MODE_PRIORITY_B_CNT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _D2MODE_PRIORITY_B_CNT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [sp]
	bl	_WREG32
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LB_MAX_REQ_OUTSTANDING,4,2     ; @LB_MAX_REQ_OUTSTANDING
	.comm	_D1MODE_PRIORITY_A_CNT,4,2      ; @D1MODE_PRIORITY_A_CNT
	.comm	_D1MODE_PRIORITY_B_CNT,4,2      ; @D1MODE_PRIORITY_B_CNT
	.comm	_D2MODE_PRIORITY_A_CNT,4,2      ; @D2MODE_PRIORITY_A_CNT
	.comm	_D2MODE_PRIORITY_B_CNT,4,2      ; @D2MODE_PRIORITY_B_CNT
.subsections_via_symbols
