// File: /workspace/github_cpp_makefile_star2_O3/jkingan[P]ladyheather/heathgps.cpp
// Function: show_moon_azel(int, int)
void show_moon_azel(int row, int col)
{
int color;
static double last_moon_az = 0.0;
static double last_moon_el = 0.0;
static double last_moon_phase = 0.0;
char c;

   color = GREY;
   if(lat || lon || alt) color = WHITE;
   if(eclipsed) color = YELLOW;
//
// MoonPhase = moon_info(jd_utc);
// MoonPhase = moon_phase(jd_utc);

   if((zoom_screen == 0) && (row >= MOUSE_ROW)) return;
   if(moon_az > last_moon_az) c = UP_ARROW;
   else if(moon_az < last_moon_az) c = DOWN_ARROW;
   else c = ':';
   last_moon_az = moon_az;
   sprintf(out, "Moon az%c %9.5f%c", c, moon_az, DEGREES);
   if(com[TRACK_PORT].process_com && (com[TRACK_PORT].com_running > 0)) {
      if(track_port_info & SEND_MOON) strupr(out);
   }
   vidstr(row++, col, color, out);

   if((zoom_screen == 0) && (row >= MOUSE_ROW)) return;

   if(moon_el > last_moon_el) c = UP_ARROW;
   else if(moon_el < last_moon_el) c = DOWN_ARROW;
   else c = ':';
   last_moon_el = moon_el;
   sprintf(out, "Moon el%c %9.5f%c", c, moon_el, DEGREES);

   if(com[TRACK_PORT].process_com && (com[TRACK_PORT].com_running > 0)) {
      if(track_port_info & SEND_MOON) strupr(out);
   }
   vidstr(row++, col, color, out);

   if((zoom_screen == 0) && (row >= MOUSE_ROW)) return;
   if(MoonPhase > last_moon_phase) c = UP_ARROW;
   else if(MoonPhase < last_moon_phase) c = DOWN_ARROW;
   else c = ':';
   last_moon_phase = MoonPhase;
   sprintf(out, "Phase%c   %9.5f%%", c, (MoonPhase*100.0));
   color = WHITE;
   if(eclipsed) color = YELLOW;
   vidstr(row++, col, WHITE, out);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x25ed12(%rip), %rax    # 0x30cfd0
leaq 0x25ed13(%rip), %rcx    # 0x30cfd8
movsd (%rcx), %xmm0
xorpd %xmm1, %xmm1
movsd (%rax), %xmm2
cmpneqpd %xmm1, %xmm2
cmpneqpd %xmm1, %xmm0
orpd %xmm2, %xmm0
leaq 0x25ecfa(%rip), %rax    # 0x30cfe0
movsd (%rax), %xmm2
ucomisd %xmm1, %xmm2
movl $0xf, %eax
movl $0x8, %ecx
cmovnel %eax, %ecx
cmovpl %eax, %ecx
movd %xmm0, %edx
testb $0x1, %dl
cmovnel %eax, %ecx
movl %esi, %ebx
leaq 0x25f4ff(%rip), %rax    # 0x30d810
cmpl $0x0, (%rax)
movl %edi, %r14d
movl $0xe, %r12d
cmovel %ecx, %r12d
leaq 0x25e480(%rip), %rax    # 0x30c7a8
cmpb $0x0, (%rax)
leaq 0x16a476(%rip), %rax    # 0x2187a8
jne 0xae33d
cmpl %r14d, (%rax)
jle 0xae4a8
leaq 0x25f4a4(%rip), %rax    # 0x30d7e8
movsd (%rax), %xmm0
movsd 0x2c4328(%rip), %xmm1   # 0x372678
ucomisd %xmm0, %xmm1
movl $0x19, %eax
movl $0x3a, %ecx
cmoval %eax, %ecx
ucomisd %xmm1, %xmm0
movl $0x18, %edx
cmovbel %ecx, %edx
movsd %xmm0, 0x2c4303(%rip)   # 0x372678
leaq 0x28dea4(%rip), %rdi    # 0x33c220
leaq 0x782d1(%rip), %rsi     # 0x126654
movl $0x1, %ecx
movb $0x1, %al
callq 0x9060
leaq 0x25ff4a(%rip), %r13    # 0x30e2e0
cmpl $0x0, 0x28cf4(%r13)
je 0xae3c2
cmpl $0x0, 0x28cf0(%r13)
jle 0xae3c2
leaq 0x25f457(%rip), %rax    # 0x30d808
testb $0x2, (%rax)
je 0xae3c2
leaq 0x28de63(%rip), %rdi    # 0x33c220
callq 0x9899
leal 0x1(%r14), %r15d
movzbl %r12b, %r12d
leaq 0x28de4f(%rip), %rcx    # 0x33c220
movl %r14d, %edi
movl %ebx, %esi
movl %r12d, %edx
callq 0xe787
leaq 0x25e3c3(%rip), %rax    # 0x30c7a8
cmpb $0x0, (%rax)
leaq 0x16a3b9(%rip), %rax    # 0x2187a8
jne 0xae3fa
cmpl (%rax), %r15d
jge 0xae4a8
leaq 0x25f3ef(%rip), %rax    # 0x30d7f0
movsd (%rax), %xmm0
movsd 0x2c4273(%rip), %xmm1   # 0x372680
ucomisd %xmm0, %xmm1
movl $0x19, %eax
movl $0x3a, %ecx
cmoval %eax, %ecx
ucomisd %xmm1, %xmm0
movl $0x18, %edx
cmovbel %ecx, %edx
movsd %xmm0, 0x2c424e(%rip)   # 0x372680
leaq 0x28dde7(%rip), %rdi    # 0x33c220
leaq 0x78226(%rip), %rsi     # 0x126666
movl $0x1, %ecx
movb $0x1, %al
callq 0x9060
cmpl $0x0, 0x28cf4(%r13)
je 0xae478
cmpl $0x0, 0x28cf0(%r13)
jle 0xae478
leaq 0x25f3a1(%rip), %rax    # 0x30d808
testb $0x2, (%rax)
je 0xae478
leaq 0x28ddad(%rip), %rdi    # 0x33c220
callq 0x9899
addl $0x2, %r14d
leaq 0x28dd9d(%rip), %rcx    # 0x33c220
movl %r15d, %edi
movl %ebx, %esi
movl %r12d, %edx
callq 0xe787
leaq 0x25e311(%rip), %rax    # 0x30c7a8
cmpb $0x0, (%rax)
leaq 0x16a307(%rip), %rax    # 0x2187a8
jne 0xae4b7
cmpl (%rax), %r14d
jl 0xae4b7
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x25f382(%rip), %rax    # 0x30d840
movsd (%rax), %xmm0
movsd 0x2c41be(%rip), %xmm1   # 0x372688
ucomisd %xmm0, %xmm1
movl $0x19, %eax
movl $0x3a, %ecx
cmoval %eax, %ecx
ucomisd %xmm1, %xmm0
movl $0x18, %edx
cmovbel %ecx, %edx
movsd %xmm0, 0x2c4199(%rip)   # 0x372688
mulsd 0x5ab69(%rip), %xmm0    # 0x109060
leaq 0x28dd22(%rip), %r15    # 0x33c220
leaq 0x78173(%rip), %rsi     # 0x126678
movq %r15, %rdi
movb $0x1, %al
callq 0x9060
movl %r14d, %edi
movl %ebx, %esi
movl $0xf, %edx
movq %r15, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe787