	.file	"extr_uvd_v6_0.c_uvd_v6_0_ring_emit_vm_flush.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	uvd_v6_0_ring_emit_vm_flush, @function
uvd_v6_0_ring_emit_vm_flush:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	amdgpu_gmc_emit_flush_gpu_tlb@PLT
	mov	edi, DWORD PTR mmUVD_GPCOM_VCPU_DATA0[rip]
	xor	esi, esi
	call	PACKET0@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	amdgpu_ring_write@PLT
	mov	eax, DWORD PTR mmVM_INVALIDATE_REQUEST[rip]
	mov	rdi, rbp
	lea	esi, 0[0+rax*4]
	call	amdgpu_ring_write@PLT
	mov	edi, DWORD PTR mmUVD_GPCOM_VCPU_DATA1[rip]
	xor	esi, esi
	call	PACKET0@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	amdgpu_ring_write@PLT
	mov	rdi, rbp
	xor	esi, esi
	call	amdgpu_ring_write@PLT
	mov	edi, DWORD PTR mmUVD_GP_SCRATCH8[rip]
	xor	esi, esi
	call	PACKET0@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	amdgpu_ring_write@PLT
	mov	ecx, r12d
	mov	esi, 1
	mov	rdi, rbp
	sal	esi, cl
	call	amdgpu_ring_write@PLT
	mov	edi, DWORD PTR mmUVD_GPCOM_VCPU_CMD[rip]
	xor	esi, esi
	call	PACKET0@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	amdgpu_ring_write@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	mov	esi, 12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	amdgpu_ring_write@PLT
	.cfi_endproc
.LFE0:
	.size	uvd_v6_0_ring_emit_vm_flush, .-uvd_v6_0_ring_emit_vm_flush
	.comm	mmVM_INVALIDATE_REQUEST,4,4
	.comm	mmUVD_GP_SCRATCH8,4,4
	.comm	mmUVD_GPCOM_VCPU_DATA1,4,4
	.comm	mmUVD_GPCOM_VCPU_DATA0,4,4
	.comm	mmUVD_GPCOM_VCPU_CMD,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_uvd_v6_0.c_uvd_v6_0_ring_emit_vm_flush.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uvd_v6_0_ring_emit_vm_flush, %function
uvd_v6_0_ring_emit_vm_flush:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r5, r1
	bl	amdgpu_gmc_emit_flush_gpu_tlb
	ldr	r3, .L4
	mov	r1, #0
	ldr	r0, [r3]
	bl	PACKET0
	mov	r1, r0
	mov	r0, r4
	bl	amdgpu_ring_write
	ldr	r3, .L4+4
	mov	r0, r4
	ldr	r1, [r3]
	lsl	r1, r1, #2
	bl	amdgpu_ring_write
	ldr	r3, .L4+8
	mov	r1, #0
	ldr	r0, [r3]
	bl	PACKET0
	mov	r1, r0
	mov	r0, r4
	bl	amdgpu_ring_write
	mov	r0, r4
	mov	r1, #0
	bl	amdgpu_ring_write
	ldr	r3, .L4+12
	mov	r1, #0
	ldr	r0, [r3]
	bl	PACKET0
	mov	r1, r0
	mov	r0, r4
	bl	amdgpu_ring_write
	mov	r1, #1
	mov	r0, r4
	lsl	r1, r1, r5
	bl	amdgpu_ring_write
	ldr	r3, .L4+16
	mov	r1, #0
	ldr	r0, [r3]
	bl	PACKET0
	mov	r1, r0
	mov	r0, r4
	bl	amdgpu_ring_write
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	mov	r1, #12
	b	amdgpu_ring_write
.L5:
	.align	2
.L4:
	.word	mmUVD_GPCOM_VCPU_DATA0
	.word	mmVM_INVALIDATE_REQUEST
	.word	mmUVD_GPCOM_VCPU_DATA1
	.word	mmUVD_GP_SCRATCH8
	.word	mmUVD_GPCOM_VCPU_CMD
	.size	uvd_v6_0_ring_emit_vm_flush, .-uvd_v6_0_ring_emit_vm_flush
	.comm	mmVM_INVALIDATE_REQUEST,4,4
	.comm	mmUVD_GP_SCRATCH8,4,4
	.comm	mmUVD_GPCOM_VCPU_DATA1,4,4
	.comm	mmUVD_GPCOM_VCPU_DATA0,4,4
	.comm	mmUVD_GPCOM_VCPU_CMD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
