	.file	"extr_mmap.c_arch_get_unmapped_area_common.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	arch_get_unmapped_area_common, @function
arch_get_unmapped_area_common:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	xor	edi, edi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	DWORD PTR 12[rsp], r9d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR TASK_SIZE[rip], rdx
	mov	rax, QWORD PTR current[rip]
	setb	dil
	mov	r14, QWORD PTR [rax]
	call	unlikely@PLT
	test	rax, rax
	jne	.L32
	test	QWORD PTR MAP_FIXED[rip], rbx
	je	.L4
	mov	rax, QWORD PTR TASK_SIZE[rip]
	sub	rax, r13
	cmp	rax, r12
	jb	.L6
	test	QWORD PTR MAP_SHARED[rip], rbx
	je	.L1
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	mov	rax, r12
	sal	rbp, cl
	sub	rax, rbp
	test	QWORD PTR shm_align_mask[rip], rax
	je	.L1
.L6:
	mov	r12, QWORD PTR EINVAL[rip]
	neg	r12
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L33
	add	rsp, 88
	.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
.L4:
	.cfi_restore_state
	test	r15, r15
	je	.L34
.L7:
	test	r12, r12
	jne	.L35
.L10:
	mov	QWORD PTR 16[rsp], r13
.L14:
	mov	rbx, QWORD PTR PAGE_MASK[rip]
	and	rbx, QWORD PTR shm_align_mask[rip]
.L12:
	mov	rcx, QWORD PTR PAGE_SHIFT[rip]
	mov	rax, QWORD PTR [r14]
	mov	QWORD PTR 24[rsp], rbx
	mov	ebx, DWORD PTR 12[rsp]
	sal	rbp, cl
	cmp	DWORD PTR DOWN[rip], ebx
	mov	QWORD PTR 32[rsp], rbp
	lea	rbp, 16[rsp]
	je	.L36
.L13:
	mov	QWORD PTR 40[rsp], rax
	mov	rax, QWORD PTR TASK_SIZE[rip]
	mov	rdi, rbp
	mov	QWORD PTR 56[rsp], 0
	mov	QWORD PTR 48[rsp], rax
	call	vm_unmapped_area@PLT
	mov	r12, rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	mov	r12, QWORD PTR ENOMEM[rip]
	neg	r12
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L35:
	mov	rdi, r12
	mov	rsi, rbp
	mov	r15d, 1
	call	COLOUR_ALIGN@PLT
	mov	rdi, r14
	mov	rsi, rax
	mov	r12, rax
	call	find_vma@PLT
	mov	rdi, rax
	mov	rax, QWORD PTR TASK_SIZE[rip]
	sub	rax, r13
	cmp	rax, r12
	jb	.L10
.L11:
	test	rdi, rdi
	je	.L1
	lea	rbx, 0[r13+r12]
	call	vm_start_gap@PLT
	cmp	rbx, rax
	jbe	.L1
	mov	QWORD PTR 16[rsp], r13
	test	r15d, r15d
	jne	.L14
	xor	ebx, ebx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L34:
	and	rbx, QWORD PTR MAP_SHARED[rip]
	jne	.L7
	test	r12, r12
	je	.L9
	mov	rdi, r12
	call	PAGE_ALIGN@PLT
	mov	rdi, r14
	mov	rsi, rax
	mov	r12, rax
	call	find_vma@PLT
	mov	rdi, rax
	mov	rax, QWORD PTR TASK_SIZE[rip]
	sub	rax, r13
	cmp	rax, r12
	jnb	.L37
.L9:
	mov	QWORD PTR 16[rsp], r13
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L36:
	mov	rdx, QWORD PTR VM_UNMAPPED_AREA_TOPDOWN[rip]
	mov	rdi, rbp
	mov	QWORD PTR 48[rsp], rax
	mov	QWORD PTR 56[rsp], rdx
	mov	rdx, QWORD PTR PAGE_SIZE[rip]
	mov	QWORD PTR 40[rsp], rdx
	call	vm_unmapped_area@PLT
	mov	r12, rax
	mov	rax, QWORD PTR PAGE_MASK[rip]
	not	rax
	test	rax, r12
	je	.L1
	mov	rax, QWORD PTR [r14]
	jmp	.L13
.L37:
	xor	r15d, r15d
	jmp	.L11
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	arch_get_unmapped_area_common, .-arch_get_unmapped_area_common
	.comm	shm_align_mask,8,8
	.comm	current,8,8
	.comm	VM_UNMAPPED_AREA_TOPDOWN,8,8
	.comm	TASK_SIZE,8,8
	.comm	PAGE_SIZE,8,8
	.comm	PAGE_SHIFT,8,8
	.comm	PAGE_MASK,8,8
	.comm	MAP_SHARED,8,8
	.comm	MAP_FIXED,8,8
	.comm	ENOMEM,8,8
	.comm	EINVAL,8,8
	.comm	DOWN,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_common.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	arch_get_unmapped_area_common, %function
