user: 请将以下的汇编代码转换成C语言代码：

```asm
<id3_track_numbering>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x34(%rbp)
  mov    %ecx,-0x38(%rbp)
  mov    -0x34(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%edi
  call   <uintlen@plt>
  mov    %eax,-0x20(%rbp)
  mov    -0x34(%rbp),%eax
  mov    %eax,%edi
  call   <uintlen@plt>
  mov    %eax,-0x1c(%rbp)
  cmpl   $0x8,-0x34(%rbp)
  jg     L32
  addl   $0x1,-0x20(%rbp)
L32:
  cmpl   $0x9,-0x38(%rbp)
  jg     L28
  addl   $0x1,-0x1c(%rbp)
L28:
  mov    -0x20(%rbp),%eax
  add    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x18(%rbp)
  cmpl   $0x8,-0x34(%rbp)
  jg     L45
  mov    -0x34(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x18(%rbp),%rax
  lea    D29(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  jmp    L57
L45:
  mov    -0x34(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x18(%rbp),%rax
  lea    D41(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
L57:
  mov    -0x1c(%rbp),%eax
  add    $0x2,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x10(%rbp)
  cmpl   $0x9,-0x38(%rbp)
  jg     L36
  mov    -0x38(%rbp),%edx
  mov    -0x10(%rbp),%rax
  lea    D29(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  jmp    L46
L36:
  mov    -0x38(%rbp),%edx
  mov    -0x10(%rbp),%rax
  lea    D41(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
L46:
  mov    -0x20(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  add    %edx,%eax
  add    $0x3,%eax
  mov    %eax,%edi
  call   <malloc@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x10(%rbp),%rcx
  mov    -0x18(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  lea    D13(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <sprintf@plt>
  mov    -0x8(%rbp),%rdx
  mov    -0x30(%rbp),%rcx
  mov    -0x28(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <id3_text_field@plt>
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    -0x8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  nop
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D29
type_infered: string
name: extract_symbolic_data
arguments: data_label: D41
type_infered: string
name: extract_symbolic_data
arguments: data_label: D13
type_infered: string

tool: D29: 0%u

tool: D41: %u

tool: D13: %s/%s

assistant: ```c
void id3_track_numbering(char *frame, size_t *offset, int track, int track_count) {
  unsigned tr_len = uintlen(track + 1);
  unsigned tr_count_len = uintlen(track);
  if (track + 1 < 10)
    tr_len++;
  if (track_count < 10)
    tr_count_len++;
  char *tr_str = (char *)malloc(sizeof(char) * tr_len + 2);
  if (track + 1 < 10)
    sprintf(tr_str, "0%u", track + 1);
  else
    sprintf(tr_str, "%u", track + 1);
  char *tr_count_str = (char *)malloc(sizeof(char) * tr_count_len + 2);
  if (track_count < 10)
    sprintf(tr_count_str, "0%u", track_count);
  else
    sprintf(tr_count_str, "%u", track_count);
  char *numbering = (char *)malloc(sizeof(char) * tr_len + tr_count_len + 3);
  sprintf(numbering, "%s/%s", tr_str, tr_count_str);
  id3_text_field(frame, offset, numbering);
  free(tr_str);
  free(tr_count_str);
  free(numbering);
}
```