	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_pm_sysfs_fini           ## -- Begin function amdgpu_pm_sysfs_fini
	.p2align	4, 0x90
_amdgpu_pm_sysfs_fini:                  ## @amdgpu_pm_sysfs_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 32(%rdi)
	je	LBB0_24
## %bb.1:
	movq	%rdi, %rbx
	movq	48(%rdi), %r15
	movq	40(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_hwmon_device_unregister
LBB0_3:
	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_pp_num_states@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movl	12(%rbx), %edi
	movq	_dev_attr_pp_cur_state@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movl	12(%rbx), %edi
	movq	_dev_attr_pp_force_state@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movl	12(%rbx), %edi
	movq	_dev_attr_pp_table@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movl	12(%rbx), %edi
	movq	_dev_attr_pp_dpm_sclk@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movl	12(%rbx), %edi
	movq	_dev_attr_pp_dpm_mclk@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movq	(%rbx), %rax
	movq	_CHIP_VEGA10@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jl	LBB0_6
## %bb.4:
	movl	12(%rbx), %edi
	movq	_dev_attr_pp_dpm_socclk@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movq	(%rbx), %rax
	movq	_CHIP_ARCTURUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movl	12(%rbx), %edi
	movq	_dev_attr_pp_dpm_dcefclk@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movq	(%rbx), %rax
LBB0_6:
	movq	_CHIP_ARCTURUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movl	12(%rbx), %edi
	movq	_dev_attr_pp_dpm_pcie@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movq	(%rbx), %rax
LBB0_8:
	movq	_CHIP_VEGA20@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_10
## %bb.9:
	movl	12(%rbx), %edi
	movq	_dev_attr_pp_dpm_fclk@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
LBB0_10:
	movl	12(%rbx), %edi
	movq	_dev_attr_pp_sclk_od@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movl	12(%rbx), %edi
	movq	_dev_attr_pp_mclk_od@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movl	12(%rbx), %edi
	movq	_dev_attr_pp_power_profile_mode@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movq	%rbx, %rdi
	callq	_is_support_sw_smu
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	cmpq	$0, 24(%rbx)
	jne	LBB0_14
LBB0_12:
	movq	%rbx, %rdi
	callq	_is_support_sw_smu
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:
	cmpq	$0, (%r15)
	je	LBB0_15
LBB0_14:
	movl	12(%rbx), %edi
	movq	_dev_attr_pp_od_clk_voltage@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
LBB0_15:
	movl	12(%rbx), %edi
	movq	_dev_attr_gpu_busy_percent@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movl	8(%rbx), %eax
	movq	_AMD_IS_APU@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	testl	%eax, %ecx
	jne	LBB0_18
## %bb.16:
	movq	(%rbx), %rdx
	cmpq	(%r14), %rdx
	je	LBB0_18
## %bb.17:
	movl	12(%rbx), %edi
	movq	_dev_attr_mem_busy_percent@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movl	8(%rbx), %eax
	movl	(%r15), %ecx
LBB0_18:
	testl	%eax, %ecx
	jne	LBB0_20
## %bb.19:
	movl	12(%rbx), %edi
	movq	_dev_attr_pcie_bw@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
LBB0_20:
	cmpq	$0, 16(%rbx)
	je	LBB0_22
## %bb.21:
	movl	12(%rbx), %edi
	movq	_dev_attr_unique_id@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
LBB0_22:
	movq	(%rbx), %rax
	cmpq	(%r14), %rax
	jl	LBB0_24
## %bb.23:
	movl	(%r15), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_25
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movl	12(%rbx), %edi
	movq	_dev_attr_pp_features@GOTPCREL(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_device_remove_file             ## 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_pp_num_states,4,2     ## @dev_attr_pp_num_states
	.comm	_dev_attr_pp_cur_state,4,2      ## @dev_attr_pp_cur_state
	.comm	_dev_attr_pp_force_state,4,2    ## @dev_attr_pp_force_state
	.comm	_dev_attr_pp_table,4,2          ## @dev_attr_pp_table
	.comm	_dev_attr_pp_dpm_sclk,4,2       ## @dev_attr_pp_dpm_sclk
	.comm	_dev_attr_pp_dpm_mclk,4,2       ## @dev_attr_pp_dpm_mclk
	.comm	_CHIP_VEGA10,8,3                ## @CHIP_VEGA10
	.comm	_dev_attr_pp_dpm_socclk,4,2     ## @dev_attr_pp_dpm_socclk
	.comm	_CHIP_ARCTURUS,8,3              ## @CHIP_ARCTURUS
	.comm	_dev_attr_pp_dpm_dcefclk,4,2    ## @dev_attr_pp_dpm_dcefclk
	.comm	_dev_attr_pp_dpm_pcie,4,2       ## @dev_attr_pp_dpm_pcie
	.comm	_CHIP_VEGA20,8,3                ## @CHIP_VEGA20
	.comm	_dev_attr_pp_dpm_fclk,4,2       ## @dev_attr_pp_dpm_fclk
	.comm	_dev_attr_pp_sclk_od,4,2        ## @dev_attr_pp_sclk_od
	.comm	_dev_attr_pp_mclk_od,4,2        ## @dev_attr_pp_mclk_od
	.comm	_dev_attr_pp_power_profile_mode,4,2 ## @dev_attr_pp_power_profile_mode
	.comm	_dev_attr_pp_od_clk_voltage,4,2 ## @dev_attr_pp_od_clk_voltage
	.comm	_dev_attr_gpu_busy_percent,4,2  ## @dev_attr_gpu_busy_percent
	.comm	_AMD_IS_APU,4,2                 ## @AMD_IS_APU
	.comm	_dev_attr_mem_busy_percent,4,2  ## @dev_attr_mem_busy_percent
	.comm	_dev_attr_pcie_bw,4,2           ## @dev_attr_pcie_bw
	.comm	_dev_attr_unique_id,4,2         ## @dev_attr_unique_id
	.comm	_dev_attr_pp_features,4,2       ## @dev_attr_pp_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_pm_sysfs_fini           ; -- Begin function amdgpu_pm_sysfs_fini
	.p2align	2
_amdgpu_pm_sysfs_fini:                  ; @amdgpu_pm_sysfs_fini
	.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
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_24
; %bb.1:
	mov	x19, x0
	ldp	x0, x21, [x0, #40]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_hwmon_device_unregister
LBB0_3:
	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_pp_num_states@GOTPAGE
Lloh5:
	ldr	x1, [x1, _dev_attr_pp_num_states@GOTPAGEOFF]
	bl	_device_remove_file
	ldr	w0, [x19, #12]
Lloh6:
	adrp	x1, _dev_attr_pp_cur_state@GOTPAGE
Lloh7:
	ldr	x1, [x1, _dev_attr_pp_cur_state@GOTPAGEOFF]
	bl	_device_remove_file
	ldr	w0, [x19, #12]
Lloh8:
	adrp	x1, _dev_attr_pp_force_state@GOTPAGE
Lloh9:
	ldr	x1, [x1, _dev_attr_pp_force_state@GOTPAGEOFF]
	bl	_device_remove_file
	ldr	w0, [x19, #12]
Lloh10:
	adrp	x1, _dev_attr_pp_table@GOTPAGE
Lloh11:
	ldr	x1, [x1, _dev_attr_pp_table@GOTPAGEOFF]
	bl	_device_remove_file
	ldr	w0, [x19, #12]
Lloh12:
	adrp	x1, _dev_attr_pp_dpm_sclk@GOTPAGE
Lloh13:
	ldr	x1, [x1, _dev_attr_pp_dpm_sclk@GOTPAGEOFF]
	bl	_device_remove_file
	ldr	w0, [x19, #12]
Lloh14:
	adrp	x1, _dev_attr_pp_dpm_mclk@GOTPAGE
Lloh15:
	ldr	x1, [x1, _dev_attr_pp_dpm_mclk@GOTPAGEOFF]
	bl	_device_remove_file
	ldr	x8, [x19]
Lloh16:
	adrp	x20, _CHIP_VEGA10@GOTPAGE
Lloh17:
	ldr	x20, [x20, _CHIP_VEGA10@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh18:
	adrp	x22, _CHIP_ARCTURUS@GOTPAGE
Lloh19:
	ldr	x22, [x22, _CHIP_ARCTURUS@GOTPAGEOFF]
	cmp	x8, x9
	b.lt	LBB0_6
; %bb.4:
	ldr	w0, [x19, #12]
Lloh20:
	adrp	x1, _dev_attr_pp_dpm_socclk@GOTPAGE
Lloh21:
	ldr	x1, [x1, _dev_attr_pp_dpm_socclk@GOTPAGEOFF]
	bl	_device_remove_file
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x19, #12]
Lloh22:
	adrp	x1, _dev_attr_pp_dpm_dcefclk@GOTPAGE
Lloh23:
	ldr	x1, [x1, _dev_attr_pp_dpm_dcefclk@GOTPAGEOFF]
	bl	_device_remove_file
	ldr	x8, [x19]
LBB0_6:
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.7:
	ldr	w0, [x19, #12]
Lloh24:
	adrp	x1, _dev_attr_pp_dpm_pcie@GOTPAGE
Lloh25:
	ldr	x1, [x1, _dev_attr_pp_dpm_pcie@GOTPAGEOFF]
	bl	_device_remove_file
	ldr	x8, [x19]
LBB0_8:
Lloh26:
	adrp	x9, _CHIP_VEGA20@GOTPAGE
Lloh27:
	ldr	x9, [x9, _CHIP_VEGA20@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_10
; %bb.9:
	ldr	w0, [x19, #12]
Lloh29:
	adrp	x1, _dev_attr_pp_dpm_fclk@GOTPAGE
Lloh30:
	ldr	x1, [x1, _dev_attr_pp_dpm_fclk@GOTPAGEOFF]
	bl	_device_remove_file
LBB0_10:
	ldr	w0, [x19, #12]
Lloh31:
	adrp	x1, _dev_attr_pp_sclk_od@GOTPAGE
Lloh32:
	ldr	x1, [x1, _dev_attr_pp_sclk_od@GOTPAGEOFF]
	bl	_device_remove_file
	ldr	w0, [x19, #12]
Lloh33:
	adrp	x1, _dev_attr_pp_mclk_od@GOTPAGE
Lloh34:
	ldr	x1, [x1, _dev_attr_pp_mclk_od@GOTPAGEOFF]
	bl	_device_remove_file
	ldr	w0, [x19, #12]
Lloh35:
	adrp	x1, _dev_attr_pp_power_profile_mode@GOTPAGE
Lloh36:
	ldr	x1, [x1, _dev_attr_pp_power_profile_mode@GOTPAGEOFF]
	bl	_device_remove_file
	mov	x0, x19
	bl	_is_support_sw_smu
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_14
LBB0_12:
	mov	x0, x19
	bl	_is_support_sw_smu
	cbnz	x0, LBB0_15
; %bb.13:
	ldr	x8, [x21]
	cbz	x8, LBB0_15
LBB0_14:
	ldr	w0, [x19, #12]
Lloh37:
	adrp	x1, _dev_attr_pp_od_clk_voltage@GOTPAGE
Lloh38:
	ldr	x1, [x1, _dev_attr_pp_od_clk_voltage@GOTPAGEOFF]
	bl	_device_remove_file
LBB0_15:
	ldr	w0, [x19, #12]
Lloh39:
	adrp	x1, _dev_attr_gpu_busy_percent@GOTPAGE
Lloh40:
	ldr	x1, [x1, _dev_attr_gpu_busy_percent@GOTPAGEOFF]
	bl	_device_remove_file
	ldr	w8, [x19, #8]
Lloh41:
	adrp	x21, _AMD_IS_APU@GOTPAGE
Lloh42:
	ldr	x21, [x21, _AMD_IS_APU@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.ne	LBB0_18
; %bb.16:
	ldr	x10, [x19]
	ldr	x11, [x20]
	cmp	x10, x11
	b.eq	LBB0_18
; %bb.17:
	ldr	w0, [x19, #12]
Lloh43:
	adrp	x1, _dev_attr_mem_busy_percent@GOTPAGE
Lloh44:
	ldr	x1, [x1, _dev_attr_mem_busy_percent@GOTPAGEOFF]
	bl	_device_remove_file
	ldr	w8, [x19, #8]
	ldr	w9, [x21]
LBB0_18:
	tst	w9, w8
	b.ne	LBB0_20
; %bb.19:
	ldr	w0, [x19, #12]
Lloh45:
	adrp	x1, _dev_attr_pcie_bw@GOTPAGE
Lloh46:
	ldr	x1, [x1, _dev_attr_pcie_bw@GOTPAGEOFF]
	bl	_device_remove_file
LBB0_20:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_22
; %bb.21:
	ldr	w0, [x19, #12]
Lloh47:
	adrp	x1, _dev_attr_unique_id@GOTPAGE
Lloh48:
	ldr	x1, [x1, _dev_attr_unique_id@GOTPAGEOFF]
	bl	_device_remove_file
LBB0_22:
	ldr	x8, [x19]
	ldr	x9, [x20]
	cmp	x8, x9
	b.lt	LBB0_24
; %bb.23:
	ldr	w8, [x19, #8]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_25
LBB0_24:
	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
LBB0_25:
	ldr	w0, [x19, #12]
Lloh49:
	adrp	x1, _dev_attr_pp_features@GOTPAGE
Lloh50:
	ldr	x1, [x1, _dev_attr_pp_features@GOTPAGEOFF]
	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
	b	_device_remove_file
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.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_pp_num_states,4,2     ; @dev_attr_pp_num_states
	.comm	_dev_attr_pp_cur_state,4,2      ; @dev_attr_pp_cur_state
	.comm	_dev_attr_pp_force_state,4,2    ; @dev_attr_pp_force_state
	.comm	_dev_attr_pp_table,4,2          ; @dev_attr_pp_table
	.comm	_dev_attr_pp_dpm_sclk,4,2       ; @dev_attr_pp_dpm_sclk
	.comm	_dev_attr_pp_dpm_mclk,4,2       ; @dev_attr_pp_dpm_mclk
	.comm	_CHIP_VEGA10,8,3                ; @CHIP_VEGA10
	.comm	_dev_attr_pp_dpm_socclk,4,2     ; @dev_attr_pp_dpm_socclk
	.comm	_CHIP_ARCTURUS,8,3              ; @CHIP_ARCTURUS
	.comm	_dev_attr_pp_dpm_dcefclk,4,2    ; @dev_attr_pp_dpm_dcefclk
	.comm	_dev_attr_pp_dpm_pcie,4,2       ; @dev_attr_pp_dpm_pcie
	.comm	_CHIP_VEGA20,8,3                ; @CHIP_VEGA20
	.comm	_dev_attr_pp_dpm_fclk,4,2       ; @dev_attr_pp_dpm_fclk
	.comm	_dev_attr_pp_sclk_od,4,2        ; @dev_attr_pp_sclk_od
	.comm	_dev_attr_pp_mclk_od,4,2        ; @dev_attr_pp_mclk_od
	.comm	_dev_attr_pp_power_profile_mode,4,2 ; @dev_attr_pp_power_profile_mode
	.comm	_dev_attr_pp_od_clk_voltage,4,2 ; @dev_attr_pp_od_clk_voltage
	.comm	_dev_attr_gpu_busy_percent,4,2  ; @dev_attr_gpu_busy_percent
	.comm	_AMD_IS_APU,4,2                 ; @AMD_IS_APU
	.comm	_dev_attr_mem_busy_percent,4,2  ; @dev_attr_mem_busy_percent
	.comm	_dev_attr_pcie_bw,4,2           ; @dev_attr_pcie_bw
	.comm	_dev_attr_unique_id,4,2         ; @dev_attr_unique_id
	.comm	_dev_attr_pp_features,4,2       ; @dev_attr_pp_features
.subsections_via_symbols
