	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function task_send
_task_send:                             ## @task_send
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movq	_ISC_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%edi, %edi
	testq	%rsi, %rsi
	setne	%dil
	callq	_REQUIRE
	movq	(%r15), %r12
	xorl	%edi, %edi
	testq	%r12, %r12
	setne	%dil
	callq	_REQUIRE
	xorl	%edi, %edi
	cmpq	$0, (%r12)
	setg	%dil
	callq	_REQUIRE
	movq	(%rbx), %rax
	movq	_task_state_done@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_REQUIRE
	leaq	L_.str(%rip), %rdi
	callq	_XTRACE
	movq	(%rbx), %rax
	movq	_task_state_idle@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_ISC_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	8(%rbx), %edi
	callq	_EMPTY
	movl	%eax, %edi
	callq	_INSIST
	movq	_task_state_ready@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_2:
	movq	_task_state_ready@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_task_state_running@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_INSIST
	movl	8(%rbx), %edi
	movq	_ev_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_ENQUEUE
	movq	$0, (%r15)
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISC_FALSE,4,2                  ## @ISC_FALSE
	.comm	_task_state_done,8,3            ## @task_state_done
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"task_send"

	.comm	_task_state_idle,8,3            ## @task_state_idle
	.comm	_ISC_TRUE,4,2                   ## @ISC_TRUE
	.comm	_task_state_ready,8,3           ## @task_state_ready
	.comm	_task_state_running,8,3         ## @task_state_running
	.comm	_ev_link,4,2                    ## @ev_link
	.no_dead_strip	_task_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function task_send
_task_send:                             ; @task_send
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _ISC_FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISC_FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	cmp	x1, #0
	cset	w0, ne
	bl	_REQUIRE
	ldr	x22, [x19]
	cmp	x22, #0
	cset	w0, ne
	bl	_REQUIRE
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w0, gt
	bl	_REQUIRE
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _task_state_done@GOTPAGE
Lloh4:
	ldr	x9, [x9, _task_state_done@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_REQUIRE
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_XTRACE
	ldr	x8, [x21]
Lloh8:
	adrp	x9, _task_state_idle@GOTPAGE
Lloh9:
	ldr	x9, [x9, _task_state_idle@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x23, _task_state_ready@GOTPAGE
Lloh12:
	ldr	x23, [x23, _task_state_ready@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh13:
	adrp	x8, _ISC_TRUE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ISC_TRUE@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
	ldr	w0, [x21, #8]
	bl	_EMPTY
	bl	_INSIST
	ldr	x8, [x23]
	str	x8, [x21]
LBB0_2:
	ldr	x9, [x23]
	cmp	x8, x9
Lloh16:
	adrp	x9, _task_state_running@GOTPAGE
Lloh17:
	ldr	x9, [x9, _task_state_running@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_INSIST
	ldr	w0, [x21, #8]
Lloh19:
	adrp	x8, _ev_link@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ev_link@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_ENQUEUE
	str	xzr, [x19]
	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 AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ISC_FALSE,4,2                  ; @ISC_FALSE
	.comm	_task_state_done,8,3            ; @task_state_done
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"task_send"

	.comm	_task_state_idle,8,3            ; @task_state_idle
	.comm	_ISC_TRUE,4,2                   ; @ISC_TRUE
	.comm	_task_state_ready,8,3           ; @task_state_ready
	.comm	_task_state_running,8,3         ; @task_state_running
	.comm	_ev_link,4,2                    ; @ev_link
	.no_dead_strip	_task_send
.subsections_via_symbols
