#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 usage() {
  fprintf(stderr,
          "\nUsage: fdspatch [options] file\n\n"
          "By default will attempt to load and parse the header of a Famicom\n"
          "Disk System image file (.FDS format). In convert mode will\n"
          "prepend the FDSLoadr header to an image if it is missing it.\n"
          "Images that already have such a header will not be changed.\n\n"
          "Options:\n"
          "  -p  Display information about the FDS file. This is the\n"
          "      default action.\n"
          "  -c  Convert (patch) the FDS file if required, by adding the\n"
          "      FDSLoader header. Files that already have this header, or\n"
          "      that are considered invalid, will be left unchanged.\n"
          "  -v  Display version information.\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
lea    0xee0(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [590 x i8] c"\0AUsage: fdspatch [options] file\0A\0ABy default will attempt to load and parse the header of a Famicom\0ADisk System image file (.FDS format). In convert mode will\0Aprepend the FDSLoadr header to an image if it is missing it.\0AImages that already have such a header will not be changed.\0A\0AOptions:\0A -p Display information about the FDS file. This is the\0A default action.\0A -c Convert (patch) the FDS file if required, by adding the\0A FDSLoader header. Files that already have this header, or\0A that are considered invalid, will be left unchanged.\0A -v Display version information.\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([590 x i8], [590 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [590 x i8] c"\0AUsage: fdspatch [options] file\0A\0ABy default will attempt to load and parse the header of a Famicom\0ADisk System image file (.FDS format). In convert mode will\0Aprepend the FDSLoadr header to an image if it is missing it.\0AImages that already have such a header will not be changed.\0A\0AOptions:\0A -p Display information about the FDS file. This is the\0A default action.\0A -c Convert (patch) the FDS file if required, by adding the\0A FDSLoader header. Files that already have this header, or\0A that are considered invalid, will be left unchanged.\0A -v Display version information.\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([590 x i8], [590 x i8]* @.str, i64 0, i64 0))
ret void
}