	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cik_fence_compute_ring_emit    ## -- Begin function cik_fence_compute_ring_emit
	.p2align	4, 0x90
_cik_fence_compute_ring_emit:           ## @cik_fence_compute_ring_emit
	.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	%rsi, %r14
	movq	(%rsi), %rax
	leaq	(,%rax,4), %r12
	addq	8(%rdi), %r12
	movq	(%rdi), %rcx
	movl	(%rcx,%rax,4), %r15d
	movq	_PACKET3_RELEASE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$5, %esi
	callq	_PACKET3
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movq	_EOP_TCL1_ACTION_EN@GOTPCREL(%rip), %rax
	movq	_EOP_TC_ACTION_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_CACHE_FLUSH_AND_INV_TS_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_EVENT_TYPE
	orl	%eax, %ebx
	movl	$5, %edi
	callq	_EVENT_INDEX
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_radeon_ring_write
	movl	$1, %edi
	callq	_DATA_SEL
	movl	%eax, %ebx
	movl	$2, %edi
	callq	_INT_SEL
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_radeon_ring_write
	movl	%r15d, %esi
	andl	$-4, %esi
	movq	%r12, %rdi
	callq	_radeon_ring_write
	movl	%r15d, %edi
	callq	_upper_32_bits
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movl	8(%r14), %esi
	movq	%r12, %rdi
	callq	_radeon_ring_write
	movq	%r12, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_radeon_ring_write              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PACKET3_RELEASE_MEM,4,2        ## @PACKET3_RELEASE_MEM
	.comm	_EOP_TCL1_ACTION_EN,4,2         ## @EOP_TCL1_ACTION_EN
	.comm	_EOP_TC_ACTION_EN,4,2           ## @EOP_TC_ACTION_EN
	.comm	_CACHE_FLUSH_AND_INV_TS_EVENT,4,2 ## @CACHE_FLUSH_AND_INV_TS_EVENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cik_fence_compute_ring_emit    ; -- Begin function cik_fence_compute_ring_emit
	.p2align	2
_cik_fence_compute_ring_emit:           ; @cik_fence_compute_ring_emit
	.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	x20, x1
	ldr	x8, [x1]
	lsl	x8, x8, #2
	ldp	x10, x9, [x0]
	add	x19, x9, x8
	ldr	w21, [x10, x8]
Lloh0:
	adrp	x8, _PACKET3_RELEASE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PACKET3_RELEASE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #5
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
Lloh3:
	adrp	x8, _EOP_TCL1_ACTION_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOP_TCL1_ACTION_EN@GOTPAGEOFF]
Lloh5:
	adrp	x9, _EOP_TC_ACTION_EN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EOP_TC_ACTION_EN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	orr	w22, w9, w8
Lloh9:
	adrp	x8, _CACHE_FLUSH_AND_INV_TS_EVENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CACHE_FLUSH_AND_INV_TS_EVENT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_EVENT_TYPE
	orr	w22, w22, w0
	mov	w0, #5
	bl	_EVENT_INDEX
	orr	w1, w22, w0
	mov	x0, x19
	bl	_radeon_ring_write
	mov	w0, #1
	bl	_DATA_SEL
	mov	x22, x0
	mov	w0, #2
	bl	_INT_SEL
	orr	w1, w0, w22
	mov	x0, x19
	bl	_radeon_ring_write
	and	w1, w21, #0xfffffffc
	mov	x0, x19
	bl	_radeon_ring_write
	mov	x0, x21
	bl	_upper_32_bits
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_radeon_ring_write
	mov	x0, x19
	mov	w1, #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
	b	_radeon_ring_write
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PACKET3_RELEASE_MEM,4,2        ; @PACKET3_RELEASE_MEM
	.comm	_EOP_TCL1_ACTION_EN,4,2         ; @EOP_TCL1_ACTION_EN
	.comm	_EOP_TC_ACTION_EN,4,2           ; @EOP_TC_ACTION_EN
	.comm	_CACHE_FLUSH_AND_INV_TS_EVENT,4,2 ; @CACHE_FLUSH_AND_INV_TS_EVENT
.subsections_via_symbols
