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

```asm
<process_format_caps>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x60,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %esi,-0x3c(%rbp)
  mov    %edx,-0x40(%rbp)
  mov    %rcx,-0x48(%rbp)
  mov    %r8,-0x50(%rbp)
  mov    %r9,-0x58(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x48(%rbp),%rax
  mov    $0xff,%esi
  mov    %rax,%rdi
  call   <bzero@plt>
  mov    -0x50(%rbp),%rax
  mov    $0x3fc,%esi
  mov    %rax,%rdi
  call   <bzero@plt>
  mov    -0x58(%rbp),%rax
  mov    $0x3fc,%esi
  mov    %rax,%rdi
  call   <bzero@plt>
  mov    -0x38(%rbp),%rax
  add    $0x10,%rax
  mov    %rax,-0x10(%rbp)
  subl   $0x4,-0x3c(%rbp)
  cmpl   $0x0,-0x40(%rbp)
  je     L3
  mov    -0x3c(%rbp),%eax
  mov    %eax,%esi
  lea    D1(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  jmp    L3
L24:
  mov    -0x10(%rbp),%rax
  add    $0xc,%rax
  mov    (%rax),%edx
  mov    -0x10(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%eax
  shl    $0x8,%eax
  or     %eax,%edx
  mov    -0x10(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%eax
  shl    $0x10,%eax
  or     %eax,%edx
  mov    -0x10(%rbp),%rax
  mov    (%rax),%eax
  shl    $0x18,%eax
  or     %edx,%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x10(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%eax
  and    $0x3,%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x10(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%eax
  sar    $0x2,%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x10(%rbp),%rax
  add    $0x1c,%rax
  mov    (%rax),%edx
  mov    -0x10(%rbp),%rax
  add    $0x18,%rax
  mov    (%rax),%eax
  shl    $0x8,%eax
  or     %eax,%edx
  mov    -0x10(%rbp),%rax
  add    $0x14,%rax
  mov    (%rax),%eax
  shl    $0x10,%eax
  or     %edx,%eax
  mov    %eax,-0x14(%rbp)
  lea    -0x24(%rbp),%r8
  mov    -0x40(%rbp),%edi
  mov    -0x1c(%rbp),%ecx
  mov    -0x14(%rbp),%edx
  mov    -0x20(%rbp),%esi
  mov    -0x18(%rbp),%eax
  mov    %r8,%r9
  mov    %edi,%r8d
  mov    %eax,%edi
  call   <print_format@plt>
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movl   $0x1,(%rax)
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x50(%rbp),%rax
  add    %rax,%rdx
  mov    -0x20(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x18(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rax,%rdx
  mov    -0x14(%rbp),%eax
  mov    %eax,(%rdx)
  addq   $0x20,-0x10(%rbp)
  subl   $0x8,-0x3c(%rbp)
L3:
  cmpl   $0x0,-0x3c(%rbp)
  jg     L24
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L38
  call   <__stack_chk_fail@plt>
L38:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: data_tag: D1
type_infered: string

tool: D1: 	Current/max capacity followed by additional capacity,reported length of %d bytes (8/entry)


assistant: ```c
void process_format_caps(uint8_t *buf, int list_length, int verbose, uint8_t *allow, uint32_t *blks, uint32_t *params) {
  uint32_t num_blks, param;
  uint8_t *fcd;
  int dscr_type, format_tp;
  int supported;
  bzero(allow, 255);
  bzero(blks, 255 * 4);
  bzero(params, 255 * 4);
  fcd = buf + 4;
  list_length -= 4;
  if (verbose)
    printf("\tCurrent/max capacity followed by additional capacity,"
           "reported length of %d bytes (8/entry)\n",
           list_length);
  while (list_length > 0) {
    num_blks = fcd[3] | (fcd[2] << 8) | (fcd[1] << 16) | (fcd[0] << 24);
    dscr_type = fcd[4] & 3;
    format_tp = fcd[4] >> 2;
    param = fcd[7] | (fcd[6] << 8) | (fcd[5] << 16);
    print_format(format_tp, num_blks, param, dscr_type, verbose, &supported);
    allow[format_tp] = 1;
    blks[format_tp] = num_blks;
    params[format_tp] = param;
    fcd += 8;
    list_length -= 8;
  }
}
```