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

```asm
<stretch>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %rdx,-0x58(%rbp)
  mov    %rcx,-0x60(%rbp)
  mov    %r8,-0x68(%rbp)
  mov    %r9,-0x70(%rbp)
  movl   $0x0,-0x34(%rbp)
  movl   $0x0,-0x30(%rbp)
  mov    -0x70(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x2c(%rbp)
  mov    0x10(%rbp),%rax
  mov    (%rax),%eax
  mov    %eax,-0x28(%rbp)
  mov    -0x50(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  mov    -0x58(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  mov    -0x60(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x68(%rbp),%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  mov    -0x2c(%rbp),%eax
  imul   -0x28(%rbp),%eax
  mov    %eax,-0x24(%rbp)
  pxor   %xmm0,%xmm0
  ucomisd -0x10(%rbp),%xmm0
  jp     L17
  pxor   %xmm0,%xmm0
  ucomisd -0x10(%rbp),%xmm0
  je     L47
L17:
  pxor   %xmm0,%xmm0
  ucomisd -0x8(%rbp),%xmm0
  jp     L30
  pxor   %xmm0,%xmm0
  ucomisd -0x8(%rbp),%xmm0
  je     L47
L30:
  movl   $0x0,-0x34(%rbp)
  jmp    L16
L82:
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movapd %xmm0,%xmm2
  subsd  -0x10(%rbp),%xmm2
  movsd  -0x18(%rbp),%xmm0
  subsd  -0x20(%rbp),%xmm0
  movsd  -0x8(%rbp),%xmm1
  subsd  -0x10(%rbp),%xmm1
  divsd  %xmm1,%xmm0
  mulsd  %xmm2,%xmm0
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x18(%rbp),%rax
  add    %rdx,%rax
  addsd  -0x20(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x34(%rbp)
L16:
  mov    -0x34(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L82
  movl   $0x0,-0x34(%rbp)
  jmp    L90
L73:
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x18(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  D8(%rip),%xmm1
  comisd %xmm1,%xmm0
  jbe    L79
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x18(%rbp),%rax
  add    %rdx,%rax
  movsd  D8(%rip),%xmm0
  movsd  %xmm0,(%rax)
L79:
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x18(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  pxor   %xmm0,%xmm0
  comisd %xmm1,%xmm0
  jbe    L67
  mov    -0x34(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    0x18(%rbp),%rax
  add    %rdx,%rax
  pxor   %xmm0,%xmm0
  movsd  %xmm0,(%rax)
L67:
  addl   $0x1,-0x34(%rbp)
L90:
  mov    -0x34(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L73
L47:
  nop
  pop    %rbp
  ret
```

tool_calls: name: read_data
arguments: data_label: D8
type_guessed: byte[8]

tool: {"D8": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0x3f]}

assistant: ```c
void stretch(double *band, double *a, double *b, double *c, double *d, int *nrow, int *ncol, double *out) {
  int i = 0, j = 0, nr, nc, n;
  double e, f, g, h;
  nr = *nrow;
  nc = *ncol;
  e = *a;
  f = *b;
  g = *c;
  h = *d;
  n = nr * nc;
  if (g != 0 && h != 0) {
    for (i = 0; i < n; i++) {
      out[i] = (band[i] - g) * ((f - e) / (h - g)) + e;
    }
    for (i = 0; i < n; i++) {
      if (out[i] > 1)
        out[i] = 1;
      if (out[i] < 0)
        out[i] = 0;
    }
  }
}
```