user: Demonstrate the C code that generates the assembly output below:

```asm
<mp4tree_box_uuid_sample_encryption>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %edx,-0x54(%rbp)
  mov    -0x48(%rbp),%rax
  add    $0x4,%rax
  mov    %rax,%rdi
  call   <get_u24@plt>
  mov    %eax,-0x30(%rbp)
  movl   $0x0,-0x2c(%rbp)
  movl   $0x0,-0x38(%rbp)
  movl   $0x8,-0x28(%rbp)
  mov    -0x54(%rbp),%eax
  mov    $0x0,%esi
  mov    %eax,%edi
  call   <indent@plt>
  mov    %rax,%rsi
  lea    D8(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x48(%rbp),%rax
  mov    (%rax),%ebx
  mov    -0x54(%rbp),%eax
  mov    $0x0,%esi
  mov    %eax,%edi
  call   <indent@plt>
  mov    %ebx,%edx
  mov    %rax,%rsi
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x54(%rbp),%eax
  mov    $0x0,%esi
  mov    %eax,%edi
  call   <indent@plt>
  mov    %rax,%rcx
  mov    -0x30(%rbp),%eax
  mov    %eax,%edx
  mov    %rcx,%rsi
  lea    D82(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addq   $0x10,-0x48(%rbp)
  mov    -0x30(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L55
  mov    -0x48(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%r13d
  mov    -0x48(%rbp),%rax
  add    $0x4,%rax
  mov    (%rax),%r12d
  mov    -0x48(%rbp),%rax
  mov    (%rax),%ebx
  mov    -0x54(%rbp),%eax
  mov    $0x0,%esi
  mov    %eax,%edi
  call   <indent@plt>
  mov    %r13d,%r8d
  mov    %r12d,%ecx
  mov    %ebx,%edx
  mov    %rax,%rsi
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x48(%rbp),%rax
  add    $0xc,%rax
  mov    (%rax),%ebx
  mov    -0x54(%rbp),%eax
  mov    $0x0,%esi
  mov    %eax,%edi
  call   <indent@plt>
  mov    %ebx,%edx
  mov    %rax,%rsi
  lea    D122(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x54(%rbp),%eax
  mov    $0x0,%esi
  mov    %eax,%edi
  call   <indent@plt>
  mov    %rax,%rsi
  lea    D90(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x48(%rbp),%rax
  lea    0x10(%rax),%rcx
  mov    -0x54(%rbp),%eax
  mov    %eax,%edx
  mov    $0x10,%esi
  mov    %rcx,%rdi
  call   <mp4tree_hexdump@plt>
  addq   $0x50,-0x48(%rbp)
L55:
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <get_u32@plt>
  mov    %eax,-0x2c(%rbp)
  addq   $0x10,-0x48(%rbp)
  mov    -0x54(%rbp),%eax
  mov    $0x0,%esi
  mov    %eax,%edi
  call   <indent@plt>
  mov    %rax,%rcx
  mov    -0x2c(%rbp),%eax
  mov    %eax,%edx
  mov    %rcx,%rsi
  lea    D44(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x54(%rbp),%eax
  mov    $0x0,%esi
  mov    %eax,%edi
  call   <indent@plt>
  mov    %rax,%rsi
  lea    D69(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x38(%rbp)
  jmp    L44
L9:
  cmpl   $0x0,-0x28(%rbp)
  je     L16
  mov    -0x54(%rbp),%eax
  mov    $0x1,%esi
  mov    %eax,%edi
  call   <indent@plt>
  mov    %rax,%rcx
  mov    -0x38(%rbp),%eax
  mov    %eax,%edx
  mov    %rcx,%rsi
  lea    D41(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x48(%rbp),%rax
  mov    $0x8,%esi
  mov    %rax,%rdi
  call   <mp4tree_hexstr@plt>
  mov    %rax,%rbx
  mov    -0x54(%rbp),%eax
  add    $0x1,%eax
  mov    $0x0,%esi
  mov    %eax,%edi
  call   <indent@plt>
  mov    %rbx,%rdx
  mov    %rax,%rsi
  lea    D67(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x28(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rax,-0x48(%rbp)
L16:
  mov    -0x30(%rbp),%eax
  and    $0x2,%eax
  test   %eax,%eax
  je     L15
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <get_u16@plt>
  mov    %eax,-0x24(%rbp)
  mov    -0x54(%rbp),%eax
  add    $0x1,%eax
  mov    $0x1,%esi
  mov    %eax,%edi
  call   <indent@plt>
  mov    %rax,%rcx
  mov    -0x24(%rbp),%eax
  mov    %eax,%edx
  mov    %rcx,%rsi
  lea    D38(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addq   $0x8,-0x48(%rbp)
  mov    -0x54(%rbp),%eax
  add    $0x2,%eax
  mov    $0x0,%esi
  mov    %eax,%edi
  call   <indent@plt>
  mov    %rax,%rsi
  lea    D28(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x34(%rbp)
  jmp    L19
L48:
  mov    -0x48(%rbp),%rax
  add    $0x8,%rax
  mov    %rax,%rdi
  call   <get_u32@plt>
  mov    %eax,%r12d
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <get_u16@plt>
  mov    %eax,%ebx
  mov    -0x54(%rbp),%eax
  add    $0x2,%eax
  mov    $0x0,%esi
  mov    %eax,%edi
  call   <indent@plt>
  mov    %rax,%rsi
  mov    -0x34(%rbp),%eax
  mov    %r12d,%r8d
  mov    %ebx,%ecx
  mov    %eax,%edx
  lea    D106(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addq   $0x18,-0x48(%rbp)
  addl   $0x1,-0x34(%rbp)
L19:
  mov    -0x34(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L48
L15:
  addl   $0x1,-0x38(%rbp)
L44:
  mov    -0x38(%rbp),%eax
  cmp    -0x2c(%rbp),%eax
  jl     L9
  nop
  nop
  add    $0x48,%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D8
datatype: string
name: extract_symbolic_data
arguments: label: D25
datatype: string
name: extract_symbolic_data
arguments: label: D82
datatype: string
name: extract_symbolic_data
arguments: label: D31
datatype: string
name: extract_symbolic_data
arguments: label: D122
datatype: string
name: extract_symbolic_data
arguments: label: D90
datatype: string
name: extract_symbolic_data
arguments: label: D44
datatype: string
name: extract_symbolic_data
arguments: label: D69
datatype: string
name: extract_symbolic_data
arguments: label: D41
datatype: string
name: extract_symbolic_data
arguments: label: D67
datatype: string
name: extract_symbolic_data
arguments: label: D38
datatype: string
name: extract_symbolic_data
arguments: label: D28
datatype: string
name: extract_symbolic_data
arguments: label: D106
datatype: string

tool: D8: %s  Name:        Sample Encryption Box


tool: D25: %s  Version:     %u


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


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


tool: D122: %s  IV Sizes:       %u


tool: D90: %s  Key ID:


tool: D44: %s  Num Entries: %u


tool: D69: %s  Entry           IV             Entries


tool: D41: %s Entry: %3u


tool: D67: %s  IV:     %s


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


tool: D28: %s  Sub-Entry  BytesOfClear  BytesOfProtectedData


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


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;
      }
    }
  }
}
```