	.file	"extr_pmap-v4.c_pmap_l2ptp_ctor.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pmap_l2ptp_ctor, @function
pmap_l2ptp_ctor:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, DWORD PTR PAGE_MASK[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	not	ebp
	and	ebp, edi
	mov	edi, DWORD PTR kernel_pmap[rip]
	mov	esi, ebp
	call	pmap_get_l2_bucket@PLT
	mov	edi, ebp
	mov	rbx, QWORD PTR [rax]
	call	l2pte_index@PLT
	mov	edx, DWORD PTR pte_l2_s_cache_mode_pt[rip]
	lea	rdi, [rbx+rax*4]
	mov	eax, DWORD PTR L2_S_CACHE_MASK[rip]
	mov	ecx, DWORD PTR [rdi]
	mov	esi, eax
	and	esi, ecx
	cmp	esi, edx
	je	.L2
	not	eax
	and	eax, ecx
	or	eax, edx
	mov	DWORD PTR [rdi], eax
	call	PTE_SYNC@PLT
	mov	edi, ebp
	call	cpu_tlb_flushD_SE@PLT
	xor	eax, eax
	call	cpu_cpwait@PLT
.L2:
	mov	edx, DWORD PTR L2_TABLE_SIZE_REAL[rip]
	mov	rdi, r12
	xor	esi, esi
	call	memset@PLT
	movsx	rsi, DWORD PTR L2_TABLE_SIZE_REAL[rip]
	mov	rdi, r12
	shr	rsi, 2
	call	PTE_SYNC_RANGE@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	pmap_l2ptp_ctor, .-pmap_l2ptp_ctor
	.comm	pte_l2_s_cache_mode_pt,4,4
	.comm	kernel_pmap,4,4
	.comm	PAGE_MASK,4,4
	.comm	L2_TABLE_SIZE_REAL,4,4
	.comm	L2_S_CACHE_MASK,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-v4.c_pmap_l2ptp_ctor.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pmap_l2ptp_ctor, %function
pmap_l2ptp_ctor:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r2, .L5
	ldr	r3, .L5+4
	ldr	r5, [r2]
	ldr	r0, [r3]
	bic	r5, r4, r5
	mov	r1, r5
	bl	pmap_get_l2_bucket
	mov	r3, r0
	mov	r0, r5
	ldr	r6, [r3]
	bl	l2pte_index
	mov	r3, r0
	ldr	r0, .L5+8
	ldr	r1, .L5+12
	ldr	r2, [r6, r3, lsl #2]
	ldr	ip, [r0]
	ldr	r1, [r1]
	and	r0, ip, r2
	cmp	r0, r1
	add	r0, r6, r3, lsl #2
	beq	.L2
	bic	r2, r2, ip
	orr	r2, r2, r1
	str	r2, [r6, r3, lsl #2]
	bl	PTE_SYNC
	mov	r0, r5
	bl	cpu_tlb_flushD_SE
	bl	cpu_cpwait
.L2:
	ldr	r5, .L5+16
	mov	r1, #0
	ldr	r2, [r5]
	mov	r0, r4
	bl	memset
	ldr	r1, [r5]
	mov	r0, r4
	lsr	r1, r1, #2
	bl	PTE_SYNC_RANGE
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L6:
	.align	2
.L5:
	.word	PAGE_MASK
	.word	kernel_pmap
	.word	L2_S_CACHE_MASK
	.word	pte_l2_s_cache_mode_pt
	.word	L2_TABLE_SIZE_REAL
	.size	pmap_l2ptp_ctor, .-pmap_l2ptp_ctor
	.comm	pte_l2_s_cache_mode_pt,4,4
	.comm	kernel_pmap,4,4
	.comm	PAGE_MASK,4,4
	.comm	L2_TABLE_SIZE_REAL,4,4
	.comm	L2_S_CACHE_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
