user: 这段汇编代码用C语言表示是什么样的？

```asm
<show_short_lun_info>:
  endbr64
  push   %r15
  mov    %esi,%r8d
  mov    %edx,%r9d
  mov    $0x400,%esi
  push   %r14
  lea    D101(%rip),%rdx
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xb48,%rsp
  mov    %ecx,0x4(%rsp)
  lea    0x330(%rsp),%rbx
  sub    $0x8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xb40(%rsp)
  xor    %eax,%eax
  movl   $0x0,0x30(%rsp)
  movl   $0x0,0x34(%rsp)
  push   %rcx
  mov    %edi,%ecx
  mov    %rbx,%rdi
  call   <snprintf@plt>
  pop    %rcx
  pop    %rsi
  cmp    $0x3ff,%eax
  jbe    L92
L54:
  mov    0xb38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L35
  add    $0xb48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L92:
  lea    0x230(%rsp),%rax
  mov    $0x100,%ecx
  mov    %rbx,%rdi
  mov    %rax,%rdx
  lea    D52(%rip),%rsi
  mov    %rax,0x18(%rsp)
  lea    D7(%rip),%r12
  call   <sa_sys_read_line@plt>
  lea    0x130(%rsp),%rax
  mov    $0x100,%ecx
  mov    %rbx,%rdi
  mov    %rax,%rdx
  lea    D68(%rip),%rsi
  mov    %rax,0x10(%rsp)
  lea    D88(%rip),%r14
  call   <sa_sys_read_line@plt>
  lea    0x30(%rsp),%rax
  mov    $0x100,%ecx
  mov    %rbx,%rdi
  mov    %rax,%rdx
  lea    D62(%rip),%rsi
  mov    %rax,0x8(%rsp)
  call   <sa_sys_read_line@plt>
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    $0x3ff,%edx
  lea    D43(%rip),%rsi
  mov    %rbx,%rdi
  sub    %eax,%edx
  call   <strncat@plt>
  mov    %rbx,%rdi
  call   <opendir@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L54
  nopl   0x0(%rax)
L27:
  mov    %rbp,%rdi
  call   <readdir@plt>
  test   %rax,%rax
  je     L124
L29:
  mov    (%rax),%r13
  cmpb   $0x2e,0x0(%r13)
  jne    L61
  movzbl 0x1(%r13),%eax
  test   %al,%al
  je     L27
  cmp    $0x2e,%al
  je     L71
L61:
  lea    0x730(%rsp),%r15
  mov    %r13,%r8
  mov    %rbx,%rcx
  xor    %eax,%eax
  mov    %r14,%rdx
  mov    $0x400,%esi
  mov    %r15,%rdi
  mov    %r13,%r12
  call   <snprintf@plt>
  cmp    $0x3ff,%eax
  ja     L27
  lea    0x2c(%rsp),%rdx
  lea    D54(%rip),%rsi
  mov    %r15,%rdi
  call   <sa_sys_read_u64@plt>
  xor    %eax,%eax
  mov    %r13,%r8
  mov    %rbx,%rcx
  lea    D85(%rip),%rdx
  mov    $0x400,%esi
  mov    %r15,%rdi
  call   <snprintf@plt>
  cmp    $0x3ff,%eax
  ja     L27
  mov    %r15,%rdi
  lea    0x28(%rsp),%rdx
  lea    D70(%rip),%rsi
  call   <sa_sys_read_u32@plt>
  mov    %rbp,%rdi
  call   <readdir@plt>
  test   %rax,%rax
  jne    L29
  cs nopw 0x0(%rax,%rax,1)
L124:
  mov    %rbp,%rdi
  call   <closedir@plt>
  mov    0x28(%rsp),%esi
  mov    0x2c(%rsp),%edi
  call   <format_capstr@plt>
  push   0x18(%rsp)
  mov    %r12,%rdx
  lea    D16(%rip),%rdi
  push   0x18(%rsp)
  mov    %rax,%rbp
  mov    %rax,%rcx
  mov    0x18(%rsp),%r9
  mov    0x38(%rsp),%r8d
  mov    0x14(%rsp),%esi
  call   <printf@plt>
  mov    %rbp,%rdi
  call   <free@plt>
  pop    %rax
  pop    %rdx
  jmp    L54
  nop
L71:
  cmpb   $0x0,0x2(%r13)
  jne    L61
  jmp    L27
L35:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D101
type: string
name: parse_data
arguments: data_label: D52
type: string
name: parse_data
arguments: data_label: D7
type: string
name: parse_data
arguments: data_label: D68
type: string
name: parse_data
arguments: data_label: D88
type: string
name: parse_data
arguments: data_label: D62
type: string
name: parse_data
arguments: data_label: D43
type: string
name: parse_data
arguments: data_label: D54
type: string
name: parse_data
arguments: data_label: D85
type: string
name: parse_data
arguments: data_label: D70
type: string
name: parse_data
arguments: data_label: D16
type: string

tool: D101: /sys/class/scsi_device/%u:%u:%u:%u/device/

tool: D52: rev

tool: D7: Unknown

tool: D68: model

tool: D88: %s/%s/

tool: D62: vendor

tool: D43: block

tool: D54: size

tool: D85: %s/%s/queue/

tool: D70: hw_sector_size

tool: D16: %10d  %-11s  %10s  %7d     %s %s (rev %s)


assistant: ```c
void show_short_lun_info(unsigned int hba, unsigned int port, unsigned int tgt, unsigned int lun) {
  struct dirent *dp;
  char vendor[256];
  char path[1024];
  char npath[1024];
  char model[256];
  char rev[256];
  DIR *dir;
  uint32_t blksize = 0;
  char *capstr = "Unknown";
  char *osname = "Unknown";
  uint64_t size = 0;
  int rc;
  rc = snprintf(path, sizeof(path), "/sys/class/scsi_device/%u:%u:%u:%u/device/", hba, port, tgt, lun);
  if (rc < 0 || (size_t)rc >= sizeof(path))
    return;
  sa_sys_read_line(path, "rev", rev, sizeof(rev));
  sa_sys_read_line(path, "model", model, sizeof(model));
  sa_sys_read_line(path, "vendor", vendor, sizeof(vendor));
  strncat(path, "block", sizeof(path) - strlen(path) - 1);
  dir = opendir(path);
  if (!dir)
    return;
  while ((dp = readdir(dir)) != NULL) {
    if (dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || (dp->d_name[1] == '.' && dp->d_name[2] == '\0')))
      continue;
    osname = dp->d_name;
    rc = snprintf(npath, sizeof(npath), "%s/%s/", path, osname);
    if (rc < 0 || (size_t)rc >= sizeof(npath))
      continue;
    sa_sys_read_u64(npath, "size", &size);
    rc = snprintf(npath, sizeof(npath), "%s/%s/queue/", path, osname);
    if (rc < 0 || (size_t)rc >= sizeof(npath))
      continue;
    sa_sys_read_u32(npath, "hw_sector_size", &blksize);
  }
  closedir(dir);
  capstr = format_capstr(size, blksize);
  printf("%10d  %-11s  %10s  %7d     %s %s (rev %s)\n", lun, osname, capstr, blksize, vendor, model, rev);
  free(capstr);
  return;
}
```