#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_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char const *);
int /*<<< orphan*/ puts(char const *);
void usage(const char in_EXEC[], const char in_FALLACY[]) {
  puts(in_FALLACY);
  printf("\nUsage:\n"
         "%s -cd <mode> -0123456789h? -f <input_image> [-o <output_image>]\n"
         "\n"
         "the following options are available:\n"
         "-c <mode>\n"
         "       Compress the input image and store the compressed result in "
         "output image.\n"
         "       This option is mutual exclusive with -d.\n"
         "\n"
         "-d <mode>\n"
         "       Decompress a previously compressed input image and store the "
         "uncompressed result in output image.\n"
         "       This option is mutual exclusive with -c.\n"
         "\n"
         "-0, -1, -2, -3, -4, -5, -6, -7, -8, -9\n"
         "       When compressing an image these options tell the compressor "
         "how exhaustive the search for the best image quality should be.\n"
         "       -0 is the fastest possible compression and -9 provides at "
         "least the same quality as a brute force search.\n"
         "\n"
         "-h, -?\n"
         "       Prints this help.\n"
         "\n"
         "-f <input_image>\n"
         "       The image to be processed.\n"
         "\n"
         "-o <output_image>\n"
         "       Path where the output image will be stored. If not specified "
         "the output will be stored in /dev/null.\n"
         "\n"
         "List of valid values for <mode>:\n"
         "\n"
         "   ETC1\n"
         "   ETC2RGB\n"
         "   ETC2RGBA\n"
         "   ETC2RGBAPUNCH\n"
         "   DXT1RGB\n"
         "   DXT1RGBA\n"
         "   DXT3\n"
         "   DXT5\n"
         "   PVR2BPP\n"
         "   PVR4BPP\n"
         "   \n"
         "List of    supported file formats:\n"
         "   \n"
         "   KTX\n"
         "   PNG\n"
         "\n",
         in_EXEC);
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <puts@plt>
mov    -0x8(%rbp),%rsi
lea    0xeac(%rip),%rdi
call   1040 <printf@plt>
mov    0x2e80(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %rdi,%rbx
mov    %rsi,%rdi
call   1030 <puts@plt>
lea    0xebd(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
mov    0x2e8e(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [1113 x i8] c"\0AUsage:\0A%s -cd <mode> -0123456789h? -f <input_image> [-o <output_image>]\0A\0Athe following options are available:\0A-c <mode>\0A Compress the input image and store the compressed result in output image.\0A This option is mutual exclusive with -d.\0A\0A-d <mode>\0A Decompress a previously compressed input image and store the uncompressed result in output image.\0A This option is mutual exclusive with -c.\0A\0A-0, -1, -2, -3, -4, -5, -6, -7, -8, -9\0A When compressing an image these options tell the compressor how exhaustive the search for the best image quality should be.\0A -0 is the fastest possible compression and -9 provides at least the same quality as a brute force search.\0A\0A-h, -?\0A Prints this help.\0A\0A-f <input_image>\0A The image to be processed.\0A\0A-o <output_image>\0A Path where the output image will be stored. If not specified the output will be stored in /dev/null.\0A\0AList of valid values for <mode>:\0A\0A ETC1\0A ETC2RGB\0A ETC2RGBA\0A ETC2RGBAPUNCH\0A DXT1RGB\0A DXT1RGBA\0A DXT3\0A DXT5\0A PVR2BPP\0A PVR4BPP\0A \0AList of supported file formats:\0A \0A KTX\0A PNG\0A\0A\00"
@EXIT_FAILURE = global i32 0
define void @usage(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %4
%6 = call i32 @puts(i8* %5)
%7 = load i8*, i8** %3
%8 = call i32 @printf(i8* getelementptr inbounds ([1113 x i8], [1113 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = load i32, i32* @EXIT_FAILURE
%10 = call i32 @exit(i32 %9)
unreachable
}

LLVM IR (-O2):
@.str = [1113 x i8] c"\0AUsage:\0A%s -cd <mode> -0123456789h? -f <input_image> [-o <output_image>]\0A\0Athe following options are available:\0A-c <mode>\0A Compress the input image and store the compressed result in output image.\0A This option is mutual exclusive with -d.\0A\0A-d <mode>\0A Decompress a previously compressed input image and store the uncompressed result in output image.\0A This option is mutual exclusive with -c.\0A\0A-0, -1, -2, -3, -4, -5, -6, -7, -8, -9\0A When compressing an image these options tell the compressor how exhaustive the search for the best image quality should be.\0A -0 is the fastest possible compression and -9 provides at least the same quality as a brute force search.\0A\0A-h, -?\0A Prints this help.\0A\0A-f <input_image>\0A The image to be processed.\0A\0A-o <output_image>\0A Path where the output image will be stored. If not specified the output will be stored in /dev/null.\0A\0AList of valid values for <mode>:\0A\0A ETC1\0A ETC2RGB\0A ETC2RGBA\0A ETC2RGBAPUNCH\0A DXT1RGB\0A DXT1RGBA\0A DXT3\0A DXT5\0A PVR2BPP\0A PVR4BPP\0A \0AList of supported file formats:\0A \0A KTX\0A PNG\0A\0A\00"
@EXIT_FAILURE = global i32 0
define void @usage(i8* %0, i8* nocapture %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) %1)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([1113 x i8], [1113 x i8]* @.str, i64 0, i64 0), i8* %0)
%5 = load i32, i32* @EXIT_FAILURE
%6 = tail call i32 @exit(i32 %5)
unreachable
}