	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cayman_fence_ring_emit         ## -- Begin function cayman_fence_ring_emit
	.p2align	4, 0x90
_cayman_fence_ring_emit:                ## @cayman_fence_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_SET_CONFIG_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_PACKET3
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movq	_CP_COHER_CNTL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PACKET3_SET_CONFIG_REG_START@GOTPCREL(%rip), %rax
	subl	(%rax), %esi
	sarl	$2, %esi
	movq	%r12, %rdi
	callq	_radeon_ring_write
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_radeon_ring_write
	movq	_PACKET3_SURFACE_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$3, %esi
	callq	_PACKET3
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movq	_PACKET3_TC_ACTION_ENA@GOTPCREL(%rip), %rax
	movq	_PACKET3_SH_ACTION_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r12, %rdi
	callq	_radeon_ring_write
	movq	%r12, %rdi
	movl	$-1, %esi
	callq	_radeon_ring_write
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_radeon_ring_write
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_radeon_ring_write
	movq	_PACKET3_EVENT_WRITE_EOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	callq	_PACKET3
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movq	_CACHE_FLUSH_AND_INV_EVENT_TS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_EVENT_TYPE
	movl	%eax, %ebx
	movl	$5, %edi
	callq	_EVENT_INDEX
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_radeon_ring_write
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_radeon_ring_write
	movl	%r15d, %edi
	callq	_upper_32_bits
	movzbl	%al, %r15d
	movl	$1, %edi
	callq	_DATA_SEL
	movl	%eax, %ebx
	movl	$2, %edi
	callq	_INT_SEL
	orl	%eax, %ebx
	orl	%r15d, %ebx
	movq	%r12, %rdi
	movl	%ebx, %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_SET_CONFIG_REG,4,2     ## @PACKET3_SET_CONFIG_REG
	.comm	_CP_COHER_CNTL2,4,2             ## @CP_COHER_CNTL2
	.comm	_PACKET3_SET_CONFIG_REG_START,4,2 ## @PACKET3_SET_CONFIG_REG_START
	.comm	_PACKET3_SURFACE_SYNC,4,2       ## @PACKET3_SURFACE_SYNC
	.comm	_PACKET3_TC_ACTION_ENA,4,2      ## @PACKET3_TC_ACTION_ENA
	.comm	_PACKET3_SH_ACTION_ENA,4,2      ## @PACKET3_SH_ACTION_ENA
	.comm	_PACKET3_EVENT_WRITE_EOP,4,2    ## @PACKET3_EVENT_WRITE_EOP
	.comm	_CACHE_FLUSH_AND_INV_EVENT_TS,4,2 ## @CACHE_FLUSH_AND_INV_EVENT_TS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cayman_fence_ring_emit         ; -- Begin function cayman_fence_ring_emit
	.p2align	2
_cayman_fence_ring_emit:                ; @cayman_fence_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	x19, x1
	ldr	x8, [x1]
	lsl	x8, x8, #2
	ldp	x10, x9, [x0]
	add	x20, x9, x8
	ldr	w21, [x10, x8]
Lloh0:
	adrp	x8, _PACKET3_SET_CONFIG_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PACKET3_SET_CONFIG_REG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x20
	bl	_radeon_ring_write
Lloh3:
	adrp	x8, _CP_COHER_CNTL2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CP_COHER_CNTL2@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PACKET3_SET_CONFIG_REG_START@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PACKET3_SET_CONFIG_REG_START@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sub	w8, w8, w9
	asr	w1, w8, #2
	mov	x0, x20
	bl	_radeon_ring_write
	mov	x0, x20
	mov	w1, #0
	bl	_radeon_ring_write
Lloh9:
	adrp	x8, _PACKET3_SURFACE_SYNC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PACKET3_SURFACE_SYNC@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	w1, #3
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x20
	bl	_radeon_ring_write
Lloh12:
	adrp	x8, _PACKET3_TC_ACTION_ENA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PACKET3_TC_ACTION_ENA@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _PACKET3_SH_ACTION_ENA@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PACKET3_SH_ACTION_ENA@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_radeon_ring_write
	mov	x0, x20
	mov	w1, #-1
	bl	_radeon_ring_write
	mov	x0, x20
	mov	w1, #0
	bl	_radeon_ring_write
	mov	x0, x20
	mov	w1, #10
	bl	_radeon_ring_write
Lloh18:
	adrp	x8, _PACKET3_EVENT_WRITE_EOP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PACKET3_EVENT_WRITE_EOP@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	w1, #4
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x20
	bl	_radeon_ring_write
Lloh21:
	adrp	x8, _CACHE_FLUSH_AND_INV_EVENT_TS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CACHE_FLUSH_AND_INV_EVENT_TS@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_EVENT_TYPE
	mov	x22, x0
	mov	w0, #5
	bl	_EVENT_INDEX
	orr	w1, w0, w22
	mov	x0, x20
	bl	_radeon_ring_write
	mov	x0, x20
	mov	x1, x21
	bl	_radeon_ring_write
	mov	x0, x21
	bl	_upper_32_bits
	and	w21, w0, #0xff
	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, #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	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PACKET3_SET_CONFIG_REG,4,2     ; @PACKET3_SET_CONFIG_REG
	.comm	_CP_COHER_CNTL2,4,2             ; @CP_COHER_CNTL2
	.comm	_PACKET3_SET_CONFIG_REG_START,4,2 ; @PACKET3_SET_CONFIG_REG_START
	.comm	_PACKET3_SURFACE_SYNC,4,2       ; @PACKET3_SURFACE_SYNC
	.comm	_PACKET3_TC_ACTION_ENA,4,2      ; @PACKET3_TC_ACTION_ENA
	.comm	_PACKET3_SH_ACTION_ENA,4,2      ; @PACKET3_SH_ACTION_ENA
	.comm	_PACKET3_EVENT_WRITE_EOP,4,2    ; @PACKET3_EVENT_WRITE_EOP
	.comm	_CACHE_FLUSH_AND_INV_EVENT_TS,4,2 ; @CACHE_FLUSH_AND_INV_EVENT_TS
.subsections_via_symbols
