#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int uint64_t;

/* Variables and functions */
int /*<<< orphan*/ xoroshiro_next(int *);
void xoroshiro_jump(uint64_t s[2]) {
  static const uint64_t JUMP[] = {0xbeac0467eba5facb, 0xd86b048b86aa9922};
  uint64_t s0 = 0;
  uint64_t s1 = 0;
  int i, b;
  for (i = 0; i < (int)(sizeof JUMP / sizeof *JUMP); i++)
    for (b = 0; b < 64; b++) {
      if (JUMP[i] & 1ULL << b) {
        s0 ^= s[0];
        s1 ^= s[1];
      }
      xoroshiro_next(s);
    }
  s[0] = s0;
  s[1] = s1;
}


x86 assembly (clang, -O0):
<xoroshiro_jump>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x2,-0x14(%rbp)
jge    11b9 <xoroshiro_jump+0xa9>
movl   $0x0,-0x18(%rbp)
cmpl   $0x40,-0x18(%rbp)
jge    11a6 <xoroshiro_jump+0x96>
movslq -0x14(%rbp),%rcx
lea    0xea9(%rip),%rax
movslq (%rax,%rcx,4),%rax
mov    -0x18(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%rdx
mov    %rdx,%rcx
and    %rcx,%rax
cmp    $0x0,%rax
je     118f <xoroshiro_jump+0x7f>
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
xor    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%eax
xor    -0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <xoroshiro_next@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1142 <xoroshiro_jump+0x32>
jmp    11ab <xoroshiro_jump+0x9b>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1131 <xoroshiro_jump+0x21>
mov    -0xc(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x10(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x4(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xoroshiro_jump>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%r14
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
xor    %ebx,%ebx
mov    $0xffffffffeba5facb,%r15
jmp    1142 <xoroshiro_jump+0x32>
xchg   %ax,%ax
mov    %r14,%rdi
call   1030 <xoroshiro_next@plt>
add    $0x1,%rbx
cmp    $0x40,%rbx
je     115a <xoroshiro_jump+0x4a>
bt     %rbx,%r15
jae    1130 <xoroshiro_jump+0x20>
movsd  (%r14),%xmm0
movaps (%rsp),%xmm1
xorps  %xmm0,%xmm1
movaps %xmm1,(%rsp)
jmp    1130 <xoroshiro_jump+0x20>
xor    %ebx,%ebx
mov    $0xffffffff86aa9922,%r15
jmp    1182 <xoroshiro_jump+0x72>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r14,%rdi
call   1030 <xoroshiro_next@plt>
add    $0x1,%rbx
cmp    $0x40,%rbx
je     119a <xoroshiro_jump+0x8a>
bt     %rbx,%r15
jae    1170 <xoroshiro_jump+0x60>
movsd  (%r14),%xmm0
movaps (%rsp),%xmm1
xorps  %xmm0,%xmm1
movaps %xmm1,(%rsp)
jmp    1170 <xoroshiro_jump+0x60>
movdqa (%rsp),%xmm0
movd   %xmm0,(%r14)
pshufd $0x55,%xmm0,%xmm0
movd   %xmm0,0x4(%r14)
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@xoroshiro_jump.JUMP = internal constant [2 x i32] [i32 -341443893, i32 -2035640030]
define void @xoroshiro_jump(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32* %0, i32** %2
store i32 0, i32* %3
store i32 0, i32* %4
store i32 0, i32* %5
br label %7
7: ; preds = %43, %1
%8 = load i32, i32* %5
%9 = icmp slt i32 %8, 2
br i1 %9, label %10, label %46
10: ; preds = %7
store i32 0, i32* %6
br label %11
11: ; preds = %39, %10
%12 = load i32, i32* %6
%13 = icmp slt i32 %12, 64
br i1 %13, label %14, label %42
14: ; preds = %11
%15 = load i32, i32* %5
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [2 x i32], [2 x i32]* @xoroshiro_jump.JUMP, i64 0, i64 %16
%18 = load i32, i32* %17
%19 = sext i32 %18 to i64
%20 = load i32, i32* %6
%21 = zext i32 %20 to i64
%22 = shl i64 1, %21
%23 = and i64 %19, %22
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %36
25: ; preds = %14
%26 = load i32*, i32** %2
%27 = getelementptr inbounds i32, i32* %26, i64 0
%28 = load i32, i32* %27
%29 = load i32, i32* %3
%30 = xor i32 %29, %28
store i32 %30, i32* %3
%31 = load i32*, i32** %2
%32 = getelementptr inbounds i32, i32* %31, i64 1
%33 = load i32, i32* %32
%34 = load i32, i32* %4
%35 = xor i32 %34, %33
store i32 %35, i32* %4
br label %36
36: ; preds = %25, %14
%37 = load i32*, i32** %2
%38 = call i32 @xoroshiro_next(i32* %37)
br label %39
39: ; preds = %36
%40 = load i32, i32* %6
%41 = add nsw i32 %40, 1
store i32 %41, i32* %6
br label %11
42: ; preds = %11
br label %43
43: ; preds = %42
%44 = load i32, i32* %5
%45 = add nsw i32 %44, 1
store i32 %45, i32* %5
br label %7
46: ; preds = %7
%47 = load i32, i32* %3
%48 = load i32*, i32** %2
%49 = getelementptr inbounds i32, i32* %48, i64 0
store i32 %47, i32* %49
%50 = load i32, i32* %4
%51 = load i32*, i32** %2
%52 = getelementptr inbounds i32, i32* %51, i64 1
store i32 %50, i32* %52
ret void
}

LLVM IR (-O2):
define void @xoroshiro_jump(i32* %0) {
%2 = bitcast i32* %0 to <2 x i32>*
br label %3
3: ; preds = %1, %12
%4 = phi i64 [ 0, %1 ], [ %15, %12 ]
%5 = phi <2 x i32> [ zeroinitializer, %1 ], [ %13, %12 ]
%6 = shl nuw i64 1, %4
%7 = and i64 %6, -341443893
%8 = icmp eq i64 %7, 0
br i1 %8, label %12, label %9
9: ; preds = %3
%10 = load <2 x i32>, <2 x i32>* %2
%11 = xor <2 x i32> %10, %5
br label %12
12: ; preds = %9, %3
%13 = phi <2 x i32> [ %11, %9 ], [ %5, %3 ]
%14 = tail call i32 @xoroshiro_next(i32* %0)
%15 = add nuw nsw i64 %4, 1
%16 = icmp eq i64 %15, 64
br i1 %16, label %17, label %3
17: ; preds = %12
%18 = bitcast i32* %0 to <2 x i32>*
br label %19
19: ; preds = %17, %28
%20 = phi i64 [ %31, %28 ], [ 0, %17 ]
%21 = phi <2 x i32> [ %29, %28 ], [ %13, %17 ]
%22 = shl nuw i64 1, %20
%23 = and i64 %22, -2035640030
%24 = icmp eq i64 %23, 0
br i1 %24, label %28, label %25
25: ; preds = %19
%26 = load <2 x i32>, <2 x i32>* %18
%27 = xor <2 x i32> %26, %21
br label %28
28: ; preds = %25, %19
%29 = phi <2 x i32> [ %27, %25 ], [ %21, %19 ]
%30 = tail call i32 @xoroshiro_next(i32* %0)
%31 = add nuw nsw i64 %20, 1
%32 = icmp eq i64 %31, 64
br i1 %32, label %33, label %19
33: ; preds = %28
%34 = getelementptr inbounds i32, i32* %0, i64 1
%35 = extractelement <2 x i32> %29, i64 0
store i32 %35, i32* %0
%36 = extractelement <2 x i32> %29, i64 1
store i32 %36, i32* %34
ret void
}