// File: /workspace/github_c_makefile_star2_O3/opencoff[P]crypto-rand/t_arc4rand_bench.c
// Function: main
int
main(int argc, const char** argv)
{

    if (argc > 1) {
        int i;

        int fd = open("/dev/urandom", O_RDONLY);
        if (fd < 0) error(1, errno, "Can't open dev/urandom");


        printf("size,      arc4rand,\tsysrand,\tspeed-up\n");
        for (i = 1; i < argc; ++i) {
            int z = atoi(argv[i]);
            if (z <= 0) continue;
            bench(fd, z, NITER);
        }


        close(fd);
    }

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x578, %rsp            # imm = 0x578
movq %rsi, 0x30(%rsp)
cmpl $0x2, %edi
jl 0x1550
movl %edi, %ebx
leaq 0x1cd4(%rip), %rdi      # 0x3038
xorl %esi, %esi
xorl %eax, %eax
callq 0x10f0
movl %eax, 0x4(%rsp)
testl %eax, %eax
jns 0x138f
callq 0x1040
movl (%rax), %esi
leaq 0x1cc2(%rip), %rdx      # 0x3045
movl $0x1, %edi
xorl %eax, %eax
callq 0x1150
leaq 0x1d4a(%rip), %rdi      # 0x30e0
callq 0x1050
movl %ebx, %eax
movq %rax, 0x28(%rsp)
movl $0x1, %ebx
movq 0x30(%rsp), %rax
movq (%rax,%rbx,8), %rdi
callq 0x1110
testl %eax, %eax
jle 0x1539
movq %rbx, 0x38(%rsp)
movl %eax, %edi
movq %rdi, 0x8(%rsp)
callq 0x10d0
movq %rax, 0x20(%rsp)
leaq 0x48(%rsp), %rdi
movl $0x2, %esi
leaq 0x10fc(%rip), %rdx      # 0x24e0
callq 0x1584
testl %eax, %eax
jne 0x1564
movl $0x2000, %eax           # imm = 0x2000
xorl %r13d, %r13d
xorl %r14d, %r14d
movq %rax, 0x40(%rsp)
rdtsc
movl %edx, %ebx
movl %eax, 0x1c(%rsp)
leaq 0x48(%rsp), %rdi
movq 0x20(%rsp), %r12
movq %r12, %rsi
movq 0x8(%rsp), %rbp
movq %rbp, %rdx
callq 0x16ef
rdtsc
movl %edx, %r15d
movl %eax, 0x18(%rsp)
movl 0x4(%rsp), %edi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x10a0
movq %rax, %rbp
rdtsc
movl %edx, %r12d
testq %rbp, %rbp
jns 0x1472
movl %eax, 0x14(%rsp)
callq 0x1040
movl (%rax), %esi
movl $0x1, %edi
leaq 0x1c37(%rip), %rdx      # 0x3096
movq 0x8(%rsp), %rcx
movq %rbp, %r8
xorl %eax, %eax
callq 0x1150
movl 0x14(%rsp), %eax
negl %ebx
shlq $0x20, %rbx
movl 0x1c(%rsp), %ecx
subq %rcx, %r13
addq %rbx, %r13
shlq $0x20, %r15
movl 0x18(%rsp), %edx
orq %r15, %rdx
shlq $0x20, %r12
movl %eax, %ecx
addq %rcx, %r14
addq %rdx, %r13
subq %rdx, %r14
addq %r12, %r14
movq 0x40(%rsp), %rax
decq %rax
jne 0x13fc
movq %r13, %xmm1
movq 0x1b56(%rip), %xmm3     # 0x3010
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
movapd 0x1b5a(%rip), %xmm4     # 0x3020
subpd %xmm4, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movsd 0x1b52(%rip), %xmm5     # 0x3030
mulsd %xmm5, %xmm0
movq %r14, %xmm2
punpckldq %xmm3, %xmm2    # xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1]
subpd %xmm4, %xmm2
movapd %xmm2, %xmm1
unpckhpd %xmm2, %xmm1            # xmm1 = xmm1[1],xmm2[1]
addsd %xmm2, %xmm1
mulsd %xmm5, %xmm1
movq 0x8(%rsp), %rsi
xorps %xmm2, %xmm2
cvtsi2sd %rsi, %xmm2
divsd %xmm2, %xmm0
divsd %xmm2, %xmm1
movapd %xmm1, %xmm2
divsd %xmm0, %xmm2
leaq 0x1ba2(%rip), %rdi      # 0x30c5
movb $0x3, %al
callq 0x1060
movq 0x20(%rsp), %rdi
callq 0x1030
movq 0x38(%rsp), %rbx
incq %rbx
cmpq 0x28(%rsp), %rbx
jne 0x13a7
movl 0x4(%rsp), %edi
callq 0x1090
xorl %eax, %eax
addq $0x578, %rsp            # imm = 0x578
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1af1(%rip), %rdi      # 0x305c
leaq 0x1af1(%rip), %rsi      # 0x3063
leaq 0x1afd(%rip), %rcx      # 0x3076
movl $0x23, %edx
callq 0x1070
nop