	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function estimateHyperLogLog
LCPI0_0:
	.quad	0x4000000000000000              ## double 2
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_2:
	.quad	0x4004000000000000              ## double 2.5
LCPI0_3:
	.quad	0x3fa1111111111111              ## double 0.033333333333333333
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_estimateHyperLogLog
	.p2align	4, 0x90
_estimateHyperLogLog:                   ## @estimateHyperLogLog
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdi), %edx
	xorpd	%xmm1, %xmm1
	testl	%edx, %edx
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsd	%xmm1, -24(%rbp)                ## 8-byte Spill
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	callq	_pow
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	movsd	-24(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)                ## 8-byte Spill
	movsd	-24(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	incq	%rbx
	movslq	(%r14), %rdx
	cmpq	%rdx, %rbx
	jl	LBB0_2
LBB0_3:
	movsd	16(%r14), %xmm0                 ## xmm0 = mem[0],zero
	divsd	%xmm1, %xmm0
	cvtsi2sd	%edx, %xmm8
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
	mulsd	%xmm8, %xmm1
	ucomisd	%xmm0, %xmm1
	jae	LBB0_4
## %bb.17:
	movq	_POW_2_32@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	movsd	LCPI0_3(%rip), %xmm2            ## xmm2 = mem[0],zero
	mulsd	%xmm1, %xmm2
	ucomisd	%xmm2, %xmm0
	jbe	LBB0_19
## %bb.18:
	movq	_NEG_POW_2_32@GOTPCREL(%rip), %rbx
	divsd	%xmm1, %xmm0
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm0
	callq	_log
	mulsd	(%rbx), %xmm0
	jmp	LBB0_19
LBB0_4:
	testl	%edx, %edx
	jle	LBB0_19
## %bb.5:
	movq	8(%r14), %rax
	movl	%edx, %ecx
	cmpl	$4, %edx
	jae	LBB0_7
## %bb.6:
	xorl	%edx, %edx
	xorl	%esi, %esi
	jmp	LBB0_14
LBB0_7:
	movl	%ecx, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rsi
	movq	%rsi, %rbx
	shrq	$2, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.9:
	movq	%rbx, %rsi
	andq	$-2, %rsi
	pxor	%xmm3, %xmm3
	xorl	%edi, %edi
	xorpd	%xmm1, %xmm1
	pxor	%xmm2, %xmm2
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rax,%rdi,8), %xmm4
	movdqu	16(%rax,%rdi,8), %xmm5
	movdqu	32(%rax,%rdi,8), %xmm6
	movdqu	48(%rax,%rdi,8), %xmm7
	pcmpeqq	%xmm3, %xmm4
	pshufd	$232, %xmm4, %xmm4              ## xmm4 = xmm4[0,2,2,3]
	psubd	%xmm4, %xmm1
	pcmpeqq	%xmm3, %xmm5
	pshufd	$232, %xmm5, %xmm4              ## xmm4 = xmm5[0,2,2,3]
	psubd	%xmm4, %xmm2
	pcmpeqq	%xmm3, %xmm6
	pshufd	$232, %xmm6, %xmm4              ## xmm4 = xmm6[0,2,2,3]
	psubd	%xmm4, %xmm1
	pcmpeqq	%xmm3, %xmm7
	pshufd	$232, %xmm7, %xmm4              ## xmm4 = xmm7[0,2,2,3]
	psubd	%xmm4, %xmm2
	addq	$8, %rdi
	addq	$-2, %rsi
	jne	LBB0_10
## %bb.11:
	testb	$1, %bl
	je	LBB0_13
LBB0_12:
	movdqu	(%rax,%rdi,8), %xmm3
	movdqu	16(%rax,%rdi,8), %xmm4
	pxor	%xmm5, %xmm5
	pcmpeqq	%xmm5, %xmm3
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	psubd	%xmm3, %xmm1
	pcmpeqq	%xmm5, %xmm4
	pshufd	$232, %xmm4, %xmm3              ## xmm3 = xmm4[0,2,2,3]
	psubd	%xmm3, %xmm2
LBB0_13:
	paddd	%xmm2, %xmm1
	pshufd	$85, %xmm1, %xmm2               ## xmm2 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm2
	movd	%xmm2, %esi
	cmpq	%rcx, %rdx
	je	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$1, (%rax,%rdx,8)
	adcl	$0, %esi
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_14
LBB0_15:
	testl	%esi, %esi
	je	LBB0_19
