void des(char *data, char *key, int encrypt, char *cbc_block) {
  if (encrypt) {
    XOR(cbc_block, data, data, 64);
  }
  char *lmessage = (char *)malloc(sizeof(char) * 32);
  char *rmessage = (char *)malloc(sizeof(char) * 32);
  char *temp = (char *)malloc(sizeof(char) * 32);
  char **subkeys = (char **)malloc(sizeof(char *) * 16);
  int i;
  for (i = 0; i < 16; i++) {
    subkeys[i] = (char *)malloc(sizeof(char) * 48);
  }
  des_generate_subkeys(key, subkeys);
  initial_permute_and_split(data, lmessage, rmessage);
  if (encrypt) {
    int i;
    for (i = 0; i < 16; i++) {
      feistel(lmessage, rmessage, subkeys[i]);
    }
  } else {
    int i;
    for (i = 15; i >= 0; i--) {
      feistel(lmessage, rmessage, subkeys[i]);
    }
  }
  temp = lmessage;
  lmessage = rmessage;
  rmessage = temp;
  final_permute_and_join(lmessage, rmessage, data);
  if (encrypt == 0) {
    XOR(cbc_block, data, data, 64);
  }
  free(lmessage);
  free(rmessage);
  free(temp);
  for (i = 0; i < 16; i++)
    free(subkeys[i]);
  free(subkeys);
}


