	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_forkproc                    ## -- Begin function vm_forkproc
	.p2align	4, 0x90
_vm_forkproc:                           ## @vm_forkproc
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rdi), %r13
	movq	_RFPROC@GOTPCREL(%rip), %rdx
	movq	_RFMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r8d, (%rdx)
	je	LBB0_1
## %bb.5:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	testl	%ebx, %eax
	je	LBB0_7
## %bb.6:
	movq	(%r13), %rax
	movq	%rax, (%r15)
	movq	(%r13), %rdi
	movl	$1, %esi
	callq	_atomic_add_int
LBB0_7:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	(%r14), %r14
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_vm_page_count_severe_set
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %rdi
	callq	_vm_wait_doms
	jmp	LBB0_9
LBB0_10:
	movq	_RFMEM@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_13
## %bb.11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r15)
	movq	(%r13), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_13
## %bb.12:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_shmfork
LBB0_13:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_1:
	testl	%ebx, %eax
	jne	LBB0_4
## %bb.2:
	movq	(%r13), %rax
	cmpl	$2, (%rax)
	jl	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	callq	_vmspace_unshare
	testl	%eax, %eax
	jne	LBB0_15
LBB0_4:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
LBB0_14:
	movl	%ebx, %ecx
	callq	_cpu_fork
	xorl	%eax, %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RFPROC,4,2                     ## @RFPROC
	.comm	_RFMEM,4,2                      ## @RFMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_forkproc                    ; -- Begin function vm_forkproc
	.p2align	2
_vm_forkproc:                           ; @vm_forkproc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x23, [x0, #8]
Lloh0:
	adrp	x8, _RFPROC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RFPROC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x26, _RFMEM@GOTPAGE
Lloh4:
	ldr	x26, [x26, _RFMEM@GOTPAGEOFF]
	ldr	w8, [x26]
	and	w8, w8, w4
	tst	w9, w4
	b.eq	LBB0_9
; %bb.1:
	mov	x24, x3
	cbz	w8, LBB0_3
; %bb.2:
	ldr	x8, [x23]
	str	x8, [x21]
	ldr	x0, [x23]
	mov	w1, #1
	bl	_atomic_add_int
LBB0_3:
	ldr	x25, [x20]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	bl	_vm_page_count_severe_set
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	_vm_wait_doms
	b	LBB0_4
LBB0_6:
	ldr	w8, [x26]
	tst	w8, w19
	b.ne	LBB0_12
; %bb.7:
	str	x24, [x21]
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_12
; %bb.8:
	mov	x0, x23
	mov	x1, x21
	bl	_shmfork
	b	LBB0_12
LBB0_9:
	cbnz	w8, LBB0_12
; %bb.10:
	ldr	x8, [x23]
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_12
; %bb.11:
	mov	x0, x23
	bl	_vmspace_unshare
	cbnz	w0, LBB0_13
LBB0_12:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_cpu_fork
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RFPROC,4,2                     ; @RFPROC
	.comm	_RFMEM,4,2                      ; @RFMEM
.subsections_via_symbols
