#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 */
int /*<<< orphan*/ DES_encrypt_pair(unsigned char *, unsigned char *,
                                    unsigned char *, unsigned char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int fread(unsigned char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fwrite(unsigned char *, int, int, int /*<<< orphan*/);
int /*<<< orphan*/ memcpy(unsigned char *, unsigned char *, int);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ stdout;
int main(int argc, char **argv) {
  if (argc != 3) {
    printf("Usage: %s key input.\n", argv[0]);
    return 0;
  }
  FILE *keyfile = fopen(argv[1], "rb");
  FILE *infile = fopen(argv[2], "rb");
  unsigned char key[2][2][8];
  int rv = 0;
  for (int i = 0; i < 2; i++) {
    for (int j = 0; j < 2; j++) {
      rv += fread(key[i][j], sizeof(char), 8, keyfile);
    }
  }
  fclose(keyfile);
  if (rv < 32) {
    printf("Error: key %s not long enough.\n", argv[1]);
    return 1;
  }
  unsigned char input[32];
  rv = fread(input, sizeof(char), 32, infile);
  for (; rv < 32; rv++) {
    input[rv] = 0;
  }
  fclose(infile);
  unsigned char round_input[32];
  memcpy(round_input, input, 32);
  unsigned char *L = round_input;
  unsigned char *R = round_input + 16;
  unsigned char tmp[32];
  for (int round = 0; round < 2; round++) {
    memcpy(tmp, R, 16);
    DES_encrypt_pair(tmp + 16, R, key[round][0], key[round][1]);
    for (int i = 0; i < 16; i++) {
      tmp[16 + i] ^= L[i];
    }
    memcpy(round_input, tmp, 32);
  }
  fwrite(round_input, sizeof(char), 32, stdout);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
je     11b2 <main+0x42>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe5f(%rip),%rdi
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    141d <main+0x2ad>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe55(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe3d(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x44(%rbp)
movl   $0x0,-0x48(%rbp)
cmpl   $0x2,-0x48(%rbp)
jge    125f <main+0xef>
movl   $0x0,-0x4c(%rbp)
cmpl   $0x2,-0x4c(%rbp)
jge    124c <main+0xdc>
movslq -0x48(%rbp),%rax
lea    -0x40(%rbp),%rdi
shl    $0x4,%rax
add    %rax,%rdi
movslq -0x4c(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdi
mov    -0x18(%rbp),%rcx
mov    $0x1,%esi
mov    $0x8,%edx
call   1030 <fread@plt>
add    -0x44(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1201 <main+0x91>
jmp    1251 <main+0xe1>
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    11f0 <main+0x80>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
cmpl   $0x20,-0x44(%rbp)
jge    1292 <main+0x122>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xd98(%rip),%rdi
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    141d <main+0x2ad>
lea    -0x70(%rbp),%rdi
mov    -0x20(%rbp),%rcx
mov    $0x1,%esi
mov    $0x20,%edx
call   1030 <fread@plt>
mov    %eax,-0x44(%rbp)
cmpl   $0x20,-0x44(%rbp)
jge    12cd <main+0x15d>
movslq -0x44(%rbp),%rax
movb   $0x0,-0x70(%rbp,%rax,1)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    12ac <main+0x13c>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
lea    -0x90(%rbp),%rdi
lea    -0x70(%rbp),%rsi
mov    $0x20,%edx
call   1070 <memcpy@plt>
lea    -0x90(%rbp),%rax
mov    %rax,-0x98(%rbp)
lea    -0x90(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0xa0(%rbp)
movl   $0x0,-0xc4(%rbp)
cmpl   $0x2,-0xc4(%rbp)
jge    13fe <main+0x28e>
lea    -0xc0(%rbp),%rdi
mov    -0xa0(%rbp),%rsi
mov    $0x10,%edx
call   1070 <memcpy@plt>
lea    -0xc0(%rbp),%rdi
add    $0x10,%rdi
mov    -0xa0(%rbp),%rsi
movslq -0xc4(%rbp),%rax
lea    -0x40(%rbp),%rdx
shl    $0x4,%rax
add    %rax,%rdx
movslq -0xc4(%rbp),%rax
lea    -0x40(%rbp),%rcx
shl    $0x4,%rax
add    %rax,%rcx
add    $0x8,%rcx
call   1060 <DES_encrypt_pair@plt>
movl   $0x0,-0xc8(%rbp)
cmpl   $0x10,-0xc8(%rbp)
jge    13d2 <main+0x262>
mov    -0x98(%rbp),%rax
movslq -0xc8(%rbp),%rcx
movzbl (%rax,%rcx,1),%edx
mov    -0xc8(%rbp),%eax
add    $0x10,%eax
cltq
movzbl -0xc0(%rbp,%rax,1),%ecx
ff
xor    %edx,%ecx
mov    %cl,-0xc0(%rbp,%rax,1)
mov    -0xc8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc8(%rbp)
jmp    1383 <main+0x213>
lea    -0x90(%rbp),%rdi
lea    -0xc0(%rbp),%rsi
mov    $0x20,%edx
call   1070 <memcpy@plt>
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    1315 <main+0x1a5>
lea    -0x90(%rbp),%rdi
mov    0x2bd4(%rip),%rax
mov    (%rax),%ecx
mov    $0x1,%esi
mov    $0x20,%edx
call   1090 <fwrite@plt>
mov    -0x4(%rbp),%eax
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    %rsi,%r13
cmp    $0x3,%edi
jne    1256 <main+0xd6>
mov    0x8(%r13),%rdi
lea    0xe6e(%rip),%rbx
mov    %rbx,%rsi
call   1090 <fopen@plt>
mov    %rax,%r14
mov    0x10(%r13),%rdi
mov    %rbx,%rsi
call   1090 <fopen@plt>
mov    %rax,0x28(%rsp)
mov    %rsp,%rdi
mov    $0x1,%r15d
mov    $0x1,%esi
mov    $0x8,%edx
mov    %r14,%rcx
call   1030 <fread@plt>
mov    %eax,%r12d
lea    0x8(%rsp),%rdi
mov    $0x1,%esi
mov    $0x8,%edx
mov    %r14,%rcx
call   1030 <fread@plt>
mov    %eax,%ebx
add    %r12d,%ebx
lea    0x10(%rsp),%rdi
mov    $0x1,%esi
mov    $0x8,%edx
mov    %r14,%rcx
call   1030 <fread@plt>
mov    %eax,%ebp
add    %ebx,%ebp
lea    0x18(%rsp),%rdi
mov    $0x1,%esi
mov    $0x8,%edx
mov    %r14,%rcx
call   1030 <fread@plt>
mov    %eax,%ebx
add    %ebp,%ebx
mov    %r14,%rdi
call   1040 <fclose@plt>
cmp    $0x1f,%ebx
jg     126b <main+0xeb>
mov    0x8(%r13),%rsi
lea    0xdcd(%rip),%rdi
call   1050 <printf@plt>
jmp    137b <main+0x1fb>
mov    0x0(%r13),%rsi
lea    0xd9f(%rip),%rdi
call   1050 <printf@plt>
jmp    1378 <main+0x1f8>
lea    0x70(%rsp),%rdi
mov    $0x1,%esi
mov    $0x20,%edx
mov    0x28(%rsp),%rbx
mov    %rbx,%rcx
call   1030 <fread@plt>
cmp    $0x1f,%eax
jg     12a9 <main+0x129>
movslq %eax,%rcx
lea    (%rsp,%rcx,1),%rdi
add    $0x70,%rdi
mov    $0x1f,%edx
sub    %eax,%edx
add    $0x1,%rdx
xor    %esi,%esi
call   1060 <memset@plt>
mov    %rbx,%rdi
call   1040 <fclose@plt>
lea    0x50(%rsp),%r14
lea    0x70(%rsp),%rsi
mov    %r14,%rdi
mov    $0x20,%edx
call   1080 <memcpy@plt>
lea    0x60(%rsp),%rbx
lea    0x40(%rsp),%r15
lea    0x30(%rsp),%rbp
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    $0x10,%edx
call   1080 <memcpy@plt>
lea    0x8(%rsp),%rcx
mov    %rsp,%rdx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1070 <DES_encrypt_pair@plt>
movaps 0x40(%rsp),%xmm0
xorps  0x50(%rsp),%xmm0
movaps %xmm0,0x40(%rsp)
mov    %r14,%rdi
mov    %rbp,%rsi
mov    $0x20,%edx
call   1080 <memcpy@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    $0x10,%edx
call   1080 <memcpy@plt>
lea    0x10(%rsp),%rdx
lea    0x18(%rsp),%rcx
mov    %r15,%rdi
mov    %rbx,%rsi
call   1070 <DES_encrypt_pair@plt>
movaps 0x40(%rsp),%xmm0
xorps  0x50(%rsp),%xmm0
movaps %xmm0,0x40(%rsp)
mov    %r14,%rdi
mov    %rbp,%rsi
mov    $0x20,%edx
call   1080 <memcpy@plt>
mov    0x2c7c(%rip),%rax
mov    (%rax),%ecx
mov    %r14,%rdi
mov    $0x1,%esi
mov    $0x20,%edx
call   10a0 <fwrite@plt>
xor    %r15d,%r15d
mov    %r15d,%eax
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [22 x i8] c"Usage: %s key input.\0A\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [32 x i8] c"Error: key %s not long enough.\0A\00"
@stdout = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca [2 x [2 x [8 x i8]]]
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca [32 x i8]
%13 = alloca [32 x i8]
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca [32 x i8]
%17 = alloca i32
%18 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%19 = load i32, i32* %4
%20 = icmp ne i32 %19, 3
br i1 %20, label %21, label %26
21: ; preds = %2
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 0
%24 = load i8*, i8** %23
%25 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* %24)
store i32 0, i32* %3
br label %147
26: ; preds = %2
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 1
%29 = load i8*, i8** %28
%30 = call i32* @fopen(i8* %29, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %30, i32** %6
%31 = load i8**, i8*** %5
%32 = getelementptr inbounds i8*, i8** %31, i64 2
%33 = load i8*, i8** %32
%34 = call i32* @fopen(i8* %33, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %34, i32** %7
store i32 0, i32* %9
store i32 0, i32* %10
br label %35
35: ; preds = %58, %26
%36 = load i32, i32* %10
%37 = icmp slt i32 %36, 2
br i1 %37, label %38, label %61
38: ; preds = %35
store i32 0, i32* %11
br label %39
39: ; preds = %54, %38
%40 = load i32, i32* %11
%41 = icmp slt i32 %40, 2
br i1 %41, label %42, label %57
42: ; preds = %39
%43 = load i32, i32* %10
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [2 x [2 x [8 x i8]]], [2 x [2 x [8 x i8]]]* %8, i64 0, i64 %44
%46 = load i32, i32* %11
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [2 x [8 x i8]], [2 x [8 x i8]]* %45, i64 0, i64 %47
%49 = getelementptr inbounds [8 x i8], [8 x i8]* %48, i64 0, i64 0
%50 = load i32*, i32** %6
%51 = call i32 @fread(i8* %49, i32 1, i32 8, i32* %50)
%52 = load i32, i32* %9
%53 = add nsw i32 %52, %51
store i32 %53, i32* %9
br label %54
54: ; preds = %42
%55 = load i32, i32* %11
%56 = add nsw i32 %55, 1
store i32 %56, i32* %11
br label %39
57: ; preds = %39
br label %58
58: ; preds = %57
%59 = load i32, i32* %10
%60 = add nsw i32 %59, 1
store i32 %60, i32* %10
br label %35
61: ; preds = %35
%62 = load i32*, i32** %6
%63 = call i32 @fclose(i32* %62)
%64 = load i32, i32* %9
%65 = icmp slt i32 %64, 32
br i1 %65, label %66, label %71
66: ; preds = %61
%67 = load i8**, i8*** %5
%68 = getelementptr inbounds i8*, i8** %67, i64 1
%69 = load i8*, i8** %68
%70 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i8* %69)
store i32 1, i32* %3
br label %147
71: ; preds = %61
%72 = getelementptr inbounds [32 x i8], [32 x i8]* %12, i64 0, i64 0
%73 = load i32*, i32** %7
%74 = call i32 @fread(i8* %72, i32 1, i32 32, i32* %73)
store i32 %74, i32* %9
br label %75
75: ; preds = %82, %71
%76 = load i32, i32* %9
%77 = icmp slt i32 %76, 32
br i1 %77, label %78, label %85
78: ; preds = %75
%79 = load i32, i32* %9
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [32 x i8], [32 x i8]* %12, i64 0, i64 %80
store i8 0, i8* %81
br label %82
82: ; preds = %78
%83 = load i32, i32* %9
%84 = add nsw i32 %83, 1
store i32 %84, i32* %9
br label %75
85: ; preds = %75
%86 = load i32*, i32** %7
%87 = call i32 @fclose(i32* %86)
%88 = getelementptr inbounds [32 x i8], [32 x i8]* %13, i64 0, i64 0
%89 = getelementptr inbounds [32 x i8], [32 x i8]* %12, i64 0, i64 0
%90 = call i32 @memcpy(i8* %88, i8* %89, i32 32)
%91 = getelementptr inbounds [32 x i8], [32 x i8]* %13, i64 0, i64 0
store i8* %91, i8** %14
%92 = getelementptr inbounds [32 x i8], [32 x i8]* %13, i64 0, i64 0
%93 = getelementptr inbounds i8, i8* %92, i64 16
store i8* %93, i8** %15
store i32 0, i32* %17
br label %94
94: ; preds = %140, %85
%95 = load i32, i32* %17
%96 = icmp slt i32 %95, 2
br i1 %96, label %97, label %143
97: ; preds = %94
%98 = getelementptr inbounds [32 x i8], [32 x i8]* %16, i64 0, i64 0
%99 = load i8*, i8** %15
%100 = call i32 @memcpy(i8* %98, i8* %99, i32 16)
%101 = getelementptr inbounds [32 x i8], [32 x i8]* %16, i64 0, i64 0
%102 = getelementptr inbounds i8, i8* %101, i64 16
%103 = load i8*, i8** %15
%104 = load i32, i32* %17
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds [2 x [2 x [8 x i8]]], [2 x [2 x [8 x i8]]]* %8, i64 0, i64 %105
%107 = getelementptr inbounds [2 x [8 x i8]], [2 x [8 x i8]]* %106, i64 0, i64 0
%108 = getelementptr inbounds [8 x i8], [8 x i8]* %107, i64 0, i64 0
%109 = load i32, i32* %17
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [2 x [2 x [8 x i8]]], [2 x [2 x [8 x i8]]]* %8, i64 0, i64 %110
%112 = getelementptr inbounds [2 x [8 x i8]], [2 x [8 x i8]]* %111, i64 0, i64 1
%113 = getelementptr inbounds [8 x i8], [8 x i8]* %112, i64 0, i64 0
%114 = call i32 @DES_encrypt_pair(i8* %102, i8* %103, i8* %108, i8* %113)
store i32 0, i32* %18
br label %115
115: ; preds = %133, %97
%116 = load i32, i32* %18
%117 = icmp slt i32 %116, 16
br i1 %117, label %118, label %136
118: ; preds = %115
%119 = load i8*, i8** %14
%120 = load i32, i32* %18
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds i8, i8* %119, i64 %121
%123 = load i8, i8* %122
%124 = zext i8 %123 to i32
%125 = load i32, i32* %18
%126 = add nsw i32 16, %125
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds [32 x i8], [32 x i8]* %16, i64 0, i64 %127
%129 = load i8, i8* %128
%130 = zext i8 %129 to i32
%131 = xor i32 %130, %124
%132 = trunc i32 %131 to i8
store i8 %132, i8* %128
br label %133
133: ; preds = %118
%134 = load i32, i32* %18
%135 = add nsw i32 %134, 1
store i32 %135, i32* %18
br label %115
136: ; preds = %115
%137 = getelementptr inbounds [32 x i8], [32 x i8]* %13, i64 0, i64 0
%138 = getelementptr inbounds [32 x i8], [32 x i8]* %16, i64 0, i64 0
%139 = call i32 @memcpy(i8* %137, i8* %138, i32 32)
br label %140
140: ; preds = %136
%141 = load i32, i32* %17
%142 = add nsw i32 %141, 1
store i32 %142, i32* %17
br label %94
143: ; preds = %94
%144 = getelementptr inbounds [32 x i8], [32 x i8]* %13, i64 0, i64 0
%145 = load i32, i32* @stdout
%146 = call i32 @fwrite(i8* %144, i32 1, i32 32, i32 %145)
br label %147
147: ; preds = %143, %66, %21
%148 = load i32, i32* %3
ret i32 %148
}

LLVM IR (-O2):
@.str = [22 x i8] c"Usage: %s key input.\0A\00"
@.str.1 = [3 x i8] c"rb\00"
@.str.2 = [32 x i8] c"Error: key %s not long enough.\0A\00"
@stdout = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [2 x [2 x [8 x i8]]]
%4 = alloca [32 x i8]
%5 = alloca [32 x i8]
%6 = alloca [32 x i8]
%7 = icmp eq i32 %0, 3
br i1 %7, label %11, label %8
8: ; preds = %2
%9 = load i8*, i8** %1
%10 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* %9)
br label %77
11: ; preds = %2
%12 = getelementptr inbounds i8*, i8** %1, i64 1
%13 = load i8*, i8** %12
%14 = tail call i32* @fopen(i8* %13, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%15 = getelementptr inbounds i8*, i8** %1, i64 2
%16 = load i8*, i8** %15
%17 = tail call i32* @fopen(i8* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%18 = getelementptr inbounds [2 x [2 x [8 x i8]]], [2 x [2 x [8 x i8]]]* %3, i64 0, i64 0, i64 0, i64 0
%19 = call i32 @fread(i8* %18, i32 1, i32 8, i32* %14)
%20 = getelementptr inbounds [2 x [2 x [8 x i8]]], [2 x [2 x [8 x i8]]]* %3, i64 0, i64 0, i64 1, i64 0
%21 = call i32 @fread(i8* %20, i32 1, i32 8, i32* %14)
%22 = add nsw i32 %21, %19
%23 = getelementptr inbounds [2 x [2 x [8 x i8]]], [2 x [2 x [8 x i8]]]* %3, i64 0, i64 1, i64 0, i64 0
%24 = call i32 @fread(i8* %23, i32 1, i32 8, i32* %14)
%25 = add nsw i32 %24, %22
%26 = getelementptr inbounds [2 x [2 x [8 x i8]]], [2 x [2 x [8 x i8]]]* %3, i64 0, i64 1, i64 1, i64 0
%27 = call i32 @fread(i8* %26, i32 1, i32 8, i32* %14)
%28 = add nsw i32 %27, %25
%29 = tail call i32 @fclose(i32* %14)
%30 = icmp slt i32 %28, 32
br i1 %30, label %31, label %34
31: ; preds = %11
%32 = load i8*, i8** %12
%33 = tail call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i8* %32)
br label %75
34: ; preds = %11
%35 = getelementptr inbounds [32 x i8], [32 x i8]* %4, i64 0, i64 0
%36 = call i32 @fread(i8* %35, i32 1, i32 32, i32* %17)
%37 = icmp slt i32 %36, 32
br i1 %37, label %38, label %44
38: ; preds = %34
%39 = sext i32 %36 to i64
%40 = getelementptr [32 x i8], [32 x i8]* %4, i64 0, i64 %39
%41 = sub i32 31, %36
%42 = zext i32 %41 to i64
%43 = add nuw nsw i64 %42, 1
br label %44
44: ; preds = %38, %34
%45 = tail call i32 @fclose(i32* %17)
%46 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 0
%47 = call i32 @memcpy(i8* %46, i8* %35, i32 32)
%48 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 16
%49 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 0
%50 = getelementptr inbounds [32 x i8], [32 x i8]* %6, i64 0, i64 16
%51 = call i32 @memcpy(i8* %49, i8* %48, i32 16)
%52 = getelementptr inbounds [2 x [2 x [8 x i8]]], [2 x [2 x [8 x i8]]]* %3, i64 0, i64 0, i64 0, i64 0
%53 = getelementptr inbounds [2 x [2 x [8 x i8]]], [2 x [2 x [8 x i8]]]* %3, i64 0, i64 0, i64 1, i64 0
%54 = call i32 @DES_encrypt_pair(i8* %50, i8* %48, i8* %52, i8* %53)
%55 = bitcast [32 x i8]* %5 to <16 x i8>*
%56 = load <16 x i8>, <16 x i8>* %55
%57 = bitcast i8* %50 to <16 x i8>*
%58 = load <16 x i8>, <16 x i8>* %57
%59 = xor <16 x i8> %58, %56
%60 = bitcast i8* %50 to <16 x i8>*
store <16 x i8> %59, <16 x i8>* %60
%61 = call i32 @memcpy(i8* %46, i8* %49, i32 32)
%62 = call i32 @memcpy(i8* %49, i8* %48, i32 16)
%63 = getelementptr inbounds [2 x [2 x [8 x i8]]], [2 x [2 x [8 x i8]]]* %3, i64 0, i64 1, i64 0, i64 0
%64 = getelementptr inbounds [2 x [2 x [8 x i8]]], [2 x [2 x [8 x i8]]]* %3, i64 0, i64 1, i64 1, i64 0
%65 = call i32 @DES_encrypt_pair(i8* %50, i8* %48, i8* %63, i8* %64)
%66 = bitcast [32 x i8]* %5 to <16 x i8>*
%67 = load <16 x i8>, <16 x i8>* %66
%68 = bitcast i8* %50 to <16 x i8>*
%69 = load <16 x i8>, <16 x i8>* %68
%70 = xor <16 x i8> %69, %67
%71 = bitcast i8* %50 to <16 x i8>*
store <16 x i8> %70, <16 x i8>* %71
%72 = call i32 @memcpy(i8* %46, i8* %49, i32 32)
%73 = load i32, i32* @stdout
%74 = call i32 @fwrite(i8* %46, i32 1, i32 32, i32 %73)
br label %75
75: ; preds = %44, %31
%76 = phi i32 [ 1, %31 ], [ 0, %44 ]
br label %77
77: ; preds = %75, %8
%78 = phi i32 [ 0, %8 ], [ %76, %75 ]
ret i32 %78
}