	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vm_map_entry_link
_vm_map_entry_link:                     ## @vm_map_entry_link
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_KTR_VM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	%rbx, %r8
	callq	_CTR3
	movq	%r14, %rdi
	callq	_VM_MAP_ASSERT_LOCKED
	incl	(%r14)
	movl	32(%rbx), %esi
	leaq	-32(%rbp), %rcx
	leaq	-24(%rbp), %r8
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_vm_map_splay_split
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	leaq	L_.str.1(%rip), %rsi
	callq	_KASSERT
	movq	-32(%rbp), %rdx
	movq	%rdx, 16(%rbx)
	movq	-24(%rbp), %rcx
	movq	%rcx, 24(%rbx)
	movq	%rbx, 16(%rcx)
	movq	%rbx, 24(%rdx)
	movq	$0, (%rbx)
	movl	$0, 8(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_vm_map_splay_merge
	movq	%r14, %rdi
	callq	_VM_MAP_ASSERT_CONSISTENT
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KTR_VM,4,2                     ## @KTR_VM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vm_map_entry_link: map %p, nentries %d, entry %p"

L_.str.1:                               ## @.str.1
	.asciz	"vm_map_entry_link: link object already mapped"

	.no_dead_strip	_vm_map_entry_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vm_map_entry_link
_vm_map_entry_link:                     ; @vm_map_entry_link
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _KTR_VM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KTR_VM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w3, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x4, x19
	bl	_CTR3
	mov	x0, x20
	bl	_VM_MAP_ASSERT_LOCKED
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	ldr	w1, [x19, #32]
	add	x3, sp, #8
	mov	x4, sp
	mov	x0, x20
	mov	w2, #0
	bl	_vm_map_splay_split
	cmp	x0, #0
	cset	w0, eq
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_KASSERT
	ldp	x3, x2, [sp]
	stp	x2, x3, [x19, #16]
	str	x19, [x3, #16]
	str	x19, [x2, #24]
	str	xzr, [x19]
	str	wzr, [x19, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_vm_map_splay_merge
	mov	x0, x20
	bl	_VM_MAP_ASSERT_CONSISTENT
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_KTR_VM,4,2                     ; @KTR_VM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vm_map_entry_link: map %p, nentries %d, entry %p"

l_.str.1:                               ; @.str.1
	.asciz	"vm_map_entry_link: link object already mapped"

	.no_dead_strip	_vm_map_entry_link
.subsections_via_symbols
