	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_btc_pm_init_profile            ## -- Begin function btc_pm_init_profile
	.p2align	4, 0x90
_btc_pm_init_profile:                   ## @btc_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %eax
	movq	16(%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
	movl	$2, 8(%rcx,%rax,8)
	movq	_RADEON_IS_MOBILITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rdi), %eax
	jne	LBB0_1
## %bb.2:
	movq	_POWER_STATE_TYPE_PERFORMANCE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_POWER_STATE_TYPE_BATTERY@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_radeon_pm_get_type_index
	movq	16(%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
	movl	$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
	movl	$1, 8(%rcx,%rdx,8)
	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	(%rdx), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movl	$2, 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
	movl	$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), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movl	$1, 8(%rcx,%rdx,8)
	movq	_PM_PROFILE_HIGH_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
	movl	$2, 8(%rcx,%rax,8)
	addq	$8, %rsp
	popq	%rbx
	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_MID_SH_IDX,8,3      ## @PM_PROFILE_MID_SH_IDX
	.comm	_PM_PROFILE_HIGH_SH_IDX,8,3     ## @PM_PROFILE_HIGH_SH_IDX
	.comm	_PM_PROFILE_LOW_MH_IDX,8,3      ## @PM_PROFILE_LOW_MH_IDX
	.comm	_PM_PROFILE_MID_MH_IDX,8,3      ## @PM_PROFILE_MID_MH_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	_btc_pm_init_profile            ; -- Begin function btc_pm_init_profile
	.p2align	2
_btc_pm_init_profile:                   ; @btc_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, #16]
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
	mov	w21, #2
	str	w21, [x8, #8]
	ldr	w8, [x0]
Lloh2:
	adrp	x9, _RADEON_IS_MOBILITY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RADEON_IS_MOBILITY@GOTPAGEOFF]
Lloh4:
	adrp	x10, _POWER_STATE_TYPE_PERFORMANCE@GOTPAGE
Lloh5:
	ldr	x10, [x10, _POWER_STATE_TYPE_PERFORMANCE@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x11, _POWER_STATE_TYPE_BATTERY@GOTPAGE
Lloh8:
	ldr	x11, [x11, _POWER_STATE_TYPE_BATTERY@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w1, [x8]
	mov	w2, #0
	bl	_radeon_pm_get_type_index
Lloh9:
	adrp	x8, _PM_PROFILE_LOW_SH_IDX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PM_PROFILE_LOW_SH_IDX@GOTPAGEOFF]
	ldr	x9, [x19, #16]
	ldr	x10, [x8]
	madd	x10, x10, x20, x9
	stp	w0, w0, [x10]
	str	xzr, [x10, #16]
	ldr	x8, [x8]
	madd	x8, x8, x20, x9
	str	wzr, [x8, #8]
Lloh11:
	adrp	x8, _PM_PROFILE_MID_SH_IDX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PM_PROFILE_MID_SH_IDX@GOTPAGEOFF]
	ldr	x10, [x8]
	madd	x10, x10, x20, x9
	stp	w0, w0, [x10]
	str	xzr, [x10, #16]
	ldr	x8, [x8]
	madd	x8, x8, x20, x9
	mov	w10, #1
	str	w10, [x8, #8]
Lloh13:
	adrp	x8, _PM_PROFILE_HIGH_SH_IDX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PM_PROFILE_HIGH_SH_IDX@GOTPAGEOFF]
	ldr	x11, [x8]
	madd	x11, x11, x20, x9
	stp	w0, w0, [x11]
	str	xzr, [x11, #16]
	ldr	x8, [x8]
	madd	x8, x8, x20, x9
	str	w21, [x8, #8]
Lloh15:
	adrp	x8, _PM_PROFILE_LOW_MH_IDX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PM_PROFILE_LOW_MH_IDX@GOTPAGEOFF]
	ldr	x11, [x8]
	madd	x11, x11, x20, x9
	stp	w0, w0, [x11]
	str	xzr, [x11, #16]
	ldr	x8, [x8]
	madd	x8, x8, x20, x9
	str	wzr, [x8, #8]
Lloh17:
	adrp	x8, _PM_PROFILE_MID_MH_IDX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PM_PROFILE_MID_MH_IDX@GOTPAGEOFF]
	ldr	x11, [x8]
	madd	x11, x11, x20, x9
	stp	w0, w0, [x11]
	str	xzr, [x11, #16]
	ldr	x8, [x8]
	madd	x8, x8, x20, x9
	str	w10, [x8, #8]
Lloh19:
	adrp	x8, _PM_PROFILE_HIGH_MH_IDX@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PM_PROFILE_HIGH_MH_IDX@GOTPAGEOFF]
	ldr	x10, [x8]
	madd	x10, x10, x20, x9
	stp	w0, w0, [x10]
	str	xzr, [x10, #16]
	ldr	x8, [x8]
	madd	x8, x8, x20, x9
	str	w21, [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_MID_SH_IDX,8,3      ; @PM_PROFILE_MID_SH_IDX
	.comm	_PM_PROFILE_HIGH_SH_IDX,8,3     ; @PM_PROFILE_HIGH_SH_IDX
	.comm	_PM_PROFILE_LOW_MH_IDX,8,3      ; @PM_PROFILE_LOW_MH_IDX
	.comm	_PM_PROFILE_MID_MH_IDX,8,3      ; @PM_PROFILE_MID_MH_IDX
	.comm	_PM_PROFILE_HIGH_MH_IDX,8,3     ; @PM_PROFILE_HIGH_MH_IDX
.subsections_via_symbols
