#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.00B \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) {
    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("  Release: 0.00.00, Tue Aug 7   2:00:00 2001, ANSI-SOURCE C\n");
  }
}


x86 assembly (clang, -O0):
<showuse>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0x12e9(%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    0xf65(%rip),%rdi
call   1030 <printf@plt>
lea    0xf96(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x0,-0x4(%rbp)
jne    117e <showuse+0x6e>
lea    0xfbd(%rip),%rdi
call   1030 <printf@plt>
jmp    120e <showuse+0xfe>
lea    0xfe9(%rip),%rdi
call   1030 <printf@plt>
lea    0x101a(%rip),%rdi
call   1030 <printf@plt>
lea    0x104b(%rip),%rdi
call   1030 <printf@plt>
lea    0x107c(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ad(%rip),%rdi
call   1030 <printf@plt>
lea    0x10de(%rip),%rdi
call   1030 <printf@plt>
lea    0x110f(%rip),%rdi
call   1030 <printf@plt>
lea    0x1140(%rip),%rdi
call   1030 <printf@plt>
lea    0x1171(%rip),%rdi
call   1030 <printf@plt>
lea    0x11a2(%rip),%rdi
call   1030 <printf@plt>
lea    0x11d3(%rip),%rdi
call   1030 <printf@plt>
lea    0x1204(%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    0xf5c(%rip),%rdi
call   1040 <puts@plt>
lea    0xf8c(%rip),%rdi
call   1040 <puts@plt>
test   %ebx,%ebx
je     1202 <showuse+0xe2>
lea    0xff0(%rip),%rdi
call   1040 <puts@plt>
lea    0x1020(%rip),%rdi
call   1040 <puts@plt>
lea    0x1050(%rip),%rdi
call   1040 <puts@plt>
lea    0x1080(%rip),%rdi
call   1040 <puts@plt>
lea    0x10b0(%rip),%rdi
call   1040 <puts@plt>
lea    0x10e0(%rip),%rdi
call   1040 <puts@plt>
lea    0x1110(%rip),%rdi
call   1040 <puts@plt>
lea    0x1140(%rip),%rdi
call   1040 <puts@plt>
lea    0x1170(%rip),%rdi
call   1040 <puts@plt>
lea    0x11a0(%rip),%rdi
call   1040 <puts@plt>
lea    0x11d0(%rip),%rdi
call   1040 <puts@plt>
lea    0x1200(%rip),%rdi
pop    %rbx
jmp    1040 <puts@plt>
lea    0xf23(%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.00B \0A\00"
@.str.3 = [61 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 = [61 x i8] c" Base64 Content-Transfer-Encoding (RFC1113). \0A\00"
@.str.6 = [61 x i8] c" Use -h option for additional help. \0A\00"
@.str.7 = [61 x i8] c" Options: -e encode to Base64 -h This help text. \0A\00"
@.str.8 = [61 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 = [61 x i8] c" Returns: 0 = success. Non-zero is an error code. \0A\00"
@.str.11 = [61 x i8] c" ErrCode: 1 = Bad Syntax, 2 = File Open, 3 = File I/O \0A\00"
@.str.12 = [61 x i8] c" Example: b64 -e binfile b64file <- Encode to b64 \0A\00"
@.str.13 = [61 x i8] c" b64 -d b64file binfile <- Decode from b64 \0A\00"
@.str.14 = [61 x i8] c" b64 -e -l40 infile outfile <- Line Length of 40 \0A\00"
@.str.15 = [61 x i8] c" Note: Will act as a filter, but this should only be \0A\00"
@.str.16 = [61 x i8] c" used on text files due to translations made by \0A\00"
@.str.17 = [61 x i8] c" operating systems. \0A\00"
@.str.18 = [61 x i8] c" Release: 0.00.00, Tue Aug 7 2:00:00 2001, 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 ([61 x i8], [61 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 ([61 x i8], [61 x i8]* @.str.5, i64 0, i64 0))
%9 = load i32, i32* %2
%10 = icmp ne i32 %9, 0
br i1 %10, label %13, label %11
11: ; preds = %1
%12 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.6, i64 0, i64 0))
br label %26
13: ; preds = %1
%14 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.7, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 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 ([61 x i8], [61 x i8]* @.str.10, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.11, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.12, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.13, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.14, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.15, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.16, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 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))
br label %26
26: ; preds = %13, %11
ret void
}

LLVM IR (-O2):
@str = [60 x i8] c" b64 (Base64 Encode/Decode) Bob Trower 08/03/01 \00"
@str.19 = [60 x i8] c" (C) Copr Bob Trower 1986-01. Version 0.00B \00"
@str.20 = [60 x i8] c" Usage: b64 -option [ -l num ] [<FileIn> [<FileOut>]] \00"
@str.21 = [60 x i8] c" Purpose: This program is a simple utility that implements\00"
@str.22 = [60 x i8] c" Base64 Content-Transfer-Encoding (RFC1113). \00"
@str.23 = [60 x i8] c" Use -h option for additional help. \00"
@str.24 = [60 x i8] c" Options: -e encode to Base64 -h This help text. \00"
@str.25 = [60 x i8] c" -d decode from Base64 -? This help text. \00"
@str.26 = [60 x i8] c" Note: -l use to change line size (from 72 characters)\00"
@str.27 = [60 x i8] c" Returns: 0 = success. Non-zero is an error code. \00"
@str.28 = [60 x i8] c" ErrCode: 1 = Bad Syntax, 2 = File Open, 3 = File I/O \00"
@str.29 = [60 x i8] c" Example: b64 -e binfile b64file <- Encode to b64 \00"
@str.30 = [60 x i8] c" b64 -d b64file binfile <- Decode from b64 \00"
@str.31 = [60 x i8] c" b64 -e -l40 infile outfile <- Line Length of 40 \00"
@str.32 = [60 x i8] c" Note: Will act as a filter, but this should only be \00"
@str.33 = [60 x i8] c" used on text files due to translations made by \00"
@str.34 = [60 x i8] c" operating systems. \00"
@str.35 = [60 x i8] c" Release: 0.00.00, Tue Aug 7 2:00:00 2001, ANSI-SOURCE C\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.19, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.20, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.21, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.22, i64 0, i64 0))
%8 = icmp eq i32 %0, 0
br i1 %8, label %21, label %9
9: ; preds = %1
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.24, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.25, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.26, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.27, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.28, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.29, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.30, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.31, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.32, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.33, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.34, i64 0, i64 0))
br label %21
21: ; preds = %1, %9
%22 = phi i8* [ getelementptr inbounds ([60 x i8], [60 x i8]* @str.35, i64 0, i64 0), %9 ], [ getelementptr inbounds ([60 x i8], [60 x i8]* @str.23, i64 0, i64 0), %1 ]
%23 = tail call i32 @puts(i8* dereferenceable(1) %22)
ret void
}