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

```asm
<mp4tree_box_uuid_sample_encryption>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %edx,%r13d
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  add    $0x4,%rdi
  sub    $0x28,%rsp
  call   <get_u24@plt>
  xor    %esi,%esi
  mov    %r13d,%edi
  mov    %eax,%ebp
  call   <indent@plt>
  lea    D103(%rip),%rdi
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %esi,%esi
  mov    (%rbx),%r12d
  mov    %r13d,%edi
  call   <indent@plt>
  lea    D70(%rip),%rdi
  mov    %rax,%rsi
  mov    %r12d,%edx
  xor    %eax,%eax
  call   <printf@plt>
  xor    %esi,%esi
  mov    %r13d,%edi
  call   <indent@plt>
  mov    %ebp,%edx
  lea    D67(%rip),%rdi
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  test   $0x1,%bpl
  jne    L35
  add    $0x10,%rbx
L70:
  mov    %rbx,%rdi
  add    $0x10,%rbx
  call   <get_u32@plt>
  xor    %esi,%esi
  mov    %r13d,%edi
  mov    %eax,%r14d
  mov    %eax,0x4(%rsp)
  call   <indent@plt>
  mov    %r14d,%edx
  lea    D55(%rip),%rdi
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %esi,%esi
  mov    %r13d,%edi
  call   <indent@plt>
  lea    D17(%rip),%rdi
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  test   %r14d,%r14d
  jle    L18
  and    $0x2,%ebp
  lea    0x1(%r13),%eax
  mov    %r13d,0xc(%rsp)
  lea    0x2(%r13),%r14d
  mov    %ebp,0x8(%rsp)
  xor    %ebp,%ebp
  mov    %eax,(%rsp)
  jmp    L56
  nopw   0x0(%rax,%rax,1)
L34:
  mov    %rdi,%rbx
L36:
  add    $0x1,%ebp
  cmp    %ebp,0x4(%rsp)
  je     L18
L56:
  mov    0xc(%rsp),%edi
  mov    $0x1,%esi
  call   <indent@plt>
  mov    %ebp,%edx
  lea    D96(%rip),%rdi
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0x8,%esi
  mov    %rbx,%rdi
  call   <mp4tree_hexstr@plt>
  mov    (%rsp),%edi
  xor    %esi,%esi
  mov    %rax,%r12
  call   <indent@plt>
  lea    D127(%rip),%rdi
  mov    %r12,%rdx
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%eax
  lea    0x20(%rbx),%rdi
  test   %eax,%eax
  je     L34
  call   <get_u16@plt>
  mov    (%rsp),%edi
  mov    $0x1,%esi
  add    $0x28,%rbx
  mov    %eax,%r15d
  mov    %eax,0x18(%rsp)
  call   <indent@plt>
  mov    %r15d,%edx
  lea    D102(%rip),%rdi
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %esi,%esi
  mov    %r14d,%edi
  call   <indent@plt>
  lea    D56(%rip),%rdi
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  test   %r15d,%r15d
  jle    L36
  mov    %rbx,0x10(%rsp)
  mov    %rbx,%r13
  xor    %r12d,%r12d
  mov    %ebp,0x1c(%rsp)
  nop
L21:
  lea    0x8(%r13),%rdi
  call   <get_u32@plt>
  mov    %r13,%rdi
  add    $0x18,%r13
  mov    %eax,%ebp
  call   <get_u16@plt>
  xor    %esi,%esi
  mov    %r14d,%edi
  mov    %eax,%ebx
  call   <indent@plt>
  mov    %r12d,%edx
  mov    %ebp,%r8d
  mov    %ebx,%ecx
  mov    %rax,%rsi
  lea    D10(%rip),%rdi
  xor    %eax,%eax
  add    $0x1,%r12d
  call   <printf@plt>
  cmp    %r12d,%r15d
  jne    L21
  movslq 0x18(%rsp),%r12
  mov    0x10(%rsp),%rbx
  mov    0x1c(%rsp),%ebp
  lea    (%r12,%r12,2),%rax
  lea    (%rbx,%rax,8),%rbx
  add    $0x1,%ebp
  cmp    %ebp,0x4(%rsp)
  jne    L56
L18:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L35:
  mov    0x10(%rbx),%r12d
  mov    0x18(%rbx),%r15d
  xor    %esi,%esi
  mov    %r13d,%edi
  mov    0x14(%rbx),%r14d
  call   <indent@plt>
  mov    %r15d,%r8d
  mov    %r12d,%edx
  lea    D83(%rip),%rdi
  mov    %r14d,%ecx
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x1c(%rbx),%r12d
  xor    %esi,%esi
  mov    %r13d,%edi
  call   <indent@plt>
  lea    D86(%rip),%rdi
  mov    %r12d,%edx
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  xor    %esi,%esi
  mov    %r13d,%edi
  call   <indent@plt>
  lea    D64(%rip),%rdi
  mov    %rax,%rsi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x20(%rbx),%rdi
  mov    %r13d,%edx
  mov    $0x10,%esi
  call   <mp4tree_hexdump@plt>
  add    $0x60,%rbx
  jmp    L70
```

