	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_taskq_dispatch                 ## -- Begin function taskq_dispatch
	.p2align	4, 0x90
_taskq_dispatch:                        ## @taskq_dispatch
	.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, %r15
	movq	%rsi, %r12
	movq	_taskq_now@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	*%r12
	jmp	LBB0_8
LBB0_2:
	movl	%ecx, %r13d
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_enter
	movq	_TASKQ_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%rbx), %edi
	callq	_ASSERT
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_task_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_TQ_FRONT@GOTPCREL(%rip), %rdx
	leaq	16(%rbx), %rcx
	testl	%r13d, (%rdx)
	je	LBB0_6
## %bb.5:
	movq	40(%rbx), %rdx
	jmp	LBB0_7
LBB0_3:
	movq	%r14, %rdi
	callq	_mutex_exit
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_6:
	movq	%rcx, %rdx
	movq	48(%rbx), %rcx
LBB0_7:
	movq	%rdx, 24(%rax)
	movq	%rcx, 32(%rax)
	movq	%rax, 32(%rdx)
	movq	32(%rax), %rcx
	movq	%rax, 24(%rcx)
	movq	%r12, 16(%rax)
	movq	%r15, 8(%rax)
	movq	$0, (%rax)
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_cv_signal
	movq	%r14, %rdi
	callq	_mutex_exit
LBB0_8:
	movl	$1, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_taskq_now,8,3                  ## @taskq_now
	.comm	_TASKQ_ACTIVE,4,2               ## @TASKQ_ACTIVE
	.comm	_TQ_FRONT,4,2                   ## @TQ_FRONT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_taskq_dispatch                 ; -- Begin function taskq_dispatch
	.p2align	2
_taskq_dispatch:                        ; @taskq_dispatch
	.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, x2
	mov	x21, x1
Lloh0:
	adrp	x8, _taskq_now@GOTPAGE
Lloh1:
	ldr	x8, [x8, _taskq_now@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	blr	x21
	b	LBB0_8
LBB0_2:
	mov	x23, x3
	mov	x22, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_enter
	ldr	w8, [x22]
Lloh3:
	adrp	x9, _TASKQ_ACTIVE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TASKQ_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_ASSERT
	mov	x0, x22
	mov	x1, x23
	bl	_task_alloc
	cbz	x0, LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _TQ_FRONT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TQ_FRONT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x8]
	add	x8, x22, #16
	tst	w9, w23
	b.eq	LBB0_6
; %bb.4:
	ldr	x9, [x22, #40]
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_mutex_exit
	mov	w0, #0
	b	LBB0_9
LBB0_6:
	mov	x9, x8
	ldr	x8, [x22, #48]
LBB0_7:
	stp	x9, x8, [x0, #24]
	str	x0, [x9, #32]
	ldr	x8, [x0, #32]
	str	x0, [x8, #24]
	stp	x20, x21, [x0, #8]
	str	xzr, [x0]
	add	x0, x22, #8
	bl	_cv_signal
	mov	x0, x19
	bl	_mutex_exit
LBB0_8:
	mov	w0, #1
LBB0_9:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_taskq_now,8,3                  ; @taskq_now
	.comm	_TASKQ_ACTIVE,4,2               ; @TASKQ_ACTIVE
	.comm	_TQ_FRONT,4,2                   ; @TQ_FRONT
.subsections_via_symbols
