	.file	"extr_init_32.c_mark_rodata_ro.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Write protecting kernel text and read-only data: %luk\n"
	.text
	.p2align 4
	.globl	mark_rodata_ro
	.type	mark_rodata_ro, @function
mark_rodata_ro:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR _text[rip]
	call	PFN_ALIGN@PLT
	mov	rbx, QWORD PTR __end_rodata[rip]
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	mov	rdi, rax
	sub	rbx, rax
	mov	rbp, rbx
	shr	rbp, cl
	call	virt_to_page@PLT
	mov	rsi, rbp
	mov	edi, eax
	call	set_pages_ro@PLT
	mov	rsi, rbx
	lea	rdi, .LC0[rip]
	xor	eax, eax
	shr	rsi, 10
	call	pr_info@PLT
	xor	eax, eax
	mov	DWORD PTR kernel_set_to_readonly[rip], 1
	call	mark_nxdata_nx@PLT
	mov	eax, DWORD PTR __supported_pte_mask[rip]
	test	DWORD PTR _PAGE_NX[rip], eax
	jne	.L5
	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
.L5:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	debug_checkwx@PLT
	.cfi_endproc
.LFE0:
	.size	mark_rodata_ro, .-mark_rodata_ro
	.comm	kernel_set_to_readonly,4,4
	.comm	_text,4,4
	.comm	__supported_pte_mask,4,4
	.comm	__end_rodata,8,8
	.comm	_PAGE_NX,4,4
	.comm	PAGE_SHIFT,8,8
	.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_init_32.c_mark_rodata_ro.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Write protecting kernel text and read-only data: %l"
	.ascii	"uk\012\000"
	.text
	.align	2
	.global	mark_rodata_ro
	.syntax unified
	.arm
	.fpu softvfp
	.type	mark_rodata_ro, %function
mark_rodata_ro:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L5
	push	{r4, lr}
	ldr	r0, [r3]
	bl	PFN_ALIGN
	ldr	r3, .L5+4
	ldr	r4, [r3]
	sub	r4, r4, r0
	bl	virt_to_page
	ldr	r3, .L5+8
	ldr	r1, [r3]
	lsr	r1, r4, r1
	bl	set_pages_ro
	lsr	r1, r4, #10
	ldr	r0, .L5+12
	bl	pr_info
	mov	r2, #1
	ldr	r3, .L5+16
	str	r2, [r3]
	bl	mark_nxdata_nx
	ldr	r2, .L5+20
	ldr	r3, .L5+24
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r2, r3
	popeq	{r4, pc}
	pop	{r4, lr}
	b	debug_checkwx
.L6:
	.align	2
.L5:
	.word	_text
	.word	__end_rodata
	.word	PAGE_SHIFT
	.word	.LC0
	.word	kernel_set_to_readonly
	.word	__supported_pte_mask
	.word	_PAGE_NX
	.size	mark_rodata_ro, .-mark_rodata_ro
	.comm	kernel_set_to_readonly,4,4
	.comm	_text,4,4
	.comm	__supported_pte_mask,4,4
	.comm	__end_rodata,4,4
	.comm	_PAGE_NX,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
