	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_mmap                        ## -- Begin function vm_mmap
	.p2align	4, 0x90
_vm_mmap:                               ## @vm_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	32(%rbp), %r15d
	movl	%r8d, -48(%rbp)
	movl	%r9d, -44(%rbp)
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.1:
	movl	%r9d, %r14d
	movl	%r8d, %ebx
	movl	%ecx, %r13d
	movl	%edi, -84(%rbp)                 ## 4-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movl	16(%rbp), %r12d
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_round_page
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	$0, -56(%rbp)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	cmpl	$128, %r12d
	je	LBB0_7
## %bb.2:
	cmpl	$130, %r12d
	je	LBB0_8
## %bb.3:
	cmpl	$129, %r12d
	jne	LBB0_9
## %bb.4:
	leaq	-88(%rbp), %rsi
	movq	24(%rbp), %r14
	movq	%r14, %rdi
	callq	_dev_refthread
	testq	%rax, %rax
	je	LBB0_17
## %bb.5:
	subq	$8, %rsp
	leaq	-56(%rbp), %rbx
	leaq	32(%rbp), %r10
	leaq	-48(%rbp), %rcx
	leaq	-44(%rbp), %r8
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	movq	%r14, %r9
	pushq	%rbx
	pushq	%r10
	pushq	%rax
	callq	_vm_mmap_cdev
	addq	$32, %rsp
	movl	%eax, %ebx
	movl	-88(%rbp), %esi
	movq	%r14, %rdi
	callq	_dev_relthread
	testl	%ebx, %ebx
	jne	LBB0_19
	jmp	LBB0_10
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %ebx
	jmp	LBB0_19
LBB0_7:
	subq	$8, %rsp
	leaq	-80(%rbp), %rax
	leaq	-56(%rbp), %rbx
	leaq	32(%rbp), %r10
	leaq	-48(%rbp), %rcx
	leaq	-44(%rbp), %r8
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	movq	24(%rbp), %r9
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	callq	_vm_mmap_vnode
	addq	$32, %rsp
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jne	LBB0_19
	jmp	LBB0_10
LBB0_8:
	cmpq	$0, 24(%rbp)
	je	LBB0_11
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_19
LBB0_10:
	movl	-48(%rbp), %ebx
	movl	-44(%rbp), %r14d
	movq	-56(%rbp), %r10
	movl	32(%rbp), %r15d
	movq	-80(%rbp), %rax
	jmp	LBB0_12
LBB0_11:
	xorl	%r10d, %r10d
LBB0_12:
	movl	-84(%rbp), %edi                 ## 4-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %ecx
	movl	%ebx, %r8d
	movl	%r14d, %r9d
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	pushq	%r15
	pushq	%r10
	callq	_vm_mmap_object
	addq	$32, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_19
## %bb.13:
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.14:
	cmpq	$0, -80(%rbp)
	je	LBB0_16
## %bb.15:
	xorl	%esi, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_vm_pager_release_writecount
	movq	-56(%rbp), %rdi
LBB0_16:
	callq	_vm_object_deallocate
LBB0_19:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_curthread,8,3                  ## @curthread
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_ENXIO,4,2                      ## @ENXIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_mmap                        ; -- Begin function vm_mmap
	.p2align	2
_vm_mmap:                               ; @vm_mmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w27, [x29, #16]
	stp	w5, w4, [sp, #40]
	cbz	x2, LBB0_6
; %bb.1:
	mov	x24, x7
	mov	x28, x6
	mov	x25, x5
	mov	x26, x4
	mov	x20, x3
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _curthread@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	mov	x0, x2
	bl	_round_page
	mov	x19, x0
	str	xzr, [sp, #32]
Lloh3:
	adrp	x8, _FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cmp	w28, #128
	b.eq	LBB0_8
; %bb.2:
	cmp	w28, #130
	b.eq	LBB0_9
; %bb.3:
	cmp	w28, #129
	b.ne	LBB0_10
; %bb.4:
	add	x1, sp, #20
	mov	x0, x24
	bl	_dev_refthread
	cbz	x0, LBB0_19
; %bb.5:
	mov	x6, x0
	add	x8, sp, #32
	str	x8, [sp]
	add	x3, sp, #44
	add	x4, sp, #40
	add	x7, x29, #16
	mov	x0, x23
	mov	x1, x19
	mov	x2, x20
	mov	x5, x24
	bl	_vm_mmap_cdev
	mov	x25, x0
	ldr	w1, [sp, #20]
	mov	x0, x24
	bl	_dev_relthread
	cbnz	w25, LBB0_18
	b	LBB0_11
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w25, [x8]
	b	LBB0_18
LBB0_8:
	add	x8, sp, #24
	str	x8, [sp]
	add	x3, sp, #44
	add	x4, sp, #40
	add	x6, x29, #16
	add	x7, sp, #32
	mov	x0, x23
	mov	x1, x19
	mov	x2, x20
	mov	x5, x24
	bl	_vm_mmap_vnode
	mov	x25, x0
	cbnz	w25, LBB0_18
	b	LBB0_11
LBB0_9:
	cbz	x24, LBB0_12
LBB0_10:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w25, [x8]
	cbnz	w25, LBB0_18
LBB0_11:
	ldp	w25, w26, [sp, #40]
	ldp	x8, x6, [sp, #24]
	ldr	w27, [x29, #16]
	b	LBB0_13
LBB0_12:
	mov	x6, #0
LBB0_13:
	stp	x8, x23, [sp]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	mov	x3, x20
	mov	x4, x26
	mov	x5, x25
	mov	x7, x27
	bl	_vm_mmap_object
	mov	x25, x0
	cbz	w0, LBB0_18
; %bb.14:
	ldr	x0, [sp, #32]
	cbz	x0, LBB0_18
; %bb.15:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_17
; %bb.16:
	mov	w1, #0
	mov	x2, x19
	bl	_vm_pager_release_writecount
	ldr	x0, [sp, #32]
LBB0_17:
	bl	_vm_object_deallocate
LBB0_18:
	mov	x0, x25
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_19:
Lloh11:
	adrp	x8, _ENXIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_curthread,8,3                  ; @curthread
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_ENXIO,4,2                      ; @ENXIO
.subsections_via_symbols
