// File: jkingan[P]ladyheather/heathmsc.cpp
// Function: plot_lla_axes(int)
void plot_lla_axes(int why)
{
int x,y;
int xx,yy;
int color;

   // draw the lat/lon scattergram grid and label it

   lla_showing = 0;
   if(plot_lla == 0) return;
   if(text_mode || (first_key && (SCREEN_HEIGHT < SHORT_SCREEN))) return;
if(first_key && shared_plot && (shared_item & SHARE_LLA)) return;
   if(zoom_screen && (zoom_screen != 'L')) return;

   lla_showing = 1;
   erase_lla();

   label_lla_header();
   if(text_mode) return;  // plot area is in use for help/warning message

   x = LLA_X - LLA_SIZE/2 + LLA_MARGIN;
   y = LLA_Y - LLA_SIZE/2 + LLA_MARGIN;
   if(LLA_ROW >= PLOT_ROW) shared_item = SHARE_LLA;

   for(yy=y; yy<=y+lla_step*LLA_DIVISIONS; yy+=lla_step) {  // horizontals
     color = GREY;
     if(yy == y) color = WHITE;
     if(yy == y+lla_step*LLA_DIVISIONS) color = WHITE;
     line(x,yy, x+lla_step*LLA_DIVISIONS,yy, color);
   }

   for(xx=x; xx<=x+lla_step*LLA_DIVISIONS; xx+=lla_step) {  // verticals
     color = GREY;
     if(xx == x) color = WHITE;
     if(xx == x+lla_step*LLA_DIVISIONS) color = WHITE;
     line(xx,y+1,    xx,y+lla_step*LLA_DIVISIONS-1, color);
   }

   // draw the center cross
   xx = LLA_X;
   yy = LLA_Y;
   dot(xx+0, yy-0, WHITE);
   dot(xx+0, yy-1, WHITE);
   dot(xx+0, yy-2, WHITE);
   dot(xx+0, yy-3, WHITE);
   dot(xx+0, yy-4, WHITE);
   dot(xx+0, yy-5, WHITE);
   dot(xx+0, yy+0, WHITE);
   dot(xx+0, yy+1, WHITE);
   dot(xx+0, yy+2, WHITE);
   dot(xx+0, yy+3, WHITE);
   dot(xx+0, yy+4, WHITE);
   dot(xx+0, yy+5, WHITE);

   dot(xx+1, yy+0, WHITE);
   dot(xx+2, yy+0, WHITE);
   dot(xx+3, yy+0, WHITE);
   dot(xx+4, yy+0, WHITE);
   dot(xx+5, yy+0, WHITE);
   dot(xx-1, yy+0, WHITE);
   dot(xx-2, yy+0, WHITE);
   dot(xx-3, yy+0, WHITE);
   dot(xx-4, yy+0, WHITE);
   dot(xx-5, yy+0, WHITE);

   xx = LLA_COL/TEXT_WIDTH+1;
   if(SCREEN_WIDTH > (NARROW_SCREEN+X11_MARGIN)) xx += 5;
   else                                          xx -= 2;

   show_mouse_lla();

   #ifdef BUFFER_LLA
      redraw_lla_points();
   #endif
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl %edi, -0x4(%rbp)
leaq 0x26e7ce(%rip), %rax    # 0x39a4a0
movl $0x0, (%rax)
leaq 0x26e7b1(%rip), %rax    # 0x39a490
movzbl (%rax), %eax
cmpl $0x0, %eax
jne 0x12bcec
jmp 0x12c1f8
leaq 0x14bcc5(%rip), %rax    # 0x2779b8
cmpl $0x0, (%rax)
jne 0x12bd13
leaq 0x172439(%rip), %rax    # 0x29e138
cmpl $0x0, (%rax)
je 0x12bd18
leaq 0x14bcd9(%rip), %rax    # 0x2779e4
cmpl $0x258, (%rax)          # imm = 0x258
jge 0x12bd18
jmp 0x12c1f8
leaq 0x172419(%rip), %rax    # 0x29e138
cmpl $0x0, (%rax)
je 0x12bd46
leaq 0x26e89d(%rip), %rax    # 0x39a5c8
cmpb $0x0, (%rax)
je 0x12bd46
leaq 0x26e895(%rip), %rax    # 0x39a5cc
movl (%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x12bd46
jmp 0x12c1f8
leaq 0x23fc3b(%rip), %rax    # 0x36b988
cmpb $0x0, (%rax)
je 0x12bd66
leaq 0x23fc2f(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x4c, %eax
je 0x12bd66
jmp 0x12c1f8
leaq 0x26e733(%rip), %rax    # 0x39a4a0
movl $0x1, (%rax)
callq 0x11830
callq 0x15ada0
leaq 0x14bc34(%rip), %rax    # 0x2779b8
cmpl $0x0, (%rax)
je 0x12bd8e
jmp 0x12c1f8
leaq 0x26e6f7(%rip), %rax    # 0x39a48c
movl (%rax), %eax
movl %eax, -0x28(%rbp)
leaq 0x26e6d7(%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
movl %eax, -0x24(%rbp)
leaq 0x26e6b9(%rip), %rax    # 0x39a478
movl (%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x24(%rbp), %eax
subl %ecx, %eax
leaq 0x26e6a5(%rip), %rcx    # 0x39a47c
addl (%rcx), %eax
movl %eax, -0x8(%rbp)
leaq 0x26e6a5(%rip), %rax    # 0x39a488
movl (%rax), %eax
movl %eax, -0x20(%rbp)
leaq 0x26e689(%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
movl %eax, -0x1c(%rbp)
leaq 0x26e66b(%rip), %rax    # 0x39a478
movl (%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x1c(%rbp), %eax
subl %ecx, %eax
leaq 0x26e657(%rip), %rcx    # 0x39a47c
addl (%rcx), %eax
movl %eax, -0xc(%rbp)
leaq 0x26e657(%rip), %rax    # 0x39a488
movl (%rax), %eax
leaq 0x14bc22(%rip), %rcx    # 0x277a5c
cmpl (%rcx), %eax
jl 0x12be4b
leaq 0x26e787(%rip), %rax    # 0x39a5cc
movl $0x8, (%rax)
movl -0xc(%rbp), %eax
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl -0xc(%rbp), %ecx
leaq 0x26e622(%rip), %rdx    # 0x39a480
imull $0xa, (%rdx), %edx
addl %edx, %ecx
cmpl %ecx, %eax
jg 0x12becf
movl $0x8, -0x18(%rbp)
movl -0x14(%rbp), %eax
cmpl -0xc(%rbp), %eax
jne 0x12be7d
movl $0xf, -0x18(%rbp)
movl -0x14(%rbp), %eax
movl -0xc(%rbp), %ecx
leaq 0x26e5f6(%rip), %rdx    # 0x39a480
imull $0xa, (%rdx), %edx
addl %edx, %ecx
cmpl %ecx, %eax
jne 0x12be9a
movl $0xf, -0x18(%rbp)
movl -0x8(%rbp), %edi
movl -0x14(%rbp), %esi
movl -0x8(%rbp), %edx
leaq 0x26e5d6(%rip), %rax    # 0x39a480
imull $0xa, (%rax), %eax
addl %eax, %edx
movl -0x14(%rbp), %ecx
movl -0x18(%rbp), %eax
movzbl %al, %r8d
callq 0x109c0
leaq 0x26e5bb(%rip), %rax    # 0x39a480
movl (%rax), %eax
addl -0x14(%rbp), %eax
movl %eax, -0x14(%rbp)
jmp 0x12be51
movl -0x8(%rbp), %eax
movl %eax, -0x10(%rbp)
movl -0x10(%rbp), %eax
movl -0x8(%rbp), %ecx
leaq 0x26e59e(%rip), %rdx    # 0x39a480
imull $0xa, (%rdx), %edx
addl %edx, %ecx
cmpl %ecx, %eax
jg 0x12bf5c
movl $0x8, -0x18(%rbp)
movl -0x10(%rbp), %eax
cmpl -0x8(%rbp), %eax
jne 0x12bf01
movl $0xf, -0x18(%rbp)
movl -0x10(%rbp), %eax
movl -0x8(%rbp), %ecx
leaq 0x26e572(%rip), %rdx    # 0x39a480
imull $0xa, (%rdx), %edx
addl %edx, %ecx
cmpl %ecx, %eax
jne 0x12bf1e
movl $0xf, -0x18(%rbp)
movl -0x10(%rbp), %edi
movl -0xc(%rbp), %esi
addl $0x1, %esi
movl -0x10(%rbp), %edx
movl -0xc(%rbp), %ecx
leaq 0x26e54c(%rip), %rax    # 0x39a480
imull $0xa, (%rax), %eax
addl %eax, %ecx
subl $0x1, %ecx
movl -0x18(%rbp), %eax
movzbl %al, %r8d
callq 0x109c0
leaq 0x26e531(%rip), %rax    # 0x39a480
movl (%rax), %eax
addl -0x10(%rbp), %eax
movl %eax, -0x10(%rbp)
jmp 0x12bed5
leaq 0x26e529(%rip), %rax    # 0x39a48c
movl (%rax), %eax
movl %eax, -0x34(%rbp)
leaq 0x26e509(%rip), %rax    # 0x39a478
movl (%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x34(%rbp), %eax
addl %ecx, %eax
subl $0x1, %eax
movl %eax, -0x10(%rbp)
leaq 0x26e4fb(%rip), %rax    # 0x39a488
movl (%rax), %eax
movl %eax, -0x30(%rbp)
leaq 0x26e4df(%rip), %rax    # 0x39a478
movl (%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x30(%rbp), %eax
addl %ecx, %eax
subl $0x1, %eax
movl %eax, -0x14(%rbp)
movl -0x10(%rbp), %edi
addl $0x0, %edi
movl -0x14(%rbp), %esi
subl $0x0, %esi
movl $0xf, %edx
callq 0x10d70
movl -0x10(%rbp), %edi
addl $0x0, %edi
movl -0x14(%rbp), %esi
subl $0x1, %esi
movl $0xf, %edx
callq 0x10d70
movl -0x10(%rbp), %edi
addl $0x0, %edi
movl -0x14(%rbp), %esi
subl $0x2, %esi
movl $0xf, %edx
callq 0x10d70
movl -0x10(%rbp), %edi
addl $0x0, %edi
movl -0x14(%rbp), %esi
subl $0x3, %esi
movl $0xf, %edx
callq 0x10d70
movl -0x10(%rbp), %edi
addl $0x0, %edi
movl -0x14(%rbp), %esi
subl $0x4, %esi
movl $0xf, %edx
callq 0x10d70
movl -0x10(%rbp), %edi
addl $0x0, %edi
movl -0x14(%rbp), %esi
subl $0x5, %esi
movl $0xf, %edx
callq 0x10d70
movl -0x10(%rbp), %edi
addl $0x0, %edi
movl -0x14(%rbp), %esi
addl $0x0, %esi
movl $0xf, %edx
callq 0x10d70
movl -0x10(%rbp), %edi
addl $0x0, %edi
movl -0x14(%rbp), %esi
addl $0x1, %esi
movl $0xf, %edx
callq 0x10d70
movl -0x10(%rbp), %edi
addl $0x0, %edi
movl -0x14(%rbp), %esi
addl $0x2, %esi
movl $0xf, %edx
callq 0x10d70
movl -0x10(%rbp), %edi
addl $0x0, %edi
movl -0x14(%rbp), %esi
addl $0x3, %esi
movl $0xf, %edx
callq 0x10d70
movl -0x10(%rbp), %edi
addl $0x0, %edi
movl -0x14(%rbp), %esi
addl $0x4, %esi
movl $0xf, %edx
callq 0x10d70
movl -0x10(%rbp), %edi
addl $0x0, %edi
movl -0x14(%rbp), %esi
addl $0x5, %esi
movl $0xf, %edx
callq 0x10d70
movl -0x10(%rbp), %edi
addl $0x1, %edi
movl -0x14(%rbp), %esi
addl $0x0, %esi
movl $0xf, %edx
callq 0x10d70
movl -0x10(%rbp), %edi
addl $0x2, %edi
movl -0x14(%rbp), %esi
addl $0x0, %esi
movl $0xf, %edx
callq 0x10d70
movl -0x10(%rbp), %edi
addl $0x3, %edi
movl -0x14(%rbp), %esi
addl $0x0, %esi
movl $0xf, %edx
callq 0x10d70
movl -0x10(%rbp), %edi
addl $0x4, %edi
movl -0x14(%rbp), %esi
addl $0x0, %esi
movl $0xf, %edx
callq 0x10d70
movl -0x10(%rbp), %edi
addl $0x5, %edi
movl -0x14(%rbp), %esi
addl $0x0, %esi
movl $0xf, %edx
callq 0x10d70
movl -0x10(%rbp), %edi
subl $0x1, %edi
movl -0x14(%rbp), %esi
addl $0x0, %esi
movl $0xf, %edx
callq 0x10d70
movl -0x10(%rbp), %edi
subl $0x2, %edi
movl -0x14(%rbp), %esi
addl $0x0, %esi
movl $0xf, %edx
callq 0x10d70
movl -0x10(%rbp), %edi
subl $0x3, %edi
movl -0x14(%rbp), %esi
addl $0x0, %esi
movl $0xf, %edx
callq 0x10d70
movl -0x10(%rbp), %edi
subl $0x4, %edi
movl -0x14(%rbp), %esi
addl $0x0, %esi
movl $0xf, %edx
callq 0x10d70
movl -0x10(%rbp), %edi
subl $0x5, %edi
movl -0x14(%rbp), %esi
addl $0x0, %esi
movl $0xf, %edx
callq 0x10d70
leaq 0x26e2f1(%rip), %rax    # 0x39a48c
movl (%rax), %eax
leaq 0x14b84c(%rip), %rcx    # 0x2779f0
cltd
idivl (%rcx)
addl $0x1, %eax
movl %eax, -0x10(%rbp)
leaq 0x14b82c(%rip), %rax    # 0x2779e0
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
leaq 0x156564(%rip), %rax    # 0x282724
imull $0x31a, (%rax), %eax    # imm = 0x31A
movl $0x64, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x2c(%rbp), %eax
addl $0x6, %ecx
cmpl %ecx, %eax
jle 0x12c1e5
movl -0x10(%rbp), %eax
addl $0x5, %eax
movl %eax, -0x10(%rbp)
jmp 0x12c1ee
movl -0x10(%rbp), %eax
subl $0x2, %eax
movl %eax, -0x10(%rbp)
callq 0x15b1f0
callq 0x15bb80
addq $0x40, %rsp
popq %rbp
retq
nop