	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vslock                         ## -- Begin function vslock
	.p2align	4, 0x90
_vslock:                                ## @vslock
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	(%rdi,%rsi), %r13
	callq	_trunc_page
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_round_page
	cmpq	%rbx, %r13
	jl	LBB0_2
## %bb.1:
	movq	%rax, %r12
	cmpq	%rbx, %rax
	jl	LBB0_2
## %bb.3:
	movq	%r12, %rdi
	subq	%r15, %rdi
	callq	_atop
	movq	_vm_page_max_user_wired@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_5
## %bb.4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_curproc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movq	_VM_MAP_WIRE_SYSTEM@GOTPCREL(%rip), %rax
	movq	_VM_MAP_WIRE_NOHOLES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_vm_map_wire
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.6:
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%r14, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_vm_page_max_user_wired,8,3     ## @vm_page_max_user_wired
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_curproc,8,3                    ## @curproc
	.comm	_VM_MAP_WIRE_SYSTEM,4,2         ## @VM_MAP_WIRE_SYSTEM
	.comm	_VM_MAP_WIRE_NOHOLES,4,2        ## @VM_MAP_WIRE_NOHOLES
	.comm	_KERN_SUCCESS,4,2               ## @KERN_SUCCESS
	.comm	_curthread,8,3                  ## @curthread
	.comm	_EFAULT,4,2                     ## @EFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vslock                         ; -- Begin function vslock
	.p2align	2
_vslock:                                ; @vslock
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x0
	add	x23, x0, x1
	bl	_trunc_page
	mov	x20, x0
	mov	x0, x23
	bl	_round_page
	cmp	x23, x22
	b.lt	LBB0_4
; %bb.1:
	mov	x21, x0
	cmp	x0, x22
	b.lt	LBB0_4
; %bb.2:
	sub	x0, x21, x20
	bl	_atop
Lloh0:
	adrp	x8, _vm_page_max_user_wired@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vm_page_max_user_wired@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh7:
	adrp	x8, _curproc@GOTPAGE
Lloh8:
	ldr	x8, [x8, _curproc@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _VM_MAP_WIRE_SYSTEM@GOTPAGE
Lloh11:
	ldr	x9, [x9, _VM_MAP_WIRE_SYSTEM@GOTPAGEOFF]
	ldr	x0, [x8]
Lloh12:
	ldr	w8, [x9]
Lloh13:
	adrp	x9, _VM_MAP_WIRE_NOHOLES@GOTPAGE
Lloh14:
	ldr	x9, [x9, _VM_MAP_WIRE_NOHOLES@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x1, x20
	mov	x2, x21
	bl	_vm_map_wire
Lloh16:
	adrp	x8, _KERN_SUCCESS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _KERN_SUCCESS@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #0
Lloh19:
	adrp	x8, _curthread@GOTPAGE
Lloh20:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	x9, [x8]
	add	x9, x9, x19
	str	x9, [x8]
	b	LBB0_9
LBB0_7:
Lloh22:
	adrp	x8, _EFAULT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_vm_page_max_user_wired,8,3     ; @vm_page_max_user_wired
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_curproc,8,3                    ; @curproc
	.comm	_VM_MAP_WIRE_SYSTEM,4,2         ; @VM_MAP_WIRE_SYSTEM
	.comm	_VM_MAP_WIRE_NOHOLES,4,2        ; @VM_MAP_WIRE_NOHOLES
	.comm	_KERN_SUCCESS,4,2               ; @KERN_SUCCESS
	.comm	_curthread,8,3                  ; @curthread
	.comm	_EFAULT,4,2                     ; @EFAULT
.subsections_via_symbols
