	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ExecParallelHashTuplePrealloc
_ExecParallelHashTuplePrealloc:         ## @ExecParallelHashTuplePrealloc
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r14
	movq	_HASH_CHUNK_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_HASH_CHUNK_HEADER_SIZE@GOTPCREL(%rip), %rax
	subq	(%rax), %rsi
	movq	%rdx, %rdi
	callq	_Max
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	testl	%r15d, %r15d
	setg	%dil
	callq	_Assert
	xorl	%edi, %edi
	cmpl	%r15d, (%r13)
	setg	%dil
	callq	_Assert
	movq	%rbx, %rdi
	callq	_MAXALIGN
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_Assert
	leaq	16(%r14), %r12
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_LWLockAcquire
	movq	%r14, %rdx
	movq	(%r14), %r14
	movq	_PHJ_GROWTH_NEED_MORE_BATCHES@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_PHJ_GROWTH_NEED_MORE_BUCKETS@GOTPCREL(%rip), %rcx
	cmpq	%rax, %r14
	je	LBB0_2
## %bb.1:
	cmpq	(%rcx), %r14
	je	LBB0_2
## %bb.6:
	movslq	%r15d, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%rcx,8), %r8
	movq	_PHJ_GROWTH_DISABLED@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %r14
	movq	_HASH_CHUNK_HEADER_SIZE@GOTPCREL(%rip), %r10
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_10
## %bb.7:
	cmpl	$0, (%r8)
	je	LBB0_10
## %bb.8:
	movq	16(%rbx,%rcx,8), %r9
	movq	(%r9), %rdi
	addq	%rsi, %rdi
	addq	(%r10), %rdi
	cmpq	8(%rdx), %rdi
	jbe	LBB0_10
## %bb.9:
	movl	$1, 8(%r9)
	movq	%rax, (%rdx)
	movq	%r12, %rdi
	callq	_LWLockRelease
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_2:
	movq	%rcx, %r15
	movq	%r12, %rdi
	callq	_LWLockRelease
	cmpq	(%rbx), %r14
	jne	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	callq	_ExecParallelHashIncreaseNumBatches
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_10:
	movl	$1, (%r8)
	movq	(%r10), %rax
	addq	%rsi, %rax
	movq	16(%rbx,%rcx,8), %rdx
	addq	%rax, (%rdx)
	movq	%rsi, 8(%rbx,%rcx,8)
	movq	%r12, %rdi
	callq	_LWLockRelease
	movl	$1, %ebx
	jmp	LBB0_11
LBB0_4:
	xorl	%ebx, %ebx
	cmpq	(%r15), %r14
	jne	LBB0_11
## %bb.5:
	movq	%r13, %rdi
	callq	_ExecParallelHashIncreaseNumBuckets
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HASH_CHUNK_SIZE,8,3            ## @HASH_CHUNK_SIZE
	.comm	_HASH_CHUNK_HEADER_SIZE,8,3     ## @HASH_CHUNK_HEADER_SIZE
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_PHJ_GROWTH_NEED_MORE_BATCHES,8,3 ## @PHJ_GROWTH_NEED_MORE_BATCHES
	.comm	_PHJ_GROWTH_NEED_MORE_BUCKETS,8,3 ## @PHJ_GROWTH_NEED_MORE_BUCKETS
	.comm	_PHJ_GROWTH_DISABLED,8,3        ## @PHJ_GROWTH_DISABLED
	.no_dead_strip	_ExecParallelHashTuplePrealloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ExecParallelHashTuplePrealloc
