user: Please show me the C implementation that matches the assembly code listed below:

```asm
<standard_generate>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  mov    %rdx,-0x20(%rbp)
  mov    %rcx,-0x28(%rbp)
  mov    %r8,-0x30(%rbp)
  mov    -0x20(%rbp),%rdx
  mov    -0x14(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <generate_winding_numbers@plt>
  lea    D54(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x4(%rbp)
  jmp    L54
L18:
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%esi
  lea    D12(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x4(%rbp)
L54:
  mov    -0x4(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L18
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    -0x28(%rbp),%rdx
  mov    -0x18(%rbp),%ecx
  mov    -0x14(%rbp),%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <generate_directions@plt>
  lea    D38(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x4(%rbp)
  movl   $0x0,-0xc(%rbp)
  jmp    L7
L78:
  mov    -0xc(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%esi
  lea    D58(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x8(%rbp)
  jmp    L57
L35:
  mov    -0x4(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    %edx,-0x4(%rbp)
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  lea    D64(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  addl   $0x1,-0x8(%rbp)
L57:
  mov    -0x8(%rbp),%eax
  cmp    -0x18(%rbp),%eax
  jl     L35
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0xc(%rbp)
L7:
  mov    -0xc(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L78
  mov    -0x30(%rbp),%rdx
  mov    -0x14(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <generate_errors@plt>
  lea    D55(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x4(%rbp)
  jmp    L64
L56:
  mov    -0x4(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  movq   %rax,%xmm0
  lea    D64(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  addl   $0x1,-0x4(%rbp)
L64:
  mov    -0x4(%rbp),%eax
  cmp    -0x14(%rbp),%eax
  jl     L56
  mov    $0xa,%edi
  call   <putchar@plt>
  nop
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D54
data_type: string
name: parse_data
arguments: label: D12
data_type: string
name: parse_data
arguments: label: D38
data_type: string
name: parse_data
arguments: label: D58
data_type: string
name: parse_data
arguments: label: D64
data_type: string
name: parse_data
arguments: label: D55
data_type: string

tool: D54: The winding numbers :

tool: D12:  %d

tool: D38: The directions :

tool: D58:   direction %d :

tool: D64:  %.3e

tool: D55: The errors :

assistant: ```c
void standard_generate(int nbt, int dim, int *wind, double *dir, double *err) {
  int i, j, k;
  generate_winding_numbers(nbt, wind);
  printf("The winding numbers :");
  for (k = 0; k < nbt; k++)
    printf(" %d", wind[k]);
  printf("\n");
  generate_directions(nbt, dim, dir);
  printf("The directions :\n");
  k = 0;
  for (i = 0; i < nbt; i++) {
    printf("  direction %d :", i + 1);
    for (j = 0; j < dim; j++)
      printf(" %.3e", dir[k++]);
    printf("\n");
  }
  generate_errors(nbt, err);
  printf("The errors :\n");
  for (k = 0; k < nbt; k++)
    printf(" %.3e", err[k]);
  printf("\n");
}
```