#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*/ pushbit(int);
void pushcontrol5b(int cc) {
  pushbit(cc % 2);
  cc >>= 1;
  pushbit(cc % 2);
  cc >>= 1;
  pushbit(cc % 2);
  cc >>= 1;
  pushbit(cc % 2);
  cc >>= 1;
  pushbit(cc);
}


x86 assembly (clang, -O0):
<pushcontrol5b>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %edx,%edi
call   1030 <pushbit@plt>
mov    -0x4(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %edx,%edi
call   1030 <pushbit@plt>
mov    -0x4(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %edx,%edi
call   1030 <pushbit@plt>
mov    -0x4(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %edx,%edi
call   1030 <pushbit@plt>
mov    -0x4(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <pushbit@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pushcontrol5b>:
push   %r14
push   %rbx
push   %rax
mov    %edi,%r14d
mov    %edi,%ebx
shr    $0x1f,%ebx
lea    (%r14,%rbx,1),%eax
and    $0xfffffffe,%eax
sub    %eax,%edi
call   1030 <pushbit@plt>
mov    %r14d,%edi
sar    %edi
lea    (%rdi,%rbx,1),%eax
and    $0xfffffffe,%eax
sub    %eax,%edi
call   1030 <pushbit@plt>
mov    %r14d,%edi
sar    $0x2,%edi
lea    (%rdi,%rbx,1),%eax
and    $0xfffffffe,%eax
sub    %eax,%edi
call   1030 <pushbit@plt>
mov    %r14d,%edi
sar    $0x3,%edi
add    %edi,%ebx
and    $0xfffffffe,%ebx
sub    %ebx,%edi
call   1030 <pushbit@plt>
sar    $0x4,%r14d
mov    %r14d,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <pushbit@plt>

LLVM IR (-O0):
define void @pushcontrol5b(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = srem i32 %3, 2
%5 = call i32 @pushbit(i32 %4)
%6 = load i32, i32* %2
%7 = ashr i32 %6, 1
store i32 %7, i32* %2
%8 = load i32, i32* %2
%9 = srem i32 %8, 2
%10 = call i32 @pushbit(i32 %9)
%11 = load i32, i32* %2
%12 = ashr i32 %11, 1
store i32 %12, i32* %2
%13 = load i32, i32* %2
%14 = srem i32 %13, 2
%15 = call i32 @pushbit(i32 %14)
%16 = load i32, i32* %2
%17 = ashr i32 %16, 1
store i32 %17, i32* %2
%18 = load i32, i32* %2
%19 = srem i32 %18, 2
%20 = call i32 @pushbit(i32 %19)
%21 = load i32, i32* %2
%22 = ashr i32 %21, 1
store i32 %22, i32* %2
%23 = load i32, i32* %2
%24 = call i32 @pushbit(i32 %23)
ret void
}

LLVM IR (-O2):
define void @pushcontrol5b(i32 %0) {
%2 = srem i32 %0, 2
%3 = tail call i32 @pushbit(i32 %2)
%4 = ashr i32 %0, 1
%5 = srem i32 %4, 2
%6 = tail call i32 @pushbit(i32 %5)
%7 = ashr i32 %0, 2
%8 = srem i32 %7, 2
%9 = tail call i32 @pushbit(i32 %8)
%10 = ashr i32 %0, 3
%11 = srem i32 %10, 2
%12 = tail call i32 @pushbit(i32 %11)
%13 = ashr i32 %0, 4
%14 = tail call i32 @pushbit(i32 %13)
ret void
}