void superFromEcoToX86(unsigned char *p) {
  int i;
  conv4FromEcoToX86(p);
  p += 4;
  conv4FromEcoToX86(p);
  p += 4;
  conv4FromEcoToX86(p);
  p += 4;
  conv4FromEcoToX86(p);
  p += 4;
  conv4FromEcoToX86(p);
  p += 4;
  conv4FromEcoToX86(p);
  p += 4;
  for (i = 0; i < 500; i++) {
    conv4FromEcoToX86(p);
    p += 4;
  }
  conv4FromEcoToX86(p);
  p += 4;
  for (i = 0; i < 500; i++) {
    conv4FromEcoToX86(p);
    p += 4;
  }
  conv4FromEcoToX86(p);
  p += 4;
  p += 1;
  p += 1;
  p += 1;
  p += 1;
}


x86 assembly (clang, -O0):
<superFromEcoToX86>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1030 <conv4FromEcoToX86@plt>
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1030 <conv4FromEcoToX86@plt>
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1030 <conv4FromEcoToX86@plt>
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1030 <conv4FromEcoToX86@plt>
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1030 <conv4FromEcoToX86@plt>
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1030 <conv4FromEcoToX86@plt>
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x1f4,-0xc(%rbp)
jge    11df <superFromEcoToX86+0xcf>
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1030 <conv4FromEcoToX86@plt>
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11ad <superFromEcoToX86+0x9d>
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1030 <conv4FromEcoToX86@plt>
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x1f4,-0xc(%rbp)
jge    122f <superFromEcoToX86+0x11f>
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1030 <conv4FromEcoToX86@plt>
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11fd <superFromEcoToX86+0xed>
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1030 <conv4FromEcoToX86@plt>
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<superFromEcoToX86>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r14
xor    %eax,%eax
call   1030 <conv4FromEcoToX86@plt>
lea    0x4(%r14),%rdi
xor    %eax,%eax
call   1030 <conv4FromEcoToX86@plt>
lea    0x8(%r14),%rdi
xor    %eax,%eax
call   1030 <conv4FromEcoToX86@plt>
lea    0xc(%r14),%rdi
xor    %eax,%eax
call   1030 <conv4FromEcoToX86@plt>
lea    0x10(%r14),%rdi
xor    %eax,%eax
call   1030 <conv4FromEcoToX86@plt>
lea    0x14(%r14),%rdi
xor    %eax,%eax
call   1030 <conv4FromEcoToX86@plt>
lea    0x18(%r14),%rbx
xor    %r15d,%r15d
nopl   (%rax)
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <conv4FromEcoToX86@plt>
add    $0x4,%rbx
add    $0xfffffffffffffffc,%r15
cmp    $0xfffff830,%r15d
jne    1160 <superFromEcoToX86+0x50>
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <conv4FromEcoToX86@plt>
sub    %r15,%r14
add    $0x1c,%r14
mov    $0x1f4,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <conv4FromEcoToX86@plt>
add    $0x4,%r14
add    $0xffffffff,%ebx
jne    11a0 <superFromEcoToX86+0x90>
mov    %r14,%rdi
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <conv4FromEcoToX86@plt>

