	.file	"extr_pmap.c_pmap_map_tsb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	pmap_map_tsb
	.type	pmap_map_tsb, @function
pmap_map_tsb:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR tsb_kernel_size[rip]
	test	eax, eax
	jle	.L6
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r13, QWORD PTR tsb_kernel[rip]
	movsx	rdi, ebp
	mov	ebx, DWORD PTR TD_V[rip]
	or	ebx, DWORD PTR TD_4M[rip]
	add	r13, rdi
	add	rdi, QWORD PTR tsb_kernel_phys[rip]
	call	TD_PA@PLT
	mov	r12d, DWORD PTR TD_CP[rip]
	or	ebx, DWORD PTR TD_L[rip]
	mov	rdi, r13
	or	r12d, ebx
	or	r12d, DWORD PTR TD_CV[rip]
	or	r12d, DWORD PTR TD_P[rip]
	or	r12d, DWORD PTR TD_W[rip]
	or	r12d, eax
	call	TLB_TAR_VA@PLT
	mov	edi, DWORD PTR TLB_CTX_KERNEL[rip]
	mov	ebx, eax
	call	TLB_TAR_CTX@PLT
	mov	esi, DWORD PTR ASI_DMMU[rip]
	mov	edi, DWORD PTR AA_DMMU_TAR[rip]
	mov	edx, ebx
	or	edx, eax
	call	stxa@PLT
	mov	esi, DWORD PTR ASI_DTLB_DATA_IN_REG[rip]
	xor	edi, edi
	mov	edx, r12d
	call	stxa_sync@PLT
	add	ebp, DWORD PTR PAGE_SIZE_4M[rip]
	cmp	DWORD PTR tsb_kernel_size[rip], ebp
	jg	.L3
	add	rsp, 8
	.cfi_def_cfa_offset 40
	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
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.cfi_endproc
.LFE0:
	.size	pmap_map_tsb, .-pmap_map_tsb
	.comm	tsb_kernel_size,4,4
	.comm	tsb_kernel_phys,8,8
	.comm	tsb_kernel,8,8
	.comm	TLB_CTX_KERNEL,4,4
	.comm	TD_W,4,4
	.comm	TD_V,4,4
	.comm	TD_P,4,4
	.comm	TD_L,4,4
	.comm	TD_CV,4,4
	.comm	TD_CP,4,4
	.comm	TD_4M,4,4
	.comm	PAGE_SIZE_4M,8,8
	.comm	ASI_DTLB_DATA_IN_REG,4,4
	.comm	ASI_DMMU,4,4
	.comm	AA_DMMU_TAR,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_pmap.c_pmap_map_tsb.c"
	.text
	.align	2
	.global	pmap_map_tsb
	.syntax unified
	.arm
	.fpu softvfp
	.type	pmap_map_tsb, %function
pmap_map_tsb:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, .L7
	sub	sp, sp, #12
	ldr	r3, [r7]
	cmp	r3, #0
	ble	.L1
	mov	r5, #0
	ldr	r3, .L7+4
	ldr	fp, .L7+8
	ldr	r10, .L7+12
	ldr	r9, .L7+16
	ldr	r8, .L7+20
.L3:
	ldr	r2, [r3]
	ldr	r0, [r9]
	ldr	r1, [r10]
	ldr	r6, [fp]
	add	r2, r5, r2
	add	r0, r5, r0
	orr	r6, r6, r1
	str	r2, [sp]
	bl	TD_PA
	mov	r1, r0
	ldr	r3, .L7+24
	ldr	r2, [sp]
	ldr	r4, [r3]
	ldr	r3, .L7+28
	orr	r4, r6, r4
	ldr	r0, [r3]
	ldr	r3, .L7+32
	orr	r4, r4, r0
	ldr	ip, [r3]
	ldr	r3, .L7+36
	orr	r4, r4, ip
	ldr	r0, [r3]
	ldr	r3, .L7+40
	orr	r4, r4, r0
	ldr	ip, [r3]
	ldr	r3, .L7+44
	orr	r4, r4, ip
	ldr	r6, [r3]
	ldr	r3, .L7+48
	orr	r4, r4, r1
	ldr	r1, [r3]
	mov	r0, r2
	str	r1, [sp, #4]
	bl	TLB_TAR_VA
	mov	r2, r0
	ldr	r3, .L7+52
	str	r2, [sp]
	ldr	r0, [r3]
	bl	TLB_TAR_CTX
	ldr	r2, [sp]
	ldr	r1, [sp, #4]
	orr	r2, r2, r0
	mov	r0, r6
	bl	stxa
	ldr	r3, .L7+56
	mov	r2, r4
	ldr	r1, [r3]
	mov	r0, #0
	bl	stxa_sync
	ldr	r1, [r8]
	ldr	r2, [r7]
	add	r5, r5, r1
	cmp	r2, r5
	ldr	r3, .L7+4
	bgt	.L3
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	.align	2
.L7:
	.word	tsb_kernel_size
	.word	tsb_kernel
	.word	TD_V
	.word	TD_4M
	.word	tsb_kernel_phys
	.word	PAGE_SIZE_4M
	.word	TD_L
	.word	TD_CP
	.word	TD_CV
	.word	TD_P
	.word	TD_W
	.word	AA_DMMU_TAR
	.word	ASI_DMMU
	.word	TLB_CTX_KERNEL
	.word	ASI_DTLB_DATA_IN_REG
	.size	pmap_map_tsb, .-pmap_map_tsb
	.comm	tsb_kernel_size,4,4
	.comm	tsb_kernel_phys,4,4
	.comm	tsb_kernel,4,4
	.comm	TLB_CTX_KERNEL,4,4
	.comm	TD_W,4,4
	.comm	TD_V,4,4
	.comm	TD_P,4,4
	.comm	TD_L,4,4
	.comm	TD_CV,4,4
	.comm	TD_CP,4,4
	.comm	TD_4M,4,4
	.comm	PAGE_SIZE_4M,4,4
	.comm	ASI_DTLB_DATA_IN_REG,4,4
	.comm	ASI_DMMU,4,4
	.comm	AA_DMMU_TAR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
