	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sched_wakeup
_sched_wakeup:                          ## @sched_wakeup
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movl	%edx, %ebx
	movq	%rsi, %r15
	movl	%edi, %r14d
	movl	$24, %edi
	callq	_zalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%r15, 16(%rax)
	movl	%ebx, (%rax)
	movl	(%r12), %edi
	movq	_TRACE_FLAG_HARDIRQ@GOTPCREL(%rip), %rcx
	testl	%edi, (%rcx)
	jne	LBB0_3
## %bb.2:
	movq	_TRACE_FLAG_SOFTIRQ@GOTPCREL(%rip), %rcx
	testl	%edi, (%rcx)
	je	LBB0_4
LBB0_3:
	movl	$-1, (%rax)
LBB0_4:
	movl	%edi, 4(%rax)
	movq	_wake_events@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%rdx, 8(%rax)
	movq	%rax, (%rcx)
	callq	_find_create_pid
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%rax, %rbx
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	(%rax), %rsi
	movq	_TYPE_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	jne	LBB0_8
## %bb.7:
	movq	%r15, 8(%rax)
	movq	_TYPE_WAITING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	%rsi, (%rax)
LBB0_8:
	movq	_TYPE_BLOCKED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	jne	LBB0_10
## %bb.9:
	movl	8(%rbx), %edi
	movq	8(%rax), %rcx
	movl	%r14d, %edx
	movq	%r15, %r8
	callq	_pid_put_sample
	movq	(%rbx), %rax
	movq	%r15, 8(%rax)
	movq	_TYPE_WAITING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRACE_FLAG_HARDIRQ,4,2         ## @TRACE_FLAG_HARDIRQ
	.comm	_TRACE_FLAG_SOFTIRQ,4,2         ## @TRACE_FLAG_SOFTIRQ
	.comm	_wake_events,8,3                ## @wake_events
	.comm	_TYPE_NONE,8,3                  ## @TYPE_NONE
	.comm	_TYPE_WAITING,8,3               ## @TYPE_WAITING
	.comm	_TYPE_BLOCKED,8,3               ## @TYPE_BLOCKED
	.no_dead_strip	_sched_wakeup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sched_wakeup
_sched_wakeup:                          ; @sched_wakeup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	mov	w0, #24
	bl	_zalloc
	cbz	x0, LBB0_10
; %bb.1:
	str	x19, [x0, #16]
	str	w22, [x0]
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _TRACE_FLAG_HARDIRQ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TRACE_FLAG_HARDIRQ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, _TRACE_FLAG_SOFTIRQ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TRACE_FLAG_SOFTIRQ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
LBB0_3:
	mov	w9, #-1
	str	w9, [x0]
LBB0_4:
	str	w8, [x0, #4]
Lloh6:
	adrp	x9, _wake_events@GOTPAGE
Lloh7:
	ldr	x9, [x9, _wake_events@GOTPAGEOFF]
	ldr	x10, [x9]
	str	x10, [x0, #8]
	str	x0, [x9]
	mov	x0, x8
	bl	_find_create_pid
	cbz	x0, LBB0_10
; %bb.5:
	mov	x21, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.6:
	ldr	x1, [x8]
Lloh8:
	adrp	x9, _TYPE_NONE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TYPE_NONE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x1, x9
	b.ne	LBB0_8
; %bb.7:
Lloh11:
	adrp	x9, _TYPE_WAITING@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TYPE_WAITING@GOTPAGEOFF]
Lloh13:
	ldr	x1, [x9]
	stp	x1, x19, [x8]
LBB0_8:
Lloh14:
	adrp	x9, _TYPE_BLOCKED@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TYPE_BLOCKED@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x1, x9
	b.ne	LBB0_10
; %bb.9:
	ldr	w0, [x21, #8]
	ldr	x3, [x8, #8]
	mov	x2, x20
	mov	x4, x19
	bl	_pid_put_sample
	ldr	x8, [x21]
Lloh17:
	adrp	x9, _TYPE_WAITING@GOTPAGE
Lloh18:
	ldr	x9, [x9, _TYPE_WAITING@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	stp	x9, x19, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACE_FLAG_HARDIRQ,4,2         ; @TRACE_FLAG_HARDIRQ
	.comm	_TRACE_FLAG_SOFTIRQ,4,2         ; @TRACE_FLAG_SOFTIRQ
	.comm	_wake_events,8,3                ; @wake_events
	.comm	_TYPE_NONE,8,3                  ; @TYPE_NONE
	.comm	_TYPE_WAITING,8,3               ; @TYPE_WAITING
	.comm	_TYPE_BLOCKED,8,3               ; @TYPE_BLOCKED
	.no_dead_strip	_sched_wakeup
.subsections_via_symbols
