	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_plat_munmap                    ## -- Begin function plat_munmap
	.p2align	4, 0x90
_plat_munmap:                           ## @plat_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_munmap
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	_HUGETLB_PAGESIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	-1(%rax), %rcx
	testq	%rbx, %rcx
	je	LBB0_4
## %bb.2:
	leaq	(%rbx,%rax), %rcx
	decq	%rcx
	negl	%eax
	movslq	%eax, %rbx
	andq	%rcx, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_munmap
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HUGETLB_PAGESIZE,4,2           ## @HUGETLB_PAGESIZE
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"munmap(%p, %zu) failed: %d\n"

	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_plat_munmap                    ; -- Begin function plat_munmap
	.p2align	2
_plat_munmap:                           ; @plat_munmap
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_munmap
	cbz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _HUGETLB_PAGESIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HUGETLB_PAGESIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	sub	x9, x8, #1
	tst	x9, x20
	b.eq	LBB0_3
; %bb.2:
	add	x9, x20, x8
	sub	x9, x9, #1
	neg	w8, w8
	sxtw	x8, w8
	and	x20, x9, x8
	mov	x0, x19
	mov	x1, x20
	bl	_munmap
	cbz	w0, LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
Lloh10:
	ldr	w4, [x8]
	mov	x2, x19
	mov	x3, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_fprintf
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HUGETLB_PAGESIZE,4,2           ; @HUGETLB_PAGESIZE
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"munmap(%p, %zu) failed: %d\n"

	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
