#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*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage(void) {
  fprintf(stderr, "aes_cbc_elb: tool to compute CBC-MAC-ELB "
                  "(Encrypt-last-block) using AES]\n");
  fprintf(stderr, "See http://en.wikipedia.org/wiki/CBC-MAC\n");
  fprintf(
      stderr,
      "Usage: aes_cbc_elb -m <128 | 192 | 256> -k <key in hex format, length "
      "is 16, 24 or 32 bytes> -e <key in hex fomat> [FILE]\n"
      "-m Mode for the AES encryption\n"
      "-k Key for the AES encryption of length 16, 24 or 32 bytes\n"
      "-e Key for the final encryption (Encrypt-last-block)\n"
      "FILE File for which CBC_EMAC will be computed - if not specified, STDIN "
      "will be used\n"
      "Example:\n"
      "aes_cbc_elb -m 128 -k 859d1c778cdfe4ef7c2fecae2f69e04e -e "
      "d2a60282e82d69c21d7e882d5a9b56d8 /dev/null\n"
      "head -c 64 /dev/zero | aes_cbc_elb -m 128 -k "
      "859d1c778cdfe4ef7c2fecae2f69e04e -e d2a60282e82d69c21d7e882d5a9b56d8\n"
      "pv --wait </dev/zero | aes_cbc_elb -m 128 -k "
      "859d1c778cdfe4ef7c2fecae2f69e04e -e d2a60282e82d69c21d7e882d5a9b56d8\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2eb0(%rip),%rax
mov    (%rax),%edi
lea    0xf11(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%edi
lea    0xf26(%rip),%rsi
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    0x2ec8(%rip),%rbx
mov    (%rbx),%edi
lea    0xedf(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf1b(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf37(%rip),%rsi
pop    %rbx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [74 x i8] c"aes_cbc_elb: tool to compute CBC-MAC-ELB (Encrypt-last-block) using AES]\0A\00"
@.str.1 = [42 x i8] c"See http://en.wikipedia.org/wiki/CBC-MAC\0A\00"
@.str.2 = [689 x i8] c"Usage: aes_cbc_elb -m <128 | 192 | 256> -k <key in hex format, length is 16, 24 or 32 bytes> -e <key in hex fomat> [FILE]\0A-m Mode for the AES encryption\0A-k Key for the AES encryption of length 16, 24 or 32 bytes\0A-e Key for the final encryption (Encrypt-last-block)\0AFILE File for which CBC_EMAC will be computed - if not specified, STDIN will be used\0AExample:\0Aaes_cbc_elb -m 128 -k 859d1c778cdfe4ef7c2fecae2f69e04e -e d2a60282e82d69c21d7e882d5a9b56d8 /dev/null\0Ahead -c 64 /dev/zero | aes_cbc_elb -m 128 -k 859d1c778cdfe4ef7c2fecae2f69e04e -e d2a60282e82d69c21d7e882d5a9b56d8\0Apv --wait </dev/zero | aes_cbc_elb -m 128 -k 859d1c778cdfe4ef7c2fecae2f69e04e -e d2a60282e82d69c21d7e882d5a9b56d8\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([689 x i8], [689 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [74 x i8] c"aes_cbc_elb: tool to compute CBC-MAC-ELB (Encrypt-last-block) using AES]\0A\00"
@.str.1 = [42 x i8] c"See http://en.wikipedia.org/wiki/CBC-MAC\0A\00"
@.str.2 = [689 x i8] c"Usage: aes_cbc_elb -m <128 | 192 | 256> -k <key in hex format, length is 16, 24 or 32 bytes> -e <key in hex fomat> [FILE]\0A-m Mode for the AES encryption\0A-k Key for the AES encryption of length 16, 24 or 32 bytes\0A-e Key for the final encryption (Encrypt-last-block)\0AFILE File for which CBC_EMAC will be computed - if not specified, STDIN will be used\0AExample:\0Aaes_cbc_elb -m 128 -k 859d1c778cdfe4ef7c2fecae2f69e04e -e d2a60282e82d69c21d7e882d5a9b56d8 /dev/null\0Ahead -c 64 /dev/zero | aes_cbc_elb -m 128 -k 859d1c778cdfe4ef7c2fecae2f69e04e -e d2a60282e82d69c21d7e882d5a9b56d8\0Apv --wait </dev/zero | aes_cbc_elb -m 128 -k 859d1c778cdfe4ef7c2fecae2f69e04e -e d2a60282e82d69c21d7e882d5a9b56d8\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([689 x i8], [689 x i8]* @.str.2, i64 0, i64 0))
ret void
}