	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sumo_pm_init_profile           ## -- Begin function sumo_pm_init_profile
	.p2align	4, 0x90
_sumo_pm_init_profile:                  ## @sumo_pm_init_profile
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %eax
	movq	24(%rdi), %rcx
	movq	_PM_PROFILE_DEFAULT_IDX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	leaq	(%rsi,%rsi,2), %rsi
	movl	%eax, (%rcx,%rsi,8)
	movl	%eax, 4(%rcx,%rsi,8)
	movq	$0, 16(%rcx,%rsi,8)
	movq	(%rdx), %rax
	leaq	(%rax,%rax,2), %rax
	movq	$0, 8(%rcx,%rax,8)
	movq	_RADEON_IS_MOBILITY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_POWER_STATE_TYPE_PERFORMANCE@GOTPCREL(%rip), %r14
	movq	%r14, %rax
	andl	(%rdi), %ecx
	je	LBB0_2
## %bb.1:
	movq	_POWER_STATE_TYPE_BATTERY@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_radeon_pm_get_type_index
	movq	24(%rbx), %rcx
	movq	_PM_PROFILE_LOW_SH_IDX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	leaq	(%rsi,%rsi,2), %rsi
	movl	%eax, (%rcx,%rsi,8)
	movl	%eax, 4(%rcx,%rsi,8)
	movq	$0, 16(%rcx,%rsi,8)
	movq	(%rdx), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movq	$0, 8(%rcx,%rdx,8)
	movq	_PM_PROFILE_LOW_MH_IDX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	leaq	(%rsi,%rsi,2), %rsi
	movl	%eax, (%rcx,%rsi,8)
	movl	%eax, 4(%rcx,%rsi,8)
	movq	$0, 16(%rcx,%rsi,8)
	movq	(%rdx), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movq	$0, 8(%rcx,%rdx,8)
	movq	_PM_PROFILE_MID_SH_IDX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	leaq	(%rsi,%rsi,2), %rsi
	movl	%eax, (%rcx,%rsi,8)
	movl	%eax, 4(%rcx,%rsi,8)
	movq	$0, 16(%rcx,%rsi,8)
	movq	(%rdx), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movq	$0, 8(%rcx,%rdx,8)
	movq	_PM_PROFILE_MID_MH_IDX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	leaq	(%rsi,%rsi,2), %rsi
	movl	%eax, (%rcx,%rsi,8)
	movl	%eax, 4(%rcx,%rsi,8)
	movq	$0, 16(%rcx,%rsi,8)
	movq	(%rdx), %rax
	leaq	(%rax,%rax,2), %rax
	movq	$0, 8(%rcx,%rax,8)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_radeon_pm_get_type_index
	movq	24(%rbx), %rcx
	movq	_PM_PROFILE_HIGH_SH_IDX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	leaq	(%rsi,%rsi,2), %rsi
	movl	%eax, (%rcx,%rsi,8)
	movl	%eax, 4(%rcx,%rsi,8)
	movq	$0, 16(%rcx,%rsi,8)
	movq	16(%rbx), %rsi
	cltq
	movq	(%rsi,%rax,8), %rsi
	decq	%rsi
	movq	(%rdx), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movq	%rsi, 8(%rcx,%rdx,8)
	movq	_PM_PROFILE_HIGH_MH_IDX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	leaq	(%rdi,%rdi,2), %rdi
	movl	%eax, (%rcx,%rdi,8)
	movl	%eax, 4(%rcx,%rdi,8)
	movq	$0, 16(%rcx,%rdi,8)
	movq	(%rdx), %rax
	leaq	(%rax,%rax,2), %rax
	movq	%rsi, 8(%rcx,%rax,8)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PM_PROFILE_DEFAULT_IDX,8,3     ## @PM_PROFILE_DEFAULT_IDX
	.comm	_RADEON_IS_MOBILITY,4,2         ## @RADEON_IS_MOBILITY
	.comm	_POWER_STATE_TYPE_BATTERY,4,2   ## @POWER_STATE_TYPE_BATTERY
	.comm	_POWER_STATE_TYPE_PERFORMANCE,4,2 ## @POWER_STATE_TYPE_PERFORMANCE
	.comm	_PM_PROFILE_LOW_SH_IDX,8,3      ## @PM_PROFILE_LOW_SH_IDX
	.comm	_PM_PROFILE_LOW_MH_IDX,8,3      ## @PM_PROFILE_LOW_MH_IDX
	.comm	_PM_PROFILE_MID_SH_IDX,8,3      ## @PM_PROFILE_MID_SH_IDX
	.comm	_PM_PROFILE_MID_MH_IDX,8,3      ## @PM_PROFILE_MID_MH_IDX
	.comm	_PM_PROFILE_HIGH_SH_IDX,8,3     ## @PM_PROFILE_HIGH_SH_IDX
	.comm	_PM_PROFILE_HIGH_MH_IDX,8,3     ## @PM_PROFILE_HIGH_MH_IDX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sumo_pm_init_profile           ; -- Begin function sumo_pm_init_profile
	.p2align	2
