	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function estimate_size
_estimate_size:                         ## @estimate_size
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	cmpq	$0, 24(%rdx)
	je	LBB0_1
LBB0_3:
	movq	_BLCKSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	(%rcx,%rcx), %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, -40(%rbp)
	jmp	LBB0_4
LBB0_1:
	movl	16(%rbx), %edi
	leaq	-40(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	js	LBB0_3
## %bb.2:
	movl	-40(%rbp), %eax
	movq	_BLCKSZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_4:
	addl	%ecx, %eax
	decl	%eax
	cltd
	idivl	%ecx
	cmpl	$2, %eax
	movl	$1, %ecx
	cmovgel	%eax, %ecx
	movl	%ecx, (%rbx)
	movq	(%r15), %rax
	testq	%rax, %rax
	jle	LBB0_6
## %bb.5:
	movsd	8(%r15), %xmm1                  ## xmm1 = mem[0],zero
	cvtsi2sd	%rax, %xmm0
	divsd	%xmm0, %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	mulsd	%xmm1, %xmm0
	jmp	LBB0_7
LBB0_6:
	movq	32(%r15), %rax
	movl	(%rax), %edi
	callq	_MAXALIGN
	movl	%eax, %r12d
	movq	_SizeofHeapTupleHeader@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAXALIGN
	cvtsi2sdl	-40(%rbp), %xmm0
	addl	%r12d, %eax
	cvtsi2sd	%eax, %xmm1
	divsd	%xmm1, %xmm0
LBB0_7:
	callq	_clamp_row_est
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movsd	%xmm0, 8(%rbx)
	movl	24(%r15), %esi
	movq	_JOIN_INNER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_clauselist_selectivity
	mulsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	callq	_clamp_row_est
	movsd	%xmm0, 16(%r15)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLCKSZ,4,2                     ## @BLCKSZ
	.comm	_SizeofHeapTupleHeader,4,2      ## @SizeofHeapTupleHeader
	.comm	_JOIN_INNER,4,2                 ## @JOIN_INNER
	.no_dead_strip	_estimate_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function estimate_size
_estimate_size:                         ; @estimate_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x2, #24]
	cbz	x8, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _BLCKSZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLCKSZ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w9, w8, w8, lsl #2
	lsl	w9, w9, #1
	str	w9, [sp, #8]
	b	LBB0_4
LBB0_2:
	ldr	w0, [x21, #16]
	add	x1, sp, #8
	bl	_stat
	tbnz	x0, #63, LBB0_1
; %bb.3:
	ldr	w9, [sp, #8]
Lloh3:
	adrp	x8, _BLCKSZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BLCKSZ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
LBB0_4:
	add	w9, w9, w8
	sub	w9, w9, #1
	sdiv	w8, w9, w8
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
	str	w8, [x21]
	ldr	x9, [x19]
	cmp	x9, #1
	b.lt	LBB0_6
; %bb.5:
	ldr	d0, [x19, #8]
	scvtf	d1, x9
	fdiv	d0, d0, d1
	scvtf	d1, w8
	fmul	d0, d0, d1
	b	LBB0_7
LBB0_6:
	ldr	x8, [x19, #32]
	ldr	w0, [x8]
	bl	_MAXALIGN
	mov	x22, x0
Lloh6:
	adrp	x8, _SizeofHeapTupleHeader@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SizeofHeapTupleHeader@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_MAXALIGN
	add	w8, w0, w22
	ldr	s0, [sp, #8]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	scvtf	d1, w8
	fdiv	d0, d0, d1
LBB0_7:
	bl	_clamp_row_est
	fmov	d8, d0
	str	d0, [x21, #8]
	ldr	w1, [x19, #24]
Lloh9:
	adrp	x8, _JOIN_INNER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _JOIN_INNER@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	x4, #0
	bl	_clauselist_selectivity
	fmul	d0, d8, d0
	bl	_clamp_row_est
	str	d0, [x19, #16]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #80
	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	_BLCKSZ,4,2                     ; @BLCKSZ
	.comm	_SizeofHeapTupleHeader,4,2      ; @SizeofHeapTupleHeader
	.comm	_JOIN_INNER,4,2                 ; @JOIN_INNER
	.no_dead_strip	_estimate_size
.subsections_via_symbols
