	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rvt_set_page
_rvt_set_page:                          ## @rvt_set_page
	.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	%rsi, %r14
	callq	_to_imr
	movq	%rax, %r15
	movl	(%rax), %r12d
	movl	4(%rax), %ebx
	movl	%r12d, %ecx
	sarl	%cl, %ebx
	xorl	%edi, %edi
	cmpl	8(%rax), %ebx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movl	$1, %r8d
	movl	%r12d, %ecx
	shll	%cl, %r8d
	movq	_RVT_SEGSZ@GOTPCREL(%rip), %rcx
	movl	%ebx, %eax
	cltd
	idivl	(%rcx)
	movq	16(%r15), %rcx
	movslq	%eax, %rsi
	movq	(%rcx,%rsi,8), %rax
	movq	(%rax), %rax
	movslq	%edx, %rdx
	movq	%rdx, %rdi
	shlq	$4, %rdi
	movq	%r14, 8(%rax,%rdi)
	movq	(%rcx,%rsi,8), %rax
	movq	(%rax), %rax
	movl	%r8d, (%rax,%rdi)
	addl	%r8d, 4(%r15)
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%r14, %rcx
	callq	_trace_rvt_mr_page_seg
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RVT_SEGSZ,4,2                  ## @RVT_SEGSZ
	.no_dead_strip	_rvt_set_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rvt_set_page
_rvt_set_page:                          ; @rvt_set_page
	.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	x19, x1
	bl	_to_imr
	mov	x20, x0
	ldp	w21, w8, [x0]
	asr	w22, w8, w21
	ldr	w8, [x0, #8]
	cmp	w22, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	w8, #1
	lsl	w4, w8, w21
Lloh3:
	adrp	x8, _RVT_SEGSZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RVT_SEGSZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sdiv	w1, w22, w8
	msub	w2, w1, w8, w22
	ldr	x8, [x20, #16]
	sbfiz	x9, x1, #3, #32
	ldr	x10, [x8, x9]
	ldr	x10, [x10]
	sbfiz	x11, x2, #4, #32
	add	x10, x10, x11
	str	x19, [x10, #8]
	ldr	x8, [x8, x9]
	ldr	x8, [x8]
	str	w4, [x8, x11]
	ldr	w8, [x20, #4]
	add	w8, w8, w4
	str	w8, [x20, #4]
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x19
	bl	_trace_rvt_mr_page_seg
	mov	w0, #0
LBB0_3:
	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	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RVT_SEGSZ,4,2                  ; @RVT_SEGSZ
	.no_dead_strip	_rvt_set_page
.subsections_via_symbols
