#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*/ printf(char *);
int /*<<< orphan*/ stderr;
void usage(int status) {
  if (status != 0)
    (void)fprintf(stderr, "Try yuvcutter -h for more info\n");
  else {
    (void)printf("Usage:\nyuvcutter [input.yuv] [OPTION(S)] [-C] "
                 "[-H HEIGHT] [-M YUV_MODE] [-N NB_FRAMES] "
                 "[-W WIDTH]\n\n"
                 "Common options:\n"
                 "\t-h\t\tShow this help and exit\n"
                 "\t-v\t\tActivate verbose mode\n"
                 "\t-V\t\tShow program version and exit\n\n"
                 "Specific options:\n"
                 "\t-C\t\tCount the number of frames in the input file\n"
                 "\t-H HEIGHT\tSpecify video height\n"
                 "\t-M YUV_MODE\tSpecify YUV mode (420, 422 or 444)\n"
                 "\t-N NB_FRAMES\tSpecify the number of frames to cut\n"
                 "\t-W WIDTH\tSpecify video width\n\n"
                 "Read yuvcutter manual page for more details\n");
  }
  exit(status);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     115f <usage+0x2f>
mov    0x2e94(%rip),%rax
mov    (%rax),%edi
lea    0xeab(%rip),%rsi
call   1040 <fprintf@plt>
jmp    116b <usage+0x3b>
lea    0xeba(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %edi,%ebx
test   %edi,%edi
jne    114a <usage+0x1a>
lea    0xee2(%rip),%rdi
call   1030 <puts@plt>
mov    %ebx,%edi
call   1050 <exit@plt>
mov    0x2e8f(%rip),%rax
mov    (%rax),%edi
lea    0xea6(%rip),%rsi
call   1040 <fprintf@plt>
mov    %ebx,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [32 x i8] c"Try yuvcutter -h for more info\0A\00"
@.str.1 = [481 x i8] c"Usage:\0Ayuvcutter [input.yuv] [OPTION(S)] [-C] [-H HEIGHT] [-M YUV_MODE] [-N NB_FRAMES] [-W WIDTH]\0A\0ACommon options:\0A\09-h\09\09Show this help and exit\0A\09-v\09\09Activate verbose mode\0A\09-V\09\09Show program version and exit\0A\0ASpecific options:\0A\09-C\09\09Count the number of frames in the input file\0A\09-H HEIGHT\09Specify video height\0A\09-M YUV_MODE\09Specify YUV mode (420, 422 or 444)\0A\09-N NB_FRAMES\09Specify the number of frames to cut\0A\09-W WIDTH\09Specify video width\0A\0ARead yuvcutter manual page for more details\0A\00"
define void @usage(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp ne i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* @stderr
%7 = call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
br label %10
8: ; preds = %1
%9 = call i32 @printf(i8* getelementptr inbounds ([481 x i8], [481 x i8]* @.str.1, i64 0, i64 0))
br label %10
10: ; preds = %8, %5
%11 = load i32, i32* %2
%12 = call i32 @exit(i32 %11)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [32 x i8] c"Try yuvcutter -h for more info\0A\00"
@str = [480 x i8] c"Usage:\0Ayuvcutter [input.yuv] [OPTION(S)] [-C] [-H HEIGHT] [-M YUV_MODE] [-N NB_FRAMES] [-W WIDTH]\0A\0ACommon options:\0A\09-h\09\09Show this help and exit\0A\09-v\09\09Activate verbose mode\0A\09-V\09\09Show program version and exit\0A\0ASpecific options:\0A\09-C\09\09Count the number of frames in the input file\0A\09-H HEIGHT\09Specify video height\0A\09-M YUV_MODE\09Specify YUV mode (420, 422 or 444)\0A\09-N NB_FRAMES\09Specify the number of frames to cut\0A\09-W WIDTH\09Specify video width\0A\0ARead yuvcutter manual page for more details\00"
define void @usage(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %6, label %3
3: ; preds = %1
%4 = load i32, i32* @stderr
%5 = tail call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
br label %8
6: ; preds = %1
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([480 x i8], [480 x i8]* @str, i64 0, i64 0))
br label %8
8: ; preds = %6, %3
%9 = tail call i32 @exit(i32 %0)
unreachable
}