#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: `bs [OPTIONS...] COLOR [COLORS...]`\n", stdout);
  fputs("       `bs -g [OPTIONS...] [COUNT]`\n", stdout);
  fputs("Set or get one or more colors for your BlinkStick\n", stdout);
  fputs("Color can be either #RRGGBB or 0xRRGGBB\n", stdout);
  fputs("\n", stdout);
  fputs("Options:\n", stdout);
  fputs("  -g                     ", stdout);
  fputs("get color(s) instead of default set color(s)\n", stdout);
  fputs("  -m [MODE]              ", stdout);
  fputs("set or get BlinkStick Pro mode\n", stdout);
  fputs("                         ", stdout);
  fputs("MODE can be 0 (Normal), 1 (Inverse), 2 (Multi) or 3 (Repeat).\n",
        stdout);
  fputs("  -r                     ", stdout);
  fputs("reset BlinkStick to black before getting/setting colors\n", stdout);
  fputs("  -s SERIAL              ", stdout);
  fputs("work on the BlinkStick with this SERIAL\n", stdout);
  fputs("  -i INDEX               ", stdout);
  fputs("modify led at INDEX instead of the first one\n", stdout);
  fputs("  -v                     ", stdout);
  fputs("be more verbose\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    0xef3(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%esi
lea    0xf03(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e86(%rip),%rax
mov    (%rax),%esi
lea    0xf21(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e71(%rip),%rax
mov    (%rax),%esi
lea    0xf85(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e5c(%rip),%rax
mov    (%rax),%esi
lea    0xf20(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e47(%rip),%rax
mov    (%rax),%esi
lea    0xf15(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e32(%rip),%rax
mov    (%rax),%esi
lea    0xf1a(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e1d(%rip),%rax
mov    (%rax),%esi
lea    0xf33(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e08(%rip),%rax
mov    (%rax),%esi
lea    0xf38(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2df3(%rip),%rax
mov    (%rax),%esi
lea    0xf43(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2dde(%rip),%rax
mov    (%rax),%esi
lea    0xf48(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2dc9(%rip),%rax
mov    (%rax),%esi
lea    0xf72(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2db4(%rip),%rax
mov    (%rax),%esi
lea    0xf77(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2d9f(%rip),%rax
mov    (%rax),%esi
lea    0xf9b(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2d8a(%rip),%rax
mov    (%rax),%esi
lea    0xfa0(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2d75(%rip),%rax
mov    (%rax),%esi
lea    0xfb4(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2d60(%rip),%rax
mov    (%rax),%esi
lea    0xfb9(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2d4b(%rip),%rax
mov    (%rax),%esi
lea    0xfd2(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2d36(%rip),%rax
mov    (%rax),%esi
lea    0xfd7(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2d21(%rip),%rax
mov    (%rax),%esi
lea    0xfd3(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2d0c(%rip),%rax
mov    (%rax),%esi
lea    0xfd8(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2cf7(%rip),%rax
mov    (%rax),%esi
lea    0xfdd(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2ce2(%rip),%rax
mov    (%rax),%esi
lea    0xfe2(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2ccd(%rip),%rax
mov    (%rax),%esi
lea    0xde1(%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    0xefa(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf11(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf36(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xfa1(%rip),%r14
mov    %r14,%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf40(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf3c(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf48(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf68(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf74(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf86(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf92(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xfc3(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xfcf(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xffa(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x1006(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x1021(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x102d(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x104d(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x1059(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x105c(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x1068(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x1074(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x1080(%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 = [44 x i8] c"Usage: `bs [OPTIONS...] COLOR [COLORS...]`\0A\00"
@stdout = global i32 0
@.str.1 = [37 x i8] c" `bs -g [OPTIONS...] [COUNT]`\0A\00"
@.str.2 = [51 x i8] c"Set or get one or more colors for your BlinkStick\0A\00"
@.str.3 = [41 x i8] c"Color can be either #RRGGBB or 0xRRGGBB\0A\00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [10 x i8] c"Options:\0A\00"
@.str.6 = [26 x i8] c" -g \00"
@.str.7 = [46 x i8] c"get color(s) instead of default set color(s)\0A\00"
@.str.8 = [26 x i8] c" -m [MODE] \00"
@.str.9 = [32 x i8] c"set or get BlinkStick Pro mode\0A\00"
@.str.10 = [26 x i8] c" \00"
@.str.11 = [63 x i8] c"MODE can be 0 (Normal), 1 (Inverse), 2 (Multi) or 3 (Repeat).\0A\00"
@.str.12 = [26 x i8] c" -r \00"
@.str.13 = [57 x i8] c"reset BlinkStick to black before getting/setting colors\0A\00"
@.str.14 = [26 x i8] c" -s SERIAL \00"
@.str.15 = [41 x i8] c"work on the BlinkStick with this SERIAL\0A\00"
@.str.16 = [26 x i8] c" -i INDEX \00"
@.str.17 = [46 x i8] c"modify led at INDEX instead of the first one\0A\00"
@.str.18 = [26 x i8] c" -v \00"
@.str.19 = [17 x i8] c"be more verbose\0A\00"
@.str.20 = [26 x i8] c" -V \00"
@.str.21 = [26 x i8] c"display version and exit\0A\00"
@.str.22 = [26 x i8] c" -h \00"
@.str.23 = [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 ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @stdout
%4 = call i32 @fputs(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @stdout
%6 = call i32 @fputs(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @stdout
%8 = call i32 @fputs(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @stdout
%10 = call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @stdout
%12 = call i32 @fputs(i8* getelementptr inbounds ([10 x i8], [10 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 ([46 x i8], [46 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 ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0), i32 %19)
%21 = load i32, i32* @stdout
%22 = call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0), i32 %21)
%23 = load i32, i32* @stdout
%24 = call i32 @fputs(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.11, i64 0, i64 0), i32 %23)
%25 = load i32, i32* @stdout
%26 = call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0), i32 %25)
%27 = load i32, i32* @stdout
%28 = call i32 @fputs(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.13, i64 0, i64 0), i32 %27)
%29 = load i32, i32* @stdout
%30 = call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.14, i64 0, i64 0), i32 %29)
%31 = load i32, i32* @stdout
%32 = call i32 @fputs(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.15, i64 0, i64 0), i32 %31)
%33 = load i32, i32* @stdout
%34 = call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.16, i64 0, i64 0), i32 %33)
%35 = load i32, i32* @stdout
%36 = call i32 @fputs(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.17, i64 0, i64 0), i32 %35)
%37 = load i32, i32* @stdout
%38 = call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.18, i64 0, i64 0), i32 %37)
%39 = load i32, i32* @stdout
%40 = call i32 @fputs(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.19, i64 0, i64 0), i32 %39)
%41 = load i32, i32* @stdout
%42 = call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.20, i64 0, i64 0), i32 %41)
%43 = load i32, i32* @stdout
%44 = call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.21, i64 0, i64 0), i32 %43)
%45 = load i32, i32* @stdout
%46 = call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.22, i64 0, i64 0), i32 %45)
%47 = load i32, i32* @stdout
%48 = call i32 @fputs(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.23, i64 0, i64 0), i32 %47)
%49 = load i32, i32* @stdout
%50 = call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 %49)
ret void
}

LLVM IR (-O2):
@.str = [44 x i8] c"Usage: `bs [OPTIONS...] COLOR [COLORS...]`\0A\00"
@stdout = global i32 0
@.str.1 = [37 x i8] c" `bs -g [OPTIONS...] [COUNT]`\0A\00"
@.str.2 = [51 x i8] c"Set or get one or more colors for your BlinkStick\0A\00"
@.str.3 = [41 x i8] c"Color can be either #RRGGBB or 0xRRGGBB\0A\00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [10 x i8] c"Options:\0A\00"
@.str.6 = [26 x i8] c" -g \00"
@.str.7 = [46 x i8] c"get color(s) instead of default set color(s)\0A\00"
@.str.8 = [26 x i8] c" -m [MODE] \00"
@.str.9 = [32 x i8] c"set or get BlinkStick Pro mode\0A\00"
@.str.10 = [26 x i8] c" \00"
@.str.11 = [63 x i8] c"MODE can be 0 (Normal), 1 (Inverse), 2 (Multi) or 3 (Repeat).\0A\00"
@.str.12 = [26 x i8] c" -r \00"
@.str.13 = [57 x i8] c"reset BlinkStick to black before getting/setting colors\0A\00"
@.str.14 = [26 x i8] c" -s SERIAL \00"
@.str.15 = [41 x i8] c"work on the BlinkStick with this SERIAL\0A\00"
@.str.16 = [26 x i8] c" -i INDEX \00"
@.str.17 = [46 x i8] c"modify led at INDEX instead of the first one\0A\00"
@.str.18 = [26 x i8] c" -v \00"
@.str.19 = [17 x i8] c"be more verbose\0A\00"
@.str.20 = [26 x i8] c" -V \00"
@.str.21 = [26 x i8] c"display version and exit\0A\00"
@.str.22 = [26 x i8] c" -h \00"
@.str.23 = [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 ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @stdout
%4 = tail call i32 @fputs(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @stdout
%6 = tail call i32 @fputs(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @stdout
%8 = tail call i32 @fputs(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @stdout
%10 = tail call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @stdout
%12 = tail call i32 @fputs(i8* getelementptr inbounds ([10 x i8], [10 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 ([46 x i8], [46 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 ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0), i32 %19)
%21 = load i32, i32* @stdout
%22 = tail call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0), i32 %21)
%23 = load i32, i32* @stdout
%24 = tail call i32 @fputs(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.11, i64 0, i64 0), i32 %23)
%25 = load i32, i32* @stdout
%26 = tail call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0), i32 %25)
%27 = load i32, i32* @stdout
%28 = tail call i32 @fputs(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.13, i64 0, i64 0), i32 %27)
%29 = load i32, i32* @stdout
%30 = tail call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.14, i64 0, i64 0), i32 %29)
%31 = load i32, i32* @stdout
%32 = tail call i32 @fputs(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.15, i64 0, i64 0), i32 %31)
%33 = load i32, i32* @stdout
%34 = tail call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.16, i64 0, i64 0), i32 %33)
%35 = load i32, i32* @stdout
%36 = tail call i32 @fputs(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.17, i64 0, i64 0), i32 %35)
%37 = load i32, i32* @stdout
%38 = tail call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.18, i64 0, i64 0), i32 %37)
%39 = load i32, i32* @stdout
%40 = tail call i32 @fputs(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.19, i64 0, i64 0), i32 %39)
%41 = load i32, i32* @stdout
%42 = tail call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.20, i64 0, i64 0), i32 %41)
%43 = load i32, i32* @stdout
%44 = tail call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.21, i64 0, i64 0), i32 %43)
%45 = load i32, i32* @stdout
%46 = tail call i32 @fputs(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.22, i64 0, i64 0), i32 %45)
%47 = load i32, i32* @stdout
%48 = tail call i32 @fputs(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.23, i64 0, i64 0), i32 %47)
%49 = load i32, i32* @stdout
%50 = tail call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 %49)
ret void
}