	.file	"extr_kexec.c_kimage_alloc_normal_control_pages.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	kimage_alloc_normal_control_pages, @function
kimage_alloc_normal_control_pages:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	ecx, esi
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, 1
	sal	ebx, cl
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r13, 4[rsp]
	mov	rdi, r13
	call	INIT_LIST_HEAD@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, rax
	call	page_to_pfn@PLT
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	mov	rsi, QWORD PTR KEXEC_CONTROL_MEMORY_LIMIT[rip]
	lea	rdx, [rbx+rax]
	shr	rsi, cl
	cmp	rsi, rdx
	jbe	.L5
	sal	rax, cl
	sal	rdx, cl
	mov	rdi, r14
	mov	rsi, rax
	call	kimage_is_destination_range@PLT
	test	rax, rax
	je	.L15
.L5:
	mov	rsi, r13
	mov	rdi, rbp
	call	list_add@PLT
.L4:
	mov	edi, DWORD PTR GFP_KERNEL[rip]
	mov	esi, r12d
	call	kimage_alloc_pages@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L16
.L2:
	mov	rdi, r13
	call	kimage_free_page_list@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, rbp
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rsi, r14
	mov	rdi, rbp
	call	list_add@PLT
	jmp	.L2
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	kimage_alloc_normal_control_pages, .-kimage_alloc_normal_control_pages
	.comm	PAGE_SHIFT,8,8
	.comm	KEXEC_CONTROL_MEMORY_LIMIT,8,8
	.comm	GFP_KERNEL,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_kexec.c_kimage_alloc_normal_control_pages.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kimage_alloc_normal_control_pages, %function
kimage_alloc_normal_control_pages:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, #1
	sub	sp, sp, #8
	ldr	r3, .L18
	mov	r10, r0
	mov	r0, sp
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	lsl	r6, r6, r1
	ldr	r7, .L18+4
	bl	INIT_LIST_HEAD
	ldr	r9, .L18+8
	ldr	r8, .L18+12
	b	.L4
.L16:
	bl	page_to_pfn
	ldr	r1, [r9]
	ldr	r3, [r8]
	add	r2, r6, r0
	cmp	r2, r3, lsr r1
	bcs	.L5
	lsl	r2, r2, r1
	lsl	r1, r0, r1
	mov	r0, r10
	bl	kimage_is_destination_range
	cmp	r0, #0
	beq	.L15
.L5:
	mov	r0, r4
	mov	r1, sp
	bl	list_add
.L4:
	mov	r1, r5
	ldr	r0, [r7]
	bl	kimage_alloc_pages
	subs	r4, r0, #0
	bne	.L16
.L2:
	mov	r0, sp
	bl	kimage_free_page_list
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	mov	r1, r10
	mov	r0, r4
	bl	list_add
	b	.L2
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	GFP_KERNEL
	.word	PAGE_SHIFT
	.word	KEXEC_CONTROL_MEMORY_LIMIT
	.size	kimage_alloc_normal_control_pages, .-kimage_alloc_normal_control_pages
	.comm	PAGE_SHIFT,4,4
	.comm	KEXEC_CONTROL_MEMORY_LIMIT,4,4
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
