	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MultiExecParallelHash
_MultiExecParallelHash:                 ## @MultiExecParallelHash
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_outerPlanState
	movq	%rax, %r13
	movq	16(%r14), %r15
	movq	(%r14), %r12
	movq	8(%r14), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	40(%r15), %rbx
	leaq	20(%rbx), %r14
	movq	%r14, %rdi
	callq	_BarrierPhase
	xorl	%edi, %edi
	cmpl	$129, %eax
	setge	%dil
	callq	_Assert
	movq	%r14, %rdi
	callq	_BarrierPhase
	cmpl	$128, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_17
## %bb.2:
	movq	_WAIT_EVENT_HASH_BUILD_ALLOCATING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_BarrierArriveAndWait
LBB0_3:
	leaq	12(%rbx), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_BarrierAttach
	movl	%eax, %edi
	callq	_PHJ_GROW_BATCHES_PHASE
	movq	_PHJ_GROW_BATCHES_ELECTING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_ExecParallelHashIncreaseNumBatches
LBB0_5:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leaq	16(%rbx), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_BarrierAttach
	movl	%eax, %edi
	callq	_PHJ_GROW_BUCKETS_PHASE
	movq	_PHJ_GROW_BUCKETS_ELECTING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_ExecParallelHashIncreaseNumBuckets
LBB0_7:
	movq	%r15, %rdi
	callq	_ExecParallelHashEnsureBatchAccessors
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ExecParallelHashTableSetCurrentBatch
	movq	%r13, %rbx
	movq	%r13, %rdi
	callq	_ExecProcNode
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_TupIsNull
	testl	%eax, %eax
	je	LBB0_8
LBB0_12:
	cmpl	$0, (%r15)
	jle	LBB0_15
## %bb.13:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_sts_end_write
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_14
LBB0_15:
	movq	%r15, %rdi
	callq	_ExecParallelHashMergeCounters
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_BarrierDetach
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_BarrierDetach
	movq	_WAIT_EVENT_HASH_BUILD_HASHING_INNER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_BarrierArriveAndWait
	testl	%eax, %eax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_17
## %bb.16:
	movq	_PHJ_GROWTH_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_17:
	movl	$-1, 4(%r15)
	movl	4(%rbx), %edi
	movl	%edi, 12(%r15)
	callq	_my_log2
	movl	%eax, 16(%r15)
	movl	(%rbx), %eax
	movl	%eax, 8(%r15)
	movq	%r15, %rdi
	callq	_ExecParallelHashEnsureBatchAccessors
	movq	%r14, %rdi
	callq	_BarrierPhase
	movq	_PHJ_BUILD_HASHING_OUTER@GOTPCREL(%rip), %rcx
	movl	$1, %edi
	cmpl	(%rcx), %eax
	je	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	callq	_BarrierPhase
	movq	_PHJ_BUILD_DONE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	sete	%dil