LLVM IR (-O0):
define void @superFromEcoToX86(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i32 (i8*, ...) bitcast (i32 (...)* @conv4FromEcoToX86 to i32 (i8*, ...)*)(i8* %4)
%6 = load i8*, i8** %2
%7 = getelementptr inbounds i8, i8* %6, i64 4
store i8* %7, i8** %2
%8 = load i8*, i8** %2
%9 = call i32 (i8*, ...) bitcast (i32 (...)* @conv4FromEcoToX86 to i32 (i8*, ...)*)(i8* %8)
%10 = load i8*, i8** %2
%11 = getelementptr inbounds i8, i8* %10, i64 4
store i8* %11, i8** %2
%12 = load i8*, i8** %2
%13 = call i32 (i8*, ...) bitcast (i32 (...)* @conv4FromEcoToX86 to i32 (i8*, ...)*)(i8* %12)
%14 = load i8*, i8** %2
%15 = getelementptr inbounds i8, i8* %14, i64 4
store i8* %15, i8** %2
%16 = load i8*, i8** %2
%17 = call i32 (i8*, ...) bitcast (i32 (...)* @conv4FromEcoToX86 to i32 (i8*, ...)*)(i8* %16)
%18 = load i8*, i8** %2
%19 = getelementptr inbounds i8, i8* %18, i64 4
store i8* %19, i8** %2
%20 = load i8*, i8** %2
%21 = call i32 (i8*, ...) bitcast (i32 (...)* @conv4FromEcoToX86 to i32 (i8*, ...)*)(i8* %20)
%22 = load i8*, i8** %2
%23 = getelementptr inbounds i8, i8* %22, i64 4
store i8* %23, i8** %2
%24 = load i8*, i8** %2
%25 = call i32 (i8*, ...) bitcast (i32 (...)* @conv4FromEcoToX86 to i32 (i8*, ...)*)(i8* %24)
%26 = load i8*, i8** %2
%27 = getelementptr inbounds i8, i8* %26, i64 4
store i8* %27, i8** %2
store i32 0, i32* %3
br label %28
28: ; preds = %36, %1
%29 = load i32, i32* %3
%30 = icmp slt i32 %29, 500
br i1 %30, label %31, label %39
31: ; preds = %28
%32 = load i8*, i8** %2
%33 = call i32 (i8*, ...) bitcast (i32 (...)* @conv4FromEcoToX86 to i32 (i8*, ...)*)(i8* %32)
%34 = load i8*, i8** %2
%35 = getelementptr inbounds i8, i8* %34, i64 4
store i8* %35, i8** %2
br label %36
36: ; preds = %31
%37 = load i32, i32* %3
%38 = add nsw i32 %37, 1
store i32 %38, i32* %3
br label %28
39: ; preds = %28
%40 = load i8*, i8** %2
%41 = call i32 (i8*, ...) bitcast (i32 (...)* @conv4FromEcoToX86 to i32 (i8*, ...)*)(i8* %40)
%42 = load i8*, i8** %2
%43 = getelementptr inbounds i8, i8* %42, i64 4
store i8* %43, i8** %2
store i32 0, i32* %3
br label %44
44: ; preds = %52, %39
%45 = load i32, i32* %3
%46 = icmp slt i32 %45, 500
br i1 %46, label %47, label %55
47: ; preds = %44
%48 = load i8*, i8** %2
%49 = call i32 (i8*, ...) bitcast (i32 (...)* @conv4FromEcoToX86 to i32 (i8*, ...)*)(i8* %48)
%50 = load i8*, i8** %2
%51 = getelementptr inbounds i8, i8* %50, i64 4
store i8* %51, i8** %2
br label %52
52: ; preds = %47
%53 = load i32, i32* %3
%54 = add nsw i32 %53, 1
store i32 %54, i32* %3
br label %44
55: ; preds = %44
%56 = load i8*, i8** %2
%57 = call i32 (i8*, ...) bitcast (i32 (...)* @conv4FromEcoToX86 to i32 (i8*, ...)*)(i8* %56)
%58 = load i8*, i8** %2
%59 = getelementptr inbounds i8, i8* %58, i64 4
store i8* %59, i8** %2
%60 = load i8*, i8** %2
%61 = getelementptr inbounds i8, i8* %60, i64 1
store i8* %61, i8** %2
%62 = load i8*, i8** %2
%63 = getelementptr inbounds i8, i8* %62, i64 1
store i8* %63, i8** %2
%64 = load i8*, i8** %2
%65 = getelementptr inbounds i8, i8* %64, i64 1
store i8* %65, i8** %2
%66 = load i8*, i8** %2
%67 = getelementptr inbounds i8, i8* %66, i64 1
store i8* %67, i8** %2
ret void
}

LLVM IR (-O2):
define void @superFromEcoToX86(i8* %0) {
%2 = tail call i32 (i8*, ...) bitcast (i32 (...)* @conv4FromEcoToX86 to i32 (i8*, ...)*)(i8* %0)
%3 = getelementptr inbounds i8, i8* %0, i64 4
%4 = tail call i32 (i8*, ...) bitcast (i32 (...)* @conv4FromEcoToX86 to i32 (i8*, ...)*)(i8* %3)
%5 = getelementptr inbounds i8, i8* %0, i64 8
%6 = tail call i32 (i8*, ...) bitcast (i32 (...)* @conv4FromEcoToX86 to i32 (i8*, ...)*)(i8* %5)
%7 = getelementptr inbounds i8, i8* %0, i64 12
%8 = tail call i32 (i8*, ...) bitcast (i32 (...)* @conv4FromEcoToX86 to i32 (i8*, ...)*)(i8* %7)
%9 = getelementptr inbounds i8, i8* %0, i64 16
%10 = tail call i32 (i8*, ...) bitcast (i32 (...)* @conv4FromEcoToX86 to i32 (i8*, ...)*)(i8* %9)
%11 = getelementptr inbounds i8, i8* %0, i64 20
%12 = tail call i32 (i8*, ...) bitcast (i32 (...)* @conv4FromEcoToX86 to i32 (i8*, ...)*)(i8* %11)
%13 = getelementptr inbounds i8, i8* %0, i64 24
br label %14
14: ; preds = %1, %14
%15 = phi i32 [ 0, %1 ], [ %19, %14 ]
%16 = phi i8* [ %13, %1 ], [ %18, %14 ]
%17 = tail call i32 (i8*, ...) bitcast (i32 (...)* @conv4FromEcoToX86 to i32 (i8*, ...)*)(i8* %16)
%18 = getelementptr inbounds i8, i8* %16, i64 4
%19 = add nuw nsw i32 %15, 1
%20 = icmp eq i32 %19, 500
br i1 %20, label %21, label %14
21: ; preds = %14
%22 = tail call i32 (i8*, ...) bitcast (i32 (...)* @conv4FromEcoToX86 to i32 (i8*, ...)*)(i8* %18)
%23 = getelementptr inbounds i8, i8* %16, i64 8
br label %24
24: ; preds = %21, %24
%25 = phi i8* [ %23, %21 ], [ %29, %24 ]
%26 = phi i32 [ 0, %21 ], [ %28, %24 ]
%27 = tail call i32 (i8*, ...) bitcast (i32 (...)* @conv4FromEcoToX86 to i32 (i8*, ...)*)(i8* %25)
%28 = add nuw nsw i32 %26, 1
%29 = getelementptr inbounds i8, i8* %25, i64 4
%30 = icmp eq i32 %28, 500
br i1 %30, label %31, label %24
31: ; preds = %24
%32 = tail call i32 (i8*, ...) bitcast (i32 (...)* @conv4FromEcoToX86 to i32 (i8*, ...)*)(i8* %29)
ret void
}