	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unmap_file
_unmap_file:                            ## @unmap_file
	.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	_write_buffer@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	_file_size@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	_MS_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_msync
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_filename@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movq	%r14, %rdx
	movq	%rax, %rcx
	callq	_fprintf
LBB0_2:
	movq	(%r12), %rdi
	movq	(%rbx), %rsi
	callq	_munmap
	movq	$0, (%r12)
	movq	$0, (%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_write_buffer,8,3               ## @write_buffer
	.comm	_file_size,8,3                  ## @file_size
	.comm	_MS_SYNC,4,2                    ## @MS_SYNC
	.comm	_errno,4,2                      ## @errno
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"profiling: %s: cannot msync: %s\n"

	.comm	_filename,8,3                   ## @filename
	.comm	_mmap_handle,8,3                ## @mmap_handle
	.no_dead_strip	_unmap_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unmap_file
_unmap_file:                            ; @unmap_file
	.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
Lloh0:
	adrp	x21, _write_buffer@GOTPAGE
Lloh1:
	ldr	x21, [x21, _write_buffer@GOTPAGEOFF]
	ldr	x0, [x21]
Lloh2:
	adrp	x22, _file_size@GOTPAGE
Lloh3:
	ldr	x22, [x22, _file_size@GOTPAGEOFF]
	ldr	x1, [x22]
Lloh4:
	adrp	x8, _MS_SYNC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MS_SYNC@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	bl	_msync
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w19, [x8]
Lloh13:
	adrp	x8, _filename@GOTPAGE
Lloh14:
	ldr	x8, [x8, _filename@GOTPAGEOFF]
Lloh15:
	ldr	x20, [x8]
	bl	_strerror
	mov	x3, x0
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_fprintf
LBB0_2:
	ldr	x0, [x21]
	ldr	x1, [x22]
	bl	_munmap
	str	xzr, [x21]
	str	xzr, [x22]
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_write_buffer,8,3               ; @write_buffer
	.comm	_file_size,8,3                  ; @file_size
	.comm	_MS_SYNC,4,2                    ; @MS_SYNC
	.comm	_errno,4,2                      ; @errno
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"profiling: %s: cannot msync: %s\n"

	.comm	_filename,8,3                   ; @filename
	.comm	_mmap_handle,8,3                ; @mmap_handle
	.no_dead_strip	_unmap_file
.subsections_via_symbols
