#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);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void Usage(char *prog) {
  fprintf(
      stderr,
      "Usage: %s {[-res filename] [-create creat] [-type type] [filename]}\n");
  fprintf(
      stderr,
      " -res filename\tProvides the name of a file whose data fork is to\n");
  fprintf(stderr, "\t\t\tplaced in a resource fork\n");
  fprintf(
      stderr,
      " -create creat\tProvides a four character creator (if omitted on the\n");
  fprintf(stderr, "\t\t\tmac this will be read from the datafile.\n");
  fprintf(stderr,
          " -type type\tProvides a four character type (if omitted on the\n");
  fprintf(stderr, "\t\t\tmac this will be read from the datafile.\n");
  fprintf(stderr,
          "Takes a list of filenames and perhaps a list of resource forks\n");
  fprintf(stderr, "and puts the result into a list of macbinary files.\n");
  fprintf(
      stderr,
      "On the mac, if no resource fork file is specified and the datafork\n");
  fprintf(
      stderr,
      "file contains a resource fork, then it will be used as the resource\n");
  fprintf(stderr, "fork.\n");
  fprintf(stderr,
          "If no data filename is specified then the resource file will be\n");
  fprintf(stderr, "placed in the macbinary file without a data fork.\n");
  fprintf(
      stderr,
      "The output filename will be the name of the data fork file with .bin\n");
  fprintf(stderr, "appended, or if there is no data fork file, then the "
                  "resource fork file\n");
  fprintf(stderr, "with .bin appended.\n");
  exit(1);
}


x86 assembly (clang, -O0):
<Usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
lea    0xec4(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e98(%rip),%rax
mov    (%rax),%edi
lea    0xef4(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e83(%rip),%rax
mov    (%rax),%edi
lea    0xf21(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e6e(%rip),%rax
mov    (%rax),%edi
lea    0xf2a(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e59(%rip),%rax
mov    (%rax),%edi
lea    0xf5a(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e44(%rip),%rax
mov    (%rax),%edi
lea    0xf72(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e2f(%rip),%rax
mov    (%rax),%edi
lea    0xf30(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e1a(%rip),%rax
mov    (%rax),%edi
lea    0xf87(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e05(%rip),%rax
mov    (%rax),%edi
lea    0xfb2(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2df0(%rip),%rax
mov    (%rax),%edi
lea    0xfd2(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ddb(%rip),%rax
mov    (%rax),%edi
lea    0x1001(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2dc6(%rip),%rax
mov    (%rax),%edi
lea    0x109e(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2db1(%rip),%rax
mov    (%rax),%edi
lea    0x101c(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d9c(%rip),%rax
mov    (%rax),%edi
lea    0x1048(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d87(%rip),%rax
mov    (%rax),%edi
lea    0x1066(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d72(%rip),%rax
mov    (%rax),%edi
lea    0x1097(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d5d(%rip),%rax
mov    (%rax),%edi
lea    0x10cb(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<Usage>:
push   %r14
push   %rbx
push   %rax
mov    0x2eb5(%rip),%rbx
mov    (%rbx),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf03(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf37(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf47(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf7e(%rip),%r14
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf9a(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfc1(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xff3(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x101a(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1050(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10f4(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1079(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10ac(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10d1(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1109(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1144(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [69 x i8] c"Usage: %s {[-res filename] [-create creat] [-type type] [filename]}\0A\00"
@.str.1 = [66 x i8] c" -res filename\09Provides the name of a file whose data fork is to\0A\00"
@.str.2 = [30 x i8] c"\09\09\09placed in a resource fork\0A\00"
@.str.3 = [69 x i8] c" -create creat\09Provides a four character creator (if omitted on the\0A\00"
@.str.4 = [45 x i8] c"\09\09\09mac this will be read from the datafile.\0A\00"
@.str.5 = [63 x i8] c" -type type\09Provides a four character type (if omitted on the\0A\00"
@.str.6 = [64 x i8] c"Takes a list of filenames and perhaps a list of resource forks\0A\00"
@.str.7 = [53 x i8] c"and puts the result into a list of macbinary files.\0A\00"
@.str.8 = [68 x i8] c"On the mac, if no resource fork file is specified and the datafork\0A\00"
@.str.9 = [69 x i8] c"file contains a resource fork, then it will be used as the resource\0A\00"
@.str.10 = [7 x i8] c"fork.\0A\00"
@.str.11 = [65 x i8] c"If no data filename is specified then the resource file will be\0A\00"
@.str.12 = [51 x i8] c"placed in the macbinary file without a data fork.\0A\00"
@.str.13 = [70 x i8] c"The output filename will be the name of the data fork file with .bin\0A\00"
@.str.14 = [73 x i8] c"appended, or if there is no data fork file, then the resource fork file\0A\00"
@.str.15 = [21 x i8] c"with .bin appended.\0A\00"
define void @Usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.1, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.3, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.6, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.7, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.8, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.9, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.11, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.12, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.13, i64 0, i64 0))
%33 = load i32, i32* @stderr
%34 = call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.14, i64 0, i64 0))
%35 = load i32, i32* @stderr
%36 = call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0))
%37 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [69 x i8] c"Usage: %s {[-res filename] [-create creat] [-type type] [filename]}\0A\00"
@.str.1 = [66 x i8] c" -res filename\09Provides the name of a file whose data fork is to\0A\00"
@.str.2 = [30 x i8] c"\09\09\09placed in a resource fork\0A\00"
@.str.3 = [69 x i8] c" -create creat\09Provides a four character creator (if omitted on the\0A\00"
@.str.4 = [45 x i8] c"\09\09\09mac this will be read from the datafile.\0A\00"
@.str.5 = [63 x i8] c" -type type\09Provides a four character type (if omitted on the\0A\00"
@.str.6 = [64 x i8] c"Takes a list of filenames and perhaps a list of resource forks\0A\00"
@.str.7 = [53 x i8] c"and puts the result into a list of macbinary files.\0A\00"
@.str.8 = [68 x i8] c"On the mac, if no resource fork file is specified and the datafork\0A\00"
@.str.9 = [69 x i8] c"file contains a resource fork, then it will be used as the resource\0A\00"
@.str.10 = [7 x i8] c"fork.\0A\00"
@.str.11 = [65 x i8] c"If no data filename is specified then the resource file will be\0A\00"
@.str.12 = [51 x i8] c"placed in the macbinary file without a data fork.\0A\00"
@.str.13 = [70 x i8] c"The output filename will be the name of the data fork file with .bin\0A\00"
@.str.14 = [73 x i8] c"appended, or if there is no data fork file, then the resource fork file\0A\00"
@.str.15 = [21 x i8] c"with .bin appended.\0A\00"
define void @Usage(i8* nocapture readnone %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* @stderr
%5 = tail call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.1, i64 0, i64 0))
%6 = load i32, i32* @stderr
%7 = tail call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
%8 = load i32, i32* @stderr
%9 = tail call i32 @fprintf(i32 %8, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.3, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = tail call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0))
%12 = load i32, i32* @stderr
%13 = tail call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0))
%14 = load i32, i32* @stderr
%15 = tail call i32 @fprintf(i32 %14, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0))
%16 = load i32, i32* @stderr
%17 = tail call i32 @fprintf(i32 %16, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.6, i64 0, i64 0))
%18 = load i32, i32* @stderr
%19 = tail call i32 @fprintf(i32 %18, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.7, i64 0, i64 0))
%20 = load i32, i32* @stderr
%21 = tail call i32 @fprintf(i32 %20, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.8, i64 0, i64 0))
%22 = load i32, i32* @stderr
%23 = tail call i32 @fprintf(i32 %22, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.9, i64 0, i64 0))
%24 = load i32, i32* @stderr
%25 = tail call i32 @fprintf(i32 %24, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
%26 = load i32, i32* @stderr
%27 = tail call i32 @fprintf(i32 %26, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.11, i64 0, i64 0))
%28 = load i32, i32* @stderr
%29 = tail call i32 @fprintf(i32 %28, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.12, i64 0, i64 0))
%30 = load i32, i32* @stderr
%31 = tail call i32 @fprintf(i32 %30, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.13, i64 0, i64 0))
%32 = load i32, i32* @stderr
%33 = tail call i32 @fprintf(i32 %32, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.14, i64 0, i64 0))
%34 = load i32, i32* @stderr
%35 = tail call i32 @fprintf(i32 %34, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0))
%36 = tail call i32 @exit(i32 1)
unreachable
}