	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_wchan                      ## -- Begin function get_wchan
	.p2align	4, 0x90
_get_wchan:                             ## @get_wchan
	.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
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.1:
	movq	%rdi, %r15
	movq	_current@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	je	LBB0_15
## %bb.2:
	movq	(%r15), %rax
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	callq	_task_stack_page
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r14
	movq	8(%r15), %rax
	movq	(%rax), %r15
	cmpq	%r14, %r15
	jb	LBB0_3
## %bb.8:
	movq	_THREAD_SIZE@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	addq	%r14, %rax
	xorl	%r13d, %r13d
	cmpq	%rax, %r15
	jb	LBB0_12
LBB0_3:
	xorl	%ebx, %ebx
LBB0_15:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%r13d, %ecx
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	addq	$8, %r15
	movq	(%r12), %rax
	addq	%r14, %rax
	movl	%ecx, %r13d
	movl	$0, %ebx
	cmpq	%rax, %r15
	jae	LBB0_15
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rbx
	movq	%rbx, %rdi
	callq	_in_sched_functions
	movl	$1, %ecx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rbx, %rdi
	callq	_kernel_text_address
	testq	%rax, %rax
	je	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%r13d, %ecx
	testl	%r13d, %r13d
	je	LBB0_11
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_TASK_RUNNING,8,3               ## @TASK_RUNNING
	.comm	_THREAD_SIZE,8,3                ## @THREAD_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_wchan                      ; -- Begin function get_wchan
	.p2align	2
_get_wchan:                             ; @get_wchan
	.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	x20, #0
	cbz	x0, LBB0_12
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.eq	LBB0_12
; %bb.2:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _TASK_RUNNING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TASK_RUNNING@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.3:
	mov	x0, x21
	bl	_task_stack_page
	cbz	x0, LBB0_11
; %bb.4:
	mov	x19, x0
	ldr	x8, [x21, #8]
	ldr	x21, [x8]
	cmp	x21, x0
	b.lo	LBB0_11
; %bb.5:
Lloh6:
	adrp	x22, _THREAD_SIZE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _THREAD_SIZE@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x8, x8, x19
	cmp	x21, x8
	b.hs	LBB0_11
; %bb.6:
	mov	w23, #0
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	w23, #1
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x20, #0
	add	x21, x21, #8
	ldr	x8, [x22]
	add	x8, x8, x19
	cmp	x21, x8
	b.hs	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x21]
	mov	x0, x20
	bl	_in_sched_functions
	cbnz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	bl	_kernel_text_address
	cmp	x0, #0
	ccmp	w23, #0, #4, ne
	b.eq	LBB0_8
	b	LBB0_12
LBB0_11:
	mov	x20, #0
LBB0_12:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_TASK_RUNNING,8,3               ; @TASK_RUNNING
	.comm	_THREAD_SIZE,8,3                ; @THREAD_SIZE
.subsections_via_symbols
