	.file	"extr_pmap.c_pmap_init_trm.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"machdep.trm_guard"
.LC1:
	.string	"i386trampoline"
	.text
	.p2align 4
	.globl	pmap_init_trm
	.type	pmap_init_trm, @function
pmap_init_trm:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rsi, trm_guard[rip]
	lea	rdi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	TUNABLE_INT_FETCH@PLT
	mov	eax, DWORD PTR trm_guard[rip]
	test	DWORD PTR PAGE_MASK[rip], eax
	je	.L2
	mov	DWORD PTR trm_guard[rip], 0
.L2:
	mov	r9d, DWORD PTR M_WAITOK[rip]
	xor	r8d, r8d
	xor	edx, edx
	xor	esi, esi
	mov	ecx, 1
	lea	rdi, .LC1[rip]
	call	vmem_create@PLT
	mov	r8d, DWORD PTR PAGE_SIZE[rip]
	xor	ecx, ecx
	xor	edx, edx
	mov	esi, DWORD PTR pmap_trm_import[rip]
	mov	edi, eax
	mov	DWORD PTR pmap_trm_arena[rip], eax
	call	vmem_set_import@PLT
	mov	edx, DWORD PTR VM_ALLOC_NOOBJ[rip]
	xor	esi, esi
	xor	edi, edi
	or	edx, DWORD PTR VM_ALLOC_NOBUSY[rip]
	or	edx, DWORD PTR VM_ALLOC_NORMAL[rip]
	or	edx, DWORD PTR VM_ALLOC_WIRED[rip]
	or	edx, DWORD PTR VM_ALLOC_WAITOK[rip]
	or	edx, DWORD PTR VM_ALLOC_ZERO[rip]
	call	vm_page_alloc@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR PG_ZERO[rip], eax
	je	.L9
.L3:
	mov	rdi, rbp
	call	VM_PAGE_TO_PHYS@PLT
	mov	edx, DWORD PTR TRUE[rip]
	mov	esi, DWORD PTR VM_MEMATTR_DEFAULT[rip]
	mov	edi, DWORD PTR kernel_pmap[rip]
	mov	ebx, DWORD PTR PG_M[rip]
	or	ebx, DWORD PTR PG_A[rip]
	or	ebx, DWORD PTR PG_RW[rip]
	or	ebx, DWORD PTR PG_V[rip]
	or	ebx, eax
	call	pmap_cache_bits@PLT
	mov	rdx, QWORD PTR TRPTDI[rip]
	or	ebx, eax
	mov	rax, QWORD PTR PTD[rip]
	mov	DWORD PTR [rax+rdx*4], ebx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, rbp
	call	pmap_zero_page@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	pmap_init_trm, .-pmap_init_trm
	.comm	trm_guard,4,4
	.comm	pmap_trm_import,4,4
	.comm	pmap_trm_arena,4,4
	.comm	kernel_pmap,4,4
	.comm	VM_MEMATTR_DEFAULT,4,4
	.comm	VM_ALLOC_ZERO,4,4
	.comm	VM_ALLOC_WIRED,4,4
	.comm	VM_ALLOC_WAITOK,4,4
	.comm	VM_ALLOC_NORMAL,4,4
	.comm	VM_ALLOC_NOOBJ,4,4
	.comm	VM_ALLOC_NOBUSY,4,4
	.comm	TRUE,4,4
	.comm	TRPTDI,8,8
	.comm	PTD,8,8
	.comm	PG_ZERO,4,4
	.comm	PG_V,4,4
	.comm	PG_RW,4,4
	.comm	PG_M,4,4
	.comm	PG_A,4,4
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_MASK,4,4
	.comm	M_WAITOK,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_init_trm.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"machdep.trm_guard\000"
	.align	2
.LC1:
	.ascii	"i386trampoline\000"
	.text
	.align	2
	.global	pmap_init_trm
	.syntax unified
	.arm
	.fpu softvfp
	.type	pmap_init_trm, %function
