	.file	"extr_grumain.c_gru_reset_asid_limit.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"gid %d, asid 0x%x\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"gid %d, gts %p, gms %p, inuse 0x%x, cxt %d\n"
	.align 8
.LC2:
	.string	"gid %d, new asid 0x%x, new_limit 0x%x\n"
	.text
	.p2align 4
	.type	gru_reset_asid_limit, @function
gru_reset_asid_limit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	ecx, esi
	xor	eax, eax
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	lea	rsi, .LC0[rip]
	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	edx, DWORD PTR [rdi]
	mov	edi, DWORD PTR grudev[rip]
	call	gru_dbg@PLT
	mov	edi, DWORD PTR asid_next[rip]
	call	STAT@PLT
	mov	r13d, DWORD PTR MAX_ASID[rip]
	cmp	r12d, r13d
	jge	.L20
.L2:
	mov	rdi, r14
	lea	r15, .LC1[rip]
	call	gru_flush_all_tlb@PLT
	movsx	rax, DWORD PTR [r14]
	sal	rax, 2
	mov	QWORD PTR 8[rsp], rax
.L3:
	mov	ecx, DWORD PTR GRU_NUM_CCH[rip]
	test	ecx, ecx
	jle	.L4
	xor	ebx, ebx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	cmp	r12d, ebp
	jge	.L5
	cmp	ebp, r13d
	cmovl	r13d, ebp
.L5:
	add	rbx, 1
	cmp	DWORD PTR GRU_NUM_CCH[rip], ebx
	jle	.L4
.L9:
	mov	rax, QWORD PTR 16[r14]
	lea	rbp, 0[0+rbx*8]
	mov	rdi, QWORD PTR [rax+rbx*8]
	test	rdi, rdi
	je	.L5
	call	is_kernel_context@PLT
	test	rax, rax
	jne	.L5
	mov	rax, QWORD PTR 16[r14]
	mov	rdx, QWORD PTR 8[rsp]
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	rsi, r15
	mov	edi, DWORD PTR grudev[rip]
	mov	rcx, QWORD PTR [rax+rbp]
	mov	r8, QWORD PTR [rcx]
	mov	rax, QWORD PTR [r8]
	mov	ebp, DWORD PTR [rax+rdx]
	mov	edx, DWORD PTR [r14]
	push	rbx
	.cfi_def_cfa_offset 96
	xor	eax, eax
	mov	r9d, ebp
	call	gru_dbg@PLT
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	cmp	ebp, r12d
	jne	.L6
	add	r12d, DWORD PTR ASID_INC[rip]
	cmp	r12d, r13d
	jl	.L6
	mov	r13d, DWORD PTR MAX_ASID[rip]
	cmp	r12d, r13d
	jl	.L3
	mov	rdi, r14
	call	gru_wrap_asid@PLT
	mov	r12d, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	DWORD PTR 4[r14], r13d
	mov	edx, DWORD PTR [r14]
	mov	r8d, r13d
	mov	ecx, r12d
	mov	DWORD PTR 8[r14], r12d
	mov	edi, DWORD PTR grudev[rip]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	gru_dbg@PLT
	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
.L20:
	.cfi_restore_state
	mov	rdi, r14
	call	gru_wrap_asid@PLT
	mov	r12d, eax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	gru_reset_asid_limit, .-gru_reset_asid_limit
	.comm	grudev,4,4
	.comm	asid_next,4,4
	.comm	MAX_ASID,4,4
	.comm	GRU_NUM_CCH,4,4
	.comm	ASID_INC,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_grumain.c_gru_reset_asid_limit.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"gid %d, asid 0x%x\012\000"
	.align	2
.LC1:
	.ascii	"gid %d, gts %p, gms %p, inuse 0x%x, cxt %d\012\000"
	.align	2
.LC2:
	.ascii	"gid %d, new asid 0x%x, new_limit 0x%x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gru_reset_asid_limit, %function
gru_reset_asid_limit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r1
	ldr	r10, .L18
	mov	r3, r1
	ldr	r2, [r0]
	ldr	r1, .L18+4
	sub	sp, sp, #28
	mov	r5, r0
	ldr	r0, [r10]
	bl	gru_dbg
	ldr	r3, .L18+8
	ldr	r0, [r3]
	bl	STAT
	ldr	r3, .L18+12
	ldr	r8, [r3]
	cmp	r7, r8
	bge	.L17
.L2:
	mov	r0, r5
	bl	gru_flush_all_tlb
	ldr	r3, [r5]
	ldr	r9, .L18+16
	lsl	r3, r3, #2
	ldr	fp, .L18+20
	str	r3, [sp, #20]
.L3:
	ldr	r3, [r9]
	cmp	r3, #0
	ble	.L4
	mov	r4, #0
	b	.L8
.L6:
	cmp	r7, r6
	cmplt	r6, r8
	movlt	r8, r6
.L5:
	ldr	r3, [r9]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L4
.L8:
	ldr	r3, [r5, #12]
	lsl	r6, r4, #2
	ldr	r0, [r3, r4, lsl #2]
	cmp	r0, #0
	beq	.L5
	bl	is_kernel_context
	cmp	r0, #0
	bne	.L5
	ldr	r3, [r5, #12]
	ldr	r2, [r5]
	ldr	r3, [r3, r6]
	ldr	r6, [sp, #20]
	ldr	ip, [r3]
	mov	r1, fp
	ldr	lr, [ip]
	ldr	r0, [r10]
	ldr	r6, [lr, r6]
	str	ip, [sp]
	str	r6, [sp, #4]
	str	r4, [sp, #8]
	bl	gru_dbg
	cmp	r6, r7
	bne	.L6
	ldr	r3, .L18+24
	ldr	r3, [r3]
	add	r7, r7, r3
	cmp	r7, r8
	blt	.L6
	ldr	r3, .L18+12
	ldr	r8, [r3]
	cmp	r7, r8
	blt	.L3
	mov	r0, r5
	bl	gru_wrap_asid
	mov	r7, r0
	b	.L3
.L4:
	str	r8, [r5, #4]
	str	r7, [r5, #8]
	str	r8, [sp]
	mov	r3, r7
	ldr	r2, [r5]
	ldr	r0, [r10]
	ldr	r1, .L18+28
	bl	gru_dbg
	mov	r0, r7
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	mov	r0, r5
	bl	gru_wrap_asid
	mov	r7, r0
	b	.L2
.L19:
	.align	2
.L18:
	.word	grudev
	.word	.LC0
	.word	asid_next
	.word	MAX_ASID
	.word	GRU_NUM_CCH
	.word	.LC1
	.word	ASID_INC
	.word	.LC2
	.size	gru_reset_asid_limit, .-gru_reset_asid_limit
	.comm	grudev,4,4
	.comm	asid_next,4,4
	.comm	MAX_ASID,4,4
	.comm	GRU_NUM_CCH,4,4
	.comm	ASID_INC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
