#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;
typedef int /*<<< orphan*/ JUMP;

/* Variables and functions */
int const UINT64_C(int);
int /*<<< orphan*/ xoroshiro128p_next(int *);
void xoroshiro128p_jump(uint64_t *state) {
  static const uint64_t JUMP[] = {0xbeac0467eba5facb, 0xd86b048b86aa9922};
  uint64_t s0 = 0;
  uint64_t s1 = 0;
  for (unsigned int i = 0; i < sizeof(JUMP) / sizeof(*JUMP); ++i) {
    for (unsigned int b = 0; b < 64; ++b) {
      if (JUMP[i] & UINT64_C(1) << b) {
        s0 ^= state[0];
        s1 ^= state[1];
      }
      xoroshiro128p_next(state);
    }
  }
  state[0] = s0;
  state[1] = s1;
}


x86 assembly (clang, -O0):
<xoroshiro128p_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)
mov    -0x14(%rbp),%eax
cmp    $0x2,%rax
jae    11d5 <xoroshiro128p_jump+0xb5>
movl   $0x0,-0x18(%rbp)
cmpl   $0x40,-0x18(%rbp)
jae    11c2 <xoroshiro128p_jump+0xa2>
mov    -0x14(%rbp),%eax
mov    %eax,%ecx
lea    0xe95(%rip),%rax
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x1c(%rbp)
mov    $0x1,%edi
call   1030 <UINT64_C@plt>
mov    %eax,%edx
mov    -0x1c(%rbp),%eax
mov    -0x18(%rbp),%ecx
shl    %cl,%edx
mov    %edx,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     11ab <xoroshiro128p_jump+0x8b>
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   1040 <xoroshiro128p_next@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1155 <xoroshiro128p_jump+0x35>
jmp    11c7 <xoroshiro128p_jump+0xa7>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1141 <xoroshiro128p_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):
<xoroshiro128p_jump>:
push   %rbp
push   %rbx
sub    $0x18,%rsp
mov    %rdi,%rbx
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
xor    %ebp,%ebp
jmp    1150 <xoroshiro128p_jump+0x30>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rbx,%rdi
call   1040 <xoroshiro128p_next@plt>
add    $0x1,%ebp
cmp    $0x40,%ebp
je     1176 <xoroshiro128p_jump+0x56>
mov    $0x1,%edi
call   1030 <UINT64_C@plt>
mov    %ebp,%ecx
shl    %cl,%eax
test   $0xeba5facb,%eax
je     1140 <xoroshiro128p_jump+0x20>
movsd  (%rbx),%xmm0
movaps (%rsp),%xmm1
xorps  %xmm0,%xmm1
movaps %xmm1,(%rsp)
jmp    1140 <xoroshiro128p_jump+0x20>
xor    %ebp,%ebp
jmp    1190 <xoroshiro128p_jump+0x70>
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1040 <xoroshiro128p_next@plt>
add    $0x1,%ebp
cmp    $0x40,%ebp
je     11b6 <xoroshiro128p_jump+0x96>
mov    $0x1,%edi
call   1030 <UINT64_C@plt>
mov    %ebp,%ecx
shl    %cl,%eax
test   $0x86aa9922,%eax
je     1180 <xoroshiro128p_jump+0x60>
movsd  (%rbx),%xmm0
movaps (%rsp),%xmm1
xorps  %xmm0,%xmm1
movaps %xmm1,(%rsp)
jmp    1180 <xoroshiro128p_jump+0x60>
movdqa (%rsp),%xmm0
movd   %xmm0,(%rbx)
pshufd $0x55,%xmm0,%xmm0
movd   %xmm0,0x4(%rbx)
add    $0x18,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@xoroshiro128p_jump.JUMP = internal constant [2 x i32] [i32 -341443893, i32 -2035640030]
define void @xoroshiro128p_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 = zext i32 %8 to i64
%10 = icmp ult i64 %9, 2
br i1 %10, label %11, label %46
11: ; preds = %7
store i32 0, i32* %6
br label %12
12: ; preds = %39, %11
%13 = load i32, i32* %6
%14 = icmp ult i32 %13, 64
br i1 %14, label %15, label %42
15: ; preds = %12
%16 = load i32, i32* %5
%17 = zext i32 %16 to i64
%18 = getelementptr inbounds [2 x i32], [2 x i32]* @xoroshiro128p_jump.JUMP, i64 0, i64 %17
%19 = load i32, i32* %18
%20 = call i32 @UINT64_C(i32 1)
%21 = load i32, i32* %6
%22 = shl i32 %20, %21
%23 = and i32 %19, %22
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %36
25: ; preds = %15
%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, %15
%37 = load i32*, i32** %2
%38 = call i32 @xoroshiro128p_next(i32* %37)
br label %39
39: ; preds = %36
%40 = load i32, i32* %6
%41 = add i32 %40, 1
store i32 %41, i32* %6
br label %12
42: ; preds = %12
br label %43
43: ; preds = %42
%44 = load i32, i32* %5
%45 = add 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 @xoroshiro128p_jump(i32* %0) {
%2 = bitcast i32* %0 to <2 x i32>*
br label %22
3: ; preds = %37, %13
%4 = phi i32 [ %16, %13 ], [ 0, %37 ]
%5 = phi <2 x i32> [ %14, %13 ], [ %33, %37 ]
%6 = tail call i32 @UINT64_C(i32 1)
%7 = lshr i32 -2035640030, %4
%8 = and i32 %6, %7
%9 = icmp eq i32 %8, 0
br i1 %9, label %13, label %10
10: ; preds = %3
%11 = load <2 x i32>, <2 x i32>* %38
%12 = xor <2 x i32> %11, %5
br label %13
13: ; preds = %10, %3
%14 = phi <2 x i32> [ %12, %10 ], [ %5, %3 ]
%15 = tail call i32 @xoroshiro128p_next(i32* %0)
%16 = add nuw nsw i32 %4, 1
%17 = icmp eq i32 %16, 64
br i1 %17, label %18, label %3
18: ; preds = %13
%19 = getelementptr inbounds i32, i32* %0, i64 1
%20 = extractelement <2 x i32> %14, i64 0
store i32 %20, i32* %0
%21 = extractelement <2 x i32> %14, i64 1
store i32 %21, i32* %19
ret void
22: ; preds = %1, %32
%23 = phi i32 [ 0, %1 ], [ %35, %32 ]
%24 = phi <2 x i32> [ zeroinitializer, %1 ], [ %33, %32 ]
%25 = tail call i32 @UINT64_C(i32 1)
%26 = lshr i32 -341443893, %23
%27 = and i32 %25, %26
%28 = icmp eq i32 %27, 0
br i1 %28, label %32, label %29
29: ; preds = %22
%30 = load <2 x i32>, <2 x i32>* %2
%31 = xor <2 x i32> %30, %24
br label %32
32: ; preds = %29, %22
%33 = phi <2 x i32> [ %31, %29 ], [ %24, %22 ]
%34 = tail call i32 @xoroshiro128p_next(i32* %0)
%35 = add nuw nsw i32 %23, 1
%36 = icmp eq i32 %35, 64
br i1 %36, label %37, label %22
37: ; preds = %32
%38 = bitcast i32* %0 to <2 x i32>*
br label %3
}