	.file	"extr_mlock.c_munlock_vma_pages_range.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	munlock_vma_pages_range
	.type	munlock_vma_pages_range, @function
munlock_vma_pages_range:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR VM_LOCKED_CLEAR_MASK[rip]
	and	DWORD PTR [rdi], eax
	cmp	rsi, rdx
	jnb	.L1
	mov	rbx, rdi
	mov	r12, rsi
	lea	r14, 4[rsp]
	mov	r13, rdx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, 1
.L5:
	imul	rax, QWORD PTR PAGE_SIZE[rip]
	add	r12, rax
.L7:
	xor	eax, eax
	call	cond_resched@PLT
	cmp	r12, r13
	jnb	.L1
.L2:
	mov	rdi, r14
	call	pagevec_init@PLT
	mov	edx, DWORD PTR FOLL_GET[rip]
	mov	rsi, r12
	mov	rdi, rbx
	or	edx, DWORD PTR FOLL_DUMP[rip]
	call	follow_page@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L3
	mov	rdi, rax
	call	IS_ERR@PLT
	test	eax, eax
	jne	.L3
	mov	rdi, rbp
	call	PageTransTail@PLT
	mov	rdi, rbp
	test	rax, rax
	je	.L4
	call	PageMlocked@PLT
	mov	rsi, rbp
	mov	edi, eax
	call	VM_BUG_ON_PAGE@PLT
	mov	rdi, rbp
	call	put_page@PLT
	mov	eax, 1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	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
.L4:
	.cfi_restore_state
	call	PageTransHuge@PLT
	test	rax, rax
	je	.L6
	mov	rdi, rbp
	call	lock_page@PLT
	mov	rdi, rbp
	call	munlock_vma_page@PLT
	mov	rdi, rbp
	mov	r15d, eax
	call	unlock_page@PLT
	mov	rdi, rbp
	call	put_page@PLT
	lea	eax, 1[r15]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rsi, rbp
	mov	rdi, r14
	call	pagevec_add@PLT
	mov	rdi, rbp
	call	page_zone@PLT
	mov	rcx, r12
	mov	rsi, rbx
	mov	rdi, r14
	mov	rbp, rax
	mov	r8, r13
	mov	rdx, rax
	call	__munlock_pagevec_fill@PLT
	mov	rsi, rbp
	mov	rdi, r14
	mov	r12, rax
	call	__munlock_pagevec@PLT
	jmp	.L7
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	munlock_vma_pages_range, .-munlock_vma_pages_range
	.comm	VM_LOCKED_CLEAR_MASK,4,4
	.comm	PAGE_SIZE,8,8
	.comm	FOLL_GET,4,4
	.comm	FOLL_DUMP,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_mlock.c_munlock_vma_pages_range.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	munlock_vma_pages_range
	.syntax unified
	.arm
	.fpu softvfp
	.type	munlock_vma_pages_range, %function
munlock_vma_pages_range:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r2
	ldr	r2, .L18
	ldr	r3, [r0]
	ldr	r2, [r2]
	sub	sp, sp, #20
	and	r3, r3, r2
	ldr	r2, .L18+4
	cmp	r1, r7
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	str	r3, [r0]
	bcs	.L1
	mov	r6, r0
	mov	r5, r1
	ldr	r9, .L18+8
	ldr	r8, .L18+12
	ldr	r10, .L18+16
	b	.L2
.L3:
	mov	r3, #1
.L5:
	ldr	r2, [r10]
	mla	r5, r2, r3, r5
.L7:
	bl	cond_resched
	cmp	r5, r7
	bcs	.L1
.L2:
	add	r0, sp, #8
	bl	pagevec_init
	ldr	r2, [r9]
	ldr	r3, [r8]
	mov	r1, r5
	mov	r0, r6
	orr	r2, r2, r3
	bl	follow_page
	subs	r4, r0, #0
	beq	.L3
	bl	IS_ERR
	cmp	r0, #0
	bne	.L3
	mov	r0, r4
	bl	PageTransTail
	cmp	r0, #0
	mov	r0, r4
	beq	.L4
	bl	PageMlocked
	mov	r1, r4
	bl	VM_BUG_ON_PAGE
	mov	r0, r4
	bl	put_page
	mov	r3, #1
	b	.L5
.L1:
	ldr	r3, .L18+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	bl	PageTransHuge
	cmp	r0, #0
	beq	.L6
	mov	r0, r4
	bl	lock_page
	mov	r0, r4
	bl	munlock_vma_page
	mov	fp, r0
	mov	r0, r4
	bl	unlock_page
	mov	r0, r4
	bl	put_page
	add	r3, fp, #1
	b	.L5
.L6:
	mov	r1, r4
	add	r0, sp, #8
	bl	pagevec_add
	mov	r0, r4
	bl	page_zone
	mov	r3, r5
	mov	r4, r0
	mov	r2, r0
	mov	r1, r6
	str	r7, [sp]
	add	r0, sp, #8
	bl	__munlock_pagevec_fill
	mov	r1, r4
	mov	r5, r0
	add	r0, sp, #8
	bl	__munlock_pagevec
	b	.L7
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	VM_LOCKED_CLEAR_MASK
	.word	.LC0
	.word	FOLL_GET
	.word	FOLL_DUMP
	.word	PAGE_SIZE
	.size	munlock_vma_pages_range, .-munlock_vma_pages_range
	.comm	VM_LOCKED_CLEAR_MASK,4,4
	.comm	PAGE_SIZE,4,4
	.comm	FOLL_GET,4,4
	.comm	FOLL_DUMP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
