// File: /workspace/github_cpp_makefile_star2_O1/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 $0x28, %rsp
leaq 0x24212b(%rip), %rax    # 0x33b38c
movl (%rax), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
leaq 0x242125(%rip), %rax    # 0x33b398
subl (%rax), %ecx
movslq %ecx, %rcx
imulq $-0x49f49f49, %rcx, %rax # imm = 0xB60B60B7
shrq $0x20, %rax
addl %eax, %ecx
movl %ecx, %edx
shrl $0x1f, %edx
sarl $0x6, %ecx
leal (%rcx,%rdx), %eax
movslq %edi, %rdi
leal -0x5a(%rdi), %esi
cvtsi2ss %esi, %xmm0
leal 0x1(%rcx,%rdx), %ecx
divss 0x13d4a(%rip), %xmm0    # 0x10cff0
movss %xmm0, -0x34(%rbp)
movzbl %cl, %edx
movl %edx, -0x38(%rbp)
shrl $0x1f, %ecx
addl %ecx, %eax
incl %eax
sarl %eax
negl %eax
movl %eax, -0x30(%rbp)
shlq $0x2, %rdi
leaq 0x99ea6(%rip), %rsi     # 0x193170
addq %rdi, %rsi
addq 0x56d24(%rip), %rdi     # 0x14fff8
movq %rdi, -0x48(%rbp)
movl $0x5a, %ebx
xorl %r13d, %r13d
xorps %xmm1, %xmm1
leaq 0xbaf9a(%rip), %rdi     # 0x1b4284
movq %rsi, -0x40(%rbp)
movss (%rsi,%r13), %xmm0
ucomiss %xmm0, %xmm1
setae %cl
movl (%rdi), %eax
testl %eax, %eax
sete %dl
orb %cl, %dl
jne 0xf9449
movq -0x48(%rbp), %rcx
movss (%rcx,%r13), %xmm1
divss %xmm0, %xmm1
leaq 0xbaf62(%rip), %rcx     # 0x1b4280
xorps %xmm0, %xmm0
cvtsi2ssl (%rcx), %xmm0
subss %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
divss %xmm0, %xmm1
cvttss2si %xmm1, %eax
movb $0xb, %cl
cmpl $0xb, %eax
jg 0xf9353
testl %eax, %eax
jle 0xf9351
movl %eax, %eax
leaq 0x71304(%rip), %rcx     # 0x16a650
movb (%rcx,%rax,4), %cl
jmp 0xf9353
movb $0x8, %cl
movb %cl, -0x29(%rbp)
xorps %xmm0, %xmm0
cvtsi2sd %ebx, %xmm0
movsd %xmm0, -0x50(%rbp)
leaq 0x242037(%rip), %rax    # 0x33b3a0
movl (%rax), %r15d
addl -0x30(%rbp), %r15d
movsd 0x24d18(%rip), %xmm1    # 0x11e090
callq 0x94d0
movsd 0xfdd3(%rip), %xmm1     # 0x109158
divsd %xmm1, %xmm0
callq 0x9710
cvtsd2ss %xmm0, %xmm0
leaq 0x241ff3(%rip), %r12    # 0x33b38c
movl (%r12), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
leaq 0x241feb(%rip), %rax    # 0x33b398
subl (%rax), %ecx
xorps %xmm1, %xmm1
cvtsi2ss %ecx, %xmm1
mulss -0x34(%rbp), %xmm0
mulss %xmm0, %xmm1
cvttss2si %xmm1, %r14d
addl %r15d, %r14d
leaq 0x241fd6(%rip), %rax    # 0x33b3a4
movl (%rax), %r15d
addl -0x30(%rbp), %r15d
movsd -0x50(%rbp), %xmm0
movsd 0x24cae(%rip), %xmm1    # 0x11e090
callq 0x94d0
divsd 0xfd69(%rip), %xmm0     # 0x109158
callq 0x9080
cvtsd2ss %xmm0, %xmm0
mulss -0x34(%rbp), %xmm0
movl (%r12), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
leaq 0x241f87(%rip), %rax    # 0x33b398
subl (%rax), %ecx
xorps %xmm1, %xmm1
cvtsi2ss %ecx, %xmm1
mulss %xmm0, %xmm1
cvttss2si %xmm1, %ecx
addl %r15d, %ecx
movzbl -0x29(%rbp), %r8d
movl %r14d, %edi
movl %ecx, %esi
movl %r14d, %edx
movl -0x38(%rbp), %r9d
callq 0xed0e
movq -0x40(%rbp), %rsi
xorps %xmm1, %xmm1
leaq 0xbae3b(%rip), %rdi     # 0x1b4284
incl %ebx
addq $0x16c, %r13            # imm = 0x16C
cmpq $0x2014c, %r13          # imm = 0x2014C
jne 0xf92ee
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq