#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*/ printf(char *);
void usage(int type) {
  printf(
      "\n"
      "Usage:\n"
      "\tqtif2kraw -i <.qtif> -o <.kraw> [operands ...]\n\n"
      "\tThe following operands are available\n\n"
      "\t-h\t\tDisplay full help information\n"
      "\t-i  <file>\tUse file containing QuickTime uncompressed raw image as\n"
      "\t\t\tthe panic dialog (8 bit only)\n"
      "\t-o  <file>\tWrite the output as a compressed kernel RAW image "
      "suitable\n"
      "\t\t\tfor loading into the kernel\n"
      "\t-c  <file>\tUse file containing 256 RGB values for 8-bit indexed \n"
      "\t\t\tlookups, overrides built-in appleClut8\n"
      "\t-fg <color>\tForeground color of font used for panic information in\n"
      "\t\t\t24-bits, default 0xFFFFFF (100%% white)\n"
      "\t-bg <color>\tBackground color of font used for panic information in\n"
      "\t\t\t24-bits, default 0x222222 (13%% white, dark gray)\n"
      "\t-n  <lines>\tNumber of lines that have been reserved to display the\n"
      "\t\t\tpanic information, must be at least 20\n"
      "\n\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xede(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
lea    0xee9(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [787 x i8] c"\0AUsage:\0A\09qtif2kraw -i <.qtif> -o <.kraw> [operands ...]\0A\0A\09The following operands are available\0A\0A\09-h\09\09Display full help information\0A\09-i <file>\09Use file containing QuickTime uncompressed raw image as\0A\09\09\09the panic dialog (8 bit only)\0A\09-o <file>\09Write the output as a compressed kernel RAW image suitable\0A\09\09\09for loading into the kernel\0A\09-c <file>\09Use file containing 256 RGB values for 8-bit indexed \0A\09\09\09lookups, overrides built-in appleClut8\0A\09-fg <color>\09Foreground color of font used for panic information in\0A\09\09\0924-bits, default 0xFFFFFF (100%% white)\0A\09-bg <color>\09Background color of font used for panic information in\0A\09\09\0924-bits, default 0x222222 (13%% white, dark gray)\0A\09-n <lines>\09Number of lines that have been reserved to display the\0A\09\09\09panic information, must be at least 20\0A\0A\0A\00"
define void @usage(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @printf(i8* getelementptr inbounds ([787 x i8], [787 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [787 x i8] c"\0AUsage:\0A\09qtif2kraw -i <.qtif> -o <.kraw> [operands ...]\0A\0A\09The following operands are available\0A\0A\09-h\09\09Display full help information\0A\09-i <file>\09Use file containing QuickTime uncompressed raw image as\0A\09\09\09the panic dialog (8 bit only)\0A\09-o <file>\09Write the output as a compressed kernel RAW image suitable\0A\09\09\09for loading into the kernel\0A\09-c <file>\09Use file containing 256 RGB values for 8-bit indexed \0A\09\09\09lookups, overrides built-in appleClut8\0A\09-fg <color>\09Foreground color of font used for panic information in\0A\09\09\0924-bits, default 0xFFFFFF (100%% white)\0A\09-bg <color>\09Background color of font used for panic information in\0A\09\09\0924-bits, default 0x222222 (13%% white, dark gray)\0A\09-n <lines>\09Number of lines that have been reserved to display the\0A\09\09\09panic information, must be at least 20\0A\0A\0A\00"
define void @usage(i32 %0) {
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([787 x i8], [787 x i8]* @.str, i64 0, i64 0))
ret void
}