#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*/ wind_printf(char *, ...);
void _wind_os_print_logo(void) {
  int i;
  char *logo[4] = {" _    __    _", " \\\\  //\\\\  // ", "  \\\\//  \\\\//  ",
                   "   \\/    \\/   "};
  wind_printf("\r\n");
  for (i = 0; i < 4; i++) {
    wind_printf("%s\r\n", logo[i]);
  }
}


x86 assembly (clang, -O0):
<_wind_os_print_logo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x2ce1(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0x2cde(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0x2cdb(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0x2cd8(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xef2(%rip),%rdi
mov    $0x0,%al
call   1030 <wind_printf@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x4,-0x4(%rbp)
jge    1188 <_wind_os_print_logo+0x78>
movslq -0x4(%rbp),%rax
mov    -0x30(%rbp,%rax,8),%rsi
lea    0xec8(%rip),%rdi
mov    $0x0,%al
call   1030 <wind_printf@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1159 <_wind_os_print_logo+0x49>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_wind_os_print_logo>:
push   %rbx
lea    0xf25(%rip),%rdi
xor    %eax,%eax
call   1030 <wind_printf@plt>
lea    0xf15(%rip),%rbx
lea    0xed3(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <wind_printf@plt>
lea    0xed0(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <wind_printf@plt>
lea    0xece(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <wind_printf@plt>
lea    0xecc(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
pop    %rbx
jmp    1030 <wind_printf@plt>

LLVM IR (-O0):
@.str = [14 x i8] c" _ __ _\00"
@.str.1 = [15 x i8] c" \\\\ //\\\\ // \00"
@.str.2 = [15 x i8] c" \\\\// \\\\// \00"
@.str.3 = [15 x i8] c" \\/ \\/ \00"
@__const._wind_os_print_logo.logo = [4 x i8*] [i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i32 0, i32 0)]
@.str.4 = [3 x i8] c"\0D\0A\00"
@.str.5 = [5 x i8] c"%s\0D\0A\00"
define void @_wind_os_print_logo() {
%1 = alloca i32
%2 = alloca [4 x i8*]
%3 = bitcast [4 x i8*]* %2 to i8*
%4 = call i32 (i8*, ...) @wind_printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %1
br label %5
5: ; preds = %14, %0
%6 = load i32, i32* %1
%7 = icmp slt i32 %6, 4
br i1 %7, label %8, label %17
8: ; preds = %5
%9 = load i32, i32* %1
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [4 x i8*], [4 x i8*]* %2, i64 0, i64 %10
%12 = load i8*, i8** %11
%13 = call i32 (i8*, ...) @wind_printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %12)
br label %14
14: ; preds = %8
%15 = load i32, i32* %1
%16 = add nsw i32 %15, 1
store i32 %16, i32* %1
br label %5
17: ; preds = %5
ret void
}

LLVM IR (-O2):
@.str = [14 x i8] c" _ __ _\00"
@.str.1 = [15 x i8] c" \\\\ //\\\\ // \00"
@.str.2 = [15 x i8] c" \\\\// \\\\// \00"
@.str.3 = [15 x i8] c" \\/ \\/ \00"
@.str.4 = [3 x i8] c"\0D\0A\00"
@.str.5 = [5 x i8] c"%s\0D\0A\00"
define void @_wind_os_print_logo() {
%1 = tail call i32 (i8*, ...) @wind_printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @wind_printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @wind_printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @wind_printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @wind_printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
ret void
}