	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ExecParallelHashRepartitionRest
_ExecParallelHashRepartitionRest:       ## @ExecParallelHashRepartitionRest
	.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	16(%rdi), %r14
	movl	(%r14), %r13d
	movl	8(%r14), %esi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	8(%rdi), %edi
	callq	_dsa_get_address
	movq	%rax, %r12
	leal	(,%r13,8), %edi
	callq	_palloc0
	movq	%rax, %rbx
	movq	%r13, %rax
	cmpl	$2, %eax
	jl	LBB0_8
## %bb.1:
	addq	$4, %r14
	movl	$1, %r13d
	movq	_ParallelWorkerNumber@GOTPCREL(%rip), %r15
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_NthParallelHashJoinBatch
	movq	%rax, %rdi
	callq	_ParallelHashJoinBatchInner
	movq	(%r15), %rsi
	incq	%rsi
	movl	%eax, %edi
	movq	%r14, %rdx
	callq	_sts_attach
	movq	%rax, (%rbx,%r13,8)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incq	%r13
	cmpq	%r13, %rax
	jne	LBB0_2
## %bb.3:
	movl	$1, %r15d
	leaq	-48(%rbp), %r13
	movq	_HJTUPLE_OVERHEAD@GOTPCREL(%rip), %r14
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx,%r15,8), %rdi
	callq	_sts_end_parallel_scan
	incq	%r15
	cmpq	-56(%rbp), %r15                 ## 8-byte Folded Reload
	je	LBB0_8
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	(%rbx,%r15,8), %rdi
	callq	_sts_begin_parallel_scan
	movq	(%rbx,%r15,8), %rdi
	movq	%r13, %rsi
	callq	_sts_parallel_scan_next
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r12
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r12), %rdi
	addq	(%r14), %rdi
	callq	_MAXALIGN
	movq	%r15, %rbx
	movq	%r13, %r15
	movq	%rax, %r13
	movl	-48(%rbp), %esi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	leaq	-76(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	callq	_ExecHashGetBucketAndBatch
	movq	(%r14), %rax
	movslq	-44(%rbp), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	addq	%r13, (%rax,%rcx,8)
	movq	%r15, %r13
	movq	%rbx, %r15
	movq	_HJTUPLE_OVERHEAD@GOTPCREL(%rip), %r14
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	incl	16(%rax,%rcx,8)
	leaq	(%r15,%r15,2), %rcx
	incl	12(%rax,%rcx,8)
	movslq	-44(%rbp), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	8(%rax,%rcx,8), %edi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_sts_puttuple
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movq	(%rbx,%r15,8), %rdi
	movq	%r13, %rsi
	callq	_sts_parallel_scan_next
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_7
LBB0_8:
	movq	%rbx, %rdi
	callq	_pfree
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ParallelWorkerNumber,8,3       ## @ParallelWorkerNumber
	.comm	_HJTUPLE_OVERHEAD,8,3           ## @HJTUPLE_OVERHEAD
	.no_dead_strip	_ExecParallelHashRepartitionRest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ExecParallelHashRepartitionRest
_ExecParallelHashRepartitionRest:       ; @ExecParallelHashRepartitionRest
	.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	x19, x0
	ldr	x22, [x0, #16]
	ldr	w24, [x22]
	ldr	w0, [x0, #8]
	ldr	w1, [x22, #8]
	bl	_dsa_get_address
	mov	x21, x0
	lsl	w0, w24, #3
	bl	_palloc0
	mov	x20, x0
	cmp	w24, #2
	b.lt	LBB0_8
; %bb.1:
	add	x22, x22, #4
	mov	w23, #1
Lloh0:
	adrp	x25, _ParallelWorkerNumber@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ParallelWorkerNumber@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_NthParallelHashJoinBatch
	bl	_ParallelHashJoinBatchInner
	ldr	x8, [x25]
	add	x1, x8, #1
	mov	x2, x22
	bl	_sts_attach
	str	x0, [x20, x23, lsl #3]
	add	x23, x23, #1
	cmp	x24, x23
	b.ne	LBB0_2
; %bb.3:
	mov	w23, #1
Lloh2:
	adrp	x25, _HJTUPLE_OVERHEAD@GOTPAGE
Lloh3:
	ldr	x25, [x25, _HJTUPLE_OVERHEAD@GOTPAGEOFF]
	mov	w26, #24
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x20, x23, lsl #3]
	bl	_sts_end_parallel_scan
	add	x23, x23, #1
	cmp	x23, x24
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	lsl	x21, x23, #3
	ldr	x0, [x20, x21]
	bl	_sts_begin_parallel_scan
	ldr	x0, [x20, x21]
	add	x1, sp, #12
	bl	_sts_parallel_scan_next
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, x0
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_MAXALIGN
	mov	x22, x0
	ldr	w1, [sp, #12]
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x19
	bl	_ExecHashGetBucketAndBatch
	ldr	x8, [x19]
	ldrsw	x9, [sp, #4]
	madd	x9, x9, x26, x8
	ldr	x10, [x9]
	add	x10, x10, x22
	str	x10, [x9]
	ldr	w10, [x9, #16]
	add	w10, w10, #1
	str	w10, [x9, #16]
	madd	x9, x23, x26, x8
	ldr	w10, [x9, #12]
	add	w10, w10, #1
	str	w10, [x9, #12]
	ldrsw	x9, [sp, #4]
	madd	x8, x9, x26, x8
	ldr	w0, [x8, #8]
	add	x1, sp, #12
	mov	x2, x21
	bl	_sts_puttuple
	bl	_CHECK_FOR_INTERRUPTS
	ldr	x0, [x20, x23, lsl #3]
	add	x1, sp, #12
	bl	_sts_parallel_scan_next
	mov	x21, x0
	cbnz	x0, LBB0_7
	b	LBB0_4
LBB0_8:
	mov	x0, x20
	bl	_pfree
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ParallelWorkerNumber,8,3       ; @ParallelWorkerNumber
	.comm	_HJTUPLE_OVERHEAD,8,3           ; @HJTUPLE_OVERHEAD
	.no_dead_strip	_ExecParallelHashRepartitionRest
.subsections_via_symbols
