#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
char *crypt(char *, char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *, ...);
scalar_t__ getpass(char *);
unsigned long getpid();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stdin;
int strlen(char *);
unsigned long time(int /*<<< orphan*/ *);
int main(void) {
  char buffer[33 + 33];
  char *pass;
  FILE *fp;
  unsigned long seed[2];
  char salt[] = "$1$........";
  const char *const seedchars = "./0123456789ABCDEFGHIJKLMNOPQRST"
                                "UVWXYZabcdefghijklmnopqrstuvwxyz";
  int i;
  seed[0] = time(NULL);
  seed[1] = getpid() ^ (seed[0] >> 14 & 0x30000);
  for (i = 0; i < 8; i++)
    salt[3 + i] = seedchars[(seed[i / 5] >> (i % 5) * 6) & 0x3f];
  printf("This util will create a brand new admins.txt for you with your "
         "chosen\n");
  printf("user and password.\n\n");
  printf("Username: ");
  fgets(buffer, 33, stdin);
  buffer[strlen(buffer) - 1] = 0;
  pass = crypt((char *)getpass("Password: "), salt);
  fp = fopen("admins.txt", "w");
  if (!fp) {
    printf("\n*** ERROR: Unable to open admins.txt!\n");
    exit(13);
  }
  fprintf(fp, "%s %s 500\n", buffer, pass);
  fclose(fp);
  printf("\nUser %s written to admins.txt!\n", buffer);
  printf(
      "Now lets choose a channel to start up on, you will need to be in at\n");
  printf(
      "least one common channel with the bot in order to login, hence why\n");
  printf("we need to set this here.\n\n");
  printf("Channel name: ");
  fgets(buffer, 33, stdin);
  buffer[strlen(buffer) - 1] = 0;
  fp = fopen("chans.txt", "w");
  if (!fp) {
    printf("\n*** ERROR: Unable to open chans.txt!\n");
    exit(13);
  }
  fprintf(fp, "%s aj 0 + -\n", buffer);
  fclose(fp);
  printf("\n%s written to chans.txt!\n", buffer);
  printf("All done, now set up your claw.conf and you are ready to go.\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xe37(%rip),%rax
mov    %rax,-0x7c(%rbp)
mov    0xe35(%rip),%eax
mov    %eax,-0x74(%rbp)
lea    0xe2f(%rip),%rax
mov    %rax,-0x88(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   10a0 <time@plt>
mov    %rax,-0x70(%rbp)
mov    $0x0,%al
call   1030 <getpid@plt>
mov    -0x70(%rbp),%rcx
shr    $0xe,%rcx
and    $0x30000,%rcx
xor    %rcx,%rax
mov    %rax,-0x68(%rbp)
movl   $0x0,-0x8c(%rbp)
cmpl   $0x8,-0x8c(%rbp)
jge    1292 <main+0xe2>
mov    -0x8c(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cltq
mov    -0x70(%rbp,%rax,8),%rax
mov    %rax,-0x98(%rbp)
mov    -0x8c(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
mov    -0x98(%rbp),%rax
imul   $0x6,%edx,%ecx
mov    %ecx,%ecx
shr    %cl,%rax
mov    %rax,%rcx
and    $0x3f,%rcx
lea    0xda0(%rip),%rax
mov    (%rax,%rcx,1),%cl
mov    -0x8c(%rbp),%eax
add    $0x3,%eax
cltq
mov    %cl,-0x7c(%rbp,%rax,1)
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    1218 <main+0x68>
lea    0xdb4(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xded(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xdf4(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x50(%rbp),%rdi
mov    0x2d21(%rip),%rax
mov    (%rax),%edx
mov    $0x21,%esi
call   1080 <fgets@plt>
lea    -0x50(%rbp),%rdi
call   1060 <strlen@plt>
sub    $0x1,%eax
cltq
movb   $0x0,-0x50(%rbp,%rax,1)
lea    0xdc7(%rip),%rdi
call   10b0 <getpass@plt>
mov    %rax,%rdi
lea    -0x7c(%rbp),%rsi
call   1040 <crypt@plt>
mov    %rax,-0x58(%rbp)
lea    0xdb6(%rip),%rdi
lea    0xdba(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x60(%rbp)
cmpq   $0x0,-0x60(%rbp)
jne    133c <main+0x18c>
lea    0xda1(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0xd,%edi
call   10d0 <exit@plt>
mov    -0x60(%rbp),%rdi
lea    -0x50(%rbp),%rdx
mov    -0x58(%rbp),%rcx
lea    0xda5(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x60(%rbp),%rdi
call   1050 <fclose@plt>
lea    -0x50(%rbp),%rsi
lea    0xd95(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xda8(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xddf(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xe15(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xe23(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x50(%rbp),%rdi
mov    0x2c34(%rip),%rax
mov    (%rax),%edx
mov    $0x21,%esi
call   1080 <fgets@plt>
lea    -0x50(%rbp),%rdi
call   1060 <strlen@plt>
sub    $0x1,%eax
cltq
movb   $0x0,-0x50(%rbp,%rax,1)
lea    0xdfa(%rip),%rdi
lea    0xce9(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x60(%rbp)
cmpq   $0x0,-0x60(%rbp)
jne    140d <main+0x25d>
lea    0xde2(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0xd,%edi
call   10d0 <exit@plt>
mov    -0x60(%rbp),%rdi
lea    -0x50(%rbp),%rdx
lea    0xde9(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    -0x60(%rbp),%rdi
call   1050 <fclose@plt>
lea    -0x50(%rbp),%rsi
lea    0xddb(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    0xde8(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x58,%rsp
movabs $0x2e2e2e2e2e243124,%rax
2e 2e 2e
mov    %rax,(%rsp)
movl   $0x2e2e2e,0x8(%rsp)
xor    %edi,%edi
call   10b0 <time@plt>
mov    %rax,%rbx
xor    %eax,%eax
call   1040 <getpid@plt>
mov    %ebx,%ecx
shr    $0xe,%ecx
and    $0x30000,%ecx
xor    %eax,%ecx
mov    %ebx,%esi
and    $0x3f,%esi
lea    0xe01(%rip),%rdi
mov    (%rsi,%rdi,1),%dl
mov    %dl,0x3(%rsp)
mov    %ebx,%edx
shr    $0x6,%edx
and    $0x3f,%edx
mov    (%rdx,%rdi,1),%dl
mov    %dl,0x4(%rsp)
mov    %ebx,%edx
shr    $0xc,%edx
and    $0x3f,%edx
mov    (%rdx,%rdi,1),%dl
mov    %dl,0x5(%rsp)
mov    %ebx,%edx
shr    $0x12,%edx
and    $0x3f,%edx
mov    (%rdx,%rdi,1),%dl
mov    %dl,0x6(%rsp)
shr    $0x18,%ebx
and    $0x3f,%ebx
mov    (%rbx,%rdi,1),%dl
mov    %dl,0x7(%rsp)
mov    %eax,%edx
and    $0x3f,%edx
mov    (%rdx,%rdi,1),%dl
mov    %dl,0x8(%rsp)
shr    $0x6,%eax
and    $0x3f,%eax
mov    (%rax,%rdi,1),%al
mov    %al,0x9(%rsp)
shr    $0xc,%ecx
and    $0x3f,%ecx
mov    (%rcx,%rdi,1),%al
mov    %al,0xa(%rsp)
lea    0xe64(%rip),%rdi
call   1030 <puts@plt>
lea    0xe9e(%rip),%rdi
call   1030 <puts@plt>
lea    0xdbc(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    0x2d49(%rip),%r12
mov    (%r12),%edx
lea    0x10(%rsp),%r14
mov    %r14,%rdi
mov    $0x21,%esi
call   1090 <fgets@plt>
mov    %r14,%rdi
call   1070 <strlen@plt>
cltq
movb   $0x0,-0x1(%rax,%r14,1)
lea    0xd8c(%rip),%rdi
call   10c0 <getpass@plt>
mov    %rsp,%rsi
mov    %rax,%rdi
call   1050 <crypt@plt>
mov    %rax,%r15
lea    0xd7d(%rip),%rdi
lea    0xd81(%rip),%rsi
call   10d0 <fopen@plt>
test   %rax,%rax
je     13e8 <main+0x228>
mov    %rax,%rbx
lea    0xd6b(%rip),%rsi
mov    %rax,%rdi
mov    %r14,%rdx
mov    %r15,%rcx
xor    %eax,%eax
call   10a0 <fprintf@plt>
mov    %rbx,%rdi
call   1060 <fclose@plt>
lea    0xd57(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xe29(%rip),%rdi
call   1030 <puts@plt>
lea    0xe61(%rip),%rdi
call   1030 <puts@plt>
lea    0xe98(%rip),%rdi
call   1030 <puts@plt>
lea    0xd43(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
mov    (%r12),%edx
mov    %r14,%rdi
mov    $0x21,%esi
call   1090 <fgets@plt>
mov    %r14,%rdi
call   1070 <strlen@plt>
cltq
movb   $0x0,-0x1(%rax,%r14,1)
lea    0xd23(%rip),%rdi
lea    0xcdf(%rip),%rsi
call   10d0 <fopen@plt>
test   %rax,%rax
je     13f1 <main+0x231>
mov    %rax,%rbx
lea    0xd12(%rip),%rsi
lea    0x10(%rsp),%r14
mov    %rax,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   10a0 <fprintf@plt>
mov    %rbx,%rdi
call   1060 <fclose@plt>
lea    0xcfe(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xe51(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret
lea    0xd48(%rip),%rdi
jmp    13f8 <main+0x238>
lea    0xe08(%rip),%rdi
call   1030 <puts@plt>
mov    $0xd,%edi
call   10e0 <exit@plt>

LLVM IR (-O0):
@__const.main.salt = [12 x i8] c"$1$........\00"
@.str = [65 x i8] c"./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\00"
@.str.1 = [71 x i8] c"This util will create a brand new admins.txt for you with your chosen\0A\00"
@.str.2 = [21 x i8] c"user and password.\0A\0A\00"
@.str.3 = [11 x i8] c"Username: \00"
@stdin = global i32 0
@.str.4 = [11 x i8] c"Password: \00"
@.str.5 = [11 x i8] c"admins.txt\00"
@.str.6 = [2 x i8] c"w\00"
@.str.7 = [40 x i8] c"\0A*** ERROR: Unable to open admins.txt!\0A\00"
@.str.8 = [11 x i8] c"%s %s 500\0A\00"
@.str.9 = [33 x i8] c"\0AUser %s written to admins.txt!\0A\00"
@.str.10 = [69 x i8] c"Now lets choose a channel to start up on, you will need to be in at\0A\00"
@.str.11 = [68 x i8] c"least one common channel with the bot in order to login, hence why\0A\00"
@.str.12 = [28 x i8] c"we need to set this here.\0A\0A\00"
@.str.13 = [15 x i8] c"Channel name: \00"
@.str.14 = [10 x i8] c"chans.txt\00"
@.str.15 = [39 x i8] c"\0A*** ERROR: Unable to open chans.txt!\0A\00"
@.str.16 = [13 x i8] c"%s aj 0 + -\0A\00"
@.str.17 = [27 x i8] c"\0A%s written to chans.txt!\0A\00"
@.str.18 = [62 x i8] c"All done, now set up your claw.conf and you are ready to go.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [66 x i8]
%3 = alloca i8*
%4 = alloca i32*
%5 = alloca [2 x i64]
%6 = alloca [12 x i8]
%7 = alloca i8*
%8 = alloca i32
store i32 0, i32* %1
%9 = bitcast [12 x i8]* %6 to i8*
store i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str, i64 0, i64 0), i8** %7
%10 = call i64 @time(i32* null)
%11 = getelementptr inbounds [2 x i64], [2 x i64]* %5, i64 0, i64 0
store i64 %10, i64* %11
%12 = call i64 (...) @getpid()
%13 = getelementptr inbounds [2 x i64], [2 x i64]* %5, i64 0, i64 0
%14 = load i64, i64* %13
%15 = lshr i64 %14, 14
%16 = and i64 %15, 196608
%17 = xor i64 %12, %16
%18 = getelementptr inbounds [2 x i64], [2 x i64]* %5, i64 0, i64 1
store i64 %17, i64* %18
store i32 0, i32* %8
br label %19
19: ; preds = %40, %0
%20 = load i32, i32* %8
%21 = icmp slt i32 %20, 8
br i1 %21, label %22, label %43
22: ; preds = %19
%23 = load i32, i32* %8
%24 = sdiv i32 %23, 5
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [2 x i64], [2 x i64]* %5, i64 0, i64 %25
%27 = load i64, i64* %26
%28 = load i32, i32* %8
%29 = srem i32 %28, 5
%30 = mul nsw i32 %29, 6
%31 = zext i32 %30 to i64
%32 = lshr i64 %27, %31
%33 = and i64 %32, 63
%34 = getelementptr inbounds i8, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str, i32 0, i32 0), i64 %33
%35 = load i8, i8* %34
%36 = load i32, i32* %8
%37 = add nsw i32 3, %36
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [12 x i8], [12 x i8]* %6, i64 0, i64 %38
store i8 %35, i8* %39
br label %40
40: ; preds = %22
%41 = load i32, i32* %8
%42 = add nsw i32 %41, 1
store i32 %42, i32* %8
br label %19
43: ; preds = %19
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.1, i64 0, i64 0))
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%47 = getelementptr inbounds [66 x i8], [66 x i8]* %2, i64 0, i64 0
%48 = load i32, i32* @stdin
%49 = call i32 @fgets(i8* %47, i32 33, i32 %48)
%50 = getelementptr inbounds [66 x i8], [66 x i8]* %2, i64 0, i64 0
%51 = call i32 @strlen(i8* %50)
%52 = sub nsw i32 %51, 1
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [66 x i8], [66 x i8]* %2, i64 0, i64 %53
store i8 0, i8* %54
%55 = call i64 @getpass(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%56 = inttoptr i64 %55 to i8*
%57 = getelementptr inbounds [12 x i8], [12 x i8]* %6, i64 0, i64 0
%58 = call i8* @crypt(i8* %56, i8* %57)
store i8* %58, i8** %3
%59 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
store i32* %59, i32** %4
%60 = load i32*, i32** %4
%61 = icmp ne i32* %60, null
br i1 %61, label %65, label %62
62: ; preds = %43
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0))
%64 = call i32 @exit(i32 13)
unreachable
65: ; preds = %43
%66 = load i32*, i32** %4
%67 = getelementptr inbounds [66 x i8], [66 x i8]* %2, i64 0, i64 0
%68 = load i8*, i8** %3
%69 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %66, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8* %67, i8* %68)
%70 = load i32*, i32** %4
%71 = call i32 @fclose(i32* %70)
%72 = getelementptr inbounds [66 x i8], [66 x i8]* %2, i64 0, i64 0
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0), i8* %72)
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.10, i64 0, i64 0))
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.11, i64 0, i64 0))
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.12, i64 0, i64 0))
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0))
%78 = getelementptr inbounds [66 x i8], [66 x i8]* %2, i64 0, i64 0
%79 = load i32, i32* @stdin
%80 = call i32 @fgets(i8* %78, i32 33, i32 %79)
%81 = getelementptr inbounds [66 x i8], [66 x i8]* %2, i64 0, i64 0
%82 = call i32 @strlen(i8* %81)
%83 = sub nsw i32 %82, 1
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [66 x i8], [66 x i8]* %2, i64 0, i64 %84
store i8 0, i8* %85
%86 = call i32* @fopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
store i32* %86, i32** %4
%87 = load i32*, i32** %4
%88 = icmp ne i32* %87, null
br i1 %88, label %92, label %89
89: ; preds = %65
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.15, i64 0, i64 0))
%91 = call i32 @exit(i32 13)
unreachable
92: ; preds = %65
%93 = load i32*, i32** %4
%94 = getelementptr inbounds [66 x i8], [66 x i8]* %2, i64 0, i64 0
%95 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %93, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0), i8* %94)
%96 = load i32*, i32** %4
%97 = call i32 @fclose(i32* %96)
%98 = getelementptr inbounds [66 x i8], [66 x i8]* %2, i64 0, i64 0
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.17, i64 0, i64 0), i8* %98)
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.18, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@__const.main.salt = [12 x i8] c"$1$........\00"
@.str = [65 x i8] c"./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\00"
@.str.3 = [11 x i8] c"Username: \00"
@stdin = global i32 0
@.str.4 = [11 x i8] c"Password: \00"
@.str.5 = [11 x i8] c"admins.txt\00"
@.str.6 = [2 x i8] c"w\00"
@.str.8 = [11 x i8] c"%s %s 500\0A\00"
@.str.9 = [33 x i8] c"\0AUser %s written to admins.txt!\0A\00"
@.str.13 = [15 x i8] c"Channel name: \00"
@.str.14 = [10 x i8] c"chans.txt\00"
@.str.16 = [13 x i8] c"%s aj 0 + -\0A\00"
@.str.17 = [27 x i8] c"\0A%s written to chans.txt!\0A\00"
@str = [70 x i8] c"This util will create a brand new admins.txt for you with your chosen\00"
@str.19 = [20 x i8] c"user and password.\0A\00"
@str.20 = [39 x i8] c"\0A*** ERROR: Unable to open admins.txt!\00"
@str.21 = [68 x i8] c"Now lets choose a channel to start up on, you will need to be in at\00"
@str.22 = [67 x i8] c"least one common channel with the bot in order to login, hence why\00"
@str.23 = [27 x i8] c"we need to set this here.\0A\00"
@str.24 = [38 x i8] c"\0A*** ERROR: Unable to open chans.txt!\00"
@str.25 = [61 x i8] c"All done, now set up your claw.conf and you are ready to go.\00"
define i32 @main() {
%1 = alloca [66 x i8]
%2 = alloca [12 x i8]
%3 = getelementptr inbounds [66 x i8], [66 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 0
%5 = tail call i64 @time(i32* null)
%6 = tail call i64 (...) @getpid()
%7 = lshr i64 %5, 14
%8 = and i64 %7, 196608
%9 = xor i64 %6, %8
%10 = and i64 %5, 63
%11 = getelementptr inbounds [65 x i8], [65 x i8]* @.str, i64 0, i64 %10
%12 = load i8, i8* %11
%13 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 3
store i8 %12, i8* %13
%14 = lshr i64 %5, 6
%15 = and i64 %14, 63
%16 = getelementptr inbounds [65 x i8], [65 x i8]* @.str, i64 0, i64 %15
%17 = load i8, i8* %16
%18 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 4
store i8 %17, i8* %18
%19 = lshr i64 %5, 12
%20 = and i64 %19, 63
%21 = getelementptr inbounds [65 x i8], [65 x i8]* @.str, i64 0, i64 %20
%22 = load i8, i8* %21
%23 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 5
store i8 %22, i8* %23
%24 = lshr i64 %5, 18
%25 = and i64 %24, 63
%26 = getelementptr inbounds [65 x i8], [65 x i8]* @.str, i64 0, i64 %25
%27 = load i8, i8* %26
%28 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 6
store i8 %27, i8* %28
%29 = lshr i64 %5, 24
%30 = and i64 %29, 63
%31 = getelementptr inbounds [65 x i8], [65 x i8]* @.str, i64 0, i64 %30
%32 = load i8, i8* %31
%33 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 7
store i8 %32, i8* %33
%34 = and i64 %6, 63
%35 = getelementptr inbounds [65 x i8], [65 x i8]* @.str, i64 0, i64 %34
%36 = load i8, i8* %35
%37 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 8
store i8 %36, i8* %37
%38 = lshr i64 %6, 6
%39 = and i64 %38, 63
%40 = getelementptr inbounds [65 x i8], [65 x i8]* @.str, i64 0, i64 %39
%41 = load i8, i8* %40
%42 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 9
store i8 %41, i8* %42
%43 = lshr i64 %9, 12
%44 = and i64 %43, 63
%45 = getelementptr inbounds [65 x i8], [65 x i8]* @.str, i64 0, i64 %44
%46 = load i8, i8* %45
%47 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 10
store i8 %46, i8* %47
%48 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str, i64 0, i64 0))
%49 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.19, i64 0, i64 0))
%50 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%51 = load i32, i32* @stdin
%52 = call i32 @fgets(i8* %3, i32 33, i32 %51)
%53 = call i32 @strlen(i8* %3)
%54 = add nsw i32 %53, -1
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [66 x i8], [66 x i8]* %1, i64 0, i64 %55
store i8 0, i8* %56
%57 = call i64 @getpass(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%58 = inttoptr i64 %57 to i8*
%59 = call i8* @crypt(i8* %58, i8* %4)
%60 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%61 = icmp eq i32* %60, null
br i1 %61, label %62, label %65
62: ; preds = %0
%63 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.20, i64 0, i64 0))
%64 = call i32 @exit(i32 13)
unreachable
65: ; preds = %0
%66 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %60, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0), i8* %3, i8* %59)
%67 = call i32 @fclose(i32* %60)
%68 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0), i8* %3)
%69 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.21, i64 0, i64 0))
%70 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.22, i64 0, i64 0))
%71 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.23, i64 0, i64 0))
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0))
%73 = load i32, i32* @stdin
%74 = call i32 @fgets(i8* %3, i32 33, i32 %73)
%75 = call i32 @strlen(i8* %3)
%76 = add nsw i32 %75, -1
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [66 x i8], [66 x i8]* %1, i64 0, i64 %77
store i8 0, i8* %78
%79 = call i32* @fopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%80 = icmp eq i32* %79, null
br i1 %80, label %81, label %84
81: ; preds = %65
%82 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.24, i64 0, i64 0))
%83 = call i32 @exit(i32 13)
unreachable
84: ; preds = %65
%85 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %79, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0), i8* %3)
%86 = call i32 @fclose(i32* %79)
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.17, i64 0, i64 0), i8* %3)
%88 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.25, i64 0, i64 0))
ret i32 0
}