	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_pm_fini_dpm
_radeon_pm_fini_dpm:                    ## @radeon_pm_fini_dpm
	.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_2
## %bb.1:
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_radeon_dpm_disable
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	12(%rbx), %edi
	movq	_dev_attr_power_dpm_state@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movl	12(%rbx), %edi
	movq	_dev_attr_power_dpm_force_performance_level@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movl	12(%rbx), %edi
	movq	_dev_attr_power_profile@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movl	12(%rbx), %edi
	movq	_dev_attr_power_method@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
LBB0_2:
	movq	%rbx, %rdi
	callq	_radeon_dpm_fini
	movq	%rbx, %rdi
	callq	_radeon_hwmon_fini
	movl	4(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_attr_power_dpm_state,4,2   ## @dev_attr_power_dpm_state
	.comm	_dev_attr_power_dpm_force_performance_level,4,2 ## @dev_attr_power_dpm_force_performance_level
	.comm	_dev_attr_power_profile,4,2     ## @dev_attr_power_profile
	.comm	_dev_attr_power_method,4,2      ## @dev_attr_power_method
	.no_dead_strip	_radeon_pm_fini_dpm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_pm_fini_dpm
_radeon_pm_fini_dpm:                    ; @radeon_pm_fini_dpm
	.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_2
; %bb.1:
	add	x20, x19, #8
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x19
	bl	_radeon_dpm_disable
	mov	x0, x20
	bl	_mutex_unlock
	ldr	w0, [x19, #12]
Lloh0:
	adrp	x1, _dev_attr_power_dpm_state@GOTPAGE
Lloh1:
	ldr	x1, [x1, _dev_attr_power_dpm_state@GOTPAGEOFF]
	bl	_device_remove_file
	ldr	w0, [x19, #12]
Lloh2:
	adrp	x1, _dev_attr_power_dpm_force_performance_level@GOTPAGE
Lloh3:
	ldr	x1, [x1, _dev_attr_power_dpm_force_performance_level@GOTPAGEOFF]
	bl	_device_remove_file
	ldr	w0, [x19, #12]
Lloh4:
	adrp	x1, _dev_attr_power_profile@GOTPAGE
Lloh5:
	ldr	x1, [x1, _dev_attr_power_profile@GOTPAGEOFF]
	bl	_device_remove_file
	ldr	w0, [x19, #12]
Lloh6:
	adrp	x1, _dev_attr_power_method@GOTPAGE
Lloh7:
	ldr	x1, [x1, _dev_attr_power_method@GOTPAGEOFF]
	bl	_device_remove_file
LBB0_2:
	mov	x0, x19
	bl	_radeon_dpm_fini
	mov	x0, x19
	bl	_radeon_hwmon_fini
	ldr	w0, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_attr_power_dpm_state,4,2   ; @dev_attr_power_dpm_state
	.comm	_dev_attr_power_dpm_force_performance_level,4,2 ; @dev_attr_power_dpm_force_performance_level
	.comm	_dev_attr_power_profile,4,2     ; @dev_attr_power_profile
	.comm	_dev_attr_power_method,4,2      ; @dev_attr_power_method
	.no_dead_strip	_radeon_pm_fini_dpm
.subsections_via_symbols
