	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv515_compute_mode_priority
_rv515_compute_mode_priority:           ## @rv515_compute_mode_priority
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	16(%rbp), %rbx
	movq	_MODE_PRIORITY_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, (%r9)
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.1:
	testq	%r8, %r8
	je	LBB0_16
## %bb.2:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	56(%r13), %rdi
	callq	_dfixed_trunc
	cmpl	$65, %eax
	jl	LBB0_4
## %bb.3:
	movq	48(%r13), %rsi
	movq	56(%r13), %rdi
	callq	_dfixed_div
	movq	%rax, %r15
	jmp	LBB0_5
LBB0_16:
	testq	%rcx, %rcx
	je	LBB0_25
## %bb.17:
	movq	56(%r13), %rdi
	callq	_dfixed_trunc
	cmpl	$65, %eax
	jl	LBB0_19
## %bb.18:
	movq	48(%r13), %rsi
	movq	56(%r13), %rdi
	callq	_dfixed_div
	movq	%rax, %rsi
	jmp	LBB0_20
LBB0_4:
	movq	48(%r13), %r15
LBB0_5:
	movq	56(%r12), %rdi
	callq	_dfixed_trunc
	cmpl	$65, %eax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jl	LBB0_7
## %bb.6:
	movq	48(%r12), %rsi
	movq	56(%r12), %rdi
	callq	_dfixed_div
	movq	%rax, %rsi
	jmp	LBB0_8
LBB0_7:
	movq	48(%r12), %rsi
LBB0_8:
	addq	%r15, %rsi
	movq	40(%r13), %rdi
	callq	_dfixed_div
	movq	%rax, %r14
	movq	16(%r13), %rsi
	movq	%rsi, %rdi
	subq	%rax, %rdi
	jle	LBB0_10
## %bb.9:
	movq	32(%r13), %rsi
	callq	_dfixed_mul
	movq	%rax, %rbx
	movl	$16, %edi
	callq	_dfixed_const
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_dfixed_div
	movq	%rax, %rbx
	movq	16(%r13), %rsi
	movq	24(%r13), %rdi
	callq	_dfixed_mul
	movq	%rax, %r15
	addq	%rbx, %r15
	jmp	LBB0_11
LBB0_10:
	movq	24(%r13), %rdi
	callq	_dfixed_mul
	movq	%rax, %rbx
	movl	$16000, %edi                    ## imm = 0x3E80
	callq	_dfixed_const
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_dfixed_div
	movq	%rax, %r15
LBB0_11:
	movq	16(%r12), %rsi
	movq	%rsi, %rdi
	subq	%r14, %rdi
	jle	LBB0_13
## %bb.12:
	movq	32(%r12), %rsi
	callq	_dfixed_mul
	movq	%rax, %rbx
	movl	$16, %edi
	callq	_dfixed_const
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_dfixed_div
	movq	%rax, %r14
	movq	16(%r12), %rsi
	movq	24(%r12), %rdi
	callq	_dfixed_mul
	movq	%rax, %rbx
	addq	%r14, %rbx
	jmp	LBB0_14
LBB0_13:
	movq	24(%r12), %rdi
	callq	_dfixed_mul
	movq	%rax, %rbx
	movl	$16000, %edi                    ## imm = 0x3E80
	callq	_dfixed_const
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_dfixed_div
	movq	%rax, %rbx
LBB0_14:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r13), %rax
	cmpq	%r15, %rax
	cmovgq	%rax, %r15
	movq	(%r13), %rax
	cmpq	%r15, %rax
	cmovgq	%rax, %r15
	movq	8(%r12), %rax
	cmpq	%rbx, %rax
	cmovgq	%rax, %rbx
	movq	(%r12), %rax
	cmpq	%rbx, %rax
	cmovgq	%rax, %rbx
	movq	%r15, %rdi
	callq	_dfixed_trunc
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, (%r15)
	movq	%rbx, %rdi
	callq	_dfixed_trunc
	movq	16(%rbp), %rbx
	movl	%eax, (%rbx)
	cmpl	$2, (%r14)
	jne	LBB0_35
