	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_pm_fini                 ## -- Begin function radeon_pm_fini
	.p2align	4, 0x90
_radeon_pm_fini:                        ## @radeon_pm_fini
	.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
	cmpl	$2, (%rdi)
	jl	LBB0_7
## %bb.1:
	leaq	28(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	8(%rbx), %rax
	movq	_PM_METHOD_PROFILE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_PM_PROFILE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	%rbx, %rdi
	callq	_radeon_pm_update_profile
	jmp	LBB0_5
LBB0_3:
	movq	_PM_METHOD_DYNPM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	_DYNPM_STATE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_DYNPM_ACTION_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
LBB0_5:
	movq	%rbx, %rdi
	callq	_radeon_pm_set_clocks
LBB0_6:
	movq	%r14, %rdi
	callq	_mutex_unlock
	leaq	24(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	movl	48(%rbx), %edi
	movq	_dev_attr_power_profile@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movl	48(%rbx), %edi
	movq	_dev_attr_power_method@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
LBB0_7:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_kfree
LBB0_9:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_radeon_hwmon_fini              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PM_METHOD_PROFILE,8,3          ## @PM_METHOD_PROFILE
	.comm	_PM_PROFILE_DEFAULT,4,2         ## @PM_PROFILE_DEFAULT
	.comm	_PM_METHOD_DYNPM,8,3            ## @PM_METHOD_DYNPM
	.comm	_DYNPM_STATE_DISABLED,4,2       ## @DYNPM_STATE_DISABLED
	.comm	_DYNPM_ACTION_DEFAULT,4,2       ## @DYNPM_ACTION_DEFAULT
	.comm	_dev_attr_power_profile,4,2     ## @dev_attr_power_profile
	.comm	_dev_attr_power_method,4,2      ## @dev_attr_power_method
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_pm_fini                 ; -- Begin function radeon_pm_fini
	.p2align	2
_radeon_pm_fini:                        ; @radeon_pm_fini
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.1:
	add	x20, x19, #28
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _PM_METHOD_PROFILE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PM_METHOD_PROFILE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _PM_PROFILE_DEFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PM_PROFILE_DEFAULT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	mov	x0, x19
	bl	_radeon_pm_update_profile
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x9, _PM_METHOD_DYNPM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PM_METHOD_DYNPM@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
Lloh9:
	adrp	x8, _DYNPM_STATE_DISABLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DYNPM_STATE_DISABLED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _DYNPM_ACTION_DEFAULT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DYNPM_ACTION_DEFAULT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
LBB0_5:
	mov	x0, x19
	bl	_radeon_pm_set_clocks
LBB0_6:
	mov	x0, x20
	bl	_mutex_unlock
	add	x0, x19, #24
	bl	_cancel_delayed_work_sync
	ldr	w0, [x19, #48]
Lloh15:
	adrp	x1, _dev_attr_power_profile@GOTPAGE
Lloh16:
	ldr	x1, [x1, _dev_attr_power_profile@GOTPAGEOFF]
	bl	_device_remove_file
	ldr	w0, [x19, #48]
Lloh17:
	adrp	x1, _dev_attr_power_method@GOTPAGE
Lloh18:
	ldr	x1, [x1, _dev_attr_power_method@GOTPAGEOFF]
	bl	_device_remove_file
LBB0_7:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_kfree
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_radeon_hwmon_fini
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PM_METHOD_PROFILE,8,3          ; @PM_METHOD_PROFILE
	.comm	_PM_PROFILE_DEFAULT,4,2         ; @PM_PROFILE_DEFAULT
	.comm	_PM_METHOD_DYNPM,8,3            ; @PM_METHOD_DYNPM
	.comm	_DYNPM_STATE_DISABLED,4,2       ; @DYNPM_STATE_DISABLED
	.comm	_DYNPM_ACTION_DEFAULT,4,2       ; @DYNPM_ACTION_DEFAULT
	.comm	_dev_attr_power_profile,4,2     ; @dev_attr_power_profile
	.comm	_dev_attr_power_method,4,2      ; @dev_attr_power_method
.subsections_via_symbols
