#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 : uflash [options]\r\n");
  printf("\t-d DEVNAME     - Block device Name/Node (%s)\r\n", "/dev/mmcblk0");
  printf("\t-u UBL_FILE    - UBL File Name (%s)\r\n", "UBL.bin");
  printf("\t-b UBOOT_FILE  - UBoot File Name (%s)\r\n", "u-boot.bin");
  printf("\t-e UBOOT_ENTRY - UBoot Entry Point (0x%X)\r\n", 0x81080000);
  printf("\t-l UBOOT_LOAD  - UBoot Load Address (0x%X)\r\n", 0x81080000);
  printf("\r\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef2(%rip),%rdi
lea    0xf1b(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1a(%rip),%rdi
lea    0xf3a(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf34(%rip),%rdi
lea    0xf56(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf53(%rip),%rdi
mov    $0x81080000,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf6d(%rip),%rdi
mov    $0x81080000,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf85(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xfd3(%rip),%rdi
call   1030 <puts@plt>
lea    0xecc(%rip),%rdi
lea    0xef5(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xef4(%rip),%rdi
lea    0xf14(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf0e(%rip),%rdi
lea    0xf30(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf2d(%rip),%rdi
mov    $0x81080000,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf47(%rip),%rdi
mov    $0x81080000,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf7a(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [27 x i8] c"Usage : uflash [options]\0D\0A\00"
@.str.1 = [48 x i8] c"\09-d DEVNAME - Block device Name/Node (%s)\0D\0A\00"
@.str.2 = [13 x i8] c"/dev/mmcblk0\00"
@.str.3 = [39 x i8] c"\09-u UBL_FILE - UBL File Name (%s)\0D\0A\00"
@.str.4 = [8 x i8] c"UBL.bin\00"
@.str.5 = [41 x i8] c"\09-b UBOOT_FILE - UBoot File Name (%s)\0D\0A\00"
@.str.6 = [11 x i8] c"u-boot.bin\00"
@.str.7 = [45 x i8] c"\09-e UBOOT_ENTRY - UBoot Entry Point (0x%X)\0D\0A\00"
@.str.8 = [46 x i8] c"\09-l UBOOT_LOAD - UBoot Load Address (0x%X)\0D\0A\00"
@.str.9 = [3 x i8] c"\0D\0A\00"
define void @usage() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.7, i64 0, i64 0), i32 -2130182144)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.8, i64 0, i64 0), i32 -2130182144)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [48 x i8] c"\09-d DEVNAME - Block device Name/Node (%s)\0D\0A\00"
@.str.2 = [13 x i8] c"/dev/mmcblk0\00"
@.str.3 = [39 x i8] c"\09-u UBL_FILE - UBL File Name (%s)\0D\0A\00"
@.str.4 = [8 x i8] c"UBL.bin\00"
@.str.5 = [41 x i8] c"\09-b UBOOT_FILE - UBoot File Name (%s)\0D\0A\00"
@.str.6 = [11 x i8] c"u-boot.bin\00"
@.str.7 = [45 x i8] c"\09-e UBOOT_ENTRY - UBoot Entry Point (0x%X)\0D\0A\00"
@.str.8 = [46 x i8] c"\09-l UBOOT_LOAD - UBoot Load Address (0x%X)\0D\0A\00"
@str = [26 x i8] c"Usage : uflash [options]\0D\00"
@str.10 = [2 x i8] c"\0D\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.7, i64 0, i64 0), i32 -2130182144)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.8, i64 0, i64 0), i32 -2130182144)
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.10, i64 0, i64 0))
ret void
}