	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_munmap                     ## -- Begin function sys_munmap
	.p2align	4, 0x90
_sys_munmap:                            ## @sys_munmap
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_STRACE
	movl	%ebx, %edi
	callq	_PGOFFSET
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	__EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_4
LBB0_2:
	testq	%r14, %r14
	je	LBB0_1
## %bb.3:
	movq	_current@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax), %rdi
	callq	_write_wrlock
	movq	(%r12), %rax
	movq	(%rax), %r15
	movl	%ebx, %edi
	callq	_PAGE
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_PAGE_ROUND_UP
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_pt_unmap_always
	movl	%eax, %ebx
	movq	(%r12), %rax
	movq	(%rax), %rdi
	callq	_write_wrunlock
	movq	__EINVAL@GOTPCREL(%rip), %rax
	sarl	$31, %ebx
	andl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"munmap(0x%x, 0x%x)"

	.comm	__EINVAL,4,2                    ## @_EINVAL
	.comm	_current,8,3                    ## @current
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_munmap                     ; -- Begin function sys_munmap
	.p2align	2
_sys_munmap:                            ; @sys_munmap
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_STRACE
	mov	x0, x20
	bl	_PGOFFSET
	cbz	x0, LBB0_2
LBB0_1:
Lloh2:
	adrp	x8, __EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, __EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_4
LBB0_2:
	cbz	x19, LBB0_1
; %bb.3:
Lloh5:
	adrp	x22, _current@GOTPAGE
Lloh6:
	ldr	x22, [x22, _current@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x0, [x8]
	bl	_write_wrlock
	ldr	x8, [x22]
	ldr	x21, [x8]
	mov	x0, x20
	bl	_PAGE
	mov	x20, x0
	mov	x0, x19
	bl	_PAGE_ROUND_UP
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_pt_unmap_always
	mov	x19, x0
	ldr	x8, [x22]
	ldr	x0, [x8]
	bl	_write_wrunlock
Lloh7:
	adrp	x8, __EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, __EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	and	w0, w8, w19, asr #31
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"munmap(0x%x, 0x%x)"

	.comm	__EINVAL,4,2                    ; @_EINVAL
	.comm	_current,8,3                    ; @current
.subsections_via_symbols
