	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ParallelQueryMain              ## -- Begin function ParallelQueryMain
	.p2align	4, 0x90
_ParallelQueryMain:                     ## @ParallelQueryMain
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_PARALLEL_KEY_EXECUTOR_FIXED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_shm_toc_lookup
	movq	%rax, %r14
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ExecParallelGetReceiver
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_PARALLEL_KEY_INSTRUMENTATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_shm_toc_lookup
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rax), %ebx
LBB0_2:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_PARALLEL_KEY_JIT_INSTRUMENTATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_shm_toc_lookup
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_ExecParallelGetQueryDesc
	movq	%rax, %rbx
	movl	24(%rax), %esi
	movq	_debug_query_string@GOTPCREL(%rip), %rax
	movl	%esi, (%rax)
	movq	_STATE_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pgstat_report_activity
	movq	_PARALLEL_KEY_DSA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_shm_toc_lookup
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_dsa_attach_in_place
	movq	%rax, %r13
	movl	16(%r14), %eax
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	12(%r14), %esi
	movq	%rbx, %rdi
	callq	_ExecutorStart
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	%r13, (%rax)
	movl	8(%r14), %edi
	callq	_DsaPointerIsValid
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	8(%r14), %esi
	movq	%r13, %rdi
	callq	_dsa_get_address
	movq	(%rbx), %rsi
	movq	%rax, %rdi
	callq	_RestoreParamExecParams
LBB0_4:
	movq	%r15, -72(%rbp)
	movq	%r12, -80(%rbp)
	movq	8(%rbx), %rdi
	leaq	-80(%rbp), %rsi
	callq	_ExecParallelInitializeWorker
	movq	(%r14), %rdi
	movq	8(%rbx), %rsi
	callq	_ExecSetTupleBound
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_InstrStartParallelQuery
	movq	_ForwardScanDirection@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rdx
	testq	%rdx, %rdx
	cmovleq	%r12, %rdx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_ExecutorRun
	movq	%rbx, %rdi
	callq	_ExecutorFinish
	movq	_PARALLEL_KEY_BUFFER_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_shm_toc_lookup
	movq	_ParallelWorkerNumber@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	leaq	(%rax,%rcx,4), %rdi
	callq	_InstrEndParallelQuery
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:
	movq	8(%rbx), %rdi
	callq	_ExecParallelReportInstrumentation
LBB0_6:
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_9
## %bb.7:
	testq	%r15, %r15
	je	LBB0_9
## %bb.8:
	movq	(%r14), %rax
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	setb	%dil
	callq	_Assert
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movq	8(%r15), %rcx
	movq	(%r14), %rdx
	movl	%eax, (%rcx,%rdx,4)
LBB0_9:
	movq	%rbx, %rdi
	callq	_ExecutorEnd
	movq	%r13, %rdi
	callq	_dsa_detach
	movq	%rbx, %rdi
	callq	_FreeQueryDesc
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	*(%rdi)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PARALLEL_KEY_EXECUTOR_FIXED,4,2 ## @PARALLEL_KEY_EXECUTOR_FIXED
	.comm	_PARALLEL_KEY_INSTRUMENTATION,4,2 ## @PARALLEL_KEY_INSTRUMENTATION
	.comm	_PARALLEL_KEY_JIT_INSTRUMENTATION,4,2 ## @PARALLEL_KEY_JIT_INSTRUMENTATION
	.comm	_debug_query_string,4,2         ## @debug_query_string
	.comm	_STATE_RUNNING,4,2              ## @STATE_RUNNING
	.comm	_PARALLEL_KEY_DSA,4,2           ## @PARALLEL_KEY_DSA
	.comm	_ForwardScanDirection,4,2       ## @ForwardScanDirection
	.comm	_PARALLEL_KEY_BUFFER_USAGE,4,2  ## @PARALLEL_KEY_BUFFER_USAGE
	.comm	_ParallelWorkerNumber,8,3       ## @ParallelWorkerNumber
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ParallelQueryMain              ; -- Begin function ParallelQueryMain
	.p2align	2
_ParallelQueryMain:                     ; @ParallelQueryMain
	.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	x20, x1
	mov	x26, x0
Lloh0:
	adrp	x8, _PARALLEL_KEY_EXECUTOR_FIXED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PARALLEL_KEY_EXECUTOR_FIXED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_shm_toc_lookup
	mov	x24, x0
	mov	x0, x26
	mov	x1, x20
	bl	_ExecParallelGetReceiver
	mov	x19, x0
