#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 showuse(int morehelp) {
  {
    printf("\n");
    printf("  b64      (Base64 Encode/Decode)      Bob Trower 08/03/01 \n");
    printf("           (C) Copr Bob Trower 1986-01.      Version 0.12R \n");
    printf("  Usage:   b64 -option [-l<num>] [<FileIn> [<FileOut>]]\n");
    printf("  Purpose: This program is a simple utility that implements\n");
    printf("           Base64 Content-Transfer-Encoding (RFC1113).\n");
  }
  if (morehelp == 0) {
    printf("           Use -h option for additional help.\n");
  } else {
    printf("  Options: -e  encode to Base64   -h  This help text.\n");
    printf("           -d  decode from Base64 -?  This help text.\n");
    printf("  Note:    -l  use to change line size (from 72 characters)\n");
    printf("  Returns: 0 = success.  Non-zero is an error code.\n");
    printf("  ErrCode: 1 = Bad Syntax, 2 = File Open, 3 = File I/O\n");
    printf("  Example: b64 -e binfile b64file     <- Encode to b64\n");
    printf("           b64 -d b64file binfile     <- Decode from b64\n");
    printf("           b64 -e -l40 infile outfile <- Line Length of 40\n");
    printf("  Note:    Will act as a filter, but this should only be\n");
    printf("           used on text files due to translations made by\n");
    printf("           operating systems.\n");
    printf("  Source:  Source code and latest releases can be found at:\n");
    printf("           http://base64.sourceforge.net\n");
    printf("  Release: 0.12.00, Mon Feb 14 17:17:00 2011, ANSI-SOURCE C\n");
  }
}


x86 assembly (clang, -O0):
<showuse>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xf19(%rip),%rdi
call   1030 <printf@plt>
lea    0xed2(%rip),%rdi
call   1030 <printf@plt>
lea    0xf03(%rip),%rdi
call   1030 <printf@plt>
lea    0xf34(%rip),%rdi
call   1030 <printf@plt>
lea    0xf61(%rip),%rdi
call   1030 <printf@plt>
lea    0xf92(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x0,-0x4(%rbp)
jne    117e <showuse+0x6e>
lea    0xfb4(%rip),%rdi
call   1030 <printf@plt>
jmp    1226 <showuse+0x116>
lea    0xfd2(%rip),%rdi
call   1030 <printf@plt>
lea    0xffd(%rip),%rdi
call   1030 <printf@plt>
lea    0x1028(%rip),%rdi
call   1030 <printf@plt>
lea    0x1059(%rip),%rdi
call   1030 <printf@plt>
lea    0x1082(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ae(%rip),%rdi
call   1030 <printf@plt>
lea    0x10da(%rip),%rdi
call   1030 <printf@plt>
lea    0x1108(%rip),%rdi
call   1030 <printf@plt>
lea    0x1138(%rip),%rdi
call   1030 <printf@plt>
lea    0x1166(%rip),%rdi
call   1030 <printf@plt>
lea    0x1195(%rip),%rdi
call   1030 <printf@plt>
lea    0x11a8(%rip),%rdi
call   1030 <printf@plt>
lea    0x11d9(%rip),%rdi
call   1030 <printf@plt>
lea    0x11f7(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<showuse>:
push   %rbx
mov    %edi,%ebx
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xecc(%rip),%rdi
call   1040 <puts@plt>
lea    0xefc(%rip),%rdi
call   1040 <puts@plt>
lea    0xf2c(%rip),%rdi
call   1040 <puts@plt>
lea    0xf58(%rip),%rdi
call   1040 <puts@plt>
lea    0xf88(%rip),%rdi
call   1040 <puts@plt>
test   %ebx,%ebx
je     121a <showuse+0xfa>
lea    0xfab(%rip),%rdi
call   1040 <puts@plt>
lea    0xfd5(%rip),%rdi
call   1040 <puts@plt>
lea    0xfff(%rip),%rdi
call   1040 <puts@plt>
lea    0x102f(%rip),%rdi
call   1040 <puts@plt>
lea    0x1057(%rip),%rdi
call   1040 <puts@plt>
lea    0x1082(%rip),%rdi
call   1040 <puts@plt>
lea    0x10ad(%rip),%rdi
call   1040 <puts@plt>
lea    0x10da(%rip),%rdi
call   1040 <puts@plt>
lea    0x1109(%rip),%rdi
call   1040 <puts@plt>
lea    0x1136(%rip),%rdi
call   1040 <puts@plt>
lea    0x1164(%rip),%rdi
call   1040 <puts@plt>
lea    0x1176(%rip),%rdi
call   1040 <puts@plt>
lea    0x11a6(%rip),%rdi
call   1040 <puts@plt>
lea    0x11c3(%rip),%rdi
pop    %rbx
jmp    1040 <puts@plt>
lea    0x11f2(%rip),%rdi
pop    %rbx
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [61 x i8] c" b64 (Base64 Encode/Decode) Bob Trower 08/03/01 \0A\00"
@.str.2 = [61 x i8] c" (C) Copr Bob Trower 1986-01. Version 0.12R \0A\00"
@.str.3 = [57 x i8] c" Usage: b64 -option [-l<num>] [<FileIn> [<FileOut>]]\0A\00"
@.str.4 = [61 x i8] c" Purpose: This program is a simple utility that implements\0A\00"
@.str.5 = [56 x i8] c" Base64 Content-Transfer-Encoding (RFC1113).\0A\00"
@.str.6 = [47 x i8] c" Use -h option for additional help.\0A\00"
@.str.7 = [55 x i8] c" Options: -e encode to Base64 -h This help text.\0A\00"
@.str.8 = [55 x i8] c" -d decode from Base64 -? This help text.\0A\00"
@.str.9 = [61 x i8] c" Note: -l use to change line size (from 72 characters)\0A\00"
@.str.10 = [53 x i8] c" Returns: 0 = success. Non-zero is an error code.\0A\00"
@.str.11 = [56 x i8] c" ErrCode: 1 = Bad Syntax, 2 = File Open, 3 = File I/O\0A\00"
@.str.12 = [56 x i8] c" Example: b64 -e binfile b64file <- Encode to b64\0A\00"
@.str.13 = [58 x i8] c" b64 -d b64file binfile <- Decode from b64\0A\00"
@.str.14 = [60 x i8] c" b64 -e -l40 infile outfile <- Line Length of 40\0A\00"
@.str.15 = [58 x i8] c" Note: Will act as a filter, but this should only be\0A\00"
@.str.16 = [59 x i8] c" used on text files due to translations made by\0A\00"
@.str.17 = [31 x i8] c" operating systems.\0A\00"
@.str.18 = [61 x i8] c" Source: Source code and latest releases can be found at:\0A\00"
@.str.19 = [42 x i8] c" http://base64.sourceforge.net\0A\00"
@.str.20 = [61 x i8] c" Release: 0.12.00, Mon Feb 14 17:17:00 2011, ANSI-SOURCE C\0A\00"
define void @showuse(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.4, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.5, i64 0, i64 0))
%9 = load i32, i32* %2
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %1
%12 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.6, i64 0, i64 0))
br label %28
13: ; preds = %1
%14 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.7, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.9, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.10, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.11, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.12, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.13, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.14, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.15, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.16, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.17, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.18, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.19, i64 0, i64 0))
%27 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.20, i64 0, i64 0))
br label %28
28: ; preds = %13, %11
ret void
}

