	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WaitForParallelWorkersToFinish ## -- Begin function WaitForParallelWorkersToFinish
	.p2align	4, 0x90
_WaitForParallelWorkersToFinish:        ## @WaitForParallelWorkersToFinish
	.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, %rbx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_16
## %bb.1:
	leaq	-44(%rbp), %r14
	movq	_BGWH_STOPPED@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_MyLatch@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_WL_EXIT_ON_PM_DEATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WL_LATCH_SET@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_WAIT_EVENT_PARALLEL_FINISH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$-1, %edx
	callq	_WaitLatch
	movl	(%r15), %edi
	callq	_ResetLatch
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
	movq	16(%rbx), %rcx
	movl	%eax, %edx
	xorl	%esi, %esi
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=2
	incl	%r15d
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=2
	incq	%rsi
	addq	$16, %rcx
	cmpq	%rsi, %rdx
	je	LBB0_7
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, (%rcx)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	24(%rbx), %rdi
	cmpq	$0, (%rdi,%rsi,8)
	je	LBB0_6
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, %r15d
	jge	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=2
	incq	%r15
	movslq	(%rbx), %rax
	addq	$16, %r12
	cmpq	%rax, %r15
	jge	LBB0_15
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%rbx), %rax
	cmpq	$0, (%rax,%r12)
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	8(%rax,%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r14, %rsi
	callq	_GetBackgroundWorkerPid
	cmpq	(%r13), %rax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	16(%rbx), %rax
	movq	(%rax,%r12), %rdi
	callq	_shm_mq_get_queue
	movq	%rax, %rdi
	callq	_shm_mq_get_sender
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r13, %r14
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	leaq	L_.str.1(%rip), %rdi
	callq	_errhint
	movl	%r13d, %edi
	movq	%r14, %r13
	leaq	-44(%rbp), %r14
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_14
LBB0_16:
	xorl	%edi, %edi
	cmpl	%eax, %r15d
	sete	%dil
	callq	_Assert
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.17:
	movq	_PARALLEL_KEY_FIXED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_shm_toc_lookup
	movq	(%rax), %rax
	movq	_XactLastRecEnd@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_19
## %bb.18:
	movq	%rax, (%rcx)
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BGWH_STOPPED,8,3               ## @BGWH_STOPPED
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE,4,2 ## @ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"parallel worker failed to initialize"

L_.str.1:                               ## @.str.1
	.asciz	"More details may be available in the server log."

	.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	_WAIT_EVENT_PARALLEL_FINISH,4,2 ## @WAIT_EVENT_PARALLEL_FINISH
	.comm	_PARALLEL_KEY_FIXED,4,2         ## @PARALLEL_KEY_FIXED
	.comm	_XactLastRecEnd,8,3             ## @XactLastRecEnd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WaitForParallelWorkersToFinish ; -- Begin function WaitForParallelWorkersToFinish
	.p2align	2
_WaitForParallelWorkersToFinish:        ; @WaitForParallelWorkersToFinish
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_CHECK_FOR_INTERRUPTS
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.1:
Lloh0:
	adrp	x23, _BGWH_STOPPED@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BGWH_STOPPED@GOTPAGEOFF]
Lloh2:
	adrp	x24, _ERROR@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ERROR@GOTPAGEOFF]
Lloh4:
	adrp	x25, _ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE@GOTPAGEOFF]
Lloh6:
	adrp	x20, l_.str@PAGE
Lloh7:
	add	x20, x20, l_.str@PAGEOFF
Lloh8:
	adrp	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh10:
	adrp	x26, _MyLatch@GOTPAGE
Lloh11:
	ldr	x26, [x26, _MyLatch@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x26]
Lloh12:
	adrp	x8, _WL_LATCH_SET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WL_LATCH_SET@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _WL_EXIT_ON_PM_DEATH@GOTPAGE
Lloh16:
	ldr	x9, [x9, _WL_EXIT_ON_PM_DEATH@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh18:
	adrp	x8, _WAIT_EVENT_PARALLEL_FINISH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WAIT_EVENT_PARALLEL_FINISH@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	w2, #-1
	bl	_WaitLatch
	ldr	w0, [x26]
	bl	_ResetLatch
	bl	_CHECK_FOR_INTERRUPTS
	ldr	w8, [x19]
	cmp	w8, #0
	b.le	LBB0_16
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	mov	x10, #0
	mov	w9, #0
	ldr	x11, [x19, #16]
	mov	w12, w8
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	w9, w9, #1
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x10, x10, #1
	add	x11, x11, #16
	cmp	x12, x10
	b.eq	LBB0_8
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x13, [x11]
	cbz	x13, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x13, [x19, #24]
	ldr	x13, [x13, x10, lsl #3]
	cbz	x13, LBB0_5
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w9, w8
	b.ge	LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, #0
	mov	x27, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x27, x27, #1
	ldrsw	x8, [x19]
	add	x28, x28, #16
	cmp	x27, x8
	b.ge	LBB0_2
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #16]
	ldr	x9, [x8, x28]
	cbz	x9, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	add	x8, x8, x28
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	add	x1, sp, #12
	bl	_GetBackgroundWorkerPid
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x28]
	bl	_shm_mq_get_queue
	bl	_shm_mq_get_sender
	cbnz	x0, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	w22, [x24]
	ldr	w0, [x25]
	bl	_errcode
	mov	x0, x20
	bl	_errmsg
	mov	x0, x21
	bl	_errhint
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
	b	LBB0_10
LBB0_16:
	mov	w9, #0
LBB0_17:
	cmp	w9, w8
	cset	w0, eq
	bl	_Assert
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_20
; %bb.18:
Lloh21:
	adrp	x8, _PARALLEL_KEY_FIXED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PARALLEL_KEY_FIXED@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_shm_toc_lookup
	ldr	x8, [x0]
Lloh24:
	adrp	x9, _XactLastRecEnd@GOTPAGE
Lloh25:
	ldr	x9, [x9, _XactLastRecEnd@GOTPAGEOFF]
	ldr	x10, [x9]
	cmp	x8, x10
	b.le	LBB0_20
; %bb.19:
	str	x8, [x9]
LBB0_20:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_BGWH_STOPPED,8,3               ; @BGWH_STOPPED
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE,4,2 ; @ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"parallel worker failed to initialize"

l_.str.1:                               ; @.str.1
	.asciz	"More details may be available in the server log."

	.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	_WAIT_EVENT_PARALLEL_FINISH,4,2 ; @WAIT_EVENT_PARALLEL_FINISH
	.comm	_PARALLEL_KEY_FIXED,4,2         ; @PARALLEL_KEY_FIXED
	.comm	_XactLastRecEnd,8,3             ; @XactLastRecEnd
.subsections_via_symbols
