	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_git_mmap                       ## -- Begin function git_mmap
	.p2align	4, 0x90
_git_mmap:                              ## @git_mmap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	testq	%rdi, %rdi
	jne	LBB0_3
## %bb.1:
	movq	_MAP_PRIVATE@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	je	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_die
LBB0_4:
	movq	%r13, %rdi
	callq	_xmalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, %r12
	testq	%r13, %r13
	je	LBB0_14
## %bb.6:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r12,%r15), %r14
	movq	%r13, %rbx
	subq	%r15, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r15,%rax), %rcx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_xpread
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	js	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	addq	%rax, %r15
	cmpq	%r13, %r15
	jb	LBB0_9
	jmp	LBB0_14
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_10:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_memset
	jmp	LBB0_14
LBB0_12:
	movq	%r12, %rdi
	callq	_free
	movq	_EACCES@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_MAP_FAILED@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_14:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAP_PRIVATE,4,2                ## @MAP_PRIVATE
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid usage of mmap when built with NO_MMAP"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_errno,4,2                      ## @errno
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
	.comm	_EACCES,4,2                     ## @EACCES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_git_mmap                       ; -- Begin function git_mmap
	.p2align	2
_git_mmap:                              ; @git_mmap
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x5
	mov	x21, x4
	mov	x22, x1
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MAP_PRIVATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAP_PRIVATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PROT_READ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PROT_READ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w3
	ccmp	w9, w2, #0, eq
	b.eq	LBB0_3
LBB0_2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_3:
	mov	x0, x22
	bl	_xmalloc
	cbz	x0, LBB0_9
; %bb.4:
	mov	x19, x0
	cbz	x22, LBB0_13
; %bb.5:
	mov	x25, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x24, x19, x25
	sub	x23, x22, x25
	add	x3, x25, x20
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	bl	_xpread
	cbz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	tbnz	x0, #63, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x25, x0, x25
	cmp	x25, x22
	b.lo	LBB0_6
	b	LBB0_13
LBB0_9:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
	mov	x0, x24
	mov	w1, #0
	mov	x2, x23
	bl	_memset
	b	LBB0_13
LBB0_11:
	mov	x0, x19
	bl	_free
Lloh10:
	adrp	x8, _EACCES@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _errno@GOTPAGE
Lloh13:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh14:
	str	w8, [x9]
Lloh15:
	adrp	x8, _MAP_FAILED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MAP_FAILED@GOTPAGEOFF]
Lloh17:
	ldr	x19, [x8]
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MAP_PRIVATE,4,2                ; @MAP_PRIVATE
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid usage of mmap when built with NO_MMAP"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_errno,4,2                      ; @errno
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
	.comm	_EACCES,4,2                     ; @EACCES
.subsections_via_symbols
