	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ExecParallelFinish             ## -- Begin function ExecParallelFinish
	.p2align	4, 0x90
_ExecParallelFinish:                    ## @ExecParallelFinish
	.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
	cmpl	$0, (%rdi)
	jne	LBB0_15
## %bb.1:
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	movl	(%rax), %r14d
	movq	32(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.2:
	testl	%r14d, %r14d
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%rbx,4), %edi
	callq	_shm_mq_detach
	incq	%rbx
	movq	32(%r15), %rdi
	cmpq	%rbx, %r14
	jne	LBB0_4
LBB0_5:
	callq	_pfree
	movq	$0, 32(%r15)
LBB0_6:
	movq	24(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.7:
	testl	%r14d, %r14d
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%rbx,4), %edi
	callq	_DestroyTupleQueueReader
	incq	%rbx
	movq	24(%r15), %rdi
	cmpq	%rbx, %r14
	jne	LBB0_9
LBB0_10:
	callq	_pfree
	movq	$0, 24(%r15)
LBB0_11:
	movq	16(%r15), %rdi
	callq	_WaitForParallelWorkersToFinish
	testl	%r14d, %r14d
	jle	LBB0_14
## %bb.12:
	shlq	$2, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	addq	%rbx, %rdi
	callq	_InstrAccumParallelQuery
	addq	$4, %rbx
	cmpq	%rbx, %r14
	jne	LBB0_13
LBB0_14:
	movl	$1, (%r15)
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ExecParallelFinish             ; -- Begin function ExecParallelFinish
	.p2align	2
_ExecParallelFinish:                    ; @ExecParallelFinish
	.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
	ldr	w8, [x0]
	cbnz	w8, LBB0_15
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w21, [x8]
	ldr	x0, [x0, #32]
	lsl	x20, x21, #2
	cbz	x0, LBB0_6
; %bb.2:
	cmp	w21, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x0, x22]
	bl	_shm_mq_detach
	ldr	x0, [x19, #32]
	add	x22, x22, #4
	cmp	x20, x22
	b.ne	LBB0_4
LBB0_5:
	bl	_pfree
	str	xzr, [x19, #32]
LBB0_6:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_11
; %bb.7:
	cmp	w21, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x22, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x0, x22]
	bl	_DestroyTupleQueueReader
	ldr	x0, [x19, #24]
	add	x22, x22, #4
	cmp	x20, x22
	b.ne	LBB0_9
LBB0_10:
	bl	_pfree
	str	xzr, [x19, #24]
LBB0_11:
	ldr	x0, [x19, #16]
	bl	_WaitForParallelWorkersToFinish
	cmp	w21, #1
	b.lt	LBB0_14
; %bb.12:
	mov	x21, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x21
	bl	_InstrAccumParallelQuery
	add	x21, x21, #4
	cmp	x20, x21
	b.ne	LBB0_13
LBB0_14:
	mov	w8, #1
	str	w8, [x19]
LBB0_15:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
