#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("bdremoteng - Sony BD Remote helper daemon version %s\n\n", "0.5");
  printf("Usage:\n"
         "\tbdremoteng [options]\n"
         "\n");
  printf(
      "Options:\n"
      "\t-p <port>            Set port number for incoming LIRCD connections.\n"
      "\t-t <timeout>         Set disconnect timeout for BD remote (in "
      "seconds).\n"
      "\t-i <address>         BT address of interface to use.\n"
      "\t-a <address>         BT address of remote.\n"
      "\t                     For example: -a 00:19:C1:5A:F1:3F. \n"
      "\t-b <script>          Execute <script> when battery info changes.\n"
      "\t                     Arguments: <prev charge> <current charge>, both "
      "in percent.\n");
  printf("\t-r <rate>            Key repeat rate. Generate <rate> repeats per "
         "second.\n"
         "\t-e <num>             Wait <num> ms before repeating a key.\n"
         "\t-R <suffix>          Auto-generate release events with appended "
         "<suffix>.\n"
         "\t-l                   Follow LIRC namespace for the key names.\n"
         "\t-E                   Make output available through a Linux event "
         "device.\n"
         "\t-u <username>        Change UID to the UID of this user.\n"
         "\t-g <group>           Change GID to the GID of this group.\n"
         "\t-f <filename>        Write log to <filename>.\n"
         "\t-d                   Enable debug.\n"
         "\t-n                   Don't fork daemon to background.\n"
         "\t-h, --help           Display help.\n"
         "\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xf15(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10d7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0xf08(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xefe(%rip),%rdi
call   1030 <puts@plt>
lea    0xf10(%rip),%rdi
call   1030 <puts@plt>
lea    0x10cc(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [55 x i8] c"bdremoteng - Sony BD Remote helper daemon version %s\0A\0A\00"
@.str.1 = [4 x i8] c"0.5\00"
@.str.2 = [31 x i8] c"Usage:\0A\09bdremoteng [options]\0A\0A\00"
@.str.3 = [457 x i8] c"Options:\0A\09-p <port> Set port number for incoming LIRCD connections.\0A\09-t <timeout> Set disconnect timeout for BD remote (in seconds).\0A\09-i <address> BT address of interface to use.\0A\09-a <address> BT address of remote.\0A\09 For example: -a 00:19:C1:5A:F1:3F. \0A\09-b <script> Execute <script> when battery info changes.\0A\09 Arguments: <prev charge> <current charge>, both in percent.\0A\00"
@.str.4 = [640 x i8] c"\09-r <rate> Key repeat rate. Generate <rate> repeats per second.\0A\09-e <num> Wait <num> ms before repeating a key.\0A\09-R <suffix> Auto-generate release events with appended <suffix>.\0A\09-l Follow LIRC namespace for the key names.\0A\09-E Make output available through a Linux event device.\0A\09-u <username> Change UID to the UID of this user.\0A\09-g <group> Change GID to the GID of this group.\0A\09-f <filename> Write log to <filename>.\0A\09-d Enable debug.\0A\09-n Don't fork daemon to background.\0A\09-h, --help Display help.\0A\0A\00"
define void @usage() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([457 x i8], [457 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([640 x i8], [640 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [55 x i8] c"bdremoteng - Sony BD Remote helper daemon version %s\0A\0A\00"
@.str.1 = [4 x i8] c"0.5\00"
@str = [30 x i8] c"Usage:\0A\09bdremoteng [options]\0A\00"
@str.5 = [456 x i8] c"Options:\0A\09-p <port> Set port number for incoming LIRCD connections.\0A\09-t <timeout> Set disconnect timeout for BD remote (in seconds).\0A\09-i <address> BT address of interface to use.\0A\09-a <address> BT address of remote.\0A\09 For example: -a 00:19:C1:5A:F1:3F. \0A\09-b <script> Execute <script> when battery info changes.\0A\09 Arguments: <prev charge> <current charge>, both in percent.\00"
@str.6 = [639 x i8] c"\09-r <rate> Key repeat rate. Generate <rate> repeats per second.\0A\09-e <num> Wait <num> ms before repeating a key.\0A\09-R <suffix> Auto-generate release events with appended <suffix>.\0A\09-l Follow LIRC namespace for the key names.\0A\09-E Make output available through a Linux event device.\0A\09-u <username> Change UID to the UID of this user.\0A\09-g <group> Change GID to the GID of this group.\0A\09-f <filename> Write log to <filename>.\0A\09-d Enable debug.\0A\09-n Don't fork daemon to background.\0A\09-h, --help Display help.\0A\00"
define void @usage() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([456 x i8], [456 x i8]* @str.5, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([639 x i8], [639 x i8]* @str.6, i64 0, i64 0))
ret void
}