	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_maparound                      ## -- Begin function maparound
	.p2align	4, 0x90
_maparound:                             ## @maparound
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %esi
	callq	_munmap
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_4
LBB0_2:
	movq	_TAILMAPLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %r9d
	negl	%r9d
	andl	%r14d, %r9d
	movl	%r9d, 4(%rbx)
	movl	8(%rbx), %esi
	subl	%r9d, %esi
	cmpl	%esi, %eax
	cmovll	%eax, %esi
	movl	%esi, (%rbx)
	testl	%esi, %esi
	jle	LBB0_5
## %bb.3:
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAP_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	12(%rbx), %r8d
	xorl	%edi, %edi
	callq	_mmap
	movq	%rax, %rcx
	movq	%rax, 16(%rbx)
	movq	_MAP_FAILED@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	sete	%al
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_TAILMAPLEN,4,2                 ## @TAILMAPLEN
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_MAP_SHARED,4,2                 ## @MAP_SHARED
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_maparound                      ; -- Begin function maparound
	.p2align	2
_maparound:                             ; @maparound
	.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
	ldr	x0, [x0, #16]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w1, [x19]
	bl	_munmap
	cbz	x0, LBB0_3
; %bb.2:
	mov	w0, #1
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _TAILMAPLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TAILMAPLEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w9, w8
	and	w5, w9, w20
	ldr	w9, [x19, #8]
	sub	w9, w9, w5
	cmp	w8, w9
	csel	w1, w8, w9, lt
	stp	w1, w5, [x19]
	cmp	w1, #0
	b.le	LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _MAP_SHARED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAP_SHARED@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	ldr	w4, [x19, #12]
	mov	x0, #0
	bl	_mmap
	str	x0, [x19, #16]
Lloh9:
	adrp	x8, _MAP_FAILED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAP_FAILED@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TAILMAPLEN,4,2                 ; @TAILMAPLEN
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_MAP_SHARED,4,2                 ; @MAP_SHARED
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
.subsections_via_symbols