LLVM IR (-O2):
@str = [60 x i8] c" b64 (Base64 Encode/Decode) Bob Trower 08/03/01 \00"
@str.21 = [60 x i8] c" (C) Copr Bob Trower 1986-01. Version 0.12R \00"
@str.22 = [56 x i8] c" Usage: b64 -option [-l<num>] [<FileIn> [<FileOut>]]\00"
@str.23 = [60 x i8] c" Purpose: This program is a simple utility that implements\00"
@str.24 = [55 x i8] c" Base64 Content-Transfer-Encoding (RFC1113).\00"
@str.25 = [54 x i8] c" Options: -e encode to Base64 -h This help text.\00"
@str.26 = [54 x i8] c" -d decode from Base64 -? This help text.\00"
@str.27 = [60 x i8] c" Note: -l use to change line size (from 72 characters)\00"
@str.28 = [52 x i8] c" Returns: 0 = success. Non-zero is an error code.\00"
@str.29 = [55 x i8] c" ErrCode: 1 = Bad Syntax, 2 = File Open, 3 = File I/O\00"
@str.30 = [55 x i8] c" Example: b64 -e binfile b64file <- Encode to b64\00"
@str.31 = [57 x i8] c" b64 -d b64file binfile <- Decode from b64\00"
@str.32 = [59 x i8] c" b64 -e -l40 infile outfile <- Line Length of 40\00"
@str.33 = [57 x i8] c" Note: Will act as a filter, but this should only be\00"
@str.34 = [58 x i8] c" used on text files due to translations made by\00"
@str.35 = [30 x i8] c" operating systems.\00"
@str.36 = [60 x i8] c" Source: Source code and latest releases can be found at:\00"
@str.37 = [41 x i8] c" http://base64.sourceforge.net\00"
@str.38 = [60 x i8] c" Release: 0.12.00, Mon Feb 14 17:17:00 2011, ANSI-SOURCE C\00"
@str.39 = [46 x i8] c" Use -h option for additional help.\00"
define void @showuse(i32 %0) {
%2 = tail call i32 @putchar(i32 10)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.21, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.22, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.23, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.24, i64 0, i64 0))
%8 = icmp eq i32 %0, 0
br i1 %8, label %23, label %9
9: ; preds = %1
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.25, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.26, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.27, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.28, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.29, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.30, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.31, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.32, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.33, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.34, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.35, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.36, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.37, i64 0, i64 0))
br label %23
23: ; preds = %1, %9
%24 = phi i8* [ getelementptr inbounds ([60 x i8], [60 x i8]* @str.38, i64 0, i64 0), %9 ], [ getelementptr inbounds ([46 x i8], [46 x i8]* @str.39, i64 0, i64 0), %1 ]
%25 = tail call i32 @puts(i8* dereferenceable(1) %24)
ret void
}