	.file	"extr_mmap.c_arch_get_unmapped_area.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	arch_get_unmapped_area
	.type	arch_get_unmapped_area, @function
arch_get_unmapped_area:
.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, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	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
	mov	rbx, rcx
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	edi, DWORD PTR CONFIG_CPU_CACHE_ALIASING[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR current[rip]
	mov	r15, QWORD PTR [rax]
	call	IS_ENABLED@PLT
	test	rax, rax
	jne	.L2
	mov	r12, rbp
	test	QWORD PTR MAP_FIXED[rip], r13
	je	.L46
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L47
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L46:
	.cfi_restore_state
	mov	rax, QWORD PTR TASK_SIZE[rip]
	cmp	r14, rax
	ja	.L12
.L43:
	test	rbp, rbp
	je	.L48
	mov	rdi, rbp
	call	PAGE_ALIGN@PLT
	mov	rdi, r15
	mov	rsi, rax
	mov	r12, rax
	call	find_vma@PLT
	mov	rcx, QWORD PTR TASK_SIZE[rip]
	mov	rdx, rcx
	sub	rdx, r14
	cmp	r12, rdx
	ja	.L19
	xor	edx, edx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR MAP_FIXED[rip]
	and	rax, r13
	test	r12, r12
	je	.L5
	test	rax, rax
	je	.L37
	mov	r12, rbp
	test	QWORD PTR MAP_SHARED[rip], r13
	je	.L1
.L9:
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	mov	eax, DWORD PTR SHMLBA[rip]
	mov	rdx, rbp
	mov	r12, rbp
	sal	rbx, cl
	sub	eax, 1
	sub	rdx, rbx
	cdqe
	test	rdx, rax
	je	.L1
	mov	r12, QWORD PTR EINVAL[rip]
	neg	r12
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	test	QWORD PTR MAP_SHARED[rip], r13
	je	.L8
	test	rax, rax
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rax, QWORD PTR TASK_SIZE[rip]
	cmp	r14, rax
	ja	.L12
	test	rbp, rbp
	jne	.L15
	mov	edx, DWORD PTR [r15]
	mov	QWORD PTR [rsp], r14
	mov	QWORD PTR 40[rsp], 0
	mov	DWORD PTR 32[rsp], edx
	mov	QWORD PTR 8[rsp], rax
.L21:
	mov	eax, DWORD PTR SHMLBA[rip]
	lea	edx, -1[rax]
	and	edx, DWORD PTR PAGE_MASK[rip]
.L20:
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	mov	rdi, rsp
	mov	DWORD PTR 16[rsp], edx
	sal	rbx, cl
	mov	QWORD PTR 24[rsp], rbx
	call	vm_unmapped_area@PLT
	mov	r12, rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r12, rbp
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR TASK_SIZE[rip]
	cmp	rax, r14
	jnb	.L43
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r12, QWORD PTR ENOMEM[rip]
	neg	r12
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L48:
	mov	edx, DWORD PTR [r15]
	mov	QWORD PTR [rsp], r14
	mov	QWORD PTR 40[rsp], 0
	mov	DWORD PTR 32[rsp], edx
	xor	edx, edx
	mov	QWORD PTR 8[rsp], rax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rsi, rbx
	mov	rdi, rbp
	call	COLOUR_ALIGN@PLT
	mov	rdi, r15
	mov	rsi, rax
	mov	r12, rax
	call	find_vma@PLT
	mov	rcx, QWORD PTR TASK_SIZE[rip]
	mov	rdx, rcx
	sub	rdx, r14
	cmp	r12, rdx
	ja	.L49
	mov	edx, 1
.L17:
	test	rax, rax
	je	.L1
	lea	rsi, [r14+r12]
	cmp	rsi, QWORD PTR [rax]
	jbe	.L1
	mov	eax, DWORD PTR [r15]
	mov	QWORD PTR [rsp], r14
	mov	QWORD PTR 40[rsp], 0
	mov	DWORD PTR 32[rsp], eax
	mov	QWORD PTR 8[rsp], rcx
	test	edx, edx
	jne	.L21
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L49:
	mov	eax, DWORD PTR [r15]
	mov	QWORD PTR [rsp], r14
	mov	QWORD PTR 40[rsp], 0
	mov	DWORD PTR 32[rsp], eax
	mov	QWORD PTR 8[rsp], rcx
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L19:
	mov	eax, DWORD PTR [r15]
	mov	QWORD PTR [rsp], r14
	xor	edx, edx
	mov	QWORD PTR 40[rsp], 0
	mov	DWORD PTR 32[rsp], eax
	mov	QWORD PTR 8[rsp], rcx
	jmp	.L20
.L47:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	arch_get_unmapped_area, .-arch_get_unmapped_area
	.comm	current,8,8
	.comm	TASK_SIZE,8,8
	.comm	SHMLBA,4,4
	.comm	PAGE_SHIFT,8,8
	.comm	PAGE_MASK,4,4
	.comm	MAP_SHARED,8,8
	.comm	MAP_FIXED,8,8
	.comm	ENOMEM,8,8
	.comm	EINVAL,8,8
	.comm	CONFIG_CPU_CACHE_ALIASING,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_mmap.c_arch_get_unmapped_area.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	arch_get_unmapped_area
	.syntax unified
	.arm
	.fpu softvfp
	.type	arch_get_unmapped_area, %function
arch_get_unmapped_area:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r7, r0
	ldr	r0, .L47
	mov	r4, r1
	ldr	r1, .L47+4
	ldr	ip, [r0]
	mov	r6, r3
	ldr	r3, .L47+8
	sub	sp, sp, #36
	ldr	r0, [r1]
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r5, r2
	ldr	r9, [ip]
	ldr	r8, [sp, #64]
	bl	IS_ENABLED
	cmp	r0, #0
	ldr	r3, .L47+12
	bne	.L2
	ldr	r3, [r3]
	tst	r8, r3
	beq	.L44
.L1:
	ldr	r3, .L47+8
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L45
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L44:
	ldr	r7, .L47+16
	ldr	r3, [r7]
	cmp	r5, r3
	bhi	.L12
.L41:
	cmp	r4, #0
	beq	.L46
	mov	r0, r4
	bl	PAGE_ALIGN
	mov	r4, r0
	mov	r0, r9
	mov	r1, r4
	bl	find_vma
	ldr	r3, [r7]
	sub	r2, r3, r5
	cmp	r4, r2
	mov	r2, #0
	bhi	.L19
.L17:
	cmp	r0, #0
	beq	.L1
	ldr	r3, [r0]
	add	r1, r5, r4
	cmp	r1, r3
	bls	.L1
	mov	r3, #0
	ldr	r0, [r9]
	ldr	r1, [r7]
	cmp	r2, r3
	str	r0, [sp, #20]
	str	r1, [sp, #8]
	str	r5, [sp, #4]
	str	r3, [sp, #24]
	bne	.L21
	b	.L20
.L2:
	ldr	r3, [r3]
	cmp	r7, #0
	and	r3, r3, r8
	beq	.L5
	cmp	r3, #0
	beq	.L35
	ldr	r3, .L47+20
	ldr	r3, [r3]
	tst	r8, r3
	beq	.L1
.L9:
	ldr	r3, .L47+24
	ldr	r2, .L47+28
	ldr	r3, [r3]
	ldr	r2, [r2]
	sub	r6, r4, r6, lsl r3
	sub	r2, r2, #1
	tst	r6, r2
	ldrne	r3, .L47+32
	ldrne	r4, [r3]
	rsbne	r4, r4, #0
	b	.L1
.L5:
	ldr	r2, .L47+20
	ldr	r2, [r2]
	tst	r8, r2
	beq	.L8
	cmp	r3, #0
	bne	.L9
.L35:
	ldr	r7, .L47+16
	ldr	r3, [r7]
	cmp	r5, r3
	bhi	.L12
	cmp	r4, #0
	beq	.L38
	mov	r0, r4
	mov	r1, r6
	bl	COLOUR_ALIGN
	mov	r4, r0
	mov	r0, r9
	mov	r1, r4
	bl	find_vma
	ldr	r3, [r7]
	sub	r2, r3, r5
	cmp	r4, r2
	bls	.L27
.L38:
	mov	r2, #0
	ldr	r1, [r9]
	str	r5, [sp, #4]
	str	r1, [sp, #20]
	str	r3, [sp, #8]
	str	r2, [sp, #24]
.L21:
	ldr	r2, .L47+28
	ldr	r3, .L47+36
	ldr	r2, [r2]
	ldr	r3, [r3]
	sub	r2, r2, #1
	and	r2, r2, r3
	b	.L20
.L8:
	cmp	r3, #0
	bne	.L1
	ldr	r7, .L47+16
	ldr	r3, [r7]
	cmp	r3, r5
	bcs	.L41
.L12:
	ldr	r3, .L47+40
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L46:
	mov	r2, #0
.L19:
	ldr	r1, [r9]
	str	r5, [sp, #4]
	str	r1, [sp, #20]
	str	r3, [sp, #8]
	str	r2, [sp, #24]
.L20:
	ldr	r3, .L47+24
	add	r0, sp, #4
	ldr	r3, [r3]
	str	r2, [sp, #12]
	lsl	r6, r6, r3
	str	r6, [sp, #16]
	bl	vm_unmapped_area
	mov	r4, r0
	b	.L1
.L27:
	mov	r2, #1
	b	.L17
.L45:
	bl	__stack_chk_fail
.L48:
	.align	2
.L47:
	.word	current
	.word	CONFIG_CPU_CACHE_ALIASING
	.word	.LC0
	.word	MAP_FIXED
	.word	TASK_SIZE
	.word	MAP_SHARED
	.word	PAGE_SHIFT
	.word	SHMLBA
	.word	EINVAL
	.word	PAGE_MASK
	.word	ENOMEM
	.size	arch_get_unmapped_area, .-arch_get_unmapped_area
	.comm	current,4,4
	.comm	TASK_SIZE,4,4
	.comm	SHMLBA,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	PAGE_MASK,4,4
	.comm	MAP_SHARED,4,4
	.comm	MAP_FIXED,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	CONFIG_CPU_CACHE_ALIASING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
