// File: /workspace/github_c_makefile_star2_O0/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:
pushq %rbp
movq %rsp, %rbp
subq $0x230, %rsp            # imm = 0x230
movq %rdi, -0x8(%rbp)
movq $0x0, -0x18(%rbp)
movq $0x0, -0x28(%rbp)
movq $0x0, -0x30(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x18(%rax)
jne 0x3715
leaq 0x6919(%rip), %rdi      # 0xa022
movb $0x0, %al
callq 0x2150
jmp 0x3b9e
movq $0x0, -0x10(%rbp)
cmpq $0x32, -0x10(%rbp)
jae 0x3742
movq -0x10(%rbp), %rax
movq $0x0, -0x1c0(%rbp,%rax,8)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x371d
movq $0x0, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jae 0x3845
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
jne 0x3785
movq -0x1c0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x1c0(%rbp)
jmp 0x3834
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x1c8(%rbp)
cmpq $0x0, -0x1c8(%rbp)
je 0x37d9
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movq -0x1c8(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x1c8(%rbp)
jmp 0x37af
cmpq $0x32, -0x20(%rbp)
jae 0x37ed
movq -0x20(%rbp), %rax
movq %rax, -0x1d0(%rbp)
jmp 0x37fb
movl $0x31, %eax
movq %rax, -0x1d0(%rbp)
jmp 0x37fb
movq -0x1d0(%rbp), %rax
movq -0x1c0(%rbp,%rax,8), %rcx
addq $0x1, %rcx
movq %rcx, -0x1c0(%rbp,%rax,8)
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jbe 0x3828
movq -0x20(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
addq -0x30(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x374a
leaq 0x6801(%rip), %rdi      # 0xa04d
xorl %eax, %eax
movb %al, -0x1d9(%rbp)
callq 0x2150
movb -0x1d9(%rbp), %al
movq -0x8(%rbp), %rcx
movq 0x8(%rcx), %rsi
leaq 0x67f2(%rip), %rdi      # 0xa060
callq 0x2150
movb -0x1d9(%rbp), %al
movq -0x8(%rbp), %rcx
movq 0x18(%rcx), %rsi
leaq 0x67ea(%rip), %rdi      # 0xa072
callq 0x2150
movb -0x1d9(%rbp), %al
movq -0x18(%rbp), %rsi
leaq 0x67ee(%rip), %rdi      # 0xa08c
callq 0x2150
movb -0x1d9(%rbp), %al
movq -0x28(%rbp), %rsi
leaq 0x67ef(%rip), %rdi      # 0xa0a3
callq 0x2150
movq -0x30(%rbp), %rax
movq %rax, %rdx
shrq %rdx
movl %eax, %ecx
andl $0x1, %ecx
orq %rdx, %rcx
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
cvtsi2ss %rax, %xmm1
movss %xmm1, -0x1d8(%rbp)
testq %rax, %rax
movss %xmm0, -0x1d4(%rbp)
js 0x38fe
movss -0x1d8(%rbp), %xmm0
movss %xmm0, -0x1d4(%rbp)
movss -0x1d4(%rbp), %xmm0
movss %xmm0, -0x1e8(%rbp)
movq -0x18(%rbp), %rax
movq %rax, %rdx
shrq %rdx
movl %eax, %ecx
andl $0x1, %ecx
orq %rdx, %rcx
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
cvtsi2ss %rax, %xmm1
movss %xmm1, -0x1e4(%rbp)
testq %rax, %rax
movss %xmm0, -0x1e0(%rbp)
js 0x3953
movss -0x1e4(%rbp), %xmm0
movss %xmm0, -0x1e0(%rbp)
movss -0x1e8(%rbp), %xmm0
movss -0x1e0(%rbp), %xmm1
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x6749(%rip), %rdi      # 0xa0bb
movb $0x1, %al
callq 0x2150
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, %rdx
shrq %rdx
movl %eax, %ecx
andl $0x1, %ecx
orq %rdx, %rcx
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
cvtsi2ss %rax, %xmm1
movss %xmm1, -0x1f0(%rbp)
testq %rax, %rax
movss %xmm0, -0x1ec(%rbp)
js 0x39c2
movss -0x1f0(%rbp), %xmm0
movss %xmm0, -0x1ec(%rbp)
movss -0x1ec(%rbp), %xmm0
movss %xmm0, -0x1fc(%rbp)
movq -0x18(%rbp), %rax
movq %rax, %rdx
shrq %rdx
movl %eax, %ecx
andl $0x1, %ecx
orq %rdx, %rcx
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
cvtsi2ss %rax, %xmm1
movss %xmm1, -0x1f8(%rbp)
testq %rax, %rax
movss %xmm0, -0x1f4(%rbp)
js 0x3a17
movss -0x1f8(%rbp), %xmm0
movss %xmm0, -0x1f4(%rbp)
movss -0x1fc(%rbp), %xmm0
movss -0x1f4(%rbp), %xmm1
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x66a9(%rip), %rdi      # 0xa0df
movb $0x1, %al
callq 0x2150
leaq 0x66c0(%rip), %rdi      # 0xa104
movb $0x0, %al
callq 0x2150
movq $0x0, -0x10(%rbp)
cmpq $0x31, -0x10(%rbp)
jae 0x3b9e
movq -0x10(%rbp), %rax
cmpq $0x0, -0x1c0(%rbp,%rax,8)
jne 0x3a72
jmp 0x3b8d
movq -0x10(%rbp), %rax
movq %rax, -0x220(%rbp)
movq %rax, %rcx
subq $0x31, %rcx
leaq 0x66af(%rip), %rdx      # 0xa13a
leaq 0x6b29(%rip), %rcx      # 0xa5bb
cmoveq %rdx, %rcx
movq %rcx, -0x218(%rbp)
movq -0x1c0(%rbp,%rax,8), %rax
movq %rax, -0x210(%rbp)
movq %rax, %rdx
shrq %rdx
movl %eax, %ecx
andl $0x1, %ecx
orq %rdx, %rcx
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
cvtsi2ss %rax, %xmm1
movss %xmm1, -0x204(%rbp)
testq %rax, %rax
movss %xmm0, -0x200(%rbp)
js 0x3aed
movss -0x204(%rbp), %xmm0
movss %xmm0, -0x200(%rbp)
movss -0x200(%rbp), %xmm0
movss %xmm0, -0x22c(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, %rdx
shrq %rdx
movl %eax, %ecx
andl $0x1, %ecx
orq %rdx, %rcx
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
cvtsi2ss %rax, %xmm1
movss %xmm1, -0x228(%rbp)
testq %rax, %rax
movss %xmm0, -0x224(%rbp)
js 0x3b46
movss -0x228(%rbp), %xmm0
movss %xmm0, -0x224(%rbp)
movq -0x210(%rbp), %rcx
movq -0x220(%rbp), %rdx
movq -0x218(%rbp), %rsi
movss -0x22c(%rbp), %xmm0
movss -0x224(%rbp), %xmm1
divss %xmm1, %xmm0
movss 0x648d(%rip), %xmm1     # 0xa004
mulss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x659b(%rip), %rdi      # 0xa121
movb $0x1, %al
callq 0x2150
movq -0x10(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x10(%rbp)
jmp 0x3a53
addq $0x230, %rsp            # imm = 0x230
popq %rbp
retq
nopw (%rax,%rax)