	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function image_file_unmap
_image_file_unmap:                      ## @image_file_unmap
	.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, %r14
	movq	_secsz@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_image_swap_pgsz@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	cmpq	%rbx, %rax
	cmovaq	%rax, %rbx
	leaq	(%rsi,%rbx), %rax
	decq	%rax
	negq	%rbx
	andq	%rax, %rbx
	movq	_MADV_DONTNEED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_madvise
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_warn
LBB0_2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_munmap
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_secsz,8,3                      ## @secsz
	.comm	_image_swap_pgsz,8,3            ## @image_swap_pgsz
	.comm	_MADV_DONTNEED,4,2              ## @MADV_DONTNEED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"madvise"

	.no_dead_strip	_image_file_unmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function image_file_unmap
_image_file_unmap:                      ; @image_file_unmap
	.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	x8, _secsz@GOTPAGE
Lloh1:
	ldr	x8, [x8, _secsz@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _image_swap_pgsz@GOTPAGE
Lloh4:
	ldr	x9, [x9, _image_swap_pgsz@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x8, x9, hi
	add	x9, x1, x8
	sub	x9, x9, #1
	neg	x8, x8
	and	x20, x9, x8
Lloh6:
	adrp	x8, _MADV_DONTNEED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MADV_DONTNEED@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_madvise
	cbz	x0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_munmap
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_secsz,8,3                      ; @secsz
	.comm	_image_swap_pgsz,8,3            ; @image_swap_pgsz
	.comm	_MADV_DONTNEED,4,2              ; @MADV_DONTNEED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"madvise"

	.no_dead_strip	_image_file_unmap
.subsections_via_symbols