## %bb.15:
	movq	_MODE_PRIORITY_ALWAYS_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	%ecx, (%r15)
	movl	(%rax), %eax
	movq	%rbx, %rcx
	jmp	LBB0_34
LBB0_25:
	testq	%r8, %r8
	je	LBB0_35
## %bb.26:
	movq	56(%r12), %rdi
	callq	_dfixed_trunc
	cmpl	$65, %eax
	jl	LBB0_28
## %bb.27:
	movq	48(%r12), %rsi
	movq	56(%r12), %rdi
	callq	_dfixed_div
	movq	%rax, %rsi
	jmp	LBB0_29
LBB0_19:
	movq	48(%r13), %rsi
LBB0_20:
	movq	40(%r13), %rdi
	callq	_dfixed_div
	movq	16(%r13), %rsi
	movq	%rsi, %rdi
	subq	%rax, %rdi
	jle	LBB0_22
## %bb.21:
	movq	32(%r13), %rsi
	callq	_dfixed_mul
	movq	%rax, %rbx
	movl	$16, %edi
	callq	_dfixed_const
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_dfixed_div
	movq	%rax, %rbx
	movq	16(%r13), %rsi
	movq	24(%r13), %rdi
	callq	_dfixed_mul
	addq	%rbx, %rax
	jmp	LBB0_23
LBB0_22:
	movq	24(%r13), %rdi
	callq	_dfixed_mul
	movq	%rax, %rbx
	movl	$16, %edi
	callq	_dfixed_const
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_dfixed_div
LBB0_23:
	movq	8(%r13), %rcx
	cmpq	%rax, %rcx
	cmovgq	%rcx, %rax
	movq	(%r13), %rcx
	cmpq	%rax, %rcx
	cmovgq	%rcx, %rax
	movq	%rax, %rdi
	callq	_dfixed_trunc
	movl	%eax, (%r15)
	cmpl	$2, (%r14)
	jne	LBB0_35
## %bb.24:
	movq	_MODE_PRIORITY_ALWAYS_ON@GOTPCREL(%rip), %rcx
	movq	%r15, %rbx
	jmp	LBB0_34
LBB0_28:
	movq	48(%r12), %rsi
LBB0_29:
	movq	40(%r12), %rdi
	callq	_dfixed_div
	movq	16(%r12), %rsi
	movq	%rsi, %rdi
	subq	%rax, %rdi
	jle	LBB0_31
## %bb.30:
	movq	32(%r12), %rsi
	callq	_dfixed_mul
	movq	%rax, %r15
	movl	$16, %edi
	callq	_dfixed_const
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_dfixed_div
	movq	%rax, %r15
	movq	16(%r12), %rsi
	movq	24(%r12), %rdi
	callq	_dfixed_mul
	addq	%r15, %rax
	jmp	LBB0_32
LBB0_31:
	movq	24(%r12), %rdi
	callq	_dfixed_mul
	movq	%rax, %r15
	movl	$16000, %edi                    ## imm = 0x3E80
	callq	_dfixed_const
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_dfixed_div
LBB0_32:
	movq	8(%r12), %rcx
	cmpq	%rax, %rcx
	cmovgq	%rcx, %rax
	movq	(%r12), %rcx
	cmpq	%rax, %rcx
	cmovgq	%rcx, %rax
	movq	%rax, %rdi
	callq	_dfixed_trunc
	movl	%eax, (%rbx)
	cmpl	$2, (%r14)
	jne	LBB0_35
## %bb.33:
	movq	_MODE_PRIORITY_ALWAYS_ON@GOTPCREL(%rip), %rcx
LBB0_34:
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
LBB0_35:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_PRIORITY_OFF,4,2          ## @MODE_PRIORITY_OFF
	.comm	_MODE_PRIORITY_ALWAYS_ON,4,2    ## @MODE_PRIORITY_ALWAYS_ON
	.no_dead_strip	_rv515_compute_mode_priority
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rv515_compute_mode_priority
_rv515_compute_mode_priority:           ; @rv515_compute_mode_priority
	.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, x6
	mov	x21, x5
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MODE_PRIORITY_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MODE_PRIORITY_OFF@GOTPAGEOFF]
	ldr	w9, [x8]
	str	w9, [x5]
	ldr	w8, [x8]
	str	w8, [x6]
	cbz	x3, LBB0_4
