	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_switch_to                      ## -- Begin function switch_to
	.p2align	4, 0x90
_switch_to:                             ## @switch_to
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_NR_TASKS@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_3
## %bb.1:
	leaq	L_.str.4(%rip), %rbx
	leaq	L_str.7(%rip), %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_task@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %r12
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	4(%r12), %edx
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	8(%r12), %edx
	leaq	L_.str.3(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	12(%r12), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	%r14, %rdi
	callq	_puts
	incq	%r15
	movslq	(%r13), %rax
	cmpq	%rax, %r15
	jl	LBB0_2
LBB0_3:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%rsi, %rdi
	je	LBB0_4
## %bb.5:
	movq	%rsi, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cpu_switch_to                  ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NR_TASKS,4,2                   ## @NR_TASKS
	.comm	_task,8,3                       ## @task
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"\n\rtask[%d] counter = %d\n\r"

L_.str.2:                               ## @.str.2
	.asciz	"task[%d] priority = %d\n\r"

L_.str.3:                               ## @.str.3
	.asciz	"task[%d] preempt_count = %d\n\r"

L_.str.4:                               ## @.str.4
	.asciz	"task[%d] sp = 0x%08x\n\r"

L_.str.6:                               ## @.str.6
	.asciz	"\n\rtask output: "

	.comm	_current,8,3                    ## @current
L_str:                                  ## @str
	.asciz	"\n\r\n\r----------- Task switch -----------\r"

L_str.7:                                ## @str.7
	.asciz	"\n\r------------------------------\r"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_switch_to                      ; -- Begin function switch_to
	.p2align	2
_switch_to:                             ; @switch_to
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x0, l_str@PAGE
Lloh1:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh2:
	adrp	x25, _NR_TASKS@GOTPAGE
Lloh3:
	ldr	x25, [x25, _NR_TASKS@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x26, #0
Lloh4:
	adrp	x27, _task@GOTPAGE
Lloh5:
	ldr	x27, [x27, _task@GOTPAGEOFF]
Lloh6:
	adrp	x20, l_.str.1@PAGE
Lloh7:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh8:
	adrp	x21, l_.str.2@PAGE
Lloh9:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh10:
	adrp	x22, l_.str.3@PAGE
Lloh11:
	add	x22, x22, l_.str.3@PAGEOFF
Lloh12:
	adrp	x23, l_.str.4@PAGE
Lloh13:
	add	x23, x23, l_.str.4@PAGEOFF
Lloh14:
	adrp	x24, l_str.7@PAGE
Lloh15:
	add	x24, x24, l_str.7@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27]
	ldr	x28, [x8, x26, lsl #3]
	ldr	w8, [x28]
	stp	x26, x8, [sp]
	mov	x0, x20
	bl	_printf
	ldr	w8, [x28, #4]
	stp	x26, x8, [sp]
	mov	x0, x21
	bl	_printf
	ldr	w8, [x28, #8]
	stp	x26, x8, [sp]
	mov	x0, x22
	bl	_printf
	ldr	w8, [x28, #12]
	stp	x26, x8, [sp]
	mov	x0, x23
	bl	_printf
	mov	x0, x24
	bl	_puts
	add	x26, x26, #1
	ldrsw	x8, [x25]
	cmp	x26, x8
	b.lt	LBB0_2
LBB0_3:
Lloh16:
	adrp	x0, l_.str.6@PAGE
Lloh17:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
Lloh18:
	adrp	x8, _current@GOTPAGE
Lloh19:
	ldr	x8, [x8, _current@GOTPAGEOFF]
	ldr	x0, [x8]
	cmp	x0, x19
	b.eq	LBB0_5
; %bb.4:
	str	x19, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_cpu_switch_to
LBB0_5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NR_TASKS,4,2                   ; @NR_TASKS
	.comm	_task,8,3                       ; @task
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"\n\rtask[%d] counter = %d\n\r"

l_.str.2:                               ; @.str.2
	.asciz	"task[%d] priority = %d\n\r"

l_.str.3:                               ; @.str.3
	.asciz	"task[%d] preempt_count = %d\n\r"

l_.str.4:                               ; @.str.4
	.asciz	"task[%d] sp = 0x%08x\n\r"

l_.str.6:                               ; @.str.6
	.asciz	"\n\rtask output: "

	.comm	_current,8,3                    ; @current
l_str:                                  ; @str
	.asciz	"\n\r\n\r----------- Task switch -----------\r"

l_str.7:                                ; @str.7
	.asciz	"\n\r------------------------------\r"

.subsections_via_symbols
