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

```asm
<ReadTextInfoFrame>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  xor    %eax,%eax
  movb   $0x0,0x10(%rsp)
  movl   $0x0,0xc(%rsp)
  movl   $0x0,0x11(%rsp)
  mov    %ax,0x15(%rsp)
  movb   $0x0,0x17(%rsp)
  test   %rdi,%rdi
  je     L23
  mov    %rdi,%rbp
  call   <ftell@plt>
  mov    %rax,%r13
  test   %rax,%rax
  js     L23
  lea    0xc(%rsp),%r12
  mov    %rbp,%rcx
  mov    $0x1,%edx
  mov    $0x4,%esi
  mov    %r12,%rdi
  call   <fread@plt>
  cmp    $0x1,%eax
  jne    L23
  lea    0x11(%rsp),%rdi
  mov    %rbp,%rcx
  mov    $0x1,%edx
  mov    $0x7,%esi
  call   <fread@plt>
  cmp    $0x1,%eax
  jne    L23
  mov    %r12,%rdi
  call   <IsTextInfoID3FrameID@plt>
  test   %eax,%eax
  je     L54
  movsbl 0x16(%rsp),%eax
  test   $0xc0,%al
  jne    L54
  cmpb   $0x0,0x17(%rsp)
  jne    L54
  movsbq 0x11(%rsp),%rbx
  movsbq 0x12(%rsp),%rax
  xor    %edi,%edi
  shl    $0x10,%rax
  shl    $0x18,%rbx
  or     %rax,%rbx
  movsbq 0x14(%rsp),%rax
  or     %rax,%rbx
  movsbq 0x13(%rsp),%rax
  shl    $0x8,%rax
  or     %rax,%rbx
  cmp    $0x2710,%rbx
  setbe  %dil
  call   <assert@plt>
  cmp    $0x1,%rbx
  jbe    L54
  mov    %rbx,%rdi
  call   <malloc@plt>
  mov    %rax,%r12
  test   %rax,%rax
  je     L78
  lea    -0x1(%rbx),%rsi
  mov    %rbp,%rcx
  mov    $0x1,%edx
  mov    %rax,%rdi
  call   <fread@plt>
  cmp    $0x1,%eax
  jne    L137
  movb   $0x0,-0x1(%r12,%rbx,1)
  jmp    L89
  nopl   (%rax)
L54:
  mov    D6(%rip),%rax
  mov    %r13,%rsi
  mov    %rbp,%rdi
  mov    (%rax),%edx
  call   <fseek@plt>
  nopl   0x0(%rax)
L23:
  xor    %r12d,%r12d
L89:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L57
  add    $0x28,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax)
L137:
  mov    D6(%rip),%rax
  mov    %r13,%rsi
  mov    %rbp,%rdi
  mov    (%rax),%edx
  call   <fseek@plt>
  mov    %r12,%rdi
  xor    %r12d,%r12d
  call   <free@plt>
  jmp    L89
L57:
  call   <__stack_chk_fail@plt>
L78:
  mov    D6(%rip),%rax
  mov    %r13,%rsi
  mov    %rbp,%rdi
  mov    (%rax),%edx
  call   <fseek@plt>
  jmp    L89
```

assistant: ```c
char *ReadTextInfoFrame(FILE *inf) {
  long originalpos = 0;
  char buffer[5] = {0};
  char buffer2[7] = {0};
  char *string = NULL;
  unsigned long framesize = 0;
  if (inf == NULL)
    return NULL;
  originalpos = ftell(inf);
  if (originalpos < 0)
    return NULL;
  if (fread(buffer, 4, 1, inf) != 1)
    return NULL;
  if (fread(buffer2, 7, 1, inf) != 1)
    return NULL;
  if (!IsTextInfoID3FrameID(buffer) || ((buffer2[5] & 192) != 0) || (buffer2[6] != 0)) {
    (void)fseek(inf, originalpos, SEEK_SET);
    return NULL;
  }
  framesize = ((unsigned long)buffer2[0] << 24) | ((unsigned long)buffer2[1] << 16) | ((unsigned long)buffer2[2] << 8) | ((unsigned long)buffer2[3]);
  assert(framesize <= 10000);
  if (framesize < 2) {
    (void)fseek(inf, originalpos, SEEK_SET);
    return NULL;
  }
  string = malloc((size_t)framesize);
  if (!string) {
    (void)fseek(inf, originalpos, SEEK_SET);
    return NULL;
  }
  if (fread(string, (size_t)framesize - 1, 1, inf) != 1) {
    (void)fseek(inf, originalpos, SEEK_SET);
    free(string);
    return NULL;
  }
  string[framesize - 1] = '\0';
  return string;
}
```