	.file	"extr_e500_tlb.c_kvmppc_e500_emul_mt_mmucsr0.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	kvmppc_e500_emul_mt_mmucsr0
	.type	kvmppc_e500_emul_mt_mmucsr0, @function
kvmppc_e500_emul_mt_mmucsr0:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	test	DWORD PTR MMUCSR0_TLB0FI[rip], esi
	je	.L2
	mov	rax, QWORD PTR [rdi]
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	jle	.L2
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, ebp
	xor	esi, esi
	mov	rdi, rbx
	add	ebp, 1
	call	kvmppc_e500_gtlbe_invalidate@PLT
	mov	rax, QWORD PTR [rbx]
	cmp	DWORD PTR [rax], ebp
	jg	.L3
.L2:
	test	DWORD PTR MMUCSR0_TLB1FI[rip], r12d
	je	.L4
	mov	rax, QWORD PTR [rbx]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jle	.L4
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edx, ebp
	mov	esi, 1
	mov	rdi, rbx
	add	ebp, 1
	call	kvmppc_e500_gtlbe_invalidate@PLT
	mov	rax, QWORD PTR [rbx]
	cmp	DWORD PTR 4[rax], ebp
	jg	.L5
.L4:
	xor	eax, eax
	call	_tlbil_all@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR EMULATE_DONE[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	kvmppc_e500_emul_mt_mmucsr0, .-kvmppc_e500_emul_mt_mmucsr0
	.comm	MMUCSR0_TLB1FI,4,4
	.comm	MMUCSR0_TLB0FI,4,4
	.comm	EMULATE_DONE,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_e500_tlb.c_kvmppc_e500_emul_mt_mmucsr0.c"
	.text
	.align	2
	.global	kvmppc_e500_emul_mt_mmucsr0
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvmppc_e500_emul_mt_mmucsr0, %function
kvmppc_e500_emul_mt_mmucsr0:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L16
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	mov	r6, r1
	tst	r1, r3
	mov	r4, r0
	beq	.L2
	ldr	r3, [r0]
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L2
	mov	r5, #0
.L3:
	mov	r2, r5
	mov	r1, #0
	mov	r0, r4
	bl	kvmppc_e500_gtlbe_invalidate
	ldr	r3, [r4]
	add	r5, r5, #1
	ldr	r3, [r3]
	cmp	r3, r5
	bgt	.L3
.L2:
	ldr	r3, .L16+4
	ldr	r3, [r3]
	tst	r6, r3
	beq	.L4
	ldr	r3, [r4]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	ble	.L4
	mov	r5, #0
.L5:
	mov	r2, r5
	mov	r1, #1
	mov	r0, r4
	bl	kvmppc_e500_gtlbe_invalidate
	ldr	r3, [r4]
	add	r5, r5, #1
	ldr	r3, [r3, #4]
	cmp	r3, r5
	bgt	.L5
.L4:
	bl	_tlbil_all
	ldr	r3, .L16+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L17:
	.align	2
.L16:
	.word	MMUCSR0_TLB0FI
	.word	MMUCSR0_TLB1FI
	.word	EMULATE_DONE
	.size	kvmppc_e500_emul_mt_mmucsr0, .-kvmppc_e500_emul_mt_mmucsr0
	.comm	MMUCSR0_TLB1FI,4,4
	.comm	MMUCSR0_TLB0FI,4,4
	.comm	EMULATE_DONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
