	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu10_smu_fini
_smu10_smu_fini:                        ## @smu10_smu_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
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r14
	movq	(%rbx), %rax
	movq	_SMU10_WMTABLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$8, %rdi
	leaq	(%rax,%rcx,4), %rdx
	leaq	(%rax,%rcx,4), %rsi
	addq	$4, %rsi
	callq	_amdgpu_bo_free_kernel
	movq	(%rbx), %rax
	movq	_SMU10_CLOCKTABLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$8, %rdi
	leaq	(%rax,%rcx,4), %rdx
	leaq	(%rax,%rcx,4), %rsi
	addq	$4, %rsi
	callq	_amdgpu_bo_free_kernel
	movq	(%r14), %rdi
	callq	_kfree
	movq	$0, (%r14)
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU10_WMTABLE,8,3              ## @SMU10_WMTABLE
	.comm	_SMU10_CLOCKTABLE,8,3           ## @SMU10_CLOCKTABLE
	.no_dead_strip	_smu10_smu_fini
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu10_smu_fini
_smu10_smu_fini:                        ; @smu10_smu_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	x20, [x0]
	cbz	x20, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _SMU10_WMTABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMU10_WMTABLE@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh2:
	ldr	x8, [x8]
	mov	w21, #12
	madd	x2, x8, x21, x9
	add	x0, x2, #8
	add	x1, x2, #4
	bl	_amdgpu_bo_free_kernel
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _SMU10_CLOCKTABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SMU10_CLOCKTABLE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	madd	x2, x9, x21, x8
	add	x0, x2, #8
	add	x1, x2, #4
	bl	_amdgpu_bo_free_kernel
	ldr	x0, [x19]
	bl	_kfree
	str	xzr, [x19]
LBB0_2:
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU10_WMTABLE,8,3              ; @SMU10_WMTABLE
	.comm	_SMU10_CLOCKTABLE,8,3           ; @SMU10_CLOCKTABLE
	.no_dead_strip	_smu10_smu_fini
.subsections_via_symbols
