#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*/ printf(char *, char *, ...);
void usage(char *name) {
  printf("Usage: %s [-bchkqv] [-d <update_delay>] <interface_name>\n", name);
  printf("Example: %s -d 300 ppp0\n", name);
  printf("Options:\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n",
         "\t-b\tDon't go to the background.",
         "\t-c\tFix the CapsLED in VTs. Only for EUID root.",
         "\t-d N\tSet update delay.",
         "\t\tN must be between 1 and 10000 (milliseconds)",
         "\t-h\tHelp. (this)", "\t-k\tKill (old) (x)tleds running.",
         "\t-q\tBe quiet.", "\t-v\tPrint version information.",
         "\t\t(`cat /proc/net/dev` to see your interfaces.)");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x28,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xed8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0xf00(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0b(%rip),%rdi
lea    0xf29(%rip),%rsi
lea    0xf42(%rip),%rdx
lea    0xf6b(%rip),%rcx
lea    0xf7c(%rip),%r8
lea    0xfa4(%rip),%r9
lea    0xfae(%rip),%rbx
lea    0xfc8(%rip),%r11
lea    0xfcf(%rip),%r10
lea    0xfe7(%rip),%rax
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %rax,0x18(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x28,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xee2(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf0b(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x102e(%rip),%rbx
lea    0x1008(%rip),%r10
lea    0xff3(%rip),%r11
lea    0xfcb(%rip),%r14
lea    0xef7(%rip),%rdi
lea    0xf15(%rip),%rsi
lea    0xf2e(%rip),%rdx
lea    0xf57(%rip),%rcx
lea    0xf68(%rip),%r8
lea    0xf90(%rip),%r9
xor    %eax,%eax
push   %rbx
push   %r10
push   %r11
push   %r14
call   1030 <printf@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [58 x i8] c"Usage: %s [-bchkqv] [-d <update_delay>] <interface_name>\0A\00"
@.str.1 = [25 x i8] c"Example: %s -d 300 ppp0\0A\00"
@.str.2 = [37 x i8] c"Options:\0A%s\0A%s\0A%s\0A%s\0A%s\0A%s\0A%s\0A%s\0A%s\0A\00"
@.str.3 = [32 x i8] c"\09-b\09Don't go to the background.\00"
@.str.4 = [48 x i8] c"\09-c\09Fix the CapsLED in VTs. Only for EUID root.\00"
@.str.5 = [24 x i8] c"\09-d N\09Set update delay.\00"
@.str.6 = [47 x i8] c"\09\09N must be between 1 and 10000 (milliseconds)\00"
@.str.7 = [17 x i8] c"\09-h\09Help. (this)\00"
@.str.8 = [33 x i8] c"\09-k\09Kill (old) (x)tleds running.\00"
@.str.9 = [14 x i8] c"\09-q\09Be quiet.\00"
@.str.10 = [31 x i8] c"\09-v\09Print version information.\00"
@.str.11 = [48 x i8] c"\09\09(`cat /proc/net/dev` to see your interfaces.)\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = load i8*, i8** %2
%6 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* %5)
%7 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [58 x i8] c"Usage: %s [-bchkqv] [-d <update_delay>] <interface_name>\0A\00"
@.str.1 = [25 x i8] c"Example: %s -d 300 ppp0\0A\00"
@.str.2 = [37 x i8] c"Options:\0A%s\0A%s\0A%s\0A%s\0A%s\0A%s\0A%s\0A%s\0A%s\0A\00"
@.str.3 = [32 x i8] c"\09-b\09Don't go to the background.\00"
@.str.4 = [48 x i8] c"\09-c\09Fix the CapsLED in VTs. Only for EUID root.\00"
@.str.5 = [24 x i8] c"\09-d N\09Set update delay.\00"
@.str.6 = [47 x i8] c"\09\09N must be between 1 and 10000 (milliseconds)\00"
@.str.7 = [17 x i8] c"\09-h\09Help. (this)\00"
@.str.8 = [33 x i8] c"\09-k\09Kill (old) (x)tleds running.\00"
@.str.9 = [14 x i8] c"\09-q\09Be quiet.\00"
@.str.10 = [31 x i8] c"\09-v\09Print version information.\00"
@.str.11 = [48 x i8] c"\09\09(`cat /proc/net/dev` to see your interfaces.)\00"
define void @usage(i8* %0) {
%2 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%4 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.11, i64 0, i64 0))
ret void
}