#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() {
  printf("Usage:\n");
  printf("\n");
  printf("Info about BCM4908 Asus image:\n");
  printf("\tbcm4908asus info <file>\tget info about BCM4908 Asus image\n");
  printf("\n");
  printf("Create a BCM4908 Asus image:\n");
  printf("\tbcm4908asus create\tinsert Asus info into BCM4908 image\n");
  printf("\t-i file\t\t\t\tinput BCM4908 image file (required)\n");
  printf("\t-o file\t\t\t\toutput BCM4908 Asus image file\n");
  printf("\t-p productid\t\t\tproduct (device) ID\n");
  printf("\t-f firmware version\t\tfirmware version formatted with 4 digits "
         "like: 1.2.3.4\n");
  printf("\t-b build number\t\tbuild number (e.g. 380, 382, 384)\n");
  printf("\t-e extend number\t\textended number (e.g. 21140, 81622, 81695, "
         "82037)\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0x1097(%rip),%rdi
call   1030 <printf@plt>
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xee9(%rip),%rdi
call   1030 <printf@plt>
lea    0x1073(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf4c(%rip),%rdi
call   1030 <printf@plt>
lea    0xf71(%rip),%rdi
call   1030 <printf@plt>
lea    0xf91(%rip),%rdi
call   1030 <printf@plt>
lea    0xfaa(%rip),%rdi
call   1030 <printf@plt>
lea    0xfec(%rip),%rdi
call   1030 <printf@plt>
lea    0x1015(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xec9(%rip),%rdi
call   1040 <puts@plt>
lea    0xedc(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf01(%rip),%rdi
call   1040 <puts@plt>
lea    0xf12(%rip),%rdi
call   1040 <puts@plt>
lea    0xf3e(%rip),%rdi
call   1040 <puts@plt>
lea    0xf62(%rip),%rdi
call   1040 <puts@plt>
lea    0xf81(%rip),%rdi
call   1040 <puts@plt>
lea    0xf99(%rip),%rdi
call   1040 <puts@plt>
lea    0xfda(%rip),%rdi
call   1040 <puts@plt>
lea    0x1002(%rip),%rdi
pop    %rax
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"Usage:\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [32 x i8] c"Info about BCM4908 Asus image:\0A\00"
@.str.3 = [60 x i8] c"\09bcm4908asus info <file>\09get info about BCM4908 Asus image\0A\00"
@.str.4 = [30 x i8] c"Create a BCM4908 Asus image:\0A\00"
@.str.5 = [57 x i8] c"\09bcm4908asus create\09insert Asus info into BCM4908 image\0A\00"
@.str.6 = [49 x i8] c"\09-i file\09\09\09\09input BCM4908 image file (required)\0A\00"
@.str.7 = [44 x i8] c"\09-o file\09\09\09\09output BCM4908 Asus image file\0A\00"
@.str.8 = [37 x i8] c"\09-p productid\09\09\09product (device) ID\0A\00"
@.str.9 = [78 x i8] c"\09-f firmware version\09\09firmware version formatted with 4 digits like: 1.2.3.4\0A\00"
@.str.10 = [53 x i8] c"\09-b build number\09\09build number (e.g. 380, 382, 384)\0A\00"
@.str.11 = [70 x i8] c"\09-e extend number\09\09extended number (e.g. 21140, 81622, 81695, 82037)\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.11, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [7 x i8] c"Usage:\00"
@str.12 = [31 x i8] c"Info about BCM4908 Asus image:\00"
@str.13 = [59 x i8] c"\09bcm4908asus info <file>\09get info about BCM4908 Asus image\00"
@str.14 = [29 x i8] c"Create a BCM4908 Asus image:\00"
@str.15 = [56 x i8] c"\09bcm4908asus create\09insert Asus info into BCM4908 image\00"
@str.16 = [48 x i8] c"\09-i file\09\09\09\09input BCM4908 image file (required)\00"
@str.17 = [43 x i8] c"\09-o file\09\09\09\09output BCM4908 Asus image file\00"
@str.18 = [36 x i8] c"\09-p productid\09\09\09product (device) ID\00"
@str.19 = [77 x i8] c"\09-f firmware version\09\09firmware version formatted with 4 digits like: 1.2.3.4\00"
@str.20 = [52 x i8] c"\09-b build number\09\09build number (e.g. 380, 382, 384)\00"
@str.21 = [69 x i8] c"\09-e extend number\09\09extended number (e.g. 21140, 81622, 81695, 82037)\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @putchar(i32 10)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.12, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.13, i64 0, i64 0))
%5 = tail call i32 @putchar(i32 10)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.14, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.15, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.16, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.17, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.18, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.19, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.20, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.21, i64 0, i64 0))
ret void
}