	.file	"extr_mlock.c_munlock_vma_page.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	munlock_vma_page
	.type	munlock_vma_page, @function
munlock_vma_page:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	page_pgdat@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	PageLocked@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	xor	r13d, r13d
	call	BUG_ON@PLT
	mov	rdi, rbp
	call	PageTail@PLT
	mov	rsi, rbp
	mov	edi, eax
	call	VM_BUG_ON_PAGE@PLT
	mov	rdi, r12
	call	spin_lock_irq@PLT
	mov	rdi, rbp
	call	TestClearPageMlocked@PLT
	test	eax, eax
	jne	.L10
.L2:
.L4:
	endbr64
	mov	rdi, r12
	call	spin_unlock_irq@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L10:
	.cfi_restore_state
	mov	rdi, rbp
	call	hpage_nr_pages@PLT
	mov	r14d, DWORD PTR NR_MLOCK[rip]
	mov	rdi, rbp
	mov	r13d, eax
	call	page_zone@PLT
	mov	edx, r13d
	mov	esi, r14d
	mov	edi, eax
	neg	edx
	call	__mod_zone_page_state@PLT
	mov	esi, 1
	mov	rdi, rbp
	call	__munlock_isolate_lru_page@PLT
	test	rax, rax
	jne	.L11
	mov	rdi, rbp
	sub	r13d, 1
	call	__munlock_isolation_failed@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, r12
	sub	r13d, 1
	call	spin_unlock_irq@PLT
	mov	rdi, rbp
	call	__munlock_isolated_page@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
	.cfi_endproc
.LFE0:
	.size	munlock_vma_page, .-munlock_vma_page
	.comm	NR_MLOCK,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_page.c"
	.text
	.align	2
	.global	munlock_vma_page
	.syntax unified
	.arm
	.fpu softvfp
	.type	munlock_vma_page, %function
munlock_vma_page:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	page_pgdat
	mov	r6, r0
	mov	r0, r4
	bl	PageLocked
	clz	r0, r0
	lsr	r0, r0, #5
	bl	BUG_ON
	mov	r0, r4
	bl	PageTail
	mov	r1, r4
	bl	VM_BUG_ON_PAGE
	mov	r0, r6
	bl	spin_lock_irq
	mov	r0, r4
	bl	TestClearPageMlocked
	cmp	r0, #0
	moveq	r5, r0
	bne	.L8
.L2:
.L4:
	mov	r0, r6
	bl	spin_unlock_irq
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L8:
	mov	r0, r4
	bl	hpage_nr_pages
	mov	r5, r0
	mov	r0, r4
	bl	page_zone
	ldr	r3, .L10
	rsb	r2, r5, #0
	ldr	r1, [r3]
	bl	__mod_zone_page_state
	mov	r1, #1
	mov	r0, r4
	bl	__munlock_isolate_lru_page
	cmp	r0, #0
	bne	.L9
	mov	r0, r4
	bl	__munlock_isolation_failed
	sub	r5, r5, #1
	b	.L2
.L9:
	mov	r0, r6
	bl	spin_unlock_irq
	sub	r5, r5, #1
	mov	r0, r4
	bl	__munlock_isolated_page
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L11:
	.align	2
.L10:
	.word	NR_MLOCK
	.size	munlock_vma_page, .-munlock_vma_page
	.comm	NR_MLOCK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
