	.file	"extr_radeon_state.c_radeon_cp_swap.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\n"
	.text
	.p2align 4
	.type	radeon_cp_swap, @function
radeon_cp_swap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR [rdx]
	mov	r13, QWORD PTR [rdi]
	lea	rdi, .LC0[rip]
	mov	rax, QWORD PTR [rax]
	mov	rbx, QWORD PTR [rax]
	call	DRM_DEBUG@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	LOCK_TEST_WITH_RETURN@PLT
	mov	rdi, r13
	call	RING_SPACE_TEST_WITH_RETURN@PLT
	mov	rax, QWORD PTR RADEON_NR_SAREA_CLIPRECTS[rip]
	cmp	QWORD PTR [rbx], rax
	jle	.L2
	mov	QWORD PTR [rbx], rax
.L2:
	mov	eax, DWORD PTR 0[r13]
	and	eax, DWORD PTR RADEON_FAMILY_MASK[rip]
	cmp	eax, DWORD PTR CHIP_R600[rip]
	jl	.L3
	mov	rsi, r12
	mov	rdi, rbp
	call	r600_cp_dispatch_swap@PLT
.L4:
	mov	QWORD PTR 8[rbx], 0
	xor	eax, eax
	call	COMMIT_RING@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rsi, QWORD PTR [r12]
	mov	rdi, rbp
	call	radeon_cp_dispatch_swap@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	radeon_cp_swap, .-radeon_cp_swap
	.comm	RADEON_NR_SAREA_CLIPRECTS,8,8
	.comm	RADEON_FAMILY_MASK,4,4
	.comm	CHIP_R600,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_radeon_state.c_radeon_cp_swap.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	radeon_cp_swap, %function
radeon_cp_swap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r5, r2
	ldr	r3, [r2]
	ldr	r7, [r4]
	ldr	r3, [r3]
	ldr	r0, .L7
	ldr	r6, [r3]
	bl	DRM_DEBUG
	mov	r1, r5
	mov	r0, r4
	bl	LOCK_TEST_WITH_RETURN
	mov	r0, r7
	bl	RING_SPACE_TEST_WITH_RETURN
	ldr	r3, .L7+4
	ldr	r2, [r6]
	ldr	r3, [r3]
	ldr	r1, .L7+8
	cmp	r2, r3
	ldr	r2, .L7+12
	strgt	r3, [r6]
	ldr	r1, [r1]
	ldr	r3, [r7]
	ldr	r2, [r2]
	and	r3, r3, r1
	cmp	r3, r2
	blt	.L3
	mov	r1, r5
	mov	r0, r4
	bl	r600_cp_dispatch_swap
.L4:
	mov	r4, #0
	str	r4, [r6, #4]
	bl	COMMIT_RING
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r0, r4
	ldr	r1, [r5]
	bl	radeon_cp_dispatch_swap
	b	.L4
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	RADEON_NR_SAREA_CLIPRECTS
	.word	RADEON_FAMILY_MASK
	.word	CHIP_R600
	.size	radeon_cp_swap, .-radeon_cp_swap
	.comm	RADEON_NR_SAREA_CLIPRECTS,4,4
	.comm	RADEON_FAMILY_MASK,4,4
	.comm	CHIP_R600,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
