// File: /workspace/github_cpp_makefile_star2_O3/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 0x2419fe(%rip), %rax    # 0x33b38c
movl (%rax), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
leaq 0x2419f8(%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
addl %edx, %ecx
incl %ecx
movslq %edi, %rsi
leal -0x5a(%rsi), %edx
cvtsi2ss %edx, %xmm0
divss 0x136b1(%rip), %xmm0    # 0x10d084
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)
leaq 0xba891(%rip), %rax     # 0x1b4284
movl (%rax), %eax
shlq $0x2, %rsi
leaq 0x99770(%rip), %rdi     # 0x193170
addq %rsi, %rdi
addq 0x565ee(%rip), %rsi     # 0x14fff8
movq %rsi, -0x48(%rbp)
movl $0x5a, %ebx
xorl %r13d, %r13d
xorps %xmm1, %xmm1
movq %rdi, -0x40(%rbp)
movss (%rdi,%r13), %xmm0
ucomiss %xmm0, %xmm1
setae %cl
testl %eax, %eax
sete %dl
orb %cl, %dl
jne 0xf9b78
movq -0x48(%rbp), %rcx
movss (%rcx,%r13), %xmm1
divss %xmm0, %xmm1
leaq 0xba835(%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 0xf9a80
testl %eax, %eax
jle 0xf9a7e
movl %eax, %eax
leaq 0x70bd7(%rip), %rcx     # 0x16a650
movb (%rcx,%rax,4), %cl
jmp 0xf9a80
movb $0x8, %cl
movb %cl, -0x29(%rbp)
xorps %xmm0, %xmm0
cvtsi2sd %ebx, %xmm0
movsd %xmm0, -0x50(%rbp)
leaq 0x24190a(%rip), %rax    # 0x33b3a0
movl (%rax), %r15d
addl -0x30(%rbp), %r15d
movsd 0x24693(%rip), %xmm1    # 0x11e138
callq 0x94d0
movsd 0xf6ae(%rip), %xmm1     # 0x109160
divsd %xmm1, %xmm0
callq 0x9710
cvtsd2ss %xmm0, %xmm0
leaq 0x2418c6(%rip), %r12    # 0x33b38c
movl (%r12), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
leaq 0x2418be(%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 0x2418a9(%rip), %rax    # 0x33b3a4
movl (%rax), %r15d
addl -0x30(%rbp), %r15d
movsd -0x50(%rbp), %xmm0
movsd 0x24629(%rip), %xmm1    # 0x11e138
callq 0x94d0
divsd 0xf644(%rip), %xmm0     # 0x109160
callq 0x9080
cvtsd2ss %xmm0, %xmm0
movl (%r12), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
leaq 0x24185f(%rip), %rax    # 0x33b398
subl (%rax), %ecx
mulss -0x34(%rbp), %xmm0
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 0xec9b
movq -0x40(%rbp), %rdi
leaq 0xba711(%rip), %rax     # 0x1b4284
movl (%rax), %eax
xorps %xmm1, %xmm1
incl %ebx
addq $0x16c, %r13            # imm = 0x16C
cmpq $0x2014c, %r13          # imm = 0x2014C
jne 0xf9a1d
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq