	.file	"extr_sys_x86_64.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	test	QWORD PTR MAP_FIXED[rip], r8
	je	.L35
.L2:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L36
	add	rsp, 56
	.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
.L35:
	.cfi_restore_state
	mov	rax, QWORD PTR current[rip]
	mov	rbx, rdx
	mov	rbp, rdi
	mov	rdi, r8
	lea	rdx, 32[rsp]
	lea	rsi, 24[rsp]
	mov	r14d, DWORD PTR sysctl_unmap_area_factor[rip]
	mov	r15, r8
	mov	r13, QWORD PTR [rax]
	call	find_start_end@PLT
	cmp	QWORD PTR 32[rsp], rbx
	jb	.L15
	test	r12, r12
	jne	.L4
.L7:
	test	QWORD PTR MAP_32BIT[rip], r15
	je	.L37
.L5:
	test	r14d, r14d
	je	.L38
.L10:
	mov	rax, QWORD PTR 24[rsp]
	mov	QWORD PTR 8[rsp], rax
	mov	QWORD PTR 8[r13], rax
.L11:
	mov	rdi, QWORD PTR 8[rsp]
	xor	edx, edx
	mov	rsi, rbp
	call	align_addr@PLT
	mov	rdi, r13
	mov	rsi, rax
	mov	r12, rax
	call	find_vma@PLT
	mov	r15, rax
	mov	rax, QWORD PTR 32[rsp]
	sub	rax, rbx
	cmp	r12, rax
	jbe	.L30
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR [r15]
	cmp	rdx, rax
	jbe	.L14
	test	r14d, r14d
	jne	.L18
	mov	rdx, QWORD PTR 0[r13]
	add	rdx, r12
	cmp	rax, rdx
	jbe	.L18
	sub	rax, r12
	mov	QWORD PTR 0[r13], rax
.L18:
	mov	rdi, QWORD PTR 8[r15]
	xor	edx, edx
	mov	rsi, rbp
	call	align_addr@PLT
	mov	r15, QWORD PTR 16[r15]
	mov	r12, rax
	mov	rax, QWORD PTR 32[rsp]
	sub	rax, rbx
	cmp	rax, r12
	jb	.L12
.L30:
	lea	rdx, [rbx+r12]
	test	r15, r15
	jne	.L13
.L14:
	mov	QWORD PTR 8[r13], rdx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L38:
	cmp	QWORD PTR 0[r13], rbx
	jb	.L10
	mov	QWORD PTR 0[r13], 0
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L15:
	mov	r12, QWORD PTR ENOMEM[rip]
	neg	r12
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r12, QWORD PTR 24[rsp]
	cmp	r12, QWORD PTR 8[rsp]
	je	.L15
	xor	edi, edi
	test	r14d, r14d
	sete	dil
	call	likely@PLT
	test	rax, rax
	je	.L16
	mov	QWORD PTR 0[r13], 0
.L16:
	mov	QWORD PTR 8[rsp], r12
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, r12
	call	PAGE_ALIGN@PLT
	mov	rdi, r13
	mov	rsi, rax
	mov	r12, rax
	call	find_vma@PLT
	mov	rdx, QWORD PTR 32[rsp]
	sub	rdx, rbx
	cmp	rdx, r12
	jb	.L7
	test	rax, rax
	je	.L8
	lea	rdx, [rbx+r12]
	cmp	rdx, QWORD PTR [rax]
	ja	.L7
