	.file	"extr_vm86_32.c_mark_screen_rdonly.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mark_screen_rdonly, @function
mark_screen_rdonly:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	down_write@PLT
	mov	rdi, r12
	mov	esi, 655360
	call	pgd_offset@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	pgd_none_or_clear_bad@PLT
	test	rax, rax
	je	.L18
.L3:
	mov	rdi, r12
	call	up_write@PLT
	xor	r8d, r8d
	mov	esi, 655360
	mov	rdi, r12
	mov	eax, DWORD PTR PAGE_SIZE[rip]
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	lea	edx, 20480[rax]
	sal	edx, 5
	call	flush_tlb_mm_range@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	rdi, rbp
	mov	esi, 655360
	call	p4d_offset@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	p4d_none_or_clear_bad@PLT
	test	rax, rax
	jne	.L3
	mov	rdi, rbp
	mov	esi, 655360
	call	pud_offset@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	pud_none_or_clear_bad@PLT
	test	rax, rax
	jne	.L3
	mov	rdi, rbp
	mov	esi, 655360
	call	pmd_offset@PLT
	mov	edi, DWORD PTR [rax]
	mov	rbp, rax
	call	pmd_trans_huge@PLT
	test	rax, rax
	jne	.L20
.L5:
	mov	rdi, rbp
	call	pmd_none_or_clear_bad@PLT
	test	rax, rax
	jne	.L3
	mov	rsi, rbp
	mov	rcx, rsp
	mov	edx, 655360
	mov	rdi, r12
	call	pte_offset_map_lock@PLT
	mov	rbp, rax
	lea	rbx, 128[rax]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	add	rbp, 4
	cmp	rbp, rbx
	je	.L21
.L7:
	mov	edi, DWORD PTR 0[rbp]
	call	pte_present@PLT
	test	rax, rax
	je	.L6
	mov	edi, DWORD PTR 0[rbp]
	call	pte_wrprotect@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	set_pte@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, rbp
	call	pte_unmap_unlock@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, r12
	mov	esi, 655360
	call	find_vma@PLT
	mov	edx, 655360
	mov	rsi, rbp
	mov	rdi, rax
	call	split_huge_pmd@PLT
	jmp	.L5
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mark_screen_rdonly, .-mark_screen_rdonly
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,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_vm86_32.c_mark_screen_rdonly.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mark_screen_rdonly, %function
mark_screen_rdonly:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r0
	ldr	r3, .L22
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	down_write
	mov	r1, #655360
	mov	r0, r5
	bl	pgd_offset
	mov	r4, r0
	bl	pgd_none_or_clear_bad
	cmp	r0, #0
	beq	.L18
.L3:
	mov	r0, r5
	bl	up_write
	mov	r1, #0
	ldr	r2, .L22+4
	ldr	r3, .L22+8
	ldr	r2, [r2]
	str	r1, [sp]
	add	r2, r2, #20480
	ldr	r3, [r3]
	lsl	r2, r2, #5
	mov	r0, r5
	mov	r1, #655360
	bl	flush_tlb_mm_range
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L18:
	mov	r0, r4
	mov	r1, #655360
	bl	p4d_offset
	mov	r4, r0
	bl	p4d_none_or_clear_bad
	cmp	r0, #0
	bne	.L3
	mov	r0, r4
	mov	r1, #655360
	bl	pud_offset
	mov	r4, r0
	bl	pud_none_or_clear_bad
	cmp	r0, #0
	bne	.L3
	mov	r0, r4
	mov	r1, #655360
	bl	pmd_offset
	mov	r4, r0
	ldr	r0, [r0]
	bl	pmd_trans_huge
	cmp	r0, #0
	bne	.L20
.L5:
	mov	r0, r4
	bl	pmd_none_or_clear_bad
	cmp	r0, #0
	bne	.L3
	mov	r1, r4
	mov	r2, #655360
	mov	r0, r5
	add	r3, sp, #8
	bl	pte_offset_map_lock
	mov	r4, r0
	add	r7, r0, #128
	b	.L7
.L6:
	cmp	r4, r7
	beq	.L21
.L7:
	ldr	r0, [r4]
	bl	pte_present
	cmp	r0, #0
	mov	r6, r4
	add	r4, r4, #4
	beq	.L6
	ldr	r0, [r4, #-4]
	bl	pte_wrprotect
	mov	r1, r0
	mov	r0, r6
	bl	set_pte
	b	.L6
.L21:
	mov	r0, r4
	ldr	r1, [sp, #8]
	bl	pte_unmap_unlock
	b	.L3
.L20:
	mov	r1, #655360
	mov	r0, r5
	bl	find_vma
	mov	r2, #655360
	mov	r1, r4
	bl	split_huge_pmd
	b	.L5
.L19:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	PAGE_SIZE
	.word	PAGE_SHIFT
	.size	mark_screen_rdonly, .-mark_screen_rdonly
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
