#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("oobtest - Out-of-band pairing testing\n"
         "Usage:\n");
  printf("\toobtest [options]\n");
  printf("options:\n"
         "\t-B, --bredr            Use BR/EDR transport\n"
         "\t-L, --le               Use LE transport\n"
         "\t-S, --sc               Use Secure Connections\n"
         "\t-O, --sconly           Use Secure Connections Only\n"
         "\t-P, --legacy           Use Legacy Pairing\n"
         "\t-R, --random           Use Static random address\n"
         "\t-Y, --privacy          Use LE privacy feature\n"
         "\t-D, --debug            Use Pairing debug keys\n"
         "\t-C, --cross            Use cross-transport pairing\n"
         "\t-0, --tk               Provide LE legacy OOB data\n"
         "\t-1, --p192             Provide P-192 OOB data\n"
         "\t-2, --p256             Provide P-256 OOB data\n"
         "\t-I, --initiator        Initiator provides OOB data\n"
         "\t-A, --acceptor         Acceptor provides OOB data\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    0xf07(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0f(%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    0xf09(%rip),%rdi
call   1030 <puts@plt>
lea    0xf10(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [46 x i8] c"oobtest - Out-of-band pairing testing\0AUsage:\0A\00"
@.str.1 = [20 x i8] c"\09oobtest [options]\0A\00"
@.str.2 = [724 x i8] c"options:\0A\09-B, --bredr Use BR/EDR transport\0A\09-L, --le Use LE transport\0A\09-S, --sc Use Secure Connections\0A\09-O, --sconly Use Secure Connections Only\0A\09-P, --legacy Use Legacy Pairing\0A\09-R, --random Use Static random address\0A\09-Y, --privacy Use LE privacy feature\0A\09-D, --debug Use Pairing debug keys\0A\09-C, --cross Use cross-transport pairing\0A\09-0, --tk Provide LE legacy OOB data\0A\09-1, --p192 Provide P-192 OOB data\0A\09-2, --p256 Provide P-256 OOB data\0A\09-I, --initiator Initiator provides OOB data\0A\09-A, --acceptor Acceptor provides OOB data\0A\09-h, --help Show help options\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([724 x i8], [724 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [45 x i8] c"oobtest - Out-of-band pairing testing\0AUsage:\00"
@str.3 = [19 x i8] c"\09oobtest [options]\00"
@str.4 = [723 x i8] c"options:\0A\09-B, --bredr Use BR/EDR transport\0A\09-L, --le Use LE transport\0A\09-S, --sc Use Secure Connections\0A\09-O, --sconly Use Secure Connections Only\0A\09-P, --legacy Use Legacy Pairing\0A\09-R, --random Use Static random address\0A\09-Y, --privacy Use LE privacy feature\0A\09-D, --debug Use Pairing debug keys\0A\09-C, --cross Use cross-transport pairing\0A\09-0, --tk Provide LE legacy OOB data\0A\09-1, --p192 Provide P-192 OOB data\0A\09-2, --p256 Provide P-256 OOB data\0A\09-I, --initiator Initiator provides OOB data\0A\09-A, --acceptor Acceptor provides OOB data\0A\09-h, --help Show help options\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.3, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([723 x i8], [723 x i8]* @str.4, i64 0, i64 0))
ret void
}