	.file	"extr_init_32.c_set_kernel_text_rw.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Set kernel text: %lx - %lx for read write\n"
	.text
	.p2align 4
	.globl	set_kernel_text_rw
	.type	set_kernel_text_rw, @function
set_kernel_text_rw:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edi, DWORD PTR _text[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	PFN_ALIGN@PLT
	mov	edi, DWORD PTR _etext[rip]
	mov	r12, rax
	call	PFN_ALIGN@PLT
	mov	edx, DWORD PTR kernel_set_to_readonly[rip]
	test	edx, edx
	jne	.L5
	pop	rbx
	.cfi_remember_state
	.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
.L5:
	.cfi_restore_state
	mov	rsi, r12
	mov	rbx, rax
	lea	rdi, .LC0[rip]
	mov	rdx, rax
	call	pr_debug@PLT
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	mov	rax, rbx
	mov	rdi, r12
	sub	rax, r12
	shr	rax, cl
	mov	rbp, rax
	call	virt_to_page@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rsi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	edi, eax
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	set_pages_rw@PLT
	.cfi_endproc
.LFE0:
	.size	set_kernel_text_rw, .-set_kernel_text_rw
	.comm	kernel_set_to_readonly,4,4
	.comm	_text,4,4
	.comm	_etext,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_set_kernel_text_rw.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Set kernel text: %lx - %lx for read write\012\000"
	.text
	.align	2
	.global	set_kernel_text_rw
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_kernel_text_rw, %function
set_kernel_text_rw:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L5
	push	{r4, r5, r6, lr}
	ldr	r0, [r3]
	bl	PFN_ALIGN
	ldr	r3, .L5+4
	mov	r5, r0
	ldr	r0, [r3]
	bl	PFN_ALIGN
	ldr	r3, .L5+8
	ldr	r3, [r3]
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	mov	r4, r0
	mov	r1, r5
	mov	r2, r0
	ldr	r0, .L5+12
	bl	pr_debug
	mov	r0, r5
	bl	virt_to_page
	ldr	r3, .L5+16
	sub	r4, r4, r5
	ldr	r1, [r3]
	lsr	r1, r4, r1
	pop	{r4, r5, r6, lr}
	b	set_pages_rw
.L6:
	.align	2
.L5:
	.word	_text
	.word	_etext
	.word	kernel_set_to_readonly
	.word	.LC0
	.word	PAGE_SHIFT
	.size	set_kernel_text_rw, .-set_kernel_text_rw
	.comm	kernel_set_to_readonly,4,4
	.comm	_text,4,4
	.comm	_etext,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
