user: Please show me the C implementation that matches the assembly code listed below:

```asm
<b2HIT>:
  endbr64
  push   %r15
  push   %r14
  lea    D34(%rip),%r14
  push   %r13
  push   %r12
  mov    %rdi,%r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  call   <strlen@plt>
  lea    0x4(,%rax,4),%edi
  call   <vrna_alloc@plt>
  mov    %r12,%rdi
  mov    %rax,%rbp
  call   <aux_struct@plt>
  mov    %r14,%rsi
  mov    %rbp,%rdi
  mov    %rax,%rbx
  mov    %rax,0x8(%rsp)
  call   <strcpy@plt>
  movzbl (%rbx),%eax
  test   %al,%al
  je     L135
  lea    0x1(%rbx),%r13
  mov    $0x1,%r15d
  xor    %r12d,%r12d
  xor    %edx,%edx
  mov    $0x1,%ecx
  lea    0x1e(%rsp),%rbx
  jmp    L56
  nopl   0x0(%rax)
L22:
  cmp    $0x2e,%al
  jne    L144
  add    $0x1,%edx
L144:
  movzbl 0x0(%r13),%eax
  add    $0x1,%r13
  test   %al,%al
  je     L145
L56:
  lea    0x0(%rbp,%rcx,1),%r10
  cmp    $0x5b,%al
  je     L15
  jg     L14
  cmp    $0x29,%al
  jne    L22
  mov    %r10,(%rsp)
  test   %edx,%edx
  je     L48
  lea    D0(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  mov    (%rsp),%rdi
  mov    %rbx,%rsi
  call   <strcat@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  add    %eax,%r15d
  movslq %r15d,%rcx
L48:
  movzbl 0x0(%r13),%eax
  add    $0x1,%r13
  add    $0x1,%r12d
  xor    %edx,%edx
  test   %al,%al
  jne    L56
  nopw   0x0(%rax,%rax,1)
L145:
  mov    %rcx,%rbx
  test   %edx,%edx
  jne    L152
L136:
  lea    D56(%rip),%rsi
  lea    0x0(%rbp,%rbx,1),%rdi
  call   <strcat@plt>
  mov    0x8(%rsp),%rdi
  call   <free@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  lea    0x2(%rax),%edi
  call   <vrna_alloc@plt>
  mov    %rbp,%rsi
  mov    %rax,%rdi
  mov    %rax,%r12
  call   <strcpy@plt>
  mov    %rbp,%rdi
  call   <free@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L42
  add    $0x38,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L14:
  cmp    $0x5d,%al
  jne    L144
  mov    %r10,(%rsp)
  test   %edx,%edx
  je     L139
  lea    D0(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  mov    (%rsp),%rdi
  mov    %rbx,%rsi
  call   <strcat@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  add    %eax,%r15d
  movslq %r15d,%rcx
L139:
  lea    0x1(%r12),%edx
  mov    %rbx,%rdi
  mov    %rcx,(%rsp)
  xor    %r12d,%r12d
  lea    D35(%rip),%rsi
  call   <sprintf@plt>
  mov    (%rsp),%rcx
  mov    %rbx,%rsi
  lea    0x0(%rbp,%rcx,1),%rdi
  call   <strcat@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  xor    %edx,%edx
  add    %eax,%r15d
  movslq %r15d,%rcx
  jmp    L144
  nopw   0x0(%rax,%rax,1)
L15:
  mov    %r10,(%rsp)
  test   %edx,%edx
  je     L47
  lea    D0(%rip),%rsi
  mov    %rbx,%rdi
  call   <sprintf@plt>
  mov    (%rsp),%rdi
  mov    %rbx,%rsi
  call   <strcat@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  add    %eax,%r15d
  movslq %r15d,%rcx
L47:
  lea    0x0(%rbp,%rcx,1),%rdi
  mov    %r14,%rsi
  add    $0x1,%r15d
  call   <strcat@plt>
  xor    %edx,%edx
  movslq %r15d,%rcx
  jmp    L144
  nopl   0x0(%rax)
L152:
  lea    0x1e(%rsp),%r12
  lea    D0(%rip),%rsi
  mov    %r12,%rdi
  call   <sprintf@plt>
  lea    0x0(%rbp,%rbx,1),%rdi
  mov    %r12,%rsi
  call   <strcat@plt>
  mov    %r12,%rdi
  call   <strlen@plt>
  lea    (%r15,%rax,1),%r8d
  movslq %r8d,%rbx
  jmp    L136
  nopl   (%rax)
L135:
  mov    $0x1,%ebx
  jmp    L136
L42:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D34
type_guessed: string
name: parse_data
arguments: label: D0
type_guessed: string
name: parse_data
arguments: label: D56
type_guessed: string
name: parse_data
arguments: label: D35
type_guessed: string

tool: D34: (

tool: D0: (U%d)

tool: D56: R)

tool: D35: P%d)

assistant: ```c
char *b2HIT(const char *structure) {
  int i, u, p, l;
  char *string, *temp, *HIT, tt[10];
  temp = (char *)vrna_alloc(strlen(structure) * 4 + 4);
  string = aux_struct(structure);
  strcpy(temp, "(");
  i = p = u = 0;
  l = 1;
  while (string[i]) {
    switch (string[i]) {
    case '.':
      u++;
      break;
    case '[':
      if (u > 0) {
        sprintf(tt, "(U%d)", u);
        strcat(temp + l, tt);
        l += strlen(tt);
        u = 0;
      }
      strcat(temp + l, "(");
      l++;
      break;
    case ')':
      if (u > 0) {
        sprintf(tt, "(U%d)", u);
        strcat(temp + l, tt);
        l += strlen(tt);
        u = 0;
      }
      p++;
      break;
    case ']':
      if (u > 0) {
        sprintf(tt, "(U%d)", u);
        strcat(temp + l, tt);
        l += strlen(tt);
        u = 0;
      }
      sprintf(tt, "P%d)", p + 1);
      strcat(temp + l, tt);
      l += strlen(tt);
      p = 0;
      break;
    }
    i++;
  }
  if (u > 0) {
    sprintf(tt, "(U%d)", u);
    strcat(temp + l, tt);
    l += strlen(tt);
  }
  strcat(temp + l, "R)");
  free(string);
  HIT = (char *)vrna_alloc(sizeof(char) * (strlen(temp) + 2));
  strcpy(HIT, temp);
  free(temp);
  return (HIT);
}
```