	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sched_switch
_sched_switch:                          ## @sched_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	%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	%rdx, %rbx
	movq	%rsi, %r14
	movl	%edi, %r12d
	movl	8(%rdx), %edi
	callq	_find_create_pid
	movq	%rax, %r15
	movl	4(%rbx), %edi
	callq	_find_create_pid
	movq	%rax, %r13
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rax), %rcx
	movq	_TYPE_NONE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_3
## %bb.2:
	movl	8(%rbx), %edi
	movq	_TYPE_RUNNING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	8(%rax), %rcx
	movl	%r12d, %edx
	movq	%r14, %r8
	callq	_pid_put_sample
LBB0_3:
	testq	%r13, %r13
	je	LBB0_8
## %bb.4:
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	(%rax), %rsi
	movq	_TYPE_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	je	LBB0_7
## %bb.6:
	movl	4(%rbx), %edi
	movq	8(%rax), %rcx
	movl	%r12d, %edx
	movq	%r14, %r8
	callq	_pid_put_sample
	movq	(%r13), %rax
LBB0_7:
	movq	%r14, 8(%rax)
	movq	_TYPE_RUNNING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
LBB0_8:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	movq	_TYPE_NONE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	movq	%r14, 8(%rax)
	movl	(%rbx), %ecx
	testb	$2, %cl
	jne	LBB0_10
## %bb.11:
	testl	%ecx, %ecx
	jne	LBB0_14
## %bb.12:
	movq	_TYPE_WAITING@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_10:
	movq	_TYPE_BLOCKED@GOTPCREL(%rip), %rcx
LBB0_13:
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPE_NONE,8,3                  ## @TYPE_NONE
	.comm	_TYPE_RUNNING,8,3               ## @TYPE_RUNNING
	.comm	_TYPE_BLOCKED,8,3               ## @TYPE_BLOCKED
	.comm	_TYPE_WAITING,8,3               ## @TYPE_WAITING
	.no_dead_strip	_sched_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sched_switch
_sched_switch:                          ; @sched_switch
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	ldr	w0, [x2, #8]
	bl	_find_create_pid
	mov	x21, x0
	ldr	w0, [x19, #4]
	bl	_find_create_pid
	mov	x23, x0
	ldr	x8, [x21]
Lloh0:
	adrp	x24, _TYPE_NONE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TYPE_NONE@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x9, [x8]
	ldr	x10, [x24]
	cmp	x9, x10
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
Lloh2:
	adrp	x9, _TYPE_RUNNING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TYPE_RUNNING@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x9]
	ldr	x3, [x8, #8]
	mov	x2, x22
	mov	x4, x20
	bl	_pid_put_sample
LBB0_3:
	cbz	x23, LBB0_8
; %bb.4:
	ldr	x8, [x23]
	cbz	x8, LBB0_8
; %bb.5:
	ldr	x1, [x8]
	ldr	x9, [x24]
	cmp	x1, x9
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x19, #4]
	ldr	x3, [x8, #8]
	mov	x2, x22
	mov	x4, x20
	bl	_pid_put_sample
	ldr	x8, [x23]
LBB0_7:
Lloh5:
	adrp	x9, _TYPE_RUNNING@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TYPE_RUNNING@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	stp	x9, x20, [x8]
LBB0_8:
	ldr	x8, [x21]
	cbz	x8, LBB0_14
; %bb.9:
	ldr	x9, [x24]
	stp	x9, x20, [x8]
	ldr	w9, [x19]
	tbnz	w9, #1, LBB0_12
; %bb.10:
	cbnz	w9, LBB0_14
; %bb.11:
Lloh8:
	adrp	x9, _TYPE_WAITING@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TYPE_WAITING@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh10:
	adrp	x9, _TYPE_BLOCKED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TYPE_BLOCKED@GOTPAGEOFF]
LBB0_13:
	ldr	x9, [x9]
	str	x9, [x8]
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPE_NONE,8,3                  ; @TYPE_NONE
	.comm	_TYPE_RUNNING,8,3               ; @TYPE_RUNNING
	.comm	_TYPE_BLOCKED,8,3               ; @TYPE_BLOCKED
	.comm	_TYPE_WAITING,8,3               ; @TYPE_WAITING
	.no_dead_strip	_sched_switch
.subsections_via_symbols
