	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmap_common
_mmap_common:                           ## @mmap_common
	.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
	movl	%r8d, %r15d
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r9, (%rsp)
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	movq	%r12, %r8
	movl	%r15d, %r9d
	callq	_STRACE
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	_P_RWX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	testq	%r13, %rax
	je	LBB0_3
LBB0_1:
	movq	__EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_MMAP_PRIVATE@GOTPCREL(%rip), %rax
	testq	%r12, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_MMAP_SHARED@GOTPCREL(%rip), %rax
	testq	%r12, (%rax)
	jne	LBB0_1
LBB0_5:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	callq	_write_wrlock
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	movl	%r15d, %r8d
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	callq	_do_mmap
	movl	%eax, %ebx
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	callq	_write_wrunlock
	movl	%ebx, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mmap(0x%x, 0x%x, 0x%x, 0x%x, %d, %d)"

	.comm	__EINVAL,4,2                    ## @_EINVAL
	.comm	_P_RWX,8,3                      ## @P_RWX
	.comm	_MMAP_PRIVATE,8,3               ## @MMAP_PRIVATE
	.comm	_MMAP_SHARED,8,3                ## @MMAP_SHARED
	.comm	_current,8,3                    ## @current
	.no_dead_strip	_mmap_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmap_common
_mmap_common:                           ; @mmap_common
	.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	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	mov	x6, x19
	bl	_STRACE
	cbz	x23, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _P_RWX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _P_RWX@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	bics	xzr, x22, x8
	b.eq	LBB0_4
LBB0_2:
Lloh5:
	adrp	x8, __EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, __EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
LBB0_3:
	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
LBB0_4:
Lloh8:
	adrp	x8, _MMAP_PRIVATE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MMAP_PRIVATE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _MMAP_SHARED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MMAP_SHARED@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	tst	x8, x21
	b.ne	LBB0_2
LBB0_6:
Lloh14:
	adrp	x25, _current@GOTPAGE
Lloh15:
	ldr	x25, [x25, _current@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	x0, [x8]
	bl	_write_wrlock
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	bl	_do_mmap
	mov	x19, x0
	ldr	x8, [x25]
	ldr	x0, [x8]
	bl	_write_wrunlock
	mov	x0, x19
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mmap(0x%x, 0x%x, 0x%x, 0x%x, %d, %d)"

	.comm	__EINVAL,4,2                    ; @_EINVAL
	.comm	_P_RWX,8,3                      ; @P_RWX
	.comm	_MMAP_PRIVATE,8,3               ; @MMAP_PRIVATE
	.comm	_MMAP_SHARED,8,3                ; @MMAP_SHARED
	.comm	_current,8,3                    ; @current
	.no_dead_strip	_mmap_common
.subsections_via_symbols
