user: 请从给定的汇编指令推导出C源代码：

```asm
<krocllvm_make_namedlabel>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x14(%rbp)
  mov    -0x14(%rbp),%eax
  add    $0x5,%eax
  mov    %eax,%edi
  call   <smalloc@plt>
  mov    %rax,-0x8(%rbp)
  movl   $0x0,-0x18(%rbp)
  mov    -0x28(%rbp),%rax
  mov    $0x2,%edx
  lea    D3(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L38
  mov    -0x28(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  movl   $0x2,-0x18(%rbp)
  jmp    L76
L38:
  mov    -0x28(%rbp),%rax
  mov    $0x4,%edx
  lea    D8(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L20
  mov    -0x28(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  movl   $0x4,-0x18(%rbp)
  jmp    L76
L20:
  mov    -0x28(%rbp),%rax
  mov    $0x2,%edx
  lea    D38(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L69
  mov    -0x28(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  movl   $0x2,-0x18(%rbp)
  jmp    L76
L69:
  mov    -0x28(%rbp),%rax
  mov    $0x3,%edx
  lea    D7(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L45
  mov    -0x28(%rbp),%rdx
  mov    -0x8(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  movl   $0x3,-0x18(%rbp)
  jmp    L76
L45:
  mov    -0x8(%rbp),%rax
  lea    D34(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  mov    -0x14(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x8(%rbp),%rax
  lea    0x2(%rax),%rcx
  mov    -0x28(%rbp),%rax
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <memcpy@plt>
  movl   $0x2,-0x18(%rbp)
L76:
  mov    -0x18(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x10(%rbp)
  jmp    L48
L103:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  cmp    $0x2e,%eax
  jne    L88
  mov    -0x10(%rbp),%rax
  movb   $0x5f,(%rax)
  nop
L88:
  addq   $0x1,-0x10(%rbp)
L48:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L103
  mov    -0x8(%rbp),%rax
  leave
  ret
```

tool_calls: name: read_data
arguments: data_label: D3
type_infered: string
name: read_data
arguments: data_label: D8
type_infered: string
name: read_data
arguments: data_label: D38
type_infered: string
name: read_data
arguments: data_label: D7
type_infered: string
name: read_data
arguments: data_label: D34
type_infered: string

tool: D3: C.

tool: D8: CIF.

tool: D38: B.

tool: D7: BX.

tool: D34: O_

assistant: ```c
char *krocllvm_make_namedlabel(const char *lbl) {
  int lbl_len = strlen(lbl);
  char *belbl = (char *)smalloc(lbl_len + 5);
  char *ch;
  int offs = 0;
  if (!strncmp(lbl, "C.", 2)) {
    strcpy(belbl, lbl);
    offs = 2;
  } else if (!strncmp(lbl, "CIF.", 4)) {
    strcpy(belbl, lbl);
    offs = 4;
  } else if (!strncmp(lbl, "B.", 2)) {
    strcpy(belbl, lbl);
    offs = 2;
  } else if (!strncmp(lbl, "BX.", 3)) {
    strcpy(belbl, lbl);
    offs = 3;
  } else {
    strcpy(belbl, "O_");
    memcpy(belbl + 2, lbl, lbl_len + 1);
    offs = 2;
  }
  for (ch = belbl + offs; *ch != '\0'; ch++) {
    switch (*ch) {
    case '.':
      *ch = '_';
      break;
    }
  }
  return belbl;
}
```