	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function estimateTableWidth
_estimateTableWidth:                    ## @estimateTableWidth
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	24(%rbx), %rcx
	leal	-1(%rax), %r9d
	xorl	%esi, %esi
	cmpl	$3, %r9d
	jb	LBB0_11
## %bb.3:
	incq	%r9
	movq	%r9, %r8
	andq	$-4, %r8
	leaq	-4(%r8), %rsi
	movq	%rsi, %rdx
	shrq	$2, %rdx
	incq	%rdx
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.5:
	movq	%rdx, %rdi
	andq	$-2, %rdi
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rsi,8), %xmm2
	movdqu	16(%rcx,%rsi,8), %xmm3
	movdqu	32(%rcx,%rsi,8), %xmm4
	movdqu	48(%rcx,%rsi,8), %xmm5
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm0, %xmm2
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	paddd	%xmm1, %xmm3
	pshufd	$232, %xmm4, %xmm0              ## xmm0 = xmm4[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm5, %xmm1              ## xmm1 = xmm5[0,2,2,3]
	paddd	%xmm3, %xmm1
	addq	$8, %rsi
	addq	$-2, %rdi
	jne	LBB0_6
## %bb.7:
	testb	$1, %dl
	je	LBB0_9
LBB0_8:
	movdqu	(%rcx,%rsi,8), %xmm2
	movdqu	16(%rcx,%rsi,8), %xmm3
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm3, %xmm2              ## xmm2 = xmm3[0,2,2,3]
	paddd	%xmm2, %xmm1
LBB0_9:
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %esi
	cmpq	%r8, %r9
	je	LBB0_13
## %bb.10:
	subl	%r8d, %eax
	leaq	(%rcx,%r8,8), %rcx
LBB0_11:
	incl	%eax
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rcx), %esi
	addq	$8, %rcx
	decl	%eax
	cmpl	$1, %eax
	ja	LBB0_12
	jmp	LBB0_13
LBB0_1:
	xorl	%esi, %esi
LBB0_13:
	movq	8(%rbx), %rdi
	shrq	$63, %rdi
	addl	%esi, %edi
	shll	$2, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_sqlite3LogEst
	movl	%eax, 16(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
	testb	$1, %dl
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_estimateTableWidth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function estimateTableWidth
_estimateTableWidth:                    ; @estimateTableWidth
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w9, [x0]
	subs	w8, w9, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x13, [x19, #24]
	cmp	w8, #7
	b.hs	LBB0_4
; %bb.2:
	mov	w12, #0
	mov	x8, x13
	b	LBB0_7
LBB0_3:
	mov	w12, #0
	b	LBB0_9
LBB0_4:
	add	x10, x8, #1
	and	x11, x10, #0x1fffffff8
	sub	w9, w9, w11
	add	x8, x13, x11, lsl #3
	movi.2d	v0, #0000000000000000
	add	x12, x13, #32
	mov	x13, x11
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x12, #-32]
	ldp	q6, q7, [x12], #64
	xtn.2s	v4, v4
	xtn.2s	v5, v5
	xtn.2s	v6, v6
	xtn.2s	v7, v7
	add.2s	v0, v0, v4
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	subs	x13, x13, #8
	b.ne	LBB0_5
; %bb.6:
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w12, s0
	cmp	x10, x11
	b.eq	LBB0_9
LBB0_7:
	add	w9, w9, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8], #8
	add	w12, w12, w10
	sub	w9, w9, #1
	cmp	w9, #1
	b.hi	LBB0_8
LBB0_9:
	ldr	x8, [x19, #8]
	lsr	x8, x8, #63
	add	w8, w12, w8
	lsl	w0, w8, #2
	bl	_sqlite3LogEst
	str	w0, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_estimateTableWidth
.subsections_via_symbols
