	.file	"extr_gfx_v10_0.c_gfx_v10_0_init_compute_vmid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gfx_v10_0_init_compute_vmid, @function
gfx_v10_0_init_compute_vmid:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR DEFAULT_SH_MEM_BASES[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebp, eax
	sal	ebp, 16
	or	ebp, eax
	call	mutex_lock@PLT
	mov	ebx, DWORD PTR FIRST_COMPUTE_VMID[rip]
	cmp	ebx, DWORD PTR LAST_COMPUTE_VMID[rip]
	jge	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r8d, ebx
	xor	ecx, ecx
	xor	edx, edx
	xor	esi, esi
	mov	rdi, r12
	add	ebx, 1
	call	nv_grbm_select@PLT
	mov	ecx, DWORD PTR DEFAULT_SH_MEM_CONFIG[rip]
	mov	edx, DWORD PTR mmSH_MEM_CONFIG[rip]
	xor	esi, esi
	mov	edi, DWORD PTR GC[rip]
	call	WREG32_SOC15@PLT
	mov	edx, DWORD PTR mmSH_MEM_BASES[rip]
	xor	esi, esi
	mov	ecx, ebp
	mov	edi, DWORD PTR GC[rip]
	call	WREG32_SOC15@PLT
	cmp	DWORD PTR LAST_COMPUTE_VMID[rip], ebx
	jg	.L3
.L2:
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	xor	esi, esi
	mov	rdi, r12
	call	nv_grbm_select@PLT
	mov	rdi, r12
	call	mutex_unlock@PLT
	mov	ebx, DWORD PTR FIRST_COMPUTE_VMID[rip]
	cmp	ebx, DWORD PTR LAST_COMPUTE_VMID[rip]
	jge	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	lea	r12d, [rbx+rbx]
	mov	edx, DWORD PTR mmGDS_VMID0_BASE[rip]
	xor	r8d, r8d
	xor	esi, esi
	mov	edi, DWORD PTR GC[rip]
	mov	ecx, r12d
	call	WREG32_SOC15_OFFSET@PLT
	mov	edx, DWORD PTR mmGDS_VMID0_SIZE[rip]
	xor	r8d, r8d
	xor	esi, esi
	mov	edi, DWORD PTR GC[rip]
	mov	ecx, r12d
	call	WREG32_SOC15_OFFSET@PLT
	mov	edx, DWORD PTR mmGDS_GWS_VMID0[rip]
	xor	r8d, r8d
	mov	ecx, ebx
	mov	edi, DWORD PTR GC[rip]
	xor	esi, esi
	call	WREG32_SOC15_OFFSET@PLT
	mov	edx, DWORD PTR mmGDS_OA_VMID0[rip]
	xor	r8d, r8d
	mov	ecx, ebx
	mov	edi, DWORD PTR GC[rip]
	xor	esi, esi
	add	ebx, 1
	call	WREG32_SOC15_OFFSET@PLT
	cmp	DWORD PTR LAST_COMPUTE_VMID[rip], ebx
	jg	.L5
.L1:
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	gfx_v10_0_init_compute_vmid, .-gfx_v10_0_init_compute_vmid
	.comm	mmSH_MEM_CONFIG,4,4
	.comm	mmSH_MEM_BASES,4,4
	.comm	mmGDS_VMID0_SIZE,4,4
	.comm	mmGDS_VMID0_BASE,4,4
	.comm	mmGDS_OA_VMID0,4,4
	.comm	mmGDS_GWS_VMID0,4,4
	.comm	LAST_COMPUTE_VMID,4,4
	.comm	GC,4,4
	.comm	FIRST_COMPUTE_VMID,4,4
	.comm	DEFAULT_SH_MEM_CONFIG,4,4
	.comm	DEFAULT_SH_MEM_BASES,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_gfx_v10_0.c_gfx_v10_0_init_compute_vmid.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gfx_v10_0_init_compute_vmid, %function
gfx_v10_0_init_compute_vmid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L10
	sub	sp, sp, #12
	ldr	r8, [r3]
	mov	r7, r0
	ldr	r6, .L10+4
	bl	mutex_lock
	ldr	r3, .L10+8
	orr	r8, r8, r8, lsl #16
	ldr	r5, [r3]
	ldr	r3, [r6]
	cmp	r5, r3
	bge	.L2
	ldr	fp, .L10+12
	ldr	r10, .L10+16
	ldr	r4, .L10+20
	ldr	r9, .L10+24
.L3:
	mov	r3, #0
	str	r5, [sp]
	mov	r2, r3
	mov	r1, r3
	mov	r0, r7
	bl	nv_grbm_select
	mov	r1, #0
	ldr	r3, [fp]
	ldr	r2, [r10]
	ldr	r0, [r4]
	bl	WREG32_SOC15
	mov	r3, r8
	mov	r1, #0
	ldr	r2, [r9]
	ldr	r0, [r4]
	bl	WREG32_SOC15
	ldr	r3, [r6]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L3
.L2:
	mov	r4, #0
	mov	r0, r7
	mov	r3, r4
	mov	r2, r4
	mov	r1, r4
	str	r4, [sp]
	bl	nv_grbm_select
	mov	r0, r7
	bl	mutex_unlock
	ldr	r3, .L10+8
	ldr	r5, [r3]
	ldr	r3, [r6]
	cmp	r5, r3
	bge	.L1
	mov	r7, r4
	ldr	fp, .L10+28
	ldr	r4, .L10+20
	ldr	r10, .L10+32
	ldr	r9, .L10+36
.L5:
	lsl	r8, r5, #1
	str	r7, [sp]
	mov	r3, r8
	mov	r1, #0
	ldr	r2, [fp]
	ldr	r0, [r4]
	bl	WREG32_SOC15_OFFSET
	str	r7, [sp]
	mov	r3, r8
	mov	r1, #0
	ldr	r2, [r10]
	ldr	r0, [r4]
	bl	WREG32_SOC15_OFFSET
	str	r7, [sp]
	mov	r3, r5
	mov	r1, #0
	ldr	r2, [r9]
	ldr	r0, [r4]
	bl	WREG32_SOC15_OFFSET
	ldr	r2, .L10+40
	str	r7, [sp]
	mov	r3, r5
	mov	r1, #0
	ldr	r2, [r2]
	ldr	r0, [r4]
	bl	WREG32_SOC15_OFFSET
	ldr	r3, [r6]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L5
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	.align	2
.L10:
	.word	DEFAULT_SH_MEM_BASES
	.word	LAST_COMPUTE_VMID
	.word	FIRST_COMPUTE_VMID
	.word	DEFAULT_SH_MEM_CONFIG
	.word	mmSH_MEM_CONFIG
	.word	GC
	.word	mmSH_MEM_BASES
	.word	mmGDS_VMID0_BASE
	.word	mmGDS_VMID0_SIZE
	.word	mmGDS_GWS_VMID0
	.word	mmGDS_OA_VMID0
	.size	gfx_v10_0_init_compute_vmid, .-gfx_v10_0_init_compute_vmid
	.comm	mmSH_MEM_CONFIG,4,4
	.comm	mmSH_MEM_BASES,4,4
	.comm	mmGDS_VMID0_SIZE,4,4
	.comm	mmGDS_VMID0_BASE,4,4
	.comm	mmGDS_OA_VMID0,4,4
	.comm	mmGDS_GWS_VMID0,4,4
	.comm	LAST_COMPUTE_VMID,4,4
	.comm	GC,4,4
	.comm	FIRST_COMPUTE_VMID,4,4
	.comm	DEFAULT_SH_MEM_CONFIG,4,4
	.comm	DEFAULT_SH_MEM_BASES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