arch_get_unmapped_area_common:
	@ args = 8, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r2
	ldr	r8, .L37
	ldr	r2, .L37+4
	mov	r7, r0
	ldr	r0, [r8]
	ldr	ip, [r2]
	cmp	r0, r5
	mov	r6, r3
	ldr	r3, .L37+8
	movcs	r0, #0
	movcc	r0, #1
	sub	sp, sp, #32
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	r9, [ip]
	bl	unlikely
	subs	r10, r0, #0
	bne	.L32
	ldr	r3, .L37+12
	ldr	r2, [sp, #64]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L4
	ldr	r2, [r8]
	sub	r5, r2, r5
	cmp	r5, r4
	bcc	.L6
	ldr	r3, .L37+16
	ldr	r2, [sp, #64]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L1
	ldr	r3, .L37+20
	ldr	r2, .L37+24
	ldr	r3, [r3]
	ldr	r2, [r2]
	sub	r3, r4, r6, lsl r3
	tst	r3, r2
	beq	.L1
.L6:
	ldr	r3, .L37+28
	ldr	r0, [r3]
	rsb	r4, r0, #0
.L1:
	ldr	r3, .L37+8
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L33
	mov	r0, r4
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	cmp	r7, #0
	beq	.L34
.L7:
	cmp	r4, #0
	bne	.L35
.L10:
	str	r5, [sp, #4]
.L14:
	ldr	r2, .L37+32
	ldr	r3, .L37+24
	ldr	r7, [r2]
	ldr	r3, [r3]
	and	r7, r7, r3
.L12:
	ldr	r3, .L37+20
	ldr	r2, .L37+36
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [sp, #68]
	lsl	r3, r6, r3
	cmp	r2, r1
	str	r3, [sp, #12]
	str	r7, [sp, #8]
	ldr	r3, [r9]
	addne	r5, sp, #4
	beq	.L36
.L13:
	mov	r2, #0
	ldr	r1, [r8]
	mov	r0, r5
	str	r1, [sp, #20]
	str	r3, [sp, #16]
	str	r2, [sp, #24]
	bl	vm_unmapped_area
	mov	r4, r0
	b	.L1
.L32:
	ldr	r3, .L37+40
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L1
.L35:
	mov	r0, r4
	mov	r1, r6
	bl	COLOUR_ALIGN
	mov	r4, r0
	mov	r0, r9
	mov	r1, r4
	bl	find_vma
	ldr	r3, [r8]
	sub	r3, r3, r5
	cmp	r3, r4
	movcs	r10, #1
	bcc	.L10
.L11:
	cmp	r0, #0
	beq	.L1
	bl	vm_start_gap
	add	r3, r5, r4
	cmp	r3, r0
	bls	.L1
	cmp	r10, #0
	moveq	r7, r10
	str	r5, [sp, #4]
	beq	.L12
	b	.L14
.L34:
	ldr	r3, .L37+16
	ldr	r7, [r3]
	ldr	r3, [sp, #64]
	ands	r7, r3, r7
	bne	.L7
	cmp	r4, #0
	beq	.L9
	mov	r0, r4
	bl	PAGE_ALIGN
	mov	r4, r0
	mov	r0, r9
	mov	r1, r4
	bl	find_vma
	ldr	r3, [r8]
	sub	r3, r3, r5
	cmp	r3, r4
	bcs	.L11
.L9:
	str	r5, [sp, #4]
	b	.L12
.L36:
	ldr	r1, .L37+44
	ldr	r2, .L37+48
	ldr	r1, [r1]
	ldr	r2, [r2]
	add	r5, sp, #4
	mov	r0, r5
	str	r3, [sp, #20]
	str	r1, [sp, #24]
	str	r2, [sp, #16]
	bl	vm_unmapped_area
	ldr	r3, .L37+32
	mov	r4, r0
	ldr	r3, [r3]
	bics	r3, r0, r3
	beq	.L1
	ldr	r3, [r9]
	b	.L13
.L33:
	bl	__stack_chk_fail
.L38:
	.align	2
.L37:
	.word	TASK_SIZE
	.word	current
	.word	.LC0
	.word	MAP_FIXED
	.word	MAP_SHARED
	.word	PAGE_SHIFT
	.word	shm_align_mask
	.word	EINVAL
	.word	PAGE_MASK
	.word	DOWN
	.word	ENOMEM
	.word	VM_UNMAPPED_AREA_TOPDOWN
	.word	PAGE_SIZE
	.size	arch_get_unmapped_area_common, .-arch_get_unmapped_area_common
	.comm	shm_align_mask,4,4
	.comm	current,4,4
	.comm	VM_UNMAPPED_AREA_TOPDOWN,4,4
	.comm	TASK_SIZE,4,4
	.comm	PAGE_SIZE,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	DOWN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
