#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 show_help(void) {
  printf("Usage: a10-set-tpr3 new_tpr3\n");
  printf("Where tpr3 is a hexadecimal number in the following format:\n");
  printf("  bits [22:20] - MFWDLY of the command lane\n");
  printf("  bits [18:16] - MFBDLY of the command lane\n");
  printf("  bits [15:12] - SDPHASE of the byte lane 3\n");
  printf("  bits  [11:8] - SDPHASE of the byte lane 2\n");
  printf("  bits   [7:4] - SDPHASE of the byte lane 1\n");
  printf("  bits   [3:0] - SDPHASE of the byte lane 0\n");
  printf("\nSee the RK30XX manual for more details. They are using\n");
  printf("the same dram controller as Allwinner A10/A13/A20.\n");
  printf("Though maybe a different revision of it.\n");
}


x86 assembly (clang, -O0):
<show_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef7(%rip),%rdi
call   1030 <printf@plt>
lea    0xf28(%rip),%rdi
call   1030 <printf@plt>
lea    0xf49(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf8b(%rip),%rdi
call   1030 <printf@plt>
lea    0xfac(%rip),%rdi
call   1030 <printf@plt>
lea    0xfcd(%rip),%rdi
call   1030 <printf@plt>
lea    0xfee(%rip),%rdi
call   1030 <printf@plt>
lea    0x101b(%rip),%rdi
call   1030 <printf@plt>
lea    0x1043(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_help>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xef9(%rip),%rdi
call   1030 <puts@plt>
lea    0xf29(%rip),%rdi
call   1030 <puts@plt>
lea    0xf49(%rip),%rdi
call   1030 <puts@plt>
lea    0xf69(%rip),%rdi
call   1030 <puts@plt>
lea    0xf89(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa9(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc9(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe9(%rip),%rdi
call   1030 <puts@plt>
lea    0x1015(%rip),%rdi
call   1030 <puts@plt>
lea    0x103c(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [30 x i8] c"Usage: a10-set-tpr3 new_tpr3\0A\00"
@.str.1 = [61 x i8] c"Where tpr3 is a hexadecimal number in the following format:\0A\00"
@.str.2 = [45 x i8] c" bits [22:20] - MFWDLY of the command lane\0A\00"
@.str.3 = [45 x i8] c" bits [18:16] - MFBDLY of the command lane\0A\00"
@.str.4 = [45 x i8] c" bits [15:12] - SDPHASE of the byte lane 3\0A\00"
@.str.5 = [45 x i8] c" bits [11:8] - SDPHASE of the byte lane 2\0A\00"
@.str.6 = [45 x i8] c" bits [7:4] - SDPHASE of the byte lane 1\0A\00"
@.str.7 = [45 x i8] c" bits [3:0] - SDPHASE of the byte lane 0\0A\00"
@.str.8 = [57 x i8] c"\0ASee the RK30XX manual for more details. They are using\0A\00"
@.str.9 = [52 x i8] c"the same dram controller as Allwinner A10/A13/A20.\0A\00"
@.str.10 = [42 x i8] c"Though maybe a different revision of it.\0A\00"
define void @show_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.10, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [29 x i8] c"Usage: a10-set-tpr3 new_tpr3\00"
@str.11 = [60 x i8] c"Where tpr3 is a hexadecimal number in the following format:\00"
@str.12 = [44 x i8] c" bits [22:20] - MFWDLY of the command lane\00"
@str.13 = [44 x i8] c" bits [18:16] - MFBDLY of the command lane\00"
@str.14 = [44 x i8] c" bits [15:12] - SDPHASE of the byte lane 3\00"
@str.15 = [44 x i8] c" bits [11:8] - SDPHASE of the byte lane 2\00"
@str.16 = [44 x i8] c" bits [7:4] - SDPHASE of the byte lane 1\00"
@str.17 = [44 x i8] c" bits [3:0] - SDPHASE of the byte lane 0\00"
@str.18 = [56 x i8] c"\0ASee the RK30XX manual for more details. They are using\00"
@str.19 = [51 x i8] c"the same dram controller as Allwinner A10/A13/A20.\00"
@str.20 = [41 x i8] c"Though maybe a different revision of it.\00"
define void @show_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.11, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.12, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.13, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.14, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.15, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.16, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.17, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.18, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.19, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.20, i64 0, i64 0))
ret void
}