user: What would the C source look like for the assembly code provided here:

```asm
<setbv>:
  endbr64
  push   %r15
  push   %r14
  mov    %ecx,%r14d
  push   %r13
  mov    %esi,%r13d
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0xb8,%rsp
  mov    %r8d,0x4(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0xa8(%rsp)
  xor    %eax,%eax
  test   %ecx,%ecx
  jle    L9
  movslq %r8d,%rax
  lea    -0x8(,%rax,8),%r15
  test   %esi,%esi
  jle    L9
  movslq %ecx,%rax
  mov    %ecx,%r9d
  mov    %rdi,%r14
  movq   $0x0,0x30(%rsp)
  mov    %rax,0x38(%rsp)
  lea    0x50(%rsp),%rax
  mov    %rax,0x28(%rsp)
  lea    0x80(%rsp),%rax
  mov    %rax,0x20(%rsp)
  lea    -0x1(%r8),%eax
  mov    %eax,0x48(%rsp)
  movslq %esi,%rax
  mov    %rax,0x8(%rsp)
  nop
L41:
  mov    0x30(%rsp),%rax
  xor    %ebp,%ebp
  mov    %eax,%ebx
  lea    0x0(,%rax,8),%r12
  nopl   0x0(%rax)
L91:
  sub    $0x8,%rsp
  mov    %ebp,%edi
  xor    %edx,%edx
  mov    %r13d,%r8d
  mov    0xc(%rsp),%eax
  mov    %ebx,%esi
  push   %rax
  mov    0x38(%rsp),%rcx
  mov    %r9d,0x20(%rsp)
  mov    %ebp,0x28(%rsp)
  call   <exact@plt>
  mov    0x14(%rsp),%eax
  mov    0x20(%rsp),%r9d
  mov    %ebx,%esi
  mov    0x30(%rsp),%rcx
  mov    0x58(%rsp),%edx
  mov    %r13d,%r8d
  mov    0x28(%rsp),%edi
  mov    %eax,(%rsp)
  call   <exact@plt>
  mov    (%r14),%rax
  movsd  0x60(%rsp),%xmm0
  mov    (%rax,%rbp,8),%rax
  mov    (%rax,%r12,1),%rax
  movsd  %xmm0,(%rax)
  movsd  0x90(%rsp),%xmm0
  movsd  %xmm0,(%rax,%r15,1)
  mov    0x8(%r14),%rax
  movsd  0x68(%rsp),%xmm0
  mov    (%rax,%rbp,8),%rax
  mov    (%rax,%r12,1),%rax
  movsd  %xmm0,(%rax)
  movsd  0x98(%rsp),%xmm0
  movsd  %xmm0,(%rax,%r15,1)
  mov    0x10(%r14),%rax
  movsd  0x70(%rsp),%xmm0
  mov    (%rax,%rbp,8),%rax
  mov    (%rax,%r12,1),%rax
  movsd  %xmm0,(%rax)
  movsd  0xa0(%rsp),%xmm0
  movsd  %xmm0,(%rax,%r15,1)
  mov    0x18(%r14),%rax
  movsd  0x78(%rsp),%xmm0
  mov    (%rax,%rbp,8),%rax
  mov    (%rax,%r12,1),%rax
  movsd  %xmm0,(%rax)
  movsd  0xa8(%rsp),%xmm0
  movsd  %xmm0,(%rax,%r15,1)
  mov    0x20(%r14),%rax
  movsd  0x80(%rsp),%xmm0
  mov    (%rax,%rbp,8),%rax
  add    $0x1,%rbp
  mov    (%rax,%r12,1),%rax
  movsd  %xmm0,(%rax)
  movsd  0xb0(%rsp),%xmm0
  movsd  %xmm0,(%rax,%r15,1)
  pop    %r8
  pop    %r9
  cmp    0x8(%rsp),%rbp
  mov    0x10(%rsp),%r9d
  jne    L91
  addq   $0x1,0x30(%rsp)
  mov    0x30(%rsp),%rax
  cmp    %rax,0x38(%rsp)
  jne    L41
  mov    %r14,%rbx
  mov    %r9d,%r14d
L9:
  mov    0x4(%rsp),%edi
  test   %edi,%edi
  jle    L64
  movq   $0x0,0x30(%rsp)
  movslq %r14d,%rax
  mov    %r14d,%r9d
  lea    -0x8(,%rax,8),%r10
  mov    0x4(%rsp),%eax
  mov    %r10,%r15
  lea    -0x1(%rax),%ecx
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  test   %r13d,%r13d
  cmovns %r13d,%eax
  mov    %rcx,0x40(%rsp)
  mov    %eax,0x4c(%rsp)
  movslq %r13d,%rax
  mov    %rax,0x8(%rsp)
  lea    -0x1(%r14),%eax
  mov    %rbx,%r14
  mov    %eax,0x48(%rsp)
  cs nopw 0x0(%rax,%rax,1)
L82:
  mov    0x30(%rsp),%ebx
  test   %r13d,%r13d
  jle    L108
  mov    0x30(%rsp),%rax
  xor    %r12d,%r12d
  lea    0x0(,%rax,8),%rbp
  lea    0x50(%rsp),%rax
  mov    %rax,0x28(%rsp)
  lea    0x80(%rsp),%rax
  mov    %rax,0x20(%rsp)
  nopl   0x0(%rax)
L103:
  sub    $0x8,%rsp
  mov    %r12d,%edi
  xor    %esi,%esi
  mov    %r13d,%r8d
  mov    0xc(%rsp),%eax
  mov    %ebx,%edx
  push   %rax
  mov    0x38(%rsp),%rcx
  mov    %r9d,0x20(%rsp)
  mov    %r12d,0x28(%rsp)
  call   <exact@plt>
  mov    0x14(%rsp),%eax
  mov    0x20(%rsp),%r9d
  mov    %ebx,%edx
  mov    0x30(%rsp),%rcx
  mov    0x58(%rsp),%esi
  mov    %r13d,%r8d
  mov    0x28(%rsp),%edi
  mov    %eax,(%rsp)
  call   <exact@plt>
  mov    (%r14),%rax
  movsd  0x60(%rsp),%xmm0
  mov    (%rax,%r12,8),%rax
  mov    (%rax),%rdx
  mov    (%rax,%r15,1),%rax
  movsd  %xmm0,(%rdx,%rbp,1)
  movsd  0x90(%rsp),%xmm0
  movsd  %xmm0,(%rax,%rbp,1)
  mov    0x8(%r14),%rax
  movsd  0x68(%rsp),%xmm0
  mov    (%rax,%r12,8),%rax
  mov    (%rax),%rdx
  mov    (%rax,%r15,1),%rax
  movsd  %xmm0,(%rdx,%rbp,1)
  movsd  0x98(%rsp),%xmm0
  movsd  %xmm0,(%rax,%rbp,1)
  mov    0x10(%r14),%rax
  movsd  0x70(%rsp),%xmm0
  mov    (%rax,%r12,8),%rax
  mov    (%rax),%rdx
  mov    (%rax,%r15,1),%rax
  movsd  %xmm0,(%rdx,%rbp,1)
  movsd  0xa0(%rsp),%xmm0
  movsd  %xmm0,(%rax,%rbp,1)
  mov    0x18(%r14),%rax
  movsd  0x78(%rsp),%xmm0
  mov    (%rax,%r12,8),%rax
  mov    (%rax),%rdx
  mov    (%rax,%r15,1),%rax
  movsd  %xmm0,(%rdx,%rbp,1)
  movsd  0xa8(%rsp),%xmm0
  movsd  %xmm0,(%rax,%rbp,1)
  mov    0x20(%r14),%rax
  movsd  0x80(%rsp),%xmm0
  mov    (%rax,%r12,8),%rax
  add    $0x1,%r12
  mov    (%rax),%rdx
  mov    (%rax,%r15,1),%rax
  movsd  %xmm0,(%rdx,%rbp,1)
  movsd  0xb0(%rsp),%xmm0
  movsd  %xmm0,(%rax,%rbp,1)
  pop    %rcx
  pop    %rsi
  cmp    %r12,0x8(%rsp)
  mov    0x10(%rsp),%r9d
  jne    L103
L108:
  addq   $0x1,0x30(%rsp)
  mov    0x30(%rsp),%rax
  cmp    0x38(%rsp),%rax
  jne    L82
  mov    0x8(%rsp),%rax
  mov    0x4c(%rsp),%r10d
  mov    %r13d,%ebx
  movq   $0x0,0x28(%rsp)
  mov    0x28(%rsp),%r15d
  lea    -0x8(,%rax,8),%r12
  lea    -0x1(%r13),%eax
  mov    %r9d,%r13d
  mov    %eax,0x20(%rsp)
  cmp    %r10d,%r13d
  jle    L64
  nop
L78:
  mov    0x28(%rsp),%rax
  lea    0x0(,%rax,8),%rbp
  lea    0x50(%rsp),%rax
  mov    %rax,0x18(%rsp)
  lea    0x80(%rsp),%rax
  mov    %rax,0x10(%rsp)
  nopl   0x0(%rax)
L33:
  mov    %r10d,0x8(%rsp)
  sub    $0x8,%rsp
  mov    %r13d,%r9d
  mov    %ebx,%r8d
  mov    0xc(%rsp),%eax
  mov    %r15d,%edx
  xor    %esi,%esi
  xor    %edi,%edi
  push   %rax
  mov    0x28(%rsp),%rcx
  call   <exact@plt>
  mov    0x14(%rsp),%eax
  mov    0x20(%rsp),%rcx
  xor    %esi,%esi
  mov    0x30(%rsp),%edi
  mov    %r15d,%edx
  mov    %r13d,%r9d
  mov    %ebx,%r8d
  mov    %eax,(%rsp)
  call   <exact@plt>
  mov    (%r14),%rax
  movsd  0x60(%rsp),%xmm0
  mov    0x8(%rax),%rdx
  mov    (%rax,%r12,1),%rax
  mov    (%rdx),%rdx
  mov    (%rax),%rax
  movsd  %xmm0,(%rdx,%rbp,1)
  movsd  0x90(%rsp),%xmm0
  movsd  %xmm0,(%rax,%rbp,1)
  mov    0x8(%r14),%rax
  movsd  0x68(%rsp),%xmm0
  mov    0x8(%rax),%rdx
  mov    (%rax,%r12,1),%rax
  mov    (%rdx),%rdx
  mov    (%rax),%rax
  movsd  %xmm0,(%rdx,%rbp,1)
  movsd  0x98(%rsp),%xmm0
  movsd  %xmm0,(%rax,%rbp,1)
  mov    0x10(%r14),%rax
  movsd  0x70(%rsp),%xmm0
  mov    0x8(%rax),%rdx
  mov    (%rax,%r12,1),%rax
  mov    (%rdx),%rdx
  mov    (%rax),%rax
  movsd  %xmm0,(%rdx,%rbp,1)
  movsd  0xa0(%rsp),%xmm0
  movsd  %xmm0,(%rax,%rbp,1)
  mov    0x18(%r14),%rax
  movsd  0x78(%rsp),%xmm0
  mov    0x8(%rax),%rdx
  mov    (%rdx),%rdx
  movsd  %xmm0,(%rdx,%rbp,1)
  mov    (%rax,%r12,1),%rax
  mov    0x18(%rsp),%r10d
  movsd  0xa8(%rsp),%xmm0
  mov    (%rax),%rax
  add    $0x1,%r10d
  movsd  %xmm0,(%rax,%rbp,1)
  mov    0x20(%r14),%rax
  movsd  0x80(%rsp),%xmm0
  mov    0x8(%rax),%rdx
  mov    (%rax,%r12,1),%rax
  mov    (%rdx),%rdx
  mov    (%rax),%rax
  movsd  %xmm0,(%rdx,%rbp,1)
  movsd  0xb0(%rsp),%xmm0
  movsd  %xmm0,(%rax,%rbp,1)
  pop    %rax
  pop    %rdx
  cmp    %r10d,%r13d
  jne    L33
  mov    0x28(%rsp),%rax
  cmp    %rax,0x40(%rsp)
  je     L64
  add    $0x1,%rax
  mov    %rax,0x28(%rsp)
  mov    0x28(%rsp),%r15d
  cmp    %r10d,%r13d
  jg     L78
L64:
  mov    0xa8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L121
  add    $0xb8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L121:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void setbv(double ****u, int nx, int nxmax, int ny, int nz) {
  int i, j, k, m;
  double temp1[5], temp2[5];
  for (j = 0; j < ny; j++) {
    for (i = 0; i < nx; i++) {
      exact(i, j, 0, temp1, nx, ny, nz);
      exact(i, j, nz - 1, temp2, nx, ny, nz);
      for (m = 0; m < 5; m++) {
        u[m][i][j][0] = temp1[m];
        u[m][i][j][nz - 1] = temp2[m];
      }
    }
  }
  for (k = 0; k < nz; k++) {
    for (i = 0; i < nx; i++) {
      exact(i, 0, k, temp1, nx, ny, nz);
      exact(i, ny - 1, k, temp2, nx, ny, nz);
      for (m = 0; m < 5; m++) {
        u[m][i][0][k] = temp1[m];
        u[m][i][ny - 1][k] = temp2[m];
      }
    }
  }
  for (k = 0; k < nz; k++) {
    for (j = 0; i < ny; i++) {
      exact(0, j, k, temp1, nx, ny, nz);
      exact(nx - 1, j, k, temp2, nx, ny, nz);
      for (m = 0; m < 5; m++) {
        u[m][1][j][k] = temp1[m];
        u[m][nx - 1][j][k] = temp2[m];
      }
    }
  }
}
```