#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 */

/* Variables and functions */
int _ozJC4(int, unsigned long volatile *, unsigned int);
__attribute__((no)) unsigned long __attribute__((stdcall, regparm(3)))
sl0aO1(volatile unsigned long *RdZoN, unsigned kKiv65) {
  unsigned long Kt5Iv1 = _ozJC4(1, RdZoN, kKiv65 + 0);
  Kt5Iv1 += _ozJC4(01, RdZoN, kKiv65 + 0x1) << 8;
  Kt5Iv1 += _ozJC4(01, RdZoN, kKiv65 + 2) << 16;
  Kt5Iv1 += _ozJC4(01, RdZoN, kKiv65 + 0x3) << 0x18;
  return Kt5Iv1;
}


x86 assembly (clang, -O0):
<sl0aO1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
add    $0x0,%edx
mov    $0x1,%edi
call   1030 <_ozJC4@plt>
cltq
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
add    $0x1,%edx
mov    $0x1,%edi
call   1030 <_ozJC4@plt>
shl    $0x8,%eax
cltq
add    -0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
add    $0x2,%edx
mov    $0x1,%edi
call   1030 <_ozJC4@plt>
shl    $0x10,%eax
cltq
add    -0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
add    $0x3,%edx
mov    $0x1,%edi
call   1030 <_ozJC4@plt>
shl    $0x18,%eax
cltq
add    -0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sl0aO1>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %rdi,%r14
mov    $0x1,%edi
mov    %r14,%rsi
mov    %ebx,%edx
call   1030 <_ozJC4@plt>
movslq %eax,%r15
lea    0x1(%rbx),%edx
mov    $0x1,%edi
mov    %r14,%rsi
call   1030 <_ozJC4@plt>
shl    $0x8,%eax
movslq %eax,%r12
add    %r15,%r12
lea    0x2(%rbx),%edx
mov    $0x1,%edi
mov    %r14,%rsi
call   1030 <_ozJC4@plt>
shl    $0x10,%eax
movslq %eax,%r15
add    %r12,%r15
add    $0x3,%ebx
mov    $0x1,%edi
mov    %r14,%rsi
mov    %ebx,%edx
call   1030 <_ozJC4@plt>
shl    $0x18,%eax
cltq
add    %r15,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i64 @sl0aO1(i64* %0, i32 %1) {
%3 = alloca i64*
%4 = alloca i32
%5 = alloca i64
store i64* %0, i64** %3
store i32 %1, i32* %4
%6 = load i64*, i64** %3
%7 = load i32, i32* %4
%8 = add i32 %7, 0
%9 = call i32 @_ozJC4(i32 1, i64* %6, i32 %8)
%10 = sext i32 %9 to i64
store i64 %10, i64* %5
%11 = load i64*, i64** %3
%12 = load i32, i32* %4
%13 = add i32 %12, 1
%14 = call i32 @_ozJC4(i32 1, i64* %11, i32 %13)
%15 = shl i32 %14, 8
%16 = sext i32 %15 to i64
%17 = load i64, i64* %5
%18 = add i64 %17, %16
store i64 %18, i64* %5
%19 = load i64*, i64** %3
%20 = load i32, i32* %4
%21 = add i32 %20, 2
%22 = call i32 @_ozJC4(i32 1, i64* %19, i32 %21)
%23 = shl i32 %22, 16
%24 = sext i32 %23 to i64
%25 = load i64, i64* %5
%26 = add i64 %25, %24
store i64 %26, i64* %5
%27 = load i64*, i64** %3
%28 = load i32, i32* %4
%29 = add i32 %28, 3
%30 = call i32 @_ozJC4(i32 1, i64* %27, i32 %29)
%31 = shl i32 %30, 24
%32 = sext i32 %31 to i64
%33 = load i64, i64* %5
%34 = add i64 %33, %32
store i64 %34, i64* %5
%35 = load i64, i64* %5
ret i64 %35
}

LLVM IR (-O2):
define i64 @sl0aO1(i64* %0, i32 %1) {
%3 = tail call i32 @_ozJC4(i32 1, i64* %0, i32 %1)
%4 = sext i32 %3 to i64
%5 = add i32 %1, 1
%6 = tail call i32 @_ozJC4(i32 1, i64* %0, i32 %5)
%7 = shl i32 %6, 8
%8 = sext i32 %7 to i64
%9 = add nsw i64 %8, %4
%10 = add i32 %1, 2
%11 = tail call i32 @_ozJC4(i32 1, i64* %0, i32 %10)
%12 = shl i32 %11, 16
%13 = sext i32 %12 to i64
%14 = add nsw i64 %9, %13
%15 = add i32 %1, 3
%16 = tail call i32 @_ozJC4(i32 1, i64* %0, i32 %15)
%17 = shl i32 %16, 24
%18 = sext i32 %17 to i64
%19 = add nsw i64 %14, %18
ret i64 %19
}