#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(void) {
  printf("\nusage: setupdialog -i <image file> -oi <image output> -n <numbers "
         "file> -on <numbers output>\n");
  printf("\nYou can supply a panic image file, a numbers file, or both. Input "
         "files\n");
  printf("must be in RAW format where each pixel is represented by an index "
         "into the\n");
  printf("MacOS X system CLUT. The first %d bytes must be the width, height, "
         "and depth\n",
         3 * sizeof(short));
  printf("(in that order, %d bytes each).\n", sizeof(short));
  printf("\nThe output files are generated C structures in the format the "
         "panic ui code\n");
  printf("expects (default output files are panic_image.c and "
         "rendered_numbers.c).\n\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf36(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf72(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb0(%rip),%rdi
mov    $0x6,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfeb(%rip),%rdi
mov    $0x2,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xff9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1039(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xf47(%rip),%rdi
call   1030 <puts@plt>
lea    0xf99(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd6(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb4(%rip),%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeef(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfef(%rip),%rdi
call   1030 <puts@plt>
lea    0x1030(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [95 x i8] c"\0Ausage: setupdialog -i <image file> -oi <image output> -n <numbers file> -on <numbers output>\0A\00"
@.str.1 = [74 x i8] c"\0AYou can supply a panic image file, a numbers file, or both. Input files\0A\00"
@.str.2 = [76 x i8] c"must be in RAW format where each pixel is represented by an index into the\0A\00"
@.str.3 = [78 x i8] c"MacOS X system CLUT. The first %d bytes must be the width, height, and depth\0A\00"
@.str.4 = [33 x i8] c"(in that order, %d bytes each).\0A\00"
@.str.5 = [78 x i8] c"\0AThe output files are generated C structures in the format the panic ui code\0A\00"
@.str.6 = [75 x i8] c"expects (default output files are panic_image.c and rendered_numbers.c).\0A\0A\00"
define void @usage() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.3, i64 0, i64 0), i64 6)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i64 2)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.6, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.3 = [78 x i8] c"MacOS X system CLUT. The first %d bytes must be the width, height, and depth\0A\00"
@.str.4 = [33 x i8] c"(in that order, %d bytes each).\0A\00"
@str = [94 x i8] c"\0Ausage: setupdialog -i <image file> -oi <image output> -n <numbers file> -on <numbers output>\00"
@str.7 = [73 x i8] c"\0AYou can supply a panic image file, a numbers file, or both. Input files\00"
@str.8 = [75 x i8] c"must be in RAW format where each pixel is represented by an index into the\00"
@str.9 = [77 x i8] c"\0AThe output files are generated C structures in the format the panic ui code\00"
@str.10 = [74 x i8] c"expects (default output files are panic_image.c and rendered_numbers.c).\0A\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([94 x i8], [94 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.7, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.8, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @.str.3, i64 0, i64 0), i64 6)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i64 2)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.9, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.10, i64 0, i64 0))
ret void
}