	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arcturus_get_profiling_clk_mask
_arcturus_get_profiling_clk_mask:       ## @arcturus_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), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	$0, (%rdx)
	movq	$0, (%rcx)
	movq	$0, (%r8)
	movq	_ARCTURUS_UMD_PSTATE_GFXCLK_LEVEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, 16(%rdi)
	jle	LBB0_5
## %bb.2:
	movq	8(%rdi), %r10
	movq	_ARCTURUS_UMD_PSTATE_MCLK_LEVEL@GOTPCREL(%rip), %r9
	cmpq	(%r9), %r10
	jle	LBB0_5
## %bb.3:
	movq	(%rdi), %r11
	movq	_ARCTURUS_UMD_PSTATE_SOCCLK_LEVEL@GOTPCREL(%rip), %r10
	cmpq	(%r10), %r11
	jle	LBB0_5
## %bb.4:
	movq	%rax, (%rdx)
	movq	(%r9), %rax
	movq	%rax, (%rcx)
	movq	(%r10), %rax
	movq	%rax, (%r8)
LBB0_5:
	movq	_AMD_DPM_FORCED_LEVEL_PROFILE_MIN_SCLK@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_9
## %bb.6:
	movq	$0, (%rdx)
	jmp	LBB0_7
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_9:
	movq	_AMD_DPM_FORCED_LEVEL_PROFILE_MIN_MCLK@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_11
## %bb.10:
	movq	$0, (%rcx)
LBB0_7:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_11:
	movq	_AMD_DPM_FORCED_LEVEL_PROFILE_PEAK@GOTPCREL(%rip), %r9
	xorl	%eax, %eax
	cmpl	%esi, (%r9)
	jne	LBB0_13
## %bb.12:
	movq	16(%rdi), %rsi
	decq	%rsi
	movq	%rsi, (%rdx)
	movq	8(%rdi), %rdx
	decq	%rdx
	movq	%rdx, (%rcx)
	movq	(%rdi), %rcx
	decq	%rcx
	movq	%rcx, (%r8)
LBB0_13:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ARCTURUS_UMD_PSTATE_GFXCLK_LEVEL,8,3 ## @ARCTURUS_UMD_PSTATE_GFXCLK_LEVEL
	.comm	_ARCTURUS_UMD_PSTATE_MCLK_LEVEL,8,3 ## @ARCTURUS_UMD_PSTATE_MCLK_LEVEL
	.comm	_ARCTURUS_UMD_PSTATE_SOCCLK_LEVEL,8,3 ## @ARCTURUS_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	_arcturus_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 arcturus_get_profiling_clk_mask
_arcturus_get_profiling_clk_mask:       ; @arcturus_get_profiling_clk_mask
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.1:
	str	xzr, [x2]
	str	xzr, [x3]
	str	xzr, [x4]
	ldr	x10, [x8, #16]
Lloh0:
	adrp	x9, _ARCTURUS_UMD_PSTATE_GFXCLK_LEVEL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ARCTURUS_UMD_PSTATE_GFXCLK_LEVEL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x10, x9
	b.le	LBB0_5
; %bb.2:
	ldr	x11, [x8, #8]
Lloh3:
	adrp	x10, _ARCTURUS_UMD_PSTATE_MCLK_LEVEL@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ARCTURUS_UMD_PSTATE_MCLK_LEVEL@GOTPAGEOFF]
	ldr	x12, [x10]
	cmp	x11, x12
	b.le	LBB0_5
; %bb.3:
	ldr	x12, [x8]
Lloh5:
	adrp	x11, _ARCTURUS_UMD_PSTATE_SOCCLK_LEVEL@GOTPAGE
Lloh6:
	ldr	x11, [x11, _ARCTURUS_UMD_PSTATE_SOCCLK_LEVEL@GOTPAGEOFF]
	ldr	x13, [x11]
	cmp	x12, x13
	b.le	LBB0_5
; %bb.4:
	str	x9, [x2]
	ldr	x9, [x10]
	str	x9, [x3]
	ldr	x9, [x11]
	str	x9, [x4]
LBB0_5:
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_8
; %bb.6:
	mov	w0, #0
	str	xzr, [x2]
	ret
LBB0_7:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_8:
Lloh13:
	adrp	x9, _AMD_DPM_FORCED_LEVEL_PROFILE_MIN_MCLK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AMD_DPM_FORCED_LEVEL_PROFILE_MIN_MCLK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w9, w1
	b.ne	LBB0_10
; %bb.9:
	mov	w0, #0
	str	xzr, [x3]
	ret
LBB0_10:
Lloh16:
	adrp	x9, _AMD_DPM_FORCED_LEVEL_PROFILE_PEAK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _AMD_DPM_FORCED_LEVEL_PROFILE_PEAK@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w9, w1
	b.ne	LBB0_12
; %bb.11:
	mov	w0, #0
	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]
	ret
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ARCTURUS_UMD_PSTATE_GFXCLK_LEVEL,8,3 ; @ARCTURUS_UMD_PSTATE_GFXCLK_LEVEL
	.comm	_ARCTURUS_UMD_PSTATE_MCLK_LEVEL,8,3 ; @ARCTURUS_UMD_PSTATE_MCLK_LEVEL
	.comm	_ARCTURUS_UMD_PSTATE_SOCCLK_LEVEL,8,3 ; @ARCTURUS_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	_arcturus_get_profiling_clk_mask
.subsections_via_symbols
