	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vm_page_insert_after
_vm_page_insert_after:                  ## @vm_page_insert_after
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_VM_OBJECT_ASSERT_WLOCKED
	xorl	%edi, %edi
	cmpq	$0, 16(%rbx)
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	%r15, 16(%r14)
	sete	%dil
	leaq	L_.str.1(%rip), %rsi
	callq	_KASSERT
	xorl	%edi, %edi
	cmpq	%r12, (%r14)
	setl	%dil
	leaq	L_.str.2(%rip), %rsi
	callq	_KASSERT
	movq	_listq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_TAILQ_NEXT
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	xorl	%edi, %edi
	cmpq	%r12, (%rax)
	setg	%dil
	leaq	L_.str.3(%rip), %rsi
	callq	_KASSERT
LBB0_5:
	movq	%r15, 16(%rbx)
	movq	%r12, (%rbx)
	movq	_VPRC_OBJREF@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	orl	%eax, 8(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_vm_radix_insert
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	$0, 16(%rbx)
	movq	$0, (%rbx)
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, 8(%rbx)
	movl	$1, %eax
	jmp	LBB0_8
LBB0_2:
	leaq	4(%r15), %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_5
LBB0_7:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_vm_page_insert_radixdone
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vm_page_insert_after: page already inserted"

L_.str.1:                               ## @.str.1
	.asciz	"vm_page_insert_after: object doesn't contain mpred"

L_.str.2:                               ## @.str.2
	.asciz	"vm_page_insert_after: mpred doesn't precede pindex"

	.comm	_listq,4,2                      ## @listq
L_.str.3:                               ## @.str.3
	.asciz	"vm_page_insert_after: msucc doesn't succeed pindex"

	.comm	_VPRC_OBJREF,4,2                ## @VPRC_OBJREF
	.no_dead_strip	_vm_page_insert_after
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vm_page_insert_after
_vm_page_insert_after:                  ; @vm_page_insert_after
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_VM_OBJECT_ASSERT_WLOCKED
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, eq
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	cbz	x20, LBB0_5
; %bb.1:
	ldr	x8, [x20, #16]
	cmp	x8, x21
	cset	w0, eq
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_KASSERT
	ldr	x8, [x20]
	cmp	x8, x22
	cset	w0, lt
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_KASSERT
Lloh6:
	adrp	x8, _listq@GOTPAGE
Lloh7:
	ldr	x8, [x8, _listq@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_TAILQ_NEXT
	cbz	x0, LBB0_3
LBB0_2:
	ldr	x8, [x0]
	cmp	x8, x22
	cset	w0, gt
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_KASSERT
LBB0_3:
	str	x21, [x19, #16]
	str	x22, [x19]
Lloh11:
	adrp	x22, _VPRC_OBJREF@GOTPAGE
Lloh12:
	ldr	x22, [x22, _VPRC_OBJREF@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	mov	x0, x21
	mov	x1, x19
	bl	_vm_radix_insert
	cbz	x0, LBB0_6
; %bb.4:
	str	xzr, [x19, #16]
	str	xzr, [x19]
	ldr	w8, [x22]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	mov	w0, #1
	b	LBB0_7
LBB0_5:
	add	x0, x21, #4
	bl	_TAILQ_FIRST
	cbnz	x0, LBB0_2
	b	LBB0_3
LBB0_6:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_vm_page_insert_radixdone
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vm_page_insert_after: page already inserted"

l_.str.1:                               ; @.str.1
	.asciz	"vm_page_insert_after: object doesn't contain mpred"

l_.str.2:                               ; @.str.2
	.asciz	"vm_page_insert_after: mpred doesn't precede pindex"

	.comm	_listq,4,2                      ; @listq
l_.str.3:                               ; @.str.3
	.asciz	"vm_page_insert_after: msucc doesn't succeed pindex"

	.comm	_VPRC_OBJREF,4,2                ; @VPRC_OBJREF
	.no_dead_strip	_vm_page_insert_after
.subsections_via_symbols
