// File: /workspace/github_cpp_makefile_star2_O2/jkingan[P]ladyheather/heathmsc.cpp
// Function: plot_raw_signals(int)
void plot_raw_signals(int el)
{
int az;
int color;
int thick;
int x, y;
float elf;

   // draw the raw signal strength data seen at an elevation angle
   thick = (AZEL_RADIUS/90)+1;

   for(az=0; az<=360; az++) {
      if(db_3d_count[az][el] <= 0.0F) continue;
      if(sig_level_step == 0) continue;

      elf = db_3d_sum[az][el] / db_3d_count[az][el];
      elf -= (float) min_sig_db;
      color = (int) (elf / (float) sig_level_step);
      if     (color > LEVEL_COLORS) color = LEVEL_COLORS;
      else if(color <= BLACK)       color = LOW_SIGNAL;
      else                          color = level_color[color];

      elf = ((float)(el - 90)) / 90.0F;

      x = AZEL_X + (int) (elf * cos360(az+90) * AZEL_RADIUS) - thick/2;
      y = AZEL_Y + (int) (elf * sin360(az+90) * AZEL_RADIUS) - thick/2;

      thick_line(x,y, x,y, color, thick);
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
leaq 0x241306(%rip), %rax    # 0x32538c
movl (%rax), %eax
pushq $0x2
popq %rcx
cltd
idivl %ecx
leaq 0x241303(%rip), %rcx    # 0x325398
subl (%rcx), %eax
pushq $0x5a
popq %r8
cltd
idivl %r8d
movl %eax, %ecx
movslq %edi, %rdi
leal -0x5a(%rdi), %eax
cvtsi2ss %eax, %xmm0
incl %ecx
divss 0x1304f(%rip), %xmm0    # 0xf7104
movss %xmm0, -0x34(%rbp)
pushq $-0x2
popq %rsi
movl %ecx, %eax
cltd
shlq $0x2, %rdi
leaq 0x990a5(%rip), %r9      # 0x17d170
addq %rdi, %r9
addq 0x55f23(%rip), %rdi     # 0x139ff8
movq %rdi, -0x50(%rbp)
idivl %esi
movl %eax, -0x30(%rbp)
xorl %r12d, %r12d
xorps %xmm1, %xmm1
leaq 0xba199(%rip), %rsi     # 0x19e284
movzbl %cl, %eax
movl %eax, -0x38(%rbp)
movq %r9, -0x48(%rbp)
pushq $0x2
popq %r13
cmpq $0x2014c, %r12          # imm = 0x2014C
je 0xe425c
movss (%r9,%r12), %xmm0
ucomiss %xmm0, %xmm1
setae %cl
movl (%rsi), %eax
testl %eax, %eax
sete %dl
orb %cl, %dl
jne 0xe424d
movq -0x50(%rbp), %rcx
movss (%rcx,%r12), %xmm1
divss %xmm0, %xmm1
leaq 0xba14a(%rip), %rcx     # 0x19e280
cvtsi2ssl (%rcx), %xmm0
subss %xmm0, %xmm1
cvtsi2ss %eax, %xmm0
divss %xmm0, %xmm1
cvttss2si %xmm1, %eax
movb $0xb, %cl
cmpl $0xb, %eax
jg 0xe4165
testl %eax, %eax
jle 0xe4163
movl %eax, %eax
leaq 0x704f2(%rip), %rcx     # 0x154650
movb (%rcx,%rax,4), %cl
jmp 0xe4165
movb $0x8, %cl
movb %cl, -0x29(%rbp)
cvtsi2sd %r8d, %xmm0
movsd %xmm0, -0x58(%rbp)
leaq 0x241227(%rip), %rax    # 0x3253a0
movl (%rax), %r14d
addl -0x30(%rbp), %r14d
movsd 0x24028(%rip), %xmm1    # 0x1081b0
movl %r8d, -0x3c(%rbp)
callq 0x94d0
movsd 0xefc7(%rip), %xmm1     # 0xf3160
divsd %xmm1, %xmm0
callq 0x9710
cvtsd2ss %xmm0, %xmm0
leaq 0x2411df(%rip), %rbx    # 0x32538c
movl (%rbx), %eax
cltd
idivl %r13d
leaq 0x2411de(%rip), %rcx    # 0x325398
subl (%rcx), %eax
cvtsi2ss %eax, %xmm1
mulss -0x34(%rbp), %xmm0
mulss %xmm0, %xmm1
cvttss2si %xmm1, %r15d
addl %r14d, %r15d
leaq 0x2411cc(%rip), %rax    # 0x3253a4
movl (%rax), %r14d
addl -0x30(%rbp), %r14d
movsd -0x58(%rbp), %xmm0
movsd 0x23fc4(%rip), %xmm1    # 0x1081b0
callq 0x94d0
divsd 0xef67(%rip), %xmm0     # 0xf3160
callq 0x9080
cvtsd2ss %xmm0, %xmm0
mulss -0x34(%rbp), %xmm0
movl (%rbx), %eax
cltd
idivl %r13d
leaq 0x241184(%rip), %rcx    # 0x325398
subl (%rcx), %eax
cvtsi2ss %eax, %xmm1
mulss %xmm0, %xmm1
cvttss2si %xmm1, %ecx
addl %r14d, %ecx
movzbl -0x29(%rbp), %r8d
movl %r15d, %edi
movl %ecx, %esi
movl %r15d, %edx
movl -0x38(%rbp), %r9d
callq 0xe78c
movl -0x3c(%rbp), %r8d
movq -0x48(%rbp), %r9
xorps %xmm1, %xmm1
leaq 0xba037(%rip), %rsi     # 0x19e284
incl %r8d
addq $0x16c, %r12            # imm = 0x16C
jmp 0xe40f9
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq