	.file	"extr_fork.c_copy_process.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	copy_process
	.type	copy_process, @function
copy_process:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	eax, eax
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	call	preempt_disable@PLT
	xor	eax, eax
	call	get_free_page@PLT
	mov	r8d, 1
	test	rax, rax
	je	.L1
	mov	edx, DWORD PTR TASK_RUNNING[rip]
	mov	DWORD PTR [rax], ebx
	mov	DWORD PTR 4[rax], ebx
	mov	DWORD PTR 48[rax], edx
	mov	rdx, QWORD PTR ret_from_fork[rip]
	mov	DWORD PTR 8[rax], 1
	mov	QWORD PTR 32[rax], rdx
	mov	rdx, QWORD PTR THREAD_SIZE[rip]
	mov	QWORD PTR 16[rax], rbp
	add	rdx, rax
	mov	QWORD PTR 24[rax], r12
	mov	QWORD PTR 40[rax], rdx
	movsx	rdx, DWORD PTR nr_tasks[rip]
	lea	ecx, 1[rdx]
	mov	DWORD PTR nr_tasks[rip], ecx
	mov	rcx, QWORD PTR task[rip]
	mov	QWORD PTR [rcx+rdx*8], rax
	xor	eax, eax
	call	preempt_enable@PLT
	xor	r8d, r8d
.L1:
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, r8d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	copy_process, .-copy_process
	.comm	task,8,8
	.comm	ret_from_fork,8,8
	.comm	nr_tasks,4,4
	.comm	THREAD_SIZE,8,8
	.comm	TASK_RUNNING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_fork.c_copy_process.c"
	.text
	.align	2
	.global	copy_process
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy_process, %function
copy_process:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r4, r2
	mov	r6, r0
	bl	preempt_disable
	bl	get_free_page
	subs	r3, r0, #0
	bne	.L6
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	lr, #1
	ldr	r1, .L7
	ldr	r2, .L7+4
	ldr	r7, [r1]
	ldr	r0, .L7+8
	ldr	r1, .L7+12
	ldr	r2, [r2]
	ldr	ip, .L7+16
	str	r5, [r3]
	str	r5, [r3, #4]
	ldr	r5, [r1]
	ldr	r1, [r0]
	add	r2, r2, r3
	ldr	ip, [ip]
	str	r2, [r3, #24]
	add	r2, r1, lr
	str	r6, [r3, #12]
	str	r4, [r3, #16]
	str	r2, [r0]
	str	r7, [r3, #28]
	str	r5, [r3, #20]
	str	lr, [r3, #8]
	str	r3, [ip, r1, lsl #2]
	bl	preempt_enable
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	TASK_RUNNING
	.word	THREAD_SIZE
	.word	nr_tasks
	.word	ret_from_fork
	.word	task
	.size	copy_process, .-copy_process
	.comm	task,4,4
	.comm	ret_from_fork,4,4
	.comm	nr_tasks,4,4
	.comm	THREAD_SIZE,4,4
	.comm	TASK_RUNNING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
