	.file	"extr_sched.c_exit_process.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	exit_process
	.type	exit_process, @function
exit_process:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	xor	eax, eax
	call	preempt_disable@PLT
	mov	ecx, DWORD PTR NR_TASKS[rip]
	mov	rdx, QWORD PTR current[rip]
	test	ecx, ecx
	jle	.L4
	mov	rax, QWORD PTR task[rip]
	sub	ecx, 1
	lea	rcx, 8[rax+rcx*8]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	add	rax, 8
	cmp	rax, rcx
	je	.L4
.L5:
	cmp	QWORD PTR [rax], rdx
	jne	.L3
	mov	eax, DWORD PTR TASK_ZOMBIE[rip]
	mov	DWORD PTR 8[rdx], eax
.L4:
	mov	rdi, QWORD PTR [rdx]
	test	rdi, rdi
	jne	.L13
.L6:
	xor	eax, eax
	call	preempt_enable@PLT
	xor	eax, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	schedule@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	call	free_page@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	exit_process, .-exit_process
	.comm	task,8,8
	.comm	current,8,8
	.comm	TASK_ZOMBIE,4,4
	.comm	NR_TASKS,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_sched.c_exit_process.c"
	.text
	.align	2
	.global	exit_process
	.syntax unified
	.arm
	.fpu softvfp
	.type	exit_process, %function
exit_process:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	bl	preempt_disable
	ldr	r3, .L14
	ldr	ip, [r3]
	cmp	ip, #0
	ble	.L2
	ldr	r2, .L14+4
	ldr	r1, .L14+8
	ldr	r2, [r2]
	mov	r3, #0
	ldr	r0, [r1]
	sub	r2, r2, #4
	b	.L5
.L3:
	cmp	r3, ip
	beq	.L4
.L5:
	ldr	r1, [r2, #4]!
	add	r3, r3, #1
	cmp	r1, r0
	bne	.L3
	ldr	r3, .L14+12
	ldr	r3, [r3]
	str	r3, [r0, #4]
.L4:
	ldr	r0, [r0]
	cmp	r0, #0
	bne	.L13
	bl	preempt_enable
	pop	{r4, lr}
	b	schedule
.L13:
	bl	free_page
	bl	preempt_enable
	pop	{r4, lr}
	b	schedule
.L2:
	ldr	r3, .L14+8
	ldr	r0, [r3]
	b	.L4
.L15:
	.align	2
.L14:
	.word	NR_TASKS
	.word	task
	.word	current
	.word	TASK_ZOMBIE
	.size	exit_process, .-exit_process
	.comm	task,4,4
	.comm	current,4,4
	.comm	TASK_ZOMBIE,4,4
	.comm	NR_TASKS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
