	.file	"extr_sys_x86_64.c_find_start_end.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	find_start_end, @function
find_start_end:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	eax, eax
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	in_32bit_syscall@PLT
	test	rax, rax
	jne	.L2
	test	QWORD PTR MAP_32BIT[rip], r12
	jne	.L13
.L2:
	mov	edi, 1
	call	get_mmap_base@PLT
	mov	QWORD PTR [rbx], rax
	xor	eax, eax
	call	in_32bit_syscall@PLT
	test	rax, rax
	jne	.L14
	xor	edi, edi
	cmp	QWORD PTR DEFAULT_MAP_WINDOW[rip], r13
	setb	dil
	call	task_size_64bit@PLT
	mov	QWORD PTR 0[rbp], rax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	xor	eax, eax
	call	task_size_32bit@PLT
	mov	QWORD PTR 0[rbp], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	eax, 2147483648
	mov	QWORD PTR [rbx], 1073741824
	mov	QWORD PTR 0[rbp], rax
	mov	rax, QWORD PTR current[rip]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR PF_RANDOMIZE[rip], eax
	je	.L1
	mov	rdi, QWORD PTR [rbx]
	mov	esi, 33554432
	call	randomize_page@PLT
	mov	QWORD PTR [rbx], rax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	find_start_end, .-find_start_end
	.comm	current,8,8
	.comm	PF_RANDOMIZE,4,4
	.comm	MAP_32BIT,8,8
	.comm	DEFAULT_MAP_WINDOW,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_find_start_end.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_start_end, %function
find_start_end:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	mov	r6, r1
	mov	r4, r2
	mov	r5, r3
	bl	in_32bit_syscall
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L14
	ldr	r3, [r3]
	tst	r6, r3
	bne	.L13
.L2:
	mov	r0, #1
	bl	get_mmap_base
	str	r0, [r4]
	bl	in_32bit_syscall
	cmp	r0, #0
	beq	.L4
	bl	task_size_32bit
	str	r0, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r3, .L14+4
	ldr	r0, [r3]
	cmp	r0, r7
	movcs	r0, #0
	movcc	r0, #1
	bl	task_size_64bit
	str	r0, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	mov	r0, #1073741824
	mov	r3, #-2147483648
	ldr	r1, .L14+8
	ldr	r2, .L14+12
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r1, [r1]
	str	r0, [r4]
	tst	r1, r2
	str	r3, [r5]
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r1, #33554432
	ldr	r0, [r4]
	bl	randomize_page
	str	r0, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	.align	2
.L14:
	.word	MAP_32BIT
	.word	DEFAULT_MAP_WINDOW
	.word	current
	.word	PF_RANDOMIZE
	.size	find_start_end, .-find_start_end
	.comm	current,4,4
	.comm	PF_RANDOMIZE,4,4
	.comm	MAP_32BIT,4,4
	.comm	DEFAULT_MAP_WINDOW,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
