	.file	"extr_fork.c_copy_task.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	copy_task, @function
copy_task:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, r8
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r9
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	QWORD PTR 80[rdi], 0
	test	rdx, rdx
	je	.L2
	mov	QWORD PTR 72[rdi], rdx
.L2:
	mov	rdi, QWORD PTR 8[rbx]
	test	DWORD PTR CLONE_VM_[rip], ebp
	je	.L3
	call	mm_retain@PLT
	mov	rdi, QWORD PTR 16[rbx]
	test	DWORD PTR CLONE_FILES_[rip], ebp
	je	.L5
.L43:
	add	DWORD PTR [rdi], 1
.L6:
	mov	r12d, DWORD PTR _ENOMEM[rip]
	mov	rdi, QWORD PTR 24[rbx]
	test	DWORD PTR CLONE_FS_[rip], ebp
	je	.L8
	add	DWORD PTR [rdi], 1
	mov	rdi, QWORD PTR 32[rbx]
	test	DWORD PTR CLONE_SIGHAND_[rip], ebp
	je	.L11
.L44:
	add	DWORD PTR [rdi], 1
.L12:
	mov	r12, QWORD PTR 56[rbx]
	lea	rdi, pids_lock[rip]
	call	lock@PLT
	mov	rdi, r12
	call	lock@PLT
	test	DWORD PTR CLONE_THREAD_[rip], ebp
	je	.L14
	mov	rax, QWORD PTR 56[rbx]
.L15:
	lea	rsi, 52[rbx]
	lea	rdi, 4[rax]
	call	list_add@PLT
	mov	rdi, r12
	call	unlock@PLT
	lea	rdi, pids_lock[rip]
	call	unlock@PLT
	test	DWORD PTR CLONE_SETTLS_[rip], ebp
	jne	.L16
	mov	r12d, DWORD PTR _EFAULT[rip]
	test	DWORD PTR CLONE_CHILD_SETTID_[rip], ebp
	jne	.L41
.L18:
	test	DWORD PTR CLONE_PARENT_SETTID_[rip], ebp
	jne	.L42
.L22:
	test	DWORD PTR CLONE_CHILD_CLEARTID_[rip], ebp
	jne	.L23
.L24:
	and	ebp, DWORD PTR CSIGNAL_[rip]
	xor	r12d, r12d
	mov	DWORD PTR [rbx], ebp
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	call	mm_copy@PLT
	mov	rdi, rbx
	mov	esi, eax
	call	task_set_mm@PLT
	mov	rdi, QWORD PTR 16[rbx]
	test	DWORD PTR CLONE_FILES_[rip], ebp
	jne	.L43
.L5:
	call	fdtable_copy@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	je	.L6
	mov	rdi, QWORD PTR 16[rbx]
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L23:
	mov	QWORD PTR 40[rbx], r13
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L42:
	mov	esi, DWORD PTR 48[rbx]
	mov	rdi, r15
	call	user_put@PLT
	test	rax, rax
	je	.L22
.L19:
	mov	rdi, QWORD PTR 32[rbx]
	call	sighand_release@PLT
.L13:
	mov	rdi, QWORD PTR 24[rbx]
	call	fs_info_release@PLT
.L10:
	mov	rdi, QWORD PTR 16[rbx]
	call	fdtable_release@PLT
.L7:
	mov	rdi, QWORD PTR 8[rbx]
	call	mm_release@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	call	fs_info_copy@PLT
	mov	QWORD PTR 24[rbx], rax
	test	rax, rax
	je	.L10
	mov	rdi, QWORD PTR 32[rbx]
	test	DWORD PTR CLONE_SIGHAND_[rip], ebp
	jne	.L44
.L11:
	call	sighand_copy@PLT
	mov	QWORD PTR 32[rbx], rax
	test	rax, rax
	jne	.L12
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, r12
	call	tgroup_copy@PLT
	mov	edx, DWORD PTR 48[rbx]
	mov	QWORD PTR 56[rbx], rax
	mov	QWORD PTR 8[rax], rbx
	mov	DWORD PTR 64[rbx], edx
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rsi, r14
	mov	rdi, rbx
	call	task_set_thread_area@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L19
	mov	r12d, DWORD PTR _EFAULT[rip]
	test	DWORD PTR CLONE_CHILD_SETTID_[rip], ebp
	je	.L18
.L41:
	mov	edx, DWORD PTR 48[rbx]
	mov	rsi, r13
	mov	rdi, rbx
	call	user_put_task@PLT
	test	rax, rax
	je	.L18
	jmp	.L19
	.cfi_endproc
.LFE0:
	.size	copy_task, .-copy_task
	.comm	pids_lock,4,4
	.comm	_ENOMEM,4,4
	.comm	_EFAULT,4,4
	.comm	CSIGNAL_,4,4
	.comm	CLONE_VM_,4,4
	.comm	CLONE_THREAD_,4,4
	.comm	CLONE_SIGHAND_,4,4
	.comm	CLONE_SETTLS_,4,4
	.comm	CLONE_PARENT_SETTID_,4,4
	.comm	CLONE_FS_,4,4
	.comm	CLONE_FILES_,4,4
	.comm	CLONE_CHILD_SETTID_,4,4
	.comm	CLONE_CHILD_CLEARTID_,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_task.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	copy_task, %function