; %bb.1:
	cbz	x4, LBB0_4
; %bb.2:
	ldr	x0, [x23, #56]
	bl	_dfixed_trunc
	cmp	w0, #65
	b.lt	LBB0_7
; %bb.3:
	ldp	x1, x0, [x23, #48]
	bl	_dfixed_div
	mov	x24, x0
	b	LBB0_8
LBB0_4:
	cbz	x3, LBB0_19
; %bb.5:
	ldr	x0, [x23, #56]
	bl	_dfixed_trunc
	cmp	w0, #65
	b.lt	LBB0_22
; %bb.6:
	ldp	x1, x0, [x23, #48]
	bl	_dfixed_div
	mov	x1, x0
	b	LBB0_23
LBB0_7:
	ldr	x24, [x23, #48]
LBB0_8:
	ldr	x0, [x22, #56]
	bl	_dfixed_trunc
	cmp	w0, #65
	b.lt	LBB0_10
; %bb.9:
	ldp	x1, x0, [x22, #48]
	bl	_dfixed_div
	b	LBB0_11
LBB0_10:
	ldr	x0, [x22, #48]
LBB0_11:
	add	x1, x0, x24
	ldr	x0, [x23, #40]
	bl	_dfixed_div
	mov	x25, x0
	ldr	x1, [x23, #16]
	subs	x0, x1, x0
	b.le	LBB0_13
; %bb.12:
	ldr	x1, [x23, #32]
	bl	_dfixed_mul
	mov	x24, x0
	mov	w0, #16
	bl	_dfixed_const
	mov	x1, x0
	mov	x0, x24
	bl	_dfixed_div
	mov	x24, x0
	ldp	x1, x0, [x23, #16]
	bl	_dfixed_mul
	add	x24, x0, x24
	b	LBB0_14
LBB0_13:
	ldr	x0, [x23, #24]
	bl	_dfixed_mul
	mov	x24, x0
	mov	w0, #16000
	bl	_dfixed_const
	mov	x1, x0
	mov	x0, x24
	bl	_dfixed_div
	mov	x24, x0
LBB0_14:
	ldr	x1, [x22, #16]
	subs	x0, x1, x25
	b.le	LBB0_16
; %bb.15:
	ldr	x1, [x22, #32]
	bl	_dfixed_mul
	mov	x25, x0
	mov	w0, #16
	bl	_dfixed_const
	mov	x1, x0
	mov	x0, x25
	bl	_dfixed_div
	mov	x25, x0
	ldp	x1, x0, [x22, #16]
	bl	_dfixed_mul
	add	x0, x0, x25
	b	LBB0_17
LBB0_16:
	ldr	x0, [x22, #24]
	bl	_dfixed_mul
	mov	x25, x0
	mov	w0, #16000
	bl	_dfixed_const
	mov	x1, x0
	mov	x0, x25
	bl	_dfixed_div
LBB0_17:
	ldp	x9, x8, [x23]
	cmp	x8, x24
	csel	x8, x8, x24, gt
	cmp	x9, x8
	csel	x8, x9, x8, gt
	ldp	x10, x9, [x22]
	cmp	x9, x0
	csel	x9, x9, x0, gt
	cmp	x10, x9
	csel	x22, x10, x9, gt
	mov	x0, x8
	bl	_dfixed_trunc
	str	w0, [x21]
	mov	x0, x22
	bl	_dfixed_trunc
	str	w0, [x20]
	ldr	w8, [x19]
	cmp	w8, #2
	b.ne	LBB0_35
; %bb.18:
Lloh2:
	adrp	x8, _MODE_PRIORITY_ALWAYS_ON@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MODE_PRIORITY_ALWAYS_ON@GOTPAGEOFF]
	ldr	w9, [x8]
	ldr	w10, [x21]
	orr	w9, w10, w9
	str	w9, [x21]
	ldr	w0, [x8]
	mov	x8, x20
	b	LBB0_34
LBB0_19:
	cbz	x4, LBB0_35
; %bb.20:
	ldr	x0, [x22, #56]
	bl	_dfixed_trunc
	cmp	w0, #65
	b.lt	LBB0_28
; %bb.21:
	ldp	x1, x0, [x22, #48]
	bl	_dfixed_div
	mov	x1, x0
	b	LBB0_29
LBB0_22:
	ldr	x1, [x23, #48]
LBB0_23:
	ldr	x0, [x23, #40]
	bl	_dfixed_div
	ldr	x1, [x23, #16]
	subs	x0, x1, x0
	b.le	LBB0_25
; %bb.24:
	ldr	x1, [x23, #32]
	bl	_dfixed_mul
	mov	x20, x0
	mov	w0, #16
	bl	_dfixed_const
	mov	x1, x0
	mov	x0, x20
	bl	_dfixed_div
	mov	x20, x0
	ldp	x1, x0, [x23, #16]
	bl	_dfixed_mul
	add	x0, x0, x20
	b	LBB0_26
LBB0_25:
	ldr	x0, [x23, #24]
	bl	_dfixed_mul
	mov	x20, x0
	mov	w0, #16
	bl	_dfixed_const
	mov	x1, x0
	mov	x0, x20
	bl	_dfixed_div
LBB0_26:
	ldp	x9, x8, [x23]
	cmp	x8, x0
	csel	x8, x8, x0, gt
	cmp	x9, x8
	csel	x0, x9, x8, gt
	bl	_dfixed_trunc
	str	w0, [x21]
	ldr	w8, [x19]
	cmp	w8, #2
	b.ne	LBB0_35
; %bb.27:
Lloh4:
	adrp	x8, _MODE_PRIORITY_ALWAYS_ON@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MODE_PRIORITY_ALWAYS_ON@GOTPAGEOFF]
	mov	x20, x21
	b	LBB0_34
LBB0_28:
	ldr	x1, [x22, #48]
LBB0_29:
	ldr	x0, [x22, #40]
	bl	_dfixed_div
	ldr	x1, [x22, #16]
	subs	x0, x1, x0
	b.le	LBB0_31
; %bb.30:
	ldr	x1, [x22, #32]
	bl	_dfixed_mul
	mov	x21, x0
	mov	w0, #16
	bl	_dfixed_const
	mov	x1, x0
	mov	x0, x21
	bl	_dfixed_div
	mov	x21, x0
	ldp	x1, x0, [x22, #16]
	bl	_dfixed_mul
	add	x0, x0, x21
	b	LBB0_32
LBB0_31:
	ldr	x0, [x22, #24]
	bl	_dfixed_mul
	mov	x21, x0
	mov	w0, #16000
	bl	_dfixed_const
	mov	x1, x0
	mov	x0, x21
	bl	_dfixed_div
LBB0_32:
	ldp	x9, x8, [x22]
	cmp	x8, x0
	csel	x8, x8, x0, gt
	cmp	x9, x8
	csel	x0, x9, x8, gt
	bl	_dfixed_trunc
	str	w0, [x20]
	ldr	w8, [x19]
	cmp	w8, #2
	b.ne	LBB0_35
; %bb.33:
Lloh6:
	adrp	x8, _MODE_PRIORITY_ALWAYS_ON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MODE_PRIORITY_ALWAYS_ON@GOTPAGEOFF]
LBB0_34:
	ldr	w8, [x8]
	orr	w8, w8, w0
	str	w8, [x20]
LBB0_35:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_PRIORITY_OFF,4,2          ; @MODE_PRIORITY_OFF
	.comm	_MODE_PRIORITY_ALWAYS_ON,4,2    ; @MODE_PRIORITY_ALWAYS_ON
	.no_dead_strip	_rv515_compute_mode_priority
.subsections_via_symbols
