#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*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
void usage(char *name) {
  fprintf(stderr,
          "FBTrueType v%s, Copyright (C) 2015, Michael Higham "
          "<mhigham1986@gmail.com>\n",
          "0.41");
  fprintf(stderr, "\nUsage: %s [OPTION] [TEXT]\n", name);
  fprintf(
      stderr,
      "\nOptions:\n\n"
      "	-?, -h, --help:		Print this help.\n"
      "	-V, --version:		Show version.\n"
      "	-i, --info:		Print device display information.\n\n"
      ""
      "	-z, --zygote:		Zygote mode.\n"
      "	-p, --power:		Send power key event.\n"
      "	-c, --clear		Clear the device display.\n\n"
      ""
      "	-x:			X coordinate pixel [default 10]\n"
      "	-y:			Y coordinate pixel [default 10]\n"
      "	-b, --brightness:	Set display brightness [0-255] [default 170]\n"
      "	-w, --boxwidth:		Text box column size [default 65]\n"
      "	-f, --font:		Font name [.ttf file]\n"
      "	-s, --size:		Font size [default 12]\n"
      "	-t, --textcolor:	Font color [RGB Hex: FFFFFF]\n"
      "	-a, --alpha:		Alpha channel [1-100]\n\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
lea    0xed4(%rip),%rsi
lea    0xf19(%rip),%rdx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e9f(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xf03(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e84(%rip),%rax
mov    (%rax),%edi
lea    0xf08(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    0x2ec2(%rip),%r14
mov    (%r14),%edi
lea    0xed8(%rip),%rsi
lea    0xf1d(%rip),%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xf11(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edi
lea    0xf19(%rip),%rsi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [76 x i8] c"FBTrueType v%s, Copyright (C) 2015, Michael Higham <mhigham1986@gmail.com>\0A\00"
@.str.1 = [5 x i8] c"0.41\00"
@.str.2 = [28 x i8] c"\0AUsage: %s [OPTION] [TEXT]\0A\00"
@.str.3 = [586 x i8] c"\0AOptions:\0A\0A\09-?, -h, --help:\09\09Print this help.\0A\09-V, --version:\09\09Show version.\0A\09-i, --info:\09\09Print device display information.\0A\0A\09-z, --zygote:\09\09Zygote mode.\0A\09-p, --power:\09\09Send power key event.\0A\09-c, --clear\09\09Clear the device display.\0A\0A\09-x:\09\09\09X coordinate pixel [default 10]\0A\09-y:\09\09\09Y coordinate pixel [default 10]\0A\09-b, --brightness:\09Set display brightness [0-255] [default 170]\0A\09-w, --boxwidth:\09\09Text box column size [default 65]\0A\09-f, --font:\09\09Font name [.ttf file]\0A\09-s, --size:\09\09Font size [default 12]\0A\09-t, --textcolor:\09Font color [RGB Hex: FFFFFF]\0A\09-a, --alpha:\09\09Alpha channel [1-100]\0A\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %2
%7 = call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0), i8* %6)
%8 = load i32, i32* @stderr
%9 = call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([586 x i8], [586 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [76 x i8] c"FBTrueType v%s, Copyright (C) 2015, Michael Higham <mhigham1986@gmail.com>\0A\00"
@.str.1 = [5 x i8] c"0.41\00"
@.str.2 = [28 x i8] c"\0AUsage: %s [OPTION] [TEXT]\0A\00"
@.str.3 = [586 x i8] c"\0AOptions:\0A\0A\09-?, -h, --help:\09\09Print this help.\0A\09-V, --version:\09\09Show version.\0A\09-i, --info:\09\09Print device display information.\0A\0A\09-z, --zygote:\09\09Zygote mode.\0A\09-p, --power:\09\09Send power key event.\0A\09-c, --clear\09\09Clear the device display.\0A\0A\09-x:\09\09\09X coordinate pixel [default 10]\0A\09-y:\09\09\09Y coordinate pixel [default 10]\0A\09-b, --brightness:\09Set display brightness [0-255] [default 170]\0A\09-w, --boxwidth:\09\09Text box column size [default 65]\0A\09-f, --font:\09\09Font name [.ttf file]\0A\09-s, --size:\09\09Font size [default 12]\0A\09-t, --textcolor:\09Font color [RGB Hex: FFFFFF]\0A\09-a, --alpha:\09\09Alpha channel [1-100]\0A\0A\00"
define void @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 (i32, i8*, ...) @fprintf(i32 %2, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%4 = load i32, i32* @stderr
%5 = tail call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0), i8* %0)
%6 = load i32, i32* @stderr
%7 = tail call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([586 x i8], [586 x i8]* @.str.3, i64 0, i64 0))
ret void
}