	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function task_switch
_task_switch:                           ## @task_switch
	.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
	movq	_thread_support@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	_flush_cached_frames
	movq	_current_task@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_current_task_id@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_THREAD_FETCH_REGISTERS
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	callq	_read_pc
	movq	_stop_pc@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
LBB0_5:
	xorl	%eax, %eax
	callq	_get_current_frame
	movl	%eax, %edi
	callq	_select_frame
	jmp	LBB0_6
LBB0_1:
	movl	$-1, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_thread_support,8,3             ## @thread_support
	.comm	_current_task,8,3               ## @current_task
	.comm	_current_task_id,8,3            ## @current_task_id
	.comm	_stop_pc,4,2                    ## @stop_pc
	.comm	_fpregset_saved,4,2             ## @fpregset_saved
	.comm	_gregset_saved,4,2              ## @gregset_saved
	.no_dead_strip	_task_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function task_switch
_task_switch:                           ; @task_switch
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _thread_support@GOTPAGE
Lloh1:
	ldr	x8, [x8, _thread_support@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.1:
	bl	_flush_cached_frames
Lloh3:
	adrp	x8, _current_task@GOTPAGE
Lloh4:
	ldr	x8, [x8, _current_task@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _current_task_id@GOTPAGE
Lloh7:
	ldr	x9, [x9, _current_task_id@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	bl	_THREAD_FETCH_REGISTERS
	mov	x19, x0
	cbnz	w0, LBB0_4
LBB0_3:
	bl	_read_pc
	mov	w19, #0
Lloh9:
	adrp	x8, _stop_pc@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stop_pc@GOTPAGEOFF]
Lloh11:
	str	w0, [x8]
LBB0_4:
	bl	_get_current_frame
	bl	_select_frame
	b	LBB0_6
LBB0_5:
	mov	w19, #-1
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_thread_support,8,3             ; @thread_support
	.comm	_current_task,8,3               ; @current_task
	.comm	_current_task_id,8,3            ; @current_task_id
	.comm	_stop_pc,4,2                    ; @stop_pc
	.comm	_fpregset_saved,4,2             ; @fpregset_saved
	.comm	_gregset_saved,4,2              ; @gregset_saved
	.no_dead_strip	_task_switch
.subsections_via_symbols
