#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*/ sdram_read(unsigned int, unsigned int);
scalar_t__ uart_get_file(unsigned char *);
char uart_getc();
int /*<<< orphan*/ uart_print_int(int);
int /*<<< orphan*/ uart_printf(char *);
int /*<<< orphan*/ uart_puts(char *);
void copy_process(unsigned int *dest) {
  unsigned int addr = 0x5FC00000;
  unsigned char *buffer = (unsigned char *)addr;
  unsigned int wait_time = 0;
  int start = 0;
  int length = 0;
  uart_puts("please send your program! (wait for a while)");
  while (1) {
    if (uart_get_file(&buffer[length])) {
      start = 1;
      wait_time = 0;
      ++length;
    } else {
      if (start)
        ++wait_time;
    }
    if (wait_time == 0x00FFFFFF)
      break;
  }
  if (length == 0) {
    uart_puts("No program receive.");
    return;
  }
  uart_printf("\nReceive ");
  uart_print_int(length);
  uart_printf(" bytes data.\n");
  uart_printf("\nThe first 16 byte are:");
  sdram_read(addr, addr + 0xF);
  uart_printf("\nThe last 16 bytes are:");
  sdram_read(addr + length - 1 - 0xF, addr + length - 1);
  uart_puts("\nDo you sure run this program? (Y/n)");
  uart_printf(" >> ");
  char ch = uart_getc();
  uart_puts("");
  if (ch != 'Y' && ch != 'y') {
    uart_puts("You have cancel update.");
    return;
  }
  uart_puts("Copying to ram ...");
  unsigned int *src = (unsigned int *)addr;
  unsigned int has_copy = 0;
  while (1) {
    if (has_copy >= length)
      break;
    *dest++ = *src++;
    has_copy += 4;
  }
  return;
}


