	.file	"extr_cik_sdma.c_cik_sdma_set_wptr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cik_sdma_set_wptr
	.type	cik_sdma_set_wptr, @function
cik_sdma_set_wptr:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR SDMA0_GFX_RB_WPTR[rip]
	mov	rdx, QWORD PTR R600_RING_TYPE_DMA_INDEX[rip]
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, QWORD PTR SDMA1_REGISTER_OFFSET[rip]
	add	rbp, rax
	cmp	QWORD PTR [rsi], rdx
	jne	.L3
	add	rax, QWORD PTR SDMA0_REGISTER_OFFSET[rip]
	mov	rbp, rax
.L3:
	mov	esi, DWORD PTR 8[rsi]
	mov	rdi, rbp
	sal	esi, 2
	and	esi, 262140
	call	WREG32@PLT
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	RREG32@PLT
	.cfi_endproc
.LFE0:
	.size	cik_sdma_set_wptr, .-cik_sdma_set_wptr
	.comm	SDMA1_REGISTER_OFFSET,8,8
	.comm	SDMA0_REGISTER_OFFSET,8,8
	.comm	SDMA0_GFX_RB_WPTR,8,8
	.comm	R600_RING_TYPE_DMA_INDEX,8,8
	.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_cik_sdma.c_cik_sdma_set_wptr.c"
	.text
	.align	2
	.global	cik_sdma_set_wptr
	.syntax unified
	.arm
	.fpu softvfp
	.type	cik_sdma_set_wptr, %function
cik_sdma_set_wptr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L6
	ldr	r0, [r1]
	ldr	r2, [r3]
	ldr	r3, .L6+4
	cmp	r0, r2
	push	{r4, lr}
	ldr	r4, [r3]
	ldreq	r3, .L6+8
	ldrne	r3, .L6+12
	ldr	r1, [r1, #4]
	ldr	r3, [r3]
	add	r4, r4, r3
	ldr	r3, .L6+16
	mov	r0, r4
	and	r1, r3, r1, lsl #2
	bl	WREG32
	mov	r0, r4
	pop	{r4, lr}
	b	RREG32
.L7:
	.align	2
.L6:
	.word	R600_RING_TYPE_DMA_INDEX
	.word	SDMA0_GFX_RB_WPTR
	.word	SDMA0_REGISTER_OFFSET
	.word	SDMA1_REGISTER_OFFSET
	.word	262140
	.size	cik_sdma_set_wptr, .-cik_sdma_set_wptr
	.comm	SDMA1_REGISTER_OFFSET,4,4
	.comm	SDMA0_REGISTER_OFFSET,4,4
	.comm	SDMA0_GFX_RB_WPTR,4,4
	.comm	R600_RING_TYPE_DMA_INDEX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
