user: 请从给定的汇编指令推导出C源代码：

```asm
<mp4tree_box_saio_print>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,%rbx
  mov    %edx,%r12d
  mov    (%rdi),%ebp
  lea    0x4(%rdi),%rdi
  call   <get_u24@plt>
  mov    %eax,%r13d
  mov    $0x0,%esi
  mov    %r12d,%edi
  call   <indent@plt>
  mov    %rax,%rsi
  mov    %ebp,%edx
  lea    D20(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%esi
  mov    %r12d,%edi
  call   <indent@plt>
  mov    %rax,%rsi
  mov    %r13d,%edx
  lea    D17(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  test   $0x1,%r13b
  jne    L46
  add    $0x10,%rbx
L14:
  mov    %rbx,%rdi
  call   <get_u32@plt>
  mov    %eax,%r14d
  add    $0x10,%rbx
  test   %ebp,%ebp
  jne    L77
  mov    $0x0,%esi
  mov    %r12d,%edi
  call   <indent@plt>
  mov    %rax,%rsi
  lea    D10(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  test   %r14d,%r14d
  jle    L41
  lea    D51(%rip),%r15
L20:
  mov    %rbx,%rdi
  call   <get_u32@plt>
  mov    %eax,%r13d
  mov    $0x0,%esi
  mov    %r12d,%edi
  call   <indent@plt>
  mov    %rax,%rsi
  mov    %r13d,%ecx
  mov    %ebp,%edx
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x10,%rbx
  add    $0x1,%ebp
  cmp    %ebp,%r14d
  jne    L20
L41:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L46:
  mov    0x1c(%rbx),%r15d
  mov    0x18(%rbx),%r14d
  mov    0x14(%rbx),%r13d
  mov    0x10(%rbx),%eax
  mov    %eax,0xc(%rsp)
  mov    $0x0,%esi
  mov    %r12d,%edi
  call   <indent@plt>
  mov    %rax,%rsi
  mov    %r15d,%r9d
  mov    %r14d,%r8d
  mov    %r13d,%ecx
  mov    0xc(%rsp),%edx
  lea    D53(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x20(%rbx),%rdi
  call   <get_u32@plt>
  mov    %eax,%r13d
  mov    $0x0,%esi
  mov    %r12d,%edi
  call   <indent@plt>
  mov    %rax,%rsi
  mov    %r13d,%edx
  lea    D41(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x30,%rbx
  jmp    L14
L77:
  mov    $0x0,%esi
  mov    %r12d,%edi
  call   <indent@plt>
  mov    %rax,%rsi
  lea    D10(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  test   %r14d,%r14d
  jle    L41
  mov    $0x0,%ebp
  lea    D31(%rip),%r15
L8:
  mov    %rbx,%rdi
  call   <get_u64@plt>
  mov    %rax,%r13
  mov    $0x0,%esi
  mov    %r12d,%edi
  call   <indent@plt>
  mov    %rax,%rsi
  mov    %r13,%rcx
  mov    %ebp,%edx
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  add    $0x20,%rbx
  add    $0x1,%ebp
  cmp    %ebp,%r14d
  jne    L8
  jmp    L41
```

tool_calls: name: parse_data
arguments: data_label: D20
datatype: string
name: parse_data
arguments: data_label: D17
datatype: string
name: parse_data
arguments: data_label: D10
datatype: string
name: parse_data
arguments: data_label: D51
datatype: string
name: parse_data
arguments: data_label: D53
datatype: string
name: parse_data
arguments: data_label: D41
datatype: string
name: parse_data
arguments: data_label: D31
datatype: string

tool: D20: %s  Version:                  %u


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


tool: D10: %s  Entry     Offset


tool: D51: %s  %3d:       %u


tool: D53: %s  Aux Info Type:            %c%c%c%c


tool: D41: %s  Aux Info Type Parameter:  %u


tool: D31: %s  %3d:       %llu


assistant: ```c
void mp4tree_box_saio_print(const uint8_t *p, size_t len, int depth) {
  uint8_t version = p[0];
  uint32_t flags = get_u24(p + 1);
  uint8_t entry_count = 0;
  printf("%s  Version:                  %u\n", indent(depth, 0), version);
  printf("%s  Flags:                    0x%.6x\n", indent(depth, 0), flags);
  p += 4;
  if (flags & 1) {
    printf("%s  Aux Info Type:            %c%c%c%c\n", indent(depth, 0), p[0], p[1], p[2], p[3]);
    printf("%s  Aux Info Type Parameter:  %u\n", indent(depth, 0), get_u32(p + 4));
    p += 8;
  }
  entry_count = get_u32(p);
  p += 4;
  if (version == 0) {
    int i = 0;
    printf("%s  Entry     Offset\n", indent(depth, 0));
    for (i = 0; i < entry_count; i++) {
      printf("%s  %3d:       %u\n", indent(depth, 0), i, get_u32(p));
      p += 4;
    }
  } else {
    int i = 0;
    printf("%s  Entry     Offset\n", indent(depth, 0));
    for (i = 0; i < entry_count; i++) {
      printf("%s  %3d:       %llu\n", indent(depth, 0), i, (long long unsigned)get_u64(p));
      p += 8;
    }
  }
}
```