	.file	"extr_r300.c_rv370_pcie_gart_tlb_flush.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	rv370_pcie_gart_tlb_flush
	.type	rv370_pcie_gart_tlb_flush, @function
rv370_pcie_gart_tlb_flush:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, 2
	sub	rsp, 8
	.cfi_def_cfa_offset 32
.L2:
	mov	edi, DWORD PTR RADEON_PCIE_TX_GART_CNTL[rip]
	call	RREG32_PCIE@PLT
	mov	esi, DWORD PTR RADEON_PCIE_TX_GART_INVALIDATE_TLB[rip]
	mov	edi, DWORD PTR RADEON_PCIE_TX_GART_CNTL[rip]
	mov	ebp, eax
	or	esi, eax
	call	WREG32_PCIE@PLT
	mov	edi, DWORD PTR RADEON_PCIE_TX_GART_CNTL[rip]
	call	RREG32_PCIE@PLT
	mov	edi, DWORD PTR RADEON_PCIE_TX_GART_CNTL[rip]
	mov	esi, ebp
	call	WREG32_PCIE@PLT
	cmp	ebx, 1
	jne	.L3
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	mb@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	ebx, 1
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	rv370_pcie_gart_tlb_flush, .-rv370_pcie_gart_tlb_flush
	.comm	RADEON_PCIE_TX_GART_INVALIDATE_TLB,4,4
	.comm	RADEON_PCIE_TX_GART_CNTL,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_r300.c_rv370_pcie_gart_tlb_flush.c"
	.text
	.align	2
	.global	rv370_pcie_gart_tlb_flush
	.syntax unified
	.arm
	.fpu softvfp
	.type	rv370_pcie_gart_tlb_flush, %function
rv370_pcie_gart_tlb_flush:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, #2
	ldr	r5, .L6
	ldr	r7, .L6+4
.L2:
	ldr	r0, [r5]
	bl	RREG32_PCIE
	mov	r4, r0
	ldr	r1, [r7]
	ldr	r0, [r5]
	orr	r1, r4, r1
	bl	WREG32_PCIE
	ldr	r0, [r5]
	bl	RREG32_PCIE
	mov	r1, r4
	ldr	r0, [r5]
	bl	WREG32_PCIE
	cmp	r6, #1
	bne	.L3
	pop	{r4, r5, r6, r7, r8, lr}
	b	mb
.L3:
	mov	r6, #1
	b	.L2
.L7:
	.align	2
.L6:
	.word	RADEON_PCIE_TX_GART_CNTL
	.word	RADEON_PCIE_TX_GART_INVALIDATE_TLB
	.size	rv370_pcie_gart_tlb_flush, .-rv370_pcie_gart_tlb_flush
	.comm	RADEON_PCIE_TX_GART_INVALIDATE_TLB,4,4
	.comm	RADEON_PCIE_TX_GART_CNTL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
