	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copy_process                   ## -- Begin function copy_process
	.p2align	4, 0x90
_copy_process:                          ## @copy_process
	.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	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_preempt_disable
	xorl	%eax, %eax
	callq	_get_free_page
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, (%rax)
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 56(%rax)
	movq	%rbx, 8(%rax)
	movl	$1, 16(%rax)
	movq	%r12, 24(%rax)
	movq	%r15, 32(%rax)
	movq	_ret_from_fork@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 40(%rax)
	movq	_THREAD_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rax, %rcx
	movq	%rcx, 48(%rax)
	movq	_nr_tasks@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, (%rcx)
	movq	_task@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx,%rdx,8)
	xorl	%eax, %eax
	callq	_preempt_enable
	jmp	LBB0_3
LBB0_1:
	movl	$1, %r14d
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TASK_RUNNING,4,2               ## @TASK_RUNNING
	.comm	_ret_from_fork,8,3              ## @ret_from_fork
	.comm	_THREAD_SIZE,8,3                ## @THREAD_SIZE
	.comm	_nr_tasks,4,2                   ## @nr_tasks
	.comm	_task,8,3                       ## @task
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copy_process                   ; -- Begin function copy_process
	.p2align	2
_copy_process:                          ; @copy_process
	.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
	bl	_preempt_disable
	bl	_get_free_page
	mov	w8, #1
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _TASK_RUNNING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TASK_RUNNING@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x0, #56]
	stp	x21, x21, [x0]
	str	w8, [x0, #16]
Lloh3:
	adrp	x8, _ret_from_fork@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ret_from_fork@GOTPAGEOFF]
	stp	x20, x19, [x0, #24]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _THREAD_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _THREAD_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x9, x9, x0
	stp	x8, x9, [x0, #40]
Lloh9:
	adrp	x8, _nr_tasks@GOTPAGE
Lloh10:
	ldr	x8, [x8, _nr_tasks@GOTPAGEOFF]
	ldrsw	x9, [x8]
	add	w10, w9, #1
	str	w10, [x8]
Lloh11:
	adrp	x8, _task@GOTPAGE
Lloh12:
	ldr	x8, [x8, _task@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x0, [x8, x9, lsl #3]
	bl	_preempt_enable
	mov	w8, #0
LBB0_2:
	mov	x0, x8
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TASK_RUNNING,4,2               ; @TASK_RUNNING
	.comm	_ret_from_fork,8,3              ; @ret_from_fork
	.comm	_THREAD_SIZE,8,3                ; @THREAD_SIZE
	.comm	_nr_tasks,4,2                   ; @nr_tasks
	.comm	_task,8,3                       ; @task
.subsections_via_symbols
