	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wait_for_workers_to_become_ready
_wait_for_workers_to_become_ready:      ## @wait_for_workers_to_become_ready
	.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, %r15
	leaq	4(%rsi), %rbx
	movq	%rbx, %rdi
	callq	_SpinLockAcquire
	movl	(%r14), %r12d
	movq	%rbx, %rdi
	callq	_SpinLockRelease
	cmpl	(%r15), %r12d
	jge	LBB0_4
## %bb.1:
	movq	_MyLatch@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_check_worker_status
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	movq	_WL_EXIT_ON_PM_DEATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WL_LATCH_SET@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_PG_WAIT_EXTENSION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	callq	_WaitLatch
	movl	(%r12), %edi
	callq	_ResetLatch
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movq	%rbx, %rdi
	callq	_SpinLockAcquire
	movl	(%r14), %r13d
	movq	%rbx, %rdi
	callq	_SpinLockRelease
	cmpl	(%r15), %r13d
	jl	LBB0_2
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_INSUFFICIENT_RESOURCES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ereport                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MyLatch,4,2                    ## @MyLatch
	.comm	_WL_LATCH_SET,4,2               ## @WL_LATCH_SET
	.comm	_WL_EXIT_ON_PM_DEATH,4,2        ## @WL_EXIT_ON_PM_DEATH
	.comm	_PG_WAIT_EXTENSION,4,2          ## @PG_WAIT_EXTENSION
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INSUFFICIENT_RESOURCES,4,2 ## @ERRCODE_INSUFFICIENT_RESOURCES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"one or more background workers failed to start"

	.no_dead_strip	_wait_for_workers_to_become_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wait_for_workers_to_become_ready
_wait_for_workers_to_become_ready:      ; @wait_for_workers_to_become_ready
	.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, x1
	mov	x20, x0
	add	x21, x1, #4
	mov	x0, x21
	bl	_SpinLockAcquire
	ldr	w22, [x19]
	mov	x0, x21
	bl	_SpinLockRelease
	ldr	w8, [x20]
	cmp	w22, w8
	b.ge	LBB0_4
; %bb.1:
Lloh0:
	adrp	x22, _MyLatch@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MyLatch@GOTPAGEOFF]
Lloh2:
	adrp	x23, _WL_LATCH_SET@GOTPAGE
Lloh3:
	ldr	x23, [x23, _WL_LATCH_SET@GOTPAGEOFF]
Lloh4:
	adrp	x24, _WL_EXIT_ON_PM_DEATH@GOTPAGE
Lloh5:
	ldr	x24, [x24, _WL_EXIT_ON_PM_DEATH@GOTPAGEOFF]
Lloh6:
	adrp	x25, _PG_WAIT_EXTENSION@GOTPAGE
Lloh7:
	ldr	x25, [x25, _PG_WAIT_EXTENSION@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_check_worker_status
	cbz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x22]
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w1, w9, w8
	ldr	w3, [x25]
	mov	w2, #0
	bl	_WaitLatch
	ldr	w0, [x22]
	bl	_ResetLatch
	bl	_CHECK_FOR_INTERRUPTS
	mov	x0, x21
	bl	_SpinLockAcquire
	ldr	w26, [x19]
	mov	x0, x21
	bl	_SpinLockRelease
	ldr	w8, [x20]
	cmp	w26, w8
	b.lt	LBB0_2
LBB0_4:
	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_5:
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
Lloh11:
	adrp	x8, _ERRCODE_INSUFFICIENT_RESOURCES@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERRCODE_INSUFFICIENT_RESOURCES@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_errcode
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	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	_ereport
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MyLatch,4,2                    ; @MyLatch
	.comm	_WL_LATCH_SET,4,2               ; @WL_LATCH_SET
	.comm	_WL_EXIT_ON_PM_DEATH,4,2        ; @WL_EXIT_ON_PM_DEATH
	.comm	_PG_WAIT_EXTENSION,4,2          ; @PG_WAIT_EXTENSION
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INSUFFICIENT_RESOURCES,4,2 ; @ERRCODE_INSUFFICIENT_RESOURCES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"one or more background workers failed to start"

	.no_dead_strip	_wait_for_workers_to_become_ready
.subsections_via_symbols
