	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_text_munmap                    ## -- Begin function text_munmap
	.p2align	4, 0x90
_text_munmap:                           ## @text_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	%rdi, %rbx
	movq	_errno@GOTPCREL(%rip), %r14
	movl	$0, (%r14)
	movl	16(%rdi), %esi
	movl	20(%rdi), %edi
	callq	_FILE_WRITABLE
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	12(%rbx), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_lseek
	testq	%rax, %rax
	js	LBB0_3
## %bb.2:
	movl	12(%rbx), %edi
	movl	4(%rbx), %esi
	movl	8(%rbx), %edx
	callq	_write
LBB0_3:
	movl	4(%rbx), %edi
	callq	_free
	movl	(%r14), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_close_mmap_files
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_text_munmap                    ; -- Begin function text_munmap
	.p2align	2
_text_munmap:                           ; @text_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	x19, x0
Lloh0:
	adrp	x20, _errno@GOTPAGE
Lloh1:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	str	wzr, [x20]
	ldr	w0, [x0, #20]
	ldr	w1, [x19, #16]
	bl	_FILE_WRITABLE
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x19, #12]
Lloh2:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_lseek
	tbnz	x0, #63, LBB0_3
; %bb.2:
	ldp	w2, w0, [x19, #8]
	ldr	w1, [x19, #4]
	bl	_write
LBB0_3:
	ldr	w0, [x19, #4]
	bl	_free
	ldr	w8, [x20]
	str	w8, [x19]
	mov	x0, x19
	bl	_close_mmap_files
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
.subsections_via_symbols
