user: 下面的汇编指令对应的C源代码是什么:

```asm
<buildfname>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%r13
  mov    %rsi,-0x38(%rbp)
  mov    %rdx,-0x40(%rbp)
  mov    %ecx,-0x44(%rbp)
  mov    -0x40(%rbp),%r12
  movzbl 0x0(%r13),%eax
  cmp    $0x2a,%al
  jne    L97
  add    $0x1,%r13
L97:
  movl   $0x0,-0x24(%rbp)
  mov    %r13,%rbx
  jmp    L142
L70:
  movzbl (%rbx),%eax
  cmp    $0x26,%al
  jne    L150
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,%edx
  mov    -0x24(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x24(%rbp)
  jmp    L114
L150:
  addl   $0x1,-0x24(%rbp)
L114:
  add    $0x1,%rbx
L142:
  movzbl (%rbx),%eax
  test   %al,%al
  je     L78
  movzbl (%rbx),%eax
  cmp    $0x2c,%al
  je     L78
  movzbl (%rbx),%eax
  cmp    $0x3b,%al
  je     L78
  movzbl (%rbx),%eax
  cmp    $0x25,%al
  jne    L70
L78:
  mov    -0x44(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jg     L167
  mov    -0x44(%rbp),%eax
  movslq %eax,%rsi
  mov    -0x40(%rbp),%rax
  mov    %r13,%rcx
  lea    D8(%rip),%rdx
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  jmp    L132
L167:
  mov    %r13,%rbx
  jmp    L2
L85:
  movzbl (%rbx),%eax
  cmp    $0x26,%al
  jne    L7
  mov    %r12,%rax
  sub    -0x40(%rbp),%rax
  mov    %rax,%rdx
  mov    $0x8,%eax
  sub    %rdx,%rax
  mov    %rax,%rsi
  mov    -0x38(%rbp),%rax
  mov    %rax,%rcx
  lea    D8(%rip),%rax
  mov    %rax,%rdx
  mov    %r12,%rdi
  mov    $0x0,%eax
  call   <snprintf@plt>
  movzbl (%r12),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <toupper@plt>
  mov    %al,(%r12)
  mov    %r12,%rdi
  call   <strlen@plt>
  add    %rax,%r12
  jmp    L160
L7:
  mov    %r12,%rax
  lea    0x1(%rax),%r12
  movzbl (%rbx),%edx
  mov    %dl,(%rax)
L160:
  add    $0x1,%rbx
L2:
  movzbl (%rbx),%eax
  test   %al,%al
  je     L79
  movzbl (%rbx),%eax
  cmp    $0x2c,%al
  je     L79
  movzbl (%rbx),%eax
  cmp    $0x3b,%al
  je     L79
  movzbl (%rbx),%eax
  cmp    $0x25,%al
  jne    L85
L79:
  movb   $0x0,(%r12)
L132:
  add    $0x38,%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %rbp
  ret
```

tool_calls: name: disassemble_data
arguments: tag: D8
type_guessed: string

tool: D8: %s

assistant: ```c
void buildfname(gecos, login, buf, buflen) register char *gecos;
char *login;
char *buf;
int buflen;
{
  register char *p;
  register char *bp = buf;
  int l;
  if (*gecos == '*')
    gecos++;
  l = 0;
  for (p = gecos; *p != '\0' && *p != ',' && *p != ';' && *p != '%'; p++) {
    if (*p == '&')
      l += strlen(login);
    else
      l++;
  }
  if (l > buflen - 1) {
    if (0)
      printf("snprintf (buf, buflen, format, gecos)\n");
    if (0)
      printf("sizeof (buf) = %d\n", sizeof(buf));
    if (0)
      printf("buflen = %d\n", buflen);
    if (0)
      printf("strlen (gecos)=%d\n", strlen(gecos));
    snprintf(buf, buflen, "%s", gecos);
    return;
  }
  for (p = gecos; *p != '\0' && *p != ',' && *p != ';' && *p != '%'; p++) {
    if (*p == '&') {
      if (0)
        printf("snprintf(bp, SPACELEFT(buf, bp), format, login)\n");
      if (0)
        printf("sizeof(bp) = %d\n", sizeof(bp));
      if (0)
        printf("SPACELEFT(buf,bp)=%d\n", (sizeof buf - ((bp)-buf)));
      if (0)
        printf("strlen(login)=%d\n", strlen(login));
      snprintf(bp, (sizeof buf - ((bp)-buf)), "%s", login);
      *bp = toupper(*bp);
      bp += strlen(bp);
    } else {
      if (0)
        printf("*bp++=*p\n:");
      if (0)
        printf("bp-buf=%d\n", (bp - buf));
      *bp++ = *p;
    }
  }
  *bp = '\0';
  if (0)
    printf("leaving buildfname\n");
}
```