#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*/ dprintf(int, char *);
void cow(int fd) {
  dprintf(fd, "  \\ ^__^\n");
  dprintf(fd, "    (oo)\\_______\n");
  dprintf(fd, "    (__)\\       )\\/\\\n");
  dprintf(fd, "        ||----w |\n");
  dprintf(fd, "        ||     ||\r\n");
}


x86 assembly (clang, -O0):
<cow>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
lea    0xedb(%rip),%rsi
call   1030 <dprintf@plt>
mov    -0x4(%rbp),%edi
lea    0xed6(%rip),%rsi
call   1030 <dprintf@plt>
mov    -0x4(%rbp),%edi
lea    0xed9(%rip),%rsi
call   1030 <dprintf@plt>
mov    -0x4(%rbp),%edi
lea    0xee0(%rip),%rsi
call   1030 <dprintf@plt>
mov    -0x4(%rbp),%edi
lea    0xee4(%rip),%rsi
call   1030 <dprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cow>:
push   %rbx
mov    %edi,%ebx
lea    0xee6(%rip),%rsi
call   1030 <dprintf@plt>
lea    0xee4(%rip),%rsi
mov    %ebx,%edi
call   1030 <dprintf@plt>
lea    0xee8(%rip),%rsi
mov    %ebx,%edi
call   1030 <dprintf@plt>
lea    0xef0(%rip),%rsi
mov    %ebx,%edi
call   1030 <dprintf@plt>
lea    0xef5(%rip),%rsi
mov    %ebx,%edi
pop    %rbx
jmp    1030 <dprintf@plt>

LLVM IR (-O0):
@.str = [10 x i8] c" \\ ^__^\0A\00"
@.str.1 = [18 x i8] c" (oo)\\_______\0A\00"
@.str.2 = [22 x i8] c" (__)\\ )\\/\\\0A\00"
@.str.3 = [19 x i8] c" ||----w |\0A\00"
@.str.4 = [20 x i8] c" || ||\0D\0A\00"
define void @cow(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @dprintf(i32 %3, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%5 = load i32, i32* %2
%6 = call i32 @dprintf(i32 %5, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
%7 = load i32, i32* %2
%8 = call i32 @dprintf(i32 %7, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%9 = load i32, i32* %2
%10 = call i32 @dprintf(i32 %9, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%11 = load i32, i32* %2
%12 = call i32 @dprintf(i32 %11, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c" \\ ^__^\0A\00"
@.str.1 = [18 x i8] c" (oo)\\_______\0A\00"
@.str.2 = [22 x i8] c" (__)\\ )\\/\\\0A\00"
@.str.3 = [19 x i8] c" ||----w |\0A\00"
@.str.4 = [20 x i8] c" || ||\0D\0A\00"
define void @cow(i32 %0) {
%2 = tail call i32 @dprintf(i32 %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @dprintf(i32 %0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @dprintf(i32 %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @dprintf(i32 %0, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 @dprintf(i32 %0, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
ret void
}