// File: 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
subq $0x40, %rsp
movl %edi, -0x4(%rbp)
leaq 0x24288a(%rip), %rax    # 0x39a56c
movl (%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
leaq 0x242885(%rip), %rcx    # 0x39a578
subl (%rcx), %eax
movl $0x5a, %ecx
cltd
idivl %ecx
addl $0x1, %eax
movl %eax, -0x10(%rbp)
movl $0x0, -0x8(%rbp)
cmpl $0x168, -0x8(%rbp)      # imm = 0x168
jg 0x157f66
movslq -0x8(%rbp), %rcx
leaq 0x9a62e(%rip), %rax     # 0x1f2350
imulq $0x16c, %rcx, %rcx      # imm = 0x16C
addq %rcx, %rax
movslq -0x4(%rbp), %rcx
xorps %xmm0, %xmm0
ucomiss (%rax,%rcx,4), %xmm0
jb 0x157d3e
jmp 0x157f58
leaq 0xbb71f(%rip), %rax     # 0x213464
cmpl $0x0, (%rax)
jne 0x157d4f
jmp 0x157f58
movslq -0x8(%rbp), %rcx
leaq 0x7a4a6(%rip), %rax     # 0x1d2200
imulq $0x16c, %rcx, %rcx      # imm = 0x16C
addq %rcx, %rax
movslq -0x4(%rbp), %rcx
movss (%rax,%rcx,4), %xmm0
movslq -0x8(%rbp), %rcx
leaq 0x9a5d8(%rip), %rax     # 0x1f2350
imulq $0x16c, %rcx, %rcx      # imm = 0x16C
addq %rcx, %rax
movslq -0x4(%rbp), %rcx
divss (%rax,%rcx,4), %xmm0
movss %xmm0, -0x1c(%rbp)
leaq 0xbb6c9(%rip), %rax     # 0x213460
cvtsi2ssl (%rax), %xmm1
movss -0x1c(%rbp), %xmm0
subss %xmm1, %xmm0
movss %xmm0, -0x1c(%rbp)
movss -0x1c(%rbp), %xmm0
leaq 0xbb6af(%rip), %rax     # 0x213464
cvtsi2ssl (%rax), %xmm1
divss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movl %eax, -0xc(%rbp)
cmpl $0xb, -0xc(%rbp)
jle 0x157dd3
movl $0xb, -0xc(%rbp)
jmp 0x157df5
cmpl $0x0, -0xc(%rbp)
jg 0x157de2
movl $0x8, -0xc(%rbp)
jmp 0x157df3
movslq -0xc(%rbp), %rcx
leaq 0x71863(%rip), %rax     # 0x1c9650
movl (%rax,%rcx,4), %eax
movl %eax, -0xc(%rbp)
jmp 0x157df5
movl -0x4(%rbp), %eax
subl $0x5a, %eax
cvtsi2ss %eax, %xmm0
movss 0x19b49(%rip), %xmm1    # 0x171950
divss %xmm1, %xmm0
movss %xmm0, -0x1c(%rbp)
leaq 0x242769(%rip), %rax    # 0x39a580
movl (%rax), %eax
movl %eax, -0x30(%rbp)
movss -0x1c(%rbp), %xmm0
movss %xmm0, -0x34(%rbp)
movl -0x8(%rbp), %eax
addl $0x5a, %eax
cvtsi2sd %eax, %xmm0
movsd 0x2acf8(%rip), %xmm1    # 0x182b30
callq 0x94d0
movsd 0x1733b(%rip), %xmm1    # 0x16f180
divsd %xmm1, %xmm0
callq 0x96f0
movaps %xmm0, %xmm1
movss -0x34(%rbp), %xmm0
cvtsd2ss %xmm1, %xmm1
mulss %xmm1, %xmm0
leaq 0x242707(%rip), %rax    # 0x39a56c
movl (%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x30(%rbp), %eax
leaq 0x2426fd(%rip), %rdx    # 0x39a578
subl (%rdx), %ecx
cvtsi2ss %ecx, %xmm1
mulss %xmm1, %xmm0
cvttss2si %xmm0, %ecx
addl %ecx, %eax
movl %eax, -0x2c(%rbp)
movl -0x10(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x2c(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x14(%rbp)
leaq 0x2426da(%rip), %rax    # 0x39a584
movl (%rax), %eax
movl %eax, -0x24(%rbp)
movss -0x1c(%rbp), %xmm0
movss %xmm0, -0x28(%rbp)
movl -0x8(%rbp), %eax
addl $0x5a, %eax
cvtsi2sd %eax, %xmm0
movsd 0x2ac65(%rip), %xmm1    # 0x182b30
callq 0x94d0
movsd 0x172a8(%rip), %xmm1    # 0x16f180
divsd %xmm1, %xmm0
callq 0x9080
movaps %xmm0, %xmm1
movss -0x28(%rbp), %xmm0
cvtsd2ss %xmm1, %xmm1
mulss %xmm1, %xmm0
leaq 0x242674(%rip), %rax    # 0x39a56c
movl (%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x24(%rbp), %eax
leaq 0x24266a(%rip), %rdx    # 0x39a578
subl (%rdx), %ecx
cvtsi2ss %ecx, %xmm1
mulss %xmm1, %xmm0
cvttss2si %xmm0, %ecx
addl %ecx, %eax
movl %eax, -0x20(%rbp)
movl -0x10(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x20(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x18(%rbp)
movl -0x14(%rbp), %edi
movl -0x18(%rbp), %esi
movl -0x14(%rbp), %edx
movl -0x18(%rbp), %ecx
movl -0xc(%rbp), %eax
movb %al, %r8b
movl -0x10(%rbp), %eax
movzbl %r8b, %r8d
movzbl %al, %r9d
callq 0x11710
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x157d0a
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)