// File: jkingan[P]ladyheather/heathmsc.cpp
// Function: tick_radial(int, int, int, int, int)
void tick_radial(int grid_x,int grid_y, int grid_r, int max_el, int az)
{
int x0,y0;
int x1,y1;
int x2,y2;
int el;
double len;
double r;

   x0 = grid_x;
   y0 = grid_y;
   r = (double) grid_r;
   if(plot_signals == 3) {
      x0 -= grid_r;
      y0 += grid_r;
      r *= 2.0F;
   }

   for(el=0; el<max_el; el+=5) {
      len = (r * ((double)(max_el-el)/(double) max_el));
      x1 = (int) (len * cos360(az-2));
      y1 = (int) (len * sin360(az-2));

      x2 = (int) (len * cos360(az+2));
      y2 = (int) (len * sin360(az+2));

      line(x0+x1,y0+y1, x0+x2,y0+y2, azel_grid_color);
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movl %edx, -0xc(%rbp)
movl %ecx, -0x10(%rbp)
movl %r8d, -0x14(%rbp)
movl -0x4(%rbp), %eax
movl %eax, -0x18(%rbp)
movl -0x8(%rbp), %eax
movl %eax, -0x1c(%rbp)
cvtsi2sdl -0xc(%rbp), %xmm0
movsd %xmm0, -0x40(%rbp)
leaq 0x12a540(%rip), %rax    # 0x27a5f5
movzbl (%rax), %eax
cmpl $0x3, %eax
jne 0x1500e3
movl -0xc(%rbp), %ecx
movl -0x18(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x18(%rbp)
movl -0xc(%rbp), %eax
addl -0x1c(%rbp), %eax
movl %eax, -0x1c(%rbp)
movsd 0x1f077(%rip), %xmm0    # 0x16f150
mulsd -0x40(%rbp), %xmm0
movsd %xmm0, -0x40(%rbp)
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
cmpl -0x10(%rbp), %eax
jge 0x150283
movsd -0x40(%rbp), %xmm0
movl -0x10(%rbp), %eax
subl -0x30(%rbp), %eax
cvtsi2sd %eax, %xmm1
cvtsi2sdl -0x10(%rbp), %xmm2
divsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x38(%rbp), %xmm0
movsd %xmm0, -0x60(%rbp)
movl -0x14(%rbp), %eax
subl $0x2, %eax
cvtsi2sd %eax, %xmm0
movsd 0x329fd(%rip), %xmm1    # 0x182b30
callq 0x94d0
movsd 0x1f040(%rip), %xmm1    # 0x16f180
divsd %xmm1, %xmm0
callq 0x96f0
movaps %xmm0, %xmm1
movsd -0x60(%rbp), %xmm0
cvtsd2ss %xmm1, %xmm1
cvtss2sd %xmm1, %xmm1
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movl %eax, -0x20(%rbp)
movsd -0x38(%rbp), %xmm0
movsd %xmm0, -0x58(%rbp)
movl -0x14(%rbp), %eax
subl $0x2, %eax
cvtsi2sd %eax, %xmm0
movsd 0x329b0(%rip), %xmm1    # 0x182b30
callq 0x94d0
movsd 0x1eff3(%rip), %xmm1    # 0x16f180
divsd %xmm1, %xmm0
callq 0x9080
movaps %xmm0, %xmm1
movsd -0x58(%rbp), %xmm0
cvtsd2ss %xmm1, %xmm1
cvtss2sd %xmm1, %xmm1
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movl %eax, -0x24(%rbp)
movsd -0x38(%rbp), %xmm0
movsd %xmm0, -0x50(%rbp)
movl -0x14(%rbp), %eax
addl $0x2, %eax
cvtsi2sd %eax, %xmm0
movsd 0x32963(%rip), %xmm1    # 0x182b30
callq 0x94d0
movsd 0x1efa6(%rip), %xmm1    # 0x16f180
divsd %xmm1, %xmm0
callq 0x96f0
movaps %xmm0, %xmm1
movsd -0x50(%rbp), %xmm0
cvtsd2ss %xmm1, %xmm1
cvtss2sd %xmm1, %xmm1
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movl %eax, -0x28(%rbp)
movsd -0x38(%rbp), %xmm0
movsd %xmm0, -0x48(%rbp)
movl -0x14(%rbp), %eax
addl $0x2, %eax
cvtsi2sd %eax, %xmm0
movsd 0x32916(%rip), %xmm1    # 0x182b30
callq 0x94d0
movsd 0x1ef59(%rip), %xmm1    # 0x16f180
divsd %xmm1, %xmm0
callq 0x9080
movaps %xmm0, %xmm1
movsd -0x48(%rbp), %xmm0
cvtsd2ss %xmm1, %xmm1
cvtss2sd %xmm1, %xmm1
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
movl %eax, -0x2c(%rbp)
movl -0x18(%rbp), %edi
addl -0x20(%rbp), %edi
movl -0x1c(%rbp), %esi
addl -0x24(%rbp), %esi
movl -0x18(%rbp), %edx
addl -0x28(%rbp), %edx
movl -0x1c(%rbp), %ecx
addl -0x2c(%rbp), %ecx
leaq 0x24a31e(%rip), %rax    # 0x39a588
movl (%rax), %eax
movzbl %al, %r8d
callq 0x109c0
movl -0x30(%rbp), %eax
addl $0x5, %eax
movl %eax, -0x30(%rbp)
jmp 0x1500ea
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)