// File: /workspace/github_c_makefile_star2_O0/gplessis[P]dotdeb-redis/src/server.c
// Function: bytesToHuman
void bytesToHuman(char *s, unsigned long long n) {
    double d;

    if (n < 1024) {
        /* Bytes */
        sprintf(s,"%lluB",n);
        return;
    } else if (n < (1024*1024)) {
        d = (double)n/(1024);
        sprintf(s,"%.2fK",d);
    } else if (n < (1024LL*1024*1024)) {
        d = (double)n/(1024*1024);
        sprintf(s,"%.2fM",d);
    } else if (n < (1024LL*1024*1024*1024)) {
        d = (double)n/(1024LL*1024*1024);
        sprintf(s,"%.2fG",d);
    } else if (n < (1024LL*1024*1024*1024*1024)) {
        d = (double)n/(1024LL*1024*1024*1024);
        sprintf(s,"%.2fT",d);
    } else if (n < (1024LL*1024*1024*1024*1024*1024)) {
        d = (double)n/(1024LL*1024*1024*1024*1024);
        sprintf(s,"%.2fP",d);
    } else {
        /* Let's hope we never need this */
        sprintf(s,"%lluB",n);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
cmpq $0x400, -0x10(%rbp)     # imm = 0x400
jae 0x35615
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rdx
leaq 0x103316(%rip), %rsi    # 0x13891f
movb $0x0, %al
callq 0x26570
jmp 0x35817
cmpq $0x100000, -0x10(%rbp)  # imm = 0x100000
jae 0x35673
movaps 0x101e7a(%rip), %xmm1   # 0x1374a0
movq -0x10(%rbp), %xmm0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x101e79(%rip), %xmm1   # 0x1374b0
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd 0x101e42(%rip), %xmm1   # 0x137490
divsd %xmm1, %xmm0
movsd %xmm0, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movsd -0x18(%rbp), %xmm0
leaq 0x1032be(%rip), %rsi    # 0x138925
movb $0x1, %al
callq 0x26570
jmp 0x35815
cmpq $0x40000000, -0x10(%rbp) # imm = 0x40000000
jae 0x356d1
movaps 0x101e1c(%rip), %xmm1   # 0x1374a0
movq -0x10(%rbp), %xmm0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x101e1b(%rip), %xmm1   # 0x1374b0
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd 0x101ddc(%rip), %xmm1   # 0x137488
divsd %xmm1, %xmm0
movsd %xmm0, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movsd -0x18(%rbp), %xmm0
leaq 0x103266(%rip), %rsi    # 0x13892b
movb $0x1, %al
callq 0x26570
jmp 0x35813
movabsq $0x10000000000, %rax    # imm = 0x10000000000
cmpq %rax, -0x10(%rbp)
jae 0x35735
movaps 0x101db8(%rip), %xmm1   # 0x1374a0
movq -0x10(%rbp), %xmm0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x101db7(%rip), %xmm1   # 0x1374b0
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd 0x101d70(%rip), %xmm1   # 0x137480
divsd %xmm1, %xmm0
movsd %xmm0, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movsd -0x18(%rbp), %xmm0
leaq 0x103208(%rip), %rsi    # 0x138931
movb $0x1, %al
callq 0x26570
jmp 0x35811
movabsq $0x4000000000000, %rax  # imm = 0x4000000000000
cmpq %rax, -0x10(%rbp)
jae 0x35796
movaps 0x101d54(%rip), %xmm1   # 0x1374a0
movq -0x10(%rbp), %xmm0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x101d53(%rip), %xmm1   # 0x1374b0
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd 0x101d04(%rip), %xmm1   # 0x137478
divsd %xmm1, %xmm0
movsd %xmm0, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movsd -0x18(%rbp), %xmm0
leaq 0x1031aa(%rip), %rsi    # 0x138937
movb $0x1, %al
callq 0x26570
jmp 0x3580f
movabsq $0x1000000000000000, %rax # imm = 0x1000000000000000
cmpq %rax, -0x10(%rbp)
jae 0x357f7
movaps 0x101cf3(%rip), %xmm1   # 0x1374a0
movq -0x10(%rbp), %xmm0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x101cf2(%rip), %xmm1   # 0x1374b0
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd 0x101c9b(%rip), %xmm1   # 0x137470
divsd %xmm1, %xmm0
movsd %xmm0, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movsd -0x18(%rbp), %xmm0
leaq 0x10314f(%rip), %rsi    # 0x13893d
movb $0x1, %al
callq 0x26570
jmp 0x3580d
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rdx
leaq 0x103119(%rip), %rsi    # 0x13891f
movb $0x0, %al
callq 0x26570
jmp 0x3580f
jmp 0x35811
jmp 0x35813
jmp 0x35815
jmp 0x35817
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)