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

```asm
<cta_audio_block>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    %esi,-0x1c(%rbp)
  movl   $0x0,-0x8(%rbp)
  mov    -0x1c(%rbp),%ecx
  mov    %ecx,%edx
  mov    $0xaaaaaaab,%eax
  imul   %rdx,%rax
  shr    $0x20,%rax
  shr    %eax
  mov    %eax,%edx
  add    %edx,%edx
  add    %eax,%edx
  mov    %ecx,%eax
  sub    %edx,%eax
  test   %eax,%eax
  jne    L108
  movl   $0x0,-0xc(%rbp)
  jmp    L142
L22:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  sar    $0x3,%eax
  and    $0xf,%eax
  mov    %eax,-0x4(%rbp)
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x2(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  shr    $0x3,%al
  movzbl %al,%eax
  mov    %eax,-0x8(%rbp)
  cmpl   $0xf,-0x4(%rbp)
  je     L71
  mov    -0x4(%rbp),%eax
  mov    %eax,%edi
  call   <audio_format@plt>
  jmp    L135
L71:
  cmpl   $0xb,-0x8(%rbp)
  jne    L66
  mov    -0x8(%rbp),%eax
  mov    %eax,%edi
  call   <audio_ext_format@plt>
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  and    $0x7,%eax
  mov    %eax,%edi
  call   <mpeg_h_3d_audio_level@plt>
  jmp    L135
L66:
  cmpl   $0xd,-0x8(%rbp)
  jne    L160
  mov    -0x8(%rbp),%eax
  mov    %eax,%edi
  call   <audio_ext_format@plt>
  jmp    L135
L160:
  mov    -0x8(%rbp),%eax
  mov    %eax,%edi
  call   <audio_ext_format@plt>
L135:
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x1(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  and    $0x1,%eax
  test   %eax,%eax
  cmpl   $0x1,-0x4(%rbp)
  je     L173
  cmpl   $0xd,-0x8(%rbp)
  jne    L221
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x2(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  and    $0x1,%eax
  test   %eax,%eax
  jmp    L173
L221:
  cmpl   $0x8,-0x4(%rbp)
  jle    L173
  cmpl   $0xe,-0x4(%rbp)
  je     L173
  cmpl   $0xb,-0x8(%rbp)
  jne    L209
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x2(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L173
L209:
  cmpl   $0x3,-0x8(%rbp)
  jle    L168
  cmpl   $0x6,-0x8(%rbp)
  jle    L47
L168:
  cmpl   $0x8,-0x8(%rbp)
  je     L47
  cmpl   $0xa,-0x8(%rbp)
  jne    L173
L47:
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x2(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  and    $0x2,%eax
  test   %eax,%eax
  cmpl   $0x7,-0x8(%rbp)
  jle    L214
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x2(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  and    $0x1,%eax
  test   %eax,%eax
  je     L214
  mov    -0xc(%rbp),%eax
  cltq
  lea    0x2(%rax),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  and    $0x1,%eax
  test   %eax,%eax
L214:
  cmpl   $0x6,-0x8(%rbp)
L173:
  addl   $0x3,-0xc(%rbp)
L142:
  mov    -0xc(%rbp),%eax
  cmp    %eax,-0x1c(%rbp)
  ja     L22
  jmp    L136
L108:
  nop
L136:
  leave
  ret
```

assistant: ```c
void cta_audio_block(const unsigned char *x, unsigned int length) {
  int i, format, ext_format = 0;
  if (length % 3) {
    (void)("Broken CTA audio block length %d\n", length);
    return;
  }
  for (i = 0; i < length; i += 3) {
    format = (x[i] & 0x78) >> 3;
    ext_format = (x[i + 2] & 0xf8) >> 3;
    if (format != 15)
      (void)("    %s, max channels %d\n", audio_format(format), (x[i] & 0x07) + 1);
    else if (ext_format == 11)
      (void)("    %s, MPEG-H 3D Audio Level: %s\n", audio_ext_format(ext_format), mpeg_h_3d_audio_level(x[i] & 0x07));
    else if (ext_format == 13)
      (void)("    %s, max channels %d\n", audio_ext_format(ext_format), (((x[i + 1] & 0x80) >> 3) | ((x[i] & 0x80) >> 4) | (x[i] & 0x07)) + 1);
    else
      (void)("    %s, max channels %d\n", audio_ext_format(ext_format), (x[i] & 0x07) + 1);
    (void)("      Supported sample rates (kHz):%s%s%s%s%s%s%s\n", (x[i + 1] & 0x40) ? " 192" : "", (x[i + 1] & 0x20) ? " 176.4" : "", (x[i + 1] & 0x10) ? " 96" : "", (x[i + 1] & 0x08) ? " 88.2" : "", (x[i + 1] & 0x04) ? " 48" : "", (x[i + 1] & 0x02) ? " 44.1" : "", (x[i + 1] & 0x01) ? " 32" : "");
    if (format == 1 || ext_format == 13) {
      (void)("      Supported sample sizes (bits):%s%s%s\n", (x[i + 2] & 0x04) ? " 24" : "", (x[i + 2] & 0x02) ? " 20" : "", (x[i + 2] & 0x01) ? " 16" : "");
    } else if (format <= 8) {
      (void)("      Maximum bit rate: %d kb/s\n", x[i + 2] * 8);
    } else if (format == 14) {
      (void)("      Profile: %d\n", x[i + 2] & 7);
    } else if (ext_format == 11 && (x[i + 2] & 1)) {
      (void)("      Supports MPEG-H 3D Audio Low Complexity Profile\n");
    } else if ((ext_format >= 4 && ext_format <= 6) || ext_format == 8 || ext_format == 10) {
      (void)("      AAC audio frame lengths:%s%s\n", (x[i + 2] & 4) ? " 1024_TL" : "", (x[i + 2] & 2) ? " 960_TL" : "");
      if (ext_format >= 8 && (x[i + 2] & 1))
        (void)("      Supports %s signaled MPEG Surround data\n", (x[i + 2] & 1) ? "implicitly and explicitly" : "only implicitly");
      if (ext_format == 6 && (x[i + 2] & 1))
        (void)("      Supports 22.2ch System H\n");
    }
  }
}
```