	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_ring_fini               ## -- Begin function amdgpu_ring_fini
	.p2align	4, 0x90
_amdgpu_ring_fini:                      ## @amdgpu_ring_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$0, 60(%rdi)
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	(%rdi), %rax
	movq	(%rbx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_3
## %bb.2:
	movl	56(%rbx), %esi
	callq	_amdgpu_device_wb_free
	movq	8(%rbx), %rdi
	movl	52(%rbx), %esi
	callq	_amdgpu_device_wb_free
	movq	8(%rbx), %rdi
	movl	48(%rbx), %esi
	callq	_amdgpu_device_wb_free
	movq	8(%rbx), %rdi
	movl	44(%rbx), %esi
	callq	_amdgpu_device_wb_free
	leaq	40(%rbx), %rdi
	leaq	36(%rbx), %rsi
	leaq	32(%rbx), %rdx
	callq	_amdgpu_bo_free_kernel
	movq	%rbx, %rdi
	callq	_amdgpu_debugfs_ring_fini
	movq	24(%rbx), %rdi
	callq	_dma_fence_put
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	$0, (%rcx,%rax,8)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_ring_fini               ; -- Begin function amdgpu_ring_fini
	.p2align	2
_amdgpu_ring_fini:                      ; @amdgpu_ring_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
	str	wzr, [x0, #60]
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x0]
	ldr	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w1, [x19, #56]
	bl	_amdgpu_device_wb_free
	ldr	x0, [x19, #8]
	ldr	w1, [x19, #52]
	bl	_amdgpu_device_wb_free
	ldr	x0, [x19, #8]
	ldr	w1, [x19, #48]
	bl	_amdgpu_device_wb_free
	ldr	x0, [x19, #8]
	ldr	w1, [x19, #44]
	bl	_amdgpu_device_wb_free
	add	x0, x19, #40
	add	x1, x19, #36
	add	x2, x19, #32
	bl	_amdgpu_bo_free_kernel
	mov	x0, x19
	bl	_amdgpu_debugfs_ring_fini
	ldr	x0, [x19, #24]
	bl	_dma_fence_put
	stp	xzr, xzr, [x19, #16]
	ldp	x9, x8, [x19]
	ldr	x8, [x8]
	str	xzr, [x8, x9, lsl #3]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
