	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__schedule                      ## -- Begin function _schedule
	.p2align	4, 0x90
__schedule:                             ## @_schedule
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_preempt_disable
	movq	_NR_TASKS@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_task@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testl	%r10d, %r10d
	jle	LBB0_18
## %bb.1:
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	testl	%r10d, %r10d
	setle	%r8b
	movl	%r10d, %edi
	andl	$-2, %edi
	xorl	%ebx, %ebx
	movl	$-1, %esi
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	movl	$-1, %esi
	movl	$0, %edx
	testl	%r10d, %r10d
	jle	LBB0_18
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	(%rax,%rbx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r9, (%rcx)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rcx), %ecx
	cmpl	%esi, %ecx
	cmovgl	%ebx, %edx
	cmovgl	%ecx, %esi
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%r10, %rbx
	jne	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%esi, %esi
	setne	%cl
	orb	%r8b, %cl
	jne	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	cmpl	$1, %r10d
	jne	LBB0_12
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r10b
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax,%rdx,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rdx), %ecx
	sarl	%ecx
	addl	12(%rdx), %ecx
	movl	%ecx, 8(%rdx)
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=2
	addq	$2, %rdx
	cmpq	%rdx, %rdi
	je	LBB0_8
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax,%rdx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	8(%rsi), %ecx
	sarl	%ecx
	addl	12(%rsi), %ecx
	movl	%ecx, 8(%rsi)
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	8(%rax,%rdx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	8(%rsi), %ecx
	sarl	%ecx
	addl	12(%rsi), %ecx
	movl	%ecx, 8(%rsi)
	jmp	LBB0_16
LBB0_17:
	testl	%esi, %esi
	cmovel	%esi, %edx
	movl	%edx, %ebx
LBB0_18:
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_switch_to
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_preempt_enable                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NR_TASKS,4,2                   ## @NR_TASKS
	.comm	_task,8,3                       ## @task
	.comm	_TASK_RUNNING,8,3               ## @TASK_RUNNING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__schedule                      ; -- Begin function _schedule
	.p2align	2
__schedule:                             ; @_schedule
	.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]
Lloh3:
	adrp	x8, _task@GOTPAGE
Lloh4:
	ldr	x8, [x8, _task@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x13, #0
	mov	w12, #0
Lloh6:
	adrp	x10, _TASK_RUNNING@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TASK_RUNNING@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	w9, #1
	cset	w11, lt
	mov	w14, #-1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w12, #0
	mov	w15, #0
	mov	w14, #-1
	cmp	w9, #0
	b.le	LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x15, [x8, x13, lsl #3]
	cbz	x15, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x16, [x15]
	cmp	x16, x10
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w15, [x15, #8]
	cmp	w15, w14
	csel	w12, w13, w12, gt
	csel	w14, w15, w14, gt
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x13, x13, #1
	cmp	x13, x9
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w14, #0
	cset	w13, ne
	orr	w15, w13, w11
	mov	x13, x9
	mov	x14, x8
	tbz	w15, #0, LBB0_9
	b	LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x14, x14, #8
	subs	x13, x13, #1
	b.eq	LBB0_2
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x12, [x14]
	cbz	x12, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldp	w15, w16, [x12, #8]
	add	w15, w16, w15, asr #1
	str	w15, [x12, #8]
	b	LBB0_8
LBB0_11:
	mov	w15, #0
	b	LBB0_13
LBB0_12:
	csel	w15, w12, wzr, ne
LBB0_13:
	ldr	x0, [x8, w15, sxtw #3]
	bl	_switch_to
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_preempt_enable
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NR_TASKS,4,2                   ; @NR_TASKS
	.comm	_task,8,3                       ; @task
	.comm	_TASK_RUNNING,8,3               ; @TASK_RUNNING
.subsections_via_symbols
