	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dcn20_validate_bandwidth_internal
_dcn20_validate_bandwidth_internal:     ## @dcn20_validate_bandwidth_internal
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_BW_VAL_TRACE_SETUP
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movl	$0, -56(%rbp)
	movq	_MAX_PIPES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	$0, -52(%rbp)
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	shll	$2, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, %r15
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_DC_LOGGER_INIT
	xorl	%eax, %eax
	callq	_BW_VAL_TRACE_COUNT
	leaq	-52(%rbp), %rcx
	leaq	-56(%rbp), %r9
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%r13, %r8
	callq	_dcn20_fast_validate_bw
	movl	%eax, %r12d
	cmpl	$0, -52(%rbp)
	je	LBB0_6
## %bb.1:
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.2:
	xorl	%eax, %eax
	callq	_BW_VAL_TRACE_END_VOLTAGE_LEVEL
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_4
## %bb.3:
	movq	_fast@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BW_VAL_TRACE_SKIP
	jmp	LBB0_6
LBB0_5:
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_dml_get_status_message
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DC_LOG_WARNING
	movq	_fail@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BW_VAL_TRACE_SKIP
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_4:
	movl	-56(%rbp), %r9d
	leaq	-52(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%r13, %r8
	callq	_dcn20_calculate_wm
	movl	-52(%rbp), %ecx
	movl	-56(%rbp), %r8d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_dcn20_calculate_dlg_params
	xorl	%eax, %eax
	callq	_BW_VAL_TRACE_END_WATERMARKS
LBB0_6:
	movq	%r15, %rdi
	callq	_kfree
	xorl	%eax, %eax
	callq	_BW_VAL_TRACE_FINISH
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PIPES,4,2                  ## @MAX_PIPES
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_fast,4,2                       ## @fast
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Mode Validation Warning: %s failed validation.\n"

	.comm	_fail,4,2                       ## @fail
	.no_dead_strip	_dcn20_validate_bandwidth_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dcn20_validate_bandwidth_internal
_dcn20_validate_bandwidth_internal:     ; @dcn20_validate_bandwidth_internal
	.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
	sub	sp, sp, #16
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	bl	_BW_VAL_TRACE_SETUP
	mov	x25, sp
	stur	wzr, [x29, #-76]
Lloh3:
	adrp	x8, _MAX_PIPES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_PIPES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	stur	wzr, [x29, #-80]
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	lsl	w0, w8, #2
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_kzalloc
	mov	x19, x0
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_DC_LOGGER_INIT
	bl	_BW_VAL_TRACE_COUNT
	sub	x3, x29, #80
	sub	x5, x29, #76
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x4, x24
	bl	_dcn20_fast_validate_bw
	mov	x22, x0
	ldur	w8, [x29, #-80]
	cbz	w8, LBB0_7
; %bb.1:
	cbz	w22, LBB0_4
; %bb.2:
	bl	_BW_VAL_TRACE_END_VOLTAGE_LEVEL
	cbz	w23, LBB0_6
; %bb.3:
Lloh11:
	adrp	x8, _fast@GOTPAGE
Lloh12:
	ldr	x8, [x8, _fast@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	ldp	x9, x8, [x20]
	ldr	w0, [x8, x9, lsl #2]
	bl	_dml_get_status_message
	mov	x1, x0
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DC_LOG_WARNING
Lloh15:
	adrp	x8, _fail@GOTPAGE
Lloh16:
	ldr	x8, [x8, _fail@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	bl	_BW_VAL_TRACE_SKIP
	b	LBB0_7
LBB0_6:
	ldur	w5, [x29, #-76]
	sub	x3, x29, #80
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x4, x24
	bl	_dcn20_calculate_wm
	ldp	w3, w4, [x29, #-80]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_dcn20_calculate_dlg_params
	bl	_BW_VAL_TRACE_END_WATERMARKS
LBB0_7:
	mov	x0, x19
	bl	_kfree
	bl	_BW_VAL_TRACE_FINISH
	mov	sp, x25
	ldur	x8, [x29, #-72]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x22
	sub	sp, x29, #64
	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
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PIPES,4,2                  ; @MAX_PIPES
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_fast,4,2                       ; @fast
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Mode Validation Warning: %s failed validation.\n"

	.comm	_fail,4,2                       ; @fail
	.no_dead_strip	_dcn20_validate_bandwidth_internal
.subsections_via_symbols
