#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*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
void usage() {
  fputs("Usage: hex2rds [-h | --help] [-n <rawSize>] [-i <input>] [-o "
        "<output>]\n",
        stderr);
  fputs("  hex2rds converts text files with hexadecimal (hash) codes to raw "
        "data set (rds) files\n",
        stderr);
  fputs("  every input line must have same even length! spaces are ignored.\n",
        stderr);
  fputs("  -h | --help   print usage\n", stderr);
  fputs("  -n <rawSize>  tell expected raw length in bytes, e.g. 20 for SHA1\n",
        stderr);
  fputs("                by default, the 1st line's length will be used\n",
        stderr);
  fputs("  -B <v>        bufferSize in kBytes\n", stderr);
  fputs("  -i <input>    use input from file. default: stdin\n", stderr);
  fputs("  -o <output>   output to file. default: stdout\n", stderr);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%esi
lea    0xedc(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2eb0(%rip),%rax
mov    (%rax),%esi
lea    0xf0f(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%esi
lea    0xf53(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e86(%rip),%rax
mov    (%rax),%esi
lea    0xf82(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e71(%rip),%rax
mov    (%rax),%esi
lea    0xf8a(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e5c(%rip),%rax
mov    (%rax),%esi
lea    0xfba(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e47(%rip),%rax
mov    (%rax),%esi
lea    0xfe5(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e32(%rip),%rax
mov    (%rax),%esi
lea    0xff6(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e1d(%rip),%rax
mov    (%rax),%esi
lea    0x1016(%rip),%rdi
call   1030 <fputs@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    0x2ec8(%rip),%rbx
mov    (%rbx),%esi
lea    0xedf(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf19(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf64(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf9a(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xfa9(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xfe0(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x1012(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x102a(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0x1051(%rip),%rdi
pop    %rbx
jmp    1030 <fputs@plt>

LLVM IR (-O0):
@.str = [72 x i8] c"Usage: hex2rds [-h | --help] [-n <rawSize>] [-i <input>] [-o <output>]\0A\00"
@stderr = global i32 0
@.str.1 = [89 x i8] c" hex2rds converts text files with hexadecimal (hash) codes to raw data set (rds) files\0A\00"
@.str.2 = [68 x i8] c" every input line must have same even length! spaces are ignored.\0A\00"
@.str.3 = [29 x i8] c" -h | --help print usage\0A\00"
@.str.4 = [69 x i8] c" -n <rawSize> tell expected raw length in bytes, e.g. 20 for SHA1\0A\00"
@.str.5 = [64 x i8] c" by default, the 1st line's length will be used\0A\00"
@.str.6 = [38 x i8] c" -B <v> bufferSize in kBytes\0A\00"
@.str.7 = [53 x i8] c" -i <input> use input from file. default: stdin\0A\00"
@.str.8 = [49 x i8] c" -o <output> output to file. default: stdout\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fputs(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @stderr
%4 = call i32 @fputs(i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @stderr
%6 = call i32 @fputs(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @stderr
%8 = call i32 @fputs(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @stderr
%10 = call i32 @fputs(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @stderr
%12 = call i32 @fputs(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @stderr
%14 = call i32 @fputs(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = load i32, i32* @stderr
%16 = call i32 @fputs(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.7, i64 0, i64 0), i32 %15)
%17 = load i32, i32* @stderr
%18 = call i32 @fputs(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.8, i64 0, i64 0), i32 %17)
ret void
}

LLVM IR (-O2):
@.str = [72 x i8] c"Usage: hex2rds [-h | --help] [-n <rawSize>] [-i <input>] [-o <output>]\0A\00"
@stderr = global i32 0
@.str.1 = [89 x i8] c" hex2rds converts text files with hexadecimal (hash) codes to raw data set (rds) files\0A\00"
@.str.2 = [68 x i8] c" every input line must have same even length! spaces are ignored.\0A\00"
@.str.3 = [29 x i8] c" -h | --help print usage\0A\00"
@.str.4 = [69 x i8] c" -n <rawSize> tell expected raw length in bytes, e.g. 20 for SHA1\0A\00"
@.str.5 = [64 x i8] c" by default, the 1st line's length will be used\0A\00"
@.str.6 = [38 x i8] c" -B <v> bufferSize in kBytes\0A\00"
@.str.7 = [53 x i8] c" -i <input> use input from file. default: stdin\0A\00"
@.str.8 = [49 x i8] c" -o <output> output to file. default: stdout\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fputs(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @stderr
%4 = tail call i32 @fputs(i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @stderr
%6 = tail call i32 @fputs(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @stderr
%8 = tail call i32 @fputs(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @stderr
%10 = tail call i32 @fputs(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @stderr
%12 = tail call i32 @fputs(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @stderr
%14 = tail call i32 @fputs(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = load i32, i32* @stderr
%16 = tail call i32 @fputs(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.7, i64 0, i64 0), i32 %15)
%17 = load i32, i32* @stderr
%18 = tail call i32 @fputs(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.8, i64 0, i64 0), i32 %17)
ret void
}