user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<udev_device_new_from_subsystem_sysname>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x650,%rsp
  mov    %rdi,-0x638(%rbp)
  mov    %rsi,-0x640(%rbp)
  mov    %rdx,-0x648(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x410(%rbp),%rax
  mov    %rax,-0x628(%rbp)
  mov    -0x638(%rbp),%rax
  mov    %rax,%rdi
  call   <udev_get_sys_path@plt>
  mov    %eax,%edx
  lea    -0x628(%rbp),%rax
  mov    $0x0,%ecx
  mov    $0x400,%esi
  mov    %rax,%rdi
  call   <util_strpcpyl@plt>
  mov    %rax,-0x620(%rbp)
  mov    -0x640(%rbp),%rax
  lea    D120(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L142
  mov    -0x628(%rbp),%rax
  mov    -0x648(%rbp),%rdx
  mov    -0x620(%rbp),%rsi
  mov    $0x0,%r8d
  mov    %rdx,%rcx
  lea    D133(%rip),%rdx
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <util_strscpyl@plt>
  lea    -0x62c(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <stat@plt>
  test   %rax,%rax
  je     L228
  mov    -0x628(%rbp),%rax
  mov    -0x648(%rbp),%rdx
  mov    -0x620(%rbp),%rsi
  mov    $0x0,%r8d
  mov    %rdx,%rcx
  lea    D50(%rip),%rdx
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <util_strscpyl@plt>
  lea    -0x62c(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <stat@plt>
  test   %rax,%rax
  je     L19
  mov    -0x628(%rbp),%rax
  mov    -0x648(%rbp),%rdx
  mov    -0x620(%rbp),%rsi
  mov    $0x0,%r8d
  mov    %rdx,%rcx
  lea    D99(%rip),%rdx
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <util_strscpyl@plt>
  lea    -0x62c(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <stat@plt>
  test   %rax,%rax
  jne    L64
  jmp    L224
L142:
  mov    -0x640(%rbp),%rax
  lea    D164(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L215
  mov    -0x628(%rbp),%rax
  mov    -0x648(%rbp),%rdx
  mov    -0x620(%rbp),%rsi
  mov    $0x0,%r8d
  mov    %rdx,%rcx
  lea    D69(%rip),%rdx
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <util_strscpyl@plt>
  lea    -0x62c(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <stat@plt>
  test   %rax,%rax
  jne    L129
  jmp    L224
L215:
  mov    -0x640(%rbp),%rax
  lea    D22(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L48
  mov    -0x648(%rbp),%rdx
  lea    -0x610(%rbp),%rax
  mov    $0x200,%esi
  mov    %rax,%rdi
  call   <util_strscpy@plt>
  lea    -0x610(%rbp),%rax
  mov    $0x3a,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x618(%rbp)
  cmpq   $0x0,-0x618(%rbp)
  je     L171
  mov    -0x618(%rbp),%rax
  movb   $0x0,(%rax)
  addq   $0x1,-0x618(%rbp)
  mov    -0x628(%rbp),%rax
  mov    -0x618(%rbp),%rcx
  lea    -0x610(%rbp),%rdx
  mov    -0x620(%rbp),%rsi
  sub    $0x8,%rsp
  push   $0x0
  mov    %rcx,%r9
  lea    D62(%rip),%r8
  mov    %rdx,%rcx
  lea    D133(%rip),%rdx
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <util_strscpyl@plt>
  add    $0x10,%rsp
  lea    -0x62c(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <stat@plt>
  test   %rax,%rax
  je     L65
  mov    -0x628(%rbp),%rax
  mov    -0x618(%rbp),%rcx
  lea    -0x610(%rbp),%rdx
  mov    -0x620(%rbp),%rsi
  sub    $0x8,%rsp
  push   $0x0
  mov    %rcx,%r9
  lea    D62(%rip),%r8
  mov    %rdx,%rcx
  lea    D50(%rip),%rdx
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <util_strscpyl@plt>
  add    $0x10,%rsp
  lea    -0x62c(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <stat@plt>
  test   %rax,%rax
  jne    L171
  jmp    L224
L48:
  mov    -0x628(%rbp),%rax
  mov    -0x648(%rbp),%rcx
  mov    -0x640(%rbp),%rdx
  mov    -0x620(%rbp),%rsi
  sub    $0x8,%rsp
  push   $0x0
  mov    %rcx,%r9
  lea    D141(%rip),%r8
  mov    %rdx,%rcx
  lea    D133(%rip),%rdx
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <util_strscpyl@plt>
  add    $0x10,%rsp
  lea    -0x62c(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <stat@plt>
  test   %rax,%rax
  je     L217
  mov    -0x628(%rbp),%rax
  mov    -0x648(%rbp),%rcx
  mov    -0x640(%rbp),%rdx
  mov    -0x620(%rbp),%rsi
  sub    $0x8,%rsp
  push   $0x0
  mov    %rcx,%r9
  lea    D141(%rip),%r8
  mov    %rdx,%rcx
  lea    D50(%rip),%rdx
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <util_strscpyl@plt>
  add    $0x10,%rsp
  lea    -0x62c(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <stat@plt>
  test   %rax,%rax
  je     L90
  mov    -0x628(%rbp),%rax
  mov    -0x648(%rbp),%rcx
  mov    -0x640(%rbp),%rdx
  mov    -0x620(%rbp),%rsi
  sub    $0x8,%rsp
  push   $0x0
  mov    %rcx,%r9
  lea    D107(%rip),%r8
  mov    %rdx,%rcx
  lea    D99(%rip),%rdx
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <util_strscpyl@plt>
  add    $0x10,%rsp
  lea    -0x62c(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <stat@plt>
  test   %rax,%rax
  je     L107
  jmp    L63
L64:
  nop
  jmp    L63
L129:
  nop
  jmp    L63
L171:
  nop
L63:
  mov    $0x0,%eax
  jmp    L131
L228:
  nop
  jmp    L224
L19:
  nop
  jmp    L224
L65:
  nop
  jmp    L224
L217:
  nop
  jmp    L224
L90:
  nop
  jmp    L224
L107:
  nop
L224:
  lea    -0x410(%rbp),%rdx
  mov    -0x638(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <udev_device_new_from_syspath@plt>
L131:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L55
  call   <__stack_chk_fail@plt>
L55:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D120
type_infered: string
name: unpack_data
arguments: data_label: D133
type_infered: string
name: unpack_data
arguments: data_label: D50
type_infered: string
name: unpack_data
arguments: data_label: D99
type_infered: string
name: unpack_data
arguments: data_label: D164
type_infered: string
name: unpack_data
arguments: data_label: D69
type_infered: string
name: unpack_data
arguments: data_label: D22
type_infered: string
name: unpack_data
arguments: data_label: D62
type_infered: string
name: unpack_data
arguments: data_label: D141
type_infered: string
name: unpack_data
arguments: data_label: D107
type_infered: string

tool: D120: subsystem

tool: D133: /subsystem/

tool: D50: /bus/

tool: D99: /class/

tool: D164: module

tool: D69: /module/

tool: D22: drivers

tool: D62: /drivers/

tool: D141: /devices/

tool: D107: /

assistant: ```c
struct udev_device *udev_device_new_from_subsystem_sysname(struct udev *udev, const char *subsystem, const char *sysname) {
  char path_full[1024];
  char *path;
  size_t l;
  struct stat statbuf;
  path = path_full;
  l = util_strpcpyl(&path, sizeof(path_full), udev_get_sys_path(udev), NULL);
  if (strcmp(subsystem, "subsystem") == 0) {
    util_strscpyl(path, l, "/subsystem/", sysname, NULL);
    if (stat(path_full, &statbuf) == 0)
      goto found;
    util_strscpyl(path, l, "/bus/", sysname, NULL);
    if (stat(path_full, &statbuf) == 0)
      goto found;
    util_strscpyl(path, l, "/class/", sysname, NULL);
    if (stat(path_full, &statbuf) == 0)
      goto found;
    goto out;
  }
  if (strcmp(subsystem, "module") == 0) {
    util_strscpyl(path, l, "/module/", sysname, NULL);
    if (stat(path_full, &statbuf) == 0)
      goto found;
    goto out;
  }
  if (strcmp(subsystem, "drivers") == 0) {
    char subsys[512];
    char *driver;
    util_strscpy(subsys, sizeof(subsys), sysname);
    driver = strchr(subsys, ':');
    if (driver != NULL) {
      driver[0] = '\0';
      driver = &driver[1];
      util_strscpyl(path, l, "/subsystem/", subsys, "/drivers/", driver, NULL);
      if (stat(path_full, &statbuf) == 0)
        goto found;
      util_strscpyl(path, l, "/bus/", subsys, "/drivers/", driver, NULL);
      if (stat(path_full, &statbuf) == 0)
        goto found;
    }
    goto out;
  }
  util_strscpyl(path, l, "/subsystem/", subsystem, "/devices/", sysname, NULL);
  if (stat(path_full, &statbuf) == 0)
    goto found;
  util_strscpyl(path, l, "/bus/", subsystem, "/devices/", sysname, NULL);
  if (stat(path_full, &statbuf) == 0)
    goto found;
  util_strscpyl(path, l, "/class/", subsystem, "/", sysname, NULL);
  if (stat(path_full, &statbuf) == 0)
    goto found;
out:
  return NULL;
found:
  return udev_device_new_from_syspath(udev, path_full);
}
```