Lloh3:
	adrp	x8, _PARALLEL_KEY_INSTRUMENTATION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PARALLEL_KEY_INSTRUMENTATION@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1
	bl	_shm_toc_lookup
	mov	x23, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w21, [x23]
	b	LBB0_3
LBB0_2:
	mov	w21, #0
LBB0_3:
Lloh6:
	adrp	x8, _PARALLEL_KEY_JIT_INSTRUMENTATION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PARALLEL_KEY_JIT_INSTRUMENTATION@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1
	bl	_shm_toc_lookup
	mov	x22, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_ExecParallelGetQueryDesc
	mov	x21, x0
	ldr	w1, [x0, #24]
Lloh9:
	adrp	x8, _debug_query_string@GOTPAGE
Lloh10:
	ldr	x8, [x8, _debug_query_string@GOTPAGEOFF]
Lloh11:
	str	w1, [x8]
Lloh12:
	adrp	x8, _STATE_RUNNING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STATE_RUNNING@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_pgstat_report_activity
Lloh15:
	adrp	x8, _PARALLEL_KEY_DSA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PARALLEL_KEY_DSA@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_shm_toc_lookup
	mov	x1, x26
	bl	_dsa_attach_in_place
	mov	x25, x0
	ldr	w8, [x24, #16]
	ldr	x9, [x21, #16]
	str	w8, [x9]
	ldr	w1, [x24, #12]
	mov	x0, x21
	bl	_ExecutorStart
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	str	x25, [x8]
	ldr	w0, [x24, #8]
	bl	_DsaPointerIsValid
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w1, [x24, #8]
	mov	x0, x25
	bl	_dsa_get_address
	ldr	x1, [x21]
	bl	_RestoreParamExecParams
LBB0_5:
	stp	x26, x20, [sp]
	ldr	x0, [x21, #8]
	mov	x1, sp
	bl	_ExecParallelInitializeWorker
	ldr	x0, [x24]
	ldr	x1, [x21, #8]
	bl	_ExecSetTupleBound
	bl	_InstrStartParallelQuery
Lloh18:
	adrp	x8, _ForwardScanDirection@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ForwardScanDirection@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	x8, [x24]
	cmp	x8, #0
	csel	x2, x8, xzr, gt
	mov	x0, x21
	mov	w3, #1
	bl	_ExecutorRun
	mov	x0, x21
	bl	_ExecutorFinish
Lloh21:
	adrp	x8, _PARALLEL_KEY_BUFFER_USAGE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PARALLEL_KEY_BUFFER_USAGE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_shm_toc_lookup
Lloh24:
	adrp	x20, _ParallelWorkerNumber@GOTPAGE
Lloh25:
	ldr	x20, [x20, _ParallelWorkerNumber@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x0, x0, x8, lsl #2
	bl	_InstrEndParallelQuery
	cbz	x23, LBB0_7
; %bb.6:
	ldr	x0, [x21, #8]
	mov	x1, x23
	bl	_ExecParallelReportInstrumentation
LBB0_7:
	ldr	x8, [x21]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.8:
	cbz	x22, LBB0_10
; %bb.9:
	ldr	x8, [x20]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, lo
	bl	_Assert
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w8, [x8]
	ldr	x9, [x22, #8]
	ldr	x10, [x20]
	str	w8, [x9, x10, lsl #2]
LBB0_10:
	mov	x0, x21
	bl	_ExecutorEnd
	mov	x0, x25
	bl	_dsa_detach
	mov	x0, x21
	bl	_FreeQueryDesc
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_PARALLEL_KEY_EXECUTOR_FIXED,4,2 ; @PARALLEL_KEY_EXECUTOR_FIXED
	.comm	_PARALLEL_KEY_INSTRUMENTATION,4,2 ; @PARALLEL_KEY_INSTRUMENTATION
	.comm	_PARALLEL_KEY_JIT_INSTRUMENTATION,4,2 ; @PARALLEL_KEY_JIT_INSTRUMENTATION
	.comm	_debug_query_string,4,2         ; @debug_query_string
	.comm	_STATE_RUNNING,4,2              ; @STATE_RUNNING
	.comm	_PARALLEL_KEY_DSA,4,2           ; @PARALLEL_KEY_DSA
	.comm	_ForwardScanDirection,4,2       ; @ForwardScanDirection
	.comm	_PARALLEL_KEY_BUFFER_USAGE,4,2  ; @PARALLEL_KEY_BUFFER_USAGE
	.comm	_ParallelWorkerNumber,8,3       ; @ParallelWorkerNumber
.subsections_via_symbols
