	.file	"extr_amdgpu_amdkfd_gfx_v8.c_kgd_hqd_sdma_is_occupied.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	kgd_hqd_sdma_is_occupied, @function
kgd_hqd_sdma_is_occupied:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	call	get_amdgpu_device@PLT
	mov	rdi, rbp
	call	get_sdma_mqd@PLT
	mov	rdi, rax
	call	get_sdma_base_addr@PLT
	add	eax, DWORD PTR mmSDMA0_RLC0_RB_CNTL[rip]
	mov	edi, eax
	call	RREG32@PLT
	test	DWORD PTR SDMA0_RLC0_RB_CNTL__RB_ENABLE_MASK[rip], eax
	pop	rbp
	.cfi_def_cfa_offset 8
	setne	al
	movzx	eax, al
	ret
	.cfi_endproc
.LFE0:
	.size	kgd_hqd_sdma_is_occupied, .-kgd_hqd_sdma_is_occupied
	.comm	mmSDMA0_RLC0_RB_CNTL,4,4
	.comm	SDMA0_RLC0_RB_CNTL__RB_ENABLE_MASK,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_amdgpu_amdkfd_gfx_v8.c_kgd_hqd_sdma_is_occupied.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kgd_hqd_sdma_is_occupied, %function
kgd_hqd_sdma_is_occupied:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r1
	bl	get_amdgpu_device
	mov	r0, r4
	bl	get_sdma_mqd
	bl	get_sdma_base_addr
	ldr	r3, .L4
	ldr	r3, [r3]
	add	r0, r0, r3
	bl	RREG32
	ldr	r3, .L4+4
	ldr	r3, [r3]
	tst	r0, r3
	movne	r0, #1
	moveq	r0, #0
	pop	{r4, pc}
.L5:
	.align	2
.L4:
	.word	mmSDMA0_RLC0_RB_CNTL
	.word	SDMA0_RLC0_RB_CNTL__RB_ENABLE_MASK
	.size	kgd_hqd_sdma_is_occupied, .-kgd_hqd_sdma_is_occupied
	.comm	mmSDMA0_RLC0_RB_CNTL,4,4
	.comm	SDMA0_RLC0_RB_CNTL__RB_ENABLE_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
