	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function estimate_rel_size
LCPI0_0:
	.quad	0xbff0000000000000              ## double -1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_estimate_rel_size
	.p2align	4, 0x90
_estimate_rel_size:                     ## @estimate_rel_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	%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	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %ecx
	addl	$-128, %ecx
	cmpl	$5, %ecx
	ja	LBB0_17
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %r13
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	movq	%r14, %r8
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_table_relation_estimate_size   ## TAILCALL
LBB0_17:
	movq	$0, (%rbx)
	jmp	LBB0_18
LBB0_15:
	movabsq	$4607182418800017408, %rax      ## imm = 0x3FF0000000000000
	movq	%rax, (%rbx)
	movq	%rax, (%r15)
	jmp	LBB0_19
LBB0_3:
	movq	%r13, %rdi
	callq	_RelationGetNumberOfBlocks
	movsd	%xmm0, (%rbx)
	xorpd	%xmm4, %xmm4
	ucomisd	%xmm4, %xmm0
	jne	LBB0_4
	jp	LBB0_4
LBB0_18:
	movq	$0, (%r15)
	jmp	LBB0_19
LBB0_16:
	movsd	8(%rax), %xmm0                  ## xmm0 = mem[0],zero
	movsd	%xmm0, (%rbx)
	movsd	16(%rax), %xmm0                 ## xmm0 = mem[0],zero
	movsd	%xmm0, (%r15)
LBB0_19:
	movq	$0, (%r14)
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%r13), %rax
	movsd	8(%rax), %xmm3                  ## xmm3 = mem[0],zero
	ucomisd	%xmm4, %xmm3
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	movapd	%xmm0, %xmm2
	addsd	%xmm1, %xmm2
	ja	LBB0_5
## %bb.6:
	movapd	%xmm3, %xmm1
	jmp	LBB0_7
LBB0_5:
	addsd	%xmm3, %xmm1
LBB0_7:
	movl	24(%rax), %ecx
	ucomisd	%xmm4, %xmm1
	cmpltsd	%xmm3, %xmm4
	andpd	%xmm4, %xmm2
	andnpd	%xmm0, %xmm4
	orpd	%xmm2, %xmm4
	jbe	LBB0_9
## %bb.8:
	movsd	16(%rax), %xmm0                 ## xmm0 = mem[0],zero
	divsd	%xmm1, %xmm0
	jmp	LBB0_10
LBB0_9:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movapd	%xmm4, -64(%rbp)                ## 16-byte Spill
	movl	%ecx, %r12d
	callq	_get_rel_data_width
	movl	%eax, %ebx
	movq	_SizeofHeapTupleHeader@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAXALIGN
	movapd	-64(%rbp), %xmm4                ## 16-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rbx,%rax), %ecx
	addl	$4, %ecx
	movq	_BLCKSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SizeOfPageHeaderData@GOTPCREL(%rip), %rdx
	subl	(%rdx), %eax
	cltd
	idivl	%ecx
	movl	%r12d, %ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
LBB0_10:
	mulsd	%xmm4, %xmm0
	roundsd	$4, %xmm0, %xmm0
	movsd	%xmm0, (%r15)
	testl	%ecx, %ecx
	je	LBB0_19
## %bb.11:
	xorpd	%xmm0, %xmm0
	ucomisd	%xmm4, %xmm0
	jae	LBB0_19
## %bb.12:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	ucomisd	%xmm4, %xmm0
	jae	LBB0_13
## %bb.14:
	divsd	%xmm4, %xmm0
	movsd	%xmm0, (%r14)
	jmp	LBB0_20
LBB0_13:
	movabsq	$4607182418800017408, %rax      ## imm = 0x3FF0000000000000
	movq	%rax, (%r14)
	jmp	LBB0_20
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_15
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_SizeofHeapTupleHeader,4,2      ## @SizeofHeapTupleHeader
	.comm	_BLCKSZ,4,2                     ## @BLCKSZ
	.comm	_SizeOfPageHeaderData,4,2       ## @SizeOfPageHeaderData
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_estimate_rel_size              ; -- Begin function estimate_rel_size
	.p2align	2
_estimate_rel_size:                     ; @estimate_rel_size
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	mov	x19, x4
	mov	x20, x3
	mov	x23, x2
	ldr	x8, [x0]
	ldr	w9, [x8]
	sub	w9, w9, #128
	cmp	w9, #5
	b.hi	LBB0_3
; %bb.1:
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	mov	x3, x20
	mov	x4, x19
	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	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	b	_table_relation_estimate_size
LBB0_3:
	str	xzr, [x23]
	b	LBB0_6
LBB0_4:
	mov	x8, #4607182418800017408
	str	x8, [x23]
	str	x8, [x20]
	b	LBB0_8
LBB0_5:
	mov	x0, x22
	bl	_RelationGetNumberOfBlocks
	str	d0, [x23]
	fcmp	d0, #0.0
	b.ne	LBB0_10
LBB0_6:
	str	xzr, [x20]
	b	LBB0_8
LBB0_7:
	ldr	d0, [x8, #8]
	str	d0, [x23]
	ldr	d0, [x8, #16]
	str	d0, [x20]
LBB0_8:
	str	xzr, [x19]
LBB0_9:
	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	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	x8, [x22]
	ldr	d1, [x8, #8]
	ldr	w23, [x8, #24]
	fmov	d2, #-1.00000000
	fadd	d3, d0, d2
	fadd	d2, d1, d2
	fcmp	d1, #0.0
	fcsel	d1, d2, d1, gt
	fcsel	d8, d3, d0, gt
	fcmp	d1, #0.0
	b.le	LBB0_12
; %bb.11:
	ldr	d0, [x8, #16]
	fdiv	d0, d0, d1
	b	LBB0_13
LBB0_12:
	mov	x0, x22
	mov	x1, x21
	bl	_get_rel_data_width
	mov	x21, x0
Lloh2:
	adrp	x8, _SizeofHeapTupleHeader@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SizeofHeapTupleHeader@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_MAXALIGN
	add	w8, w21, w0
	add	w8, w8, #4
Lloh5:
	adrp	x9, _BLCKSZ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BLCKSZ@GOTPAGEOFF]
Lloh7:
	adrp	x10, _SizeOfPageHeaderData@GOTPAGE
Lloh8:
	ldr	x10, [x10, _SizeOfPageHeaderData@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	ldr	w10, [x10]
	sub	w9, w9, w10
	sdiv	w8, w9, w8
	scvtf	d0, w8
LBB0_13:
	fmul	d0, d8, d0
	frintx	d0, d0
	str	d0, [x20]
	cbz	w23, LBB0_8
; %bb.14:
	fcmp	d8, #0.0
	b.ls	LBB0_8
; %bb.15:
	scvtf	d0, w23
	fcmp	d8, d0
	b.ls	LBB0_17
; %bb.16:
	fdiv	d0, d0, d8
	str	d0, [x19]
	b	LBB0_9
LBB0_17:
	mov	x8, #4607182418800017408
	str	x8, [x19]
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_SizeofHeapTupleHeader,4,2      ; @SizeofHeapTupleHeader
	.comm	_BLCKSZ,4,2                     ; @BLCKSZ
	.comm	_SizeOfPageHeaderData,4,2       ; @SizeOfPageHeaderData
.subsections_via_symbols
