	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vm_page_insert_radixdone
_vm_page_insert_radixdone:              ## @vm_page_insert_radixdone
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_VM_OBJECT_ASSERT_WLOCKED
	xorl	%edi, %edi
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	cmpq	%rbx, 16(%r14)
	sete	%dil
LBB0_2:
	movq	%r14, %rsi
	callq	_KASSERT
	movq	_VPRC_OBJREF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%r14), %eax
	setne	%dil
	movq	%r14, %rsi
	callq	_KASSERT
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	cmpq	%rbx, 16(%r15)
	sete	%dil
	leaq	L_.str.2(%rip), %rsi
	callq	_KASSERT
	movq	8(%r15), %rax
	xorl	%edi, %edi
	cmpq	8(%r14), %rax
	setl	%dil
	leaq	L_.str.3(%rip), %rsi
	callq	_KASSERT
	leaq	20(%rbx), %rdi
	movq	_listq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_TAILQ_INSERT_AFTER
	jmp	LBB0_5
LBB0_4:
	leaq	20(%rbx), %rdi
	movq	_listq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_TAILQ_INSERT_HEAD
LBB0_5:
	movl	(%rbx), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%rbx)
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	8(%rbx), %rax
	movq	_OBJT_VNODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movl	16(%rbx), %edi
	callq	_vhold
LBB0_8:
	movq	%r14, %rdi
	callq	_pmap_page_is_write_mapped
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vm_object_set_writeable_dirty  ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VPRC_OBJREF,4,2                ## @VPRC_OBJREF
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"vm_page_insert_radixdone: object doesn't contain mpred"

L_.str.3:                               ## @.str.3
	.asciz	"vm_page_insert_radixdone: mpred doesn't precede pindex"

	.comm	_listq,4,2                      ## @listq
	.comm	_OBJT_VNODE,8,3                 ## @OBJT_VNODE
	.no_dead_strip	_vm_page_insert_radixdone
.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_radixdone
_vm_page_insert_radixdone:              ; @vm_page_insert_radixdone
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_VM_OBJECT_ASSERT_WLOCKED
	cbz	x19, LBB0_2
; %bb.1:
	ldr	x8, [x20, #16]
	cmp	x8, x19
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	mov	x1, x20
	bl	_KASSERT
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _VPRC_OBJREF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VPRC_OBJREF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
	mov	x1, x20
	bl	_KASSERT
	cbz	x21, LBB0_5
; %bb.4:
	ldr	x8, [x21, #16]
	cmp	x8, x19
	cset	w0, eq
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_KASSERT
	ldr	x8, [x21, #8]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	cset	w0, lt
Lloh5:
	adrp	x1, l_.str.3@PAGE
Lloh6:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_KASSERT
	add	x0, x19, #20
Lloh7:
	adrp	x8, _listq@GOTPAGE
Lloh8:
	ldr	x8, [x8, _listq@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x1, x21
	mov	x2, x20
	bl	_TAILQ_INSERT_AFTER
	b	LBB0_6
LBB0_5:
	add	x0, x19, #20
Lloh10:
	adrp	x8, _listq@GOTPAGE
Lloh11:
	ldr	x8, [x8, _listq@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_TAILQ_INSERT_HEAD
LBB0_6:
	ldr	w8, [x19]
	add	w9, w8, #1
	str	w9, [x19]
	cbnz	w8, LBB0_9
; %bb.7:
	ldr	x8, [x19, #8]
Lloh13:
	adrp	x9, _OBJT_VNODE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _OBJT_VNODE@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldr	w0, [x19, #16]
	bl	_vhold
LBB0_9:
	mov	x0, x20
	bl	_pmap_page_is_write_mapped
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	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
	b	_vm_object_set_writeable_dirty
LBB0_11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_VPRC_OBJREF,4,2                ; @VPRC_OBJREF
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"vm_page_insert_radixdone: object doesn't contain mpred"

l_.str.3:                               ; @.str.3
	.asciz	"vm_page_insert_radixdone: mpred doesn't precede pindex"

	.comm	_listq,4,2                      ; @listq
	.comm	_OBJT_VNODE,8,3                 ; @OBJT_VNODE
	.no_dead_strip	_vm_page_insert_radixdone
.subsections_via_symbols
