	.file	"extr_mmap.c_git_mmap.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Invalid usage of mmap when built with NO_MMAP"
	.text
	.p2align 4
	.globl	git_mmap
	.type	git_mmap, @function
git_mmap:
.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
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], r9
	test	rdi, rdi
	je	.L14
.L2:
	lea	rdi, .LC0[rip]
	call	die@PLT
.L3:
	mov	rdi, rbp
	call	xmalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L4
	xor	ebx, ebx
	test	rbp, rbp
	jne	.L9
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	js	.L15
	add	rbx, rax
	cmp	rbp, rbx
	jbe	.L1
.L9:
	mov	rax, QWORD PTR 8[rsp]
	mov	r14, rbp
	lea	r15, [r12+rbx]
	mov	edi, r13d
	sub	r14, rbx
	mov	rsi, r15
	lea	rcx, [rax+rbx]
	mov	rdx, r14
	call	xpread@PLT
	test	rax, rax
	jne	.L7
	mov	rdx, r14
	xor	esi, esi
	mov	rdi, r15
	call	memset@PLT
.L1:
	add	rsp, 24
	.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
.L14:
	.cfi_restore_state
	cmp	DWORD PTR MAP_PRIVATE[rip], ecx
	jne	.L2
	cmp	DWORD PTR PROT_READ[rip], edx
	jne	.L2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, r12
	call	free@PLT
	mov	eax, DWORD PTR EACCES[rip]
	mov	r12, QWORD PTR MAP_FAILED[rip]
	mov	DWORD PTR errno[rip], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR ENOMEM[rip]
	mov	r12, QWORD PTR MAP_FAILED[rip]
	mov	DWORD PTR errno[rip], eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	git_mmap, .-git_mmap
	.comm	errno,4,4
	.comm	PROT_READ,4,4
	.comm	MAP_PRIVATE,4,4
	.comm	MAP_FAILED,8,8
	.comm	ENOMEM,4,4
	.comm	EACCES,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_git_mmap.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid usage of mmap when built with NO_MMAP\000"
	.text
	.align	2
	.global	git_mmap
	.syntax unified
	.arm
	.fpu softvfp
	.type	git_mmap, %function
git_mmap:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	cmp	r0, #0
	mov	r5, r1
	ldr	r8, [sp, #32]
	ldr	r9, [sp, #36]
	beq	.L14
.L2:
	ldr	r0, .L16
	bl	die
.L3:
	mov	r0, r5
	bl	xmalloc
	subs	r7, r0, #0
	beq	.L4
	cmp	r5, #0
	movne	r4, #0
	bne	.L9
	b	.L1
.L7:
	blt	.L15
	cmp	r5, r4
	bls	.L1
.L9:
	add	r6, r7, r4
	sub	r10, r5, r4
	add	r3, r9, r4
	mov	r1, r6
	mov	r2, r10
	mov	r0, r8
	bl	xpread
	cmp	r0, #0
	add	r4, r4, r0
	bne	.L7
	mov	r1, r0
	mov	r2, r10
	mov	r0, r6
	bl	memset
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	ldr	r1, .L16+4
	ldr	r1, [r1]
	cmp	r1, r3
	bne	.L2
	ldr	r3, .L16+8
	ldr	r3, [r3]
	cmp	r3, r2
	bne	.L2
	b	.L3
.L15:
	mov	r0, r7
	bl	free
	ldr	r3, .L16+12
.L12:
	ldr	r1, [r3]
	ldr	r3, .L16+16
	ldr	r2, .L16+20
	ldr	r7, [r3]
	str	r1, [r2]
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	ldr	r3, .L16+24
	b	.L12
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	MAP_PRIVATE
	.word	PROT_READ
	.word	EACCES
	.word	MAP_FAILED
	.word	errno
	.word	ENOMEM
	.size	git_mmap, .-git_mmap
	.comm	errno,4,4
	.comm	PROT_READ,4,4
	.comm	MAP_PRIVATE,4,4
	.comm	MAP_FAILED,4,4
	.comm	ENOMEM,4,4
	.comm	EACCES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
