int refreshContents(plotdt, countt, offsetX, offsetY)
double plotdt[100][8];
int countt;
int offsetX, offsetY;
{
  int i;

  for (i = 0; i < countt; i++) {

    cymplt(plotdt[i][5] - offsetX, plotdt[i][6] - offsetY, (int)plotdt[i][4],
           (int)plotdt[i][3], plotdt[i][1], plotdt[i][2], plotdt);
  }
  return (1);
}


x86 assembly (clang, -O0):
<refreshContents>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11db <refreshContents+0xcb>
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
shl    $0x6,%rcx
add    %rcx,%rax
movsd  0x28(%rax),%xmm0
cvtsi2sdl -0x10(%rbp),%xmm1
subsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
shl    $0x6,%rcx
add    %rcx,%rax
movsd  0x30(%rax),%xmm1
cvtsi2sdl -0x14(%rbp),%xmm2
subsd  %xmm2,%xmm1
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
shl    $0x6,%rcx
add    %rcx,%rax
cvttsd2si 0x20(%rax),%edi
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
shl    $0x6,%rcx
add    %rcx,%rax
cvttsd2si 0x18(%rax),%esi
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
shl    $0x6,%rcx
add    %rcx,%rax
movsd  0x8(%rax),%xmm2
mov    -0x8(%rbp),%rax
movslq -0x18(%rbp),%rcx
shl    $0x6,%rcx
add    %rcx,%rax
movsd  0x10(%rax),%xmm3
mov    -0x8(%rbp),%rdx
mov    $0x4,%al
call   1030 <cymplt@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    112c <refreshContents+0x1c>
mov    $0x1,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<refreshContents>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
test   %esi,%esi
jle    1188 <refreshContents+0x78>
mov    %rdi,%r15
cvtsi2sd %edx,%xmm0
movsd  %xmm0,0x8(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sd %ecx,%xmm0
movsd  %xmm0,(%rsp)
mov    %esi,%r14d
shl    $0x6,%r14
xor    %ebx,%ebx
nop
movsd  0x28(%r15,%rbx,1),%xmm0
cvttsd2si 0x20(%r15,%rbx,1),%edi
subsd  0x8(%rsp),%xmm0
cvttsd2si 0x18(%r15,%rbx,1),%esi
movsd  0x30(%r15,%rbx,1),%xmm1
subsd  (%rsp),%xmm1
movsd  0x8(%r15,%rbx,1),%xmm2
movsd  0x10(%r15,%rbx,1),%xmm3
mov    %r15,%rdx
mov    $0x4,%al
call   1030 <cymplt@plt>
add    $0x40,%rbx
cmp    %rbx,%r14
jne    1140 <refreshContents+0x30>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

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

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