	.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
	xorl	%eax, %eax
	callq	_preempt_disable
	movq	_kernel_task@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movl	$-1, %edx
	movq	%rax, %rsi
                                        ## implicit-def: $rdi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	cmpq	%r8, (%rsi)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rsi), %ecx
	cmpl	%edx, %ecx
	cmovgl	%ecx, %edx
	cmovgq	%rsi, %rdi
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rsi), %rsi
	testq	%rsi, %rsi
	jne	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%edx, %edx
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rdx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	8(%rdx), %ecx
	sarl	%ecx
	addl	12(%rdx), %ecx
	movl	%ecx, 8(%rdx)
	movq	16(%rdx), %rdx
	testq	%rdx, %rdx
	jne	LBB0_8
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rsi
	movl	$-1, %edx
	testq	%rax, %rax
	jne	LBB0_2
LBB0_9:
	callq	_switch_to
	xorl	%eax, %eax
	popq	%rbp
	jmp	_preempt_enable                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_kernel_task,8,3                ## @kernel_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, _kernel_task@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kernel_task@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _TASK_RUNNING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TASK_RUNNING@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	mov	w10, #-1
	mov	x11, x8
                                        ; implicit-def: $x0
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x12, [x11]
	cmp	x12, x9
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w12, [x11, #8]
	cmp	w12, w10
	csel	w10, w12, w10, gt
	csel	x0, x11, x0, gt
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x11, [x11, #16]
	cbnz	x11, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	cbnz	w10, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	x8, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x10, x8
LBB0_7:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w11, w12, [x10, #8]
	add	w11, w12, w11, asr #1
	str	w11, [x10, #8]
	ldr	x10, [x10, #16]
	cbnz	x10, LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w10, #-1
	mov	x11, x8
	cbnz	x8, LBB0_1
LBB0_9:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_kernel_task,8,3                ; @kernel_task
	.comm	_TASK_RUNNING,8,3               ; @TASK_RUNNING
.subsections_via_symbols
