	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega10_find_highest_dpm_level
_vega10_find_highest_dpm_level:         ## @vega10_find_highest_dpm_level
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rdx
	movq	_MAX_REGULAR_DPM_NUMBER@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rdx
	jle	LBB0_1
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movl	(%rbx), %eax
	decl	%eax
	jmp	LBB0_5
LBB0_1:
	movl	%edx, %ecx
	movl	%edx, %eax
	sarl	$31, %eax
	andl	%edx, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rdi), %rdx
	decq	%rcx
	movl	%ecx, %esi
	cmpq	$0, (%rdx,%rsi,8)
	je	LBB0_2
## %bb.4:
	movl	%ecx, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_REGULAR_DPM_NUMBER,8,3     ## @MAX_REGULAR_DPM_NUMBER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DPM Table Has Too Many Entries!"

	.no_dead_strip	_vega10_find_highest_dpm_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vega10_find_highest_dpm_level
_vega10_find_highest_dpm_level:         ; @vega10_find_highest_dpm_level
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x19, _MAX_REGULAR_DPM_NUMBER@GOTPAGE
Lloh1:
	ldr	x19, [x19, _MAX_REGULAR_DPM_NUMBER@GOTPAGEOFF]
	ldr	x9, [x19]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	ldr	w8, [x19]
	sub	w8, w8, #1
	b	LBB0_6
LBB0_2:
	and	x9, x8, #0xffffffff
	cmp	w8, #0
	csel	w8, w8, wzr, lt
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x0, #8]
	sub	x9, x9, #1
	ldr	x10, [x10, w9, uxtw #3]
	cbz	x10, LBB0_3
; %bb.5:
	mov	x8, x9
LBB0_6:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_REGULAR_DPM_NUMBER,8,3     ; @MAX_REGULAR_DPM_NUMBER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DPM Table Has Too Many Entries!"

	.no_dead_strip	_vega10_find_highest_dpm_level
.subsections_via_symbols