x86 assembly (clang, -O0):
<des>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     11a9 <des+0x39>
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x8(%rbp),%rdx
mov    $0x40,%ecx
mov    $0x0,%al
call   1070 <XOR@plt>
mov    $0x20,%edi
call   1080 <malloc@plt>
mov    %rax,-0x28(%rbp)
mov    $0x20,%edi
call   1080 <malloc@plt>
mov    %rax,-0x30(%rbp)
mov    $0x20,%edi
call   1080 <malloc@plt>
mov    %rax,-0x38(%rbp)
mov    $0x80,%edi
call   1080 <malloc@plt>
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
cmpl   $0x10,-0x44(%rbp)
jge    1219 <des+0xa9>
mov    $0x30,%edi
call   1080 <malloc@plt>
mov    %rax,%rdx
mov    -0x40(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    11e8 <des+0x78>
mov    -0x10(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    $0x0,%al
call   1050 <des_generate_subkeys@plt>
mov    -0x8(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    $0x0,%al
call   1060 <initial_permute_and_split@plt>
cmpl   $0x0,-0x14(%rbp)
je     1284 <des+0x114>
movl   $0x0,-0x48(%rbp)
cmpl   $0x10,-0x48(%rbp)
jge    127f <des+0x10f>
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x40(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
mov    $0x0,%al
call   1090 <feistel@plt>
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    124c <des+0xdc>
jmp    12c3 <des+0x153>
movl   $0xf,-0x4c(%rbp)
cmpl   $0x0,-0x4c(%rbp)
jl     12be <des+0x14e>
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x40(%rbp),%rax
movslq -0x4c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
mov    $0x0,%al
call   1090 <feistel@plt>
mov    -0x4c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4c(%rbp)
jmp    128b <des+0x11b>
jmp    12c3 <des+0x153>
mov    -0x28(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x8(%rbp),%rdx
mov    $0x0,%al
call   1030 <final_permute_and_join@plt>
cmpl   $0x0,-0x14(%rbp)
jne    1310 <des+0x1a0>
mov    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x8(%rbp),%rdx
mov    $0x40,%ecx
mov    $0x0,%al
call   1070 <XOR@plt>
mov    -0x28(%rbp),%rdi
call   1040 <free@plt>
mov    -0x30(%rbp),%rdi
call   1040 <free@plt>
mov    -0x38(%rbp),%rdi
call   1040 <free@plt>
movl   $0x0,-0x44(%rbp)
cmpl   $0x10,-0x44(%rbp)
jge    135b <des+0x1eb>
mov    -0x40(%rbp),%rax
movslq -0x44(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1040 <free@plt>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1332 <des+0x1c2>
mov    -0x40(%rbp),%rdi
call   1040 <free@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<des>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rcx,%rbx
mov    %edx,%ebp
mov    %rsi,%r13
mov    %rdi,%r14
test   %edx,%edx
je     119f <des+0x2f>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r14,%rdx
mov    $0x40,%ecx
xor    %eax,%eax
call   1070 <XOR@plt>
mov    %rbx,(%rsp)
mov    $0x20,%edi
call   1080 <malloc@plt>
mov    %rax,%r15
mov    $0x20,%edi
call   1080 <malloc@plt>
mov    %rax,%r12
mov    $0x80,%edi
call   1080 <malloc@plt>
mov    %rax,%rbx
mov    $0x30,%edi
call   1080 <malloc@plt>
mov    %rax,(%rbx)
mov    $0x30,%edi
call   1080 <malloc@plt>
mov    %rax,0x8(%rbx)
mov    $0x30,%edi
call   1080 <malloc@plt>
mov    %rax,0x10(%rbx)
mov    $0x30,%edi
call   1080 <malloc@plt>
mov    %rax,0x18(%rbx)
mov    $0x30,%edi
call   1080 <malloc@plt>
mov    %rax,0x20(%rbx)
mov    $0x30,%edi
call   1080 <malloc@plt>
mov    %rax,0x28(%rbx)
mov    $0x30,%edi
call   1080 <malloc@plt>
mov    %rax,0x30(%rbx)
mov    $0x30,%edi
call   1080 <malloc@plt>
mov    %rax,0x38(%rbx)
mov    $0x30,%edi
call   1080 <malloc@plt>
mov    %rax,0x40(%rbx)
mov    $0x30,%edi
call   1080 <malloc@plt>
mov    %rax,0x48(%rbx)
mov    $0x30,%edi
call   1080 <malloc@plt>
mov    %rax,0x50(%rbx)
mov    $0x30,%edi
call   1080 <malloc@plt>
mov    %rax,0x58(%rbx)
mov    $0x30,%edi
call   1080 <malloc@plt>
mov    %rax,0x60(%rbx)
mov    $0x30,%edi
call   1080 <malloc@plt>
mov    %rax,0x68(%rbx)
mov    $0x30,%edi
call   1080 <malloc@plt>
mov    %rax,0x70(%rbx)
mov    $0x30,%edi
call   1080 <malloc@plt>
mov    %rax,0x78(%rbx)
mov    %r13,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <des_generate_subkeys@plt>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1060 <initial_permute_and_split@plt>
test   %ebp,%ebp
je     13f2 <des+0x282>
mov    (%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x8(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x10(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x18(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x20(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x28(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x30(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x38(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x40(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x48(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x50(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x58(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x60(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x68(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x70(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x78(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    %r12,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <final_permute_and_join@plt>
jmp    1527 <des+0x3b7>
mov    0x78(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x70(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x68(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x60(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x58(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x50(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x48(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x40(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x38(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x30(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x28(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x20(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x18(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x10(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    0x8(%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    (%rbx),%rdx
mov    %r15,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1090 <feistel@plt>
mov    %r12,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <final_permute_and_join@plt>
mov    (%rsp),%rdi
mov    %r14,%rsi
mov    %r14,%rdx
mov    $0x40,%ecx
xor    %eax,%eax
call   1070 <XOR@plt>
mov    %r12,%rdi
call   1040 <free@plt>
mov    %r15,%rdi
call   1040 <free@plt>
mov    %r15,%rdi
call   1040 <free@plt>
mov    (%rbx),%rdi
call   1040 <free@plt>
mov    0x8(%rbx),%rdi
call   1040 <free@plt>
mov    0x10(%rbx),%rdi
call   1040 <free@plt>
mov    0x18(%rbx),%rdi
call   1040 <free@plt>
mov    0x20(%rbx),%rdi
call   1040 <free@plt>
mov    0x28(%rbx),%rdi
call   1040 <free@plt>
mov    0x30(%rbx),%rdi
call   1040 <free@plt>
mov    0x38(%rbx),%rdi
call   1040 <free@plt>
mov    0x40(%rbx),%rdi
call   1040 <free@plt>
mov    0x48(%rbx),%rdi
call   1040 <free@plt>
mov    0x50(%rbx),%rdi
call   1040 <free@plt>
mov    0x58(%rbx),%rdi
call   1040 <free@plt>
mov    0x60(%rbx),%rdi
call   1040 <free@plt>
mov    0x68(%rbx),%rdi
call   1040 <free@plt>
mov    0x70(%rbx),%rdi
call   1040 <free@plt>
mov    0x78(%rbx),%rdi
call   1040 <free@plt>
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <free@plt>

LLVM IR (-O0):
define void @des(i8* %0, i8* %1, i32 %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8**
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i8* %3, i8** %8
%16 = load i32, i32* %7
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %23
18: ; preds = %4
%19 = load i8*, i8** %8
%20 = load i8*, i8** %5
%21 = load i8*, i8** %5
%22 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @XOR to i32 (i8*, i8*, i8*, i32, ...)*)(i8* %19, i8* %20, i8* %21, i32 64)
br label %23
23: ; preds = %18, %4
%24 = call i8* @malloc(i64 32)
store i8* %24, i8** %9
%25 = call i8* @malloc(i64 32)
store i8* %25, i8** %10
%26 = call i8* @malloc(i64 32)
store i8* %26, i8** %11
%27 = call i8* @malloc(i64 128)
%28 = bitcast i8* %27 to i8**
store i8** %28, i8*** %12
store i32 0, i32* %13
br label %29
29: ; preds = %38, %23
%30 = load i32, i32* %13
%31 = icmp slt i32 %30, 16
br i1 %31, label %32, label %41
32: ; preds = %29
%33 = call i8* @malloc(i64 48)
%34 = load i8**, i8*** %12
%35 = load i32, i32* %13
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8*, i8** %34, i64 %36
store i8* %33, i8** %37
br label %38
38: ; preds = %32
%39 = load i32, i32* %13
%40 = add nsw i32 %39, 1
store i32 %40, i32* %13
br label %29
41: ; preds = %29
%42 = load i8*, i8** %6
%43 = load i8**, i8*** %12
%44 = call i32 (i8*, i8**, ...) bitcast (i32 (...)* @des_generate_subkeys to i32 (i8*, i8**, ...)*)(i8* %42, i8** %43)
%45 = load i8*, i8** %5
%46 = load i8*, i8** %9
%47 = load i8*, i8** %10
%48 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @initial_permute_and_split to i32 (i8*, i8*, i8*, ...)*)(i8* %45, i8* %46, i8* %47)
%49 = load i32, i32* %7
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %68
51: ; preds = %41
store i32 0, i32* %14
br label %52
52: ; preds = %64, %51
%53 = load i32, i32* %14
%54 = icmp slt i32 %53, 16
br i1 %54, label %55, label %67
55: ; preds = %52
%56 = load i8*, i8** %9
%57 = load i8*, i8** %10
%58 = load i8**, i8*** %12
%59 = load i32, i32* %14
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i8*, i8** %58, i64 %60
%62 = load i8*, i8** %61
%63 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %56, i8* %57, i8* %62)
br label %64
64: ; preds = %55
%65 = load i32, i32* %14
%66 = add nsw i32 %65, 1
store i32 %66, i32* %14
br label %52
67: ; preds = %52
br label %85
68: ; preds = %41
store i32 15, i32* %15
br label %69
69: ; preds = %81, %68
%70 = load i32, i32* %15
%71 = icmp sge i32 %70, 0
br i1 %71, label %72, label %84
72: ; preds = %69
%73 = load i8*, i8** %9
%74 = load i8*, i8** %10
%75 = load i8**, i8*** %12
%76 = load i32, i32* %15
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8*, i8** %75, i64 %77
%79 = load i8*, i8** %78
%80 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %73, i8* %74, i8* %79)
br label %81
81: ; preds = %72
%82 = load i32, i32* %15
%83 = add nsw i32 %82, -1
store i32 %83, i32* %15
br label %69
84: ; preds = %69
br label %85
85: ; preds = %84, %67
%86 = load i8*, i8** %9
store i8* %86, i8** %11
%87 = load i8*, i8** %10
store i8* %87, i8** %9
%88 = load i8*, i8** %11
store i8* %88, i8** %10
%89 = load i8*, i8** %9
%90 = load i8*, i8** %10
%91 = load i8*, i8** %5
%92 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @final_permute_and_join to i32 (i8*, i8*, i8*, ...)*)(i8* %89, i8* %90, i8* %91)
%93 = load i32, i32* %7
%94 = icmp eq i32 %93, 0
br i1 %94, label %95, label %100
95: ; preds = %85
%96 = load i8*, i8** %8
%97 = load i8*, i8** %5
%98 = load i8*, i8** %5
%99 = call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @XOR to i32 (i8*, i8*, i8*, i32, ...)*)(i8* %96, i8* %97, i8* %98, i32 64)
br label %100
100: ; preds = %95, %85
%101 = load i8*, i8** %9
%102 = load i8*, i8** %10
%103 = load i8*, i8** %11
store i32 0, i32* %13
br label %104
104: ; preds = %113, %100
%105 = load i32, i32* %13
%106 = icmp slt i32 %105, 16
br i1 %106, label %107, label %116
107: ; preds = %104
%108 = load i8**, i8*** %12
%109 = load i32, i32* %13
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i8*, i8** %108, i64 %110
%112 = load i8*, i8** %111
br label %113
113: ; preds = %107
%114 = load i32, i32* %13
%115 = add nsw i32 %114, 1
store i32 %115, i32* %13
br label %104
116: ; preds = %104
%117 = load i8**, i8*** %12
%118 = bitcast i8** %117 to i8*
ret void
}

LLVM IR (-O2):
define void @des(i8* %0, i8* %1, i32 %2, i8* %3) {
%5 = icmp eq i32 %2, 0
br i1 %5, label %8, label %6
6: ; preds = %4
%7 = tail call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @XOR to i32 (i8*, i8*, i8*, i32, ...)*)(i8* %3, i8* %0, i8* %0, i32 64)
br label %8
8: ; preds = %6, %4
%9 = tail call dereferenceable_or_null(32) i8* @malloc(i64 32)
%10 = tail call dereferenceable_or_null(32) i8* @malloc(i64 32)
%11 = tail call dereferenceable_or_null(128) i8* @malloc(i64 128)
%12 = bitcast i8* %11 to i8**
%13 = tail call dereferenceable_or_null(48) i8* @malloc(i64 48)
store i8* %13, i8** %12
%14 = tail call dereferenceable_or_null(48) i8* @malloc(i64 48)
%15 = getelementptr inbounds i8*, i8** %12, i64 1
store i8* %14, i8** %15
%16 = tail call dereferenceable_or_null(48) i8* @malloc(i64 48)
%17 = getelementptr inbounds i8*, i8** %12, i64 2
store i8* %16, i8** %17
%18 = tail call dereferenceable_or_null(48) i8* @malloc(i64 48)
%19 = getelementptr inbounds i8*, i8** %12, i64 3
store i8* %18, i8** %19
%20 = tail call dereferenceable_or_null(48) i8* @malloc(i64 48)
%21 = getelementptr inbounds i8*, i8** %12, i64 4
store i8* %20, i8** %21
%22 = tail call dereferenceable_or_null(48) i8* @malloc(i64 48)
%23 = getelementptr inbounds i8*, i8** %12, i64 5
store i8* %22, i8** %23
%24 = tail call dereferenceable_or_null(48) i8* @malloc(i64 48)
%25 = getelementptr inbounds i8*, i8** %12, i64 6
store i8* %24, i8** %25
%26 = tail call dereferenceable_or_null(48) i8* @malloc(i64 48)
%27 = getelementptr inbounds i8*, i8** %12, i64 7
store i8* %26, i8** %27
%28 = tail call dereferenceable_or_null(48) i8* @malloc(i64 48)
%29 = getelementptr inbounds i8*, i8** %12, i64 8
store i8* %28, i8** %29
%30 = tail call dereferenceable_or_null(48) i8* @malloc(i64 48)
%31 = getelementptr inbounds i8*, i8** %12, i64 9
store i8* %30, i8** %31
%32 = tail call dereferenceable_or_null(48) i8* @malloc(i64 48)
%33 = getelementptr inbounds i8*, i8** %12, i64 10
store i8* %32, i8** %33
%34 = tail call dereferenceable_or_null(48) i8* @malloc(i64 48)
%35 = getelementptr inbounds i8*, i8** %12, i64 11
store i8* %34, i8** %35
%36 = tail call dereferenceable_or_null(48) i8* @malloc(i64 48)
%37 = getelementptr inbounds i8*, i8** %12, i64 12
store i8* %36, i8** %37
%38 = tail call dereferenceable_or_null(48) i8* @malloc(i64 48)
%39 = getelementptr inbounds i8*, i8** %12, i64 13
store i8* %38, i8** %39
%40 = tail call dereferenceable_or_null(48) i8* @malloc(i64 48)
%41 = getelementptr inbounds i8*, i8** %12, i64 14
store i8* %40, i8** %41
%42 = tail call dereferenceable_or_null(48) i8* @malloc(i64 48)
%43 = getelementptr inbounds i8*, i8** %12, i64 15
store i8* %42, i8** %43
%44 = tail call i32 (i8*, i8**, ...) bitcast (i32 (...)* @des_generate_subkeys to i32 (i8*, i8**, ...)*)(i8* %1, i8** %12)
%45 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @initial_permute_and_split to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %9, i8* %10)
br i1 %5, label %80, label %46
46: ; preds = %8
%47 = load i8*, i8** %12
%48 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %47)
%49 = load i8*, i8** %15
%50 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %49)
%51 = load i8*, i8** %17
%52 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %51)
%53 = load i8*, i8** %19
%54 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %53)
%55 = load i8*, i8** %21
%56 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %55)
%57 = load i8*, i8** %23
%58 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %57)
%59 = load i8*, i8** %25
%60 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %59)
%61 = load i8*, i8** %27
%62 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %61)
%63 = load i8*, i8** %29
%64 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %63)
%65 = load i8*, i8** %31
%66 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %65)
%67 = load i8*, i8** %33
%68 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %67)
%69 = load i8*, i8** %35
%70 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %69)
%71 = load i8*, i8** %37
%72 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %71)
%73 = load i8*, i8** %39
%74 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %73)
%75 = load i8*, i8** %41
%76 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %75)
%77 = load i8*, i8** %43
%78 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %77)
%79 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @final_permute_and_join to i32 (i8*, i8*, i8*, ...)*)(i8* %10, i8* %9, i8* %0)
br label %115
80: ; preds = %8
%81 = load i8*, i8** %43
%82 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %81)
%83 = load i8*, i8** %41
%84 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %83)
%85 = load i8*, i8** %39
%86 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %85)
%87 = load i8*, i8** %37
%88 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %87)
%89 = load i8*, i8** %35
%90 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %89)
%91 = load i8*, i8** %33
%92 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %91)
%93 = load i8*, i8** %31
%94 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %93)
%95 = load i8*, i8** %29
%96 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %95)
%97 = load i8*, i8** %27
%98 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %97)
%99 = load i8*, i8** %25
%100 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %99)
%101 = load i8*, i8** %23
%102 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %101)
%103 = load i8*, i8** %21
%104 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %103)
%105 = load i8*, i8** %19
%106 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %105)
%107 = load i8*, i8** %17
%108 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %107)
%109 = load i8*, i8** %15
%110 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %109)
%111 = load i8*, i8** %12
%112 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @feistel to i32 (i8*, i8*, i8*, ...)*)(i8* %9, i8* %10, i8* %111)
%113 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @final_permute_and_join to i32 (i8*, i8*, i8*, ...)*)(i8* %10, i8* %9, i8* %0)
%114 = tail call i32 (i8*, i8*, i8*, i32, ...) bitcast (i32 (...)* @XOR to i32 (i8*, i8*, i8*, i32, ...)*)(i8* %3, i8* %0, i8* %0, i32 64)
br label %115
115: ; preds = %46, %80
tail call void @free(i8* %10)
tail call void @free(i8* %9)
tail call void @free(i8* %9)
%116 = load i8*, i8** %12
tail call void @free(i8* %116)
%117 = load i8*, i8** %15
tail call void @free(i8* %117)
%118 = load i8*, i8** %17
tail call void @free(i8* %118)
%119 = load i8*, i8** %19
tail call void @free(i8* %119)
%120 = load i8*, i8** %21
tail call void @free(i8* %120)
%121 = load i8*, i8** %23
tail call void @free(i8* %121)
%122 = load i8*, i8** %25
tail call void @free(i8* %122)
%123 = load i8*, i8** %27
tail call void @free(i8* %123)
%124 = load i8*, i8** %29
tail call void @free(i8* %124)
%125 = load i8*, i8** %31
tail call void @free(i8* %125)
%126 = load i8*, i8** %33
tail call void @free(i8* %126)
%127 = load i8*, i8** %35
tail call void @free(i8* %127)
%128 = load i8*, i8** %37
tail call void @free(i8* %128)
%129 = load i8*, i8** %39
tail call void @free(i8* %129)
%130 = load i8*, i8** %41
tail call void @free(i8* %130)
%131 = load i8*, i8** %43
tail call void @free(i8* %131)
tail call void @free(i8* %11)
ret void
}