user: 请将以下的汇编代码转换成C语言代码:

```asm
<udev_device_new_from_subsystem_sysname>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x640,%rsp
  mov    %rdi,-0x628(%rbp)
  mov    %rsi,-0x630(%rbp)
  mov    %rdx,-0x638(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x630(%rbp),%rax
  lea    D150(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L18
  mov    -0x638(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    $0x0,%r8d
  mov    %rdx,%rcx
  lea    D160(%rip),%rdx
  mov    $0x400,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <strscpyl@plt>
  lea    -0x61c(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <stat@plt>
  test   %rax,%rax
  je     L113
  mov    -0x638(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    $0x0,%r8d
  mov    %rdx,%rcx
  lea    D61(%rip),%rdx
  mov    $0x400,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <strscpyl@plt>
  lea    -0x61c(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <stat@plt>
  test   %rax,%rax
  je     L82
  mov    -0x638(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    $0x0,%r8d
  mov    %rdx,%rcx
  lea    D6(%rip),%rdx
  mov    $0x400,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <strscpyl@plt>
  lea    -0x61c(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <stat@plt>
  test   %rax,%rax
  jne    L64
  jmp    L36
L18:
  mov    -0x630(%rbp),%rax
  lea    D77(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L68
  mov    -0x638(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    $0x0,%r8d
  mov    %rdx,%rcx
  lea    D93(%rip),%rdx
  mov    $0x400,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <strscpyl@plt>
  lea    -0x61c(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <stat@plt>
  test   %rax,%rax
  jne    L79
  jmp    L36
L68:
  mov    -0x630(%rbp),%rax
  lea    D123(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L50
  mov    -0x638(%rbp),%rdx
  lea    -0x610(%rbp),%rax
  mov    $0x200,%esi
  mov    %rax,%rdi
  call   <strscpy@plt>
  lea    -0x610(%rbp),%rax
  mov    $0x3a,%esi
  mov    %rax,%rdi
  call   <strchr@plt>
  mov    %rax,-0x618(%rbp)
  cmpq   $0x0,-0x618(%rbp)
  je     L156
  mov    -0x618(%rbp),%rax
  movb   $0x0,(%rax)
  addq   $0x1,-0x618(%rbp)
  mov    -0x618(%rbp),%rcx
  lea    -0x610(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  sub    $0x8,%rsp
  push   $0x0
  mov    %rcx,%r9
  lea    D46(%rip),%r8
  mov    %rdx,%rcx
  lea    D160(%rip),%rdx
  mov    $0x400,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <strscpyl@plt>
  add    $0x10,%rsp
  lea    -0x61c(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <stat@plt>
  test   %rax,%rax
  je     L119
  mov    -0x618(%rbp),%rcx
  lea    -0x610(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  sub    $0x8,%rsp
  push   $0x0
  mov    %rcx,%r9
  lea    D46(%rip),%r8
  mov    %rdx,%rcx
  lea    D61(%rip),%rdx
  mov    $0x400,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <strscpyl@plt>
  add    $0x10,%rsp
  lea    -0x61c(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <stat@plt>
  test   %rax,%rax
  jne    L156
  jmp    L36
L50:
  mov    -0x638(%rbp),%rcx
  mov    -0x630(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  sub    $0x8,%rsp
  push   $0x0
  mov    %rcx,%r9
  lea    D29(%rip),%r8
  mov    %rdx,%rcx
  lea    D160(%rip),%rdx
  mov    $0x400,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <strscpyl@plt>
  add    $0x10,%rsp
  lea    -0x61c(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <stat@plt>
  test   %rax,%rax
  je     L74
  mov    -0x638(%rbp),%rcx
  mov    -0x630(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  sub    $0x8,%rsp
  push   $0x0
  mov    %rcx,%r9
  lea    D29(%rip),%r8
  mov    %rdx,%rcx
  lea    D61(%rip),%rdx
  mov    $0x400,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <strscpyl@plt>
  add    $0x10,%rsp
  lea    -0x61c(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <stat@plt>
  test   %rax,%rax
  je     L51
  mov    -0x638(%rbp),%rcx
  mov    -0x630(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  sub    $0x8,%rsp
  push   $0x0
  mov    %rcx,%r9
  lea    D153(%rip),%r8
  mov    %rdx,%rcx
  lea    D6(%rip),%rdx
  mov    $0x400,%esi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <strscpyl@plt>
  add    $0x10,%rsp
  lea    -0x61c(%rbp),%rdx
  lea    -0x410(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <stat@plt>
  test   %rax,%rax
  je     L61
  jmp    L161
L64:
  nop
  jmp    L161
L79:
  nop
  jmp    L161
L156:
  nop
L161:
  mov    $0x0,%eax
  jmp    L67
L113:
  nop
  jmp    L36
L82:
  nop
  jmp    L36
L119:
  nop
  jmp    L36
L74:
  nop
  jmp    L36
L51:
  nop
  jmp    L36
L61:
  nop
L36:
  lea    -0x410(%rbp),%rdx
  mov    -0x628(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <udev_device_new_from_syspath@plt>
L67:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L219
  call   <__stack_chk_fail@plt>
L219:
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D150
type_infered: string
name: parse_data
arguments: label: D160
type_infered: string
name: parse_data
arguments: label: D61
type_infered: string
name: parse_data
arguments: label: D6
type_infered: string
name: parse_data
arguments: label: D77
type_infered: string
name: parse_data
arguments: label: D93
type_infered: string
name: parse_data
arguments: label: D123
type_infered: string
name: parse_data
arguments: label: D46
type_infered: string
name: parse_data
arguments: label: D29
type_infered: string
name: parse_data
arguments: label: D153
type_infered: string

tool: D150: subsystem

tool: D160: /sys/subsystem/

tool: D61: /sys/bus/

tool: D6: /sys/class/

tool: D77: module

tool: D93: /sys/module/

tool: D123: drivers

tool: D46: /drivers/

tool: D29: /devices/

tool: D153: /

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