	.file	"extr_nommu.c_split_vma.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	split_vma
	.type	split_vma, @function
split_vma:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR 40[rsi], 0
	jne	.L26
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	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 sysctl_max_map_count[rip]
	cmp	QWORD PTR [rdi], rax
	jl	.L27
.L24:
	mov	eax, DWORD PTR ENOMEM[rip]
	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
	neg	eax
	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
.L27:
	.cfi_restore_state
	mov	edi, DWORD PTR vm_region_jar[rip]
	mov	rbp, rsi
	mov	rbx, rdx
	mov	r13d, ecx
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	call	kmem_cache_alloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L24
	mov	rdi, rbp
	call	vm_area_dup@PLT
	mov	r14, rax
	test	rax, rax
	je	.L28
	mov	rax, QWORD PTR 24[rbp]
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	mov	rdx, rbx
	sub	rdx, QWORD PTR 0[rbp]
	movdqu	xmm0, XMMWORD PTR [rax]
	shr	rdx, cl
	movups	XMMWORD PTR [r12], xmm0
	movdqu	xmm1, XMMWORD PTR 16[rax]
	mov	rax, QWORD PTR 32[r14]
	movups	XMMWORD PTR 16[r12], xmm1
	mov	QWORD PTR 24[r14], r12
	test	r13d, r13d
	je	.L7
	mov	QWORD PTR 8[r14], rbx
	mov	QWORD PTR 8[r12], rbx
	mov	QWORD PTR [r12], rbx
	test	rax, rax
	je	.L9
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L9
	mov	QWORD PTR 8[rsp], rdx
	mov	rdi, r14
	call	rax
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_def_cfa_offset 80
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	add	rdx, QWORD PTR 16[r14]
	mov	QWORD PTR [r14], rbx
	mov	QWORD PTR 16[r12], rbx
	mov	QWORD PTR 16[r14], rdx
	mov	QWORD PTR 24[r12], rdx
	test	rax, rax
	je	.L23
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L23
	mov	rdi, r14
	call	rax
.L23:
	mov	rdi, rbp
	call	delete_vma_from_mm@PLT
	lea	rdi, nommu_region_sem[rip]
	call	down_write@PLT
	mov	rdi, QWORD PTR 24[rbp]
	call	delete_nommu_region@PLT
	mov	rdi, QWORD PTR 24[rbp]
	mov	QWORD PTR 8[rbp], rbx
	mov	QWORD PTR 8[rdi], rbx
	mov	QWORD PTR [rdi], rbx
.L12:
	call	add_nommu_region@PLT
	mov	rdi, QWORD PTR 24[r14]
	call	add_nommu_region@PLT
	lea	rdi, nommu_region_sem[rip]
	call	up_write@PLT
	mov	rsi, rbp
	mov	rdi, r15
	call	add_vma_to_mm@PLT
	mov	rsi, r14
	mov	rdi, r15
	call	add_vma_to_mm@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L9:
	.cfi_restore_state
	mov	QWORD PTR 8[rsp], rdx
.L22:
	mov	rdi, rbp
	call	delete_vma_from_mm@PLT
	lea	rdi, nommu_region_sem[rip]
	call	down_write@PLT
	mov	rdi, QWORD PTR 24[rbp]
	call	delete_nommu_region@PLT
	mov	rdi, QWORD PTR 24[rbp]
	mov	rdx, QWORD PTR 8[rsp]
	mov	QWORD PTR 0[rbp], rbx
	add	rdx, QWORD PTR 16[rbp]
	mov	QWORD PTR 16[rdi], rbx
	mov	QWORD PTR 16[rbp], rdx
	mov	QWORD PTR 24[rdi], rdx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L28:
	mov	edi, DWORD PTR vm_region_jar[rip]
	mov	rsi, r12
	call	kmem_cache_free@PLT
	jmp	.L24
	.cfi_endproc
.LFE0:
	.size	split_vma, .-split_vma
	.comm	vm_region_jar,4,4
	.comm	sysctl_max_map_count,8,8
	.comm	nommu_region_sem,4,4
	.comm	PAGE_SHIFT,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_nommu.c_split_vma.c"
	.text
	.align	2
	.global	split_vma
	.syntax unified
	.arm
	.fpu softvfp
	.type	split_vma, %function
split_vma:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, [r1, #20]
	cmp	r5, #0
	bne	.L22
	mov	r10, r3
	ldr	r3, .L26
	mov	r6, r2
	ldr	r3, [r3]
	ldr	r2, [r0]
	mov	r7, r0
	cmp	r2, r3
	blt	.L24
.L22:
	ldr	r3, .L26+4
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	ldr	r3, .L26+8
	ldr	fp, .L26+12
	mov	r4, r1
	ldr	r0, [fp]
	ldr	r1, [r3]
	bl	kmem_cache_alloc
	subs	r8, r0, #0
	beq	.L22
	mov	r0, r4
	bl	vm_area_dup
	subs	r9, r0, #0
	beq	.L25
	ldr	r2, .L26+16
	ldr	r3, [r4, #12]
	ldr	ip, [r2]
	ldr	r2, [r4]
	cmp	r10, #0
	sub	r10, r6, r2
	lsr	r10, r10, ip
	ldm	r3, {r0, r1, r2, r3}
	stm	r8, {r0, r1, r2, r3}
	ldr	r3, [r9, #16]
	str	r8, [r9, #12]
	beq	.L7
	cmp	r3, #0
	str	r6, [r9, #4]
	str	r6, [r8, #4]
	str	r6, [r8]
	beq	.L20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L20
	mov	r0, r9
	blx	r3
.L20:
	mov	r0, r4
	bl	delete_vma_from_mm
	ldr	r0, .L26+20
	bl	down_write
	ldr	r0, [r4, #12]
	bl	delete_nommu_region
	ldr	r3, [r4, #8]
	ldr	r0, [r4, #12]
	add	r10, r10, r3
	str	r6, [r4]
	str	r6, [r0, #8]
	str	r10, [r4, #8]
	str	r10, [r0, #12]
.L12:
	bl	add_nommu_region
	ldr	r0, [r9, #12]
	bl	add_nommu_region
	ldr	r0, .L26+20
	bl	up_write
	mov	r1, r4
	mov	r0, r7
	bl	add_vma_to_mm
	mov	r1, r9
	mov	r0, r7
	bl	add_vma_to_mm
	mov	r0, r5
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	ldr	r2, [r9, #8]
	cmp	r3, #0
	add	r10, r10, r2
	str	r6, [r9]
	str	r6, [r8, #8]
	str	r10, [r9, #8]
	str	r10, [r8, #12]
	beq	.L21
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L21
	mov	r0, r9
	blx	r3
.L21:
	mov	r0, r4
	bl	delete_vma_from_mm
	ldr	r0, .L26+20
	bl	down_write
	ldr	r0, [r4, #12]
	bl	delete_nommu_region
	ldr	r0, [r4, #12]
	str	r6, [r4, #4]
	str	r6, [r0, #4]
	str	r6, [r0]
	b	.L12
.L25:
	mov	r1, r8
	ldr	r0, [fp]
	bl	kmem_cache_free
	b	.L22
.L27:
	.align	2
.L26:
	.word	sysctl_max_map_count
	.word	ENOMEM
	.word	GFP_KERNEL
	.word	vm_region_jar
	.word	PAGE_SHIFT
	.word	nommu_region_sem
	.size	split_vma, .-split_vma
	.comm	vm_region_jar,4,4
	.comm	sysctl_max_map_count,4,4
	.comm	nommu_region_sem,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
