	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ExecParallelHashJoinSetUpBatches
_ExecParallelHashJoinSetUpBatches:      ## @ExecParallelHashJoinSetUpBatches
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rdi), %r12
	xorl	%edi, %edi
	cmpq	$0, 8(%r13)
	sete	%dil
	callq	_Assert
	movl	20(%r13), %r14d
	movq	%r13, %rdi
	callq	_EstimateParallelHashJoinBatch
	imull	%r15d, %eax
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_dsa_allocate0
	movl	%eax, 12(%r12)
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movl	%r15d, (%r12)
	movl	20(%r13), %edi
	movl	%eax, %esi
	callq	_dsa_get_address
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	16(%r13), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	%r15d, (%r13)
	shll	$3, %r15d
	leal	(%r15,%r15,2), %edi
	callq	_palloc0
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, 8(%r13)
	cmpl	$0, (%r13)
	jle	LBB0_9
## %bb.1:
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	$4, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	_PHJ_BATCH_PROBING@GOTPCREL(%rip), %rbx
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movl	%r15d, %esi
	callq	_NthParallelHashJoinBatch
	movq	%rax, %r12
	movq	%rsp, -120(%rbp)                ## 8-byte Spill
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_BarrierInit
	testq	%r15, %r15
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_BarrierAttach
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	callq	_BarrierPhase
	cmpq	(%rbx), %rax
	jge	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_BarrierArriveAndWait
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_BarrierDetach
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-104(%rbp), %r13                ## 8-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r15,%r15,2), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r12, 16(%r13,%rax,8)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r8d
	movq	%r14, %rbx
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	leaq	L_.str(%rip), %rdx
	movl	%r15d, %ecx
	callq	_snprintf
	movq	%r12, %rdi
	callq	_ParallelHashJoinBatchInner
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	8(%r14), %esi
	movq	_ParallelWorkerNumber@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	incq	%rdx
	movq	_SHARED_TUPLESTORE_SINGLE_PASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	subq	$8, %rsp
	movl	%eax, %edi
	movl	$4, %ecx
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	pushq	%rbx
	callq	_sts_initialize
	addq	$16, %rsp
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%r13,%rcx,8)
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %r8d
	movq	%rbx, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	leaq	L_.str.1(%rip), %rdx
	movl	%r15d, %ecx
	callq	_snprintf
	movl	8(%r14), %esi
	movq	%r12, %rdi
	callq	_ParallelHashJoinBatchOuter
	movl	8(%r14), %esi
	movq	_ParallelWorkerNumber@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	incq	%rdx
	movq	_SHARED_TUPLESTORE_SINGLE_PASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	subq	$8, %rsp
	movl	%eax, %edi
	movl	$4, %ecx
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	pushq	%rbx
	callq	_sts_initialize
	addq	$16, %rsp
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx,%rcx,8)
	movq	-120(%rbp), %rsp                ## 8-byte Reload
	incq	%r15
	movslq	(%r13), %rax
	cmpq	%rax, %r15
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_9:
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_MemoryContextSwitchTo
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.comm	_PHJ_BATCH_PROBING,8,3          ## @PHJ_BATCH_PROBING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i%dof%d"

	.comm	_ParallelWorkerNumber,8,3       ## @ParallelWorkerNumber
	.comm	_SHARED_TUPLESTORE_SINGLE_PASS,4,2 ## @SHARED_TUPLESTORE_SINGLE_PASS
