// File: jkingan[P]ladyheather/heathmsc.cpp
// Function: redraw_lla_points()
void redraw_lla_points()
{
int x, y;
int xs, ys;
int xx,yy;

   // redraw splatter plot from the saved data points

   for(x=0; x<MAX_LLA_SIZE; x++) {
      xs = (int) ((float) x * (float) lla_width / (float) MAX_LLA_SIZE);
      if((xs < 0) || (xs >= MAX_LLA_SIZE)) continue;

      for(y=0; y<MAX_LLA_SIZE; y++) {
         ys = (int) ((float) y * (float) lla_width / (float) MAX_LLA_SIZE);
         if((ys < 0) || (ys >= MAX_LLA_SIZE)) continue;
         if(lla_data[x][y]) {
            xx = LLA_X+xs-(lla_width/2);
            yy = LLA_Y+ys-(lla_width/2);
            if(xx < 0) continue;
            if(yy < 0) continue;
            if(xx >= SCREEN_WIDTH) continue;
            if(yy >= SCREEN_HEIGHT) continue;
            dot(xx,yy, lla_data[x][y]);
         }
      }
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl $0x0, -0x4(%rbp)
cmpl $0x280, -0x4(%rbp)      # imm = 0x280
jge 0x15bd51
cvtsi2ssl -0x4(%rbp), %xmm0
leaq 0x23e8dc(%rip), %rax    # 0x39a484
cvtsi2ssl (%rax), %xmm1
mulss %xmm1, %xmm0
movss 0x33628(%rip), %xmm1    # 0x18f1e0
divss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movl %eax, -0xc(%rbp)
cmpl $0x0, -0xc(%rbp)
jl 0x15bbd2
cmpl $0x280, -0xc(%rbp)      # imm = 0x280
jl 0x15bbd7
jmp 0x15bd43
movl $0x0, -0x8(%rbp)
cmpl $0x280, -0x8(%rbp)      # imm = 0x280
jge 0x15bd41
cvtsi2ssl -0x8(%rbp), %xmm0
leaq 0x23e88d(%rip), %rax    # 0x39a484
cvtsi2ssl (%rax), %xmm1
mulss %xmm1, %xmm0
movss 0x335d9(%rip), %xmm1    # 0x18f1e0
divss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movl %eax, -0x10(%rbp)
cmpl $0x0, -0x10(%rbp)
jl 0x15bc21
cmpl $0x280, -0x10(%rbp)     # imm = 0x280
jl 0x15bc26
jmp 0x15bd33
movslq -0x4(%rbp), %rcx
leaq 0xb783f(%rip), %rax     # 0x213470
imulq $0x281, %rcx, %rcx      # imm = 0x281
addq %rcx, %rax
movslq -0x8(%rbp), %rcx
cmpb $0x0, (%rax,%rcx)
je 0x15bd31
leaq 0x23e83c(%rip), %rax    # 0x39a48c
movl (%rax), %eax
movl %eax, -0x28(%rbp)
leaq 0x23e81c(%rip), %rax    # 0x39a478
movl (%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x28(%rbp), %eax
addl %ecx, %eax
subl $0x1, %eax
addl -0xc(%rbp), %eax
movl %eax, -0x24(%rbp)
leaq 0x23e807(%rip), %rax    # 0x39a484
movl (%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x24(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x14(%rbp)
leaq 0x23e7f0(%rip), %rax    # 0x39a488
movl (%rax), %eax
movl %eax, -0x20(%rbp)
leaq 0x23e7d4(%rip), %rax    # 0x39a478
movl (%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x20(%rbp), %eax
addl %ecx, %eax
subl $0x1, %eax
addl -0x10(%rbp), %eax
movl %eax, -0x1c(%rbp)
leaq 0x23e7bf(%rip), %rax    # 0x39a484
movl (%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x1c(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x18(%rbp)
cmpl $0x0, -0x14(%rbp)
jge 0x15bce1
jmp 0x15bd33
cmpl $0x0, -0x18(%rbp)
jge 0x15bce9
jmp 0x15bd33
movl -0x14(%rbp), %eax
leaq 0x11bced(%rip), %rcx    # 0x2779e0
cmpl (%rcx), %eax
jl 0x15bcf9
jmp 0x15bd33
movl -0x18(%rbp), %eax
leaq 0x11bce1(%rip), %rcx    # 0x2779e4
cmpl (%rcx), %eax
jl 0x15bd09
jmp 0x15bd33
movl -0x14(%rbp), %edi
movl -0x18(%rbp), %esi
movslq -0x4(%rbp), %rcx
leaq 0xb7756(%rip), %rax     # 0x213470
imulq $0x281, %rcx, %rcx      # imm = 0x281
addq %rcx, %rax
movslq -0x8(%rbp), %rcx
movzbl (%rax,%rcx), %edx
callq 0x10d70
jmp 0x15bd33
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x15bbde
jmp 0x15bd43
movl -0x4(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
jmp 0x15bb8f
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)