_sumo_pm_init_profile:                  ; @sumo_pm_init_profile
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w8, [x0, #8]
	ldr	x9, [x0, #24]
Lloh0:
	adrp	x10, _PM_PROFILE_DEFAULT_IDX@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PM_PROFILE_DEFAULT_IDX@GOTPAGEOFF]
	ldr	x11, [x10]
	mov	w20, #24
	madd	x11, x11, x20, x9
	stp	w8, w8, [x11]
	str	xzr, [x11, #16]
	ldr	x8, [x10]
	madd	x8, x8, x20, x9
	str	xzr, [x8, #8]
	ldr	w8, [x0]
Lloh2:
	adrp	x9, _RADEON_IS_MOBILITY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RADEON_IS_MOBILITY@GOTPAGEOFF]
Lloh4:
	adrp	x21, _POWER_STATE_TYPE_PERFORMANCE@GOTPAGE
Lloh5:
	ldr	x21, [x21, _POWER_STATE_TYPE_PERFORMANCE@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x10, _POWER_STATE_TYPE_BATTERY@GOTPAGE
Lloh8:
	ldr	x10, [x10, _POWER_STATE_TYPE_BATTERY@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x21, x10, eq
	ldr	w1, [x8]
	mov	w2, #0
	bl	_radeon_pm_get_type_index
	ldr	x8, [x19, #24]
Lloh9:
	adrp	x9, _PM_PROFILE_LOW_SH_IDX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PM_PROFILE_LOW_SH_IDX@GOTPAGEOFF]
	ldr	x10, [x9]
	madd	x10, x10, x20, x8
	stp	w0, w0, [x10]
	str	xzr, [x10, #16]
	ldr	x9, [x9]
	madd	x9, x9, x20, x8
Lloh11:
	adrp	x10, _PM_PROFILE_LOW_MH_IDX@GOTPAGE
Lloh12:
	ldr	x10, [x10, _PM_PROFILE_LOW_MH_IDX@GOTPAGEOFF]
	str	xzr, [x9, #8]
	ldr	x9, [x10]
	madd	x9, x9, x20, x8
	stp	w0, w0, [x9]
	str	xzr, [x9, #16]
	ldr	x9, [x10]
	madd	x9, x9, x20, x8
	str	xzr, [x9, #8]
Lloh13:
	adrp	x9, _PM_PROFILE_MID_SH_IDX@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PM_PROFILE_MID_SH_IDX@GOTPAGEOFF]
	ldr	x10, [x9]
	madd	x10, x10, x20, x8
	stp	w0, w0, [x10]
	str	xzr, [x10, #16]
	ldr	x9, [x9]
	madd	x9, x9, x20, x8
	str	xzr, [x9, #8]
Lloh15:
	adrp	x9, _PM_PROFILE_MID_MH_IDX@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PM_PROFILE_MID_MH_IDX@GOTPAGEOFF]
	ldr	x10, [x9]
	madd	x10, x10, x20, x8
	stp	w0, w0, [x10]
	str	xzr, [x10, #16]
	ldr	x9, [x9]
	madd	x8, x9, x20, x8
	str	xzr, [x8, #8]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_radeon_pm_get_type_index
Lloh17:
	adrp	x8, _PM_PROFILE_HIGH_SH_IDX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PM_PROFILE_HIGH_SH_IDX@GOTPAGEOFF]
	ldr	x9, [x8]
	ldp	x11, x10, [x19, #16]
	madd	x9, x9, x20, x10
	stp	w0, w0, [x9]
	str	xzr, [x9, #16]
	ldr	x9, [x11, w0, sxtw #3]
	sub	x9, x9, #1
	ldr	x8, [x8]
	madd	x8, x8, x20, x10
	str	x9, [x8, #8]
Lloh19:
	adrp	x8, _PM_PROFILE_HIGH_MH_IDX@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PM_PROFILE_HIGH_MH_IDX@GOTPAGEOFF]
	ldr	x11, [x8]
	madd	x11, x11, x20, x10
	stp	w0, w0, [x11]
	str	xzr, [x11, #16]
	ldr	x8, [x8]
	madd	x8, x8, x20, x10
	str	x9, [x8, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PM_PROFILE_DEFAULT_IDX,8,3     ; @PM_PROFILE_DEFAULT_IDX
	.comm	_RADEON_IS_MOBILITY,4,2         ; @RADEON_IS_MOBILITY
	.comm	_POWER_STATE_TYPE_BATTERY,4,2   ; @POWER_STATE_TYPE_BATTERY
	.comm	_POWER_STATE_TYPE_PERFORMANCE,4,2 ; @POWER_STATE_TYPE_PERFORMANCE
	.comm	_PM_PROFILE_LOW_SH_IDX,8,3      ; @PM_PROFILE_LOW_SH_IDX
	.comm	_PM_PROFILE_LOW_MH_IDX,8,3      ; @PM_PROFILE_LOW_MH_IDX
	.comm	_PM_PROFILE_MID_SH_IDX,8,3      ; @PM_PROFILE_MID_SH_IDX
	.comm	_PM_PROFILE_MID_MH_IDX,8,3      ; @PM_PROFILE_MID_MH_IDX
	.comm	_PM_PROFILE_HIGH_SH_IDX,8,3     ; @PM_PROFILE_HIGH_SH_IDX
	.comm	_PM_PROFILE_HIGH_MH_IDX,8,3     ; @PM_PROFILE_HIGH_MH_IDX
.subsections_via_symbols
