	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arcturus_get_workload_type
_arcturus_get_workload_type:            ## @arcturus_get_workload_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_PP_SMC_POWER_PROFILE_CUSTOM@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jb	LBB0_1
## %bb.2:
	movq	_arcturus_workload_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%esi, %ecx
	cmpl	$0, 4(%rax,%rcx,8)
	je	LBB0_3
## %bb.4:
	movl	(%rax,%rcx,8), %eax
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PP_SMC_POWER_PROFILE_CUSTOM,4,2 ## @PP_SMC_POWER_PROFILE_CUSTOM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_arcturus_workload_map,8,3      ## @arcturus_workload_map
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported SMU power source: %d\n"

	.no_dead_strip	_arcturus_get_workload_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arcturus_get_workload_type
_arcturus_get_workload_type:            ; @arcturus_get_workload_type
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _PP_SMC_POWER_PROFILE_CUSTOM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PP_SMC_POWER_PROFILE_CUSTOM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.lo	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _arcturus_workload_map@GOTPAGE
Lloh4:
	ldr	x8, [x8, _arcturus_workload_map@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x9, x8, w1, uxtw #3
	ldr	w9, [x9, #4]
	cbz	w9, LBB0_3
; %bb.2:
	mov	w9, w1
	lsl	x9, x9, #3
	ldr	w0, [x8, x9]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
LBB0_4:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PP_SMC_POWER_PROFILE_CUSTOM,4,2 ; @PP_SMC_POWER_PROFILE_CUSTOM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_arcturus_workload_map,8,3      ; @arcturus_workload_map
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported SMU power source: %d\n"

	.no_dead_strip	_arcturus_get_workload_type
.subsections_via_symbols
