	.file	"extr_memory.c_copy_pmd_range.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	copy_pmd_range, @function
copy_pmd_range:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r9
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR [rsp], rsi
	mov	rsi, rdx
	mov	rdx, r9
	mov	r14, QWORD PTR 80[rsp]
	mov	QWORD PTR 8[rsp], r8
	call	pmd_alloc@PLT
	test	rax, rax
	je	.L18
	mov	rdi, rbp
	mov	rsi, rbx
	mov	r13, rax
	call	pmd_offset@PLT
	mov	rbp, rax
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, rbx
	mov	rsi, r14
	mov	r12, rbx
	call	pmd_addr_end@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	rbx, rax
	call	pmd_trans_huge@PLT
	test	rax, rax
	je	.L7
	mov	rax, rbx
	xor	edi, edi
	sub	rax, r12
	cmp	rax, QWORD PTR HPAGE_PMD_SIZE[rip]
	setne	dil
	call	VM_BUG_ON@PLT
	mov	r9, QWORD PTR 8[rsp]
	mov	rcx, rbp
	mov	r8, r12
	mov	rsi, QWORD PTR [rsp]
	mov	rdx, r13
	mov	rdi, r15
	call	copy_huge_pmd@PLT
	mov	ecx, eax
	add	ecx, DWORD PTR ENOMEM[rip]
	je	.L1
	test	eax, eax
	je	.L5
.L7:
	mov	rdi, rbp
	call	pmd_none_or_clear_bad@PLT
	test	rax, rax
	jne	.L5
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	rcx, rbp
	mov	rdx, r13
	mov	r9, r12
	push	rbx
	.cfi_def_cfa_offset 96
	mov	r8, QWORD PTR 24[rsp]
	mov	rdi, r15
	mov	rsi, QWORD PTR 16[rsp]
	call	copy_pte_range@PLT
	pop	rdx
	.cfi_def_cfa_offset 88
	pop	rcx
	.cfi_def_cfa_offset 80
	test	rax, rax
	jne	.L18
.L5:
	add	r13, 4
	add	rbp, 4
	cmp	r14, rbx
	jne	.L8
	xor	eax, eax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	copy_pmd_range, .-copy_pmd_range
	.comm	HPAGE_PMD_SIZE,8,8
	.comm	ENOMEM,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_memory.c_copy_pmd_range.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy_pmd_range, %function
copy_pmd_range:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	ldr	r4, [sp, #60]
	mov	fp, r1
	mov	r1, r2
	mov	r2, r4
	mov	r5, r3
	mov	r10, r0
	ldr	r9, [sp, #64]
	bl	pmd_alloc
	subs	r6, r0, #0
	beq	.L19
	mov	r0, r5
	mov	r1, r4
	bl	pmd_offset
	mov	r7, r0
.L8:
	mov	r1, r9
	mov	r0, r4
	bl	pmd_addr_end
	mov	r3, r0
	ldr	r0, [r7]
	mov	r8, r4
	mov	r4, r3
	bl	pmd_trans_huge
	cmp	r0, #0
	mov	r5, r7
	sub	r3, r4, r8
	add	r7, r7, #4
	beq	.L7
	ldr	r2, .L21
	ldr	r0, [r2]
	subs	r0, r3, r0
	movne	r0, #1
	bl	VM_BUG_ON
	ldr	r3, [sp, #56]
	mov	r2, r6
	str	r3, [sp, #4]
	mov	r1, fp
	mov	r3, r5
	mov	r0, r10
	str	r8, [sp]
	bl	copy_huge_pmd
	ldr	r3, .L21+4
	ldr	r3, [r3]
	cmn	r0, r3
	beq	.L1
	cmp	r0, #0
	beq	.L5
.L7:
	mov	r0, r5
	bl	pmd_none_or_clear_bad
	cmp	r0, #0
	bne	.L5
	ldr	r3, [sp, #56]
	mov	r2, r6
	str	r3, [sp]
	mov	r1, fp
	mov	r3, r5
	mov	r0, r10
	str	r4, [sp, #8]
	str	r8, [sp, #4]
	bl	copy_pte_range
	cmp	r0, #0
	bne	.L19
.L5:
	cmp	r9, r4
	add	r6, r6, #4
	bne	.L8
	mov	r0, #0
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	ldr	r3, .L21+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	.align	2
.L21:
	.word	HPAGE_PMD_SIZE
	.word	ENOMEM
	.size	copy_pmd_range, .-copy_pmd_range
	.comm	HPAGE_PMD_SIZE,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
