	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_rename                 ## -- Begin function vm_page_rename
	.p2align	4, 0x90
_vm_page_rename:                        ## @vm_page_rename
	.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	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_VM_OBJECT_ASSERT_WLOCKED
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setne	%dil
	movq	%rbx, %rsi
	callq	_KASSERT
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_vm_radix_lookup_le
	movq	%rax, %r12
	movl	$1, %edi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	%r15, 8(%r12)
	setne	%dil
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	callq	_KASSERT
	movq	8(%rbx), %r13
	movq	%r15, 8(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_vm_radix_insert
	movq	%r13, 8(%rbx)
	testq	%rax, %rax
	movl	$1, %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_vm_page_object_remove
	movq	%r15, 8(%rbx)
	movq	%r14, 16(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_vm_page_insert_radixdone
	movq	%rbx, %rdi
	callq	_vm_page_dirty
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"vm_page_rename: pindex already renamed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_rename                 ; -- Begin function vm_page_rename
	.p2align	2
_vm_page_rename:                        ; @vm_page_rename
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_VM_OBJECT_ASSERT_WLOCKED
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, ne
	mov	x1, x19
	bl	_KASSERT
	mov	x0, x20
	mov	x1, x21
	bl	_vm_radix_lookup_le
	mov	x22, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x22, #8]
	cmp	x8, x21
	cset	w0, ne
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_KASSERT
	ldr	x23, [x19, #8]
	str	x21, [x19, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_vm_radix_insert
	str	x23, [x19, #8]
	cbz	x0, LBB0_5
; %bb.4:
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_vm_page_object_remove
	stp	x21, x20, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_vm_page_insert_radixdone
	mov	x0, x19
	bl	_vm_page_dirty
	mov	w0, #0
LBB0_6:
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"vm_page_rename: pindex already renamed"

.subsections_via_symbols
