// File: /workspace/github_cpp_makefile_star2_O2/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 0x258d7e(%rip), %rax    # 0x2f6fd0
leaq 0x258d7f(%rip), %rcx    # 0x2f6fd8
movsd (%rcx), %xmm0
xorpd %xmm1, %xmm1
movsd (%rax), %xmm2
cmpneqpd %xmm1, %xmm2
cmpneqpd %xmm1, %xmm0
orpd %xmm2, %xmm0
leaq 0x258d66(%rip), %rax    # 0x2f6fe0
movsd (%rax), %xmm2
ucomisd %xmm1, %xmm2
pushq $0xf
popq %rax
pushq $0x8
popq %rcx
cmovnel %eax, %ecx
cmovpl %eax, %ecx
movd %xmm0, %edx
testb $0x1, %dl
cmovnel %eax, %ecx
movl %esi, -0x2c(%rbp)
leaq 0x25956e(%rip), %rax    # 0x2f7810
cmpl $0x0, (%rax)
movl %edi, %r14d
pushq $0xe
popq %r13
cmovel %ecx, %r13d
leaq 0x2584f1(%rip), %rax    # 0x2f67a8
cmpb $0x0, (%rax)
leaq 0x1644e7(%rip), %rax    # 0x2027a8
jne 0x9e2cc
cmpl %r14d, (%rax)
jle 0x9e429
leaq 0x259515(%rip), %rax    # 0x2f77e8
movsd (%rax), %xmm0
movsd 0x2be399(%rip), %xmm1   # 0x35c678
ucomisd %xmm0, %xmm1
pushq $0x19
popq %rax
pushq $0x3a
popq %r15
movl %r15d, %edx
cmoval %eax, %edx
ucomisd %xmm1, %xmm0
pushq $0x18
popq %rax
cmoval %eax, %edx
movsd %xmm0, 0x2be376(%rip)   # 0x35c678
leaq 0x287f17(%rip), %rdi    # 0x326220
leaq 0x72289(%rip), %rsi     # 0x110599
pushq $0x1
popq %rcx
movb $0x1, %al
callq 0x9060
leaq 0x259fbf(%rip), %rbx    # 0x2f82e0
cmpl $0x0, 0x28cf4(%rbx)
je 0x9e34b
cmpl $0x0, 0x28cf0(%rbx)
jle 0x9e34b
leaq 0x2594ce(%rip), %rax    # 0x2f7808
testb $0x2, (%rax)
je 0x9e34b
leaq 0x287eda(%rip), %rdi    # 0x326220
callq 0x988f
leal 0x1(%r14), %r12d
movzbl %r13b, %r13d
leaq 0x287ec6(%rip), %rcx    # 0x326220
movl %r14d, %edi
movl -0x2c(%rbp), %esi
movl %r13d, %edx
callq 0xe2d2
leaq 0x258439(%rip), %rax    # 0x2f67a8
cmpb $0x0, (%rax)
leaq 0x16442f(%rip), %rax    # 0x2027a8
jne 0x9e384
cmpl (%rax), %r12d
jge 0x9e429
leaq 0x259465(%rip), %rax    # 0x2f77f0
movsd (%rax), %xmm0
movsd 0x2be2e9(%rip), %xmm1   # 0x35c680
ucomisd %xmm0, %xmm1
movl %r15d, %edx
pushq $0x19
popq %rax
cmoval %eax, %edx
ucomisd %xmm1, %xmm0
pushq $0x18
popq %rax
cmoval %eax, %edx
movsd %xmm0, 0x2be2ca(%rip)   # 0x35c680
leaq 0x287e63(%rip), %rdi    # 0x326220
leaq 0x721e7(%rip), %rsi     # 0x1105ab
pushq $0x1
popq %rcx
movb $0x1, %al
callq 0x9060
cmpl $0x0, 0x28cf4(%rbx)
je 0x9e3f8
cmpl $0x0, 0x28cf0(%rbx)
jle 0x9e3f8
leaq 0x259421(%rip), %rax    # 0x2f7808
testb $0x2, (%rax)
je 0x9e3f8
leaq 0x287e2d(%rip), %rdi    # 0x326220
callq 0x988f
addl $0x2, %r14d
leaq 0x287e1d(%rip), %rcx    # 0x326220
movl %r12d, %edi
movl -0x2c(%rbp), %esi
movl %r13d, %edx
callq 0xe2d2
leaq 0x258390(%rip), %rax    # 0x2f67a8
cmpb $0x0, (%rax)
leaq 0x164386(%rip), %rax    # 0x2027a8
jne 0x9e438
cmpl (%rax), %r14d
jl 0x9e438
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x259401(%rip), %rax    # 0x2f7840
movsd (%rax), %xmm0
movsd 0x2be23d(%rip), %xmm1   # 0x35c688
ucomisd %xmm0, %xmm1
pushq $0x19
popq %rax
cmoval %eax, %r15d
ucomisd %xmm1, %xmm0
pushq $0x18
popq %rax
cmoval %eax, %r15d
movsd %xmm0, 0x2be21f(%rip)   # 0x35c688
mulsd 0x54bef(%rip), %xmm0    # 0xf3060
leaq 0x287da8(%rip), %r12    # 0x326220
leaq 0x7213e(%rip), %rsi     # 0x1105bd
movq %r12, %rdi
movl %r15d, %edx
movb $0x1, %al
callq 0x9060
pushq $0xf
popq %rdx
movl %r14d, %edi
movl -0x2c(%rbp), %esi
movq %r12, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe2d2