	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ExecParallelHashRepartitionFirst
_ExecParallelHashRepartitionFirst:      ## @ExecParallelHashRepartitionFirst
	.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	%rdi, %r12
	movq	(%rdi), %rax
	movq	32(%rdi), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_ExecParallelHashPopChunkQueue
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r12), %edi
	movl	-48(%rbp), %esi
	callq	_dsa_free
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	movq	%r12, %rdi
	leaq	-48(%rbp), %rsi
	callq	_ExecParallelHashPopChunkQueue
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpq	$0, (%r15)
	movq	_HJTUPLE_OVERHEAD@GOTPCREL(%rip), %r13
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%rsi, %rdi
	callq	_MAXALIGN
	movq	16(%r12), %rcx
	movslq	-44(%rbp), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	addq	%rax, (%rcx,%rdx,8)
	movl	16(%rcx,%rdx,8), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_sts_puttuple
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	16(%r12), %rax
	incl	12(%rax)
	movslq	-44(%rbp), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	incl	8(%rax,%rcx,8)
	movq	(%r13), %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_HJTUPLE_MINTUPLE
	addq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_MAXALIGN
	addq	%rax, %r14
	cmpq	(%r15), %r14
	jae	LBB0_8
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	callq	_HASH_CHUNK_DATA
	movq	%r12, %rbx
	movq	%rax, %r12
	leaq	(%rax,%r14), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_HJTUPLE_MINTUPLE
	movq	%rax, %r15
	movl	(%r12,%r14), %esi
	movq	%rbx, %r12
	movq	%rbx, %rdi
	leaq	-60(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	callq	_ExecHashGetBucketAndBatch
	movslq	-44(%rbp), %rax
	xorl	%edi, %edi
	cmpq	%rax, (%rbx)
	setg	%dil
	callq	_Assert
	movq	(%r15), %rsi
	addq	(%r13), %rsi
	cmpl	$0, -44(%rbp)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%r12, %rdi
	leaq	-64(%rbp), %rdx
	callq	_ExecParallelHashTupleAlloc
	movq	%rax, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_HJTUPLE_MINTUPLE
	movq	(%r15), %rdx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_memcpy
	movslq	-60(%rbp), %rdi
	shlq	$2, %rdi
	addq	24(%r12), %rdi
	movl	-64(%rbp), %edx
	movq	%rbx, %rsi
	movq	_HJTUPLE_OVERHEAD@GOTPCREL(%rip), %r13
	callq	_ExecParallelHashPushTuple
	jmp	LBB0_7
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HJTUPLE_OVERHEAD,8,3           ## @HJTUPLE_OVERHEAD
	.no_dead_strip	_ExecParallelHashRepartitionFirst
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ExecParallelHashRepartitionFirst
_ExecParallelHashRepartitionFirst:      ; @ExecParallelHashRepartitionFirst
	.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	x8, [x0]
	ldr	x9, [x0, #32]
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	add	x1, sp, #12
	mov	x0, x19
	bl	_ExecParallelHashPopChunkQueue
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x24, _HJTUPLE_OVERHEAD@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HJTUPLE_OVERHEAD@GOTPAGEOFF]
	mov	w25, #24
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #8]
	ldr	w1, [sp, #12]
	bl	_dsa_free
	bl	_CHECK_FOR_INTERRUPTS
	add	x1, sp, #12
	mov	x0, x19
	bl	_ExecParallelHashPopChunkQueue
	mov	x20, x0
	cbz	x0, LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, #0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x1
	bl	_MAXALIGN
	ldr	x8, [x19, #16]
	ldrsw	x9, [sp]
	madd	x8, x9, x25, x8
	ldr	x9, [x8]
	add	x9, x9, x0
	str	x9, [x8]
	ldr	w0, [x8, #16]
	mov	x1, x21
	mov	x2, x22
	bl	_sts_puttuple
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #12]
	add	w9, w9, #1
	str	w9, [x8, #12]
	ldrsw	x9, [sp]
	madd	x8, x9, x25, x8
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
	ldr	x22, [x24]
	mov	x0, x21
	bl	_HJTUPLE_MINTUPLE
	ldr	x8, [x0]
	add	x0, x8, x22
	bl	_MAXALIGN
	ldr	x8, [x20]
	add	x26, x0, x26
	cmp	x26, x8
	b.hs	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_HASH_CHUNK_DATA
	add	x21, x0, x26
	mov	x0, x21
	bl	_HJTUPLE_MINTUPLE
	mov	x22, x0
	ldr	w1, [x21]
	add	x2, sp, #4
	mov	x3, sp
	mov	x0, x19
	bl	_ExecHashGetBucketAndBatch
	ldrsw	x8, [sp]
	ldr	x9, [x19]
	cmp	x9, x8
	cset	w0, gt
	bl	_Assert
	ldr	w8, [sp]
	ldr	x9, [x24]
	ldr	x10, [x22]
	add	x1, x10, x9
	cbnz	w8, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x2, sp, #8
	mov	x0, x19
	bl	_ExecParallelHashTupleAlloc
	mov	x23, x0
	ldr	w8, [x21]
	str	w8, [x0]
	bl	_HJTUPLE_MINTUPLE
	ldr	x2, [x22]
	mov	x1, x22
	bl	_memcpy
	ldr	x8, [x19, #24]
	ldp	w9, w2, [sp, #4]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x0, x8, x9, lsl #2
	mov	x1, x23
	bl	_ExecParallelHashPushTuple
	b	LBB0_6
LBB0_9:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_HJTUPLE_OVERHEAD,8,3           ; @HJTUPLE_OVERHEAD
	.no_dead_strip	_ExecParallelHashRepartitionFirst
.subsections_via_symbols
