	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r420_cp_errata_fini
_r420_cp_errata_fini:                   ## @r420_cp_errata_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, %r14
	movq	_RADEON_RING_TYPE_GFX_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	shlq	$2, %rbx
	addq	8(%rdi), %rbx
	movq	%rbx, %rsi
	movl	$8, %edx
	callq	_radeon_ring_lock
	movl	%eax, %edi
	callq	_WARN_ON
	movq	_R300_RB3D_DSTCACHE_CTLSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_PACKET0
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movq	_R300_RB3D_DC_FINISH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_radeon_ring_write
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_radeon_ring_unlock_commit
	movl	(%r14), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_radeon_scratch_free            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_RING_TYPE_GFX_INDEX,8,3 ## @RADEON_RING_TYPE_GFX_INDEX
	.comm	_R300_RB3D_DSTCACHE_CTLSTAT,4,2 ## @R300_RB3D_DSTCACHE_CTLSTAT
	.comm	_R300_RB3D_DC_FINISH,4,2        ## @R300_RB3D_DC_FINISH
	.no_dead_strip	_r420_cp_errata_fini
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r420_cp_errata_fini
_r420_cp_errata_fini:                   ; @r420_cp_errata_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
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _RADEON_RING_TYPE_GFX_INDEX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RADEON_RING_TYPE_GFX_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x20, x8, x9, lsl #2
	mov	x1, x20
	mov	w2, #8
	bl	_radeon_ring_lock
	bl	_WARN_ON
Lloh3:
	adrp	x8, _R300_RB3D_DSTCACHE_CTLSTAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R300_RB3D_DSTCACHE_CTLSTAT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_PACKET0
	mov	x1, x0
	mov	x0, x20
	bl	_radeon_ring_write
Lloh6:
	adrp	x8, _R300_RB3D_DC_FINISH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _R300_RB3D_DC_FINISH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_radeon_ring_write
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_radeon_ring_unlock_commit
	ldr	w1, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_radeon_scratch_free
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_RING_TYPE_GFX_INDEX,8,3 ; @RADEON_RING_TYPE_GFX_INDEX
	.comm	_R300_RB3D_DSTCACHE_CTLSTAT,4,2 ; @R300_RB3D_DSTCACHE_CTLSTAT
	.comm	_R300_RB3D_DC_FINISH,4,2        ; @R300_RB3D_DC_FINISH
	.no_dead_strip	_r420_cp_errata_fini
.subsections_via_symbols
