// File: /workspace/github_c_makefile_star2_O2/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 0x1450
movl %edi, %ebx
leaq 0x1dd4(%rip), %rdi      # 0x3038
xorl %esi, %esi
xorl %eax, %eax
callq 0x10f0
movl %eax, 0x4(%rsp)
testl %eax, %eax
jns 0x128d
callq 0x1040
movl (%rax), %esi
leaq 0x1dc2(%rip), %rdx      # 0x3045
pushq $0x1
popq %rdi
xorl %eax, %eax
callq 0x2174
leaq 0x1e4c(%rip), %rdi      # 0x30e0
callq 0x1050
movl %ebx, %eax
movq %rax, 0x28(%rsp)
pushq $0x1
popq %rbx
cmpq 0x28(%rsp), %rbx
jae 0x1447
movq 0x30(%rsp), %rax
movq (%rax,%rbx,8), %rdi
callq 0x1110
testl %eax, %eax
jle 0x143f
movq %rbx, 0x38(%rsp)
movl %eax, %edi
movq %rdi, 0x8(%rsp)
callq 0x10d0
movq %rax, 0x20(%rsp)
leaq 0x48(%rsp), %rdi
pushq $0x2
popq %rsi
leaq 0xf83(%rip), %rdx       # 0x226c
callq 0x1484
testl %eax, %eax
jne 0x1464
movl $0x2000, %ebx           # imm = 0x2000
xorl %eax, %eax
xorl %r13d, %r13d
subq $0x1, %rbx
jb 0x13b6
movq %rax, 0x40(%rsp)
rdtsc
movl %edx, %r14d
movl %eax, 0x1c(%rsp)
leaq 0x48(%rsp), %rdi
movq 0x20(%rsp), %r15
movq %r15, %rsi
movq 0x8(%rsp), %r12
movq %r12, %rdx
callq 0x15f5
rdtsc
movl %edx, %ebp
movl %eax, 0x18(%rsp)
movl 0x4(%rsp), %edi
movq %r15, %rsi
movq %r12, %rdx
callq 0x10a0
movq %rax, %r15
rdtsc
movl %edx, %r12d
testq %r15, %r15
jns 0x137e
movl %eax, 0x14(%rsp)
callq 0x1040
movl (%rax), %esi
pushq $0x1
popq %rdi
leaq 0x1d2b(%rip), %rdx      # 0x3096
movq 0x8(%rsp), %rcx
movq %r15, %r8
xorl %eax, %eax
callq 0x2174
movl 0x14(%rsp), %eax
negl %r14d
shlq $0x20, %r14
movl 0x1c(%rsp), %esi
shlq $0x20, %rbp
movl 0x18(%rsp), %ecx
orq %rbp, %rcx
shlq $0x20, %r12
movl %eax, %edx
subq %rsi, %r13
addq %r14, %r13
addq %rcx, %r13
movq 0x40(%rsp), %rax
addq %rdx, %rax
subq %rcx, %rax
addq %r12, %rax
jmp 0x1300
movq %r13, %xmm1
movq 0x1c4d(%rip), %xmm3     # 0x3010
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
movapd 0x1c51(%rip), %xmm4     # 0x3020
subpd %xmm4, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movsd 0x1c49(%rip), %xmm5     # 0x3030
mulsd %xmm5, %xmm0
movq %rax, %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
cvtsi2sd %rsi, %xmm2
divsd %xmm2, %xmm0
divsd %xmm2, %xmm1
movapd %xmm1, %xmm2
divsd %xmm0, %xmm2
leaq 0x1c9c(%rip), %rdi      # 0x30c5
movb $0x3, %al
callq 0x1060
movq 0x20(%rsp), %rdi
callq 0x1030
movq 0x38(%rsp), %rbx
incq %rbx
jmp 0x12a3
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 0x1bf1(%rip), %rdi      # 0x305c
leaq 0x1bf1(%rip), %rsi      # 0x3063
leaq 0x1bfd(%rip), %rcx      # 0x3076
pushq $0x23
popq %rdx
callq 0x1070
nopl (%rax)