x86 assembly (clang, -O0):
<copy_process>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x5fc00000,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
lea    0xe6a(%rip),%rdi
call   1080 <uart_puts@plt>
mov    -0x18(%rbp),%rdi
movslq -0x24(%rbp),%rax
add    %rax,%rdi
call   1050 <uart_get_file@plt>
cmp    $0x0,%rax
je     11d1 <copy_process+0x71>
movl   $0x1,-0x20(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11e9 <copy_process+0x89>
cmpl   $0x0,-0x20(%rbp)
je     11e4 <copy_process+0x84>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11e9 <copy_process+0x89>
cmpl   $0xffffff,-0x1c(%rbp)
jne    11fb <copy_process+0x9b>
jmp    1200 <copy_process+0xa0>
jmp    119b <copy_process+0x3b>
cmpl   $0x0,-0x24(%rbp)
jne    121b <copy_process+0xbb>
lea    0xe1c(%rip),%rdi
call   1080 <uart_puts@plt>
jmp    1334 <copy_process+0x1d4>
lea    0xe1f(%rip),%rdi
call   1030 <uart_printf@plt>
mov    -0x24(%rbp),%edi
call   1040 <uart_print_int@plt>
lea    0xe15(%rip),%rdi
call   1030 <uart_printf@plt>
lea    0xe17(%rip),%rdi
call   1030 <uart_printf@plt>
mov    -0xc(%rbp),%edi
mov    -0xc(%rbp),%esi
add    $0xf,%esi
call   1060 <sdram_read@plt>
lea    0xe15(%rip),%rdi
call   1030 <uart_printf@plt>
mov    -0xc(%rbp),%edi
add    -0x24(%rbp),%edi
sub    $0x1,%edi
sub    $0xf,%edi
mov    -0xc(%rbp),%esi
add    -0x24(%rbp),%esi
sub    $0x1,%esi
call   1060 <sdram_read@plt>
lea    0xe07(%rip),%rdi
call   1080 <uart_puts@plt>
lea    0xe20(%rip),%rdi
call   1030 <uart_printf@plt>
mov    $0x0,%al
call   1070 <uart_getc@plt>
mov    %al,-0x25(%rbp)
lea    0xdb4(%rip),%rdi
call   1080 <uart_puts@plt>
movsbl -0x25(%rbp),%eax
cmp    $0x59,%eax
je     12d4 <copy_process+0x174>
movsbl -0x25(%rbp),%eax
cmp    $0x79,%eax
je     12d4 <copy_process+0x174>
lea    0xde9(%rip),%rdi
call   1080 <uart_puts@plt>
jmp    1334 <copy_process+0x1d4>
lea    0xdf0(%rip),%rdi
call   1080 <uart_puts@plt>
mov    -0xc(%rbp),%eax
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x24(%rbp),%eax
jb     12ff <copy_process+0x19f>
jmp    132f <copy_process+0x1cf>
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x30(%rbp)
mov    (%rax),%ecx
mov    -0x8(%rbp),%rax
mov    %rax,%rdx
add    $0x4,%rdx
mov    %rdx,-0x8(%rbp)
mov    %ecx,(%rax)
mov    -0x34(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x34(%rbp)
jmp    12ee <copy_process+0x18e>
jmp    1334 <copy_process+0x1d4>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<copy_process>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdi,(%rsp)
lea    0xe8a(%rip),%rdi
call   1080 <uart_puts@plt>
xor    %r15d,%r15d
mov    $0x1,%r12d
xor    %ebp,%ebp
xor    %r14d,%r14d
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
mov    %ebx,%r13d
mov    %ebx,%eax
mov    $0x5fc00070,%ecx
lea    (%rcx,%rax,1),%rdi
add    $0xffffffffffffff90,%rdi
call   1050 <uart_get_file@plt>
xor    %ecx,%ecx
test   %r14d,%r14d
setne  %cl
add    %ecx,%ebp
xor    %ebx,%ebx
test   %rax,%rax
setne  %bl
cmovne %r15d,%ebp
cmovne %r12d,%ecx
add    %r13d,%ebx
mov    %ecx,%r14d
cmp    $0xffffff,%ebp
jne    1190 <copy_process+0x30>
test   %ebx,%ebx
je     128d <copy_process+0x12d>
lea    0xe63(%rip),%rdi
call   1030 <uart_printf@plt>
mov    %ebx,%edi
call   1040 <uart_print_int@plt>
lea    0xe5a(%rip),%rdi
call   1030 <uart_printf@plt>
lea    0xe5c(%rip),%rdi
call   1030 <uart_printf@plt>
mov    $0x5fc00000,%edi
mov    $0x5fc0000f,%esi
call   1060 <sdram_read@plt>
lea    0xe59(%rip),%rdi
call   1030 <uart_printf@plt>
lea    0x5fbfffff(%rbx),%esi
lea    0x5fbffff0(%rbx),%edi
call   1060 <sdram_read@plt>
lea    0xe54(%rip),%rdi
call   1080 <uart_puts@plt>
lea    0xe6d(%rip),%rdi
call   1030 <uart_printf@plt>
xor    %r12d,%r12d
xor    %eax,%eax
call   1070 <uart_getc@plt>
mov    %eax,%r15d
lea    0xdfe(%rip),%rdi
call   1080 <uart_puts@plt>
and    $0xdf,%r15b
cmp    $0x59,%r15b
jne    1296 <copy_process+0x136>
lea    0xe5b(%rip),%rdi
call   1080 <uart_puts@plt>
lea    -0x1(%rbx),%r9d
mov    $0x5fc00000,%edi
cmp    $0x1c,%r9d
jae    12b0 <copy_process+0x150>
mov    (%rsp),%rdx
jmp    13d4 <copy_process+0x274>
lea    0xd99(%rip),%rdi
jmp    129d <copy_process+0x13d>
lea    0xe16(%rip),%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1080 <uart_puts@plt>
mov    %r9d,%ecx
and    $0xfffffffc,%ecx
mov    $0x5fc00070,%eax
lea    (%rax,%rcx,1),%rsi
add    $0xffffffffffffff94,%rsi
mov    (%rsp),%rdx
cmp    %rdx,%rsi
jbe    12e0 <copy_process+0x180>
add    %rdx,%rcx
add    $0x4,%rcx
cmp    $0x5fc00000,%rcx
ja     13d4 <copy_process+0x274>
shr    $0x2,%r9d
add    $0x1,%r9d
mov    %r9d,%r8d
and    $0xfffffff8,%r8d
lea    -0x8(%r8),%rdi
mov    %rdi,%rsi
shr    $0x3,%rsi
add    $0x1,%rsi
mov    %esi,%ecx
and    $0x3,%ecx
cmp    $0x18,%rdi
jae    130d <copy_process+0x1ad>
xor    %edi,%edi
jmp    1378 <copy_process+0x218>
and    $0xfffffffffffffffc,%rsi
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movaps -0x70(%rax,%rdi,4),%xmm0
movaps -0x60(%rax,%rdi,4),%xmm1
movups %xmm0,(%rdx,%rdi,4)
movups %xmm1,0x10(%rdx,%rdi,4)
movaps -0x50(%rax,%rdi,4),%xmm0
movaps -0x40(%rax,%rdi,4),%xmm1
movups %xmm0,0x20(%rdx,%rdi,4)
movups %xmm1,0x30(%rdx,%rdi,4)
movaps -0x30(%rax,%rdi,4),%xmm0
movaps -0x20(%rax,%rdi,4),%xmm1
movups %xmm0,0x40(%rdx,%rdi,4)
movups %xmm1,0x50(%rdx,%rdi,4)
movaps -0x10(%rax,%rdi,4),%xmm0
movaps (%rax,%rdi,4),%xmm1
movups %xmm0,0x60(%rdx,%rdi,4)
movups %xmm1,0x70(%rdx,%rdi,4)
add    $0x20,%rdi
add    $0xfffffffffffffffc,%rsi
jne    1320 <copy_process+0x1c0>
test   %rcx,%rcx
je     13bb <copy_process+0x25b>
lea    (%rdx,%rdi,4),%rsi
add    $0x10,%rsi
lea    (%rax,%rdi,4),%rdi
add    $0xffffffffffffffa0,%rdi
shl    $0x5,%rcx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movaps -0x10(%rdi,%rbp,1),%xmm0
movaps (%rdi,%rbp,1),%xmm1
movups %xmm0,-0x10(%rsi,%rbp,1)
movups %xmm1,(%rsi,%rbp,1)
add    $0x20,%rbp
cmp    %rbp,%rcx
jne    13a0 <copy_process+0x240>
cmp    %r9,%r8
je     13f1 <copy_process+0x291>
lea    0x0(,%r8,4),%r12d
lea    (%rax,%r8,4),%rdi
add    $0xffffffffffffff90,%rdi
lea    (%rdx,%r8,4),%rdx
mov    %r12d,%eax
xor    %ecx,%ecx
nopl   0x0(%rax)
mov    (%rdi,%rcx,1),%esi
mov    %esi,(%rdx,%rcx,1)
add    $0x4,%rcx
lea    (%rax,%rcx,1),%esi
cmp    %ebx,%esi
jb     13e0 <copy_process+0x280>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [45 x i8] c"please send your program! (wait for a while)\00"
@.str.1 = [20 x i8] c"No program receive.\00"
@.str.2 = [10 x i8] c"\0AReceive \00"
@.str.3 = [14 x i8] c" bytes data.\0A\00"
@.str.4 = [24 x i8] c"\0AThe first 16 byte are:\00"
@.str.5 = [24 x i8] c"\0AThe last 16 bytes are:\00"
@.str.6 = [37 x i8] c"\0ADo you sure run this program? (Y/n)\00"
@.str.7 = [5 x i8] c" >> \00"
@.str.8 = [1 x i8] zeroinitializer
@.str.9 = [24 x i8] c"You have cancel update.\00"
@.str.10 = [19 x i8] c"Copying to ram ...\00"
define void @copy_process(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8
%9 = alloca i32*
%10 = alloca i32
store i32* %0, i32** %2
store i32 1606418432, i32* %3
%11 = load i32, i32* %3
%12 = zext i32 %11 to i64
%13 = inttoptr i64 %12 to i8*
store i8* %13, i8** %4
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
%14 = call i32 @uart_puts(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
br label %15
15: ; preds = %1, %36
%16 = load i8*, i8** %4
%17 = load i32, i32* %7
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, i8* %16, i64 %18
%20 = call i64 @uart_get_file(i8* %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %15
store i32 1, i32* %6
store i32 0, i32* %5
%23 = load i32, i32* %7
%24 = add nsw i32 %23, 1
store i32 %24, i32* %7
br label %32
25: ; preds = %15
%26 = load i32, i32* %6
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %25
%29 = load i32, i32* %5
%30 = add i32 %29, 1
store i32 %30, i32* %5
br label %31
31: ; preds = %28, %25
br label %32
32: ; preds = %31, %22
%33 = load i32, i32* %5
%34 = icmp eq i32 %33, 16777215
br i1 %34, label %35, label %36
35: ; preds = %32
br label %37
36: ; preds = %32
br label %15
37: ; preds = %35
%38 = load i32, i32* %7
%39 = icmp eq i32 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %37
%41 = call i32 @uart_puts(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
br label %95
42: ; preds = %37
%43 = call i32 @uart_printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%44 = load i32, i32* %7
%45 = call i32 @uart_print_int(i32 %44)
%46 = call i32 @uart_printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%47 = call i32 @uart_printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%48 = load i32, i32* %3
%49 = load i32, i32* %3
%50 = add i32 %49, 15
%51 = call i32 @sdram_read(i32 %48, i32 %50)
%52 = call i32 @uart_printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%53 = load i32, i32* %3
%54 = load i32, i32* %7
%55 = add i32 %53, %54
%56 = sub i32 %55, 1
%57 = sub i32 %56, 15
%58 = load i32, i32* %3
%59 = load i32, i32* %7
%60 = add i32 %58, %59
%61 = sub i32 %60, 1
%62 = call i32 @sdram_read(i32 %57, i32 %61)
%63 = call i32 @uart_puts(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0))
%64 = call i32 @uart_printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%65 = call signext i8 (...) @uart_getc()
store i8 %65, i8* %8
%66 = call i32 @uart_puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
%67 = load i8, i8* %8
%68 = sext i8 %67 to i32
%69 = icmp ne i32 %68, 89
br i1 %69, label %70, label %76
70: ; preds = %42
%71 = load i8, i8* %8
%72 = sext i8 %71 to i32
%73 = icmp ne i32 %72, 121
br i1 %73, label %74, label %76
74: ; preds = %70
%75 = call i32 @uart_puts(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0))
br label %95
76: ; preds = %70, %42
%77 = call i32 @uart_puts(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0))
%78 = load i32, i32* %3
%79 = zext i32 %78 to i64
%80 = inttoptr i64 %79 to i32*
store i32* %80, i32** %9
store i32 0, i32* %10
br label %81
81: ; preds = %76, %86
%82 = load i32, i32* %10
%83 = load i32, i32* %7
%84 = icmp uge i32 %82, %83
br i1 %84, label %85, label %86
85: ; preds = %81
br label %94
86: ; preds = %81
%87 = load i32*, i32** %9
%88 = getelementptr inbounds i32, i32* %87, i32 1
store i32* %88, i32** %9
%89 = load i32, i32* %87
%90 = load i32*, i32** %2
%91 = getelementptr inbounds i32, i32* %90, i32 1
store i32* %91, i32** %2
store i32 %89, i32* %90
%92 = load i32, i32* %10
%93 = add i32 %92, 4
store i32 %93, i32* %10
br label %81
94: ; preds = %85
br label %95
95: ; preds = %94, %74, %40
ret void
}

LLVM IR (-O2):
@.str = [45 x i8] c"please send your program! (wait for a while)\00"
@.str.1 = [20 x i8] c"No program receive.\00"
@.str.2 = [10 x i8] c"\0AReceive \00"
@.str.3 = [14 x i8] c" bytes data.\0A\00"
@.str.4 = [24 x i8] c"\0AThe first 16 byte are:\00"
@.str.5 = [24 x i8] c"\0AThe last 16 bytes are:\00"
@.str.6 = [37 x i8] c"\0ADo you sure run this program? (Y/n)\00"
@.str.7 = [5 x i8] c" >> \00"
@.str.8 = [1 x i8] zeroinitializer
@.str.9 = [24 x i8] c"You have cancel update.\00"
@.str.10 = [19 x i8] c"Copying to ram ...\00"
define void @copy_process(i32* nocapture writeonly %0) {
%2 = tail call i32 @uart_puts(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
br label %3
3: ; preds = %3, %1
%4 = phi i32 [ 0, %1 ], [ %14, %3 ]
%5 = phi i32 [ 0, %1 ], [ %15, %3 ]
%6 = phi i32 [ 0, %1 ], [ %18, %3 ]
%7 = zext i32 %6 to i64
%8 = getelementptr inbounds i8, i8* inttoptr (i64 1606418432 to i8*), i64 %7
%9 = tail call i64 @uart_get_file(i8* %8)
%10 = icmp eq i64 %9, 0
%11 = icmp ne i32 %5, 0
%12 = zext i1 %11 to i32
%13 = add i32 %4, %12
%14 = select i1 %10, i32 %13, i32 0
%15 = select i1 %10, i32 %12, i32 1
%16 = xor i1 %10, true
%17 = zext i1 %16 to i32
%18 = add nuw nsw i32 %6, %17
%19 = icmp eq i32 %14, 16777215
br i1 %19, label %20, label %3
20: ; preds = %3
%21 = icmp eq i32 %18, 0
br i1 %21, label %151, label %22
22: ; preds = %20
%23 = tail call i32 @uart_printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%24 = tail call i32 @uart_print_int(i32 %18)
%25 = tail call i32 @uart_printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%26 = tail call i32 @uart_printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0))
%27 = tail call i32 @sdram_read(i32 1606418432, i32 1606418447)
%28 = tail call i32 @uart_printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%29 = add nuw i32 %18, 1606418431
%30 = add nuw i32 %18, 1606418416
%31 = tail call i32 @sdram_read(i32 %30, i32 %29)
%32 = tail call i32 @uart_puts(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0))
%33 = tail call i32 @uart_printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%34 = tail call signext i8 (...) @uart_getc()
%35 = tail call i32 @uart_puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
%36 = and i8 %34, -33
%37 = icmp eq i8 %36, 89
br i1 %37, label %38, label %151
38: ; preds = %22
%39 = tail call i32 @uart_puts(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0))
%40 = add nsw i32 %18, -1
%41 = lshr i32 %40, 2
%42 = add nuw nsw i32 %41, 1
%43 = zext i32 %42 to i64
%44 = icmp ult i32 %40, 28
br i1 %44, label %138, label %45
45: ; preds = %38
%46 = add nsw i32 %18, -1
%47 = lshr i32 %46, 2
%48 = add nuw nsw i32 %47, 1
%49 = zext i32 %48 to i64
%50 = getelementptr i32, i32* %0, i64 %49
%51 = getelementptr i32, i32* inttoptr (i64 1606418432 to i32*), i64 %49
%52 = icmp ugt i32* %51, %0
%53 = icmp ugt i32* %50, inttoptr (i64 1606418432 to i32*)
%54 = and i1 %52, %53
br i1 %54, label %138, label %55
55: ; preds = %45
%56 = and i64 %43, 2147483640
%57 = trunc i64 %56 to i32
%58 = shl i32 %57, 2
%59 = getelementptr i32, i32* inttoptr (i64 1606418432 to i32*), i64 %56
%60 = getelementptr i32, i32* %0, i64 %56
%61 = add nsw i64 %56, -8
%62 = lshr exact i64 %61, 3
%63 = add nuw nsw i64 %62, 1
%64 = and i64 %63, 3
%65 = icmp ult i64 %61, 24
br i1 %65, label %117, label %66
66: ; preds = %55
%67 = and i64 %63, 4611686018427387900
br label %68
68: ; preds = %68, %66
%69 = phi i64 [ 0, %66 ], [ %114, %68 ]
%70 = phi i64 [ 0, %66 ], [ %115, %68 ]
%71 = getelementptr i32, i32* inttoptr (i64 1606418432 to i32*), i64 %69
%72 = getelementptr i32, i32* %0, i64 %69
%73 = bitcast i32* %71 to <4 x i32>*
%74 = load <4 x i32>, <4 x i32>* %73
%75 = getelementptr i32, i32* %71, i64 4
%76 = bitcast i32* %75 to <4 x i32>*
%77 = load <4 x i32>, <4 x i32>* %76
%78 = bitcast i32* %72 to <4 x i32>*
store <4 x i32> %74, <4 x i32>* %78
%79 = getelementptr i32, i32* %72, i64 4
%80 = bitcast i32* %79 to <4 x i32>*
store <4 x i32> %77, <4 x i32>* %80
%81 = or i64 %69, 8
%82 = getelementptr i32, i32* inttoptr (i64 1606418432 to i32*), i64 %81
%83 = getelementptr i32, i32* %0, i64 %81
%84 = bitcast i32* %82 to <4 x i32>*
%85 = load <4 x i32>, <4 x i32>* %84
%86 = getelementptr i32, i32* %82, i64 4
%87 = bitcast i32* %86 to <4 x i32>*
%88 = load <4 x i32>, <4 x i32>* %87
%89 = bitcast i32* %83 to <4 x i32>*
store <4 x i32> %85, <4 x i32>* %89
%90 = getelementptr i32, i32* %83, i64 4
%91 = bitcast i32* %90 to <4 x i32>*
store <4 x i32> %88, <4 x i32>* %91
%92 = or i64 %69, 16
%93 = getelementptr i32, i32* inttoptr (i64 1606418432 to i32*), i64 %92
%94 = getelementptr i32, i32* %0, i64 %92
%95 = bitcast i32* %93 to <4 x i32>*
%96 = load <4 x i32>, <4 x i32>* %95
%97 = getelementptr i32, i32* %93, i64 4
%98 = bitcast i32* %97 to <4 x i32>*
%99 = load <4 x i32>, <4 x i32>* %98
%100 = bitcast i32* %94 to <4 x i32>*
store <4 x i32> %96, <4 x i32>* %100
%101 = getelementptr i32, i32* %94, i64 4
%102 = bitcast i32* %101 to <4 x i32>*
store <4 x i32> %99, <4 x i32>* %102
%103 = or i64 %69, 24
%104 = getelementptr i32, i32* inttoptr (i64 1606418432 to i32*), i64 %103
%105 = getelementptr i32, i32* %0, i64 %103
%106 = bitcast i32* %104 to <4 x i32>*
%107 = load <4 x i32>, <4 x i32>* %106
%108 = getelementptr i32, i32* %104, i64 4
%109 = bitcast i32* %108 to <4 x i32>*
%110 = load <4 x i32>, <4 x i32>* %109
%111 = bitcast i32* %105 to <4 x i32>*
store <4 x i32> %107, <4 x i32>* %111
%112 = getelementptr i32, i32* %105, i64 4
%113 = bitcast i32* %112 to <4 x i32>*
store <4 x i32> %110, <4 x i32>* %113
%114 = add nuw i64 %69, 32
%115 = add i64 %70, 4
%116 = icmp eq i64 %115, %67
br i1 %116, label %117, label %68
117: ; preds = %68, %55
%118 = phi i64 [ 0, %55 ], [ %114, %68 ]
%119 = icmp eq i64 %64, 0
br i1 %119, label %136, label %120
120: ; preds = %117, %120
%121 = phi i64 [ %133, %120 ], [ %118, %117 ]
%122 = phi i64 [ %134, %120 ], [ 0, %117 ]
%123 = getelementptr i32, i32* inttoptr (i64 1606418432 to i32*), i64 %121
%124 = getelementptr i32, i32* %0, i64 %121
%125 = bitcast i32* %123 to <4 x i32>*
%126 = load <4 x i32>, <4 x i32>* %125
%127 = getelementptr i32, i32* %123, i64 4
%128 = bitcast i32* %127 to <4 x i32>*
%129 = load <4 x i32>, <4 x i32>* %128
%130 = bitcast i32* %124 to <4 x i32>*
store <4 x i32> %126, <4 x i32>* %130
%131 = getelementptr i32, i32* %124, i64 4
%132 = bitcast i32* %131 to <4 x i32>*
store <4 x i32> %129, <4 x i32>* %132
%133 = add nuw i64 %121, 8
%134 = add i64 %122, 1
%135 = icmp eq i64 %134, %64
br i1 %135, label %136, label %120
136: ; preds = %120, %117
%137 = icmp eq i64 %56, %43
br i1 %137, label %154, label %138
138: ; preds = %45, %38, %136
%139 = phi i32 [ 0, %45 ], [ 0, %38 ], [ %58, %136 ]
%140 = phi i32* [ inttoptr (i64 1606418432 to i32*), %45 ], [ inttoptr (i64 1606418432 to i32*), %38 ], [ %59, %136 ]
%141 = phi i32* [ %0, %45 ], [ %0, %38 ], [ %60, %136 ]
br label %142
142: ; preds = %138, %142
%143 = phi i32 [ %149, %142 ], [ %139, %138 ]
%144 = phi i32* [ %146, %142 ], [ %140, %138 ]
%145 = phi i32* [ %148, %142 ], [ %141, %138 ]
%146 = getelementptr inbounds i32, i32* %144, i64 1
%147 = load i32, i32* %144
%148 = getelementptr inbounds i32, i32* %145, i64 1
store i32 %147, i32* %145
%149 = add i32 %143, 4
%150 = icmp ult i32 %149, %18
br i1 %150, label %142, label %154
151: ; preds = %22, %20
%152 = phi i8* [ getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), %20 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0), %22 ]
%153 = tail call i32 @uart_puts(i8* %152)
br label %154
154: ; preds = %142, %136, %151
ret void
}