#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);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
void usage(char *prgname) {
  fprintf(stderr,
          "USAGE: %s [options] \n"
          "  Available options:\n"
          "   --input-pattern val -a val \n"
          "   --input-file val    -i val \n"
          "   --output-file val   -o val\n"
          "   --connect-port val  -P val\n"
          "   --connect-ip val    -c val\n"
          "     instead of -o you might use -P and -c\n"
          "   --buffer-size val   -b val\n"
          "   --seek-input val    -k val\n"
          "   --seek-output val   -l val\n"
          "   --size val          -s val\n"
          "   --o_direct          -x\n"
          "     affect -i and -o \n"
          "   --bandwidth         -w val byte/second \n"
          "   --sync              -y\n"
          "   --progress          -m\n"
          "   --performance       -p\n"
          "   --dialog            -d\n"
          "   --help              -h\n",
          prgname);
  exit(20);
}


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),%rdx
lea    0xec0(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x14,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    %rdi,%rdx
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x14,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [580 x i8] c"USAGE: %s [options] \0A Available options:\0A --input-pattern val -a val \0A --input-file val -i val \0A --output-file val -o val\0A --connect-port val -P val\0A --connect-ip val -c val\0A instead of -o you might use -P and -c\0A --buffer-size val -b val\0A --seek-input val -k val\0A --seek-output val -l val\0A --size val -s val\0A --o_direct -x\0A affect -i and -o \0A --bandwidth -w val byte/second \0A --sync -y\0A --progress -m\0A --performance -p\0A --dialog -d\0A --help -h\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 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([580 x i8], [580 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = call i32 @exit(i32 20)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [580 x i8] c"USAGE: %s [options] \0A Available options:\0A --input-pattern val -a val \0A --input-file val -i val \0A --output-file val -o val\0A --connect-port val -P val\0A --connect-ip val -c val\0A instead of -o you might use -P and -c\0A --buffer-size val -b val\0A --seek-input val -k val\0A --seek-output val -l val\0A --size val -s val\0A --o_direct -x\0A affect -i and -o \0A --bandwidth -w val byte/second \0A --sync -y\0A --progress -m\0A --performance -p\0A --dialog -d\0A --help -h\0A\00"
define void @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([580 x i8], [580 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = tail call i32 @exit(i32 20)
unreachable
}