#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_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, char *);
int /*<<< orphan*/ stderr;
void _usage(char *cmd) {
  fprintf(stderr,
          "Usage: %s -t title    [-c first[-last]] [-k keyfile] [-a angle]  "
          "<bd path> [dest]\n"
          "       %s -p playlist [-c first[-last]] [-k keyfile] [-a angle]  "
          "<bd path> [dest]\n"
          "Summary:\n"
          "    Given a title or playlist number and Blu-Ray directory tree,\n"
          "    find the clips that compose the movie and splice\n"
          "    them together in the destination file\n"
          "Options:\n"
          "    t N         - Index of title to splice. First title is 1.\n"
          "    p N         - Playlist to splice.\n"
          "    a N         - Angle. First angle is 1.\n"
          "    c N or N-M  - Chapter or chapter range. First chapter is 1.\n"
          "    k keyfile   - AACS keyfile path.\n"
          "    <bd path>   - Path to root of Blu-Ray directory tree.\n"
          "    [dest]      - Destination of spliced clips. stdout if not "
          "specified.\n",
          cmd, cmd);
  exit(EXIT_FAILURE);
}


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
mov    -0x8(%rbp),%rcx
lea    0xebc(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e88(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

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

LLVM IR (-O0):
@stderr = global i32 0
@.str = [718 x i8] c"Usage: %s -t title [-c first[-last]] [-k keyfile] [-a angle] <bd path> [dest]\0A %s -p playlist [-c first[-last]] [-k keyfile] [-a angle] <bd path> [dest]\0ASummary:\0A Given a title or playlist number and Blu-Ray directory tree,\0A find the clips that compose the movie and splice\0A them together in the destination file\0AOptions:\0A t N - Index of title to splice. First title is 1.\0A p N - Playlist to splice.\0A a N - Angle. First angle is 1.\0A c N or N-M - Chapter or chapter range. First chapter is 1.\0A k keyfile - AACS keyfile path.\0A <bd path> - Path to root of Blu-Ray directory tree.\0A [dest] - Destination of spliced clips. stdout if not specified.\0A\00"
@EXIT_FAILURE = global i32 0
define void @_usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = load i8*, i8** %2
%6 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([718 x i8], [718 x i8]* @.str, i64 0, i64 0), i8* %4, i8* %5)
%7 = load i32, i32* @EXIT_FAILURE
%8 = call i32 @exit(i32 %7)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [718 x i8] c"Usage: %s -t title [-c first[-last]] [-k keyfile] [-a angle] <bd path> [dest]\0A %s -p playlist [-c first[-last]] [-k keyfile] [-a angle] <bd path> [dest]\0ASummary:\0A Given a title or playlist number and Blu-Ray directory tree,\0A find the clips that compose the movie and splice\0A them together in the destination file\0AOptions:\0A t N - Index of title to splice. First title is 1.\0A p N - Playlist to splice.\0A a N - Angle. First angle is 1.\0A c N or N-M - Chapter or chapter range. First chapter is 1.\0A k keyfile - AACS keyfile path.\0A <bd path> - Path to root of Blu-Ray directory tree.\0A [dest] - Destination of spliced clips. stdout if not specified.\0A\00"
@EXIT_FAILURE = global i32 0
define void @_usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([718 x i8], [718 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %0)
%4 = load i32, i32* @EXIT_FAILURE
%5 = tail call i32 @exit(i32 %4)
unreachable
}