#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 print_usage() {
  printf("usage: mtcmcutool -d <encoded file name> <decoded file name>\n");
  printf("         to decode MTC MCU image to plain binary, where:\n");
  printf("           <encoded file name> is original encoded MCU file name "
         "from\n");
  printf("                               firmware package (usually simply "
         "\"mcu.img\").\n");
  printf("           <decoded file name> is file name where to save decoded "
         "MCU\n");
  printf("                               image (you can use \"mcu.bin\" for "
         "example).\n");
  printf("\n");
  printf("       mtcmcutool -e <decoded file name> <encoded file name>\n");
  printf("         to encode plain binary MCU image to MTC format, where:\n");
  printf("           <decoded file name> is plain binary MCU image file name "
         "to\n");
  printf("                               encode(\"mcu.bin\" for example).\n");
  printf(
      "           <encoded file name> is resultimg encoded MCU image file\n");
  printf("                               name in MTC format (usually "
         "\"mcu.img\").\n");
  printf("\n");
  printf("       mtcmcutool -v <file name>\n");
  printf("         to try to heuristically determine and print MCU version, "
         "where:\n");
  printf("           <file name> is encoded or plain MCU image file name that "
         "you\n");
  printf("                       want to try to extract version information "
         "from.\n");
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf17(%rip),%rdi
call   1030 <printf@plt>
lea    0xf45(%rip),%rdi
call   1030 <printf@plt>
lea    0xf80(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc1(%rip),%rdi
call   1030 <printf@plt>
lea    0xffc(%rip),%rdi
call   1030 <printf@plt>
lea    0x11ca(%rip),%rdi
call   1030 <printf@plt>
lea    0x102f(%rip),%rdi
call   1030 <printf@plt>
lea    0x1061(%rip),%rdi
call   1030 <printf@plt>
lea    0x1096(%rip),%rdi
call   1030 <printf@plt>
lea    0x10d1(%rip),%rdi
call   1030 <printf@plt>
lea    0x1104(%rip),%rdi
call   1030 <printf@plt>
lea    0x113c(%rip),%rdi
call   1030 <printf@plt>
lea    0x1176(%rip),%rdi
call   1030 <printf@plt>
lea    0x116c(%rip),%rdi
call   1030 <printf@plt>
lea    0x1182(%rip),%rdi
call   1030 <printf@plt>
lea    0x11c0(%rip),%rdi
call   1030 <printf@plt>
lea    0x11fd(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
lea    0xf09(%rip),%rdi
call   1040 <puts@plt>
lea    0xf36(%rip),%rdi
call   1040 <puts@plt>
lea    0xf70(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb0(%rip),%rdi
call   1040 <puts@plt>
lea    0xfea(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x101e(%rip),%rdi
call   1040 <puts@plt>
lea    0x104f(%rip),%rdi
call   1040 <puts@plt>
lea    0x1083(%rip),%rdi
call   1040 <puts@plt>
lea    0x10bd(%rip),%rdi
call   1040 <puts@plt>
lea    0x10ef(%rip),%rdi
call   1040 <puts@plt>
lea    0x1126(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1157(%rip),%rdi
call   1040 <puts@plt>
lea    0x116c(%rip),%rdi
call   1040 <puts@plt>
lea    0x11a9(%rip),%rdi
call   1040 <puts@plt>
lea    0x11e5(%rip),%rdi
pop    %rax
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [62 x i8] c"usage: mtcmcutool -d <encoded file name> <decoded file name>\0A\00"
@.str.1 = [58 x i8] c" to decode MTC MCU image to plain binary, where:\0A\00"
@.str.2 = [71 x i8] c" <encoded file name> is original encoded MCU file name from\0A\00"
@.str.3 = [77 x i8] c" firmware package (usually simply \22mcu.img\22).\0A\00"
@.str.4 = [71 x i8] c" <decoded file name> is file name where to save decoded MCU\0A\00"
@.str.5 = [75 x i8] c" image (you can use \22mcu.bin\22 for example).\0A\00"
@.str.6 = [2 x i8] c"\0A\00"
@.str.7 = [62 x i8] c" mtcmcutool -e <decoded file name> <encoded file name>\0A\00"
@.str.8 = [65 x i8] c" to encode plain binary MCU image to MTC format, where:\0A\00"
@.str.9 = [71 x i8] c" <decoded file name> is plain binary MCU image file name to\0A\00"
@.str.10 = [63 x i8] c" encode(\22mcu.bin\22 for example).\0A\00"
@.str.11 = [68 x i8] c" <encoded file name> is resultimg encoded MCU image file\0A\00"
@.str.12 = [72 x i8] c" name in MTC format (usually \22mcu.img\22).\0A\00"
@.str.13 = [34 x i8] c" mtcmcutool -v <file name>\0A\00"
@.str.14 = [74 x i8] c" to try to heuristically determine and print MCU version, where:\0A\00"
@.str.15 = [73 x i8] c" <file name> is encoded or plain MCU image file name that you\0A\00"
@.str.16 = [73 x i8] c" want to try to extract version information from.\0A\00"
define void @print_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.13, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.14, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.15, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.16, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [61 x i8] c"usage: mtcmcutool -d <encoded file name> <decoded file name>\00"
@str.17 = [57 x i8] c" to decode MTC MCU image to plain binary, where:\00"
@str.18 = [70 x i8] c" <encoded file name> is original encoded MCU file name from\00"
@str.19 = [76 x i8] c" firmware package (usually simply \22mcu.img\22).\00"
@str.20 = [70 x i8] c" <decoded file name> is file name where to save decoded MCU\00"
@str.21 = [74 x i8] c" image (you can use \22mcu.bin\22 for example).\00"
@str.22 = [61 x i8] c" mtcmcutool -e <decoded file name> <encoded file name>\00"
@str.23 = [64 x i8] c" to encode plain binary MCU image to MTC format, where:\00"
@str.24 = [70 x i8] c" <decoded file name> is plain binary MCU image file name to\00"
@str.25 = [62 x i8] c" encode(\22mcu.bin\22 for example).\00"
@str.26 = [67 x i8] c" <encoded file name> is resultimg encoded MCU image file\00"
@str.27 = [71 x i8] c" name in MTC format (usually \22mcu.img\22).\00"
@str.28 = [33 x i8] c" mtcmcutool -v <file name>\00"
@str.29 = [73 x i8] c" to try to heuristically determine and print MCU version, where:\00"
@str.30 = [72 x i8] c" <file name> is encoded or plain MCU image file name that you\00"
@str.31 = [72 x i8] c" want to try to extract version information from.\00"
define void @print_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.17, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.18, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.19, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.20, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.21, i64 0, i64 0))
%7 = tail call i32 @putchar(i32 10)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.22, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.23, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.24, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.25, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.26, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.27, i64 0, i64 0))
%14 = tail call i32 @putchar(i32 10)
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.28, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.29, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.30, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.31, i64 0, i64 0))
ret void
}