#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: packchr [OPTION...] FILE\n"
         "packchr finds the unique tiles in a NES character (CHR) file.\n\n"
         "Options:\n\n"
         "  --nametable-base=NUM            Use NUM as nametable base tile "
         "index;\n"
         "                                  i.e. the first tile will be "
         "referenced\n"
         "                                  as NUM in the nametable, the "
         "second as\n"
         "                                  NUM+1, etc.; by default NUM is 0\n"
         "  --null-tile=NUM                 Use NUM as implicit null tile "
         "index; that is,\n"
         "                                  don't produce any character data "
         "for a 'blank' tile\n"
         "  --character-output=FILE         Store packed CHR in FILE\n"
         "  --character-size=SIZE           Pad to SIZE bytes if necessary\n"
         "  --nametable-output=FILE         Store nametable in FILE\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 = [990 x i8] c"Usage: packchr [OPTION...] FILE\0Apackchr finds the unique tiles in a NES character (CHR) file.\0A\0AOptions:\0A\0A --nametable-base=NUM Use NUM as nametable base tile index;\0A i.e. the first tile will be referenced\0A as NUM in the nametable, the second as\0A NUM+1, etc.; by default NUM is 0\0A --null-tile=NUM Use NUM as implicit null tile index; that is,\0A don't produce any character data for a 'blank' tile\0A --character-output=FILE Store packed CHR in FILE\0A --character-size=SIZE Pad to SIZE bytes if necessary\0A --nametable-output=FILE Store nametable in FILE\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 ([990 x i8], [990 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [989 x i8] c"Usage: packchr [OPTION...] FILE\0Apackchr finds the unique tiles in a NES character (CHR) file.\0A\0AOptions:\0A\0A --nametable-base=NUM Use NUM as nametable base tile index;\0A i.e. the first tile will be referenced\0A as NUM in the nametable, the second as\0A NUM+1, etc.; by default NUM is 0\0A --null-tile=NUM Use NUM as implicit null tile index; that is,\0A don't produce any character data for a 'blank' tile\0A --character-output=FILE Store packed CHR in FILE\0A --character-size=SIZE Pad to SIZE bytes if necessary\0A --nametable-output=FILE Store nametable in FILE\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 ([989 x i8], [989 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @exit(i32 0)
unreachable
}