// File: /workspace/github_c_makefile_star2_O1/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 0x3279
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 0x3285
movq (%rbx), %rdx
xorl %eax, %eax
xorl %r12d, %r12d
xorl %r15d, %r15d
xorl %esi, %esi
movq (%rdx,%rsi,8), %r8
testq %r8, %r8
je 0x325e
xorl %edi, %edi
incq %rdi
movq 0x18(%r8), %r8
testq %r8, %r8
jne 0x322a
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 0x3265
incq -0x1c0(%rbp)
incq %rsi
cmpq %rcx, %rsi
jne 0x321f
testq %rax, %rax
js 0x3292
cvtsi2ss %rax, %xmm0
jmp 0x32a7
leaq 0x4e8c(%rip), %rdi      # 0x810c
jmp 0x20b0
xorps %xmm0, %xmm0
movss %xmm0, -0x24(%rbp)
xorl %r12d, %r12d
jmp 0x32ac
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
movss %xmm0, -0x24(%rbp)
leaq 0x4e2b(%rip), %rdi      # 0x80de
callq 0x20b0
movq 0x8(%rbx), %rsi
leaq 0x4d45(%rip), %rdi      # 0x8008
xorl %r14d, %r14d
xorl %eax, %eax
callq 0x2160
movq 0x18(%rbx), %rsi
leaq 0x4d42(%rip), %rdi      # 0x801a
xorl %eax, %eax
callq 0x2160
leaq 0x4d4e(%rip), %rdi      # 0x8034
movq %r15, %rsi
xorl %eax, %eax
callq 0x2160
leaq 0x4d54(%rip), %rdi      # 0x804b
movq %r12, %rsi
xorl %eax, %eax
callq 0x2160
testq %r15, %r15
js 0x330d
cvtsi2ss %r15, %xmm1
jmp 0x3323
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 0x4d27(%rip), %rdi      # 0x8063
movb $0x1, %al
callq 0x2160
movq 0x18(%rbx), %rax
testq %rax, %rax
js 0x3356
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
jmp 0x336e
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 0x4d09(%rip), %rdi      # 0x8087
movb $0x1, %al
callq 0x2160
leaq 0x4d64(%rip), %rdi      # 0x80f0
callq 0x20b0
leaq 0x4d14(%rip), %r15      # 0x80ac
leaq 0x4dfb(%rip), %r12      # 0x819a
movq -0x1c0(%rbp,%r14,8), %rcx
testq %rcx, %rcx
je 0x341d
js 0x33b8
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
jmp 0x33d2
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 0x33e5
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
jmp 0x33fd
movq %rax, %rdx
shrq %rdx
andl $0x1, %eax
orq %rdx, %rax
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
addss %xmm1, %xmm1
divss %xmm1, %xmm0
mulss 0x4bfb(%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 0x339f
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq