#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 printUsage(void) {
  fprintf(stderr, "NAME\n");
  fprintf(stderr, "\tyamdi -- Yet Another Metadata Injector for FLV\n");
  fprintf(stderr, "\tVersion: "
                  "1.9"
                  "\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "SYNOPSIS\n");
  fprintf(
      stderr,
      "\tyamdi -i input file [-x xml file | -o output file [-x xml file]]\n");
  fprintf(
      stderr,
      "\t      [-t temporary file] [-c creator] [-a interval] [-skMXw] [-h]\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "DESCRIPTION\n");
  fprintf(stderr, "\tyamdi is a metadata injector for FLV files.\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "\tOptions:\n");
  fprintf(stderr, "\n");
  fprintf(stderr,
          "\t-i\tThe source FLV file. If the file name is '-' the input\n");
  fprintf(stderr,
          "\t\tfile will be read from stdin. Use the -t option to specify\n");
  fprintf(stderr, "\t\ta temporary file.\n");
  fprintf(stderr, "\n");
  fprintf(stderr,
          "\t-o\tThe resulting FLV file with the metatags. If the file\n");
  fprintf(stderr, "\t\tname is '-' the output will be written to stdout.\n");
  fprintf(stderr, "\n");
  fprintf(
      stderr,
      "\t-x\tAn XML file with the resulting metadata information. If the\n");
  fprintf(stderr,
          "\t\toutput file is ommited, only metadata will be generated.\n");
  fprintf(stderr, "\n");
  fprintf(stderr,
          "\t-t\tA temporary file to store the source FLV file in if the\n");
  fprintf(stderr, "\t\tinput file is read from stdin.\n");
  fprintf(stderr, "\n");
  fprintf(stderr,
          "\t-c\tA string that will be written into the creator tag.\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "\t-s, -l\tAdd the onLastSecond event.\n");
  fprintf(stderr,
          "\t\tThe -l option is deprecated and will be removed in a future\n");
  fprintf(stderr, "\t\tversion.\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "\t-k\tAdd the onLastKeyframe event.\n");
  fprintf(stderr, "\n");
  fprintf(
      stderr,
      "\t-M\tStrip all metadata from the FLV. The -s and -k options will\n");
  fprintf(stderr, "\t\tbe ignored.\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "\t-X\tOmit the keyframes tag in the XML output.\n");
  fprintf(stderr, "\n");
  fprintf(
      stderr,
      "\t-a\tTime in milliseconds between keyframes if there is only audio.\n");
  fprintf(stderr,
          "\t\tThis option will be ignored if there is a video stream. No\n");
  fprintf(stderr, "\t\tkeyframes will be added if this option is omitted.\n");
  fprintf(stderr, "\n");
  fprintf(stderr,
          "\t-w\tReplace the input file with the output file. -i and -o are\n");
  fprintf(stderr,
          "\t\trequired to be different files otherwise this option will be\n");
  fprintf(stderr, "\t\tignored.\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "\t-h\tThis description.\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "COPYRIGHT\n");
  fprintf(stderr, "\t(c) 2007+ Ingo Oppermann\n");
  fprintf(stderr, "\n");
  return;
}


x86 assembly (clang, -O0):
<printUsage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2eb0(%rip),%rax
mov    (%rax),%edi
lea    0xecd(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%edi
lea    0xee9(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e86(%rip),%rax
mov    (%rax),%edi
lea    0x1423(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e71(%rip),%rax
mov    (%rax),%edi
lea    0xece(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e5c(%rip),%rax
mov    (%rax),%edi
lea    0xec3(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e47(%rip),%rax
mov    (%rax),%edi
lea    0xef1(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e32(%rip),%rax
mov    (%rax),%edi
lea    0x13cf(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e1d(%rip),%rax
mov    (%rax),%edi
lea    0xf0c(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e08(%rip),%rax
mov    (%rax),%edi
lea    0xf04(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2df3(%rip),%rax
mov    (%rax),%edi
lea    0x1390(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2dde(%rip),%rax
mov    (%rax),%edi
lea    0xf08(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2dc9(%rip),%rax
mov    (%rax),%edi
lea    0x1366(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2db4(%rip),%rax
mov    (%rax),%edi
lea    0xee9(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d9f(%rip),%rax
mov    (%rax),%edi
lea    0xf10(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d8a(%rip),%rax
mov    (%rax),%edi
lea    0xf39(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d75(%rip),%rax
mov    (%rax),%edi
lea    0x1312(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d60(%rip),%rax
mov    (%rax),%edi
lea    0xf24(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d4b(%rip),%rax
mov    (%rax),%edi
lea    0xf4a(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d36(%rip),%rax
mov    (%rax),%edi
lea    0x12d3(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d21(%rip),%rax
mov    (%rax),%edi
lea    0xf55(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d0c(%rip),%rax
mov    (%rax),%edi
lea    0xf81(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2cf7(%rip),%rax
mov    (%rax),%edi
lea    0x1294(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ce2(%rip),%rax
mov    (%rax),%edi
lea    0xf93(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ccd(%rip),%rax
mov    (%rax),%edi
lea    0xfbb(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2cb8(%rip),%rax
mov    (%rax),%edi
lea    0x1255(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ca3(%rip),%rax
mov    (%rax),%edi
lea    0xfb3(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c8e(%rip),%rax
mov    (%rax),%edi
lea    0x122b(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c79(%rip),%rax
mov    (%rax),%edi
lea    0xfc2(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c64(%rip),%rax
mov    (%rax),%edi
lea    0xfd2(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c4f(%rip),%rax
mov    (%rax),%edi
lea    0xffc(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c3a(%rip),%rax
mov    (%rax),%edi
lea    0x11d7(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c25(%rip),%rax
mov    (%rax),%edi
lea    0xfde(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c10(%rip),%rax
mov    (%rax),%edi
lea    0x11ad(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2bfb(%rip),%rax
mov    (%rax),%edi
lea    0xfd7(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2be6(%rip),%rax
mov    (%rax),%edi
lea    0x1003(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2bd1(%rip),%rax
mov    (%rax),%edi
lea    0x116e(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2bbc(%rip),%rax
mov    (%rax),%edi
lea    0xfe8(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ba7(%rip),%rax
mov    (%rax),%edi
lea    0x1144(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2b92(%rip),%rax
mov    (%rax),%edi
lea    0xfed(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2b7d(%rip),%rax
mov    (%rax),%edi
lea    0x101c(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2b68(%rip),%rax
mov    (%rax),%edi
lea    0x1045(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2b53(%rip),%rax
mov    (%rax),%edi
lea    0x10f0(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2b3e(%rip),%rax
mov    (%rax),%edi
lea    0x1051(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2b29(%rip),%rax
mov    (%rax),%edi
lea    0x107c(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2b14(%rip),%rax
mov    (%rax),%edi
lea    0x10a7(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2aff(%rip),%rax
mov    (%rax),%edi
lea    0x109c(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2aea(%rip),%rax
mov    (%rax),%edi
lea    0x1089(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ad5(%rip),%rax
mov    (%rax),%edi
lea    0x1072(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ac0(%rip),%rax
mov    (%rax),%edi
lea    0x1076(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2aab(%rip),%rax
mov    (%rax),%edi
lea    0x106c(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2a96(%rip),%rax
mov    (%rax),%edi
lea    0x1033(%rip),%rsi
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printUsage>:
push   %r14
push   %rbx
push   %rax
mov    0x2ec5(%rip),%rbx
mov    (%rbx),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xed4(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xef7(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1438(%rip),%r14
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xee7(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xee3(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf18(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf45(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf44(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf5a(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf4d(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf7b(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfab(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfa8(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfd5(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xff2(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1025(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1049(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1078(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1082(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10a3(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10ba(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10eb(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10df(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10ea(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x111d(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1114(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x112b(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1161(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1191(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x11af(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x11e1(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1213(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1207(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1206(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1203(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [6 x i8] c"NAME\0A\00"
@.str.1 = [49 x i8] c"\09yamdi -- Yet Another Metadata Injector for FLV\0A\00"
@.str.2 = [15 x i8] c"\09Version: 1.9\0A\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [10 x i8] c"SYNOPSIS\0A\00"
@.str.5 = [67 x i8] c"\09yamdi -i input file [-x xml file | -o output file [-x xml file]]\0A\00"
@.str.6 = [69 x i8] c"\09 [-t temporary file] [-c creator] [-a interval] [-skMXw] [-h]\0A\00"
@.str.7 = [13 x i8] c"DESCRIPTION\0A\00"
@.str.8 = [46 x i8] c"\09yamdi is a metadata injector for FLV files.\0A\00"
@.str.9 = [11 x i8] c"\09Options:\0A\00"
@.str.10 = [60 x i8] c"\09-i\09The source FLV file. If the file name is '-' the input\0A\00"
@.str.11 = [62 x i8] c"\09\09file will be read from stdin. Use the -t option to specify\0A\00"
@.str.12 = [21 x i8] c"\09\09a temporary file.\0A\00"
@.str.13 = [59 x i8] c"\09-o\09The resulting FLV file with the metatags. If the file\0A\00"
@.str.14 = [53 x i8] c"\09\09name is '-' the output will be written to stdout.\0A\00"
@.str.15 = [65 x i8] c"\09-x\09An XML file with the resulting metadata information. If the\0A\00"
@.str.16 = [60 x i8] c"\09\09output file is ommited, only metadata will be generated.\0A\00"
@.str.17 = [61 x i8] c"\09-t\09A temporary file to store the source FLV file in if the\0A\00"
@.str.18 = [34 x i8] c"\09\09input file is read from stdin.\0A\00"
@.str.19 = [57 x i8] c"\09-c\09A string that will be written into the creator tag.\0A\00"
@.str.20 = [37 x i8] c"\09-s, -l\09Add the onLastSecond event.\0A\00"
@.str.21 = [63 x i8] c"\09\09The -l option is deprecated and will be removed in a future\0A\00"
@.str.22 = [12 x i8] c"\09\09version.\0A\00"
@.str.23 = [35 x i8] c"\09-k\09Add the onLastKeyframe event.\0A\00"
@.str.24 = [65 x i8] c"\09-M\09Strip all metadata from the FLV. The -s and -k options will\0A\00"
@.str.25 = [15 x i8] c"\09\09be ignored.\0A\00"
@.str.26 = [47 x i8] c"\09-X\09Omit the keyframes tag in the XML output.\0A\00"
@.str.27 = [68 x i8] c"\09-a\09Time in milliseconds between keyframes if there is only audio.\0A\00"
@.str.28 = [62 x i8] c"\09\09This option will be ignored if there is a video stream. No\0A\00"
@.str.29 = [54 x i8] c"\09\09keyframes will be added if this option is omitted.\0A\00"
@.str.30 = [64 x i8] c"\09-w\09Replace the input file with the output file. -i and -o are\0A\00"
@.str.31 = [64 x i8] c"\09\09required to be different files otherwise this option will be\0A\00"
@.str.32 = [12 x i8] c"\09\09ignored.\0A\00"
@.str.33 = [23 x i8] c"\09-h\09This description.\0A\00"
@.str.34 = [11 x i8] c"COPYRIGHT\0A\00"
@.str.35 = [27 x i8] c"\09(c) 2007+ Ingo Oppermann\0A\00"
define void @printUsage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.5, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.6, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.8, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.10, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.11, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0))
%33 = load i32, i32* @stderr
%34 = call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%35 = load i32, i32* @stderr
%36 = call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.13, i64 0, i64 0))
%37 = load i32, i32* @stderr
%38 = call i32 @fprintf(i32 %37, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.14, i64 0, i64 0))
%39 = load i32, i32* @stderr
%40 = call i32 @fprintf(i32 %39, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%41 = load i32, i32* @stderr
%42 = call i32 @fprintf(i32 %41, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.15, i64 0, i64 0))
%43 = load i32, i32* @stderr
%44 = call i32 @fprintf(i32 %43, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.16, i64 0, i64 0))
%45 = load i32, i32* @stderr
%46 = call i32 @fprintf(i32 %45, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%47 = load i32, i32* @stderr
%48 = call i32 @fprintf(i32 %47, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.17, i64 0, i64 0))
%49 = load i32, i32* @stderr
%50 = call i32 @fprintf(i32 %49, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.18, i64 0, i64 0))
%51 = load i32, i32* @stderr
%52 = call i32 @fprintf(i32 %51, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%53 = load i32, i32* @stderr
%54 = call i32 @fprintf(i32 %53, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.19, i64 0, i64 0))
%55 = load i32, i32* @stderr
%56 = call i32 @fprintf(i32 %55, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%57 = load i32, i32* @stderr
%58 = call i32 @fprintf(i32 %57, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.20, i64 0, i64 0))
%59 = load i32, i32* @stderr
%60 = call i32 @fprintf(i32 %59, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.21, i64 0, i64 0))
%61 = load i32, i32* @stderr
%62 = call i32 @fprintf(i32 %61, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.22, i64 0, i64 0))
%63 = load i32, i32* @stderr
%64 = call i32 @fprintf(i32 %63, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%65 = load i32, i32* @stderr
%66 = call i32 @fprintf(i32 %65, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.23, i64 0, i64 0))
%67 = load i32, i32* @stderr
%68 = call i32 @fprintf(i32 %67, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%69 = load i32, i32* @stderr
%70 = call i32 @fprintf(i32 %69, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.24, i64 0, i64 0))
%71 = load i32, i32* @stderr
%72 = call i32 @fprintf(i32 %71, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.25, i64 0, i64 0))
%73 = load i32, i32* @stderr
%74 = call i32 @fprintf(i32 %73, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%75 = load i32, i32* @stderr
%76 = call i32 @fprintf(i32 %75, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.26, i64 0, i64 0))
%77 = load i32, i32* @stderr
%78 = call i32 @fprintf(i32 %77, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%79 = load i32, i32* @stderr
%80 = call i32 @fprintf(i32 %79, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.27, i64 0, i64 0))
%81 = load i32, i32* @stderr
%82 = call i32 @fprintf(i32 %81, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.28, i64 0, i64 0))
%83 = load i32, i32* @stderr
%84 = call i32 @fprintf(i32 %83, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.29, i64 0, i64 0))
%85 = load i32, i32* @stderr
%86 = call i32 @fprintf(i32 %85, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%87 = load i32, i32* @stderr
%88 = call i32 @fprintf(i32 %87, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.30, i64 0, i64 0))
%89 = load i32, i32* @stderr
%90 = call i32 @fprintf(i32 %89, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.31, i64 0, i64 0))
%91 = load i32, i32* @stderr
%92 = call i32 @fprintf(i32 %91, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.32, i64 0, i64 0))
%93 = load i32, i32* @stderr
%94 = call i32 @fprintf(i32 %93, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%95 = load i32, i32* @stderr
%96 = call i32 @fprintf(i32 %95, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.33, i64 0, i64 0))
%97 = load i32, i32* @stderr
%98 = call i32 @fprintf(i32 %97, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%99 = load i32, i32* @stderr
%100 = call i32 @fprintf(i32 %99, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.34, i64 0, i64 0))
%101 = load i32, i32* @stderr
%102 = call i32 @fprintf(i32 %101, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.35, i64 0, i64 0))
%103 = load i32, i32* @stderr
%104 = call i32 @fprintf(i32 %103, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [6 x i8] c"NAME\0A\00"
@.str.1 = [49 x i8] c"\09yamdi -- Yet Another Metadata Injector for FLV\0A\00"
@.str.2 = [15 x i8] c"\09Version: 1.9\0A\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [10 x i8] c"SYNOPSIS\0A\00"
@.str.5 = [67 x i8] c"\09yamdi -i input file [-x xml file | -o output file [-x xml file]]\0A\00"
@.str.6 = [69 x i8] c"\09 [-t temporary file] [-c creator] [-a interval] [-skMXw] [-h]\0A\00"
@.str.7 = [13 x i8] c"DESCRIPTION\0A\00"
@.str.8 = [46 x i8] c"\09yamdi is a metadata injector for FLV files.\0A\00"
@.str.9 = [11 x i8] c"\09Options:\0A\00"
@.str.10 = [60 x i8] c"\09-i\09The source FLV file. If the file name is '-' the input\0A\00"
@.str.11 = [62 x i8] c"\09\09file will be read from stdin. Use the -t option to specify\0A\00"
@.str.12 = [21 x i8] c"\09\09a temporary file.\0A\00"
@.str.13 = [59 x i8] c"\09-o\09The resulting FLV file with the metatags. If the file\0A\00"
@.str.14 = [53 x i8] c"\09\09name is '-' the output will be written to stdout.\0A\00"
@.str.15 = [65 x i8] c"\09-x\09An XML file with the resulting metadata information. If the\0A\00"
@.str.16 = [60 x i8] c"\09\09output file is ommited, only metadata will be generated.\0A\00"
@.str.17 = [61 x i8] c"\09-t\09A temporary file to store the source FLV file in if the\0A\00"
@.str.18 = [34 x i8] c"\09\09input file is read from stdin.\0A\00"
@.str.19 = [57 x i8] c"\09-c\09A string that will be written into the creator tag.\0A\00"
@.str.20 = [37 x i8] c"\09-s, -l\09Add the onLastSecond event.\0A\00"
@.str.21 = [63 x i8] c"\09\09The -l option is deprecated and will be removed in a future\0A\00"
@.str.22 = [12 x i8] c"\09\09version.\0A\00"
@.str.23 = [35 x i8] c"\09-k\09Add the onLastKeyframe event.\0A\00"
@.str.24 = [65 x i8] c"\09-M\09Strip all metadata from the FLV. The -s and -k options will\0A\00"
@.str.25 = [15 x i8] c"\09\09be ignored.\0A\00"
@.str.26 = [47 x i8] c"\09-X\09Omit the keyframes tag in the XML output.\0A\00"
@.str.27 = [68 x i8] c"\09-a\09Time in milliseconds between keyframes if there is only audio.\0A\00"
@.str.28 = [62 x i8] c"\09\09This option will be ignored if there is a video stream. No\0A\00"
@.str.29 = [54 x i8] c"\09\09keyframes will be added if this option is omitted.\0A\00"
@.str.30 = [64 x i8] c"\09-w\09Replace the input file with the output file. -i and -o are\0A\00"
@.str.31 = [64 x i8] c"\09\09required to be different files otherwise this option will be\0A\00"
@.str.32 = [12 x i8] c"\09\09ignored.\0A\00"
@.str.33 = [23 x i8] c"\09-h\09This description.\0A\00"
@.str.34 = [11 x i8] c"COPYRIGHT\0A\00"
@.str.35 = [27 x i8] c"\09(c) 2007+ Ingo Oppermann\0A\00"
define void @printUsage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.5, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.6, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = tail call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = tail call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = tail call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.8, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = tail call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = tail call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = tail call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = tail call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.10, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = tail call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.11, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = tail call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0))
%33 = load i32, i32* @stderr
%34 = tail call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%35 = load i32, i32* @stderr
%36 = tail call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.13, i64 0, i64 0))
%37 = load i32, i32* @stderr
%38 = tail call i32 @fprintf(i32 %37, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.14, i64 0, i64 0))
%39 = load i32, i32* @stderr
%40 = tail call i32 @fprintf(i32 %39, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%41 = load i32, i32* @stderr
%42 = tail call i32 @fprintf(i32 %41, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.15, i64 0, i64 0))
%43 = load i32, i32* @stderr
%44 = tail call i32 @fprintf(i32 %43, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.16, i64 0, i64 0))
%45 = load i32, i32* @stderr
%46 = tail call i32 @fprintf(i32 %45, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%47 = load i32, i32* @stderr
%48 = tail call i32 @fprintf(i32 %47, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.17, i64 0, i64 0))
%49 = load i32, i32* @stderr
%50 = tail call i32 @fprintf(i32 %49, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.18, i64 0, i64 0))
%51 = load i32, i32* @stderr
%52 = tail call i32 @fprintf(i32 %51, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%53 = load i32, i32* @stderr
%54 = tail call i32 @fprintf(i32 %53, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.19, i64 0, i64 0))
%55 = load i32, i32* @stderr
%56 = tail call i32 @fprintf(i32 %55, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%57 = load i32, i32* @stderr
%58 = tail call i32 @fprintf(i32 %57, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.20, i64 0, i64 0))
%59 = load i32, i32* @stderr
%60 = tail call i32 @fprintf(i32 %59, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.21, i64 0, i64 0))
%61 = load i32, i32* @stderr
%62 = tail call i32 @fprintf(i32 %61, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.22, i64 0, i64 0))
%63 = load i32, i32* @stderr
%64 = tail call i32 @fprintf(i32 %63, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%65 = load i32, i32* @stderr
%66 = tail call i32 @fprintf(i32 %65, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.23, i64 0, i64 0))
%67 = load i32, i32* @stderr
%68 = tail call i32 @fprintf(i32 %67, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%69 = load i32, i32* @stderr
%70 = tail call i32 @fprintf(i32 %69, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.24, i64 0, i64 0))
%71 = load i32, i32* @stderr
%72 = tail call i32 @fprintf(i32 %71, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.25, i64 0, i64 0))
%73 = load i32, i32* @stderr
%74 = tail call i32 @fprintf(i32 %73, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%75 = load i32, i32* @stderr
%76 = tail call i32 @fprintf(i32 %75, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.26, i64 0, i64 0))
%77 = load i32, i32* @stderr
%78 = tail call i32 @fprintf(i32 %77, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%79 = load i32, i32* @stderr
%80 = tail call i32 @fprintf(i32 %79, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.27, i64 0, i64 0))
%81 = load i32, i32* @stderr
%82 = tail call i32 @fprintf(i32 %81, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.28, i64 0, i64 0))
%83 = load i32, i32* @stderr
%84 = tail call i32 @fprintf(i32 %83, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.29, i64 0, i64 0))
%85 = load i32, i32* @stderr
%86 = tail call i32 @fprintf(i32 %85, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%87 = load i32, i32* @stderr
%88 = tail call i32 @fprintf(i32 %87, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.30, i64 0, i64 0))
%89 = load i32, i32* @stderr
%90 = tail call i32 @fprintf(i32 %89, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.31, i64 0, i64 0))
%91 = load i32, i32* @stderr
%92 = tail call i32 @fprintf(i32 %91, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.32, i64 0, i64 0))
%93 = load i32, i32* @stderr
%94 = tail call i32 @fprintf(i32 %93, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%95 = load i32, i32* @stderr
%96 = tail call i32 @fprintf(i32 %95, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.33, i64 0, i64 0))
%97 = load i32, i32* @stderr
%98 = tail call i32 @fprintf(i32 %97, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%99 = load i32, i32* @stderr
%100 = tail call i32 @fprintf(i32 %99, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.34, i64 0, i64 0))
%101 = load i32, i32* @stderr
%102 = tail call i32 @fprintf(i32 %101, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.35, i64 0, i64 0))
%103 = load i32, i32* @stderr
%104 = tail call i32 @fprintf(i32 %103, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
ret void
}