	.file	"extr_9083.c_do_mmap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	do_mmap, @function
do_mmap:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	ebx, esi
	imul	esi, DWORD PTR PAGE_SIZE[rip]
	xor	r9d, r9d
	mov	ecx, DWORD PTR MAP_PRIVATE[rip]
	mov	edx, DWORD PTR PROT_READ[rip]
	mov	r8d, -1
	or	ecx, DWORD PTR MAP_ANONYMOUS[rip]
	or	edx, DWORD PTR PROT_WRITE[rip]
	or	ecx, DWORD PTR MAP_FIXED[rip]
	or	edx, DWORD PTR PROT_EXEC[rip]
	call	mmap@PLT
	cmp	QWORD PTR MAP_FAILED[rip], rax
	je	.L3
	imul	ebx, DWORD PTR PAGE_SIZE[rip]
	mov	rdi, rax
	xor	esi, esi
	mov	edx, ebx
	call	memset@PLT
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L3:
	.cfi_restore_state
	mov	eax, -1
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	do_mmap, .-do_mmap
	.comm	PROT_WRITE,4,4
	.comm	PROT_READ,4,4
	.comm	PROT_EXEC,4,4
	.comm	PAGE_SIZE,4,4
	.comm	MAP_PRIVATE,4,4
	.comm	MAP_FIXED,4,4
	.comm	MAP_FAILED,8,8
	.comm	MAP_ANONYMOUS,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_9083.c_do_mmap.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_mmap, %function
do_mmap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r4, #0
	mvn	r7, #0
	ldr	r6, .L6
	ldr	r1, .L6+4
	ldr	r2, .L6+8
	ldr	ip, .L6+12
	ldr	r3, .L6+16
	ldr	r1, [r1]
	ldr	r8, [r6]
	ldr	r2, [r2]
	ldr	lr, .L6+20
	ldr	r6, .L6+24
	ldr	ip, [ip]
	ldr	r3, [r3]
	ldr	lr, [lr]
	orr	r2, r1, r2
	ldr	r1, [r6]
	sub	sp, sp, #8
	orr	r3, ip, r3
	orr	r3, r3, r8
	mul	r1, r5, r1
	orr	r2, r2, lr
	str	r4, [sp, #4]
	str	r7, [sp]
	bl	mmap
	ldr	r3, .L6+28
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L3
	ldr	r2, [r6]
	mov	r1, r4
	mul	r2, r5, r2
	bl	memset
	mov	r0, r4
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r0, r7
	b	.L1
.L7:
	.align	2
.L6:
	.word	MAP_FIXED
	.word	PROT_READ
	.word	PROT_WRITE
	.word	MAP_PRIVATE
	.word	MAP_ANONYMOUS
	.word	PROT_EXEC
	.word	PAGE_SIZE
	.word	MAP_FAILED
	.size	do_mmap, .-do_mmap
	.comm	PROT_WRITE,4,4
	.comm	PROT_READ,4,4
	.comm	PROT_EXEC,4,4
	.comm	PAGE_SIZE,4,4
	.comm	MAP_PRIVATE,4,4
	.comm	MAP_FIXED,4,4
	.comm	MAP_FAILED,4,4
	.comm	MAP_ANONYMOUS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
