// File: jkingan[P]ladyheather/heathgps.cpp
// Function: show_sun_azel(int, int)
void show_sun_azel(int row, int col)
{
int color;
static double last_sun_az = 0.0;
static double last_sun_el = 0.0;
char c;

   color = GREY;
   if(lat || lon || alt) color = WHITE;
   if(eclipsed) color = YELLOW;
if((zoom_screen == 0) && (row >= MOUSE_ROW)) return;

   if(sun_az > last_sun_az) c = UP_ARROW;
   else if(sun_az < last_sun_az) c = DOWN_ARROW;
   else c = ':';
   last_sun_az = sun_az;
   sprintf(out, "Sun az%c  %9.5f%c", c,sun_az, DEGREES);
   if(com[TRACK_PORT].process_com && (com[TRACK_PORT].com_running > 0)) {
      if(track_port_info & SEND_SUN) strupr(out);
   }
   vidstr(row++, col, color, out);

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

   if(sun_el > last_sun_el) c = UP_ARROW;
   else if(sun_el < last_sun_el) c = DOWN_ARROW;
   else c = ':';
   last_sun_el = sun_el;
   sprintf(out, "Sun el%c  %9.5f%c", c, sun_el, DEGREES);
   if(com[TRACK_PORT].process_com && (com[TRACK_PORT].com_running > 0)) {
      if(track_port_info & SEND_SUN) strupr(out);
   }
   vidstr(row++, col, color, out);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movl $0x8, -0xc(%rbp)
leaq 0x27fd74(%rip), %rax    # 0x36c1b0
movsd (%rax), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0xec479
jp 0xec479
leaq 0x27fd66(%rip), %rax    # 0x36c1b8
movsd (%rax), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0xec479
jp 0xec479
leaq 0x27fd58(%rip), %rax    # 0x36c1c0
movsd (%rax), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0xec479
jp 0xec479
jmp 0xec480
movl $0xf, -0xc(%rbp)
leaq 0x280569(%rip), %rax    # 0x36c9f0
cmpl $0x0, (%rax)
je 0xec493
movl $0xe, -0xc(%rbp)
leaq 0x27f4ee(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x0, %eax
jne 0xec4b5
movl -0x4(%rbp), %eax
leaq 0x18b4dc(%rip), %rcx    # 0x277988
cmpl (%rcx), %eax
jl 0xec4b5
jmp 0xec68d
leaq 0x2804f4(%rip), %rax    # 0x36c9b0
movsd (%rax), %xmm0
ucomisd 0x2e53c8(%rip), %xmm0   # 0x3d1890
jbe 0xec4d0
movb $0x18, -0xd(%rbp)
jmp 0xec4f5
leaq 0x2804d9(%rip), %rax    # 0x36c9b0
movsd (%rax), %xmm1
movsd 0x2e53ad(%rip), %xmm0   # 0x3d1890
ucomisd %xmm1, %xmm0
jbe 0xec4ef
movb $0x19, -0xd(%rbp)
jmp 0xec4f3
movb $0x3a, -0xd(%rbp)
jmp 0xec4f5
leaq 0x2804b4(%rip), %rax    # 0x36c9b0
movsd (%rax), %xmm0
movsd %xmm0, 0x2e5388(%rip)   # 0x3d1890
movsbl -0xd(%rbp), %edx
leaq 0x28049d(%rip), %rax    # 0x36c9b0
movsd (%rax), %xmm0
leaq 0x2aeee2(%rip), %rdi    # 0x39b400
leaq 0x9d4a4(%rip), %rsi     # 0x1899c9
movl $0x1, %ecx
movb $0x1, %al
callq 0x9060
leaq 0x280f88(%rip), %rax    # 0x36d4c0
cmpl $0x0, 0x28cf4(%rax)
je 0xec570
leaq 0x280f78(%rip), %rax    # 0x36d4c0
cmpl $0x0, 0x28cf0(%rax)
jle 0xec570
leaq 0x280490(%rip), %rax    # 0x36c9e8
movl (%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0xec56e
leaq 0x2aee97(%rip), %rdi    # 0x39b400
callq 0x9890
jmp 0xec570
movl -0x4(%rbp), %edi
movl %edi, %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
movl -0x8(%rbp), %esi
movl -0xc(%rbp), %eax
leaq 0x2aee78(%rip), %rcx    # 0x39b400
movzbl %al, %edx
callq 0x10ee0
leaq 0x27f3f1(%rip), %rax    # 0x36b988
movzbl (%rax), %eax
cmpl $0x0, %eax
jne 0xec5b2
movl -0x4(%rbp), %eax
leaq 0x18b3df(%rip), %rcx    # 0x277988
cmpl (%rcx), %eax
jl 0xec5b2
jmp 0xec68d
leaq 0x2803df(%rip), %rax    # 0x36c998
movsd (%rax), %xmm0
ucomisd 0x2e52d3(%rip), %xmm0   # 0x3d1898
jbe 0xec5cd
movb $0x18, -0xd(%rbp)
jmp 0xec5f2
leaq 0x2803c4(%rip), %rax    # 0x36c998
movsd (%rax), %xmm1
movsd 0x2e52b8(%rip), %xmm0   # 0x3d1898
ucomisd %xmm1, %xmm0
jbe 0xec5ec
movb $0x19, -0xd(%rbp)
jmp 0xec5f0
movb $0x3a, -0xd(%rbp)
jmp 0xec5f2
leaq 0x28039f(%rip), %rax    # 0x36c998
movsd (%rax), %xmm0
movsd %xmm0, 0x2e5293(%rip)   # 0x3d1898
movsbl -0xd(%rbp), %edx
leaq 0x280388(%rip), %rax    # 0x36c998
movsd (%rax), %xmm0
leaq 0x2aede5(%rip), %rdi    # 0x39b400
leaq 0x9d3b9(%rip), %rsi     # 0x1899db
movl $0x1, %ecx
movb $0x1, %al
callq 0x9060
leaq 0x280e8b(%rip), %rax    # 0x36d4c0
cmpl $0x0, 0x28cf4(%rax)
je 0xec66d
leaq 0x280e7b(%rip), %rax    # 0x36d4c0
cmpl $0x0, 0x28cf0(%rax)
jle 0xec66d
leaq 0x280393(%rip), %rax    # 0x36c9e8
movl (%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0xec66b
leaq 0x2aed9a(%rip), %rdi    # 0x39b400
callq 0x9890
jmp 0xec66d
movl -0x4(%rbp), %edi
movl %edi, %eax
addl $0x1, %eax
movl %eax, -0x4(%rbp)
movl -0x8(%rbp), %esi
movl -0xc(%rbp), %eax
leaq 0x2aed7b(%rip), %rcx    # 0x39b400
movzbl %al, %edx
callq 0x10ee0
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)