	.file	"extr_syscalls.c_do_mmap2.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	do_mmap2, @function
do_mmap2:
.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, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	mov	rsi, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	rdi, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r9
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR EINVAL[rip]
	mov	QWORD PTR [rsp], r8
	mov	r15d, DWORD PTR 80[rsp]
	neg	rax
	mov	QWORD PTR 8[rsp], rax
	call	arch_validate_prot@PLT
	test	eax, eax
	je	.L1
	test	r15d, r15d
	mov	r8, QWORD PTR [rsp]
	je	.L3
	mov	eax, 1
	mov	ecx, r15d
	sal	eax, cl
	sub	eax, 1
	cdqe
	test	rax, rbx
	jne	.L1
	shr	rbx, cl
.L3:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	r9, rbx
	mov	rcx, r14
	mov	rdx, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	rsi, r13
	mov	rdi, rbp
	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
	jmp	ksys_mmap_pgoff@PLT
.L2:
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rsp]
	add	rsp, 24
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE0:
	.size	do_mmap2, .-do_mmap2
	.comm	EINVAL,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_syscalls.c_do_mmap2.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_mmap2, %function
do_mmap2:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r2
	ldr	r2, .L12
	sub	sp, sp, #4
	mov	r4, r0
	mov	r6, r1
	mov	r1, r0
	mov	r0, r5
	ldr	r8, [r2]
	mov	r7, r3
	ldr	fp, [sp, #40]
	ldr	r9, [sp, #44]
	ldr	r10, [sp, #48]
	bl	arch_validate_prot
	cmp	r0, #0
	rsb	r8, r8, #0
	beq	.L1
	cmp	r10, #0
	beq	.L3
	mvn	r3, #0
	bics	r3, r9, r3, lsl r10
	bne	.L1
	lsr	r9, r9, r10
.L3:
	mov	r3, r7
	mov	r2, r5
	mov	r1, r6
	mov	r0, r4
	str	r9, [sp, #44]
	str	fp, [sp, #40]
	add	sp, sp, #4
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	ksys_mmap_pgoff
.L2:
.L1:
	mov	r0, r8
	add	sp, sp, #4
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	.align	2
.L12:
	.word	EINVAL
	.size	do_mmap2, .-do_mmap2
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
