user: Translate the below assembly code into C programming language:

```asm
<c_sscal>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x14(%rbp)
  movss  %xmm0,-0x18(%rbp)
  mov    %rsi,-0x20(%rbp)
  mov    %edx,-0x24(%rbp)
  cmpl   $0x0,-0x14(%rbp)
  jle    L0
  cmpl   $0x0,-0x24(%rbp)
  jle    L0
  movss  D6(%rip),%xmm0
  ucomiss -0x18(%rbp),%xmm0
  jp     L132
  movss  D6(%rip),%xmm0
  ucomiss -0x18(%rbp),%xmm0
  je     L0
L132:
  cmpl   $0x1,-0x24(%rbp)
  jne    L17
  mov    -0x14(%rbp),%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    %edx
  mov    %eax,%esi
  sar    $0x1f,%esi
  mov    %edx,%ecx
  sub    %esi,%ecx
  mov    %ecx,%edx
  shl    $0x2,%edx
  add    %ecx,%edx
  sub    %edx,%eax
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  jle    L117
  movl   $0x0,-0x8(%rbp)
  jmp    L43
L97:
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mulss  -0x18(%rbp),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x8(%rbp)
L43:
  mov    -0x8(%rbp),%eax
  cmp    -0x4(%rbp),%eax
  jl     L97
L117:
  cmpl   $0x4,-0x14(%rbp)
  jle    L11
  mov    -0x4(%rbp),%eax
  mov    %eax,-0x8(%rbp)
  jmp    L58
L147:
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mulss  -0x18(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x8(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x8(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mulss  -0x18(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x8(%rbp),%eax
  cltq
  add    $0x2,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x8(%rbp),%eax
  cltq
  add    $0x2,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mulss  -0x18(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x8(%rbp),%eax
  cltq
  add    $0x3,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x8(%rbp),%eax
  cltq
  add    $0x3,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mulss  -0x18(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x8(%rbp),%eax
  cltq
  add    $0x4,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x8(%rbp),%eax
  cltq
  add    $0x4,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mulss  -0x18(%rbp),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x5,-0x8(%rbp)
L58:
  mov    -0x8(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L147
  jmp    L36
L17:
  movl   $0x0,-0x8(%rbp)
  jmp    L42
L71:
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x8(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mulss  -0x18(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x24(%rbp),%eax
  add    %eax,-0x8(%rbp)
L42:
  mov    -0x14(%rbp),%eax
  imul   -0x24(%rbp),%eax
  cmp    %eax,-0x8(%rbp)
  jl     L71
  jmp    L36
L0:
  nop
  jmp    L36
L11:
  nop
L36:
  pop    %rbp
  ret
```

tool_calls: name: unpack_data
arguments: label: D6
data_type: byte[4]

tool: {"D6": [0x00,0x00,0x80,0x3f]}

assistant: ```c
void c_sscal(const int N, const float alpha, float *X, const int stride) {
  int i;
  int m;
  if (N <= 0 || stride <= 0 || alpha == 1.0f) {
    return;
  }
  if (stride == 1) {
    m = N % 5;
    if (m > 0) {
      for (i = 0; i < m; i++) {
        X[i] *= alpha;
      }
    }
    if (N < 5) {
      return;
    }
    for (i = m; i < N; i += 5) {
      X[i] *= alpha;
      X[i + 1] *= alpha;
      X[i + 2] *= alpha;
      X[i + 3] *= alpha;
      X[i + 4] *= alpha;
    }
    return;
  }
  for (i = 0; i < N * stride; i += stride) {
    X[i] *= alpha;
  }
  return;
}
```