	.file	"extr_r100.c_r100_fence_ring_emit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	r100_fence_ring_emit
	.type	r100_fence_ring_emit, @function
r100_fence_ring_emit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rdx, QWORD PTR [rsi]
	mov	rbx, rsi
	xor	esi, esi
	mov	rax, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR RADEON_RB3D_DSTCACHE_CTLSTAT[rip]
	lea	rbp, [rax+rdx*4]
	call	PACKET0@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	radeon_ring_write@PLT
	mov	esi, DWORD PTR RADEON_RB3D_DC_FLUSH_ALL[rip]
	mov	rdi, rbp
	call	radeon_ring_write@PLT
	mov	edi, DWORD PTR RADEON_RB3D_ZCACHE_CTLSTAT[rip]
	xor	esi, esi
	call	PACKET0@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	radeon_ring_write@PLT
	mov	esi, DWORD PTR RADEON_RB3D_ZC_FLUSH_ALL[rip]
	mov	rdi, rbp
	call	radeon_ring_write@PLT
	mov	edi, DWORD PTR RADEON_WAIT_UNTIL[rip]
	xor	esi, esi
	call	PACKET0@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	radeon_ring_write@PLT
	mov	rdi, rbp
	mov	esi, DWORD PTR RADEON_WAIT_2D_IDLECLEAN[rip]
	or	esi, DWORD PTR RADEON_WAIT_3D_IDLECLEAN[rip]
	call	radeon_ring_write@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	r100_ring_hdp_flush@PLT
	mov	rdx, QWORD PTR [rbx]
	mov	rax, QWORD PTR [r12]
	xor	esi, esi
	mov	edi, DWORD PTR [rax+rdx*4]
	call	PACKET0@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	radeon_ring_write@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	rdi, rbp
	call	radeon_ring_write@PLT
	mov	edi, DWORD PTR RADEON_GEN_INT_STATUS[rip]
	xor	esi, esi
	call	PACKET0@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	radeon_ring_write@PLT
	mov	esi, DWORD PTR RADEON_SW_INT_FIRE[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	radeon_ring_write@PLT
	.cfi_endproc
.LFE0:
	.size	r100_fence_ring_emit, .-r100_fence_ring_emit
	.comm	RADEON_WAIT_UNTIL,4,4
	.comm	RADEON_WAIT_3D_IDLECLEAN,4,4
	.comm	RADEON_WAIT_2D_IDLECLEAN,4,4
	.comm	RADEON_SW_INT_FIRE,4,4
	.comm	RADEON_RB3D_ZC_FLUSH_ALL,4,4
	.comm	RADEON_RB3D_ZCACHE_CTLSTAT,4,4
	.comm	RADEON_RB3D_DSTCACHE_CTLSTAT,4,4
	.comm	RADEON_RB3D_DC_FLUSH_ALL,4,4
	.comm	RADEON_GEN_INT_STATUS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_r100.c_r100_fence_ring_emit.c"
	.text
	.align	2
	.global	r100_fence_ring_emit
	.syntax unified
	.arm
	.fpu softvfp
	.type	r100_fence_ring_emit, %function
r100_fence_ring_emit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L4
	push	{r4, r5, r6, lr}
	ldr	r2, [r1]
	ldr	r4, [r0, #4]
	mov	r6, r0
	mov	r5, r1
	ldr	r0, [r3]
	mov	r1, #0
	add	r4, r4, r2, lsl #2
	bl	PACKET0
	mov	r1, r0
	mov	r0, r4
	bl	radeon_ring_write
	ldr	r3, .L4+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	radeon_ring_write
	ldr	r3, .L4+8
	mov	r1, #0
	ldr	r0, [r3]
	bl	PACKET0
	mov	r1, r0
	mov	r0, r4
	bl	radeon_ring_write
	ldr	r3, .L4+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	radeon_ring_write
	ldr	r3, .L4+16
	mov	r1, #0
	ldr	r0, [r3]
	bl	PACKET0
	mov	r1, r0
	mov	r0, r4
	bl	radeon_ring_write
	ldr	r2, .L4+20
	ldr	r3, .L4+24
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r0, r4
	orr	r1, r1, r3
	bl	radeon_ring_write
	mov	r1, r4
	mov	r0, r6
	bl	r100_ring_hdp_flush
	ldr	r2, [r5]
	ldr	r3, [r6]
	mov	r1, #0
	ldr	r0, [r3, r2, lsl #2]
	bl	PACKET0
	mov	r1, r0
	mov	r0, r4
	bl	radeon_ring_write
	ldr	r1, [r5, #4]
	mov	r0, r4
	bl	radeon_ring_write
	ldr	r3, .L4+28
	mov	r1, #0
	ldr	r0, [r3]
	bl	PACKET0
	mov	r1, r0
	mov	r0, r4
	bl	radeon_ring_write
	ldr	r3, .L4+32
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	ldr	r1, [r3]
	b	radeon_ring_write
.L5:
	.align	2
.L4:
	.word	RADEON_RB3D_DSTCACHE_CTLSTAT
	.word	RADEON_RB3D_DC_FLUSH_ALL
	.word	RADEON_RB3D_ZCACHE_CTLSTAT
	.word	RADEON_RB3D_ZC_FLUSH_ALL
	.word	RADEON_WAIT_UNTIL
	.word	RADEON_WAIT_2D_IDLECLEAN
	.word	RADEON_WAIT_3D_IDLECLEAN
	.word	RADEON_GEN_INT_STATUS
	.word	RADEON_SW_INT_FIRE
	.size	r100_fence_ring_emit, .-r100_fence_ring_emit
	.comm	RADEON_WAIT_UNTIL,4,4
	.comm	RADEON_WAIT_3D_IDLECLEAN,4,4
	.comm	RADEON_WAIT_2D_IDLECLEAN,4,4
	.comm	RADEON_SW_INT_FIRE,4,4
	.comm	RADEON_RB3D_ZC_FLUSH_ALL,4,4
	.comm	RADEON_RB3D_ZCACHE_CTLSTAT,4,4
	.comm	RADEON_RB3D_DSTCACHE_CTLSTAT,4,4
	.comm	RADEON_RB3D_DC_FLUSH_ALL,4,4
	.comm	RADEON_GEN_INT_STATUS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