.L8:
	cmp	QWORD PTR mmap_min_addr[rip], r12
	ja	.L7
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L37:
	mov	edi, DWORD PTR TIF_IA32[rip]
	call	test_thread_flag@PLT
	test	rax, rax
	jne	.L5
	mov	r15, QWORD PTR 24[rsp]
	cmp	QWORD PTR 8[r13], r15
	cmovnb	r15, QWORD PTR 8[r13]
	mov	QWORD PTR 8[rsp], r15
	jmp	.L11
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	arch_get_unmapped_area, .-arch_get_unmapped_area
	.comm	sysctl_unmap_area_factor,4,4
	.comm	mmap_min_addr,8,8
	.comm	current,8,8
	.comm	TIF_IA32,4,4
	.comm	MAP_FIXED,8,8
	.comm	MAP_32BIT,8,8
	.comm	ENOMEM,8,8
	.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_sys_x86_64.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 = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L39
	sub	sp, sp, #20
	ldr	r3, [r3]
	ldr	r5, [sp, #56]
	mov	r4, r1
	tst	r5, r3
	ldr	r3, .L39+4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	beq	.L35
.L2:
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L36
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L35:
	mov	r6, r2
	ldr	r2, .L39+8
	ldr	r3, .L39+12
	ldr	ip, [r2]
	mov	r7, r0
	add	r2, sp, #8
	mov	r0, r5
	add	r1, sp, #4
	ldr	r8, [r3]
	ldr	r9, [ip]
	bl	find_start_end
	ldr	r3, [sp, #8]
	cmp	r3, r6
	bcc	.L15
	cmp	r4, #0
	bne	.L4
.L7:
	ldr	r3, .L39+16
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L37
.L5:
	cmp	r8, #0
	beq	.L38
.L10:
	ldr	r10, [sp, #4]
	str	r10, [r9, #4]
.L9:
	mov	fp, #0
.L11:
	mov	r2, #0
	mov	r1, r7
	mov	r0, r10
	bl	align_addr
	mov	r4, r0
	mov	r0, r9
	mov	r1, r4
	bl	find_vma
	ldr	r3, [sp, #8]
	mov	r5, r0
	sub	r3, r3, r6
	cmp	r4, r3
	bls	.L30
	b	.L12
.L13:
	ldr	r0, [r5]
	add	r3, r6, r4
	cmp	r3, r0
	bls	.L14
	cmp	r8, #0
	bne	.L18
	ldr	r3, [r9]
	add	r3, r4, r3
	cmp	r0, r3
	subhi	r0, r0, r4
	strhi	r0, [r9]
.L18:
	ldr	r0, [r5, #4]
	mov	r2, #0
	mov	r1, r7
	bl	align_addr
	ldr	r3, [sp, #8]
	mov	r4, r0
	sub	r3, r3, r6
	cmp	r3, r0
	ldr	r5, [r5, #8]
	bcc	.L12
.L30:
	cmp	r5, #0
	bne	.L13
	add	r3, r6, r4
.L14:
	str	r3, [r9, #4]
	b	.L2
.L38:
	ldr	r3, [r9]
	cmp	r3, r6
	strcs	r8, [r9]
	b	.L10
.L15:
	ldr	r3, .L39+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L2
.L12:
	ldr	r4, [sp, #4]
	cmp	r4, r10
	beq	.L15
	clz	r0, r8
	lsr	r0, r0, #5
	bl	likely
	cmp	r0, #0
	mov	r10, r4
	strne	fp, [r9]
	b	.L11
.L4:
	mov	r0, r4
	bl	PAGE_ALIGN
	mov	r4, r0
	mov	r0, r9
	mov	r1, r4
	bl	find_vma
	ldr	r3, [sp, #8]
	sub	r3, r3, r6
	cmp	r3, r4
	bcc	.L7
	cmp	r0, #0
	beq	.L8
	ldr	r3, [r0]
	add	r2, r6, r4
	cmp	r2, r3
	bhi	.L7
.L8:
	ldr	r3, .L39+24
	ldr	r3, [r3]
	cmp	r3, r4
	bhi	.L7
	b	.L2
.L37:
	ldr	r3, .L39+28
	ldr	r0, [r3]
	bl	test_thread_flag
	cmp	r0, #0
	bne	.L5
	ldr	r10, [r9, #4]
	ldr	r3, [sp, #4]
	cmp	r10, r3
	movcc	r10, r3
	b	.L9
.L36:
	bl	__stack_chk_fail
.L40:
	.align	2
.L39:
	.word	MAP_FIXED
	.word	.LC0
	.word	current
	.word	sysctl_unmap_area_factor
	.word	MAP_32BIT
	.word	ENOMEM
	.word	mmap_min_addr
	.word	TIF_IA32
	.size	arch_get_unmapped_area, .-arch_get_unmapped_area
	.comm	sysctl_unmap_area_factor,4,4
	.comm	mmap_min_addr,4,4
	.comm	current,4,4
	.comm	TIF_IA32,4,4
	.comm	MAP_FIXED,4,4
	.comm	MAP_32BIT,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