L_.str.1:                               ## @.str.1
	.asciz	"o%dof%d"

	.no_dead_strip	_ExecParallelHashJoinSetUpBatches
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ExecParallelHashJoinSetUpBatches
_ExecParallelHashJoinSetUpBatches:      ; @ExecParallelHashJoinSetUpBatches
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x22, [x0, #24]
	ldr	x8, [x0, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	ldr	w20, [x23, #20]
	mov	x0, x23
	bl	_EstimateParallelHashJoinBatch
	mul	w1, w0, w21
	mov	x0, x20
	bl	_dsa_allocate0
	mov	x1, x0
	str	w0, [x22, #12]
	stur	x22, [x29, #-96]                ; 8-byte Folded Spill
	str	w21, [x22]
	ldr	w0, [x23, #20]
	bl	_dsa_get_address
	stur	x0, [x29, #-104]                ; 8-byte Folded Spill
	ldr	w0, [x23, #16]
	bl	_MemoryContextSwitchTo
	stur	w0, [x29, #-116]                ; 4-byte Folded Spill
	str	w21, [x23]
	add	w8, w21, w21, lsl #1
	lsl	w0, w8, #3
	bl	_palloc0
	str	x0, [x23, #8]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x28, x0
	mov	x22, #0
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	add	x8, x8, #4
	stur	x8, [x29, #-112]                ; 8-byte Folded Spill
Lloh3:
	adrp	x19, _PHJ_BATCH_PROBING@GOTPAGE
Lloh4:
	ldr	x19, [x19, _PHJ_BATCH_PROBING@GOTPAGEOFF]
	ldur	x20, [x29, #-96]                ; 8-byte Folded Reload
	mov	x24, x8
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldur	x0, [x29, #-104]                ; 8-byte Folded Reload
	mov	x1, x22
	bl	_NthParallelHashJoinBatch
	mov	x27, x0
	mov	x25, sp
Lloh5:
	adrp	x8, _MAXPGPATH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	mov	x9, x21
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x26, x8, x9
	mov	sp, x26
	mov	w1, #0
	bl	_BarrierInit
	cbnz	x22, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x27
	bl	_BarrierAttach
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x27
	bl	_BarrierPhase
	ldr	x8, [x19]
	cmp	x0, x8
	b.ge	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x27
	mov	w1, #0
	bl	_BarrierArriveAndWait
	b	LBB0_4
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x27
	bl	_BarrierDetach
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #24
	madd	x28, x22, x8, x28
	str	x27, [x28, #16]
	ldr	w4, [x23]
	mov	x0, x26
	mov	x1, x21
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x22
	bl	_snprintf
	mov	x0, x27
	bl	_ParallelHashJoinBatchInner
	ldr	w1, [x20, #8]
Lloh12:
	adrp	x8, _ParallelWorkerNumber@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ParallelWorkerNumber@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	add	x2, x8, #1
Lloh15:
	adrp	x8, _SHARED_TUPLESTORE_SINGLE_PASS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SHARED_TUPLESTORE_SINGLE_PASS@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
	mov	w3, #4
	mov	x5, x24
	mov	x6, x26
	bl	_sts_initialize
	str	x0, [x28, #8]
	ldr	w4, [x23]
	mov	x0, x26
	mov	x1, x21
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x22
	bl	_snprintf
	ldr	w1, [x20, #8]
	mov	x0, x27
	bl	_ParallelHashJoinBatchOuter
	ldr	w1, [x20, #8]
Lloh20:
	adrp	x8, _ParallelWorkerNumber@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ParallelWorkerNumber@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	add	x2, x8, #1
Lloh23:
	adrp	x8, _SHARED_TUPLESTORE_SINGLE_PASS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SHARED_TUPLESTORE_SINGLE_PASS@GOTPAGEOFF]
Lloh25:
	ldr	w4, [x8]
	mov	w3, #4
	mov	x5, x24
	mov	x6, x26
	bl	_sts_initialize
	str	x0, [x28]
	mov	sp, x25
	add	x22, x22, #1
	ldrsw	x8, [x23]
	cmp	x22, x8
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x28, [x23, #8]
	b	LBB0_2
LBB0_9:
	ldur	w0, [x29, #-116]                ; 4-byte Folded Reload
	bl	_MemoryContextSwitchTo
	ldur	x8, [x29, #-88]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.comm	_PHJ_BATCH_PROBING,8,3          ; @PHJ_BATCH_PROBING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i%dof%d"

	.comm	_ParallelWorkerNumber,8,3       ; @ParallelWorkerNumber
	.comm	_SHARED_TUPLESTORE_SINGLE_PASS,4,2 ; @SHARED_TUPLESTORE_SINGLE_PASS
l_.str.1:                               ; @.str.1
	.asciz	"o%dof%d"

	.no_dead_strip	_ExecParallelHashJoinSetUpBatches
.subsections_via_symbols
