#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 /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void help() {
  printf("Usage: xm2nes [OPTION...] FILE\n"
         "xm2nes converts Fasttracker ][ eXtended Module (XM) files to Kent's "
         "NES music format.\n\n"
         "Options:\n\n"
         "  --output=FILE                   Store output in FILE\n"
         "  --channels=CHANNELS             Process only CHANNELS (0,1,2,3,4)\n"
         "  --order-start=OFFSET            Start offset in pattern order "
         "table (0)\n"
         "  --order-end=OFFSET              End offset in pattern order table "
         "(song_length-1)\n"
         "  --instruments-map=FILE          Read instrument mapping "
         "information from FILE\n"
         "  --label-prefix=PREFIX           Use PREFIX as the prefix of 6502 "
         "assembly labels\n"
         "  --verbose                       Print progress information to "
         "standard output\n"
         "  --help                          Give this help list\n"
         "  --usage                         Give a short usage message\n"
         "  --version                       Print program version\n");
  exit(0);
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<help>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [824 x i8] c"Usage: xm2nes [OPTION...] FILE\0Axm2nes converts Fasttracker ][ eXtended Module (XM) files to Kent's NES music format.\0A\0AOptions:\0A\0A --output=FILE Store output in FILE\0A --channels=CHANNELS Process only CHANNELS (0,1,2,3,4)\0A --order-start=OFFSET Start offset in pattern order table (0)\0A --order-end=OFFSET End offset in pattern order table (song_length-1)\0A --instruments-map=FILE Read instrument mapping information from FILE\0A --label-prefix=PREFIX Use PREFIX as the prefix of 6502 assembly labels\0A --verbose Print progress information to standard output\0A --help Give this help list\0A --usage Give a short usage message\0A --version Print program version\0A\00"
define void @help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([824 x i8], [824 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [823 x i8] c"Usage: xm2nes [OPTION...] FILE\0Axm2nes converts Fasttracker ][ eXtended Module (XM) files to Kent's NES music format.\0A\0AOptions:\0A\0A --output=FILE Store output in FILE\0A --channels=CHANNELS Process only CHANNELS (0,1,2,3,4)\0A --order-start=OFFSET Start offset in pattern order table (0)\0A --order-end=OFFSET End offset in pattern order table (song_length-1)\0A --instruments-map=FILE Read instrument mapping information from FILE\0A --label-prefix=PREFIX Use PREFIX as the prefix of 6502 assembly labels\0A --verbose Print progress information to standard output\0A --help Give this help list\0A --usage Give a short usage message\0A --version Print program version\00"
define void @help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([823 x i8], [823 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @exit(i32 0)
unreachable
}