	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vop_mmap
_vop_mmap:                              ## @vop_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %r13
	movq	(%rsi), %rbx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %r14
	subq	16(%rsi), %r14
	movq	%r14, -48(%rbp)
	movq	%r13, %rdi
	callq	_vop_vdev_inited
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rbx
	movq	_VM_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%r15)
	je	LBB0_2
## %bb.6:
	movq	_EACCES@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%r12d, %r12d
	testq	%r14, %r14
	je	LBB0_11
## %bb.3:
	leaq	-72(%rbp), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rcx
	callq	_vop_query_offset
	testl	%eax, %eax
	js	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rdx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	shrq	%cl, %rdx
	movq	16(%r15), %rsi
	addq	%rbx, %rsi
	movq	-48(%rbp), %rcx
	movl	28(%r15), %r8d
	movq	%r15, %rdi
	callq	_remap_pfn_range
	testl	%eax, %eax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax
	addq	%rax, %rbx
	subq	%rax, %r14
	jne	LBB0_4
	jmp	LBB0_11
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_9:
	movl	%eax, %r12d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_VM_WRITE,4,2                   ## @VM_WRITE
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vop_mmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vop_mmap
_vop_mmap:                              ; @vop_mmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	ldr	x20, [x0]
Lloh0:
	adrp	x22, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	x21, [x22]
	ldp	x24, x8, [x1]
	ldr	x9, [x1, #16]
	sub	x23, x8, x9
	str	x23, [sp]
	mov	x0, x20
	bl	_vop_vdev_inited
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w8, [x19, #24]
Lloh2:
	adrp	x9, _VM_WRITE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VM_WRITE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
Lloh5:
	adrp	x8, _EACCES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	cbz	x23, LBB0_10
; %bb.6:
	lsl	x21, x24, x21
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x2, sp
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_vop_query_offset
	tbnz	w0, #31, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #16]
	add	x1, x8, x21
	ldp	x3, x8, [sp]
	ldr	x9, [x22]
	lsr	x2, x8, x9
	ldr	w4, [x19, #28]
	mov	x0, x19
	bl	_remap_pfn_range
	cbnz	w0, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp]
	add	x21, x8, x21
	subs	x23, x23, x8
	b.ne	LBB0_7
	b	LBB0_4
LBB0_10:
	mov	w0, #0
	b	LBB0_4
LBB0_11:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_VM_WRITE,4,2                   ; @VM_WRITE
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vop_mmap
.subsections_via_symbols
