	.file	"extr_si_dma.c_si_dma_ring_test_ring.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	si_dma_ring_test_ring, @function
si_dma_ring_test_ring:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rbp, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rsi, 4[rsp]
	mov	rdi, rbp
	call	amdgpu_device_wb_get@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L13
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edx, DWORD PTR 4[rsp]
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, -889266515
	mov	r15, QWORD PTR 16[rbp]
	lea	r12, [rax+rdx*4]
	mov	r14, rdx
	call	cpu_to_le32@PLT
	mov	esi, 4
	mov	rdi, r13
	mov	DWORD PTR [r12], eax
	call	amdgpu_ring_alloc@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L3
	mov	edi, DWORD PTR DMA_PACKET_WRITE[rip]
	mov	r8d, 1
	xor	ecx, ecx
	xor	edx, edx
	xor	esi, esi
	sal	r14d, 2
	call	DMA_PACKET@PLT
	add	r14, r15
	mov	rdi, r13
	mov	esi, eax
	call	amdgpu_ring_write@PLT
	mov	rdi, r14
	call	lower_32_bits@PLT
	mov	rdi, r13
	mov	esi, eax
	call	amdgpu_ring_write@PLT
	mov	rdi, r14
	call	upper_32_bits@PLT
	mov	rdi, r13
	movzx	esi, al
	call	amdgpu_ring_write@PLT
	mov	esi, -559038737
	mov	rdi, r13
	call	amdgpu_ring_write@PLT
	mov	rdi, r13
	call	amdgpu_ring_commit@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	je	.L7
	xor	ebx, ebx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, 1
	add	ebx, 1
	call	udelay@PLT
	cmp	DWORD PTR 0[rbp], ebx
	jbe	.L7
.L6:
	mov	edx, DWORD PTR 4[rsp]
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR [rax+rdx*4]
	call	le32_to_cpu@PLT
	cmp	eax, -559038737
	jne	.L15
	cmp	DWORD PTR 0[rbp], ebx
	jbe	.L7
.L3:
	mov	esi, DWORD PTR 4[rsp]
	mov	rdi, rbp
	call	amdgpu_device_wb_free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r12d, DWORD PTR ETIMEDOUT[rip]
	mov	esi, DWORD PTR 4[rsp]
	mov	rdi, rbp
	neg	r12d
	call	amdgpu_device_wb_free@PLT
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	si_dma_ring_test_ring, .-si_dma_ring_test_ring
	.comm	ETIMEDOUT,4,4
	.comm	DMA_PACKET_WRITE,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_si_dma.c_si_dma_ring_test_ring.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	si_dma_ring_test_ring, %function
si_dma_ring_test_ring:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r0]
	sub	sp, sp, #16
	ldr	r3, .L18
	mov	r6, r0
	add	r1, sp, #8
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	amdgpu_device_wb_get
	subs	r4, r0, #0
	beq	.L15
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	ldr	r0, .L18+4
	ldr	r7, [sp, #8]
	ldr	r4, [r5, #4]
	ldr	r8, [r5, #8]
	bl	cpu_to_le32
	mov	r1, #4
	str	r0, [r4, r7, lsl #2]
	mov	r0, r6
	bl	amdgpu_ring_alloc
	subs	r4, r0, #0
	lsl	r7, r7, #2
	bne	.L3
	mov	r2, #1
	ldr	r3, .L18+8
	str	r2, [sp]
	mov	r1, r4
	mov	r2, r4
	ldr	r0, [r3]
	mov	r3, r4
	bl	DMA_PACKET
	add	r7, r8, r7
	mov	r1, r0
	mov	r0, r6
	bl	amdgpu_ring_write
	mov	r0, r7
	bl	lower_32_bits
	mov	r1, r0
	mov	r0, r6
	bl	amdgpu_ring_write
	mov	r0, r7
	bl	upper_32_bits
	mov	r1, r0
	mov	r0, r6
	and	r1, r1, #255
	bl	amdgpu_ring_write
	ldr	r1, .L18+12
	mov	r0, r6
	bl	amdgpu_ring_write
	mov	r0, r6
	bl	amdgpu_ring_commit
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L7
	mov	r6, r4
	ldr	r7, .L18+12
	b	.L6
.L17:
	mov	r0, #1
	bl	udelay
	ldr	r3, [r5]
	add	r6, r6, #1
	cmp	r3, r6
	bls	.L7
.L6:
	ldr	r2, [sp, #8]
	ldr	r3, [r5, #4]
	ldr	r0, [r3, r2, lsl #2]
	bl	le32_to_cpu
	cmp	r0, r7
	bne	.L17
	ldr	r3, [r5]
	cmp	r3, r6
	bls	.L7
.L3:
	mov	r0, r5
	ldr	r1, [sp, #8]
	bl	amdgpu_device_wb_free
	b	.L1
.L7:
	ldr	r3, .L18+16
	mov	r0, r5
	ldr	r4, [r3]
	ldr	r1, [sp, #8]
	rsb	r4, r4, #0
	bl	amdgpu_device_wb_free
	b	.L1
.L16:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	-889266515
	.word	DMA_PACKET_WRITE
	.word	-559038737
	.word	ETIMEDOUT
	.size	si_dma_ring_test_ring, .-si_dma_ring_test_ring
	.comm	ETIMEDOUT,4,4
	.comm	DMA_PACKET_WRITE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
