	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arcturus_get_power_profile_mode
_arcturus_get_power_profile_mode:       ## @arcturus_get_power_profile_mode
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	%rdi, %r15
	cmpl	$0, 4(%rdi)
	je	LBB0_4
## %bb.2:
	movq	_PP_SMC_POWER_PROFILE_CUSTOM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	js	LBB0_3
## %bb.5:
	movq	%rsi, %r14
	xorl	%ebx, %ebx
	leaq	_reltable.arcturus_get_power_profile_mode(%rip), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	leaq	1(%rbx), %rax
	movq	_PP_SMC_POWER_PROFILE_CUSTOM@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	$4, %r13
	cmpq	%rcx, %rbx
	movq	%rax, %rbx
	jge	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_smu_workload_get_type
	testq	%rax, %rax
	js	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movslq	%r12d, %r12
	leaq	(%r14,%r12), %rdi
	movslq	(%r13), %rcx
	leaq	_reltable.arcturus_get_power_profile_mode(%rip), %rax
	addq	%rax, %rcx
	movl	(%r15), %eax
	cmpq	%rax, %rbx
	leaq	L_.str.9(%rip), %r8
	leaq	L_.str.8(%rip), %rax
	cmoveq	%rax, %r8
	leaq	L_.str.7(%rip), %rsi
	movl	%ebx, %edx
	callq	_sprintf
	addl	%eax, %r12d
	jmp	LBB0_8
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_9
LBB0_3:
	xorl	%r12d, %r12d
LBB0_9:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.arcturus_get_power_profile_mode
_reltable.arcturus_get_power_profile_mode:
	.long	L_.str-_reltable.arcturus_get_power_profile_mode
	.long	L_.str.1-_reltable.arcturus_get_power_profile_mode
	.long	L_.str.2-_reltable.arcturus_get_power_profile_mode
	.long	L_.str.3-_reltable.arcturus_get_power_profile_mode
	.long	L_.str.4-_reltable.arcturus_get_power_profile_mode
	.long	L_.str.5-_reltable.arcturus_get_power_profile_mode
	.long	L_.str.6-_reltable.arcturus_get_power_profile_mode

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BOOTUP_DEFAULT"

L_.str.1:                               ## @.str.1
	.asciz	"3D_FULL_SCREEN"

L_.str.2:                               ## @.str.2
	.asciz	"POWER_SAVING"

L_.str.3:                               ## @.str.3
	.asciz	"VIDEO"

L_.str.4:                               ## @.str.4
	.asciz	"VR"

L_.str.5:                               ## @.str.5
	.asciz	"COMPUTE"

L_.str.6:                               ## @.str.6
	.asciz	"CUSTOM"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PP_SMC_POWER_PROFILE_CUSTOM,4,2 ## @PP_SMC_POWER_PROFILE_CUSTOM
L_.str.7:                               ## @.str.7
	.asciz	"%2d %14s%s\n"

L_.str.8:                               ## @.str.8
	.asciz	"*"

L_.str.9:                               ## @.str.9
	.asciz	" "

	.no_dead_strip	_arcturus_get_power_profile_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arcturus_get_power_profile_mode
_arcturus_get_power_profile_mode:       ; @arcturus_get_power_profile_mode
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x1, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_7
; %bb.2:
Lloh0:
	adrp	x24, _PP_SMC_POWER_PROFILE_CUSTOM@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PP_SMC_POWER_PROFILE_CUSTOM@GOTPAGEOFF]
	ldr	w8, [x24]
	tbnz	w8, #31, LBB0_8
; %bb.3:
	mov	x19, x1
	mov	x22, #0
	mov	w21, #0
Lloh2:
	adrp	x25, _arcturus_get_power_profile_mode.profile_name@PAGE
Lloh3:
	add	x25, x25, _arcturus_get_power_profile_mode.profile_name@PAGEOFF
Lloh4:
	adrp	x26, l_.str.9@PAGE
Lloh5:
	add	x26, x26, l_.str.9@PAGEOFF
Lloh6:
	adrp	x27, l_.str.8@PAGE
Lloh7:
	add	x27, x27, l_.str.8@PAGEOFF
Lloh8:
	adrp	x23, l_.str.7@PAGE
Lloh9:
	add	x23, x23, l_.str.7@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x22, #1
	ldrsw	x9, [x24]
	cmp	x22, x9
	mov	x22, x8
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_smu_workload_get_type
	tbnz	x0, #63, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x19, w21, sxtw
	ldr	x3, [x25, x22, lsl #3]
	ldr	w8, [x20]
	cmp	x22, x8
	csel	x4, x27, x26, eq
	mov	x1, x23
	mov	x2, x22
	bl	_sprintf
	add	w21, w0, w21
	b	LBB0_4
LBB0_7:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_8:
	mov	w21, #0
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @arcturus_get_power_profile_mode.profile_name
_arcturus_get_power_profile_mode.profile_name:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.5
	.quad	l_.str.6

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BOOTUP_DEFAULT"

l_.str.1:                               ; @.str.1
	.asciz	"3D_FULL_SCREEN"

l_.str.2:                               ; @.str.2
	.asciz	"POWER_SAVING"

l_.str.3:                               ; @.str.3
	.asciz	"VIDEO"

l_.str.4:                               ; @.str.4
	.asciz	"VR"

l_.str.5:                               ; @.str.5
	.asciz	"COMPUTE"

l_.str.6:                               ; @.str.6
	.asciz	"CUSTOM"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PP_SMC_POWER_PROFILE_CUSTOM,4,2 ; @PP_SMC_POWER_PROFILE_CUSTOM
l_.str.7:                               ; @.str.7
	.asciz	"%2d %14s%s\n"

l_.str.8:                               ; @.str.8
	.asciz	"*"

l_.str.9:                               ; @.str.9
	.asciz	" "

	.no_dead_strip	_arcturus_get_power_profile_mode
.subsections_via_symbols
