user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<GetId3v1>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  movl   $0x0,-0x14(%rbp)
  mov    $0x80,%edi
  call   <memory_allocation@plt>
  mov    %rax,-0x10(%rbp)
  mov    -0x10(%rbp),%rax
  mov    $0x3,%edx
  lea    D56(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncat@plt>
  mov    -0x10(%rbp),%rax
  add    $0x3,%rax
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  je     L39
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    $0x1e,%eax
  sub    %edx,%eax
  mov    %eax,-0x14(%rbp)
  cmpl   $0x0,-0x14(%rbp)
  jns    L61
  mov    -0x8(%rbp),%rax
  lea    0x3(%rax),%rdi
  mov    -0x28(%rbp),%rax
  mov    %rax,%rcx
  lea    D5(%rip),%rax
  mov    %rax,%rdx
  mov    $0x1f,%esi
  mov    $0x0,%eax
  call   <snprintf@plt>
  jmp    L35
L61:
  mov    -0x28(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  mov    %rdx,%rcx
  lea    D5(%rip),%rdx
  mov    $0x7d,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  mov    $0x1e,%eax
  sub    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x14(%rbp),%eax
  mov    %eax,%edx
  mov    $0x0,%esi
  mov    %rcx,%rdi
  call   <memset@plt>
  jmp    L35
L39:
  mov    -0x8(%rbp),%rax
  mov    $0x1e,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
L35:
  addq   $0x1e,-0x8(%rbp)
  cmpq   $0x0,-0x30(%rbp)
  je     L8
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    $0x1e,%eax
  sub    %edx,%eax
  mov    %eax,-0x14(%rbp)
  cmpl   $0x0,-0x14(%rbp)
  jns    L25
  mov    -0x30(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  mov    %rdx,%rcx
  lea    D5(%rip),%rdx
  mov    $0x1f,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  jmp    L26
L25:
  mov    -0x30(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  mov    %rdx,%rcx
  lea    D5(%rip),%rdx
  mov    $0x5f,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  mov    $0x1e,%eax
  sub    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x14(%rbp),%eax
  mov    %eax,%edx
  mov    $0x0,%esi
  mov    %rcx,%rdi
  call   <memset@plt>
  jmp    L26
L8:
  mov    -0x8(%rbp),%rax
  mov    $0x1e,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
L26:
  addq   $0x1e,-0x8(%rbp)
  cmpq   $0x0,-0x38(%rbp)
  je     L107
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    $0x1e,%eax
  sub    %edx,%eax
  mov    %eax,-0x14(%rbp)
  cmpl   $0x0,-0x14(%rbp)
  jns    L34
  mov    -0x38(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  mov    %rdx,%rcx
  lea    D5(%rip),%rdx
  mov    $0x1f,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  jmp    L71
L34:
  mov    -0x38(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  mov    %rdx,%rcx
  lea    D5(%rip),%rdx
  mov    $0x41,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  mov    $0x1e,%eax
  sub    -0x14(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x14(%rbp),%eax
  mov    %eax,%edx
  mov    $0x0,%esi
  mov    %rcx,%rdi
  call   <memset@plt>
  jmp    L71
L107:
  mov    -0x8(%rbp),%rax
  mov    $0x1e,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
L71:
  addq   $0x1e,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    $0x4,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  addq   $0x4,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  lea    D65(%rip),%rdx
  mov    $0x1f,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  addq   $0x1e,-0x8(%rbp)
  mov    -0x8(%rbp),%rax
  mov    $0x1,%edx
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <memset@plt>
  mov    -0x10(%rbp),%rax
  leave
  ret
```

tool_calls: name: read_data
arguments: data_label: D56
datatype: string
name: read_data
arguments: data_label: D5
datatype: string
name: read_data
arguments: data_label: D65
datatype: string

tool: D56: TAG

tool: D5: %s

tool: D65: by cPige http://ed.zehome.com/

assistant: ```c
char *GetId3v1(char *titre, char *artiste, char *radioName) {
  char *chunk;
  char *relativePointer;
  int padding = 0;
  chunk = (char *)memory_allocation(128);
  strncat(chunk, "TAG", 3);
  relativePointer = chunk + 3;
  if (titre) {
    padding = (30 - strlen(titre));
    if (padding < 0) {
      snprintf(relativePointer + 3, 31, "%s", titre);
    } else {
      snprintf(relativePointer, 128 - 3, "%s", titre);
      memset(relativePointer + (30 - padding), 0, padding);
    }
  } else {
    memset(relativePointer, 0, 30);
  }
  relativePointer = relativePointer + 30;
  if (artiste) {
    padding = (30 - strlen(artiste));
    if (padding < 0) {
      snprintf(relativePointer, 31, "%s", artiste);
    } else {
      snprintf(relativePointer, 128 - 33, "%s", artiste);
      memset(relativePointer + (30 - padding), 0, padding);
    }
  } else {
    memset(relativePointer, 0, 30);
  }
  relativePointer = relativePointer + 30;
  if (radioName != NULL) {
    padding = (30 - strlen(radioName));
    if (padding < 0) {
      snprintf(relativePointer, 31, "%s", radioName);
    } else {
      snprintf(relativePointer, 128 - 63, "%s", radioName);
      memset(relativePointer + (30 - padding), 0, padding);
    }
  } else {
    memset(relativePointer, 0, 30);
  }
  relativePointer = relativePointer + 30;
  memset(relativePointer, 0, 4);
  relativePointer = relativePointer + 4;
  snprintf(relativePointer, 31, "by cPige http://ed.zehome.com/");
  relativePointer = relativePointer + 30;
  memset(relativePointer, 1, 1);
  return chunk;
}
```