	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WaitForWorkers                 ## -- Begin function WaitForWorkers
	.p2align	4, 0x90
_WaitForWorkers:                        ## @WaitForWorkers
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%edx, %edx
	cmpl	$130, %ebx
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_IsEveryWorkerIdle
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_Assert
	movl	$1, %edx
LBB0_2:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ListenToWorkers
	cmpl	$131, %ebx
	je	LBB0_4
## %bb.3:
	testq	%rax, %rax
	je	LBB0_4
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leal	-128(%rbx), %eax
	cmpl	$3, %eax
	ja	LBB0_12
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:
	movq	%r14, %rdi
	callq	_GetIdleWorker
	movq	_NO_SLOT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_ListenToWorkers
	cmpl	$131, %ebx
	je	LBB0_6
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	testq	%rax, %rax
	jne	LBB0_14
LBB0_6:                                 ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$128, %ebx
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$131, %ebx
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_12 Depth=1
	cmpl	$130, %ebx
	jne	LBB0_12
LBB0_9:
	xorl	%edi, %edi
	callq	_Assert
	jmp	LBB0_12
LBB0_11:
	movq	%r14, %rdi
	callq	_IsEveryWorkerIdle
	testq	%rax, %rax
	je	LBB0_12
	jmp	LBB0_14
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_14
	.long	L0_0_set_9
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_NO_SLOT,4,2                    ## @NO_SLOT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WaitForWorkers                 ; -- Begin function WaitForWorkers
	.p2align	2
_WaitForWorkers:                        ; @WaitForWorkers
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	cmp	w2, #130
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_IsEveryWorkerIdle
	cmp	x0, #0
	cset	w0, eq
	bl	_Assert
	mov	w2, #1
	b	LBB0_3
LBB0_2:
	mov	w2, #0
LBB0_3:
	mov	x0, x21
	mov	x1, x20
	bl	_ListenToWorkers
	cmp	w19, #131
	b.eq	LBB0_6
; %bb.4:
	cbz	x0, LBB0_6
LBB0_5:
	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
LBB0_6:
	sub	w8, w19, #128
	cmp	w8, #3
	b.hi	LBB0_9
; %bb.7:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
	mov	x0, x20
	bl	_GetIdleWorker
Lloh2:
	adrp	x8, _NO_SLOT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NO_SLOT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1
	bl	_ListenToWorkers
	cmp	w19, #131
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cbnz	x0, LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	cmp	w19, #128
	b.eq	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w19, #131
	b.eq	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w19, #130
	b.ne	LBB0_9
LBB0_14:
	mov	w0, #0
	bl	_Assert
	b	LBB0_9
LBB0_15:
	mov	x0, x20
	bl	_IsEveryWorkerIdle
	cbz	x0, LBB0_9
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_14-LBB0_5)>>2
	.byte	(LBB0_15-LBB0_5)>>2
                                        ; -- End function
	.comm	_NO_SLOT,4,2                    ; @NO_SLOT
.subsections_via_symbols
