#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_FAILURE;
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ ui_cleanup();
int /*<<< orphan*/ ui_print(char *, ...);
void options_print_help_screen_and_exit(void) {
  ui_print("\n%s v%s (build %s)\n\n", "file_hash", "1.0.2", "Mar 17 2022");
  ui_print("Copyright (C) 2001-2002 by Tim-Philipp Müller\n");
  ui_print("Copyright (C) 1990-2, RSA Data Security, Inc. (MD4 hashing "
           "functions only)\n");
  ui_print("\n");
  ui_print("This program is free software. See the source for copying "
           "conditions.\n");
  ui_print("This program is distributed in the hope that it will be useful for "
           "someone,\n");
  ui_print("but WITHOUT ANY WARRANTY; without even the implied warranty of\n");
  ui_print("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n");
  ui_print("GNU General Public License for more details.\n\n");
  ui_print("Usage: file_hash [OPTIONS] <FILES or DIRECTORIES>\n\n");
  ui_print("Creates the file hash (eDonkey2000 compatible) for the specified "
           "files.\n\n");
  ui_print("Options:\n");
  ui_print("\t-a\twrap html link around file-link (<a href=\"...\"></a>)\n");
  ui_print("\t-p\tin html link print basename _with_ path component\n");
  ui_print("\t-h\tshow this helpscreen\n");
  ui_print("\t-v\tbe verbose (show extra information)\n");
  ui_print("\t-r\trecursively descend into directories\n");
  ui_print("\t-x\tdo not descend into directories\n");
  ui_print("\t-w\twait for keystroke when finished\n");
  ui_print("\n");
  if (!ui_cleanup())
    exit(EXIT_FAILURE);
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<options_print_help_screen_and_exit>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
lea    0xed3(%rip),%rsi
lea    0xed6(%rip),%rdx
lea    0xed5(%rip),%rcx
mov    $0x0,%al
call   1030 <ui_print@plt>
lea    0xed3(%rip),%rdi
mov    $0x0,%al
call   1030 <ui_print@plt>
lea    0xef5(%rip),%rdi
mov    $0x0,%al
call   1030 <ui_print@plt>
lea    0xe99(%rip),%rdi
mov    $0x0,%al
call   1030 <ui_print@plt>
lea    0xf25(%rip),%rdi
mov    $0x0,%al
call   1030 <ui_print@plt>
lea    0xf5e(%rip),%rdi
mov    $0x0,%al
call   1030 <ui_print@plt>
lea    0xf9d(%rip),%rdi
mov    $0x0,%al
call   1030 <ui_print@plt>
lea    0xfcf(%rip),%rdi
mov    $0x0,%al
call   1030 <ui_print@plt>
lea    0xfff(%rip),%rdi
mov    $0x0,%al
call   1030 <ui_print@plt>
lea    0x1020(%rip),%rdi
mov    $0x0,%al
call   1030 <ui_print@plt>
lea    0x1046(%rip),%rdi
mov    $0x0,%al
call   1030 <ui_print@plt>
lea    0x1082(%rip),%rdi
mov    $0x0,%al
call   1030 <ui_print@plt>
lea    0x107e(%rip),%rdi
mov    $0x0,%al
call   1030 <ui_print@plt>
lea    0x10aa(%rip),%rdi
mov    $0x0,%al
call   1030 <ui_print@plt>
lea    0x10d3(%rip),%rdi
mov    $0x0,%al
call   1030 <ui_print@plt>
lea    0x10df(%rip),%rdi
mov    $0x0,%al
call   1030 <ui_print@plt>
lea    0x10fa(%rip),%rdi
mov    $0x0,%al
call   1030 <ui_print@plt>
lea    0x1116(%rip),%rdi
mov    $0x0,%al
call   1030 <ui_print@plt>
lea    0x112d(%rip),%rdi
mov    $0x0,%al
call   1030 <ui_print@plt>
lea    0xdb9(%rip),%rdi
mov    $0x0,%al
call   1030 <ui_print@plt>
mov    $0x0,%al
call   1050 <ui_cleanup@plt>
cmp    $0x0,%eax
jne    127f <options_print_help_screen_and_exit+0x14f>
mov    0x2d68(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>
mov    0x2d52(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<options_print_help_screen_and_exit>:
push   %rbx
lea    0xec8(%rip),%rdi
lea    0xed6(%rip),%rsi
lea    0xed9(%rip),%rdx
lea    0xed8(%rip),%rcx
xor    %eax,%eax
call   1030 <ui_print@plt>
lea    0xed6(%rip),%rdi
xor    %eax,%eax
call   1030 <ui_print@plt>
lea    0xef8(%rip),%rdi
xor    %eax,%eax
call   1030 <ui_print@plt>
lea    0xe9c(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <ui_print@plt>
lea    0xf25(%rip),%rdi
xor    %eax,%eax
call   1030 <ui_print@plt>
lea    0xf5e(%rip),%rdi
xor    %eax,%eax
call   1030 <ui_print@plt>
lea    0xf9d(%rip),%rdi
xor    %eax,%eax
call   1030 <ui_print@plt>
lea    0xfcf(%rip),%rdi
xor    %eax,%eax
call   1030 <ui_print@plt>
lea    0xfff(%rip),%rdi
xor    %eax,%eax
call   1030 <ui_print@plt>
lea    0x1020(%rip),%rdi
xor    %eax,%eax
call   1030 <ui_print@plt>
lea    0x1046(%rip),%rdi
xor    %eax,%eax
call   1030 <ui_print@plt>
lea    0x1082(%rip),%rdi
xor    %eax,%eax
call   1030 <ui_print@plt>
lea    0x107e(%rip),%rdi
xor    %eax,%eax
call   1030 <ui_print@plt>
lea    0x10aa(%rip),%rdi
xor    %eax,%eax
call   1030 <ui_print@plt>
lea    0x10d3(%rip),%rdi
xor    %eax,%eax
call   1030 <ui_print@plt>
lea    0x10df(%rip),%rdi
xor    %eax,%eax
call   1030 <ui_print@plt>
lea    0x10fa(%rip),%rdi
xor    %eax,%eax
call   1030 <ui_print@plt>
lea    0x1116(%rip),%rdi
xor    %eax,%eax
call   1030 <ui_print@plt>
lea    0x112d(%rip),%rdi
xor    %eax,%eax
call   1030 <ui_print@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <ui_print@plt>
xor    %eax,%eax
call   1050 <ui_cleanup@plt>
test   %eax,%eax
jne    1276 <options_print_help_screen_and_exit+0x146>
mov    0x2d71(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>
mov    0x2d5b(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"\0A%s v%s (build %s)\0A\0A\00"
@.str.1 = [10 x i8] c"file_hash\00"
@.str.2 = [6 x i8] c"1.0.2\00"
@.str.3 = [12 x i8] c"Mar 17 2022\00"
@.str.4 = [48 x i8] c"Copyright (C) 2001-2002 by Tim-Philipp M\C3\BCller\0A\00"
@.str.5 = [76 x i8] c"Copyright (C) 1990-2, RSA Data Security, Inc. (MD4 hashing functions only)\0A\00"
@.str.6 = [2 x i8] c"\0A\00"
@.str.7 = [71 x i8] c"This program is free software. See the source for copying conditions.\0A\00"
@.str.8 = [77 x i8] c"This program is distributed in the hope that it will be useful for someone,\0A\00"
@.str.9 = [64 x i8] c"but WITHOUT ANY WARRANTY; without even the implied warranty of\0A\00"
@.str.10 = [62 x i8] c"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\0A\00"
@.str.11 = [47 x i8] c"GNU General Public License for more details.\0A\0A\00"
@.str.12 = [52 x i8] c"Usage: file_hash [OPTIONS] <FILES or DIRECTORIES>\0A\0A\00"
@.str.13 = [74 x i8] c"Creates the file hash (eDonkey2000 compatible) for the specified files.\0A\0A\00"
@.str.14 = [10 x i8] c"Options:\0A\00"
@.str.15 = [58 x i8] c"\09-a\09wrap html link around file-link (<a href=\22...\22></a>)\0A\00"
@.str.16 = [55 x i8] c"\09-p\09in html link print basename _with_ path component\0A\00"
@.str.17 = [26 x i8] c"\09-h\09show this helpscreen\0A\00"
@.str.18 = [41 x i8] c"\09-v\09be verbose (show extra information)\0A\00"
@.str.19 = [42 x i8] c"\09-r\09recursively descend into directories\0A\00"
@.str.20 = [37 x i8] c"\09-x\09do not descend into directories\0A\00"
@.str.21 = [38 x i8] c"\09-w\09wait for keystroke when finished\0A\00"
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define void @options_print_help_screen_and_exit() {
%1 = call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%2 = call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0))
%3 = call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.5, i64 0, i64 0))
%4 = call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%5 = call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.7, i64 0, i64 0))
%6 = call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.8, i64 0, i64 0))
%7 = call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.9, i64 0, i64 0))
%8 = call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.10, i64 0, i64 0))
%9 = call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.11, i64 0, i64 0))
%10 = call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.12, i64 0, i64 0))
%11 = call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.13, i64 0, i64 0))
%12 = call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%13 = call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.15, i64 0, i64 0))
%14 = call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.16, i64 0, i64 0))
%15 = call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.17, i64 0, i64 0))
%16 = call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.18, i64 0, i64 0))
%17 = call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.19, i64 0, i64 0))
%18 = call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.20, i64 0, i64 0))
%19 = call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.21, i64 0, i64 0))
%20 = call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%21 = call i32 (...) @ui_cleanup()
%22 = icmp ne i32 %21, 0
br i1 %22, label %26, label %23
23: ; preds = %0
%24 = load i32, i32* @EXIT_FAILURE
%25 = call i32 @exit(i32 %24)
unreachable
26: ; preds = %0
%27 = load i32, i32* @EXIT_SUCCESS
%28 = call i32 @exit(i32 %27)
unreachable
}

LLVM IR (-O2):
@.str = [21 x i8] c"\0A%s v%s (build %s)\0A\0A\00"
@.str.1 = [10 x i8] c"file_hash\00"
@.str.2 = [6 x i8] c"1.0.2\00"
@.str.3 = [12 x i8] c"Mar 17 2022\00"
@.str.4 = [48 x i8] c"Copyright (C) 2001-2002 by Tim-Philipp M\C3\BCller\0A\00"
@.str.5 = [76 x i8] c"Copyright (C) 1990-2, RSA Data Security, Inc. (MD4 hashing functions only)\0A\00"
@.str.6 = [2 x i8] c"\0A\00"
@.str.7 = [71 x i8] c"This program is free software. See the source for copying conditions.\0A\00"
@.str.8 = [77 x i8] c"This program is distributed in the hope that it will be useful for someone,\0A\00"
@.str.9 = [64 x i8] c"but WITHOUT ANY WARRANTY; without even the implied warranty of\0A\00"
@.str.10 = [62 x i8] c"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\0A\00"
@.str.11 = [47 x i8] c"GNU General Public License for more details.\0A\0A\00"
@.str.12 = [52 x i8] c"Usage: file_hash [OPTIONS] <FILES or DIRECTORIES>\0A\0A\00"
@.str.13 = [74 x i8] c"Creates the file hash (eDonkey2000 compatible) for the specified files.\0A\0A\00"
@.str.14 = [10 x i8] c"Options:\0A\00"
@.str.15 = [58 x i8] c"\09-a\09wrap html link around file-link (<a href=\22...\22></a>)\0A\00"
@.str.16 = [55 x i8] c"\09-p\09in html link print basename _with_ path component\0A\00"
@.str.17 = [26 x i8] c"\09-h\09show this helpscreen\0A\00"
@.str.18 = [41 x i8] c"\09-v\09be verbose (show extra information)\0A\00"
@.str.19 = [42 x i8] c"\09-r\09recursively descend into directories\0A\00"
@.str.20 = [37 x i8] c"\09-x\09do not descend into directories\0A\00"
@.str.21 = [38 x i8] c"\09-w\09wait for keystroke when finished\0A\00"
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define void @options_print_help_screen_and_exit() {
%1 = tail call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.4, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.5, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.7, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.8, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.9, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.10, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.11, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.12, i64 0, i64 0))
%11 = tail call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.13, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%13 = tail call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.15, i64 0, i64 0))
%14 = tail call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.16, i64 0, i64 0))
%15 = tail call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.17, i64 0, i64 0))
%16 = tail call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.18, i64 0, i64 0))
%17 = tail call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.19, i64 0, i64 0))
%18 = tail call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.20, i64 0, i64 0))
%19 = tail call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.21, i64 0, i64 0))
%20 = tail call i32 (i8*, ...) @ui_print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%21 = tail call i32 (...) @ui_cleanup()
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %0
%24 = load i32, i32* @EXIT_FAILURE
%25 = tail call i32 @exit(i32 %24)
unreachable
26: ; preds = %0
%27 = load i32, i32* @EXIT_SUCCESS
%28 = tail call i32 @exit(i32 %27)
unreachable
}