copy_task:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r0, #0
	mov	r7, r3
	ldr	r3, .L42
	cmp	r2, #0
	ldr	r3, [r3]
	strne	r2, [r4, #40]
	tst	r1, r3
	str	r0, [r4, #44]
	mov	r5, r1
	ldr	r0, [r4, #4]
	beq	.L3
	bl	mm_retain
.L4:
	ldr	r3, .L42+4
	ldr	r0, [r4, #8]
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L5
	ldr	r3, [r0]
	add	r3, r3, #1
	str	r3, [r0]
.L6:
	ldr	r3, .L42+8
	ldr	r2, .L42+12
	ldr	r3, [r3]
	ldr	r6, [r2]
	tst	r5, r3
	ldr	r0, [r4, #12]
	beq	.L8
	ldr	r3, [r0]
	add	r3, r3, #1
	str	r3, [r0]
.L9:
	ldr	r3, .L42+16
	ldr	r0, [r4, #16]
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L11
	ldr	r3, [r0]
	add	r3, r3, #1
	str	r3, [r0]
.L12:
	ldr	r6, [r4, #32]
	ldr	r0, .L42+20
	bl	lock
	mov	r0, r6
	bl	lock
	ldr	r3, .L42+24
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L14
	ldr	r0, [r4, #32]
.L15:
	add	r1, r4, #28
	add	r0, r0, #4
	bl	list_add
	mov	r0, r6
	bl	unlock
	ldr	r0, .L42+20
	bl	unlock
	ldr	r3, .L42+28
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L16
.L20:
	ldr	r3, .L42+32
	ldr	r2, .L42+36
	ldr	r3, [r3]
	ldr	r6, [r2]
	tst	r5, r3
	bne	.L40
.L18:
	ldr	r3, .L42+40
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L41
.L22:
	ldr	r3, .L42+44
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L23
.L24:
	mov	r6, #0
	ldr	r3, .L42+48
	mov	r0, r6
	ldr	r1, [r3]
	and	r5, r5, r1
	str	r5, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	bl	mm_copy
	mov	r1, r0
	mov	r0, r4
	bl	task_set_mm
	b	.L4
.L23:
	ldr	r3, [sp, #28]
	str	r3, [r4, #20]
	b	.L24
.L41:
	mov	r0, r7
	ldr	r1, [r4, #24]
	bl	user_put
	cmp	r0, #0
	beq	.L22
.L19:
	ldr	r0, [r4, #16]
	bl	sighand_release
.L13:
	ldr	r0, [r4, #12]
	bl	fs_info_release
.L10:
	ldr	r0, [r4, #8]
	bl	fdtable_release
.L7:
	ldr	r0, [r4, #4]
	bl	mm_release
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	bl	fdtable_copy
	str	r0, [r4, #8]
	bl	IS_ERR
	cmp	r0, #0
	beq	.L6
	ldr	r0, [r4, #8]
	bl	PTR_ERR
	mov	r6, r0
	b	.L7
.L8:
	bl	fs_info_copy
	cmp	r0, #0
	str	r0, [r4, #12]
	bne	.L9
	b	.L10
.L11:
	bl	sighand_copy
	cmp	r0, #0
	str	r0, [r4, #16]
	bne	.L12
	b	.L13
.L14:
	mov	r0, r6
	bl	tgroup_copy
	ldr	r3, [r4, #24]
	str	r0, [r4, #32]
	str	r4, [r0, #8]
	str	r3, [r4, #36]
	b	.L15
.L16:
	mov	r0, r4
	ldr	r1, [sp, #24]
	bl	task_set_thread_area
	subs	r6, r0, #0
	bge	.L20
	b	.L19
.L40:
	mov	r0, r4
	ldr	r2, [r4, #24]
	ldr	r1, [sp, #28]
	bl	user_put_task
	cmp	r0, #0
	beq	.L18
	b	.L19
.L43:
	.align	2
.L42:
	.word	CLONE_VM_
	.word	CLONE_FILES_
	.word	CLONE_FS_
	.word	_ENOMEM
	.word	CLONE_SIGHAND_
	.word	pids_lock
	.word	CLONE_THREAD_
	.word	CLONE_SETTLS_
	.word	CLONE_CHILD_SETTID_
	.word	_EFAULT
	.word	CLONE_PARENT_SETTID_
	.word	CLONE_CHILD_CLEARTID_
	.word	CSIGNAL_
	.size	copy_task, .-copy_task
	.comm	pids_lock,4,4
	.comm	_ENOMEM,4,4
	.comm	_EFAULT,4,4
	.comm	CSIGNAL_,4,4
	.comm	CLONE_VM_,4,4
	.comm	CLONE_THREAD_,4,4
	.comm	CLONE_SIGHAND_,4,4
	.comm	CLONE_SETTLS_,4,4
	.comm	CLONE_PARENT_SETTID_,4,4
	.comm	CLONE_FS_,4,4
	.comm	CLONE_FILES_,4,4
	.comm	CLONE_CHILD_SETTID_,4,4
	.comm	CLONE_CHILD_CLEARTID_,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
