	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cik_cp_compute_fini
_cik_cp_compute_fini:                   ## @cik_cp_compute_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%esi, %esi
	callq	_cik_cp_compute_enable
	movq	_CAYMAN_RING_TYPE_CP1_INDEX@GOTPCREL(%rip), %rax
	movslq	(%rax), %r12
	movq	(%r15), %rax
	movq	(%rax,%r12,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	xorl	%esi, %esi
	callq	_radeon_bo_reserve
	movl	%eax, %r14d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_warn
LBB0_3:
	movq	(%r15), %rax
	leaq	(,%r12,8), %rbx
	movq	(%rax,%r12,8), %rdi
	callq	_radeon_bo_unpin
	movq	(%r15), %rax
	movq	(%rax,%r12,8), %rdi
	callq	_radeon_bo_unreserve
	addq	(%r15), %rbx
	movq	%rbx, %rdi
	callq	_radeon_bo_unref
	movq	(%r15), %rax
	movq	$0, (%rax,%r12,8)
LBB0_4:
	movq	_CAYMAN_RING_TYPE_CP2_INDEX@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r12
	movq	(%rax,%r12,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.5:
	xorl	%esi, %esi
	callq	_radeon_bo_reserve
	movl	%eax, %r14d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_warn
LBB0_7:
	movq	(%r15), %rax
	leaq	(,%r12,8), %rbx
	movq	(%rax,%r12,8), %rdi
	callq	_radeon_bo_unpin
	movq	(%r15), %rax
	movq	(%rax,%r12,8), %rdi
	callq	_radeon_bo_unreserve
	addq	(%r15), %rbx
	movq	%rbx, %rdi
	callq	_radeon_bo_unref
	movq	(%r15), %rax
	movq	$0, (%rax,%r12,8)
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAYMAN_RING_TYPE_CP1_INDEX,4,2 ## @CAYMAN_RING_TYPE_CP1_INDEX
	.comm	_CAYMAN_RING_TYPE_CP2_INDEX,4,2 ## @CAYMAN_RING_TYPE_CP2_INDEX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%d) reserve MQD bo failed\n"

	.no_dead_strip	_cik_cp_compute_fini
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cik_cp_compute_fini
_cik_cp_compute_fini:                   ; @cik_cp_compute_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
	mov	x19, x0
	mov	w1, #0
	bl	_cik_cp_compute_enable
Lloh0:
	adrp	x8, _CAYMAN_RING_TYPE_CP1_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAYMAN_RING_TYPE_CP1_INDEX@GOTPAGEOFF]
Lloh2:
	ldrsw	x21, [x8]
	ldr	x8, [x19]
	ldr	x0, [x8, x21, lsl #3]
	cbz	x0, LBB0_4
; %bb.1:
	mov	w1, #0
	bl	_radeon_bo_reserve
	mov	x20, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_warn
LBB0_3:
	ldr	x8, [x19]
	lsl	x20, x21, #3
	ldr	x0, [x8, x20]
	bl	_radeon_bo_unpin
	ldr	x8, [x19]
	ldr	x0, [x8, x20]
	bl	_radeon_bo_unreserve
	ldr	x8, [x19]
	add	x0, x8, x20
	bl	_radeon_bo_unref
	ldr	x8, [x19]
	str	xzr, [x8, x20]
LBB0_4:
Lloh5:
	adrp	x9, _CAYMAN_RING_TYPE_CP2_INDEX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CAYMAN_RING_TYPE_CP2_INDEX@GOTPAGEOFF]
Lloh7:
	ldrsw	x21, [x9]
	ldr	x0, [x8, x21, lsl #3]
	cbz	x0, LBB0_8
; %bb.5:
	mov	w1, #0
	bl	_radeon_bo_reserve
	mov	x20, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x19, #8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_warn
LBB0_7:
	ldr	x8, [x19]
	lsl	x20, x21, #3
	ldr	x0, [x8, x20]
	bl	_radeon_bo_unpin
	ldr	x8, [x19]
	ldr	x0, [x8, x20]
	bl	_radeon_bo_unreserve
	ldr	x8, [x19]
	add	x0, x8, x20
	bl	_radeon_bo_unref
	ldr	x8, [x19]
	str	xzr, [x8, x20]
LBB0_8:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CAYMAN_RING_TYPE_CP1_INDEX,4,2 ; @CAYMAN_RING_TYPE_CP1_INDEX
	.comm	_CAYMAN_RING_TYPE_CP2_INDEX,4,2 ; @CAYMAN_RING_TYPE_CP2_INDEX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%d) reserve MQD bo failed\n"

	.no_dead_strip	_cik_cp_compute_fini
.subsections_via_symbols
