// File: /workspace/github_c_makefile_star2_O0/sTeeLM[P]dwipe/device.c
// Function: dwipe_device_strsize
void dwipe_device_strsize(char * buffer, int buflen, loff_t size)
{
    long double real = size;
    long double real1 = size;
    if(real > 1024*1024*1024*1024.0 ) { /* 1TiB */
        real /= 1024*1024*1024*1024.0;
        real1 /= 1000*1000*1000*1000.0;
        snprintf(buffer, buflen, "Size: %.2Lf TiB(%.2Lf TB)", real, real1);
    } else if(real > 1024*1024*1024.0 ) { /* 1GiB */
        real /= 1024*1024*1024.0;
        real1 /= 1000*1000*1000.0;
        snprintf(buffer, buflen, "Size: %.2Lf GiB(%.2Lf GB)", real, real1);
    } else if(real > 1024*1024.0 ) { /* 1MiB */
        real /= 1024*1024.0;
        real1 /= 1000*1000.0;
        snprintf(buffer, buflen, "Size: %.2Lf MiB(%.2Lf KB)", real, real1);
    } else if(real > 1024*1024.0 ) { /* 1KiB */
        real /= 1024.0;
        real1 /= 1000.0;
        snprintf(buffer, buflen, "Size: %.2Lf KiB(%.2Lf KB)", real, real1);
    } else {
        snprintf(buffer, buflen, "Size: %.2Lf B", real);
    }
}

// Assembly:
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movl %esi, 0x5c(%rsp)
movq %rdx, 0x50(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x20(%rsp)
fildll 0x20(%rsp)
fstpt 0x40(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x28(%rsp)
fildll 0x28(%rsp)
fstpt 0x30(%rsp)
fldt 0x40(%rsp)
flds 0xba74(%rip)            # 0xf004
fxch %st(1)
fucompi %st(1), %st
fstp %st(0)
jbe 0x35e7
jmp 0x359a
fldt 0x40(%rsp)
flds 0xba84(%rip)            # 0xf028
fmulp %st, %st(1)
fstpt 0x40(%rsp)
fldt 0x30(%rsp)
fldl 0xba7c(%rip)            # 0xf030
fdivrp %st, %st(1)
fstpt 0x30(%rsp)
movq 0x60(%rsp), %rdi
movslq 0x5c(%rsp), %rsi
fldt 0x40(%rsp)
fldt 0x30(%rsp)
movq %rsp, %rax
fstpt 0x10(%rax)
fstpt (%rax)
leaq 0xc1f5(%rip), %rdx      # 0xf7d0
xorl %eax, %eax
callq 0x3180
jmp 0x372e
fldt 0x40(%rsp)
flds 0xba17(%rip)            # 0xf008
fxch %st(1)
fucompi %st(1), %st
fstp %st(0)
jbe 0x3648
jmp 0x35fb
fldt 0x40(%rsp)
flds 0xba1b(%rip)            # 0xf020
fmulp %st, %st(1)
fstpt 0x40(%rsp)
fldt 0x30(%rsp)
flds 0xba0f(%rip)            # 0xf024
fdivrp %st, %st(1)
fstpt 0x30(%rsp)
movq 0x60(%rsp), %rdi
movslq 0x5c(%rsp), %rsi
fldt 0x40(%rsp)
fldt 0x30(%rsp)
movq %rsp, %rax
fstpt 0x10(%rax)
fstpt (%rax)
leaq 0xc1ae(%rip), %rdx      # 0xf7ea
xorl %eax, %eax
callq 0x3180
jmp 0x372c
fldt 0x40(%rsp)
flds 0xb9ba(%rip)            # 0xf00c
fxch %st(1)
fucompi %st(1), %st
fstp %st(0)
jbe 0x36a9
jmp 0x365c
fldt 0x40(%rsp)
flds 0xb9b2(%rip)            # 0xf018
fmulp %st, %st(1)
fstpt 0x40(%rsp)
fldt 0x30(%rsp)
flds 0xb9a6(%rip)            # 0xf01c
fdivrp %st, %st(1)
fstpt 0x30(%rsp)
movq 0x60(%rsp), %rdi
movslq 0x5c(%rsp), %rsi
fldt 0x40(%rsp)
fldt 0x30(%rsp)
movq %rsp, %rax
fstpt 0x10(%rax)
fstpt (%rax)
leaq 0xc167(%rip), %rdx      # 0xf804
xorl %eax, %eax
callq 0x3180
jmp 0x372a
fldt 0x40(%rsp)
flds 0xb959(%rip)            # 0xf00c
fxch %st(1)
fucompi %st(1), %st
fstp %st(0)
jbe 0x3707
jmp 0x36bd
fldt 0x40(%rsp)
flds 0xb949(%rip)            # 0xf010
fmulp %st, %st(1)
fstpt 0x40(%rsp)
fldt 0x30(%rsp)
flds 0xb93d(%rip)            # 0xf014
fdivrp %st, %st(1)
fstpt 0x30(%rsp)
movq 0x60(%rsp), %rdi
movslq 0x5c(%rsp), %rsi
fldt 0x40(%rsp)
fldt 0x30(%rsp)
movq %rsp, %rax
fstpt 0x10(%rax)
fstpt (%rax)
leaq 0xc120(%rip), %rdx      # 0xf81e
xorl %eax, %eax
callq 0x3180
jmp 0x3728
movq 0x60(%rsp), %rdi
movslq 0x5c(%rsp), %rsi
fldt 0x40(%rsp)
movq %rsp, %rax
fstpt (%rax)
leaq 0xc117(%rip), %rdx      # 0xf838
xorl %eax, %eax
callq 0x3180
jmp 0x372a
jmp 0x372c
jmp 0x372e
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)