	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function ExecHashTableInsert
LCPI0_0:
	.quad	0x4020000000000000              ## double 8
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ExecHashTableInsert
	.p2align	4, 0x90
_ExecHashTableInsert:                   ## @ExecHashTableInsert
	.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
	movl	%edx, %r12d
	movq	%rsi, %rax
	movq	%rdi, %r13
	leaq	-52(%rbp), %rsi
	movq	%rax, %rdi
	callq	_ExecFetchSlotMinimalTuple
	movq	%rax, %r14
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_ExecHashGetBucketAndBatch
	movl	(%r13), %eax
	cmpl	%eax, -44(%rbp)
	jne	LBB0_10
## %bb.1:
	movsd	8(%r13), %xmm0                  ## xmm0 = mem[0],zero
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	movsd	16(%r13), %xmm0                 ## xmm0 = mem[0],zero
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	movq	_HJTUPLE_OVERHEAD@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movslq	(%r14), %r15
	addq	%rax, %r15
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_dense_alloc
	movq	%rax, %rbx
	movl	%r12d, 8(%rax)
	movq	%rax, %rdi
	callq	_HJTUPLE_MINTUPLE
	movl	(%r14), %edx
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_HJTUPLE_MINTUPLE
	movl	%eax, %edi
	callq	_HeapTupleHeaderClearMatch
	movq	80(%r13), %rax
	movslq	-48(%rbp), %rcx
	movq	(%rax,%rcx,8), %rdx
	movq	%rdx, (%rbx)
	movq	%rbx, (%rax,%rcx,8)
	cmpl	$1, 24(%r13)
	jne	LBB0_6
## %bb.2:
	movsd	-72(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	subsd	-64(%rbp), %xmm2                ## 8-byte Folded Reload
	movsd	32(%r13), %xmm0                 ## xmm0 = mem[0],zero
	movq	_NTUP_PER_BUCKET@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	mulsd	%xmm0, %xmm1
	ucomisd	%xmm1, %xmm2
	jbe	LBB0_6
## %bb.3:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	xorps	%xmm1, %xmm1
	cvtsi2sd	%ecx, %xmm1
	ucomisd	%xmm0, %xmm1
	jb	LBB0_6
## %bb.4:
	addsd	%xmm0, %xmm0
	movq	_MaxAllocSize@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shrq	$3, %rax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rax, %xmm1
	ucomisd	%xmm0, %xmm1
	jb	LBB0_6
## %bb.5:
	movsd	%xmm0, 32(%r13)
	incl	40(%r13)
LBB0_6:
	addq	48(%r13), %r15
	movq	%r15, 48(%r13)
	cmpq	56(%r13), %r15
	jle	LBB0_8
## %bb.7:
	movq	%r15, 56(%r13)
LBB0_8:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r15, %xmm0
	movsd	32(%r13), %xmm1                 ## xmm1 = mem[0],zero
	mulsd	LCPI0_0(%rip), %xmm1
	addsd	%xmm0, %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sdq	64(%r13), %xmm0
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_11
## %bb.9:
	movq	%r13, %rdi
	callq	_ExecHashIncreaseNumBatches
	jmp	LBB0_11
LBB0_10:
	setg	%al
	movzbl	%al, %edi
	callq	_Assert
	movslq	-44(%rbp), %rdx
	shlq	$2, %rdx
	addq	72(%r13), %rdx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_ExecHashJoinSaveTuple
LBB0_11:
	cmpl	$0, -52(%rbp)
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_heap_free_minimal_tuple
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HJTUPLE_OVERHEAD,4,2           ## @HJTUPLE_OVERHEAD
	.comm	_NTUP_PER_BUCKET,8,3            ## @NTUP_PER_BUCKET
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_MaxAllocSize,4,2               ## @MaxAllocSize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ExecHashTableInsert            ; -- Begin function ExecHashTableInsert
	.p2align	2
_ExecHashTableInsert:                   ; @ExecHashTableInsert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [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 b8, -72
	.cfi_offset b9, -80
	mov	x22, x2
	mov	x8, x1
	mov	x20, x0
	add	x1, sp, #12
	mov	x0, x8
	bl	_ExecFetchSlotMinimalTuple
	mov	x19, x0
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x20
	mov	x1, x22
	bl	_ExecHashGetBucketAndBatch
	ldr	w8, [sp, #4]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.1:
	ldp	d8, d9, [x20, #8]
Lloh0:
	adrp	x8, _HJTUPLE_OVERHEAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HJTUPLE_OVERHEAD@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	ldrsw	x9, [x19]
	add	x21, x9, x8
	mov	x0, x20
	mov	x1, x21
	bl	_dense_alloc
	mov	x23, x0
	str	w22, [x0, #8]
	bl	_HJTUPLE_MINTUPLE
	ldr	w2, [x19]
	mov	x1, x19
	bl	_memcpy
	mov	x0, x23
	bl	_HJTUPLE_MINTUPLE
	bl	_HeapTupleHeaderClearMatch
	ldr	x8, [x20, #80]
	ldrsw	x9, [sp, #8]
	lsl	x9, x9, #3
	ldr	x10, [x8, x9]
	str	x10, [x23]
	str	x23, [x8, x9]
	ldr	w8, [x20, #24]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.2:
	fsub	d1, d8, d9
	ldr	d0, [x20, #32]
Lloh3:
	adrp	x8, _NTUP_PER_BUCKET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NTUP_PER_BUCKET@GOTPAGEOFF]
Lloh5:
	ldr	d2, [x8]
	fmul	d2, d0, d2
	fcmp	d1, d2
	b.le	LBB0_6
; %bb.3:
Lloh6:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	scvtf	d1, w8
	fcmp	d0, d1
	b.hi	LBB0_6
; %bb.4:
Lloh9:
	adrp	x8, _MaxAllocSize@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MaxAllocSize@GOTPAGEOFF]
	fadd	d0, d0, d0
Lloh11:
	ldrsw	x8, [x8]
	lsr	x8, x8, #3
	ucvtf	d1, x8
	fcmp	d0, d1
	b.hi	LBB0_6
; %bb.5:
	str	d0, [x20, #32]
	ldr	w8, [x20, #40]
	add	w8, w8, #1
	str	w8, [x20, #40]
LBB0_6:
	ldp	x8, x9, [x20, #48]
	add	x8, x8, x21
	cmp	x8, x9
	str	x8, [x20, #48]
	b.le	LBB0_8
; %bb.7:
	str	x8, [x20, #56]
LBB0_8:
	scvtf	d0, x8
	ldr	d1, [x20, #32]
	fmov	d2, #8.00000000
	fmadd	d0, d1, d2, d0
	ldr	d1, [x20, #64]
	scvtf	d1, d1
	fcmp	d0, d1
	b.le	LBB0_11
; %bb.9:
	mov	x0, x20
	bl	_ExecHashIncreaseNumBatches
	b	LBB0_11
LBB0_10:
	cset	w0, gt
	bl	_Assert
	ldr	x8, [x20, #72]
	ldrsw	x9, [sp, #4]
	add	x2, x8, x9, lsl #2
	mov	x0, x19
	mov	x1, x22
	bl	_ExecHashJoinSaveTuple
LBB0_11:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_heap_free_minimal_tuple
LBB0_13:
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HJTUPLE_OVERHEAD,4,2           ; @HJTUPLE_OVERHEAD
	.comm	_NTUP_PER_BUCKET,8,3            ; @NTUP_PER_BUCKET
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_MaxAllocSize,4,2               ; @MaxAllocSize
.subsections_via_symbols