_ExecParallelHashTuplePrealloc:         ; @ExecParallelHashTuplePrealloc
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _HASH_CHUNK_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HASH_CHUNK_SIZE@GOTPAGEOFF]
	ldp	x23, x24, [x0, #8]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x25, _HASH_CHUNK_HEADER_SIZE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _HASH_CHUNK_HEADER_SIZE@GOTPAGEOFF]
	ldr	x9, [x25]
	sub	x1, x8, x9
	mov	x0, x2
	bl	_Max
	mov	x19, x0
	cmp	w22, #0
	cset	w0, gt
	bl	_Assert
	ldr	w8, [x20]
	cmp	w8, w22
	cset	w0, gt
	bl	_Assert
	mov	x0, x21
	bl	_MAXALIGN
	cmp	x0, x21
	cset	w0, eq
	bl	_Assert
	add	x21, x24, #16
Lloh5:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_LWLockAcquire
	ldr	x26, [x24]
Lloh8:
	adrp	x28, _PHJ_GROWTH_NEED_MORE_BATCHES@GOTPAGE
Lloh9:
	ldr	x28, [x28, _PHJ_GROWTH_NEED_MORE_BATCHES@GOTPAGEOFF]
	ldr	x8, [x28]
Lloh10:
	adrp	x27, _PHJ_GROWTH_NEED_MORE_BUCKETS@GOTPAGE
Lloh11:
	ldr	x27, [x27, _PHJ_GROWTH_NEED_MORE_BUCKETS@GOTPAGEOFF]
	ldr	x9, [x27]
	cmp	x26, x8
	ccmp	x26, x9, #4, ne
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_LWLockRelease
	ldr	x8, [x28]
	cmp	x26, x8
	b.ne	LBB0_8
; %bb.2:
	mov	x0, x20
	bl	_ExecParallelHashIncreaseNumBatches
	b	LBB0_10
LBB0_3:
	sxtw	x9, w22
	mov	w10, #24
	smaddl	x10, w22, w10, x23
Lloh12:
	adrp	x11, _PHJ_GROWTH_DISABLED@GOTPAGE
Lloh13:
	ldr	x11, [x11, _PHJ_GROWTH_DISABLED@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	cmp	x26, x11
	b.eq	LBB0_7
; %bb.4:
	ldr	w11, [x10]
	cbz	w11, LBB0_7
; %bb.5:
	mov	w11, #24
	madd	x11, x9, x11, x23
	ldr	x11, [x11, #16]
	ldr	x12, [x11]
	ldr	x13, [x25]
	add	x12, x12, x19
	add	x12, x12, x13
	ldr	x13, [x24, #8]
	cmp	x12, x13
	b.ls	LBB0_7
; %bb.6:
	mov	w9, #1
	str	w9, [x11, #8]
	str	x8, [x24]
	mov	x0, x21
	bl	_LWLockRelease
	b	LBB0_10
LBB0_7:
	mov	w20, #1
	str	w20, [x10]
	ldr	x8, [x25]
	mov	w10, #24
	madd	x9, x9, x10, x23
	ldr	x10, [x9, #16]
	ldr	x11, [x10]
	add	x8, x8, x19
	add	x8, x8, x11
	str	x8, [x10]
	str	x19, [x9, #8]
	mov	x0, x21
	bl	_LWLockRelease
	b	LBB0_11
LBB0_8:
	ldr	x8, [x27]
	cmp	x26, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_ExecParallelHashIncreaseNumBuckets
LBB0_10:
	mov	w20, #0
LBB0_11:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HASH_CHUNK_SIZE,8,3            ; @HASH_CHUNK_SIZE
	.comm	_HASH_CHUNK_HEADER_SIZE,8,3     ; @HASH_CHUNK_HEADER_SIZE
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_PHJ_GROWTH_NEED_MORE_BATCHES,8,3 ; @PHJ_GROWTH_NEED_MORE_BATCHES
	.comm	_PHJ_GROWTH_NEED_MORE_BUCKETS,8,3 ; @PHJ_GROWTH_NEED_MORE_BUCKETS
	.comm	_PHJ_GROWTH_DISABLED,8,3        ; @PHJ_GROWTH_DISABLED
	.no_dead_strip	_ExecParallelHashTuplePrealloc
.subsections_via_symbols
