	.file	"extr_e500_tlb.c_write_host_tlbe.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	write_host_tlbe, @function
write_host_tlbe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movsx	rcx, esi
	movsx	rdx, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rcx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR [rdi]
	mov	rax, QWORD PTR [rax+rcx*8]
	lea	r13, [rax+rdx*4]
	xor	eax, eax
	call	local_irq_disable@PLT
	test	ebx, ebx
	jne	.L2
	mov	rdi, r13
	call	__write_host_tlbe@PLT
.L3:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	local_irq_enable@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR SPRN_MAS0[rip]
	call	mfspr@PLT
	mov	edi, 1
	mov	r12d, eax
	call	MAS0_TLBSEL@PLT
	mov	edi, ebp
	mov	ebx, eax
	call	to_htlb1_esel@PLT
	mov	edi, eax
	call	MAS0_ESEL@PLT
	mov	edi, DWORD PTR SPRN_MAS0[rip]
	or	ebx, eax
	mov	esi, ebx
	call	mtspr@PLT
	mov	rdi, r13
	call	__write_host_tlbe@PLT
	mov	edi, DWORD PTR SPRN_MAS0[rip]
	mov	esi, r12d
	call	mtspr@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	write_host_tlbe, .-write_host_tlbe
	.comm	SPRN_MAS0,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_write_host_tlbe.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_host_tlbe, %function
write_host_tlbe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r3, [r0]
	mov	r5, r2
	ldr	r6, [r3, r1, lsl #2]
	add	r6, r6, r2, lsl #2
	bl	local_irq_disable
	cmp	r4, #0
	bne	.L2
	mov	r0, r6
	bl	__write_host_tlbe
	pop	{r4, r5, r6, r7, r8, lr}
	b	local_irq_enable
.L2:
	ldr	r4, .L6
	ldr	r0, [r4]
	bl	mfspr
	mov	r7, r0
	mov	r0, #1
	ldr	r8, [r4]
	bl	MAS0_TLBSEL
	mov	r1, r0
	mov	r0, r5
	mov	r5, r1
	bl	to_htlb1_esel
	bl	MAS0_ESEL
	mov	r1, r0
	mov	r0, r8
	orr	r1, r5, r1
	bl	mtspr
	mov	r0, r6
	bl	__write_host_tlbe
	mov	r1, r7
	ldr	r0, [r4]
	bl	mtspr
	pop	{r4, r5, r6, r7, r8, lr}
	b	local_irq_enable
.L7:
	.align	2
.L6:
	.word	SPRN_MAS0
	.size	write_host_tlbe, .-write_host_tlbe
	.comm	SPRN_MAS0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