## %bb.16:
	xorps	%xmm1, %xmm1
	cvtsi2sd	%esi, %xmm1
	movapd	%xmm8, %xmm0
	divsd	%xmm1, %xmm0
	movsd	%xmm8, -24(%rbp)                ## 8-byte Spill
	callq	_log
	mulsd	-24(%rbp), %xmm0                ## 8-byte Folded Reload
LBB0_19:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	xorpd	%xmm1, %xmm1
	xorl	%edi, %edi
	pxor	%xmm2, %xmm2
	testb	$1, %bl
	jne	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_POW_2_32,8,3                   ## @POW_2_32
	.comm	_NEG_POW_2_32,8,3               ## @NEG_POW_2_32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_estimateHyperLogLog            ; -- Begin function estimateHyperLogLog
	.p2align	2
_estimateHyperLogLog:                   ; @estimateHyperLogLog
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-48]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	mov	x19, x0
	ldr	w10, [x0]
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
	movi	d8, #0000000000000000
	fmov	d9, #1.00000000
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x20, lsl #3]
	fmov	d0, #2.00000000
	bl	_pow
	fdiv	d0, d9, d0
	fadd	d8, d8, d0
	add	x20, x20, #1
	ldrsw	x10, [x19]
	cmp	x20, x10
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	movi	d8, #0000000000000000
LBB0_4:
	ldr	d0, [x19, #16]
	fdiv	d0, d0, d8
	scvtf	d8, w10
	fmov	d1, #2.50000000
	fmul	d1, d8, d1
	fcmp	d0, d1
	b.ls	LBB0_7
; %bb.5:
Lloh0:
	adrp	x8, _POW_2_32@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POW_2_32@GOTPAGEOFF]
Lloh2:
	ldr	d1, [x8]
	mov	x8, #1229782938247303441
	movk	x8, #16289, lsl #48
	fmov	d2, x8
	fmul	d2, d1, d2
	fcmp	d0, d2
	b.le	LBB0_18
; %bb.6:
Lloh3:
	adrp	x8, _NEG_POW_2_32@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NEG_POW_2_32@GOTPAGEOFF]
Lloh5:
	ldr	d8, [x8]
	fdiv	d0, d0, d1
	fmov	d1, #1.00000000
	fsub	d0, d1, d0
	b	LBB0_17
LBB0_7:
	cmp	w10, #1
	b.lt	LBB0_18
; %bb.8:
	ldr	x9, [x19, #8]
	mov	w8, w10
	cmp	w10, #8
	b.hs	LBB0_10
; %bb.9:
	mov	x10, #0
	mov	w11, #0
	b	LBB0_13
LBB0_10:
	and	x10, x8, #0xfffffff8
	movi.2d	v1, #0000000000000000
	add	x11, x9, #32
	mov	x12, x10
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldp	q5, q6, [x11, #-32]
	ldp	q7, q16, [x11], #64
	cmeq.2d	v5, v5, #0
	xtn.2s	v5, v5
	cmeq.2d	v6, v6, #0
	xtn.2s	v6, v6
	cmeq.2d	v7, v7, #0
	xtn.2s	v7, v7
	cmeq.2d	v16, v16, #0
	xtn.2s	v16, v16
	sub.2s	v1, v1, v5
	sub.2s	v2, v2, v6
	sub.2s	v3, v3, v7
	sub.2s	v4, v4, v16
	subs	x12, x12, #8
	b.ne	LBB0_11
; %bb.12:
	add.2s	v1, v2, v1
	add.2s	v1, v3, v1
	add.2s	v1, v4, v1
	addp.2s	v1, v1, v1
	fmov	w11, s1
	cmp	x10, x8
	b.eq	LBB0_15
LBB0_13:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9], #8
	cmp	x10, #0
	cinc	w11, w11, eq
	subs	x8, x8, #1
	b.ne	LBB0_14
LBB0_15:
	cbz	w11, LBB0_18
; %bb.16:
	scvtf	d0, w11
	fdiv	d0, d8, d0
LBB0_17:
	bl	_log
	fmul	d0, d0, d8
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_POW_2_32,8,3                   ; @POW_2_32
	.comm	_NEG_POW_2_32,8,3               ; @NEG_POW_2_32
.subsections_via_symbols
