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

```asm
<translate_netbios_name>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,(%rsp)
  mov    %rsi,%r13
  mov    %rdx,%r15
  mov    %ecx,0x8(%rsp)
  movzbl (%rsi),%edx
  test   %dl,%dl
  je     L234
  cmp    $0x2e,%dl
  je     L234
  mov    %rsi,%rbp
  mov    $0x0,%r14d
  mov    $0x0,%ebx
  jmp    L39
L58:
  movsbl %dl,%edx
  mov    %edx,%ecx
  lea    D3(%rip),%rsi
  mov    (%rsp),%rdi
  call   <FRAMERR@plt>
  jmp    L244
L206:
  movsbl %dl,%edx
  mov    %edx,%ecx
  lea    D3(%rip),%rsi
  mov    (%rsp),%rdi
  call   <FRAMERR@plt>
  jmp    L130
L28:
  add    $0x1,%r14d
  sub    $0x41,%eax
  and    $0xf,%eax
  or     %al,(%r12)
L140:
  add    $0x2,%ebx
  mov    %ebx,%ebp
  add    %r13,%rbp
  movzbl 0x0(%rbp),%edx
  test   %dl,%dl
  je     L182
  cmp    $0x2e,%dl
  je     L182
L39:
  lea    -0x41(%rdx),%eax
  cmp    $0xf,%al
  ja     L58
L244:
  mov    %r14d,%r12d
  add    %r15,%r12
  movsbl 0x0(%rbp),%eax
  sub    $0x41,%eax
  shl    $0x4,%eax
  mov    %al,(%r12)
  lea    0x1(%rbx),%ebp
  add    %r13,%rbp
  movzbl 0x0(%rbp),%edx
  lea    -0x41(%rdx),%eax
  cmp    $0xf,%al
  ja     L206
L130:
  movzbl 0x0(%rbp),%eax
  test   %al,%al
  je     L140
  cmp    $0x2e,%al
  jne    L28
  jmp    L140
L182:
  test   %r14d,%r14d
  jne    L200
L165:
  mov    %ebx,%eax
  movzbl 0x0(%r13,%rax,1),%ecx
  test   %cl,%cl
  je     L153
  mov    0x8(%rsp),%edi
  sub    $0x1,%edi
  cmp    %edi,%r14d
  jae    L52
  mov    %r14d,%esi
  add    %r15,%rsi
  mov    %r14d,%eax
  add    $0x1,%ebx
  sub    %r14d,%ebx
L56:
  lea    (%rbx,%rax,1),%edx
  add    $0x1,%eax
  mov    %cl,(%rsi)
  mov    %edx,%edx
  movzbl 0x0(%r13,%rdx,1),%ecx
  test   %cl,%cl
  je     L80
  add    $0x1,%rsi
  cmp    %edi,%eax
  jb     L56
L80:
  mov    %eax,%eax
  movb   $0x0,(%r15,%rax,1)
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L200:
  mov    %r14d,%ebp
  add    %r15,%rbp
  movsbl 0x0(%rbp),%edi
  call   <isprint@plt>
  test   %eax,%eax
  jne    L165
  movzbl 0x0(%rbp),%eax
  mov    %al,(%rsp)
  movsbl %al,%eax
  mov    %eax,0xc(%rsp)
  lea    -0x1(%r14),%ebp
  jmp    L148
L135:
  mov    %r12d,%ebp
L148:
  test   %ebp,%ebp
  je     L131
  lea    -0x1(%rbp),%r12d
  mov    %r12d,%eax
  movsbl (%r15,%rax,1),%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L135
L131:
  mov    %ebp,%eax
  movb   $0x3c,(%r15,%rax,1)
  lea    0x1(%rbp),%ecx
  lea    D26(%rip),%rdx
  mov    0xc(%rsp),%eax
  shr    $0x4,%eax
  and    $0xf,%eax
  movzbl (%rdx,%rax,1),%eax
  mov    %al,(%r15,%rcx,1)
  lea    0x2(%rbp),%ecx
  mov    (%rsp),%rax
  and    $0xf,%eax
  movzbl (%rdx,%rax,1),%eax
  mov    %al,(%r15,%rcx,1)
  lea    0x4(%rbp),%r14d
  lea    0x3(%rbp),%eax
  movb   $0x3e,(%r15,%rax,1)
  jmp    L165
L234:
  mov    $0x0,%ebx
  mov    $0x0,%r14d
  jmp    L165
L153:
  mov    %r14d,%eax
  jmp    L80
L52:
  mov    %r14d,%eax
  jmp    L80
```

tool_calls: name: unpack_data
arguments: label: D3
datatype: string
name: unpack_data
arguments: label: D26
datatype: string

tool: D3: netbios: bad netbios name char %c (0x%02x) 


tool: D26: 0123456789ABCDEF

assistant: ```c
void translate_netbios_name(struct NetFrame *frame, const char *name, char *netbios_name, unsigned sizeof_netbios_name) {
  unsigned j;
  unsigned k;
  sizeof_netbios_name;
  k = 0;
  for (j = 0; name[j] && name[j] != '.'; j++) {
    if (name[j] < 'A' || name[j] > 'A' + 15)
      FRAMERR(frame, "netbios: bad netbios name char %c (0x%02x) \n", name[j], name[j]);
    netbios_name[k] = (char)((name[j] - 'A') << 4);
    j++;
    if (name[j] < 'A' || name[j] > 'A' + 15)
      FRAMERR(frame, "netbios: bad netbios name char %c (0x%02x) \n", name[j], name[j]);
    if (name[j] && name[j] != '.')
      netbios_name[k++] |= (char)((name[j] - 'A') & 0x0F);
  }
  if (k && !isprint(netbios_name[k])) {
    unsigned code = netbios_name[k];
    k--;
    while (k && isspace(netbios_name[k - 1]))
      k--;
    netbios_name[k++] = '<';
    netbios_name[k++] = "0123456789ABCDEF"[(code >> 4) & 0x0f];
    netbios_name[k++] = "0123456789ABCDEF"[(code >> 0) & 0x0f];
    netbios_name[k++] = '>';
  }
  while (name[j] && k < sizeof_netbios_name - 1)
    netbios_name[k++] = name[j++];
  netbios_name[k] = '\0';
}
```