	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remmap
_remmap:                                ## @remmap
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	_MMAP_CHUNK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_munmap
LBB0_2:
	movq	_MMAP_CHUNK@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAP_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	movl	%r15d, %r8d
	movl	%r14d, %r9d
	callq	_mmap
	movq	%rax, %rbx
	movq	_MAP_FAILED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_4
## %bb.3:
	movl	(%r13), %esi
	movq	_MADV_SEQUENTIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_madvise
	movq	%rbx, %r12
LBB0_4:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMAP_CHUNK,4,2                 ## @MMAP_CHUNK
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_MAP_SHARED,4,2                 ## @MAP_SHARED
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
	.comm	_MADV_SEQUENTIAL,4,2            ## @MADV_SEQUENTIAL
	.no_dead_strip	_remmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remmap
_remmap:                                ; @remmap
	.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, x2
	mov	x20, x1
Lloh0:
	adrp	x21, _MMAP_CHUNK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MMAP_CHUNK@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x21]
	bl	_munmap
LBB0_2:
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _MAP_SHARED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAP_SHARED@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x4, x20
	mov	x5, x19
	bl	_mmap
Lloh8:
	adrp	x8, _MAP_FAILED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAP_FAILED@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
	mov	x19, x0
	ldr	w1, [x21]
Lloh11:
	adrp	x8, _MADV_SEQUENTIAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MADV_SEQUENTIAL@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_madvise
	b	LBB0_5
LBB0_4:
	mov	x19, #0
LBB0_5:
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MMAP_CHUNK,4,2                 ; @MMAP_CHUNK
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_MAP_SHARED,4,2                 ; @MAP_SHARED
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
	.comm	_MADV_SEQUENTIAL,4,2            ; @MADV_SEQUENTIAL
	.no_dead_strip	_remmap
.subsections_via_symbols
