#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 /*<<< orphan*/ Ae0Cg2(int /*<<< orphan*/, unsigned long volatile *,
                          unsigned int, unsigned long);
__attribute__((no)) void __attribute__((stdcall, regparm(3)))
HcALQ1(volatile unsigned long *RdZoN, unsigned kKiv65, unsigned long vgKFx2) {
  Ae0Cg2(0, RdZoN, kKiv65 + 0, vgKFx2 & 0xFFu);
  Ae0Cg2(0, RdZoN, kKiv65 + 1, (vgKFx2 >> 010) & 0xFFu);
  Ae0Cg2(0, RdZoN, kKiv65 + 02, (vgKFx2 >> 16) & 0xFFu);
  Ae0Cg2(0, RdZoN, kKiv65 + 3, vgKFx2 >> 24);
}


x86 assembly (clang, -O0):
<HcALQ1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
add    $0x0,%edx
mov    -0x18(%rbp),%rcx
and    $0xff,%rcx
xor    %edi,%edi
call   1030 <Ae0Cg2@plt>
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
add    $0x1,%edx
mov    -0x18(%rbp),%rcx
shr    $0x8,%rcx
and    $0xff,%rcx
xor    %edi,%edi
call   1030 <Ae0Cg2@plt>
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
add    $0x2,%edx
mov    -0x18(%rbp),%rcx
shr    $0x10,%rcx
and    $0xff,%rcx
xor    %edi,%edi
call   1030 <Ae0Cg2@plt>
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
add    $0x3,%edx
mov    -0x18(%rbp),%rcx
shr    $0x18,%rcx
xor    %edi,%edi
call   1030 <Ae0Cg2@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<HcALQ1>:
push   %r14
push   %r12
push   %rbx
mov    %rdx,%rbx
mov    %esi,%r12d
mov    %rdi,%r14
movzbl %bl,%ecx
xor    %edi,%edi
mov    %r14,%rsi
mov    %r12d,%edx
call   1030 <Ae0Cg2@plt>
lea    0x1(%r12),%edx
movzbl %bh,%ecx
xor    %edi,%edi
mov    %r14,%rsi
call   1030 <Ae0Cg2@plt>
lea    0x2(%r12),%edx
mov    %ebx,%eax
shr    $0x10,%eax
movzbl %al,%ecx
xor    %edi,%edi
mov    %r14,%rsi
call   1030 <Ae0Cg2@plt>
add    $0x3,%r12d
shr    $0x18,%rbx
xor    %edi,%edi
mov    %r14,%rsi
mov    %r12d,%edx
mov    %rbx,%rcx
pop    %rbx
pop    %r12
pop    %r14
jmp    1030 <Ae0Cg2@plt>

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

LLVM IR (-O2):
define void @HcALQ1(i64* %0, i32 %1, i64 %2) {
%4 = and i64 %2, 255
%5 = tail call i32 @Ae0Cg2(i32 0, i64* %0, i32 %1, i64 %4)
%6 = add i32 %1, 1
%7 = lshr i64 %2, 8
%8 = and i64 %7, 255
%9 = tail call i32 @Ae0Cg2(i32 0, i64* %0, i32 %6, i64 %8)
%10 = add i32 %1, 2
%11 = lshr i64 %2, 16
%12 = and i64 %11, 255
%13 = tail call i32 @Ae0Cg2(i32 0, i64* %0, i32 %10, i64 %12)
%14 = add i32 %1, 3
%15 = lshr i64 %2, 24
%16 = tail call i32 @Ae0Cg2(i32 0, i64* %0, i32 %14, i64 %15)
ret void
}