	.file	"extr_memory.c_alloc_set_pte.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	alloc_set_pte
	.type	alloc_set_pte, @function
alloc_set_pte:
.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
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR 24[rdi]
	mov	r12, QWORD PTR 32[rdi]
	mov	r15d, DWORD PTR [rdi]
	mov	r14d, DWORD PTR FAULT_FLAG_WRITE[rip]
	mov	QWORD PTR [rsp], rsi
	mov	edi, DWORD PTR [rax]
	call	pmd_none@PLT
	test	rax, rax
	jne	.L2
.L5:
	mov	rax, QWORD PTR 8[rbx]
	test	rax, rax
	je	.L21
.L4:
	mov	edi, DWORD PTR [rax]
	call	pte_none@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	unlikely@PLT
	mov	r13, rax
	test	rax, rax
	je	.L7
	mov	r13, QWORD PTR VM_FAULT_NOPAGE[rip]
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r13
	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
.L7:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r12
	call	flush_icache_page@PLT
	mov	esi, DWORD PTR 8[r12]
	mov	rdi, rbp
	call	mk_pte@PLT
	mov	r9d, eax
	test	r15d, r14d
	jne	.L22
.L8:
	mov	rdi, rbp
	mov	DWORD PTR [rsp], r9d
	call	mm_counter_file@PLT
	mov	edi, DWORD PTR 4[r12]
	mov	esi, eax
	call	inc_mm_counter_fast@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	page_add_file_rmap@PLT
	mov	r9d, DWORD PTR [rsp]
.L9:
	mov	rdx, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR 16[rbx]
	mov	ecx, r9d
	mov	edi, DWORD PTR 4[r12]
	call	set_pte_at@PLT
	mov	rdx, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR 16[rbx]
	mov	rdi, r12
	call	update_mmu_cache@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, rbp
	call	PageTransCompound@PLT
	test	rax, rax
	je	.L5
	mov	edi, DWORD PTR CONFIG_TRANSPARENT_HUGE_PAGECACHE[rip]
	call	IS_ENABLED@PLT
	test	rax, rax
	je	.L5
	mov	rdi, QWORD PTR [rsp]
	mov	rsi, rbp
	call	VM_BUG_ON_PAGE@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	call	do_set_pmd@PLT
	cmp	QWORD PTR VM_FAULT_FALLBACK[rip], rax
	mov	r13, rax
	jne	.L1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, rbx
	call	pte_alloc_one_map@PLT
	mov	r13, rax
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR 8[rbx]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edi, eax
	call	pte_mkdirty@PLT
	mov	rsi, r12
	mov	edi, eax
	call	maybe_mkwrite@PLT
	mov	r9d, eax
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR VM_SHARED[rip], eax
	jne	.L8
	mov	edi, DWORD PTR 4[r12]
	mov	esi, DWORD PTR MM_ANONPAGES[rip]
	mov	DWORD PTR 12[rsp], r9d
	call	inc_mm_counter_fast@PLT
	mov	edx, DWORD PTR 16[rbx]
	xor	ecx, ecx
	mov	rsi, r12
	mov	rdi, rbp
	call	page_add_new_anon_rmap@PLT
	mov	rsi, QWORD PTR [rsp]
	xor	ecx, ecx
	xor	edx, edx
	mov	rdi, rbp
	call	mem_cgroup_commit_charge@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	lru_cache_add_active_or_unevictable@PLT
	mov	r9d, DWORD PTR 12[rsp]
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	alloc_set_pte, .-alloc_set_pte
	.comm	VM_SHARED,4,4
	.comm	VM_FAULT_NOPAGE,8,8
	.comm	VM_FAULT_FALLBACK,8,8
	.comm	MM_ANONPAGES,4,4
	.comm	FAULT_FLAG_WRITE,4,4
	.comm	CONFIG_TRANSPARENT_HUGE_PAGECACHE,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_alloc_set_pte.c"
	.text
	.align	2
	.global	alloc_set_pte
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_set_pte, %function
alloc_set_pte:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r0, [r0, #12]
	ldr	r3, .L23
	ldr	r0, [r0]
	mov	r8, r1
	mov	r6, r2
	ldr	r7, [r4, #16]
	ldr	r10, [r4]
	ldr	r9, [r3]
	bl	pmd_none
	cmp	r0, #0
	bne	.L2
.L5:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L21
.L4:
	ldr	r0, [r3]
	bl	pte_none
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	subs	r5, r0, #0
	beq	.L7
	ldr	r3, .L23+4
	ldr	r5, [r3]
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	mov	r1, r6
	mov	r0, r7
	bl	flush_icache_page
	mov	r0, r6
	ldr	r1, [r7, #8]
	bl	mk_pte
	tst	r10, r9
	mov	r9, r0
	bne	.L22
.L8:
	mov	r0, r6
	ldr	r8, [r7, #4]
	bl	mm_counter_file
	mov	r1, r0
	mov	r0, r8
	bl	inc_mm_counter_fast
	mov	r0, r6
	mov	r1, #0
	bl	page_add_file_rmap
.L9:
	mov	r3, r9
	ldr	r2, [r4, #4]
	ldr	r1, [r4, #8]
	ldr	r0, [r7, #4]
	bl	set_pte_at
	mov	r0, r7
	ldr	r2, [r4, #4]
	ldr	r1, [r4, #8]
	bl	update_mmu_cache
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r0, r6
	bl	PageTransCompound
	cmp	r0, #0
	beq	.L5
	ldr	r3, .L23+8
	ldr	r0, [r3]
	bl	IS_ENABLED
	cmp	r0, #0
	beq	.L5
	mov	r1, r6
	mov	r0, r8
	bl	VM_BUG_ON_PAGE
	mov	r1, r6
	mov	r0, r4
	bl	do_set_pmd
	ldr	r3, .L23+12
	mov	r5, r0
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L1
	b	.L5
.L21:
	mov	r0, r4
	bl	pte_alloc_one_map
	subs	r5, r0, #0
	bne	.L1
	ldr	r3, [r4, #4]
	b	.L4
.L22:
	bl	pte_mkdirty
	mov	r1, r7
	bl	maybe_mkwrite
	ldr	r3, .L23+16
	ldr	r2, [r7]
	ldr	r3, [r3]
	mov	r9, r0
	tst	r2, r3
	bne	.L8
	ldr	r3, .L23+20
	ldr	r0, [r7, #4]
	ldr	r1, [r3]
	bl	inc_mm_counter_fast
	mov	r3, r5
	mov	r1, r7
	ldr	r2, [r4, #8]
	mov	r0, r6
	bl	page_add_new_anon_rmap
	mov	r1, r8
	mov	r3, r5
	mov	r2, r5
	mov	r0, r6
	bl	mem_cgroup_commit_charge
	mov	r1, r7
	mov	r0, r6
	bl	lru_cache_add_active_or_unevictable
	b	.L9
.L24:
	.align	2
.L23:
	.word	FAULT_FLAG_WRITE
	.word	VM_FAULT_NOPAGE
	.word	CONFIG_TRANSPARENT_HUGE_PAGECACHE
	.word	VM_FAULT_FALLBACK
	.word	VM_SHARED
	.word	MM_ANONPAGES
	.size	alloc_set_pte, .-alloc_set_pte
	.comm	VM_SHARED,4,4
	.comm	VM_FAULT_NOPAGE,4,4
	.comm	VM_FAULT_FALLBACK,4,4
	.comm	MM_ANONPAGES,4,4
	.comm	FAULT_FLAG_WRITE,4,4
	.comm	CONFIG_TRANSPARENT_HUGE_PAGECACHE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
