#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*/ _exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
void usage(char **argv) {
  fprintf(stderr,
          "\n"
          "usage:\t%s [-a] [-h|v] [-p sec] [-t thickness]\n"
          "\t\t[-I color] [-O color] [-i color] [-o color]\n"
          "\t\t[ top | bottom | left | right ]\n"
          "-a:         always on top.\n"
          "-v, -h:     show this message.\n"
          "-t:         bar (indicator) thickness. [def: 3 pixels]\n"
          "-p:         polling interval. [def: 10 sec.]\n"
          "-I, -O:     bar colors in AC on-line. [def: \"green\" & \"olive "
          "drab\"]\n"
          "-i, -o:     bar colors in AC off-line. [def: \"blue\" and \"red\"]\n"
          "top, bottom, left, right: bar localtion. [def: \"bottom\"]\n"
          "\n"
          "-c:         use ACPI checker for getting battery status\n"
          "-s script:  use external script for getting battery status\n",
          argv[0]);
  _exit(0);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    (%rax),%rdx
lea    0xebd(%rip),%rsi
call   1040 <fprintf@plt>
xor    %edi,%edi
call   1030 <_exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%eax
mov    (%rdi),%rdx
lea    0xecc(%rip),%rsi
mov    %eax,%edi
call   1040 <fprintf@plt>
xor    %edi,%edi
call   1030 <_exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [590 x i8] c"\0Ausage:\09%s [-a] [-h|v] [-p sec] [-t thickness]\0A\09\09[-I color] [-O color] [-i color] [-o color]\0A\09\09[ top | bottom | left | right ]\0A-a: always on top.\0A-v, -h: show this message.\0A-t: bar (indicator) thickness. [def: 3 pixels]\0A-p: polling interval. [def: 10 sec.]\0A-I, -O: bar colors in AC on-line. [def: \22green\22 & \22olive drab\22]\0A-i, -o: bar colors in AC off-line. [def: \22blue\22 and \22red\22]\0Atop, bottom, left, right: bar localtion. [def: \22bottom\22]\0A\0A-c: use ACPI checker for getting battery status\0A-s script: use external script for getting battery status\0A\00"
define void @usage(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = load i32, i32* @stderr
%4 = load i8**, i8*** %2
%5 = getelementptr inbounds i8*, i8** %4, i64 0
%6 = load i8*, i8** %5
%7 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([590 x i8], [590 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = call i32 @_exit(i32 0)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [590 x i8] c"\0Ausage:\09%s [-a] [-h|v] [-p sec] [-t thickness]\0A\09\09[-I color] [-O color] [-i color] [-o color]\0A\09\09[ top | bottom | left | right ]\0A-a: always on top.\0A-v, -h: show this message.\0A-t: bar (indicator) thickness. [def: 3 pixels]\0A-p: polling interval. [def: 10 sec.]\0A-I, -O: bar colors in AC on-line. [def: \22green\22 & \22olive drab\22]\0A-i, -o: bar colors in AC off-line. [def: \22blue\22 and \22red\22]\0Atop, bottom, left, right: bar localtion. [def: \22bottom\22]\0A\0A-c: use ACPI checker for getting battery status\0A-s script: use external script for getting battery status\0A\00"
define void @usage(i8** nocapture %0) {
%2 = load i32, i32* @stderr
%3 = load i8*, i8** %0
%4 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([590 x i8], [590 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = tail call i32 @_exit(i32 0)
unreachable
}