	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	$1, %edi
	callq	_S_006548_D1MODE_PRIORITY_A_OFF
	movl	%eax, %r15d
	movl	$1, %edi
	callq	_S_006548_D1MODE_PRIORITY_A_OFF
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_radeon_update_display_priority
	movq	16(%r12), %rax
	movq	(%rax), %rbx
	movq	8(%rax), %r13
	movq	8(%rbx), %rax
	testq	%rax, %rax
	cmoveq	%rax, %rbx
	movq	8(%r13), %rax
	testq	%rax, %rax
	cmoveq	%rax, %r13
	cmpl	$2, (%r12)
	jne	LBB0_8
## %bb.1:
	movq	8(%r12), %rax
	movq	_CHIP_RS690@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_CHIP_RS740@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_3:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	_R_000104_MC_INIT_MISC_LAT_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32_MC
	movl	%eax, %r14d
	movq	_C_000104_MC_DISP0R_INIT_LAT@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	_C_000104_MC_DISP1R_INIT_LAT@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	movl	$1, %edi
	callq	_S_000104_MC_DISP0R_INIT_LAT
	orl	%eax, %r14d
LBB0_5:
	testq	%r13, %r13
	je	LBB0_7
## %bb.6:
	movl	$1, %edi
	callq	_S_000104_MC_DISP1R_INIT_LAT
	orl	%eax, %r14d
LBB0_7:
	movq	_R_000104_MC_INIT_MISC_LAT_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_WREG32_MC
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_8:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_rs690_line_buffer_adjust
	movq	8(%r12), %rax
	movq	_CHIP_RS690@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:
	movq	_CHIP_RS740@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
LBB0_10:
	movq	_R_006C9C_DCP_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_WREG32
	movq	8(%r12), %rax
LBB0_11:
	movq	_CHIP_RS780@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.12:
	movq	_CHIP_RS880@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
LBB0_13:
	movq	_R_006C9C_DCP_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$2, %esi
	callq	_WREG32
