	.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	%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	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_preempt_disable
	xorl	%eax, %eax
	callq	_get_free_page
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_task_pt_regs
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	$16, %esi
	callq	_memzero
	movq	%rbx, %rdi
	addq	$24, %rdi
	movl	$4, %esi
	callq	_memzero
	movq	_PF_KTHREAD@GOTPCREL(%rip), %rax
	testq	%r14, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%r15, 24(%rbx)
	movq	%r13, 32(%rbx)
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %r14d
	jmp	LBB0_6
LBB0_4:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_task_pt_regs
	movups	(%r12), %xmm0
	movups	%xmm0, (%rax)
	movq	8(%r12), %rax
	movq	$0, (%rax)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	%rcx, %rax
	movq	%rax, (%r12)
	movq	%rcx, (%rbx)
LBB0_5:
	movq	%r14, 8(%rbx)
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	56(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 64(%rbx)
	movl	%eax, 60(%rbx)
	movl	$1, 16(%rbx)
	movq	_ret_from_fork@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
	movq	%r12, 48(%rbx)
	movq	_nr_tasks@GOTPCREL(%rip), %rax
	movslq	(%rax), %r14
	leal	1(%r14), %ecx
	movl	%ecx, (%rax)
	movq	_task@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rbx, (%rax,%r14,8)
	xorl	%eax, %eax
	callq	_preempt_enable
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_KTHREAD,8,3                 ## @PF_KTHREAD
	.comm	_current,8,3                    ## @current
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_TASK_RUNNING,4,2               ## @TASK_RUNNING
	.comm	_ret_from_fork,8,3              ## @ret_from_fork
	.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	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	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
	bl	_preempt_disable
	bl	_get_free_page
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_task_pt_regs
	mov	x21, x0
	mov	w1, #16
	bl	_memzero
	add	x0, x19, #24
	mov	w1, #4
	bl	_memzero
Lloh0:
	adrp	x8, _PF_KTHREAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_KTHREAD@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x25, _current@GOTPAGE
Lloh4:
	ldr	x25, [x25, _current@GOTPAGEOFF]
	tst	x8, x20
	b.eq	LBB0_4
; %bb.2:
	stp	x24, x23, [x19, #24]
	b	LBB0_5
LBB0_3:
	mov	w20, #-1
	b	LBB0_6
LBB0_4:
	ldr	x0, [x25]
	bl	_task_pt_regs
	ldr	q0, [x21]
	str	q0, [x0]
	ldr	x8, [x21, #8]
	str	xzr, [x8]
Lloh5:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x8, x8, x22
	str	x8, [x21]
	str	x22, [x19]
LBB0_5:
	str	x20, [x19, #8]
	ldr	x8, [x25]
	ldr	w8, [x8, #56]
Lloh8:
	adrp	x9, _TASK_RUNNING@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TASK_RUNNING@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #60]
	str	w8, [x19, #56]
	mov	w8, #1
	str	w8, [x19, #16]
Lloh11:
	adrp	x8, _ret_from_fork@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ret_from_fork@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	stp	x8, x21, [x19, #40]
Lloh14:
	adrp	x8, _nr_tasks@GOTPAGE
Lloh15:
	ldr	x8, [x8, _nr_tasks@GOTPAGEOFF]
	ldrsw	x20, [x8]
	add	w9, w20, #1
	str	w9, [x8]
Lloh16:
	adrp	x8, _task@GOTPAGE
Lloh17:
	ldr	x8, [x8, _task@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	x19, [x8, x20, lsl #3]
	bl	_preempt_enable
LBB0_6:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_KTHREAD,8,3                 ; @PF_KTHREAD
	.comm	_current,8,3                    ; @current
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_TASK_RUNNING,4,2               ; @TASK_RUNNING
	.comm	_ret_from_fork,8,3              ; @ret_from_fork
	.comm	_nr_tasks,4,2                   ; @nr_tasks
	.comm	_task,8,3                       ; @task
.subsections_via_symbols
