	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce_get_required_clocks_state  ## -- Begin function dce_get_required_clocks_state
	.p2align	4, 0x90
_dce_get_required_clocks_state:         ## @dce_get_required_clocks_state
	.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
	callq	_TO_CLK_MGR_INTERNAL
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_dce_get_max_pixel_clock_for_all_paths
	movl	(%r15), %r10d
	movslq	%r10d, %r9
	movq	_DM_PP_CLOCKS_STATE_ULTRA_LOW@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdi
	movl	%r10d, %ecx
	cmpl	%edi, %r9d
	jl	LBB0_6
## %bb.1:
	movq	(%r14), %rbx
	movq	8(%r15), %rcx
	leal	-1(%rdi), %r8d
	leaq	1(%r9), %rsi
	movq	%r9, %rdx
	shlq	$4, %rdx
	addq	%rcx, %rdx
	addq	$8, %rdx
	movl	%r10d, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	-8(%rdx), %rbx
	jg	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	(%rdx), %eax
	jg	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%ecx
	decq	%rsi
	addq	$-16, %rdx
	cmpq	%rdi, %rsi
	jg	LBB0_2
## %bb.5:
	movl	%r8d, %ecx
LBB0_6:
	incl	%ecx
	cmpl	%r10d, %ecx
	jbe	LBB0_10
## %bb.7:
	movq	8(%r15), %rax
	shlq	$4, %r9
	movq	(%rax,%r9), %rax
	cmpq	(%r14), %rax
	jge	LBB0_9
## %bb.8:
	movq	_DM_PP_CLOCKS_STATE_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
LBB0_9:
	movl	%r10d, %ecx
LBB0_10:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_PP_CLOCKS_STATE_ULTRA_LOW,4,2 ## @DM_PP_CLOCKS_STATE_ULTRA_LOW
	.comm	_DM_PP_CLOCKS_STATE_INVALID,4,2 ## @DM_PP_CLOCKS_STATE_INVALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce_get_required_clocks_state  ; -- Begin function dce_get_required_clocks_state
	.p2align	2
_dce_get_required_clocks_state:         ; @dce_get_required_clocks_state
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_TO_CLK_MGR_INTERNAL
	mov	x20, x0
	mov	x0, x19
	bl	_dce_get_max_pixel_clock_for_all_paths
	ldr	w8, [x20]
	sxtw	x9, w8
Lloh0:
	adrp	x10, _DM_PP_CLOCKS_STATE_ULTRA_LOW@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DM_PP_CLOCKS_STATE_ULTRA_LOW@GOTPAGEOFF]
Lloh2:
	ldrsw	x10, [x10]
	cmp	w8, w10
	b.ge	LBB0_2
; %bb.1:
	mov	x12, x8
	b	LBB0_7
LBB0_2:
	ldr	x11, [x19]
	ldr	x12, [x20, #8]
	sub	w13, w10, #1
	add	x14, x9, #1
	add	x12, x12, x9, lsl #4
	add	x15, x12, #8
	mov	x12, x8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x16, [x15, #-8]
	cmp	x11, x16
	b.gt	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w16, [x15]
	cmp	w0, w16
	b.gt	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w12, w12, #1
	sub	x14, x14, #1
	sub	x15, x15, #16
	cmp	x14, x10
	b.gt	LBB0_3
; %bb.6:
	mov	x12, x13
LBB0_7:
	add	w0, w12, #1
	cmp	w0, w8
	b.ls	LBB0_9
; %bb.8:
	ldr	x10, [x20, #8]
	lsl	x9, x9, #4
	ldr	x9, [x10, x9]
	ldr	x10, [x19]
Lloh3:
	adrp	x11, _DM_PP_CLOCKS_STATE_INVALID@GOTPAGE
Lloh4:
	ldr	x11, [x11, _DM_PP_CLOCKS_STATE_INVALID@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	cmp	x9, x10
	csel	w0, w11, w8, lt
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_PP_CLOCKS_STATE_ULTRA_LOW,4,2 ; @DM_PP_CLOCKS_STATE_ULTRA_LOW
	.comm	_DM_PP_CLOCKS_STATE_INVALID,4,2 ; @DM_PP_CLOCKS_STATE_INVALID
.subsections_via_symbols
