// File: /workspace/github_c_makefile_star2_O1/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 0x155b
movq %rdi, %rbx
leaq 0x1cd3(%rip), %rdi      # 0x3038
xorl %esi, %esi
xorl %eax, %eax
callq 0x10f0
movl %eax, 0x4(%rsp)
testl %eax, %eax
jns 0x1390
callq 0x1040
movl (%rax), %esi
leaq 0x1cc1(%rip), %rdx      # 0x3045
movl $0x1, %edi
xorl %eax, %eax
callq 0x1150
leaq 0x1d49(%rip), %rdi      # 0x30e0
callq 0x1050
cmpl $0x3, %ebx
movl $0x2, %eax
cmovll %eax, %ebx
movq %rbx, 0x28(%rsp)
movl $0x1, %ebx
movq 0x30(%rsp), %rax
movq (%rax,%rbx,8), %rdi
callq 0x1110
testl %eax, %eax
jle 0x1544
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 0xfb2(%rip), %rdx       # 0x23a0
callq 0x1590
testl %eax, %eax
jne 0x156f
movl $0x2000, %eax           # imm = 0x2000
xorl %ebx, %ebx
xorl %r15d, %r15d
movq %rax, 0x40(%rsp)
rdtsc
movl %edx, %r14d
movl %eax, 0x1c(%rsp)
leaq 0x48(%rsp), %rdi
movq 0x20(%rsp), %r13
movq %r13, %rsi
movq 0x8(%rsp), %rbp
movq %rbp, %rdx
callq 0x1742
rdtsc
movl %edx, %r12d
movl %eax, 0x18(%rsp)
movl 0x4(%rsp), %edi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x10a0
movq %rax, %rbp
rdtsc
movl %edx, %r13d
testq %rbp, %rbp
jns 0x147c
movl %eax, 0x14(%rsp)
callq 0x1040
movl (%rax), %esi
movl $0x1, %edi
leaq 0x1c2d(%rip), %rdx      # 0x3096
movq 0x8(%rsp), %rcx
movq %rbp, %r8
xorl %eax, %eax
callq 0x1150
movl 0x14(%rsp), %eax
negl %r14d
shlq $0x20, %r14
movl 0x1c(%rsp), %ecx
subq %rcx, %rbx
addq %r14, %rbx
shlq $0x20, %r12
movl 0x18(%rsp), %edx
orq %r12, %rdx
shlq $0x20, %r13
movl %eax, %ecx
addq %rcx, %r15
addq %rdx, %rbx
subq %rdx, %r15
addq %r13, %r15
movq 0x40(%rsp), %rax
decq %rax
jne 0x1405
movq %rbx, %xmm1
movq 0x1b4b(%rip), %xmm3     # 0x3010
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
movapd 0x1b4f(%rip), %xmm4     # 0x3020
subpd %xmm4, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movsd 0x1b47(%rip), %xmm5     # 0x3030
mulsd %xmm5, %xmm0
movq %r15, %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 0x1b97(%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 0x13b1
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 0x1ae6(%rip), %rdi      # 0x305c
leaq 0x1ae6(%rip), %rsi      # 0x3063
leaq 0x1af2(%rip), %rcx      # 0x3076
movl $0x23, %edx
callq 0x1070
nop