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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  movl   $0x3,0x10(%rsp)
  movl   $0x5,0x14(%rsp)
  movl   $0x1,0x18(%rsp)
  movl   $0xffffffe9,0x1c(%rsp)
  movq   $0x0,0x20(%rsp)
  movl   $0x0,0x28(%rsp)
  movl   $0x1,0x24(%rsp)
  movl   $0xfffffff9,0x2c(%rsp)
  mov    $0x0,%edi
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  mov    $0x0,%eax
  call   <print_random_array@plt>
  mov    $0xa,%r14d
  pxor   %xmm3,%xmm3
  movss  %xmm3,0xc(%rsp)
  mov    $0x0,%r12d
  lea    D10(%rip),%rbp
  lea    D0(%rip),%r15
  jmp    L73
L1:
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  sub    $0x1,%ebx
  je     L106
L24:
  mov    $0x0,%eax
  call   <rand@plt>
  movslq %eax,%rdx
  imul   $0x2e8ba2e9,%rdx,%rdx
  sar    $0x21,%rdx
  mov    %eax,%ecx
  sar    $0x1f,%ecx
  sub    %ecx,%edx
  lea    (%rdx,%rdx,4),%ecx
  lea    (%rdx,%rcx,2),%edx
  sub    %edx,%eax
  sub    $0x5,%eax
  mov    %eax,%esi
  jns    L1
  add    $0x1,%r12d
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  addss  0xc(%rsp),%xmm0
  movss  %xmm0,0xc(%rsp)
  jmp    L1
L106:
  mov    $0xa,%edi
  call   <putchar@plt>
  sub    $0x1,%r13d
  je     L15
L69:
  mov    $0xa,%ebx
  jmp    L24
L15:
  mov    %r15,%rdi
  call   <puts@plt>
  sub    $0x1,%r14d
  je     L54
L73:
  mov    $0xa,%r13d
  jmp    L69
L54:
  test   %r12d,%r12d
  jle    L41
  pxor   %xmm1,%xmm1
  cvtsi2ss %r12d,%xmm1
  movss  0xc(%rsp),%xmm0
  divss  %xmm1,%xmm0
  cvtss2sd %xmm0,%xmm0
  lea    D38(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
L76:
  lea    0x10(%rsp),%rsi
  mov    $0x4,%edi
  call   <print_int_array@plt>
  lea    0x20(%rsp),%rsi
  mov    $0x4,%edi
  call   <print_int_array@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L58
  mov    $0x0,%eax
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L41:
  lea    D23(%rip),%rdi
  call   <puts@plt>
  jmp    L76
L58:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D10
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D0
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D38
type_infered: string
name: extract_symbolic_data
arguments: data_tag: D23
type_infered: string

tool: D10: %d 

tool: D0: 
----------------

tool: D38: The average is %f


tool: D23: No negative numbers

assistant: ```c
int main() {
  int i, j, k, negative_count = 0;
  int array3D[10][10][10], array2[] = {3, 5, 1, -23}, array4[4] = {[1] = 1, [3] = -7};
  float average = 0;
  srand(time(NULL));
  print_random_array();
  for (i = 0; i < 10; i++) {
    for (j = 0; j < 10; j++) {
      for (k = 0; k < 10; k++) {
        array3D[i][j][k] = -5 + (rand() % 11);
        if (array3D[i][j][k] < 0) {
          negative_count++;
          average += array3D[i][j][k];
        }
        printf("%d ", array3D[i][j][k]);
      }
      printf("\n");
    }
    printf("\n----------------\n");
  }
  if (negative_count > 0)
    printf("The average is %f\n", average / negative_count);
  else
    printf("No negative numbers\n");
  print_int_array(4, array2);
  print_int_array(4, array4);
  return 0;
}
```