#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*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage(void) {
  fprintf(
      stderr,
      "Usage: readmobi {-v | -adDeEm | -r id | -t file.mhtml} [file.mobi]\n");
  fprintf(stderr, "\t-a\t\t\tprint all headers/records\n");
  fprintf(stderr, "\t-d\t\t\tprint PDB headers\n");
  fprintf(stderr, "\t-D\t\t\tprint PDB records\n");
  fprintf(stderr, "\t-e\t\t\tprint EXTH header\n");
  fprintf(stderr, "\t-E\t\t\tprint EXTH records\n");
  fprintf(stderr, "\t-m\t\t\tprint MOBI headers\n");
  fprintf(stderr, "\t-r record_id\t\tDump PDB record\n");
  fprintf(stderr, "\t-t out_file\t\tDump text to file (\"-\" for stdout)\n");
  fprintf(stderr, "\t-v\t\t\tprint version and exit\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2eb0(%rip),%rax
mov    (%rax),%edi
lea    0xf0b(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%edi
lea    0xf17(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e86(%rip),%rax
mov    (%rax),%edi
lea    0xf1b(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e71(%rip),%rax
mov    (%rax),%edi
lea    0xf1f(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e5c(%rip),%rax
mov    (%rax),%edi
lea    0xf23(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e47(%rip),%rax
mov    (%rax),%edi
lea    0xf28(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e32(%rip),%rax
mov    (%rax),%edi
lea    0xf2d(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e1d(%rip),%rax
mov    (%rax),%edi
lea    0xf38(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e08(%rip),%rax
mov    (%rax),%edi
lea    0xf55(%rip),%rsi
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    0x2ec8(%rip),%rbx
mov    (%rbx),%edi
lea    0xedf(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf15(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf28(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf33(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf3e(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf49(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf55(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf61(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf73(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf97(%rip),%rsi
pop    %rbx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [68 x i8] c"Usage: readmobi {-v | -adDeEm | -r id | -t file.mhtml} [file.mobi]\0A\00"
@.str.1 = [33 x i8] c"\09-a\09\09\09print all headers/records\0A\00"
@.str.2 = [25 x i8] c"\09-d\09\09\09print PDB headers\0A\00"
@.str.3 = [25 x i8] c"\09-D\09\09\09print PDB records\0A\00"
@.str.4 = [25 x i8] c"\09-e\09\09\09print EXTH header\0A\00"
@.str.5 = [26 x i8] c"\09-E\09\09\09print EXTH records\0A\00"
@.str.6 = [26 x i8] c"\09-m\09\09\09print MOBI headers\0A\00"
@.str.7 = [32 x i8] c"\09-r record_id\09\09Dump PDB record\0A\00"
@.str.8 = [50 x i8] c"\09-t out_file\09\09Dump text to file (\22-\22 for stdout)\0A\00"
@.str.9 = [30 x i8] c"\09-v\09\09\09print version and exit\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.8, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [68 x i8] c"Usage: readmobi {-v | -adDeEm | -r id | -t file.mhtml} [file.mobi]\0A\00"
@.str.1 = [33 x i8] c"\09-a\09\09\09print all headers/records\0A\00"
@.str.2 = [25 x i8] c"\09-d\09\09\09print PDB headers\0A\00"
@.str.3 = [25 x i8] c"\09-D\09\09\09print PDB records\0A\00"
@.str.4 = [25 x i8] c"\09-e\09\09\09print EXTH header\0A\00"
@.str.5 = [26 x i8] c"\09-E\09\09\09print EXTH records\0A\00"
@.str.6 = [26 x i8] c"\09-m\09\09\09print MOBI headers\0A\00"
@.str.7 = [32 x i8] c"\09-r record_id\09\09Dump PDB record\0A\00"
@.str.8 = [50 x i8] c"\09-t out_file\09\09Dump text to file (\22-\22 for stdout)\0A\00"
@.str.9 = [30 x i8] c"\09-v\09\09\09print version and exit\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = tail call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = tail call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.8, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = tail call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0))
ret void
}