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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  lea    -0x26a000(%rsp),%rax
  cmp    %rax,%rsp
  je     L49
L55:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rax,%rsp
  jne    L55
L49:
  sub    $0xc00,%rsp
  orq    $0x0,0xbf8(%rsp)
  mov    %rsp,%r14
  lea    -0x9a000(%rsp),%rax
L41:
  cmp    %rax,%rsp
  je     L58
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L41
L58:
  sub    $0xb00,%rsp
  orq    $0x0,0xaf8(%rsp)
  mov    %rsp,%r13
  lea    -0x9a000(%rsp),%rax
L16:
  cmp    %rax,%rsp
  je     L13
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L16
L13:
  sub    $0xb00,%rsp
  orq    $0x0,0xaf8(%rsp)
  mov    $0x26ac00,%edx
  xor    %esi,%esi
  xor    %r12d,%r12d
  mov    %r14,%rdi
  mov    %rsp,-0x48(%rbp)
  call   <memset@plt>
  mov    %r14,%rdi
  call   <fill_volume@plt>
  mov    $0x9ab00,%edx
  mov    $0x80,%esi
  mov    %r13,%rdi
  call   <memset@plt>
  mov    $0x9ab00,%edx
  mov    $0x80,%esi
  mov    %rsp,%rdi
  call   <memset@plt>
  lea    D25(%rip),%rsi
  lea    D16(%rip),%rdi
  call   <fopen@plt>
  mov    %rax,%r15
  nopw   0x0(%rax,%rax,1)
L61:
  mov    %r12d,%ebx
  mov    %r14,%rdi
  mov    %r15,%rcx
  mov    $0x18c00,%edx
  mov    $0x1,%esi
  shr    $0x2,%ebx
  add    $0x18c00,%r12d
  add    $0x18c00,%r14
  call   <fwrite@plt>
  lea    0x0(%r13,%rbx,1),%rdi
  mov    %r15,%rcx
  mov    $0x6300,%edx
  mov    $0x1,%esi
  call   <fwrite@plt>
  mov    -0x48(%rbp),%rax
  mov    %r15,%rcx
  mov    $0x6300,%edx
  mov    $0x1,%esi
  lea    (%rax,%rbx,1),%rdi
  call   <fwrite@plt>
  cmp    $0x26ac00,%r12d
  jne    L61
  mov    %r15,%rdi
  call   <fclose@plt>
  mov    $0x120,%ecx
  mov    $0x160,%edx
  mov    $0x19,%esi
  lea    D21(%rip),%rdi
  call   <printf@plt>
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L63
  lea    -0x28(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L63:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D25
type: string
name: parse_data
arguments: tag: D16
type: string
name: parse_data
arguments: tag: D21
type: string

tool: D25: wb

tool: D16: yuv420p_25f_352x288.bin

tool: D21: %i frames (%ix%i) written to yuv420p_25f_352x288.bin


assistant: ```c
int main(int argc, char **argv) {
  uint32_t num_elements = 352 * 288 * 25;
  uint32_t pixels_per_frame = 352 * 288;
  unsigned char y[num_elements];
  unsigned char u[num_elements / 4];
  unsigned char v[num_elements / 4];
  uint32_t i = 0;
  for (; i < num_elements; ++i) {
    y[i] = 0;
  }
  fill_volume(y);
  i = 0;
  for (; i < num_elements / 4; ++i) {
    u[i] = 128;
    v[i] = 128;
  }
  unsigned int z = 0;
  FILE *out = fopen("yuv420p_25f_352x288.bin", "wb");
  for (; z < 25; ++z) {
    fwrite(&y[z * pixels_per_frame], 1, pixels_per_frame, out);
    fwrite(&u[z * pixels_per_frame / 4], 1, pixels_per_frame / 4, out);
    fwrite(&v[z * pixels_per_frame / 4], 1, pixels_per_frame / 4, out);
  }
  fclose(out);
  printf("%i frames (%ix%i) written to yuv420p_25f_352x288.bin\n", 25, 352, 288);
  return 0;
}
```