	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dcn10_optimize_bandwidth
_dcn10_optimize_bandwidth:              ## @dcn10_optimize_bandwidth
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	8(%rax), %r15
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_dcn10_verify_allow_pstate_change_high
LBB0_2:
	movq	32(%rbx), %rax
	movl	(%rax), %edi
	callq	_IS_FPGA_MAXIMUS_DC
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	cmpq	$0, (%r14)
	jne	LBB0_5
## %bb.4:
	movq	$0, 16(%r14)
LBB0_5:
	movq	24(%rbx), %rdi
	movq	(%rdi), %rax
	movq	%r14, %rsi
	movl	$1, %edx
	callq	*(%rax)
LBB0_6:
	movq	(%r15), %rax
	leaq	8(%r14), %rsi
	movq	16(%rbx), %rcx
	movslq	(%rcx), %rcx
	imulq	$274877907, %rcx, %rdx          ## imm = 0x10624DD3
	movq	%rdx, %rcx
	shrq	$63, %rcx
	sarq	$38, %rdx
	addl	%ecx, %edx
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	$1, %ecx
	callq	*(%rax)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_dcn10_stereo_hw_frame_pack_wa
	movq	(%rbx), %rax
	movq	_WM_REPORT_OVERRIDE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_dcn_bw_notify_pplib_of_wm_ranges
LBB0_8:
	cmpq	$0, 8(%rbx)
	je	LBB0_9
## %bb.10:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dcn10_verify_allow_pstate_change_high ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM_REPORT_OVERRIDE,8,3         ## @WM_REPORT_OVERRIDE
	.no_dead_strip	_dcn10_optimize_bandwidth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dcn10_optimize_bandwidth
_dcn10_optimize_bandwidth:              ; @dcn10_optimize_bandwidth
	.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
	mov	x20, x1
	mov	x19, x0
	ldp	x9, x8, [x0, #8]
	ldr	x21, [x8, #8]
	cbz	x9, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_dcn10_verify_allow_pstate_change_high
LBB0_2:
	ldr	x8, [x19, #32]
	ldr	w0, [x8]
	bl	_IS_FPGA_MAXIMUS_DC
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	x8, [x20]
	cbnz	x8, LBB0_5
; %bb.4:
	str	xzr, [x20, #16]
LBB0_5:
	ldr	x0, [x19, #24]
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	x1, x20
	mov	w2, #1
	blr	x8
LBB0_6:
	ldr	x8, [x21]
	ldr	x8, [x8]
	add	x1, x20, #8
	ldr	x9, [x19, #16]
	ldrsw	x9, [x9]
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w2, w9, w10
	mov	x0, x21
	mov	w3, #1
	blr	x8
	mov	x0, x19
	mov	x1, x20
	bl	_dcn10_stereo_hw_frame_pack_wa
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _WM_REPORT_OVERRIDE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WM_REPORT_OVERRIDE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_dcn_bw_notify_pplib_of_wm_ranges
LBB0_8:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x19
	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	_dcn10_verify_allow_pstate_change_high
LBB0_10:
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WM_REPORT_OVERRIDE,8,3         ; @WM_REPORT_OVERRIDE
	.no_dead_strip	_dcn10_optimize_bandwidth
.subsections_via_symbols
