#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*/ Out__LongInt(int, int);
int Allocate__WriteStats(void) {
  register int i0, i1, i2, i3, i4, i5;
l0:
  i1 = (int)(i5 << 2);
  if (i0)
    i4 = i5;
l1:
  i2 += i1;
  if (i1)
    goto l0;
l3:
  i0 = i1 == 255;
  i1++;
  Out__LongInt((int)i0, (int)0);
  i0 = i4 >= i1;
  if (i0)
    goto l3;
}


x86 assembly (clang, -O0):
<Allocate__WriteStats>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    -0x1c(%rbp),%eax
shl    $0x2,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     1131 <Allocate__WriteStats+0x21>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x18(%rbp)
jmp    1136 <Allocate__WriteStats+0x26>
mov    -0xc(%rbp),%eax
add    -0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
cmpl   $0x0,-0xc(%rbp)
je     114e <Allocate__WriteStats+0x3e>
jmp    1118 <Allocate__WriteStats+0x8>
jmp    1153 <Allocate__WriteStats+0x43>
cmpl   $0xff,-0xc(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%edi
xor    %esi,%esi
call   1030 <Out__LongInt@plt>
mov    -0x18(%rbp),%eax
cmp    -0xc(%rbp),%eax
setge  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     1198 <Allocate__WriteStats+0x88>
jmp    1153 <Allocate__WriteStats+0x43>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Allocate__WriteStats>:
push   %rbx
mov    $0xff,%ebx
cs nopw 0x0(%rax,%rax,1)
xor    %edi,%edi
sub    $0x1,%ebx
setb   %dil
xor    %esi,%esi
call   1030 <Out__LongInt@plt>
jmp    1120 <Allocate__WriteStats+0x10>

LLVM IR (-O0):
define i32 @Allocate__WriteStats() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
br label %8
8: ; preds = %22, %0
%9 = load i32, i32* %7
%10 = shl i32 %9, 2
store i32 %10, i32* %3
%11 = load i32, i32* %2
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %8
%14 = load i32, i32* %7
store i32 %14, i32* %6
br label %15
15: ; preds = %13, %8
br label %16
16: ; preds = %15
%17 = load i32, i32* %3
%18 = load i32, i32* %4
%19 = add nsw i32 %18, %17
store i32 %19, i32* %4
%20 = load i32, i32* %3
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %16
br label %8
23: ; preds = %16
br label %24
24: ; preds = %38, %23
%25 = load i32, i32* %3
%26 = icmp eq i32 %25, 255
%27 = zext i1 %26 to i32
store i32 %27, i32* %2
%28 = load i32, i32* %3
%29 = add nsw i32 %28, 1
store i32 %29, i32* %3
%30 = load i32, i32* %2
%31 = call i32 @Out__LongInt(i32 %30, i32 0)
%32 = load i32, i32* %6
%33 = load i32, i32* %3
%34 = icmp sge i32 %32, %33
%35 = zext i1 %34 to i32
store i32 %35, i32* %2
%36 = load i32, i32* %2
%37 = icmp ne i32 %36, 0
br i1 %37, label %38, label %39
38: ; preds = %24
br label %24
39: ; preds = %24
%40 = load i32, i32* %1
ret i32 %40
}

LLVM IR (-O2):
define i32 @Allocate__WriteStats() {
br label %1
1: ; preds = %1, %0
%2 = phi i32 [ 0, %0 ], [ %5, %1 ]
%3 = icmp eq i32 %2, 255
%4 = zext i1 %3 to i32
%5 = add nuw nsw i32 %2, 1
%6 = tail call i32 @Out__LongInt(i32 %4, i32 0)
br label %1
}