LBB0_19:
	callq	_Assert
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	-44(%rbp), %r13
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	32(%r15)
	movq	%rbx, %rdi
	callq	_ExecProcNode
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_TupIsNull
	testl	%eax, %eax
	jne	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, (%r12)
	movl	36(%r15), %r8d
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	movq	%r13, %r9
	callq	_ExecHashGetHashValue
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ExecParallelHashTableInsert
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_WAIT_EVENT_HASH_BUILD_ALLOCATING,4,2 ## @WAIT_EVENT_HASH_BUILD_ALLOCATING
	.comm	_PHJ_GROW_BATCHES_ELECTING,4,2  ## @PHJ_GROW_BATCHES_ELECTING
	.comm	_PHJ_GROW_BUCKETS_ELECTING,4,2  ## @PHJ_GROW_BUCKETS_ELECTING
	.comm	_WAIT_EVENT_HASH_BUILD_HASHING_INNER,4,2 ## @WAIT_EVENT_HASH_BUILD_HASHING_INNER
	.comm	_PHJ_GROWTH_DISABLED,4,2        ## @PHJ_GROWTH_DISABLED
	.comm	_PHJ_BUILD_HASHING_OUTER,4,2    ## @PHJ_BUILD_HASHING_OUTER
	.comm	_PHJ_BUILD_DONE,4,2             ## @PHJ_BUILD_DONE
	.no_dead_strip	_MultiExecParallelHash
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MultiExecParallelHash
_MultiExecParallelHash:                 ; @MultiExecParallelHash
	.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	_outerPlanState
	mov	x21, x0
	ldp	x22, x20, [x19, #8]
	ldr	x24, [x19]
	ldr	x27, [x20, #40]
	add	x19, x27, #20
	mov	x0, x19
	bl	_BarrierPhase
	cmp	w0, #128
	cset	w0, gt
	bl	_Assert
	mov	x0, x19
	bl	_BarrierPhase
	cmp	w0, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w0, #129
	b.ne	LBB0_17
; %bb.2:
Lloh0:
	adrp	x8, _WAIT_EVENT_HASH_BUILD_ALLOCATING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WAIT_EVENT_HASH_BUILD_ALLOCATING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BarrierArriveAndWait
LBB0_3:
	add	x23, x27, #12
	mov	x0, x23
	bl	_BarrierAttach
	bl	_PHJ_GROW_BATCHES_PHASE
Lloh3:
	adrp	x8, _PHJ_GROW_BATCHES_ELECTING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHJ_GROW_BATCHES_ELECTING@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_ExecParallelHashIncreaseNumBatches
LBB0_5:
	add	x25, x27, #16
	mov	x0, x25
	bl	_BarrierAttach
	bl	_PHJ_GROW_BUCKETS_PHASE
Lloh6:
	adrp	x8, _PHJ_GROW_BUCKETS_ELECTING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PHJ_GROW_BUCKETS_ELECTING@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_ExecParallelHashIncreaseNumBuckets
LBB0_7:
	mov	x0, x20
	bl	_ExecParallelHashEnsureBatchAccessors
	mov	x0, x20
	mov	w1, #0
	bl	_ExecParallelHashTableSetCurrentBatch
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x20, #32]
	add	w8, w8, #1
	str	w8, [x20, #32]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_ExecProcNode
	mov	x26, x0
	bl	_TupIsNull
	cbnz	w0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	str	x26, [x24]
	ldr	w4, [x20, #36]
	add	x5, sp, #12
	mov	x0, x20
	mov	x1, x24
	mov	x2, x22
	mov	w3, #0
	bl	_ExecHashGetHashValue
	cbz	w0, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w2, [sp, #12]
	mov	x0, x20
	mov	x1, x26
	bl	_ExecParallelHashTableInsert
	b	LBB0_8
LBB0_12:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.13:
	mov	x21, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	w0, [x8, x21, lsl #2]
	bl	_sts_end_write
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_14
LBB0_15:
	mov	x0, x20
	bl	_ExecParallelHashMergeCounters
	mov	x0, x25
	bl	_BarrierDetach
	mov	x0, x23
	bl	_BarrierDetach
Lloh9:
	adrp	x8, _WAIT_EVENT_HASH_BUILD_HASHING_INNER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WAIT_EVENT_HASH_BUILD_HASHING_INNER@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BarrierArriveAndWait
	cbz	w0, LBB0_17
; %bb.16:
Lloh12:
	adrp	x8, _PHJ_GROWTH_DISABLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PHJ_GROWTH_DISABLED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x27, #8]
LBB0_17:
	mov	w8, #-1
	str	w8, [x20, #4]
	ldr	w0, [x27, #4]
	str	w0, [x20, #12]
	bl	_my_log2
	str	w0, [x20, #16]
	ldr	w8, [x27]
	str	w8, [x20, #8]
	mov	x0, x20
	bl	_ExecParallelHashEnsureBatchAccessors
	mov	x0, x19
	bl	_BarrierPhase
Lloh15:
	adrp	x8, _PHJ_BUILD_HASHING_OUTER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PHJ_BUILD_HASHING_OUTER@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_19
; %bb.18:
	mov	w0, #1
	b	LBB0_20
LBB0_19:
	mov	x0, x19
	bl	_BarrierPhase
Lloh18:
	adrp	x8, _PHJ_BUILD_DONE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PHJ_BUILD_DONE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, eq
LBB0_20:
	bl	_Assert
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_WAIT_EVENT_HASH_BUILD_ALLOCATING,4,2 ; @WAIT_EVENT_HASH_BUILD_ALLOCATING
	.comm	_PHJ_GROW_BATCHES_ELECTING,4,2  ; @PHJ_GROW_BATCHES_ELECTING
	.comm	_PHJ_GROW_BUCKETS_ELECTING,4,2  ; @PHJ_GROW_BUCKETS_ELECTING
	.comm	_WAIT_EVENT_HASH_BUILD_HASHING_INNER,4,2 ; @WAIT_EVENT_HASH_BUILD_HASHING_INNER
	.comm	_PHJ_GROWTH_DISABLED,4,2        ; @PHJ_GROWTH_DISABLED
	.comm	_PHJ_BUILD_HASHING_OUTER,4,2    ; @PHJ_BUILD_HASHING_OUTER
	.comm	_PHJ_BUILD_DONE,4,2             ; @PHJ_BUILD_DONE
	.no_dead_strip	_MultiExecParallelHash
.subsections_via_symbols
