int main() {
  unsigned char count;
  unsigned int A, Q, Qmenos, M, mask;
  signed long long int result;
  count = 32;
  M = 0x82348243;
  Q = 0x41378972;
  Qmenos = 0x00000000;
  A = 0x00000000;
  while (count != 0) {
    mask = (((Q << 1) & 0x00000002) | (Qmenos & 0x00000001));
    switch (mask) {
    case 0x0:
    case 0x3:
      break;
    case 0x2:
      A = A - M;
      break;
    case 0x1:
      A = A + M;
      break;
    }
    if (Q & 0x00000001)
      Qmenos = 1;
    else
      Qmenos = 0;
    Q = Q >> 1;
    if (A & 0x00000001)
      Q = (Q | 0x80000000);
    else
      Q = (Q & 0x7FFFFFFF);
    A = A >> 1;
    if (A & 0x40000000)
      A = (A | 0x80000000);
    count--;
  }
  result = 0;
  result =
      ((((unsigned long long int)(A)) << 32) | ((unsigned long long int)(Q)));
  result = 0;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movb   $0x20,-0x5(%rbp)
movl   $0x82348243,-0x18(%rbp)
movl   $0x41378972,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0xc(%rbp)
movzbl -0x5(%rbp),%eax
cmp    $0x0,%eax
je     1216 <main+0x116>
mov    -0x10(%rbp),%eax
and    $0x1,%eax
mov    -0x14(%rbp),%edx
and    $0x1,%edx
mov    %eax,%ecx
mov    %edx,%eax
lea    (%rax,%rcx,2),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    %rax,-0x30(%rbp)
sub    $0x3,%rax
ja     118f <main+0x8f>
mov    -0x30(%rbp),%rax
lea    0xe96(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
jmp    118f <main+0x8f>
mov    -0xc(%rbp),%eax
sub    -0x18(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    118f <main+0x8f>
mov    -0xc(%rbp),%eax
add    -0x18(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x10(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     11aa <main+0xaa>
movl   $0x1,-0x14(%rbp)
jmp    11b1 <main+0xb1>
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%eax
shr    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     11d9 <main+0xd9>
mov    -0x10(%rbp),%eax
or     $0x80000000,%eax
mov    %eax,-0x10(%rbp)
jmp    11e4 <main+0xe4>
mov    -0x10(%rbp),%eax
and    $0x7fffffff,%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
shr    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
and    $0x40000000,%eax
cmp    $0x0,%eax
je     1209 <main+0x109>
mov    -0xc(%rbp),%eax
or     $0x80000000,%eax
mov    %eax,-0xc(%rbp)
mov    -0x5(%rbp),%al
add    $0xff,%al
mov    %al,-0x5(%rbp)
jmp    112b <main+0x2b>
movq   $0x0,-0x28(%rbp)
mov    -0xc(%rbp),%eax
shl    $0x20,%rax
mov    -0x10(%rbp),%ecx
or     %rcx,%rax
mov    %rax,-0x28(%rbp)
movq   $0x0,-0x28(%rbp)
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i64
store i32 0, i32* %1
store i8 32, i8* %2
store i32 -2110487997, i32* %6
store i32 1094158706, i32* %4
store i32 0, i32* %5
store i32 0, i32* %3
br label %9
9: ; preds = %57, %0
%10 = load i8, i8* %2
%11 = zext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %60
13: ; preds = %9
%14 = load i32, i32* %4
%15 = shl i32 %14, 1
%16 = and i32 %15, 2
%17 = load i32, i32* %5
%18 = and i32 %17, 1
%19 = or i32 %16, %18
store i32 %19, i32* %7
%20 = load i32, i32* %7
switch i32 %20, label %30 [
i32 0, label %21
i32 3, label %21
i32 2, label %22
i32 1, label %26
]
21: ; preds = %13, %13
br label %30
22: ; preds = %13
%23 = load i32, i32* %3
%24 = load i32, i32* %6
%25 = sub i32 %23, %24
store i32 %25, i32* %3
br label %30
26: ; preds = %13
%27 = load i32, i32* %3
%28 = load i32, i32* %6
%29 = add i32 %27, %28
store i32 %29, i32* %3
br label %30
30: ; preds = %13, %26, %22, %21
%31 = load i32, i32* %4
%32 = and i32 %31, 1
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %35
34: ; preds = %30
store i32 1, i32* %5
br label %36
35: ; preds = %30
store i32 0, i32* %5
br label %36
36: ; preds = %35, %34
%37 = load i32, i32* %4
%38 = lshr i32 %37, 1
store i32 %38, i32* %4
%39 = load i32, i32* %3
%40 = and i32 %39, 1
%41 = icmp ne i32 %40, 0
br i1 %41, label %42, label %45
42: ; preds = %36
%43 = load i32, i32* %4
%44 = or i32 %43, -2147483648
store i32 %44, i32* %4
br label %48
45: ; preds = %36
%46 = load i32, i32* %4
%47 = and i32 %46, 2147483647
store i32 %47, i32* %4
br label %48
48: ; preds = %45, %42
%49 = load i32, i32* %3
%50 = lshr i32 %49, 1
store i32 %50, i32* %3
%51 = load i32, i32* %3
%52 = and i32 %51, 1073741824
%53 = icmp ne i32 %52, 0
br i1 %53, label %54, label %57
54: ; preds = %48
%55 = load i32, i32* %3
%56 = or i32 %55, -2147483648
store i32 %56, i32* %3
br label %57
57: ; preds = %54, %48
%58 = load i8, i8* %2
%59 = add i8 %58, -1
store i8 %59, i8* %2
br label %9
60: ; preds = %9
store i64 0, i64* %8
%61 = load i32, i32* %3
%62 = zext i32 %61 to i64
%63 = shl i64 %62, 32
%64 = load i32, i32* %4
%65 = zext i32 %64 to i64
%66 = or i64 %63, %65
store i64 %66, i64* %8
store i64 0, i64* %8
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}