#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*/ _outbyte(int);
void outbyte(int c) {
  static char prev = 0;
  if (c < ' ' && c != '\r' && c != '\n' && c != '\t' && c != '\b')
    return;
  if (c == '\n' && prev != '\r')
    _outbyte('\r');
  _outbyte(c);
  prev = c;
}


x86 assembly (clang, -O0):
<outbyte>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x20,-0x4(%rbp)
jge    1152 <outbyte+0x42>
cmpl   $0xd,-0x4(%rbp)
je     1152 <outbyte+0x42>
cmpl   $0xa,-0x4(%rbp)
je     1152 <outbyte+0x42>
cmpl   $0x9,-0x4(%rbp)
je     1152 <outbyte+0x42>
cmpl   $0x8,-0x4(%rbp)
je     1152 <outbyte+0x42>
jmp    1187 <outbyte+0x77>
cmpl   $0xa,-0x4(%rbp)
jne    1176 <outbyte+0x66>
movsbl 0x2ec6(%rip),%eax
cmp    $0xd,%eax
je     1176 <outbyte+0x66>
mov    $0xd,%edi
call   1030 <_outbyte@plt>
mov    -0x4(%rbp),%edi
call   1030 <_outbyte@plt>
mov    -0x4(%rbp),%eax
mov    %al,0x2ea2(%rip)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<outbyte>:
push   %rbx
mov    %edi,%ebx
cmp    $0x1f,%edi
jg     113f <outbyte+0x2f>
cmp    $0xd,%ebx
ja     114c <outbyte+0x3c>
mov    $0x2700,%eax
bt     %ebx,%eax
jae    114c <outbyte+0x3c>
cmp    $0xa,%ebx
jne    113f <outbyte+0x2f>
cmpb   $0xd,0x2ef6(%rip)
je     113f <outbyte+0x2f>
mov    $0xd,%edi
call   1030 <_outbyte@plt>
mov    %ebx,%edi
call   1030 <_outbyte@plt>
mov    %bl,0x2edd(%rip)
pop    %rbx
ret

LLVM IR (-O0):
@outbyte.prev = internal global i8 0
define void @outbyte(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp slt i32 %3, 32
br i1 %4, label %5, label %18
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp ne i32 %6, 13
br i1 %7, label %8, label %18
8: ; preds = %5
%9 = load i32, i32* %2
%10 = icmp ne i32 %9, 10
br i1 %10, label %11, label %18
11: ; preds = %8
%12 = load i32, i32* %2
%13 = icmp ne i32 %12, 9
br i1 %13, label %14, label %18
14: ; preds = %11
%15 = load i32, i32* %2
%16 = icmp ne i32 %15, 8
br i1 %16, label %17, label %18
17: ; preds = %14
br label %32
18: ; preds = %14, %11, %8, %5, %1
%19 = load i32, i32* %2
%20 = icmp eq i32 %19, 10
br i1 %20, label %21, label %27
21: ; preds = %18
%22 = load i8, i8* @outbyte.prev
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %23, 13
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = call i32 @_outbyte(i32 13)
br label %27
27: ; preds = %25, %21, %18
%28 = load i32, i32* %2
%29 = call i32 @_outbyte(i32 %28)
%30 = load i32, i32* %2
%31 = trunc i32 %30 to i8
store i8 %31, i8* @outbyte.prev
br label %32
32: ; preds = %27, %17
ret void
}

LLVM IR (-O2):
@outbyte.prev = internal unnamed_addr global i8 0
define void @outbyte(i32 %0) {
%2 = icmp slt i32 %0, 32
br i1 %2, label %3, label %11
3: ; preds = %1
switch i32 %0, label %14 [
i32 13, label %4
i32 10, label %4
i32 9, label %4
i32 8, label %4
]
4: ; preds = %3, %3, %3, %3
%5 = icmp eq i32 %0, 10
%6 = load i8, i8* @outbyte.prev
%7 = icmp ne i8 %6, 13
%8 = select i1 %5, i1 %7, i1 false
br i1 %8, label %9, label %11
9: ; preds = %4
%10 = tail call i32 @_outbyte(i32 13)
br label %11
11: ; preds = %1, %9, %4
%12 = tail call i32 @_outbyte(i32 %0)
%13 = trunc i32 %0 to i8
store i8 %13, i8* @outbyte.prev
br label %14
14: ; preds = %3, %11
ret void
}