#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*/ fputs(char const *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
void usage(const char *progname) {
  fprintf(stderr, "dvbindex v"
                  "0"
                  "."
                  "0"
                  "."
                  "3"
                  "\n");
  fprintf(stderr, "Usage : %s dbfile [stream ...]\n", progname);
  static const char *usagemsg =
      "Read streams and save their metadata and codec information into dbfile. "
      "Each of\n"
      "the streams might be a file or a directory.\n"
      "\n"
      "Additional options :\n"
      "   -v verbosity   Specify the logging verbosity, with 0 being the "
      "lowest and 3\n"
      "                  being the highest. This can be a single number, in "
      "which case\n"
      "                  all components have the same verbosity, or a "
      "comma-delimited\n"
      "                  sequence of component:severity tokens. Valid "
      "components are :\n"
      "                  dvbindex, ffmpeg, sqlite, dvbpsi\n";
  fputs(usagemsg, stderr);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
lea    0xec4(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e96(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xeba(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2ecb(%rip),%rdi
mov    0x2e74(%rip),%rax
mov    (%rax),%esi
call   1030 <fputs@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    0x2eb2(%rip),%r14
mov    (%r14),%edi
lea    0xec8(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r14),%edi
lea    0xec8(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r14),%esi
lea    0xed4(%rip),%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <fputs@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [17 x i8] c"dvbindex v0.0.3\0A\00"
@.str.1 = [32 x i8] c"Usage : %s dbfile [stream ...]\0A\00"
@usage.usagemsg = internal global i8* getelementptr inbounds ([516 x i8], [516 x i8]* @.str.2, i32 0, i32 0)
@.str.2 = [516 x i8] c"Read streams and save their metadata and codec information into dbfile. Each of\0Athe streams might be a file or a directory.\0A\0AAdditional options :\0A -v verbosity Specify the logging verbosity, with 0 being the lowest and 3\0A being the highest. This can be a single number, in which case\0A all components have the same verbosity, or a comma-delimited\0A sequence of component:severity tokens. Valid components are :\0A dvbindex, ffmpeg, sqlite, dvbpsi\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 ([17 x i8], [17 x i8]* @.str, 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 ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i8* %6)
%8 = load i8*, i8** @usage.usagemsg
%9 = load i32, i32* @stderr
%10 = call i32 @fputs(i8* %8, i32 %9)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [17 x i8] c"dvbindex v0.0.3\0A\00"
@.str.1 = [32 x i8] c"Usage : %s dbfile [stream ...]\0A\00"
@.str.2 = [516 x i8] c"Read streams and save their metadata and codec information into dbfile. Each of\0Athe streams might be a file or a directory.\0A\0AAdditional options :\0A -v verbosity Specify the logging verbosity, with 0 being the lowest and 3\0A being the highest. This can be a single number, in which case\0A all components have the same verbosity, or a comma-delimited\0A sequence of component:severity tokens. Valid components are :\0A dvbindex, ffmpeg, sqlite, dvbpsi\0A\00"
define void @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 (i32, i8*, ...) @fprintf(i32 %2, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* @stderr
%5 = tail call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%6 = load i32, i32* @stderr
%7 = tail call i32 @fputs(i8* getelementptr inbounds ([516 x i8], [516 x i8]* @.str.2, i64 0, i64 0), i32 %6)
ret void
}