#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 *);
void usage(void) {
  printf("btmon - Bluetooth monitor\n"
         "Usage:\n");
  printf("\tbtmon [options]\n");
  printf("options:\n"
         "\t-r, --read <file>      Read traces in btsnoop format\n"
         "\t-w, --write <file>     Save traces in btsnoop format\n"
         "\t-a, --analyze <file>   Analyze traces in btsnoop format\n"
         "\t-s, --server <socket>  Start monitor server socket\n"
         "\t-i, --index <num>      Show only specified controller\n"
         "\t-t, --time             Show time instead of time offset\n"
         "\t-T, --date             Show time and date information\n"
         "\t-S, --sco              Dump SCO traffic\n"
         "\t-E, --ellisys [ip]     Send Ellisys HCI Injection\n"
         "\t-h, --help             Show help options\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xefb(%rip),%rdi
call   1030 <printf@plt>
lea    0xf01(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xefd(%rip),%rdi
call   1030 <puts@plt>
lea    0xf02(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [34 x i8] c"btmon - Bluetooth monitor\0AUsage:\0A\00"
@.str.1 = [18 x i8] c"\09btmon [options]\0A\00"
@.str.2 = [528 x i8] c"options:\0A\09-r, --read <file> Read traces in btsnoop format\0A\09-w, --write <file> Save traces in btsnoop format\0A\09-a, --analyze <file> Analyze traces in btsnoop format\0A\09-s, --server <socket> Start monitor server socket\0A\09-i, --index <num> Show only specified controller\0A\09-t, --time Show time instead of time offset\0A\09-T, --date Show time and date information\0A\09-S, --sco Dump SCO traffic\0A\09-E, --ellisys [ip] Send Ellisys HCI Injection\0A\09-h, --help Show help options\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([528 x i8], [528 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [33 x i8] c"btmon - Bluetooth monitor\0AUsage:\00"
@str.3 = [17 x i8] c"\09btmon [options]\00"
@str.4 = [527 x i8] c"options:\0A\09-r, --read <file> Read traces in btsnoop format\0A\09-w, --write <file> Save traces in btsnoop format\0A\09-a, --analyze <file> Analyze traces in btsnoop format\0A\09-s, --server <socket> Start monitor server socket\0A\09-i, --index <num> Show only specified controller\0A\09-t, --time Show time instead of time offset\0A\09-T, --date Show time and date information\0A\09-S, --sco Dump SCO traffic\0A\09-E, --ellisys [ip] Send Ellisys HCI Injection\0A\09-h, --help Show help options\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.3, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([527 x i8], [527 x i8]* @str.4, i64 0, i64 0))
ret void
}