LBB0_14:
	movq	16(%r12), %rax
	movq	(%rax), %rsi
	leaq	-120(%rbp), %rdx
	movq	%r12, %rdi
	callq	_rs690_crtc_bandwidth_compute
	movq	16(%r12), %rax
	movq	8(%rax), %rsi
	leaq	-192(%rbp), %rdx
	movq	%r12, %rdi
	callq	_rs690_crtc_bandwidth_compute
	movl	-120(%rbp), %eax
	decl	%eax
	movl	-192(%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
	testq	%rbx, %rbx
	je	LBB0_30
## %bb.15:
	testq	%r13, %r13
	je	LBB0_30
## %bb.16:
	movq	-56(%rbp), %rdi
	callq	_dfixed_trunc
	cmpl	$65, %eax
	jl	LBB0_18
## %bb.17:
	movq	-64(%rbp), %rsi
	movq	-56(%rbp), %rdi
	callq	_dfixed_mul
	movq	%rax, %rbx
	jmp	LBB0_19
LBB0_30:
	testq	%rbx, %rbx
	je	LBB0_39
## %bb.31:
	movq	-56(%rbp), %rdi
	callq	_dfixed_trunc
	cmpl	$65, %eax
	jl	LBB0_33
## %bb.32:
	movq	-64(%rbp), %rsi
	movq	-56(%rbp), %rdi
	callq	_dfixed_mul
	movq	%rax, %rsi
	jmp	LBB0_34
LBB0_18:
	movq	-64(%rbp), %rbx
LBB0_19:
	movq	-128(%rbp), %rdi
	callq	_dfixed_trunc
	cmpl	$65, %eax
	jl	LBB0_21
## %bb.20:
	movq	-136(%rbp), %rsi
	movq	-128(%rbp), %rdi
	callq	_dfixed_mul
	movq	%rax, %rsi
	jmp	LBB0_22
LBB0_21:
	movq	-136(%rbp), %rsi
LBB0_22:
	addq	%rbx, %rsi
	movq	-72(%rbp), %rdi
	callq	_dfixed_div
	movq	%rax, %r14
	movq	-96(%rbp), %rsi
	movq	%rsi, %rdi
	subq	%rax, %rdi
	jle	LBB0_24
## %bb.23:
	movq	-80(%rbp), %rsi
	callq	_dfixed_mul
	movq	%rax, %r15
	movq	-96(%rbp), %rsi
	movq	-88(%rbp), %rdi
	callq	_dfixed_mul
	movq	%rax, %rbx
	addq	%r15, %rbx
	jmp	LBB0_25
LBB0_24:
	movq	-88(%rbp), %rdi
	callq	_dfixed_mul
	movq	%rax, %rbx
LBB0_25:
	movl	$16000, %edi                    ## imm = 0x3E80
	callq	_dfixed_const
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_dfixed_div
	movq	%rax, %r15
	movq	-168(%rbp), %rsi
	movq	%rsi, %rdi
	subq	%r14, %rdi
	jle	LBB0_27
## %bb.26:
	movq	-152(%rbp), %rsi
	callq	_dfixed_mul
	movq	%rax, %r14
	movq	-168(%rbp), %rsi
	movq	-160(%rbp), %rdi
	callq	_dfixed_mul
	movq	%rax, %rbx
	addq	%r14, %rbx
	jmp	LBB0_28
LBB0_27:
	movq	-160(%rbp), %rdi
	callq	_dfixed_mul
	movq	%rax, %rbx
LBB0_28:
	movl	$16000, %edi                    ## imm = 0x3E80
	callq	_dfixed_const
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_dfixed_div
	movq	%rax, %rbx
	movq	-104(%rbp), %rax
	cmpq	%r15, %rax
	cmovgq	%rax, %r15
	movq	%r15, %rdi
	callq	_dfixed_trunc
	xorl	%r14d, %r14d
	testl	%eax, %eax
	cmovsq	%r14, %r15
	movq	-112(%rbp), %rax
	cmpq	%r15, %rax
	cmovgq	%rax, %r15
	movq	-176(%rbp), %rax
	cmpq	%rbx, %rax
	cmovgq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_dfixed_trunc
	testl	%eax, %eax
	cmovsq	%r14, %rbx
	movq	-184(%rbp), %rax
	cmpq	%rbx, %rax
	cmovgq	%rax, %rbx
	movq	%r15, %rdi
	callq	_dfixed_trunc
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_dfixed_trunc
	movl	%eax, %r14d
	cmpl	$2, (%r12)
	jne	LBB0_48
## %bb.29:
	movl	$1, %edi
	callq	_S_006548_D1MODE_PRIORITY_A_ALWAYS_ON
	orl	%eax, %r15d
	jmp	LBB0_47
LBB0_39:
	testq	%r13, %r13
	je	LBB0_48
## %bb.40:
	movq	-128(%rbp), %rdi
	callq	_dfixed_trunc
	cmpl	$65, %eax
	jl	LBB0_42
## %bb.41:
	movq	-136(%rbp), %rsi
	movq	-128(%rbp), %rdi
	callq	_dfixed_mul
	movq	%rax, %rsi
	jmp	LBB0_43
LBB0_33:
	movq	-64(%rbp), %rsi
LBB0_34:
	movq	-72(%rbp), %rdi
	callq	_dfixed_div
	movq	-96(%rbp), %rsi
	movq	%rsi, %rdi
	subq	%rax, %rdi
	jle	LBB0_36
## %bb.35:
	movq	-80(%rbp), %rsi
	callq	_dfixed_mul
	movl	%r14d, %r15d
	movq	%rax, %r14
	movq	-96(%rbp), %rsi
	movq	-88(%rbp), %rdi
	callq	_dfixed_mul
	movq	%rax, %rbx
	addq	%r14, %rbx
	movl	%r15d, %r14d
	jmp	LBB0_37
LBB0_36:
	movq	-88(%rbp), %rdi
	callq	_dfixed_mul
	movq	%rax, %rbx
LBB0_37:
	movl	$16000, %edi                    ## imm = 0x3E80
	callq	_dfixed_const
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_dfixed_div
	movq	-104(%rbp), %rbx
	cmpq	%rax, %rbx
	cmovleq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_dfixed_trunc
	xorl	%edi, %edi
	testl	%eax, %eax
	cmovnsq	%rbx, %rdi
	movq	-112(%rbp), %rax
	cmpq	%rdi, %rax
	cmovgq	%rax, %rdi
	callq	_dfixed_trunc
	movl	%eax, %r15d
	cmpl	$2, (%r12)
	jne	LBB0_48
## %bb.38:
	movl	$1, %edi
	callq	_S_006548_D1MODE_PRIORITY_A_ALWAYS_ON
	orl	%eax, %r15d
	jmp	LBB0_48
LBB0_42:
	movq	-136(%rbp), %rsi
LBB0_43:
	movq	-144(%rbp), %rdi
	callq	_dfixed_div
	movq	-168(%rbp), %rsi
	movq	%rsi, %rdi
	subq	%rax, %rdi
	jle	LBB0_45
## %bb.44:
	movq	-152(%rbp), %rsi
	callq	_dfixed_mul
	movq	%rax, %r14
	movq	-168(%rbp), %rsi
	movq	-160(%rbp), %rdi
	callq	_dfixed_mul
	movq	%rax, %rbx
	addq	%r14, %rbx
	jmp	LBB0_46
LBB0_45:
	movq	-160(%rbp), %rdi
	callq	_dfixed_mul
	movq	%rax, %rbx
LBB0_46:
	movl	$16000, %edi                    ## imm = 0x3E80
	callq	_dfixed_const
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_dfixed_div
	movq	-176(%rbp), %rbx
	cmpq	%rax, %rbx
	cmovleq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_dfixed_trunc
	xorl	%edi, %edi
	testl	%eax, %eax
	cmovnsq	%rbx, %rdi
	movq	-184(%rbp), %rax
	cmpq	%rdi, %rax
	cmovgq	%rax, %rdi
	callq	_dfixed_trunc
	movl	%eax, %r14d
	cmpl	$2, (%r12)
	jne	LBB0_48
LBB0_47:
	movl	$1, %edi
	callq	_S_006D48_D2MODE_PRIORITY_A_ALWAYS_ON
	orl	%eax, %r14d
LBB0_48:
	movq	_R_006548_D1MODE_PRIORITY_A_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_WREG32
	movq	_R_00654C_D1MODE_PRIORITY_B_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_WREG32
	movq	_R_006D48_D2MODE_PRIORITY_A_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_WREG32
	movq	_R_006D4C_D2MODE_PRIORITY_B_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_WREG32
	addq	$152, %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, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	mov	w0, #1
	bl	_S_006548_D1MODE_PRIORITY_A_OFF
	mov	x21, x0
	mov	w0, #1
	bl	_S_006548_D1MODE_PRIORITY_A_OFF
	mov	x20, x0
	mov	x0, x19
	bl	_radeon_update_display_priority
	ldr	x8, [x19, #16]
	ldp	x9, x8, [x8]
	ldr	x10, [x9, #8]
	cmp	x10, #0
	csel	x23, xzr, x9, eq
	ldr	x9, [x8, #8]
	cmp	x9, #0
	csel	x22, xzr, x8, eq
	ldr	w8, [x19]
Lloh0:
	adrp	x25, _CHIP_RS690@GOTPAGE
Lloh1:
	ldr	x25, [x25, _CHIP_RS690@GOTPAGEOFF]
Lloh2:
	adrp	x26, _CHIP_RS740@GOTPAGE
Lloh3:
	ldr	x26, [x26, _CHIP_RS740@GOTPAGEOFF]
	cmp	w8, #2
	b.ne	LBB0_7
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x9, [x25]
	ldr	x10, [x26]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_7
; %bb.2:
Lloh4:
	adrp	x27, _R_000104_MC_INIT_MISC_LAT_TIMER@GOTPAGE
Lloh5:
	ldr	x27, [x27, _R_000104_MC_INIT_MISC_LAT_TIMER@GOTPAGEOFF]
	ldr	w0, [x27]
	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	w24, w8, w9
	cbz	x23, LBB0_4
; %bb.3:
	mov	w0, #1
	bl	_S_000104_MC_DISP0R_INIT_LAT
	orr	w24, w0, w24
LBB0_4:
	cbz	x22, LBB0_6
; %bb.5:
	mov	w0, #1
	bl	_S_000104_MC_DISP1R_INIT_LAT
	orr	w24, w0, w24
LBB0_6:
	ldr	w0, [x27]
	mov	x1, x24
	bl	_WREG32_MC
LBB0_7:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_rs690_line_buffer_adjust
	ldr	x8, [x19, #8]
	ldr	x9, [x25]
	ldr	x10, [x26]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
Lloh12:
	adrp	x24, _R_006C9C_DCP_CONTROL@GOTPAGE
Lloh13:
	ldr	x24, [x24, _R_006C9C_DCP_CONTROL@GOTPAGEOFF]
	b.ne	LBB0_9
; %bb.8:
	ldr	w0, [x24]
	mov	w1, #0
	bl	_WREG32
	ldr	x8, [x19, #8]
LBB0_9:
Lloh14:
	adrp	x9, _CHIP_RS780@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CHIP_RS780@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
Lloh17:
	adrp	x10, _CHIP_RS880@GOTPAGE
Lloh18:
	ldr	x10, [x10, _CHIP_RS880@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_11
; %bb.10:
	ldr	w0, [x24]
	mov	w1, #2
	bl	_WREG32
LBB0_11:
	ldr	x8, [x19, #16]
	ldr	x1, [x8]
	add	x2, sp, #72
	mov	x0, x19
	bl	_rs690_crtc_bandwidth_compute
	ldr	x8, [x19, #16]
	ldr	x1, [x8, #8]
	mov	x2, sp
	mov	x0, x19
	bl	_rs690_crtc_bandwidth_compute
	ldr	w8, [sp, #72]
	sub	w8, w8, #1
	ldr	w9, [sp]
	lsl	w9, w9, #16
	sub	w9, w9, #16, lsl #12            ; =65536
	orr	w1, w9, w8
Lloh20:
	adrp	x8, _R_006D58_LB_MAX_REQ_OUTSTANDING@GOTPAGE
Lloh21:
	ldr	x8, [x8, _R_006D58_LB_MAX_REQ_OUTSTANDING@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_WREG32
	cmp	x23, #0
	ccmp	x22, #0, #4, ne
	b.ne	LBB0_15
; %bb.12:
	cbz	x23, LBB0_30
; %bb.13:
	ldr	x0, [sp, #136]
	bl	_dfixed_trunc
	cmp	w0, #65
	b.lt	LBB0_33
; %bb.14:
	ldp	x1, x0, [sp, #128]
	bl	_dfixed_mul
	mov	x1, x0
	b	LBB0_34
LBB0_15:
	ldr	x0, [sp, #136]
	bl	_dfixed_trunc
	cmp	w0, #65
	b.lt	LBB0_17
; %bb.16:
	ldp	x1, x0, [sp, #128]
	bl	_dfixed_mul
	mov	x20, x0
	b	LBB0_18
LBB0_17:
	ldr	x20, [sp, #128]
LBB0_18:
	ldr	x0, [sp, #64]
	bl	_dfixed_trunc
	cmp	w0, #65
	b.lt	LBB0_20
; %bb.19:
	ldp	x1, x0, [sp, #56]
	bl	_dfixed_mul
	b	LBB0_21
LBB0_20:
	ldr	x0, [sp, #56]
LBB0_21:
	add	x1, x0, x20
	ldr	x0, [sp, #120]
	bl	_dfixed_div
	mov	x21, x0
	ldr	x1, [sp, #96]
	subs	x0, x1, x0
	b.le	LBB0_23
; %bb.22:
	ldr	x1, [sp, #112]
	bl	_dfixed_mul
	mov	x20, x0
	ldp	x1, x0, [sp, #96]
	bl	_dfixed_mul
	add	x20, x0, x20
	b	LBB0_24
LBB0_23:
	ldr	x0, [sp, #104]
	bl	_dfixed_mul
	mov	x20, x0
LBB0_24:
	mov	w0, #16000
	bl	_dfixed_const
	mov	x1, x0
	mov	x0, x20
	bl	_dfixed_div
	mov	x20, x0
	ldr	x1, [sp, #24]
	subs	x0, x1, x21
	b.le	LBB0_26
; %bb.25:
	ldr	x1, [sp, #40]
	bl	_dfixed_mul
	mov	x21, x0
	ldp	x1, x0, [sp, #24]
	bl	_dfixed_mul
	add	x21, x0, x21
	b	LBB0_27
LBB0_26:
	ldr	x0, [sp, #32]
	bl	_dfixed_mul
	mov	x21, x0
LBB0_27:
	mov	w0, #16000
	bl	_dfixed_const
	mov	x1, x0
	mov	x0, x21
	bl	_dfixed_div
	mov	x21, x0
	ldr	x8, [sp, #88]
	cmp	x8, x20
	csel	x20, x8, x20, gt
	mov	x0, x20
	bl	_dfixed_trunc
	cmp	w0, #0
	csel	x8, xzr, x20, lt
	ldr	x9, [sp, #80]
	cmp	x9, x8
	csel	x20, x9, x8, gt
	ldr	x8, [sp, #16]
	cmp	x8, x21
	csel	x21, x8, x21, gt
	mov	x0, x21
	bl	_dfixed_trunc
	cmp	w0, #0
	csel	x8, xzr, x21, lt
	ldr	x9, [sp, #8]
	cmp	x9, x8
	csel	x22, x9, x8, gt
	mov	x0, x20
	bl	_dfixed_trunc
	mov	x21, x0
	mov	x0, x22
	bl	_dfixed_trunc
	mov	x20, x0
	ldr	w8, [x19]
	cmp	w8, #2
	b.ne	LBB0_44
; %bb.28:
	mov	w0, #1
	bl	_S_006548_D1MODE_PRIORITY_A_ALWAYS_ON
	orr	w21, w0, w21
LBB0_29:
	mov	w0, #1
	bl	_S_006D48_D2MODE_PRIORITY_A_ALWAYS_ON
	orr	w20, w0, w20
	b	LBB0_44
LBB0_30:
	cbz	x22, LBB0_44
; %bb.31:
	ldr	x0, [sp, #64]
	bl	_dfixed_trunc
	cmp	w0, #65
	b.lt	LBB0_39
; %bb.32:
	ldp	x1, x0, [sp, #56]
	bl	_dfixed_mul
	mov	x1, x0
	b	LBB0_40
LBB0_33:
	ldr	x1, [sp, #128]
LBB0_34:
	ldr	x0, [sp, #120]
	bl	_dfixed_div
	ldr	x1, [sp, #96]
	subs	x0, x1, x0
	b.le	LBB0_36
; %bb.35:
	ldr	x1, [sp, #112]
	bl	_dfixed_mul
	mov	x21, x0
	ldp	x1, x0, [sp, #96]
	bl	_dfixed_mul
	add	x21, x0, x21
	b	LBB0_37
LBB0_36:
	ldr	x0, [sp, #104]
	bl	_dfixed_mul
	mov	x21, x0
LBB0_37:
	mov	w0, #16000
	bl	_dfixed_const
	mov	x1, x0
	mov	x0, x21
	bl	_dfixed_div
	ldr	x8, [sp, #88]
	cmp	x8, x0
	csel	x21, x8, x0, gt
	mov	x0, x21
	bl	_dfixed_trunc
	cmp	w0, #0
	csel	x8, xzr, x21, lt
	ldr	x9, [sp, #80]
	cmp	x9, x8
	csel	x0, x9, x8, gt
	bl	_dfixed_trunc
	mov	x21, x0
	ldr	w8, [x19]
	cmp	w8, #2
	b.ne	LBB0_44
; %bb.38:
	mov	w0, #1
	bl	_S_006548_D1MODE_PRIORITY_A_ALWAYS_ON
	orr	w21, w0, w21
	b	LBB0_44
LBB0_39:
	ldr	x1, [sp, #56]
LBB0_40:
	ldr	x0, [sp, #48]
	bl	_dfixed_div
	ldr	x1, [sp, #24]
	subs	x0, x1, x0
	b.le	LBB0_42
; %bb.41:
	ldr	x1, [sp, #40]
	bl	_dfixed_mul
	mov	x20, x0
	ldp	x1, x0, [sp, #24]
	bl	_dfixed_mul
	add	x20, x0, x20
	b	LBB0_43
LBB0_42:
	ldr	x0, [sp, #32]
	bl	_dfixed_mul
	mov	x20, x0
LBB0_43:
	mov	w0, #16000
	bl	_dfixed_const
	mov	x1, x0
	mov	x0, x20
	bl	_dfixed_div
	ldr	x8, [sp, #16]
	cmp	x8, x0
	csel	x20, x8, x0, gt
	mov	x0, x20
	bl	_dfixed_trunc
	cmp	w0, #0
	csel	x8, xzr, x20, lt
	ldr	x9, [sp, #8]
	cmp	x9, x8
	csel	x0, x9, x8, gt
	bl	_dfixed_trunc
	mov	x20, x0
	ldr	w8, [x19]
	cmp	w8, #2
	b.eq	LBB0_29
LBB0_44:
Lloh23:
	adrp	x8, _R_006548_D1MODE_PRIORITY_A_CNT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _R_006548_D1MODE_PRIORITY_A_CNT@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_WREG32
Lloh26:
	adrp	x8, _R_00654C_D1MODE_PRIORITY_B_CNT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _R_00654C_D1MODE_PRIORITY_B_CNT@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_WREG32
Lloh29:
	adrp	x8, _R_006D48_D2MODE_PRIORITY_A_CNT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _R_006D48_D2MODE_PRIORITY_A_CNT@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_WREG32
Lloh32:
	adrp	x8, _R_006D4C_D2MODE_PRIORITY_B_CNT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _R_006D4C_D2MODE_PRIORITY_B_CNT@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_WREG32
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.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
