// File: /workspace/github_cpp_makefile_star2_O1/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 0x25efc6(%rip), %rax    # 0x30cfd0
leaq 0x25efc7(%rip), %rcx    # 0x30cfd8
movsd (%rcx), %xmm0
xorpd %xmm1, %xmm1
movsd (%rax), %xmm2
cmpneqpd %xmm1, %xmm2
cmpneqpd %xmm1, %xmm0
orpd %xmm2, %xmm0
leaq 0x25efae(%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 0x25f7b3(%rip), %rax    # 0x30d810
cmpl $0x0, (%rax)
movl %edi, %r14d
movl $0xe, %r12d
cmovel %ecx, %r12d
leaq 0x25e734(%rip), %rax    # 0x30c7a8
cmpb $0x0, (%rax)
leaq 0x16a72a(%rip), %rax    # 0x2187a8
jne 0xae089
cmpl %r14d, (%rax)
jle 0xae1f4
leaq 0x25f758(%rip), %rax    # 0x30d7e8
movsd (%rax), %xmm0
movsd 0x2c45dc(%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, 0x2c45b7(%rip)   # 0x372678
leaq 0x28e158(%rip), %rdi    # 0x33c220
leaq 0x784a5(%rip), %rsi     # 0x126574
movl $0x1, %ecx
movb $0x1, %al
callq 0x9060
leaq 0x2601fe(%rip), %r13    # 0x30e2e0
cmpl $0x0, 0x28cf4(%r13)
je 0xae10e
cmpl $0x0, 0x28cf0(%r13)
jle 0xae10e
leaq 0x25f70b(%rip), %rax    # 0x30d808
testb $0x2, (%rax)
je 0xae10e
leaq 0x28e117(%rip), %rdi    # 0x33c220
callq 0x9899
leal 0x1(%r14), %r15d
movzbl %r12b, %r12d
leaq 0x28e103(%rip), %rcx    # 0x33c220
movl %r14d, %edi
movl %ebx, %esi
movl %r12d, %edx
callq 0xe7d0
leaq 0x25e677(%rip), %rax    # 0x30c7a8
cmpb $0x0, (%rax)
leaq 0x16a66d(%rip), %rax    # 0x2187a8
jne 0xae146
cmpl (%rax), %r15d
jge 0xae1f4
leaq 0x25f6a3(%rip), %rax    # 0x30d7f0
movsd (%rax), %xmm0
movsd 0x2c4527(%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, 0x2c4502(%rip)   # 0x372680
leaq 0x28e09b(%rip), %rdi    # 0x33c220
leaq 0x783fa(%rip), %rsi     # 0x126586
movl $0x1, %ecx
movb $0x1, %al
callq 0x9060
cmpl $0x0, 0x28cf4(%r13)
je 0xae1c4
cmpl $0x0, 0x28cf0(%r13)
jle 0xae1c4
leaq 0x25f655(%rip), %rax    # 0x30d808
testb $0x2, (%rax)
je 0xae1c4
leaq 0x28e061(%rip), %rdi    # 0x33c220
callq 0x9899
addl $0x2, %r14d
leaq 0x28e051(%rip), %rcx    # 0x33c220
movl %r15d, %edi
movl %ebx, %esi
movl %r12d, %edx
callq 0xe7d0
leaq 0x25e5c5(%rip), %rax    # 0x30c7a8
cmpb $0x0, (%rax)
leaq 0x16a5bb(%rip), %rax    # 0x2187a8
jne 0xae203
cmpl (%rax), %r14d
jl 0xae203
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x25f636(%rip), %rax    # 0x30d840
movsd (%rax), %xmm0
movsd 0x2c4472(%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, 0x2c444d(%rip)   # 0x372688
mulsd 0x5ae1d(%rip), %xmm0    # 0x109060
leaq 0x28dfd6(%rip), %r15    # 0x33c220
leaq 0x78347(%rip), %rsi     # 0x126598
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 0xe7d0