	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WaitForBackgroundWorkerStartup ## -- Begin function WaitForBackgroundWorkerStartup
	.p2align	4, 0x90
_WaitForBackgroundWorkerStartup:        ## @WaitForBackgroundWorkerStartup
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	_MyLatch@GOTPCREL(%rip), %r15
	movq	_WL_POSTMASTER_DEATH@GOTPCREL(%rip), %r12
	movq	_WAIT_EVENT_BGWORKER_STARTUP@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movq	%rbx, %rdi
	leaq	-44(%rbp), %rsi
	callq	_GetBackgroundWorkerPid
	movq	_BGWH_STARTED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %ecx
	movl	%ecx, (%r14)
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_BGWH_NOT_YET_STARTED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %edi
	movl	(%r12), %esi
	movq	_WL_LATCH_SET@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	(%r13), %ecx
	xorl	%edx, %edx
	callq	_WaitLatch
	testl	%eax, (%r12)
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %edi
	callq	_ResetLatch
	jmp	LBB0_1
LBB0_5:
	movq	_BGWH_POSTMASTER_DIED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BGWH_STARTED,4,2               ## @BGWH_STARTED
	.comm	_BGWH_NOT_YET_STARTED,4,2       ## @BGWH_NOT_YET_STARTED
	.comm	_MyLatch,4,2                    ## @MyLatch
	.comm	_WL_LATCH_SET,4,2               ## @WL_LATCH_SET
	.comm	_WL_POSTMASTER_DEATH,4,2        ## @WL_POSTMASTER_DEATH
	.comm	_WAIT_EVENT_BGWORKER_STARTUP,4,2 ## @WAIT_EVENT_BGWORKER_STARTUP
	.comm	_BGWH_POSTMASTER_DIED,4,2       ## @BGWH_POSTMASTER_DIED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WaitForBackgroundWorkerStartup ; -- Begin function WaitForBackgroundWorkerStartup
	.p2align	2
_WaitForBackgroundWorkerStartup:        ; @WaitForBackgroundWorkerStartup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _BGWH_STARTED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BGWH_STARTED@GOTPAGEOFF]
Lloh2:
	adrp	x22, _BGWH_NOT_YET_STARTED@GOTPAGE
Lloh3:
	ldr	x22, [x22, _BGWH_NOT_YET_STARTED@GOTPAGEOFF]
Lloh4:
	adrp	x23, _MyLatch@GOTPAGE
Lloh5:
	ldr	x23, [x23, _MyLatch@GOTPAGEOFF]
Lloh6:
	adrp	x24, _WL_LATCH_SET@GOTPAGE
Lloh7:
	ldr	x24, [x24, _WL_LATCH_SET@GOTPAGEOFF]
Lloh8:
	adrp	x25, _WL_POSTMASTER_DEATH@GOTPAGE
Lloh9:
	ldr	x25, [x25, _WL_POSTMASTER_DEATH@GOTPAGEOFF]
Lloh10:
	adrp	x26, _WAIT_EVENT_BGWORKER_STARTUP@GOTPAGE
Lloh11:
	ldr	x26, [x26, _WAIT_EVENT_BGWORKER_STARTUP@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_CHECK_FOR_INTERRUPTS
	add	x1, sp, #12
	mov	x0, x20
	bl	_GetBackgroundWorkerPid
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #12]
	str	w8, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x23]
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w1, w9, w8
	ldr	w3, [x26]
	mov	w2, #0
	bl	_WaitLatch
	ldr	w8, [x25]
	tst	w8, w0
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x23]
	bl	_ResetLatch
	b	LBB0_1
LBB0_6:
Lloh12:
	adrp	x8, _BGWH_POSTMASTER_DIED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BGWH_POSTMASTER_DIED@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BGWH_STARTED,4,2               ; @BGWH_STARTED
	.comm	_BGWH_NOT_YET_STARTED,4,2       ; @BGWH_NOT_YET_STARTED
	.comm	_MyLatch,4,2                    ; @MyLatch
	.comm	_WL_LATCH_SET,4,2               ; @WL_LATCH_SET
	.comm	_WL_POSTMASTER_DEATH,4,2        ; @WL_POSTMASTER_DEATH
	.comm	_WAIT_EVENT_BGWORKER_STARTUP,4,2 ; @WAIT_EVENT_BGWORKER_STARTUP
	.comm	_BGWH_POSTMASTER_DIED,4,2       ; @BGWH_POSTMASTER_DIED
.subsections_via_symbols
