	.file	"extr_machine_kexec.c_arch_kexec_unprotect_crashkres.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	arch_kexec_unprotect_crashkres
	.type	arch_kexec_unprotect_crashkres, @function
arch_kexec_unprotect_crashkres:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR kexec_crash_image[rip]
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	jle	.L6
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 8[rax]
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	lea	rax, [rax+rbx*8]
	add	rbx, 1
	mov	ebp, DWORD PTR [rax]
	mov	edi, DWORD PTR 4[rax]
	sar	ebp, cl
	call	__phys_to_virt@PLT
	mov	edx, 1
	mov	esi, ebp
	mov	edi, eax
	call	set_memory_valid@PLT
	mov	rax, QWORD PTR kexec_crash_image[rip]
	cmp	DWORD PTR [rax], ebx
	jg	.L3
	add	rsp, 8
	.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
.L6:
	.cfi_restore 3
	.cfi_restore 6
	ret
	.cfi_endproc
.LFE0:
	.size	arch_kexec_unprotect_crashkres, .-arch_kexec_unprotect_crashkres
	.comm	kexec_crash_image,8,8
	.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_machine_kexec.c_arch_kexec_unprotect_crashkres.c"
	.text
	.align	2
	.global	arch_kexec_unprotect_crashkres
	.syntax unified
	.arm
	.fpu softvfp
	.type	arch_kexec_unprotect_crashkres, %function
arch_kexec_unprotect_crashkres:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L7
	ldr	r3, [r5]
	ldr	r2, [r3]
	cmp	r2, #0
	pople	{r4, r5, r6, pc}
	mov	r4, #0
	ldr	r6, .L7+4
.L3:
	ldr	r3, [r3, #4]
	add	r3, r3, r4, lsl #3
	ldr	r0, [r3, #4]
	bl	__phys_to_virt
	ldr	r2, [r5]
	ldr	r3, [r6]
	ldr	r1, [r2, #4]
	mov	r2, #1
	ldr	r1, [r1, r4, lsl #3]
	add	r4, r4, r2
	asr	r1, r1, r3
	bl	set_memory_valid
	ldr	r3, [r5]
	ldr	r2, [r3]
	cmp	r2, r4
	bgt	.L3
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	kexec_crash_image
	.word	PAGE_SHIFT
	.size	arch_kexec_unprotect_crashkres, .-arch_kexec_unprotect_crashkres
	.comm	kexec_crash_image,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
