#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*/ cleanup_exit(int);
int /*<<< orphan*/ printf(char *);
void show_usage(int exit_code) {
  printf(
      "seama"
      " version "
      "0.20"
      "\n"
      "usage: "
      "seama"
      " [OPTIONS]\n"
      "  -h                 show this help message.\n"
      "  -v                 verbose mode.\n"
      "  -m {META data}     META data.\n"
      "  -d {file}          dump the info of the seama file.\n"
      "  -i {input file}    image file name.\n"
      "  -s {file}          Seal the images to the seama file.\n"
      "  -x {seama file}    Extract the seama file.\n"
      "\n"
      "  SEAMA can pack the input file (with -i) into a seama file.\n"
      "  ex: seama -i target.file\n"
      "  SEAMA can also seal multiple seama files into a single seama file.\n"
      "  ex: seama -s final.file -i taget1.seama -i target2.seama\n"
      "  To extract the raw image from SEAMA, you need to specify the meta.\n"
      "  The first image match the specified meta will be extract to\n"
      "  the output file which was specified with '-x'.\n"
      "  ex: seama -x output -i seama.image -m file=sealpac\n");
  cleanup_exit(exit_code);
}


x86 assembly (clang, -O0):
<show_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xece(%rip),%rdi
call   1040 <printf@plt>
mov    -0x4(%rbp),%edi
call   1030 <cleanup_exit@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_usage>:
push   %rbx
mov    %edi,%ebx
lea    0xed6(%rip),%rdi
call   1040 <puts@plt>
mov    %ebx,%edi
pop    %rbx
jmp    1030 <cleanup_exit@plt>

LLVM IR (-O0):
@.str = [798 x i8] c"seama version 0.20\0Ausage: seama [OPTIONS]\0A -h show this help message.\0A -v verbose mode.\0A -m {META data} META data.\0A -d {file} dump the info of the seama file.\0A -i {input file} image file name.\0A -s {file} Seal the images to the seama file.\0A -x {seama file} Extract the seama file.\0A\0A SEAMA can pack the input file (with -i) into a seama file.\0A ex: seama -i target.file\0A SEAMA can also seal multiple seama files into a single seama file.\0A ex: seama -s final.file -i taget1.seama -i target2.seama\0A To extract the raw image from SEAMA, you need to specify the meta.\0A The first image match the specified meta will be extract to\0A the output file which was specified with '-x'.\0A ex: seama -x output -i seama.image -m file=sealpac\0A\00"
define void @show_usage(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @printf(i8* getelementptr inbounds ([798 x i8], [798 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* %2
%5 = call i32 @cleanup_exit(i32 %4)
ret void
}

LLVM IR (-O2):
@str = [797 x i8] c"seama version 0.20\0Ausage: seama [OPTIONS]\0A -h show this help message.\0A -v verbose mode.\0A -m {META data} META data.\0A -d {file} dump the info of the seama file.\0A -i {input file} image file name.\0A -s {file} Seal the images to the seama file.\0A -x {seama file} Extract the seama file.\0A\0A SEAMA can pack the input file (with -i) into a seama file.\0A ex: seama -i target.file\0A SEAMA can also seal multiple seama files into a single seama file.\0A ex: seama -s final.file -i taget1.seama -i target2.seama\0A To extract the raw image from SEAMA, you need to specify the meta.\0A The first image match the specified meta will be extract to\0A the output file which was specified with '-x'.\0A ex: seama -x output -i seama.image -m file=sealpac\00"
define void @show_usage(i32 %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([797 x i8], [797 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @cleanup_exit(i32 %0)
ret void
}