	.file	"extr_r600.c_r600_dma_fence_ring_emit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	r600_dma_fence_ring_emit
	.type	r600_dma_fence_ring_emit, @function
r600_dma_fence_ring_emit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	ecx, ecx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR [rsi]
	mov	rbx, rsi
	xor	esi, esi
	mov	rdx, QWORD PTR 8[rdi]
	lea	rbp, [rdx+rax*4]
	mov	rdx, QWORD PTR [rdi]
	mov	edi, DWORD PTR DMA_PACKET_FENCE[rip]
	mov	r12d, DWORD PTR [rdx+rax*4]
	xor	edx, edx
	call	DMA_PACKET@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	radeon_ring_write@PLT
	mov	esi, r12d
	mov	rdi, rbp
	and	esi, -4
	call	radeon_ring_write@PLT
	mov	edi, r12d
	call	upper_32_bits@PLT
	mov	rdi, rbp
	movzx	esi, al
	call	radeon_ring_write@PLT
	mov	edi, DWORD PTR 8[rbx]
	call	lower_32_bits@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	radeon_ring_write@PLT
	mov	edi, DWORD PTR DMA_PACKET_TRAP[rip]
	xor	esi, esi
	xor	ecx, ecx
	xor	edx, edx
	call	DMA_PACKET@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	esi, eax
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	radeon_ring_write@PLT
	.cfi_endproc
.LFE0:
	.size	r600_dma_fence_ring_emit, .-r600_dma_fence_ring_emit
	.comm	DMA_PACKET_TRAP,4,4
	.comm	DMA_PACKET_FENCE,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_r600.c_r600_dma_fence_ring_emit.c"
	.text
	.align	2
	.global	r600_dma_fence_ring_emit
	.syntax unified
	.arm
	.fpu softvfp
	.type	r600_dma_fence_ring_emit, %function
r600_dma_fence_ring_emit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, lr}
	ldr	r2, [r1]
	mov	r5, r1
	ldm	r0, {r1, r4}
	ldr	r0, .L4
	add	r4, r4, r2, lsl #2
	ldr	r6, [r1, r2, lsl #2]
	ldr	r0, [r0]
	mov	r2, r3
	mov	r1, r3
	bl	DMA_PACKET
	mov	r1, r0
	mov	r0, r4
	bl	radeon_ring_write
	bic	r1, r6, #3
	mov	r0, r4
	bl	radeon_ring_write
	mov	r0, r6
	bl	upper_32_bits
	mov	r1, r0
	mov	r0, r4
	and	r1, r1, #255
	bl	radeon_ring_write
	ldr	r0, [r5, #4]
	bl	lower_32_bits
	mov	r1, r0
	mov	r0, r4
	bl	radeon_ring_write
	mov	r3, #0
	ldr	r0, .L4+4
	mov	r1, r3
	mov	r2, r3
	ldr	r0, [r0]
	bl	DMA_PACKET
	mov	r1, r0
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	radeon_ring_write
.L5:
	.align	2
.L4:
	.word	DMA_PACKET_FENCE
	.word	DMA_PACKET_TRAP
	.size	r600_dma_fence_ring_emit, .-r600_dma_fence_ring_emit
	.comm	DMA_PACKET_TRAP,4,4
	.comm	DMA_PACKET_FENCE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