tool_calls: name: extract_symbolic_data
arguments: tag: D103
data_type: string
name: extract_symbolic_data
arguments: tag: D70
data_type: string
name: extract_symbolic_data
arguments: tag: D67
data_type: string
name: extract_symbolic_data
arguments: tag: D55
data_type: string
name: extract_symbolic_data
arguments: tag: D17
data_type: string
name: extract_symbolic_data
arguments: tag: D96
data_type: string
name: extract_symbolic_data
arguments: tag: D127
data_type: string
name: extract_symbolic_data
arguments: tag: D102
data_type: string
name: extract_symbolic_data
arguments: tag: D56
data_type: string
name: extract_symbolic_data
arguments: tag: D10
data_type: string
name: extract_symbolic_data
arguments: tag: D83
data_type: string
name: extract_symbolic_data
arguments: tag: D86
data_type: string
name: extract_symbolic_data
arguments: tag: D64
data_type: string

tool: D103: %s  Name:        Sample Encryption Box


tool: D70: %s  Version:     %u


tool: D67: %s  Flags:       0x%.6x


tool: D55: %s  Num Entries: %u


tool: D17: %s  Entry           IV             Entries


tool: D96: %s Entry: %3u


tool: D127: %s  IV:     %s


tool: D102: %s  Sub-Entries Count: %u


tool: D56: %s  Sub-Entry  BytesOfClear  BytesOfProtectedData


tool: D10: %s  %9d  %12u  %20u


tool: D83: %s  AlgorithmID: 0x%.2x%.2x%.2x


tool: D86: %s  IV Sizes:       %u


tool: D64: %s  Key ID:


assistant: ```c
void mp4tree_box_uuid_sample_encryption(const uint8_t *p, size_t len, int depth) {
  const uint32_t flags = get_u24(p + 1);
  uint32_t num_entries = 0;
  uint32_t i = 0;
  uint8_t iv_size = 8;
  printf("%s  Name:        Sample Encryption Box\n", indent(depth, 0));
  printf("%s  Version:     %u\n", indent(depth, 0), p[0]);
  printf("%s  Flags:       0x%.6x\n", indent(depth, 0), flags);
  p += 4;
  if (flags & 1) {
    printf("%s  AlgorithmID: 0x%.2x%.2x%.2x\n", indent(depth, 0), p[0], p[1], p[2]);
    printf("%s  IV Sizes:       %u\n", indent(depth, 0), p[3]);
    printf("%s  Key ID:\n", indent(depth, 0));
    mp4tree_hexdump(p + 4, 16, depth);
    p += 20;
  }
  num_entries = get_u32(p);
  p += 4;
  printf("%s  Num Entries: %u\n", indent(depth, 0), num_entries);
  printf("%s  Entry           IV             Entries\n", indent(depth, 0));
  for (i = 0; i < num_entries; i++) {
    if (iv_size) {
      printf("%s Entry: %3u\n", indent(depth, 1), i);
      printf("%s  IV:     %s\n", indent(depth + 1, 0), mp4tree_hexstr(p, 8));
      p += iv_size;
    }
    if (flags & 2) {
      uint32_t j;
      uint16_t num_sub_samples;
      num_sub_samples = get_u16(p);
      printf("%s  Sub-Entries Count: %u\n", indent(depth + 1, 1), num_sub_samples);
      p += 2;
      printf("%s  Sub-Entry  BytesOfClear  BytesOfProtectedData\n", indent(depth + 2, 0));
      for (j = 0; j < num_sub_samples; j++) {
        printf("%s  %9d  %12u  %20u\n", indent(depth + 2, 0), j, get_u16(p), get_u32(p + 2));
        p += 6;
      }
    }
  }
}
```