#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 usage(void) {
  printf("Usage: mx28image [ops] <type> <infile> <outfile>\n"
         "Augment BootStream file with a proper header for i.MX28 boot\n"
         "\n"
         "  <type>	type of image:\n"
         "                 \"nand\" for NAND image\n"
         "                 \"sd\" for SD image\n"
         "  <infile>     input file, the u-boot.sb bootstream\n"
         "  <outfile>    output file, the bootable image\n"
         "\n");
  printf("For NAND boot, these options are accepted:\n"
         "  -w <size>    NAND page size\n"
         "  -o <size>    NAND OOB size\n"
         "  -e <size>    NAND erase size\n"
         "\n"
         "For SD boot, these options are accepted:\n"
         "  -p <sector>  Sector where the SGTL partition starts\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0x100f(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0x1011(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [310 x i8] c"Usage: mx28image [ops] <type> <infile> <outfile>\0AAugment BootStream file with a proper header for i.MX28 boot\0A\0A <type>\09type of image:\0A \22nand\22 for NAND image\0A \22sd\22 for SD image\0A <infile> input file, the u-boot.sb bootstream\0A <outfile> output file, the bootable image\0A\0A\00"
@.str.1 = [230 x i8] c"For NAND boot, these options are accepted:\0A -w <size> NAND page size\0A -o <size> NAND OOB size\0A -e <size> NAND erase size\0A\0AFor SD boot, these options are accepted:\0A -p <sector> Sector where the SGTL partition starts\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([310 x i8], [310 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([230 x i8], [230 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [309 x i8] c"Usage: mx28image [ops] <type> <infile> <outfile>\0AAugment BootStream file with a proper header for i.MX28 boot\0A\0A <type>\09type of image:\0A \22nand\22 for NAND image\0A \22sd\22 for SD image\0A <infile> input file, the u-boot.sb bootstream\0A <outfile> output file, the bootable image\0A\00"
@str.2 = [229 x i8] c"For NAND boot, these options are accepted:\0A -w <size> NAND page size\0A -o <size> NAND OOB size\0A -e <size> NAND erase size\0A\0AFor SD boot, these options are accepted:\0A -p <sector> Sector where the SGTL partition starts\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([309 x i8], [309 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([229 x i8], [229 x i8]* @str.2, i64 0, i64 0))
ret void
}