// File: /workspace/github_cpp_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
leaq 0x25ffc8(%rip), %rax    # 0x33b2c0
movl $0x0, (%rax)
leaq 0x25ffab(%rip), %rcx    # 0x33b2b0
cmpb $0x0, (%rcx)
je 0xdb376
leaq 0x13d4c7(%rip), %rbx    # 0x2187d8
cmpl $0x0, (%rbx)
jne 0xdb376
leaq 0x163c3b(%rip), %rcx    # 0x23ef58
movl (%rcx), %ecx
testl %ecx, %ecx
je 0xdb332
leaq 0x13d4da(%rip), %rdx    # 0x218804
cmpl $0x258, (%rdx)          # imm = 0x258
jl 0xdb376
testl %ecx, %ecx
je 0xdb34e
leaq 0x2600ab(%rip), %rcx    # 0x33b3e8
cmpb $0x0, (%rcx)
je 0xdb34e
leaq 0x2600a3(%rip), %rcx    # 0x33b3ec
testb $0x8, (%rcx)
jne 0xdb376
leaq 0x231453(%rip), %rcx    # 0x30c7a8
movzbl (%rcx), %ecx
cmpl $0x4c, %ecx
je 0xdb361
testl %ecx, %ecx
jne 0xdb376
movl $0x1, (%rax)
callq 0xed34
callq 0xfbc70
cmpl $0x0, (%rbx)
je 0xdb385
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x25ff1c(%rip), %rax    # 0x33b2a8
movl (%rax), %ebx
leaq 0x13d4e7(%rip), %rax    # 0x21887c
cmpl (%rax), %ebx
jl 0xdb3a6
leaq 0x26004c(%rip), %rax    # 0x33b3ec
movl $0x8, (%rax)
leaq 0x25fef3(%rip), %r12    # 0x33b2a0
movl (%r12), %eax
testl %eax, %eax
js 0xdb481
leaq 0x25fedc(%rip), %rcx    # 0x33b29c
movl (%rcx), %edx
leal -0x1(%rdx), %r14d
leaq 0x25fedf(%rip), %rcx    # 0x33b2ac
addl (%rcx), %r14d
movq %rdx, -0x30(%rbp)
leal (%rdx,%rbx), %r13d
decl %r13d
addl %eax, %eax
leal (%rax,%rax,4), %edx
leal (%rdx,%r13), %eax
movl %r13d, %r15d
movl $0xf, %ecx
movl $0xf, %r8d
cmpl %eax, %r15d
je 0xdb3fd
movl $0x8, %r8d
addl %r14d, %edx
cmpl %r13d, %r15d
cmovel %ecx, %r8d
movl %r14d, %edi
movl %r15d, %esi
movl %r15d, %ecx
callq 0xe38a
movl (%r12), %esi
addl %esi, %r15d
leal (%rsi,%rsi), %ecx
leal (%rcx,%rcx,4), %edx
leal (%rdx,%r13), %eax
cmpl %eax, %r15d
jle 0xdb3e7
testl %esi, %esi
js 0xdb481
leal (%rcx,%rcx,4), %ecx
leal (%rcx,%r14), %eax
addl -0x30(%rbp), %ebx
decl %r13d
movl %r14d, %r15d
movl $0xf, %edx
movl $0xf, %r8d
cmpl %eax, %r15d
je 0xdb455
movl $0x8, %r8d
addl %r13d, %ecx
cmpl %r14d, %r15d
cmovel %edx, %r8d
movl %r15d, %edi
movl %ebx, %esi
movl %r15d, %edx
callq 0xe38a
movl (%r12), %eax
addl %eax, %r15d
addl %eax, %eax
leal (%rax,%rax,4), %ecx
leal (%rcx,%r14), %eax
cmpl %eax, %r15d
jle 0xdb43f
leaq 0x25fe24(%rip), %rax    # 0x33b2ac
movl (%rax), %r13d
leaq 0x25fe06(%rip), %rax    # 0x33b298
movl (%rax), %eax
movl %eax, %r14d
shrl $0x1f, %r14d
addl %eax, %r14d
sarl %r14d
leal (%r14,%r13), %eax
movl %eax, -0x30(%rbp)
leal (%r14,%r13), %r15d
decl %r15d
leaq 0x25fdf2(%rip), %rax    # 0x33b2a8
movl (%rax), %r12d
movl %r14d, %eax
addl %r12d, %eax
movl %eax, -0x34(%rbp)
leal (%r12,%r14), %ebx
decl %ebx
movl %r15d, %edi
movl %ebx, %esi
movl $0xf, %edx
callq 0xe657
leal (%r12,%r14), %esi
addl $-0x2, %esi
movl %r15d, %edi
movl $0xf, %edx
callq 0xe657
leal (%r12,%r14), %esi
addl $-0x3, %esi
movl %r15d, %edi
movl $0xf, %edx
callq 0xe657
leal (%r12,%r14), %esi
addl $-0x4, %esi
movl %r15d, %edi
movl $0xf, %edx
callq 0xe657
leal (%r12,%r14), %esi
addl $-0x5, %esi
movl %r15d, %edi
movl $0xf, %edx
callq 0xe657
leal (%r12,%r14), %esi
addl $-0x6, %esi
movl %r15d, %edi
movl $0xf, %edx
callq 0xe657
movl %r15d, %edi
movl %ebx, %esi
movl $0xf, %edx
callq 0xe657
movl %r15d, %edi
movl -0x34(%rbp), %esi
movl $0xf, %edx
callq 0xe657
leal (%r12,%r14), %esi
incl %esi
movl %r15d, %edi
movl $0xf, %edx
callq 0xe657
leal (%r12,%r14), %esi
addl $0x2, %esi
movl %r15d, %edi
movl $0xf, %edx
callq 0xe657
leal (%r12,%r14), %esi
addl $0x3, %esi
movl %r15d, %edi
movl $0xf, %edx
callq 0xe657
leal (%r12,%r14), %esi
addl $0x4, %esi
movl %r15d, %edi
movl $0xf, %edx
callq 0xe657
movl -0x30(%rbp), %edi
movl %ebx, %esi
movl $0xf, %edx
callq 0xe657
leal (%r14,%r13), %edi
incl %edi
movl %ebx, %esi
movl $0xf, %edx
callq 0xe657
leal (%r14,%r13), %edi
addl $0x2, %edi
movl %ebx, %esi
movl $0xf, %edx
callq 0xe657
leal (%r14,%r13), %edi
addl $0x3, %edi
movl %ebx, %esi
movl $0xf, %edx
callq 0xe657
leal (%r14,%r13), %edi
addl $0x4, %edi
movl %ebx, %esi
movl $0xf, %edx
callq 0xe657
leal (%r14,%r13), %edi
addl $-0x2, %edi
movl %ebx, %esi
movl $0xf, %edx
callq 0xe657
leal (%r14,%r13), %edi
addl $-0x3, %edi
movl %ebx, %esi
movl $0xf, %edx
callq 0xe657
leal (%r14,%r13), %edi
addl $-0x4, %edi
movl %ebx, %esi
movl $0xf, %edx
callq 0xe657
leal (%r14,%r13), %edi
addl $-0x5, %edi
movl %ebx, %esi
movl $0xf, %edx
callq 0xe657
leal (%r14,%r13), %edi
addl $-0x6, %edi
movl %ebx, %esi
movl $0xf, %edx
callq 0xe657
callq 0xfbfda
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xfc6d4