#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*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stdout;
void print_usage() {
  fputs("Usage: `vmbs [OPTIONS...]`\n", stdout);
  fputs("Display a volume meter on your BlinkStick\n", stdout);
  fputs("\n", stdout);
  fputs("Options:\n", stdout);
  fputs("  -s SERIAL              ", stdout);
  fputs("work on the BlinkStick with this SERIAL\n", stdout);
  fputs("  -V                     ", stdout);
  fputs("display version and exit\n", stdout);
  fputs("  -h                     ", stdout);
  fputs("display this text and exit\n", stdout);
  fputs("\n", stdout);
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%esi
lea    0xedc(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2eb0(%rip),%rax
mov    (%rax),%esi
lea    0xee3(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%esi
lea    0xf01(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e86(%rip),%rax
mov    (%rax),%esi
lea    0xee4(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e71(%rip),%rax
mov    (%rax),%esi
lea    0xed9(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e5c(%rip),%rax
mov    (%rax),%esi
lea    0xede(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e47(%rip),%rax
mov    (%rax),%esi
lea    0xef2(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e32(%rip),%rax
mov    (%rax),%esi
lea    0xef7(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e1d(%rip),%rax
mov    (%rax),%esi
lea    0xefc(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e08(%rip),%rax
mov    (%rax),%esi
lea    0xf01(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2df3(%rip),%rax
mov    (%rax),%esi
lea    0xe59(%rip),%rdi
call   1030 <fputs@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
push   %r14
push   %rbx
push   %rax
mov    0x2ec5(%rip),%rbx
mov    (%rbx),%esi
lea    0xedc(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xeea(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf0f(%rip),%r14
mov    %r14,%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xef6(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xef2(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xefe(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf19(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf25(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf31(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf3d(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <fputs@plt>

LLVM IR (-O0):
@.str = [28 x i8] c"Usage: `vmbs [OPTIONS...]`\0A\00"
@stdout = global i32 0
@.str.1 = [43 x i8] c"Display a volume meter on your BlinkStick\0A\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [10 x i8] c"Options:\0A\00"
@.str.4 = [26 x i8] c" -s SERIAL \00"
@.str.5 = [41 x i8] c"work on the BlinkStick with this SERIAL\0A\00"
@.str.6 = [26 x i8] c" -V \00"
@.str.7 = [26 x i8] c"display version and exit\0A\00"
@.str.8 = [26 x i8] c" -h \00"
@.str.9 = [28 x i8] c"display this text and exit\0A\00"
define void @print_usage() {
%1 = load i32, i32* @stdout
%2 = call i32 @fputs(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @stdout
%4 = call i32 @fputs(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @stdout
%6 = call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @stdout
%8 = call i32 @fputs(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @stdout
%10 = call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @stdout
%12 = call i32 @fputs(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @stdout
%14 = call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = load i32, i32* @stdout
%16 = call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i32 %15)
%17 = load i32, i32* @stdout
%18 = call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0), i32 %17)
%19 = load i32, i32* @stdout
%20 = call i32 @fputs(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), i32 %19)
%21 = load i32, i32* @stdout
%22 = call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i32 %21)
ret void
}

LLVM IR (-O2):
@.str = [28 x i8] c"Usage: `vmbs [OPTIONS...]`\0A\00"
@stdout = global i32 0
@.str.1 = [43 x i8] c"Display a volume meter on your BlinkStick\0A\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [10 x i8] c"Options:\0A\00"
@.str.4 = [26 x i8] c" -s SERIAL \00"
@.str.5 = [41 x i8] c"work on the BlinkStick with this SERIAL\0A\00"
@.str.6 = [26 x i8] c" -V \00"
@.str.7 = [26 x i8] c"display version and exit\0A\00"
@.str.8 = [26 x i8] c" -h \00"
@.str.9 = [28 x i8] c"display this text and exit\0A\00"
define void @print_usage() {
%1 = load i32, i32* @stdout
%2 = tail call i32 @fputs(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @stdout
%4 = tail call i32 @fputs(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @stdout
%6 = tail call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @stdout
%8 = tail call i32 @fputs(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @stdout
%10 = tail call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @stdout
%12 = tail call i32 @fputs(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @stdout
%14 = tail call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = load i32, i32* @stdout
%16 = tail call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0), i32 %15)
%17 = load i32, i32* @stdout
%18 = tail call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0), i32 %17)
%19 = load i32, i32* @stdout
%20 = tail call i32 @fputs(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), i32 %19)
%21 = load i32, i32* @stdout
%22 = tail call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i32 %21)
ret void
}