// File: /workspace/github_c_makefile_star2_O3/buf1024[P]mysch/dict.c
// Function: dict_print_stats_ht
static void _dict_print_stats_ht(dictht *ht)
{
    unsigned long i, slots = 0, chainlen, maxchainlen = 0;
    unsigned long totchainlen = 0;
    unsigned long clvector[DICT_STATS_VECTLEN];

    if (ht->used == 0)
    {
        printf("No stats available for empty dictionaries\n");
        return;
    }

    for (i = 0; i < DICT_STATS_VECTLEN; i++)
        clvector[i] = 0;
    for (i = 0; i < ht->size; i++)
    {
        dict_entry *he;

        if (ht->table[i] == NULL)
        {
            clvector[0]++;
            continue;
        }
        slots++;
        /* For each hash entry on this slot... */
        chainlen = 0;
        he = ht->table[i];
        while (he)
        {
            chainlen++;
            he = he->next;
        }
        clvector[(chainlen <
                  DICT_STATS_VECTLEN) ? chainlen : (DICT_STATS_VECTLEN - 1)]++;
        if (chainlen > maxchainlen)
            maxchainlen = chainlen;
        totchainlen += chainlen;
    }
    printf("Hash table stats:\n");
    printf(" table size: %ld\n", ht->size);
    printf(" number of elements: %ld\n", ht->used);
    printf(" different slots: %ld\n", slots);
    printf(" max chain length: %ld\n", maxchainlen);
    printf(" avg chain length (counted): %.02f\n", (float) totchainlen / slots);
    printf(" avg chain length (computed): %.02f\n", (float) ht->used / slots);
    printf(" Chain length distribution:\n");
    for (i = 0; i < DICT_STATS_VECTLEN - 1; i++)
    {
        if (clvector[i] == 0)
            continue;
        printf("   %s%ld: %ld (%.02f%%)\n",
               (i == DICT_STATS_VECTLEN - 1) ? ">= " : "", i, clvector[i],
               ((float) clvector[i] / ht->size) * 100);
    }
}

// Assembly:
cmpq $0x0, 0x18(%rdi)
je 0x3242
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1a0, %rsp            # imm = 0x1A0
movq %rdi, %rbx
leaq -0x1c0(%rbp), %rdi
xorl %r15d, %r15d
movl $0x190, %edx            # imm = 0x190
xorl %esi, %esi
callq 0x21a0
movq 0x8(%rbx), %rcx
testq %rcx, %rcx
je 0x324e
movq (%rbx), %rdx
xorl %eax, %eax
xorl %r12d, %r12d
xorl %r15d, %r15d
xorl %esi, %esi
movq (%rdx,%rsi,8), %r8
testq %r8, %r8
je 0x3227
xorl %edi, %edi
incq %rdi
movq 0x18(%r8), %r8
testq %r8, %r8
jne 0x31f3
incq %r15
cmpq $0x31, %rdi
movl $0x31, %r8d
cmovbq %rdi, %r8
movl %r8d, %r8d
incq -0x1c0(%rbp,%r8,8)
cmpq %r12, %rdi
cmovaq %rdi, %r12
addq %rdi, %rax
jmp 0x322e
incq -0x1c0(%rbp)
incq %rsi
cmpq %rcx, %rsi
jne 0x31e8
testq %rax, %rax
js 0x325b
cvtsi2ss %rax, %xmm0
jmp 0x3270
leaq 0x4ec3(%rip), %rdi      # 0x810c
jmp 0x20b0
xorps %xmm0, %xmm0
movss %xmm0, -0x24(%rbp)
xorl %r12d, %r12d
jmp 0x3275
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
movss %xmm0, -0x24(%rbp)
leaq 0x4e62(%rip), %rdi      # 0x80de
callq 0x20b0
movq 0x8(%rbx), %rsi
leaq 0x4d7c(%rip), %rdi      # 0x8008
xorl %r14d, %r14d
xorl %eax, %eax
callq 0x2160
movq 0x18(%rbx), %rsi
leaq 0x4d79(%rip), %rdi      # 0x801a
xorl %eax, %eax
callq 0x2160
leaq 0x4d85(%rip), %rdi      # 0x8034
movq %r15, %rsi
xorl %eax, %eax
callq 0x2160
leaq 0x4d8b(%rip), %rdi      # 0x804b
movq %r12, %rsi
xorl %eax, %eax
callq 0x2160
testq %r15, %r15
js 0x32d6
cvtsi2ss %r15, %xmm1
jmp 0x32ec
movq %r15, %rax
shrq %rax
andl $0x1, %r15d
orq %rax, %r15
cvtsi2ss %r15, %xmm1
addss %xmm1, %xmm1
movss -0x24(%rbp), %xmm0
movss %xmm1, -0x28(%rbp)
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x4d5e(%rip), %rdi      # 0x8063
movb $0x1, %al
callq 0x2160
movq 0x18(%rbx), %rax
testq %rax, %rax
js 0x331f
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
jmp 0x3337
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
divss -0x28(%rbp), %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x4d40(%rip), %rdi      # 0x8087
movb $0x1, %al
callq 0x2160
leaq 0x4d9b(%rip), %rdi      # 0x80f0
callq 0x20b0
leaq 0x4d4b(%rip), %r15      # 0x80ac
leaq 0x4e32(%rip), %r12      # 0x819a
movq -0x1c0(%rbp,%r14,8), %rcx
testq %rcx, %rcx
je 0x33e6
js 0x3381
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
jmp 0x339b
movq %rcx, %rax
shrq %rax
movl %ecx, %edx
andl $0x1, %edx
orq %rax, %rdx
xorps %xmm0, %xmm0
cvtsi2ss %rdx, %xmm0
addss %xmm0, %xmm0
movq 0x8(%rbx), %rax
testq %rax, %rax
js 0x33ae
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
jmp 0x33c6
movq %rax, %rdx
shrq %rdx
andl $0x1, %eax
orq %rdx, %rax
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
addss %xmm1, %xmm1
divss %xmm1, %xmm0
mulss 0x4c32(%rip), %xmm0     # 0x8004
cvtss2sd %xmm0, %xmm0
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movb $0x1, %al
callq 0x2160
incq %r14
cmpq $0x31, %r14
jne 0x3368
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq