	.file	"extr_huge_memory.c___split_huge_page.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__split_huge_page, @function
__split_huge_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
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR [rsp], rdx
	mov	QWORD PTR 40[rsp], rcx
	call	compound_head@PLT
	mov	rdi, rax
	mov	rbx, rax
	call	page_pgdat@PLT
	mov	rdi, rbx
	mov	rsi, rax
	mov	QWORD PTR 32[rsp], rax
	call	mem_cgroup_page_lruvec@PLT
	mov	rdi, rbx
	mov	r13, rax
	call	mem_cgroup_split_huge_fixup@PLT
	mov	rdi, rbx
	call	PageAnon@PLT
	test	rax, rax
	jne	.L2
.L4:
	mov	QWORD PTR 24[rsp], 0
	mov	QWORD PTR 16[rsp], 0
.L3:
	mov	eax, DWORD PTR HPAGE_PMD_NR[rip]
	lea	ebp, -1[rax]
	test	ebp, ebp
	jle	.L5
	movsx	rbp, ebp
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rdi, r15
	call	ClearPageDirty@PLT
	xor	esi, esi
	mov	rdi, r15
	call	__delete_from_page_cache@PLT
	mov	edi, DWORD PTR CONFIG_SHMEM[rip]
	call	IS_ENABLED@PLT
	test	rax, rax
	jne	.L32
.L8:
	mov	rdi, r15
	call	put_page@PLT
.L10:
	sub	rbp, 1
	test	ebp, ebp
	jle	.L5
.L12:
	mov	rdx, r13
	mov	rcx, r14
	mov	esi, ebp
	mov	rdi, rbx
	call	__split_huge_page_tail@PLT
	mov	rdx, rbp
	mov	rax, QWORD PTR [rsp]
	sal	rdx, 4
	lea	r15, [rbx+rdx]
	cmp	QWORD PTR [rbx+rdx], rax
	jge	.L33
	mov	rdi, r12
	mov	QWORD PTR 8[rsp], rdx
	call	PageAnon@PLT
	mov	rdx, QWORD PTR 8[rsp]
	test	rax, rax
	je	.L34
	mov	rdi, QWORD PTR 16[rsp]
	test	rdi, rdi
	je	.L10
	mov	rax, QWORD PTR 24[rsp]
	xor	ecx, ecx
	mov	rdx, r15
	lea	rsi, [rax+rbp]
	sub	rbp, 1
	call	__xa_store@PLT
	test	ebp, ebp
	jg	.L12
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbx
	call	ClearPageCompound@PLT
	mov	esi, DWORD PTR HPAGE_PMD_ORDER[rip]
	mov	rdi, rbx
	call	split_page_owner@PLT
	mov	rdi, rbx
	call	PageAnon@PLT
	test	rax, rax
	jne	.L35
	mov	rdi, rbx
	mov	esi, 2
	call	page_ref_add@PLT
	mov	rdi, QWORD PTR 8[rbx]
	call	xa_unlock@PLT
.L15:
	mov	rsi, QWORD PTR 40[rsp]
	mov	rdi, QWORD PTR 32[rsp]
	call	spin_unlock_irqrestore@PLT
	mov	rdi, rbx
	call	remap_page@PLT
	mov	eax, DWORD PTR HPAGE_PMD_NR[rip]
	test	eax, eax
	jle	.L1
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L18:
	cmp	r12, rbx
	je	.L17
	mov	rdi, rbx
	call	unlock_page@PLT
	mov	rdi, rbx
	call	put_page@PLT
.L17:
	add	ebp, 1
	add	rbx, 16
	cmp	DWORD PTR HPAGE_PMD_NR[rip], ebp
	jg	.L18
.L1:
	add	rsp, 56
	.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
.L32:
	.cfi_restore_state
	mov	rdi, rbx
	call	PageSwapBacked@PLT
	test	rax, rax
	je	.L8
	mov	rax, QWORD PTR 8[rbx]
	mov	esi, 1
	mov	edi, DWORD PTR 4[rax]
	call	shmem_uncharge@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L34:
	mov	rsi, QWORD PTR [rbx+rdx]
	mov	rdi, QWORD PTR 8[rbx]
	xor	ecx, ecx
	mov	rdx, r15
	call	__xa_store@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L35:
	mov	rdi, rbx
	call	PageSwapCache@PLT
	test	rax, rax
	je	.L14
	mov	rdi, rbx
	mov	esi, 2
	call	page_ref_add@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	xa_unlock@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, rbx
	call	PageSwapCache@PLT
	test	rax, rax
	je	.L4
	mov	rdi, rbx
	call	page_private@PLT
	mov	ebp, eax
	mov	edi, eax
	call	swp_offset@PLT
	mov	edi, ebp
	mov	QWORD PTR 24[rsp], rax
	call	swap_address_space@PLT
	mov	rdi, rax
	mov	QWORD PTR 16[rsp], rax
	call	xa_lock@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, rbx
	call	page_ref_inc@PLT
	jmp	.L15
	.cfi_endproc
