// File: /workspace/github_c_makefile_star2_O0/nh13[P]ksw/src/parasail/apps/parasail_stats.c
// Function: main
int main(int argc, char **argv) {
    parasail_sequences_t *sequences = NULL;
    const char *progname = "parasail_stats";

    /* Check arguments. */
    if (argc > 2) {
        fprintf(stderr, "Too many arguments.\n");
        print_help(progname, EXIT_FAILURE);
    }
    else if (argc < 2) {
        fprintf(stderr, "Missing input file.\n");
        print_help(progname, EXIT_FAILURE);
    }

    /* open file */
    sequences = parasail_sequences_from_file(argv[1]);
    if (NULL == sequences) {
        fprintf(stderr, "parasail_sequences_from_file(%s) failed\n", argv[1]);
        print_help(progname, EXIT_FAILURE);
    }

    /* print the stats */
    fprintf(stdout,
            "%25s: %lu\n"
            "%25s: %lu\n"
            "%25s: %lu\n"
            "%25s: %lu\n"
            "%25s: %f\n"
            "%25s: %f\n",
            "sequence count", (long unsigned)sequences->l,
            "character count", (long unsigned)sequences->characters,
            "shortest sequence", (long unsigned)sequences->shortest,
            "longest sequence", (long unsigned)sequences->longest,
            "sequence length mean", sequences->mean,
            "sequence length stddev", sequences->stddev
            );

    parasail_sequences_free(sequences);

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x58, %rsp
movl $0x0, -0x1c(%rbp)
movl %edi, -0x20(%rbp)
movq %rsi, -0x28(%rbp)
movq $0x0, -0x30(%rbp)
leaq 0x1d9a(%rip), %rax      # 0x3004
movq %rax, -0x38(%rbp)
cmpl $0x2, -0x20(%rbp)
jle 0x129c
movq 0x3d7d(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
leaq 0x1d8e(%rip), %rsi      # 0x3013
movb $0x0, %al
callq 0x10a0
movq -0x38(%rbp), %rdi
movl $0x1, %esi
callq 0x13c0
jmp 0x12ca
cmpl $0x2, -0x20(%rbp)
jge 0x12c8
movq 0x3d4f(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
leaq 0x1d75(%rip), %rsi      # 0x3028
movb $0x0, %al
callq 0x10a0
movq -0x38(%rbp), %rdi
movl $0x1, %esi
callq 0x13c0
jmp 0x12ca
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x1400
movq %rax, -0x30(%rbp)
xorl %eax, %eax
cmpq -0x30(%rbp), %rax
jne 0x1311
movq 0x3d0e(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdx
leaq 0x1d41(%rip), %rsi      # 0x303d
movb $0x0, %al
callq 0x10a0
movq -0x38(%rbp), %rdi
movl $0x1, %esi
callq 0x13c0
movq 0x3cb8(%rip), %rax      # 0x4fd0
movq (%rax), %rdi
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x30(%rbp), %rax
movq 0x10(%rax), %r9
movq -0x30(%rbp), %rax
movq 0x18(%rax), %r14
movq -0x30(%rbp), %rax
movq 0x20(%rax), %r11
movq -0x30(%rbp), %rax
movss 0x28(%rax), %xmm0
cvtss2sd %xmm0, %xmm0
movq -0x30(%rbp), %rax
movss 0x2c(%rax), %xmm1
cvtss2sd %xmm1, %xmm1
leaq 0x1d0a(%rip), %rsi      # 0x3066
leaq 0x1d3e(%rip), %rdx      # 0x30a1
leaq 0x1d46(%rip), %r8       # 0x30b0
leaq 0x1d4f(%rip), %r15      # 0x30c0
leaq 0x1d5a(%rip), %rbx      # 0x30d2
leaq 0x1d64(%rip), %r10      # 0x30e3
leaq 0x1d72(%rip), %rax      # 0x30f8
movq %r15, (%rsp)
movq %r14, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
movq %r11, 0x18(%rsp)
movq %r10, 0x20(%rsp)
movq %rax, 0x28(%rsp)
movb $0x2, %al
callq 0x10a0
movq -0x30(%rbp), %rdi
callq 0x2140
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq