#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*/ printf(char *, ...);
void usage(char *progname) {
  printf("usage: %s [options] <input files>\n\n", progname);
  printf("options:\n");
  printf("  --help,             -h            :  print help message\n");
  printf("\n");
  printf("  --audio_pid,        -a <integer>  :  audio PID for TS stream (also "
         "used for PS id, default 0xc0)\n");
  printf("  --ac3_id,           -c <integer>  :  ID of AC3 audio for demux "
         "(also used for PS id, i.e. 0x80)\n");
  printf("  --video_delay,      -d <integer>  :  video delay in ms\n");
  printf("  --audio_delay,      -e <integer>  :  audio delay in ms\n");
  printf("  --ignore_PTS,       -f            :  ignore all PTS information of "
         "original\n");
  printf("  --larger_buffer     -g <integer>  :  video buffer in MB\n");
  printf("  --input_stream,     -i <string>   :  set input stream type (string "
         "= TS(default), PS, AVI)\n");
  printf("  --allow_jump,       -j            :  allow jump in the PTS and try "
         "repair\n");
  printf("  --keep_PTS,         -k            :  keep and don't correct PTS "
         "information of original\n");
  printf("  --min_jump,         -l <integer>  :  don't try to fix jumps in PTS "
         "larger than <int> but treat them as a cut (default 100ms)\n");
  printf("  --of,               -o <filename> :  set output file\n");
  printf("  --fillzero          -p            :  fill audio frames with zeros "
         "(only MPEG AUDIO)\n");
  printf("  --max_overflow      -q <integer>  :  max_number of overflows "
         "allowed (default: 100, 0=no restriction)\n");
  printf("  --scan,             -s            :  scan for streams\n");
  printf("  --type,             -t <string>   :  set output type (string = "
         "MPEG2, DVD, HDTV)\n");
  printf("  --video_pid,        -v <integer>  :  video PID for TS stream (also "
         "used for PS id, default 0xe0)\n");
  printf(
      "  --vdr,              -x            :  handle AC3 for vdr input file\n");
  printf("  --analyze,          -y <integer>  :  analyze (0=video,1=audio, "
         "2=both)\n");
  printf(
      "  --demux,            -z            :  demux only (-o is basename)\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf50(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfa5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfd1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xffd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x103e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x106b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10bb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10fa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1147(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11b9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11e3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x122c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1287(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x12b2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x12f8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x134e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1386(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x13c2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    %rdi,%rsi
lea    0xeb5(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xecb(%rip),%rdi
call   1040 <puts@plt>
lea    0xec8(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xeec(%rip),%rdi
call   1040 <puts@plt>
lea    0xf43(%rip),%rdi
call   1040 <puts@plt>
lea    0xf99(%rip),%rdi
call   1040 <puts@plt>
lea    0xfc6(%rip),%rdi
call   1040 <puts@plt>
lea    0xff3(%rip),%rdi
call   1040 <puts@plt>
lea    0x1035(%rip),%rdi
call   1040 <puts@plt>
lea    0x1063(%rip),%rdi
call   1040 <puts@plt>
lea    0x10b4(%rip),%rdi
call   1040 <puts@plt>
lea    0x10f4(%rip),%rdi
call   1040 <puts@plt>
lea    0x1142(%rip),%rdi
call   1040 <puts@plt>
lea    0x11b5(%rip),%rdi
call   1040 <puts@plt>
lea    0x11e0(%rip),%rdi
call   1040 <puts@plt>
lea    0x122a(%rip),%rdi
call   1040 <puts@plt>
lea    0x1286(%rip),%rdi
call   1040 <puts@plt>
lea    0x12b2(%rip),%rdi
call   1040 <puts@plt>
lea    0x12f9(%rip),%rdi
call   1040 <puts@plt>
lea    0x1350(%rip),%rdi
call   1040 <puts@plt>
lea    0x1389(%rip),%rdi
call   1040 <puts@plt>
lea    0x13c6(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [36 x i8] c"usage: %s [options] <input files>\0A\0A\00"
@.str.1 = [10 x i8] c"options:\0A\00"
@.str.2 = [59 x i8] c" --help, -h : print help message\0A\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [100 x i8] c" --audio_pid, -a <integer> : audio PID for TS stream (also used for PS id, default 0xc0)\0A\00"
@.str.5 = [99 x i8] c" --ac3_id, -c <integer> : ID of AC3 audio for demux (also used for PS id, i.e. 0x80)\0A\00"
@.str.6 = [58 x i8] c" --video_delay, -d <integer> : video delay in ms\0A\00"
@.str.7 = [58 x i8] c" --audio_delay, -e <integer> : audio delay in ms\0A\00"
@.str.8 = [79 x i8] c" --ignore_PTS, -f : ignore all PTS information of original\0A\00"
@.str.9 = [59 x i8] c" --larger_buffer -g <integer> : video buffer in MB\0A\00"
@.str.10 = [94 x i8] c" --input_stream, -i <string> : set input stream type (string = TS(default), PS, AVI)\0A\00"
@.str.11 = [77 x i8] c" --allow_jump, -j : allow jump in the PTS and try repair\0A\00"
@.str.12 = [91 x i8] c" --keep_PTS, -k : keep and don't correct PTS information of original\0A\00"
@.str.13 = [128 x i8] c" --min_jump, -l <integer> : don't try to fix jumps in PTS larger than <int> but treat them as a cut (default 100ms)\0A\00"
@.str.14 = [56 x i8] c" --of, -o <filename> : set output file\0A\00"
@.str.15 = [87 x i8] c" --fillzero -p : fill audio frames with zeros (only MPEG AUDIO)\0A\00"
@.str.16 = [105 x i8] c" --max_overflow -q <integer> : max_number of overflows allowed (default: 100, 0=no restriction)\0A\00"
@.str.17 = [57 x i8] c" --scan, -s : scan for streams\0A\00"
@.str.18 = [84 x i8] c" --type, -t <string> : set output type (string = MPEG2, DVD, HDTV)\0A\00"
@.str.19 = [100 x i8] c" --video_pid, -v <integer> : video PID for TS stream (also used for PS id, default 0xe0)\0A\00"
@.str.20 = [70 x i8] c" --vdr, -x : handle AC3 for vdr input file\0A\00"
@.str.21 = [74 x i8] c" --analyze, -y <integer> : analyze (0=video,1=audio, 2=both)\0A\00"
@.str.22 = [68 x i8] c" --demux, -z : demux only (-o is basename)\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([100 x i8], [100 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([99 x i8], [99 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.9, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.10, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.11, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.12, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str.13, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.14, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.15, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([105 x i8], [105 x i8]* @.str.16, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.17, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.18, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([100 x i8], [100 x i8]* @.str.19, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.20, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.21, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.22, i64 0, i64 0))
%27 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [36 x i8] c"usage: %s [options] <input files>\0A\0A\00"
@str = [9 x i8] c"options:\00"
@str.23 = [58 x i8] c" --help, -h : print help message\00"
@str.24 = [99 x i8] c" --audio_pid, -a <integer> : audio PID for TS stream (also used for PS id, default 0xc0)\00"
@str.25 = [98 x i8] c" --ac3_id, -c <integer> : ID of AC3 audio for demux (also used for PS id, i.e. 0x80)\00"
@str.26 = [57 x i8] c" --video_delay, -d <integer> : video delay in ms\00"
@str.27 = [57 x i8] c" --audio_delay, -e <integer> : audio delay in ms\00"
@str.28 = [78 x i8] c" --ignore_PTS, -f : ignore all PTS information of original\00"
@str.29 = [58 x i8] c" --larger_buffer -g <integer> : video buffer in MB\00"
@str.30 = [93 x i8] c" --input_stream, -i <string> : set input stream type (string = TS(default), PS, AVI)\00"
@str.31 = [76 x i8] c" --allow_jump, -j : allow jump in the PTS and try repair\00"
@str.32 = [90 x i8] c" --keep_PTS, -k : keep and don't correct PTS information of original\00"
@str.33 = [127 x i8] c" --min_jump, -l <integer> : don't try to fix jumps in PTS larger than <int> but treat them as a cut (default 100ms)\00"
@str.34 = [55 x i8] c" --of, -o <filename> : set output file\00"
@str.35 = [86 x i8] c" --fillzero -p : fill audio frames with zeros (only MPEG AUDIO)\00"
@str.36 = [104 x i8] c" --max_overflow -q <integer> : max_number of overflows allowed (default: 100, 0=no restriction)\00"
@str.37 = [56 x i8] c" --scan, -s : scan for streams\00"
@str.38 = [83 x i8] c" --type, -t <string> : set output type (string = MPEG2, DVD, HDTV)\00"
@str.39 = [99 x i8] c" --video_pid, -v <integer> : video PID for TS stream (also used for PS id, default 0xe0)\00"
@str.40 = [69 x i8] c" --vdr, -x : handle AC3 for vdr input file\00"
@str.41 = [73 x i8] c" --analyze, -y <integer> : analyze (0=video,1=audio, 2=both)\00"
@str.42 = [67 x i8] c" --demux, -z : demux only (-o is basename)\00"
define void @usage(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.23, i64 0, i64 0))
%5 = tail call i32 @putchar(i32 10)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([99 x i8], [99 x i8]* @str.24, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([98 x i8], [98 x i8]* @str.25, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.26, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.27, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.28, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.29, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @str.30, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.31, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([90 x i8], [90 x i8]* @str.32, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([127 x i8], [127 x i8]* @str.33, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.34, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @str.35, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([104 x i8], [104 x i8]* @str.36, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.37, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([83 x i8], [83 x i8]* @str.38, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([99 x i8], [99 x i8]* @str.39, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.40, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.41, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.42, i64 0, i64 0))
%25 = tail call i32 @exit(i32 1)
unreachable
}