	.file	"extr_e500_tlb.c_kvmppc_e500_deliver_tlb_miss.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	kvmppc_e500_deliver_tlb_miss, @function
kvmppc_e500_deliver_tlb_miss:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 4[rsp], edx
	call	to_e500@PLT
	mov	r12, rax
	mov	eax, DWORD PTR [rax]
	mov	r15d, eax
	sar	r15d, 28
	and	r15d, 1
	je	.L13
	xor	r9d, r9d
.L2:
	mov	ebp, eax
	sar	eax, 7
	mov	edi, r15d
	mov	DWORD PTR 12[rsp], r9d
	and	eax, 31
	movsx	r15, r15d
	sar	ebp, 16
	mov	DWORD PTR 8[rsp], eax
	and	ebp, 15
	call	MAS0_TLBSEL@PLT
	mov	r9d, DWORD PTR 12[rsp]
	mov	r14d, eax
	mov	edi, r9d
	call	MAS0_ESEL@PLT
	or	r14d, eax
	mov	rax, QWORD PTR 40[r12]
	mov	edi, DWORD PTR [rax+r15*4]
	call	MAS0_NV@PLT
	mov	r15d, DWORD PTR MAS1_VALID[rip]
	or	r14d, eax
	mov	eax, DWORD PTR 4[rsp]
	mov	DWORD PTR 4[r12], r14d
	mov	r14d, 0
	test	eax, eax
	mov	rax, QWORD PTR 32[r12]
	cmovne	r14d, DWORD PTR MAS1_TS[rip]
	mov	edi, DWORD PTR [rax+rbp*4]
	call	MAS1_TID@PLT
	mov	r8d, DWORD PTR 8[rsp]
	or	r14d, eax
	mov	edi, r8d
	or	r15d, r14d
	call	MAS1_TSIZE@PLT
	and	ebx, DWORD PTR MAS2_EPN[rip]
	mov	rdi, r13
	or	r15d, eax
	mov	eax, DWORD PTR [r12]
	and	eax, DWORD PTR MAS2_ATTRIB_MASK[rip]
	or	ebx, eax
	mov	eax, DWORD PTR MAS3_U0[rip]
	or	eax, DWORD PTR MAS3_U1[rip]
	mov	DWORD PTR 8[r12], r15d
	or	eax, DWORD PTR MAS3_U2[rip]
	or	eax, DWORD PTR MAS3_U3[rip]
	mov	DWORD PTR 12[r12], ebx
	and	DWORD PTR 16[r12], eax
	mov	ebx, DWORD PTR MAS6_SPID1[rip]
	mov	eax, DWORD PTR 20[r12]
	and	ebx, eax
	call	get_cur_pid@PLT
	mov	edx, DWORD PTR 4[rsp]
	sal	eax, 16
	or	eax, ebx
	test	edx, edx
	je	.L4
	or	eax, DWORD PTR MAS6_SAS[rip]
.L4:
	mov	DWORD PTR 20[r12], eax
	mov	QWORD PTR 24[r12], 0
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L13:
	.cfi_restore_state
	mov	rdi, r12
	call	tlb0_get_next_victim@PLT
	mov	r9d, eax
	mov	eax, DWORD PTR [r12]
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	kvmppc_e500_deliver_tlb_miss, .-kvmppc_e500_deliver_tlb_miss
	.comm	MAS6_SPID1,4,4
	.comm	MAS6_SAS,4,4
	.comm	MAS3_U3,4,4
	.comm	MAS3_U2,4,4
	.comm	MAS3_U1,4,4
	.comm	MAS3_U0,4,4
	.comm	MAS2_EPN,4,4
	.comm	MAS2_ATTRIB_MASK,4,4
	.comm	MAS1_VALID,4,4
	.comm	MAS1_TS,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_deliver_tlb_miss.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvmppc_e500_deliver_tlb_miss, %function
kvmppc_e500_deliver_tlb_miss:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r7, r1
	mov	r8, r2
	mov	r9, r0
	bl	to_e500
	ldr	r5, [r0]
	mov	r4, r0
	asr	r10, r5, #28
	ands	r10, r10, #1
	movne	r3, #0
	beq	.L12
.L2:
	mov	r0, r10
	str	r3, [sp, #4]
	bl	MAS0_TLBSEL
	ldr	r3, [sp, #4]
	mov	r6, r0
	mov	r0, r3
	bl	MAS0_ESEL
	ldr	r3, [r4, #32]
	orr	r6, r6, r0
	ldr	r0, [r3, r10, lsl #2]
	bl	MAS0_NV
	cmp	r8, #0
	ldrne	r3, .L13
	ldr	r2, [r4, #28]
	orr	r6, r6, r0
	asr	fp, r5, #16
	ldrne	r10, [r3]
	str	r6, [r4, #4]
	ldr	r3, .L13+4
	and	fp, fp, #15
	ldr	r0, [r2, fp, lsl #2]
	moveq	r10, r8
	ldr	r6, [r3]
	bl	MAS1_TID
	mov	r3, r0
	asr	r5, r5, #7
	and	r5, r5, #31
	mov	r0, r5
	orr	r5, r3, r10
	bl	MAS1_TSIZE
	ldr	r3, .L13+8
	ldr	r1, .L13+12
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r2, .L13+16
	orr	r3, r3, r1
	ldr	r2, [r2]
	ldr	r1, .L13+20
	orr	r3, r3, r2
	ldr	r1, [r1]
	ldr	r2, .L13+24
	ldr	ip, .L13+28
	orr	r3, r3, r1
	ldr	ip, [ip]
	ldr	r1, [r2]
	ldr	r2, [r4]
	orr	r5, r5, r6
	and	r1, r1, r7
	orr	r5, r5, r0
	and	r7, r2, ip
	ldr	r0, .L13+32
	ldr	r2, [r4, #16]
	orr	r7, r7, r1
	and	r3, r3, r2
	ldr	r1, [r0]
	ldr	r2, [r4, #20]
	str	r3, [r4, #16]
	str	r5, [r4, #8]
	mov	r0, r9
	str	r7, [r4, #12]
	and	r5, r2, r1
	bl	get_cur_pid
	cmp	r8, #0
	ldrne	r3, .L13+36
	orr	r0, r5, r0, lsl #16
	ldrne	r3, [r3]
	orrne	r0, r0, r3
	mov	r3, #0
	str	r0, [r4, #20]
	str	r3, [r4, #24]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	bl	tlb0_get_next_victim
	ldr	r5, [r4]
	mov	r3, r0
	b	.L2
.L14:
	.align	2
.L13:
	.word	MAS1_TS
	.word	MAS1_VALID
	.word	MAS3_U0
	.word	MAS3_U1
	.word	MAS3_U2
	.word	MAS3_U3
	.word	MAS2_EPN
	.word	MAS2_ATTRIB_MASK
	.word	MAS6_SPID1
	.word	MAS6_SAS
	.size	kvmppc_e500_deliver_tlb_miss, .-kvmppc_e500_deliver_tlb_miss
	.comm	MAS6_SPID1,4,4
	.comm	MAS6_SAS,4,4
	.comm	MAS3_U3,4,4
	.comm	MAS3_U2,4,4
	.comm	MAS3_U1,4,4
	.comm	MAS3_U0,4,4
	.comm	MAS2_EPN,4,4
	.comm	MAS2_ATTRIB_MASK,4,4
	.comm	MAS1_VALID,4,4
	.comm	MAS1_TS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
