	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vega12_get_profiling_clk_mask
_vega12_get_profiling_clk_mask:         ## @vega12_get_profiling_clk_mask
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	$0, (%rdx)
	movq	$0, (%rcx)
	movq	$0, (%r8)
	movq	_VEGA12_UMD_PSTATE_GFXCLK_LEVEL@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	cmpq	%rdi, 16(%rax)
	jle	LBB0_4
## %bb.1:
	movq	8(%rax), %r10
	movq	_VEGA12_UMD_PSTATE_MCLK_LEVEL@GOTPCREL(%rip), %r9
	cmpq	(%r9), %r10
	jle	LBB0_4
## %bb.2:
	movq	(%rax), %r11
	movq	_VEGA12_UMD_PSTATE_SOCCLK_LEVEL@GOTPCREL(%rip), %r10
	cmpq	(%r10), %r11
	jle	LBB0_4
## %bb.3:
	movq	%rdi, (%rdx)
	movq	(%r9), %rdi
	movq	%rdi, (%rcx)
	movq	(%r10), %rdi
	movq	%rdi, (%r8)
LBB0_4:
	movq	_AMD_DPM_FORCED_LEVEL_PROFILE_MIN_SCLK@GOTPCREL(%rip), %rdi
	cmpl	%esi, (%rdi)
	jne	LBB0_6
## %bb.5:
	movq	$0, (%rdx)
	jmp	LBB0_10
LBB0_6:
	movq	_AMD_DPM_FORCED_LEVEL_PROFILE_MIN_MCLK@GOTPCREL(%rip), %rdi
	cmpl	%esi, (%rdi)
	jne	LBB0_8
## %bb.7:
	movq	$0, (%rcx)
	jmp	LBB0_10
LBB0_8:
	movq	_AMD_DPM_FORCED_LEVEL_PROFILE_PEAK@GOTPCREL(%rip), %rdi
	cmpl	%esi, (%rdi)
	jne	LBB0_10
## %bb.9:
	movq	16(%rax), %rsi
	decq	%rsi
	movq	%rsi, (%rdx)
	movq	8(%rax), %rdx
	decq	%rdx
	movq	%rdx, (%rcx)
	movq	(%rax), %rax
	decq	%rax
	movq	%rax, (%r8)
LBB0_10:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VEGA12_UMD_PSTATE_GFXCLK_LEVEL,8,3 ## @VEGA12_UMD_PSTATE_GFXCLK_LEVEL
	.comm	_VEGA12_UMD_PSTATE_MCLK_LEVEL,8,3 ## @VEGA12_UMD_PSTATE_MCLK_LEVEL
	.comm	_VEGA12_UMD_PSTATE_SOCCLK_LEVEL,8,3 ## @VEGA12_UMD_PSTATE_SOCCLK_LEVEL
	.comm	_AMD_DPM_FORCED_LEVEL_PROFILE_MIN_SCLK,4,2 ## @AMD_DPM_FORCED_LEVEL_PROFILE_MIN_SCLK
	.comm	_AMD_DPM_FORCED_LEVEL_PROFILE_MIN_MCLK,4,2 ## @AMD_DPM_FORCED_LEVEL_PROFILE_MIN_MCLK
	.comm	_AMD_DPM_FORCED_LEVEL_PROFILE_PEAK,4,2 ## @AMD_DPM_FORCED_LEVEL_PROFILE_PEAK
	.no_dead_strip	_vega12_get_profiling_clk_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vega12_get_profiling_clk_mask
_vega12_get_profiling_clk_mask:         ; @vega12_get_profiling_clk_mask
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	str	xzr, [x2]
	str	xzr, [x3]
	str	xzr, [x4]
	ldr	x10, [x8, #16]
Lloh0:
	adrp	x9, _VEGA12_UMD_PSTATE_GFXCLK_LEVEL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VEGA12_UMD_PSTATE_GFXCLK_LEVEL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x10, x9
	b.le	LBB0_4
; %bb.1:
	ldr	x11, [x8, #8]
Lloh3:
	adrp	x10, _VEGA12_UMD_PSTATE_MCLK_LEVEL@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VEGA12_UMD_PSTATE_MCLK_LEVEL@GOTPAGEOFF]
	ldr	x12, [x10]
	cmp	x11, x12
	b.le	LBB0_4
; %bb.2:
	ldr	x12, [x8]
Lloh5:
	adrp	x11, _VEGA12_UMD_PSTATE_SOCCLK_LEVEL@GOTPAGE
Lloh6:
	ldr	x11, [x11, _VEGA12_UMD_PSTATE_SOCCLK_LEVEL@GOTPAGEOFF]
	ldr	x13, [x11]
	cmp	x12, x13
	b.le	LBB0_4
; %bb.3:
	str	x9, [x2]
	ldr	x9, [x10]
	str	x9, [x3]
	ldr	x9, [x11]
	str	x9, [x4]
LBB0_4:
Lloh7:
	adrp	x9, _AMD_DPM_FORCED_LEVEL_PROFILE_MIN_SCLK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AMD_DPM_FORCED_LEVEL_PROFILE_MIN_SCLK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w9, w1
	b.ne	LBB0_6
; %bb.5:
	str	xzr, [x2]
	mov	w0, #0
	ret
LBB0_6:
Lloh10:
	adrp	x9, _AMD_DPM_FORCED_LEVEL_PROFILE_MIN_MCLK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AMD_DPM_FORCED_LEVEL_PROFILE_MIN_MCLK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w9, w1
	b.ne	LBB0_8
; %bb.7:
	str	xzr, [x3]
	mov	w0, #0
	ret
LBB0_8:
Lloh13:
	adrp	x9, _AMD_DPM_FORCED_LEVEL_PROFILE_PEAK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AMD_DPM_FORCED_LEVEL_PROFILE_PEAK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w9, w1
	b.ne	LBB0_10
; %bb.9:
	ldr	x9, [x8, #16]
	sub	x9, x9, #1
	str	x9, [x2]
	ldr	x9, [x8, #8]
	sub	x9, x9, #1
	str	x9, [x3]
	ldr	x8, [x8]
	sub	x8, x8, #1
	str	x8, [x4]
LBB0_10:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_VEGA12_UMD_PSTATE_GFXCLK_LEVEL,8,3 ; @VEGA12_UMD_PSTATE_GFXCLK_LEVEL
	.comm	_VEGA12_UMD_PSTATE_MCLK_LEVEL,8,3 ; @VEGA12_UMD_PSTATE_MCLK_LEVEL
	.comm	_VEGA12_UMD_PSTATE_SOCCLK_LEVEL,8,3 ; @VEGA12_UMD_PSTATE_SOCCLK_LEVEL
	.comm	_AMD_DPM_FORCED_LEVEL_PROFILE_MIN_SCLK,4,2 ; @AMD_DPM_FORCED_LEVEL_PROFILE_MIN_SCLK
	.comm	_AMD_DPM_FORCED_LEVEL_PROFILE_MIN_MCLK,4,2 ; @AMD_DPM_FORCED_LEVEL_PROFILE_MIN_MCLK
	.comm	_AMD_DPM_FORCED_LEVEL_PROFILE_PEAK,4,2 ; @AMD_DPM_FORCED_LEVEL_PROFILE_PEAK
	.no_dead_strip	_vega12_get_profiling_clk_mask
.subsections_via_symbols
