	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_fork                       ## -- Begin function cpu_fork
	.p2align	4, 0x90
_cpu_fork:                              ## @cpu_fork
	.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	_RFPROC@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rdx, %r15
	movq	56(%rdx), %r12
	movslq	(%rdx), %rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rbx
	imulq	%rax, %rbx
	leaq	(%r12,%rbx), %r14
	addq	$-48, %r14
	movq	%r14, 48(%rdx)
	movq	48(%rdi), %rax
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	32(%rax), %xmm2
	movups	%xmm2, -16(%r12,%rbx)
	movups	%xmm1, -32(%r12,%rbx)
	movups	%xmm0, -48(%r12,%rbx)
	movq	40(%rdi), %rax
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	32(%rax), %xmm2
	movups	%xmm2, 40(%rsi)
	movups	%xmm1, 24(%rsi)
	movups	%xmm0, 8(%rsi)
	leaq	-72(%r12,%rbx), %rax
	movq	%rax, 32(%rdx)
	movq	32(%rdi), %rax
	movq	16(%rax), %rcx
	movq	%rcx, -56(%r12,%rbx)
	movups	(%rax), %xmm0
	movups	%xmm0, -72(%r12,%rbx)
	movl	(%rsi), %edi
	callq	_vmspace_pmap
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_pmap_set_pcb_pagedir
	movq	_fork_return@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%r12,%rbx)
	movq	%r15, -16(%r12,%rbx)
	movq	_fork_trampoline@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%r12,%rbx)
	movq	32(%r15), %rdi
	callq	_STACKALIGN
	movl	%eax, -32(%r12,%rbx)
	movl	$-1, -48(%r12,%rbx)
	movq	_initial_fpscr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%r12,%rbx)
	movq	32(%r15), %rax
	movq	_PSR_C@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, 16(%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movl	$1, 8(%r15)
	movq	_PSR_SVC32_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	_ARM_TP_ADDRESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RFPROC,4,2                     ## @RFPROC
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_fork_return,8,3                ## @fork_return
	.comm	_fork_trampoline,8,3            ## @fork_trampoline
	.comm	_initial_fpscr,4,2              ## @initial_fpscr
	.comm	_PSR_C,4,2                      ## @PSR_C
	.comm	_PSR_SVC32_MODE,4,2             ## @PSR_SVC32_MODE
	.comm	_ARM_TP_ADDRESS,8,3             ## @ARM_TP_ADDRESS
	.comm	_curthread,8,3                  ## @curthread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_fork                       ; -- Begin function cpu_fork
	.p2align	2
_cpu_fork:                              ; @cpu_fork
	.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
Lloh0:
	adrp	x8, _RFPROC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RFPROC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w3
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x2
	ldr	x8, [x2, #56]
	ldrsw	x9, [x2]
Lloh3:
	adrp	x10, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldrsw	x10, [x10]
	madd	x21, x10, x9, x8
	sub	x20, x21, #48
	str	x20, [x2, #48]
	ldr	x8, [x0, #48]
	ldp	q0, q1, [x8]
	ldr	q2, [x8, #32]
	stp	q1, q2, [x21, #-32]
	stur	q0, [x21, #-48]
	ldr	x8, [x0, #40]
	ldp	q0, q1, [x8]
	ldr	q2, [x8, #32]
	stur	q2, [x1, #40]
	stur	q1, [x1, #24]
	stur	q0, [x1, #8]
	sub	x8, x21, #72
	str	x8, [x2, #32]
	ldr	x8, [x0, #32]
	ldr	q0, [x8]
	ldr	x8, [x8, #16]
	stur	x8, [x21, #-56]
	stur	q0, [x21, #-72]
	ldr	w0, [x1]
	bl	_vmspace_pmap
	mov	x1, x20
	bl	_pmap_set_pcb_pagedir
Lloh6:
	adrp	x8, _fork_return@GOTPAGE
Lloh7:
	ldr	x8, [x8, _fork_return@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	stur	x8, [x21, #-8]
Lloh9:
	adrp	x8, _fork_trampoline@GOTPAGE
Lloh10:
	ldr	x8, [x8, _fork_trampoline@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	stp	x8, x19, [x21, #-24]
	ldr	x0, [x19, #32]
	bl	_STACKALIGN
	stur	w0, [x21, #-32]
	bl	_get_tls
	stur	x0, [x21, #-40]
	mov	w8, #-1
Lloh12:
	adrp	x9, _initial_fpscr@GOTPAGE
Lloh13:
	ldr	x9, [x9, _initial_fpscr@GOTPAGEOFF]
	stur	w8, [x21, #-48]
Lloh14:
	ldr	w8, [x9]
	stur	w8, [x21, #-44]
	ldr	x8, [x19, #32]
Lloh15:
	adrp	x9, _PSR_C@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PSR_C@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	ldr	w10, [x8, #16]
	bic	w9, w10, w9
	str	w9, [x8, #16]
	stp	xzr, xzr, [x8]
	mov	w8, #1
	str	w8, [x19, #8]
Lloh18:
	adrp	x8, _PSR_SVC32_MODE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PSR_SVC32_MODE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19, #24]
LBB0_2:
	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	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RFPROC,4,2                     ; @RFPROC
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_fork_return,8,3                ; @fork_return
	.comm	_fork_trampoline,8,3            ; @fork_trampoline
	.comm	_initial_fpscr,4,2              ; @initial_fpscr
	.comm	_PSR_C,4,2                      ; @PSR_C
	.comm	_PSR_SVC32_MODE,4,2             ; @PSR_SVC32_MODE
	.comm	_ARM_TP_ADDRESS,8,3             ; @ARM_TP_ADDRESS
	.comm	_curthread,8,3                  ; @curthread
.subsections_via_symbols
