	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cik_fence_gfx_ring_emit        ## -- Begin function cik_fence_gfx_ring_emit
	.p2align	4, 0x90
_cik_fence_gfx_ring_emit:               ## @cik_fence_gfx_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rsi), %rax
	leaq	(,%rax,4), %r13
	addq	8(%rdi), %r13
	movq	(%rdi), %rcx
	movl	(%rcx,%rax,4), %r14d
	movq	_PACKET3_EVENT_WRITE_EOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	callq	_PACKET3
	movq	%r13, %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	%r13, %rdi
	movl	%ebx, %esi
	callq	_radeon_ring_write
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %r12d
	andl	$-4, %r12d
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_radeon_ring_write
	movl	%r14d, %edi
	callq	_upper_32_bits
	movzwl	%ax, %r14d
	movl	$1, %edi
	callq	_DATA_SEL
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_INT_SEL
	orl	%eax, %ebx
	orl	%r14d, %ebx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_radeon_ring_write
	movl	8(%r15), %esi
	decl	%esi
	movq	%r13, %rdi
	callq	_radeon_ring_write
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_radeon_ring_write
	movq	_PACKET3_EVENT_WRITE_EOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	callq	_PACKET3
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movq	_EOP_TC_ACTION_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_EOP_TCL1_ACTION_EN@GOTPCREL(%rip), %rax
	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	%r13, %rdi
	movl	%ebx, %esi
	callq	_radeon_ring_write
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_radeon_ring_write
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_upper_32_bits
	movzwl	%ax, %r14d
	movl	$1, %edi
	callq	_DATA_SEL
	movl	%eax, %ebx
	movl	$2, %edi
	callq	_INT_SEL
	orl	%eax, %ebx
	orl	%r14d, %ebx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_radeon_ring_write
	movl	8(%r15), %esi
	movq	%r13, %rdi
	callq	_radeon_ring_write
	movq	%r13, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_radeon_ring_write              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PACKET3_EVENT_WRITE_EOP,4,2    ## @PACKET3_EVENT_WRITE_EOP
	.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_gfx_ring_emit        ; -- Begin function cik_fence_gfx_ring_emit
	.p2align	2
_cik_fence_gfx_ring_emit:               ; @cik_fence_gfx_ring_emit
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	ldr	x8, [x1]
	lsl	x8, x8, #2
	ldp	x10, x9, [x0]
	add	x20, x9, x8
	ldr	w21, [x10, x8]
Lloh0:
	adrp	x23, _PACKET3_EVENT_WRITE_EOP@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PACKET3_EVENT_WRITE_EOP@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	w1, #4
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x20
	bl	_radeon_ring_write
Lloh2:
	adrp	x24, _EOP_TCL1_ACTION_EN@GOTPAGE
Lloh3:
	ldr	x24, [x24, _EOP_TCL1_ACTION_EN@GOTPAGEOFF]
Lloh4:
	adrp	x25, _EOP_TC_ACTION_EN@GOTPAGE
Lloh5:
	ldr	x25, [x25, _EOP_TC_ACTION_EN@GOTPAGEOFF]
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w22, w9, w8
Lloh6:
	adrp	x26, _CACHE_FLUSH_AND_INV_TS_EVENT@GOTPAGE
Lloh7:
	ldr	x26, [x26, _CACHE_FLUSH_AND_INV_TS_EVENT@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_EVENT_TYPE
	orr	w22, w22, w0
	mov	w0, #5
	bl	_EVENT_INDEX
	orr	w1, w22, w0
	mov	x0, x20
	bl	_radeon_ring_write
	and	w22, w21, #0xfffffffc
	mov	x0, x20
	mov	x1, x22
	bl	_radeon_ring_write
	mov	x0, x21
	bl	_upper_32_bits
	and	w27, w0, #0xffff
	mov	w0, #1
	bl	_DATA_SEL
	orr	w27, w27, w0
	mov	w0, #0
	bl	_INT_SEL
	orr	w1, w27, w0
	mov	x0, x20
	bl	_radeon_ring_write
	ldr	w8, [x19, #8]
	sub	w1, w8, #1
	mov	x0, x20
	bl	_radeon_ring_write
	mov	x0, x20
	mov	w1, #0
	bl	_radeon_ring_write
	ldr	w0, [x23]
	mov	w1, #4
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x20
	bl	_radeon_ring_write
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w23, w9, w8
	ldr	w0, [x26]
	bl	_EVENT_TYPE
	orr	w23, w23, w0
	mov	w0, #5
	bl	_EVENT_INDEX
	orr	w1, w23, w0
	mov	x0, x20
	bl	_radeon_ring_write
	mov	x0, x20
	mov	x1, x22
	bl	_radeon_ring_write
	mov	x0, x21
	bl	_upper_32_bits
	and	w21, w0, #0xffff
	mov	w0, #1
	bl	_DATA_SEL
	orr	w21, w21, w0
	mov	w0, #2
	bl	_INT_SEL
	orr	w1, w21, w0
	mov	x0, x20
	bl	_radeon_ring_write
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_radeon_ring_write
	mov	x0, x20
	mov	w1, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_radeon_ring_write
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PACKET3_EVENT_WRITE_EOP,4,2    ; @PACKET3_EVENT_WRITE_EOP
	.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
