#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 *);
int /*<<< orphan*/ stderr;
void usage() {
  fprintf(stderr, "Usage: -w=<width> -h=<height> [-split] [-rgb] [-skipy] "
                  "<infile> <outbasename>\n");
  fprintf(stderr,
          "infile: dump of live viewport data, assumed UYVYYY with 8 bit "
          "elements.\n"
          "outbasename: base name to use for various output files\n"
          "-w=,-h=\n"
          "  real width and height of input. Width is by counting Y values.\n"
          "-rgb:\n"
          "  Output packed 24 bit RGB outbasename-<output width>.RGB\n"
          "-skipy:\n"
          "  skip 50%% of Y values in each row when making RGB\n"
          "  to give correct aspect ratio on older cameras\n"
          "-split:\n"
          "  produces outbasename.Y outbasename.U and outbasename.V as 8 bit "
          "greyscale\n"
          "  .Y will be full resolution, .U and .V will be 1/4 width of Y\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ea0(%rip),%rax
mov    (%rax),%edi
lea    0xf06(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    0x2eb8(%rip),%rbx
mov    (%rbx),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf10(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [79 x i8] c"Usage: -w=<width> -h=<height> [-split] [-rgb] [-skipy] <infile> <outbasename>\0A\00"
@.str.1 = [520 x i8] c"infile: dump of live viewport data, assumed UYVYYY with 8 bit elements.\0Aoutbasename: base name to use for various output files\0A-w=,-h=\0A real width and height of input. Width is by counting Y values.\0A-rgb:\0A Output packed 24 bit RGB outbasename-<output width>.RGB\0A-skipy:\0A skip 50%% of Y values in each row when making RGB\0A to give correct aspect ratio on older cameras\0A-split:\0A produces outbasename.Y outbasename.U and outbasename.V as 8 bit greyscale\0A .Y will be full resolution, .U and .V will be 1/4 width of Y\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([520 x i8], [520 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [79 x i8] c"Usage: -w=<width> -h=<height> [-split] [-rgb] [-skipy] <infile> <outbasename>\0A\00"
@.str.1 = [520 x i8] c"infile: dump of live viewport data, assumed UYVYYY with 8 bit elements.\0Aoutbasename: base name to use for various output files\0A-w=,-h=\0A real width and height of input. Width is by counting Y values.\0A-rgb:\0A Output packed 24 bit RGB outbasename-<output width>.RGB\0A-skipy:\0A skip 50%% of Y values in each row when making RGB\0A to give correct aspect ratio on older cameras\0A-split:\0A produces outbasename.Y outbasename.U and outbasename.V as 8 bit greyscale\0A .Y will be full resolution, .U and .V will be 1/4 width of Y\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([520 x i8], [520 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @exit(i32 1)
unreachable
}