user: Translate the below assembly code into C programming language:

```asm
<GetId3v1>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,%r13
  mov    %rsi,%r12
  mov    %rdx,%rbp
  mov    $0x80,%edi
  call   <memory_allocation@plt>
  mov    %rax,%rbx
  mov    $0x3,%edx
  lea    D2(%rip),%rsi
  mov    %rax,%rdi
  call   <strncat@plt>
  lea    0x3(%rbx),%r15
  test   %r13,%r13
  je     L28
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %eax,0xc(%rsp)
  mov    $0x1e,%r14d
  sub    %eax,%r14d
  js     L85
  mov    %r13,%rcx
  lea    D39(%rip),%rdx
  mov    $0x7d,%esi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  movslq 0xc(%rsp),%rdi
  add    %r15,%rdi
  mov    %r14d,%edx
  mov    $0x0,%esi
  call   <memset@plt>
L33:
  lea    0x21(%rbx),%r15
  test   %r12,%r12
  je     L62
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %eax,%r13d
  mov    $0x1e,%r14d
  sub    %eax,%r14d
  js     L88
  mov    %r12,%rcx
  lea    D39(%rip),%rdx
  mov    $0x5f,%esi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  movslq %r13d,%rdi
  add    %r15,%rdi
  mov    %r14d,%edx
  mov    $0x0,%esi
  call   <memset@plt>
L81:
  lea    0x3f(%rbx),%r14
  test   %rbp,%rbp
  je     L105
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %eax,%r12d
  mov    $0x1e,%r13d
  sub    %eax,%r13d
  js     L75
  mov    %rbp,%rcx
  lea    D39(%rip),%rdx
  mov    $0x41,%esi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  movslq %r12d,%rdi
  add    %r14,%rdi
  mov    %r13d,%edx
  mov    $0x0,%esi
  call   <memset@plt>
L17:
  lea    0x5d(%rbx),%rdi
  mov    $0x4,%edx
  mov    $0x0,%esi
  call   <memset@plt>
  lea    0x61(%rbx),%rdi
  lea    D51(%rip),%rdx
  mov    $0x1f,%esi
  mov    $0x0,%eax
  call   <snprintf@plt>
  lea    0x7f(%rbx),%rdi
  mov    $0x1,%edx
  mov    $0x1,%esi
  call   <memset@plt>
  mov    %rbx,%rax
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L85:
  lea    0x6(%rbx),%rdi
  mov    %r13,%rcx
  lea    D39(%rip),%rdx
  mov    $0x1f,%esi
  mov    $0x0,%eax
  call   <snprintf@plt>
  jmp    L33
L28:
  mov    $0x1e,%edx
  mov    $0x0,%esi
  mov    %r15,%rdi
  call   <memset@plt>
  jmp    L33
L88:
  mov    %r12,%rcx
  lea    D39(%rip),%rdx
  mov    $0x1f,%esi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  jmp    L81
L62:
  mov    $0x1e,%edx
  mov    $0x0,%esi
  mov    %r15,%rdi
  call   <memset@plt>
  jmp    L81
L75:
  mov    %rbp,%rcx
  lea    D39(%rip),%rdx
  mov    $0x1f,%esi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  jmp    L17
L105:
  mov    $0x1e,%edx
  mov    $0x0,%esi
  mov    %r14,%rdi
  call   <memset@plt>
  jmp    L17
```

tool_calls: name: extract_symbolic_data
arguments: tag: D2
type_infered: string
name: extract_symbolic_data
arguments: tag: D39
type_infered: string
name: extract_symbolic_data
arguments: tag: D51
type_infered: string

tool: D2: TAG

tool: D39: %s

tool: D51: 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;
}
```