	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exit_process                   ## -- Begin function exit_process
	.p2align	4, 0x90
_exit_process:                          ## @exit_process
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	callq	_preempt_disable
	movq	_NR_TASKS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.3:
	movq	_task@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, (%rdx,%rsi,8)
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_4
	jmp	LBB0_6
LBB0_1:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_TASK_ZOMBIE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
LBB0_6:
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_free_page
LBB0_8:
	xorl	%eax, %eax
	callq	_preempt_enable
	xorl	%eax, %eax
	popq	%rbp
	jmp	_schedule                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NR_TASKS,4,2                   ## @NR_TASKS
	.comm	_task,8,3                       ## @task
	.comm	_current,8,3                    ## @current
	.comm	_TASK_ZOMBIE,4,2                ## @TASK_ZOMBIE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exit_process                   ; -- Begin function exit_process
	.p2align	2
_exit_process:                          ; @exit_process
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_preempt_disable
Lloh0:
	adrp	x8, _NR_TASKS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NR_TASKS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #0
	b.le	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _task@GOTPAGE
Lloh4:
	ldr	x8, [x8, _task@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x8]
Lloh6:
	adrp	x8, _current@GOTPAGE
Lloh7:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cmp	x11, x8
	b.eq	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x10, #8
	subs	x9, x9, #1
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _current@GOTPAGE
Lloh10:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
LBB0_5:
	ldr	x0, [x8]
	cbz	x0, LBB0_7
LBB0_6:
	bl	_free_page
LBB0_7:
	bl	_preempt_enable
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_schedule
LBB0_8:
Lloh12:
	adrp	x9, _TASK_ZOMBIE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TASK_ZOMBIE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	str	w9, [x8, #8]
	ldr	x0, [x8]
	cbnz	x0, LBB0_6
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NR_TASKS,4,2                   ; @NR_TASKS
	.comm	_task,8,3                       ; @task
	.comm	_current,8,3                    ; @current
	.comm	_TASK_ZOMBIE,4,2                ; @TASK_ZOMBIE
.subsections_via_symbols