pmap_init_trm:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r4, .L10
	sub	sp, sp, #8
	mov	r1, r4
	ldr	r0, .L10+4
	bl	TUNABLE_INT_FETCH
	ldr	r3, .L10+8
	ldr	r2, [r4]
	ldr	r3, [r3]
	ldr	r0, .L10+12
	tst	r2, r3
	movne	r3, #0
	strne	r3, [r4]
	mov	r4, #0
	ldr	r3, .L10+16
	str	r4, [sp]
	ldr	r3, [r3]
	mov	r2, r4
	mov	r1, r4
	str	r3, [sp, #4]
	mov	r3, #1
	bl	vmem_create
	ldr	r3, .L10+20
	ldr	ip, .L10+24
	ldr	r3, [r3]
	ldr	r1, .L10+28
	str	r3, [sp]
	mov	r2, r4
	mov	r3, r4
	ldr	r1, [r1]
	str	r0, [ip]
	bl	vmem_set_import
	ldr	r2, .L10+32
	ldr	r3, .L10+36
	ldr	r1, .L10+40
	ldr	r0, [r2]
	ldr	r3, [r3]
	ldr	r2, .L10+44
	ldr	ip, [r1]
	ldr	r1, .L10+48
	ldr	r2, [r2]
	orr	r3, r3, r0
	ldr	r0, .L10+52
	ldr	r1, [r1]
	orr	r3, r3, ip
	orr	r3, r3, r2
	ldr	r2, [r0]
	orr	r3, r3, r1
	orr	r2, r3, r2
	mov	r1, r4
	mov	r0, r4
	bl	vm_page_alloc
	ldr	r3, .L10+56
	ldr	r2, [r0]
	ldr	r3, [r3]
	mov	r4, r0
	tst	r2, r3
	beq	.L9
.L3:
	mov	r0, r4
	bl	VM_PAGE_TO_PHYS
	mov	r3, r0
	ldr	r1, .L10+60
	ldr	r2, .L10+64
	ldr	r0, .L10+68
	ldr	r4, [r1]
	ldr	r1, [r2]
	ldr	r0, [r0]
	ldr	r2, .L10+72
	orr	r4, r4, r1
	ldr	ip, [r2]
	orr	r4, r4, r0
	ldr	r2, .L10+76
	ldr	r1, .L10+80
	ldr	r0, .L10+84
	orr	r4, r4, ip
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, [r0]
	orr	r4, r4, r3
	bl	pmap_cache_bits
	ldr	r2, .L10+88
	ldr	r3, .L10+92
	ldr	r2, [r2]
	ldr	r3, [r3]
	orr	r4, r4, r0
	str	r4, [r3, r2, lsl #2]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L9:
	bl	pmap_zero_page
	b	.L3
.L11:
	.align	2
.L10:
	.word	trm_guard
	.word	.LC0
	.word	PAGE_MASK
	.word	.LC1
	.word	M_WAITOK
	.word	PAGE_SIZE
	.word	pmap_trm_arena
	.word	pmap_trm_import
	.word	VM_ALLOC_NOBUSY
	.word	VM_ALLOC_NOOBJ
	.word	VM_ALLOC_NORMAL
	.word	VM_ALLOC_WIRED
	.word	VM_ALLOC_WAITOK
	.word	VM_ALLOC_ZERO
	.word	PG_ZERO
	.word	PG_M
	.word	PG_A
	.word	PG_RW
	.word	PG_V
	.word	TRUE
	.word	VM_MEMATTR_DEFAULT
	.word	kernel_pmap
	.word	TRPTDI
	.word	PTD
	.size	pmap_init_trm, .-pmap_init_trm
	.comm	trm_guard,4,4
	.comm	pmap_trm_import,4,4
	.comm	pmap_trm_arena,4,4
	.comm	kernel_pmap,4,4
	.comm	VM_MEMATTR_DEFAULT,4,4
	.comm	VM_ALLOC_ZERO,4,4
	.comm	VM_ALLOC_WIRED,4,4
	.comm	VM_ALLOC_WAITOK,4,4
	.comm	VM_ALLOC_NORMAL,4,4
	.comm	VM_ALLOC_NOOBJ,4,4
	.comm	VM_ALLOC_NOBUSY,4,4
	.comm	TRUE,4,4
	.comm	TRPTDI,4,4
	.comm	PTD,4,4
	.comm	PG_ZERO,4,4
	.comm	PG_V,4,4
	.comm	PG_RW,4,4
	.comm	PG_M,4,4
	.comm	PG_A,4,4
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_MASK,4,4
	.comm	M_WAITOK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
