	.file	"extr_huge_memory.c___do_huge_pmd_anonymous_page.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__do_huge_pmd_anonymous_page, @function
__do_huge_pmd_anonymous_page:
.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
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rbx, QWORD PTR 24[rdi]
	mov	r14, QWORD PTR HPAGE_PMD_MASK[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	mov	rdi, rsi
	mov	QWORD PTR 8[rsp], rax
	call	PageCompound@PLT
	xor	edi, edi
	mov	rsi, rbp
	test	eax, eax
	sete	dil
	call	VM_BUG_ON_PAGE@PLT
	mov	esi, DWORD PTR [rbx]
	lea	rcx, 16[rsp]
	mov	edx, r13d
	mov	r8d, 1
	mov	rdi, rbp
	call	mem_cgroup_try_charge_delay@PLT
	test	rax, rax
	jne	.L16
	mov	edi, DWORD PTR [rbx]
	call	pte_alloc_one@PLT
	xor	edi, edi
	test	rax, rax
	mov	r13, rax
	sete	dil
	call	unlikely@PLT
	mov	r15d, DWORD PTR VM_FAULT_OOM[rip]
	test	rax, rax
	je	.L17
.L5:
	endbr64
	test	r13, r13
	jne	.L18
.L8:
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, rbp
	mov	edx, 1
	call	mem_cgroup_cancel_charge@PLT
	mov	rdi, rbp
	call	put_page@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L17:
	.cfi_restore_state
	mov	edx, DWORD PTR HPAGE_PMD_NR[rip]
	mov	rsi, QWORD PTR [r12]
	mov	rdi, rbp
	call	clear_huge_page@PLT
	mov	rdi, rbp
	call	__SetPageUptodate@PLT
	mov	rsi, QWORD PTR 16[r12]
	mov	edi, DWORD PTR [rbx]
	call	pmd_lock@PLT
	mov	DWORD PTR 8[r12], eax
	mov	rax, QWORD PTR 16[r12]
	mov	edi, DWORD PTR [rax]
	call	pmd_none@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	xor	r15d, r15d
	call	unlikely@PLT
	test	rax, rax
	je	.L20
.L6:
	mov	edi, DWORD PTR 8[r12]
	call	spin_unlock@PLT
	test	r13, r13
	je	.L8
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, rbp
	call	put_page@PLT
	mov	edi, DWORD PTR THP_FAULT_FALLBACK[rip]
	call	count_vm_event@PLT
	mov	r15d, DWORD PTR VM_FAULT_FALLBACK[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edi, DWORD PTR [rbx]
	mov	rsi, r13
	call	pte_free@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edi, DWORD PTR [rbx]
	call	check_stable_address_space@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L6
	mov	rdi, rbx
	call	userfaultfd_missing@PLT
	test	rax, rax
	jne	.L21
	mov	esi, DWORD PTR 4[rbx]
	mov	rdi, rbp
	and	r14, QWORD PTR 8[rsp]
	call	mk_huge_pmd@PLT
	mov	edi, eax
	call	pmd_mkdirty@PLT
	mov	rsi, rbx
	mov	edi, eax
	call	maybe_pmd_mkwrite@PLT
	mov	rdx, r14
	mov	rsi, rbx
	mov	rdi, rbp
	mov	ecx, 1
	mov	DWORD PTR 8[rsp], eax
	call	page_add_new_anon_rmap@PLT
	mov	rsi, QWORD PTR 16[rsp]
	xor	edx, edx
	mov	rdi, rbp
	mov	ecx, 1
	call	mem_cgroup_commit_charge@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	lru_cache_add_active_or_unevictable@PLT
	mov	rsi, QWORD PTR 16[r12]
	mov	edi, DWORD PTR [rbx]
	mov	rdx, r13
	call	pgtable_trans_huge_deposit@PLT
	mov	r8d, DWORD PTR 8[rsp]
	mov	edi, DWORD PTR [rbx]
	mov	rsi, r14
	mov	rdx, QWORD PTR 16[r12]
	mov	ecx, r8d
	call	set_pmd_at@PLT
	mov	edx, DWORD PTR HPAGE_PMD_NR[rip]
	mov	esi, DWORD PTR MM_ANONPAGES[rip]
	mov	edi, DWORD PTR [rbx]
	call	add_mm_counter@PLT
	mov	edi, DWORD PTR [rbx]
	call	mm_inc_nr_ptes@PLT
	mov	edi, DWORD PTR 8[r12]
	call	spin_unlock@PLT
	mov	edi, DWORD PTR THP_FAULT_ALLOC[rip]
	call	count_vm_event@PLT
	mov	esi, DWORD PTR THP_FAULT_ALLOC[rip]
	mov	rdi, QWORD PTR 16[rsp]
	mov	edx, 1
	call	count_memcg_events@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edi, DWORD PTR 8[r12]
	call	spin_unlock@PLT
	mov	rsi, QWORD PTR 16[rsp]
	mov	edx, 1
	mov	rdi, rbp
	call	mem_cgroup_cancel_charge@PLT
	mov	rdi, rbp
	call	put_page@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rsi, r13
	call	pte_free@PLT
	mov	esi, DWORD PTR VM_UFFD_MISSING[rip]
	mov	rdi, r12
	call	handle_userfault@PLT
	mov	edi, DWORD PTR VM_FAULT_FALLBACK[rip]
	mov	r15d, eax
	and	edi, eax
	call	VM_BUG_ON@PLT
	jmp	.L1
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	__do_huge_pmd_anonymous_page, .-__do_huge_pmd_anonymous_page
	.comm	VM_UFFD_MISSING,4,4
	.comm	VM_FAULT_OOM,4,4
	.comm	VM_FAULT_FALLBACK,4,4
	.comm	THP_FAULT_FALLBACK,4,4
	.comm	THP_FAULT_ALLOC,4,4
	.comm	MM_ANONPAGES,4,4
	.comm	HPAGE_PMD_NR,4,4
	.comm	HPAGE_PMD_MASK,8,8
	.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_huge_memory.c___do_huge_pmd_anonymous_page.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__do_huge_pmd_anonymous_page, %function
__do_huge_pmd_anonymous_page:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	ldr	r3, .L20
	mov	r6, r2
	ldr	r2, .L20+4
	sub	sp, sp, #20
	mov	r0, r1
	mov	r4, r1
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	ldr	fp, [r3]
	ldr	r7, [r5, #12]
	ldr	r10, [r5]
	bl	PageCompound
	clz	r0, r0
	mov	r9, #1
	mov	r1, r4
	lsr	r0, r0, #5
	bl	VM_BUG_ON_PAGE
	ldr	r1, [r7]
	mov	r2, r6
	mov	r0, r4
	str	r9, [sp]
	add	r3, sp, #8
	bl	mem_cgroup_try_charge_delay
	cmp	r0, #0
	bne	.L15
	ldr	r0, [r7]
	bl	pte_alloc_one
	mov	r8, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	subs	r6, r0, #0
	beq	.L4
.L5:
	ldr	r3, .L20+8
	cmp	r8, #0
	ldr	r6, [r3]
	bne	.L16
.L8:
	mov	r2, #1
	mov	r0, r4
	ldr	r1, [sp, #8]
	bl	mem_cgroup_cancel_charge
	mov	r0, r4
	bl	put_page
.L1:
	ldr	r3, .L20+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r6
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	ldr	r3, .L20+12
	ldr	r1, [r5]
	ldr	r2, [r3]
	mov	r0, r4
	bl	clear_huge_page
	mov	r0, r4
	bl	__SetPageUptodate
	ldr	r1, [r5, #8]
	ldr	r0, [r7]
	bl	pmd_lock
	ldr	r3, [r5, #8]
	str	r0, [r5, #4]
	ldr	r0, [r3]
	bl	pmd_none
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	beq	.L18
.L6:
	ldr	r0, [r5, #4]
	bl	spin_unlock
	cmp	r8, #0
	beq	.L8
.L16:
	mov	r1, r8
	ldr	r0, [r7]
	bl	pte_free
	b	.L8
.L15:
	mov	r0, r4
	bl	put_page
	ldr	r3, .L20+16
	ldr	r0, [r3]
	bl	count_vm_event
	ldr	r3, .L20+20
	ldr	r6, [r3]
	b	.L1
.L18:
	ldr	r0, [r7]
	bl	check_stable_address_space
	subs	r6, r0, #0
	bne	.L6
	mov	r0, r7
	bl	userfaultfd_missing
	subs	r6, r0, #0
	bne	.L19
	ldr	r1, [r7, #4]
	mov	r0, r4
	bl	mk_huge_pmd
	bl	pmd_mkdirty
	mov	r1, r7
	bl	maybe_pmd_mkwrite
	mov	ip, r0
	and	r10, r10, fp
	mov	fp, ip
	mov	r2, r10
	mov	r3, r9
	mov	r1, r7
	mov	r0, r4
	bl	page_add_new_anon_rmap
	mov	r3, r9
	mov	r2, r6
	ldr	r1, [sp, #8]
	mov	r0, r4
	bl	mem_cgroup_commit_charge
	mov	r1, r7
	mov	r0, r4
	bl	lru_cache_add_active_or_unevictable
	mov	r2, r8
	ldr	r1, [r5, #8]
	ldr	r0, [r7]
	bl	pgtable_trans_huge_deposit
	mov	r3, fp
	mov	r1, r10
	ldr	r2, [r5, #8]
	ldr	r0, [r7]
	bl	set_pmd_at
	ldr	r3, .L20+24
	ldr	r2, .L20+12
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r0, [r7]
	bl	add_mm_counter
	ldr	r4, .L20+28
	ldr	r0, [r7]
	bl	mm_inc_nr_ptes
	ldr	r0, [r5, #4]
	bl	spin_unlock
	ldr	r0, [r4]
	bl	count_vm_event
	mov	r2, r9
	ldr	r1, [r4]
	ldr	r0, [sp, #8]
	bl	count_memcg_events
	b	.L1
.L19:
	ldr	r0, [r5, #4]
	bl	spin_unlock
	mov	r2, r9
	ldr	r1, [sp, #8]
	mov	r0, r4
	bl	mem_cgroup_cancel_charge
	mov	r0, r4
	bl	put_page
	mov	r1, r8
	ldr	r0, [r7]
	bl	pte_free
	ldr	r3, .L20+32
	mov	r0, r5
	ldr	r1, [r3]
	bl	handle_userfault
	mov	r6, r0
	ldr	r3, .L20+20
	ldr	r0, [r3]
	and	r0, r0, r6
	bl	VM_BUG_ON
	b	.L1
.L17:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	HPAGE_PMD_MASK
	.word	.LC0
	.word	VM_FAULT_OOM
	.word	HPAGE_PMD_NR
	.word	THP_FAULT_FALLBACK
	.word	VM_FAULT_FALLBACK
	.word	MM_ANONPAGES
	.word	THP_FAULT_ALLOC
	.word	VM_UFFD_MISSING
	.size	__do_huge_pmd_anonymous_page, .-__do_huge_pmd_anonymous_page
	.comm	VM_UFFD_MISSING,4,4
	.comm	VM_FAULT_OOM,4,4
	.comm	VM_FAULT_FALLBACK,4,4
	.comm	THP_FAULT_FALLBACK,4,4
	.comm	THP_FAULT_ALLOC,4,4
	.comm	MM_ANONPAGES,4,4
	.comm	HPAGE_PMD_NR,4,4
	.comm	HPAGE_PMD_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