.LFE0:
	.size	__split_huge_page, .-__split_huge_page
	.comm	HPAGE_PMD_ORDER,4,4
	.comm	HPAGE_PMD_NR,4,4
	.comm	CONFIG_SHMEM,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_huge_memory.c___split_huge_page.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__split_huge_page, %function
__split_huge_page:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	mov	r10, r2
	str	r3, [sp, #12]
	mov	r9, r1
	mov	r6, r0
	bl	compound_head
	mov	r4, r0
	bl	page_pgdat
	mov	r1, r0
	str	r0, [sp, #8]
	mov	r0, r4
	bl	mem_cgroup_page_lruvec
	mov	r8, r0
	mov	r0, r4
	bl	mem_cgroup_split_huge_fixup
	mov	r0, r4
	bl	PageAnon
	cmp	r0, #0
	bne	.L2
.L4:
	mov	r3, #0
	str	r3, [sp, #4]
	str	r3, [sp]
.L3:
	ldr	r7, .L36
	ldr	r5, [r7]
	sub	r5, r5, #1
	cmp	r5, #0
	bgt	.L12
	b	.L5
.L33:
	mov	r0, fp
	bl	ClearPageDirty
	mov	r1, #0
	mov	r0, fp
	bl	__delete_from_page_cache
	ldr	r3, .L36+4
	ldr	r0, [r3]
	bl	IS_ENABLED
	cmp	r0, #0
	bne	.L32
.L8:
	mov	r0, fp
	bl	put_page
.L10:
	subs	r5, r5, #1
	beq	.L5
.L12:
	mov	r3, r9
	mov	r2, r8
	mov	r1, r5
	mov	r0, r4
	bl	__split_huge_page_tail
	ldr	r3, [r4, r5, lsl #3]
	add	fp, r4, r5, lsl #3
	cmp	r3, r10
	bge	.L33
	mov	r0, r6
	bl	PageAnon
	subs	r3, r0, #0
	beq	.L34
	ldr	r0, [sp]
	ldr	r3, [sp, #4]
	cmp	r0, #0
	add	r1, r3, r5
	beq	.L10
	mov	r2, fp
	mov	r3, #0
	bl	__xa_store
	subs	r5, r5, #1
	bne	.L12
.L5:
	mov	r0, r4
	bl	ClearPageCompound
	ldr	r3, .L36+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	split_page_owner
	mov	r0, r4
	bl	PageAnon
	cmp	r0, #0
	bne	.L35
	mov	r1, #2
	mov	r0, r4
	bl	page_ref_add
	ldr	r0, [r4, #4]
	bl	xa_unlock
.L15:
	ldr	r1, [sp, #12]
	ldr	r0, [sp, #8]
	bl	spin_unlock_irqrestore
	mov	r0, r4
	bl	remap_page
	ldr	r3, [r7]
	cmp	r3, #0
	ble	.L1
	mov	r5, #0
.L18:
	cmp	r6, r4
	add	r5, r5, #1
	beq	.L17
	mov	r0, r4
	bl	unlock_page
	mov	r0, r4
	bl	put_page
.L17:
	ldr	r3, [r7]
	add	r4, r4, #8
	cmp	r3, r5
	bgt	.L18
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L32:
	mov	r0, r4
	bl	PageSwapBacked
	cmp	r0, #0
	beq	.L8
	ldr	r3, [r4, #4]
	mov	r1, #1
	ldr	r0, [r3, #4]
	bl	shmem_uncharge
	b	.L8
.L34:
	mov	r2, fp
	ldr	r1, [r4, r5, lsl #3]
	ldr	r0, [r4, #4]
	bl	__xa_store
	b	.L10
.L35:
	mov	r0, r4
	bl	PageSwapCache
	cmp	r0, #0
	beq	.L14
	mov	r1, #2
	mov	r0, r4
	bl	page_ref_add
	ldr	r0, [sp]
	bl	xa_unlock
	b	.L15
.L2:
	mov	r0, r4
	bl	PageSwapCache
	cmp	r0, #0
	beq	.L4
	mov	r0, r4
	bl	page_private
	mov	r5, r0
	bl	swp_offset
	mov	r3, r0
	mov	r0, r5
	str	r3, [sp, #4]
	bl	swap_address_space
	str	r0, [sp]
	bl	xa_lock
	b	.L3
.L14:
	mov	r0, r4
	bl	page_ref_inc
	b	.L15
.L37:
	.align	2
.L36:
	.word	HPAGE_PMD_NR
	.word	CONFIG_SHMEM
	.word	HPAGE_PMD_ORDER
	.size	__split_huge_page, .-__split_huge_page
	.comm	HPAGE_PMD_ORDER,4,4
	.comm	HPAGE_PMD_NR,4,4
	.comm	CONFIG_SHMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
