#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("btgatt-client\n");
  printf("\nUsage:\n\tbtgatt-client [options]\n");
  printf("Options:\n"
         "\t-i, --index <id>\t\tSpecify adapter index, e.g. hci0\n"
         "\t-d, --dest <addr>\t\tSpecify the destination address\n"
         "\t-t, --type [random|public] \tSpecify the LE address type\n"
         "\t-m, --mtu <mtu> \t\tThe ATT MTU to use\n"
         "\t-n, --notify-via-printf \tEnable printf during notify callback\n"
         "\t-s, --security-level <sec> \tSet security level (low|"
         "medium|high)\n"
         "\t-v, --verbose\t\t\tEnable extra logging\n"
         "\t-h, --help\t\t\tDisplay help\n"
         "\t-P  --tcpip-port <N> \t\tSet tcpip port to send packets on (N<1 to "
         "disable)\n"
         "\t-Z  --tcpip-packet-sz <N> \tSet tcpip packet size to N bytes \n"
         "\t-W  --handle-write <hex>  \tDefine handle to write values to after"
         " device is ready. Example: -W 0x002A  \n"
         "\t-N  --handle-notify <hex> \tDefine handle for registering "
         "notifications "
         "during startup. Example: -N 0x002A  \n"
         "\t-C  --command-init <cmd1> <cmd2> ... <cmd5>\n"
         "\t\t\t\t\tDefine commands to write as values to "
         "write handle.\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
call   1030 <printf@plt>
lea    0xefe(%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    0xeea(%rip),%rdi
call   1030 <puts@plt>
lea    0xeff(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"btgatt-client\0A\00"
@.str.1 = [34 x i8] c"\0AUsage:\0A\09btgatt-client [options]\0A\00"
@.str.2 = [856 x i8] c"Options:\0A\09-i, --index <id>\09\09Specify adapter index, e.g. hci0\0A\09-d, --dest <addr>\09\09Specify the destination address\0A\09-t, --type [random|public] \09Specify the LE address type\0A\09-m, --mtu <mtu> \09\09The ATT MTU to use\0A\09-n, --notify-via-printf \09Enable printf during notify callback\0A\09-s, --security-level <sec> \09Set security level (low|medium|high)\0A\09-v, --verbose\09\09\09Enable extra logging\0A\09-h, --help\09\09\09Display help\0A\09-P --tcpip-port <N> \09\09Set tcpip port to send packets on (N<1 to disable)\0A\09-Z --tcpip-packet-sz <N> \09Set tcpip packet size to N bytes \0A\09-W --handle-write <hex> \09Define handle to write values to after device is ready. Example: -W 0x002A \0A\09-N --handle-notify <hex> \09Define handle for registering notifications during startup. Example: -N 0x002A \0A\09-C --command-init <cmd1> <cmd2> ... <cmd5>\0A\09\09\09\09\09Define commands to write as values to write handle.\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([856 x i8], [856 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [14 x i8] c"btgatt-client\00"
@str.3 = [33 x i8] c"\0AUsage:\0A\09btgatt-client [options]\00"
@str.4 = [855 x i8] c"Options:\0A\09-i, --index <id>\09\09Specify adapter index, e.g. hci0\0A\09-d, --dest <addr>\09\09Specify the destination address\0A\09-t, --type [random|public] \09Specify the LE address type\0A\09-m, --mtu <mtu> \09\09The ATT MTU to use\0A\09-n, --notify-via-printf \09Enable printf during notify callback\0A\09-s, --security-level <sec> \09Set security level (low|medium|high)\0A\09-v, --verbose\09\09\09Enable extra logging\0A\09-h, --help\09\09\09Display help\0A\09-P --tcpip-port <N> \09\09Set tcpip port to send packets on (N<1 to disable)\0A\09-Z --tcpip-packet-sz <N> \09Set tcpip packet size to N bytes \0A\09-W --handle-write <hex> \09Define handle to write values to after device is ready. Example: -W 0x002A \0A\09-N --handle-notify <hex> \09Define handle for registering notifications during startup. Example: -N 0x002A \0A\09-C --command-init <cmd1> <cmd2> ... <cmd5>\0A\09\09\09\09\09Define commands to write as values to write handle.\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.3, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([855 x i8], [855 x i8]* @str.4, i64 0, i64 0))
ret void
}