	.file	"extr_hyperloglog.c_estimateHyperLogLog.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	estimateHyperLogLog
	.type	estimateHyperLogLog, @function
estimateHyperLogLog:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jle	.L2
	xor	ebx, ebx
	pxor	xmm1, xmm1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 8[rbp]
	movsd	QWORD PTR 8[rsp], xmm1
	mov	rdi, QWORD PTR [rax+rbx*8]
	mov	rax, QWORD PTR .LC1[rip]
	add	rbx, 1
	movq	xmm0, rax
	call	pow@PLT
	movsd	xmm3, QWORD PTR .LC2[rip]
	movsd	xmm1, QWORD PTR 8[rsp]
	mov	eax, DWORD PTR 0[rbp]
	divsd	xmm3, xmm0
	addsd	xmm1, xmm3
	cmp	eax, ebx
	jg	.L3
	movsd	xmm0, QWORD PTR 16[rbp]
	movsd	xmm2, QWORD PTR .LC3[rip]
	divsd	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	mulsd	xmm2, xmm1
	comisd	xmm2, xmm0
	jb	.L4
	test	eax, eax
	jle	.L1
	mov	rcx, QWORD PTR 8[rbp]
	lea	edx, -1[rax]
	lea	rax, 8[rcx]
	lea	rsi, [rax+rdx*8]
	xor	edx, edx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L22:
	add	rax, 8
.L8:
	cmp	QWORD PTR [rcx], 1
	mov	rcx, rax
	adc	edx, 0
	cmp	rax, rsi
	jne	.L22
	test	edx, edx
	jne	.L23
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	pxor	xmm1, xmm1
	movsd	xmm0, QWORD PTR 16[rdi]
	divsd	xmm0, QWORD PTR .LC0[rip]
	cvtsi2sd	xmm1, eax
	mulsd	xmm1, QWORD PTR .LC3[rip]
	comisd	xmm1, xmm0
	jnb	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	movsd	xmm1, QWORD PTR POW_2_32[rip]
	movsd	xmm2, QWORD PTR .LC4[rip]
	mulsd	xmm2, xmm1
	comisd	xmm0, xmm2
	jbe	.L1
	divsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC2[rip]
	subsd	xmm1, xmm0
	movapd	xmm0, xmm1
	call	log@PLT
	mulsd	xmm0, QWORD PTR NEG_POW_2_32[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	pxor	xmm0, xmm0
	movapd	xmm4, xmm1
	movsd	QWORD PTR 8[rsp], xmm1
	cvtsi2sd	xmm0, edx
	divsd	xmm4, xmm0
	movapd	xmm0, xmm4
	call	log@PLT
	movsd	xmm1, QWORD PTR 8[rsp]
	add	rsp, 24
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	mulsd	xmm0, xmm1
	ret
	.cfi_endproc
.LFE0:
	.size	estimateHyperLogLog, .-estimateHyperLogLog
	.comm	POW_2_32,8,8
	.comm	NEG_POW_2_32,8,8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	0
	.align 8
.LC1:
	.long	0
	.long	1073741824
	.align 8
.LC2:
	.long	0
	.long	1072693248
	.align 8
.LC3:
	.long	0
	.long	1074003968
	.align 8
.LC4:
	.long	286331153
	.long	1067520273
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_hyperloglog.c_estimateHyperLogLog.c"
	.text
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_dcmpge
	.global	__aeabi_dcmpgt
	.global	__aeabi_dsub
	.align	2
	.global	estimateHyperLogLog
	.syntax unified
	.arm
	.fpu softvfp
	.type	estimateHyperLogLog, %function
estimateHyperLogLog:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r5, [r0]
	mov	r10, r0
	cmp	r5, #0
	ble	.L2
	mov	r6, #0
	mov	r4, #0
	mov	r5, #0
	mov	r8, #0
	mov	r9, #1073741824
.L3:
	ldr	r3, [r10, #4]
	mov	r0, r8
	ldr	r2, [r3, r6, lsl #2]
	mov	r1, r9
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L22
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	ldr	r7, [r10]
	add	r6, r6, #1
	cmp	r7, r6
	mov	r4, r0
	mov	r5, r1
	bgt	.L3
	add	r1, r10, #8
	ldmia	r1, {r0-r1}
	mov	r2, r4
	mov	r3, r5
	bl	__aeabi_ddiv
	mov	r4, r0
	mov	r0, r7
	mov	r5, r1
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L22+4
	mov	r8, r0
	mov	r9, r1
	bl	__aeabi_dmul
	mov	r2, r4
	mov	r3, r5
	bl	__aeabi_dcmpge
	cmp	r0, #0
	beq	.L4
	cmp	r7, #0
	ble	.L1
	mov	r0, #0
	ldr	r3, [r10, #4]
	sub	r3, r3, #4
	add	r7, r3, r7, lsl #2
.L8:
	ldr	r2, [r3, #4]!
	cmp	r2, #0
	addeq	r0, r0, #1
	cmp	r3, r7
	bne	.L8
	cmp	r0, #0
	bne	.L21
.L1:
	mov	r0, r4
	mov	r1, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r3, #0
	add	r1, r0, #8
	ldmia	r1, {r0-r1}
	mov	r2, #0
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r0, r5
	mov	r4, r2
	mov	r5, r1
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L22+4
	bl	__aeabi_dmul
	mov	r2, r4
	mov	r3, r5
	bl	__aeabi_dcmpge
	cmp	r0, #0
	bne	.L1
.L4:
	ldr	r1, .L22+8
	ldr	r2, .L22+12
	ldr	r3, .L22+16
	ldmia	r1, {r6-r7}
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmpgt
	cmp	r0, #0
	beq	.L1
	mov	r2, r6
	mov	r3, r7
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L22
	bl	__aeabi_dsub
	bl	log
	ldr	r3, .L22+20
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r4, r0
	mov	r5, r1
	b	.L1
.L21:
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_ddiv
	bl	log
	mov	r2, r0
	mov	r3, r1
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_dmul
	mov	r4, r0
	mov	r5, r1
	b	.L1
.L23:
	.align	2
.L22:
	.word	1072693248
	.word	1074003968
	.word	POW_2_32
	.word	286331153
	.word	1067520273
	.word	NEG_POW_2_32
	.size	estimateHyperLogLog, .-estimateHyperLogLog
	.comm	POW_2_32,8,8
	.comm	NEG_POW_2_32,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
