	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ConditionVariableBroadcast     ## -- Begin function ConditionVariableBroadcast
	.p2align	4, 0x90
_ConditionVariableBroadcast:            ## @ConditionVariableBroadcast
	.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	%rdi, %r15
	movq	_MyProc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %r14d
	movq	_cv_sleep_target@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_ConditionVariableCancelSleep
LBB0_2:
	movq	%r15, %rdi
	callq	_SpinLockAcquire
	leaq	4(%r15), %r12
	movq	_cvWaitLink@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_proclist_contains
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	%r12, %rdi
	callq	_proclist_is_empty
	testl	%eax, %eax
	je	LBB0_3
## %bb.16:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SpinLockRelease                ## TAILCALL
LBB0_3:
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_proclist_pop_head_node
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_proclist_is_empty
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_cvWaitLink@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_proclist_push_tail
LBB0_5:
	movq	%r15, %rdi
	callq	_SpinLockRelease
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.6:
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_SetLatch
LBB0_7:
	testl	%r13d, %r13d
	je	LBB0_8
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	testl	%r13d, %r13d
	je	LBB0_15
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_SpinLockAcquire
	movq	%r12, %rdi
	callq	_proclist_is_empty
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	xorl	%ebx, %ebx
	movq	_cvWaitLink@GOTPCREL(%rip), %r13
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_cvWaitLink@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_proclist_pop_head_node
	movq	%rax, %rbx
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r13), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_proclist_contains
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_SpinLockRelease
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_MyProc@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_SetLatch
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_MyProc,8,3                     ## @MyProc
	.comm	_cv_sleep_target,8,3            ## @cv_sleep_target
	.comm	_cvWaitLink,4,2                 ## @cvWaitLink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ConditionVariableBroadcast     ; -- Begin function ConditionVariableBroadcast
	.p2align	2
_ConditionVariableBroadcast:            ; @ConditionVariableBroadcast
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x24, _MyProc@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MyProc@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	w20, [x8]
Lloh2:
	adrp	x8, _cv_sleep_target@GOTPAGE
Lloh3:
	ldr	x8, [x8, _cv_sleep_target@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_ConditionVariableCancelSleep
LBB0_2:
	mov	x0, x19
	bl	_SpinLockAcquire
	add	x21, x19, #4
Lloh5:
	adrp	x25, _cvWaitLink@GOTPAGE
Lloh6:
	ldr	x25, [x25, _cvWaitLink@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x21
	mov	x1, x20
	bl	_proclist_contains
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x21
	bl	_proclist_is_empty
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_SpinLockRelease
LBB0_4:
	ldr	w1, [x25]
	mov	x0, x21
	bl	_proclist_pop_head_node
	mov	x22, x0
	mov	x0, x21
	bl	_proclist_is_empty
	mov	x23, x0
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w2, [x25]
	mov	x0, x21
	mov	x1, x20
	bl	_proclist_push_tail
LBB0_6:
	mov	x0, x19
	bl	_SpinLockRelease
	cbz	x22, LBB0_8
; %bb.7:
	add	x0, x22, #4
	bl	_SetLatch
LBB0_8:
	cbz	w23, LBB0_11
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	cbz	w23, LBB0_9
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_SpinLockAcquire
	mov	x0, x21
	bl	_proclist_is_empty
	cbz	w0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x22, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w1, [x25]
	mov	x0, x21
	bl	_proclist_pop_head_node
	mov	x22, x0
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w2, [x25]
	mov	x0, x21
	mov	x1, x20
	bl	_proclist_contains
	mov	x23, x0
	mov	x0, x19
	bl	_SpinLockRelease
	cbz	x22, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x24]
	cmp	x22, x8
	b.eq	LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x0, x22, #4
	bl	_SetLatch
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MyProc,8,3                     ; @MyProc
	.comm	_cv_sleep_target,8,3            ; @cv_sleep_target
	.comm	_cvWaitLink,4,2                 ; @cvWaitLink
.subsections_via_symbols
