	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmapper_mmap
_mmapper_mmap:                          ## @mmapper_mmap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	cmpq	$0, (%rsi)
	jne	LBB0_4
## %bb.1:
	movl	8(%rsi), %eax
	movl	12(%rsi), %r9d
	subl	%r9d, %eax
	movq	_mmapper_size@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_3
## %bb.2:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_4
LBB0_3:
	movq	_p_buf@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movl	16(%rsi), %r8d
	movq	%rsi, %rdi
	movl	%r9d, %esi
	movl	%eax, %ecx
	callq	_remap_pfn_range
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovel	%ecx, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_mmapper_size,4,2               ## @mmapper_size
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_p_buf,4,2                      ## @p_buf
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.no_dead_strip	_mmapper_mmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmapper_mmap
_mmapper_mmap:                          ; @mmapper_mmap
	.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
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
	ldr	x8, [x1]
	cbnz	x8, LBB0_4
; %bb.1:
	ldp	w9, w8, [x1, #8]
Lloh3:
	adrp	x10, _mmapper_size@GOTPAGE
Lloh4:
	ldr	x10, [x10, _mmapper_size@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	sub	w3, w9, w8
	cmp	w3, w10
	b.le	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _EFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x9, _p_buf@GOTPAGE
Lloh10:
	ldr	x9, [x9, _p_buf@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _PAGE_SHIFT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _PAGE_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	asr	w2, w9, w10
	ldr	w4, [x1, #16]
	mov	x0, x1
	mov	x1, x8
	bl	_remap_pfn_range
	cmp	x0, #0
	csel	w19, wzr, w19, eq
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_mmapper_size,4,2               ; @mmapper_size
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_p_buf,4,2                      ; @p_buf
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.no_dead_strip	_mmapper_mmap
.subsections_via_symbols
