user: What would the C source look like for the assembly code provided here?

```asm
<udev_device_new_from_subsystem_sysname>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdx,%r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  mov    %rsi,%r12
  lea    D66(%rip),%rsi
  push   %rbp
  mov    %r12,%rdi
  sub    $0x620,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x618(%rsp)
  xor    %eax,%eax
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L14
  xor    %r8d,%r8d
  mov    $0x400,%esi
  lea    0xc(%rsp),%r12
  mov    %r14,%rcx
  lea    0x210(%rsp),%rbp
  lea    D73(%rip),%rdx
  mov    %rbp,%rdi
  call   <strscpyl@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <stat@plt>
  test   %rax,%rax
  jne    L147
L68:
  mov    %rbp,%rsi
  mov    %r13,%rdi
  call   <udev_device_new_from_syspath@plt>
L59:
  mov    0x618(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L148
  add    $0x620,%rsp
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L147:
  xor    %r8d,%r8d
  mov    $0x400,%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  mov    %r14,%rcx
  lea    D108(%rip),%rdx
  call   <strscpyl@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <stat@plt>
  test   %rax,%rax
  je     L68
  xor    %r8d,%r8d
  mov    $0x400,%esi
  mov    %rbp,%rdi
  xor    %eax,%eax
  mov    %r14,%rcx
  lea    D47(%rip),%rdx
  call   <strscpyl@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <stat@plt>
  test   %rax,%rax
  je     L68
L168:
  xor    %eax,%eax
  jmp    L59
  nopl   0x0(%rax,%rax,1)
L14:
  lea    D62(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L138
  lea    0x210(%rsp),%rbp
  xor    %r8d,%r8d
  mov    $0x400,%esi
  mov    %r14,%rcx
  mov    %rbp,%rdi
  lea    D84(%rip),%rdx
  call   <strscpyl@plt>
  lea    0xc(%rsp),%rsi
  mov    %rbp,%rdi
  call   <stat@plt>
  test   %rax,%rax
  je     L68
  xor    %eax,%eax
  jmp    L59
  nopl   0x0(%rax,%rax,1)
L138:
  lea    D49(%rip),%rsi
  mov    %r12,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L108
  lea    0x10(%rsp),%r15
  mov    $0x200,%esi
  mov    %r14,%rdx
  mov    %r15,%rdi
  call   <strscpy@plt>
  mov    $0x3a,%esi
  mov    %r15,%rdi
  call   <strchr@plt>
  test   %rax,%rax
  je     L168
  movb   $0x0,(%rax)
  lea    0x1(%rax),%r12
  lea    D67(%rip),%r8
  xor    %eax,%eax
  lea    0x210(%rsp),%rbp
  sub    $0x8,%rsp
  mov    %r12,%r9
  mov    %r15,%rcx
  push   $0x0
  lea    D73(%rip),%rdx
  mov    $0x400,%esi
  mov    %rbp,%rdi
  call   <strscpyl@plt>
  lea    0x1c(%rsp),%r14
  mov    %rbp,%rdi
  mov    %r14,%rsi
  call   <stat@plt>
  pop    %r10
  pop    %r11
  test   %rax,%rax
  je     L68
  sub    $0x8,%rsp
  mov    $0x400,%esi
  mov    %r12,%r9
  mov    %r15,%rcx
  push   $0x0
  lea    D67(%rip),%r8
  mov    %rbp,%rdi
  xor    %eax,%eax
  lea    D108(%rip),%rdx
  call   <strscpyl@plt>
  mov    %r14,%rsi
L21:
  mov    %rbp,%rdi
  call   <stat@plt>
  pop    %rdx
  pop    %rcx
  test   %rax,%rax
  je     L68
  xor    %eax,%eax
  jmp    L59
  cs nopw 0x0(%rax,%rax,1)
L108:
  lea    0x210(%rsp),%rbp
  mov    %r14,%r9
  mov    %r12,%rcx
  xor    %eax,%eax
  sub    $0x8,%rsp
  lea    D135(%rip),%r8
  mov    $0x400,%esi
  mov    %rbp,%rdi
  push   $0x0
  lea    D73(%rip),%rdx
  call   <strscpyl@plt>
  lea    0x1c(%rsp),%r15
  mov    %rbp,%rdi
  mov    %r15,%rsi
  call   <stat@plt>
  pop    %r8
  pop    %r9
  test   %rax,%rax
  je     L68
  sub    $0x8,%rsp
  mov    %r14,%r9
  lea    D135(%rip),%r8
  xor    %eax,%eax
  push   $0x0
  mov    %r12,%rcx
  lea    D108(%rip),%rdx
  mov    %rbp,%rdi
  mov    $0x400,%esi
  call   <strscpyl@plt>
  mov    %r15,%rsi
  mov    %rbp,%rdi
  call   <stat@plt>
  pop    %rsi
  pop    %rdi
  test   %rax,%rax
  je     L68
  sub    $0x8,%rsp
  mov    $0x400,%esi
  mov    %r14,%r9
  mov    %r12,%rcx
  push   $0x0
  lea    D77(%rip),%r8
  mov    %rbp,%rdi
  xor    %eax,%eax
  lea    D47(%rip),%rdx
  call   <strscpyl@plt>
  mov    %r15,%rsi
  jmp    L21
L148:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D66
type: string
name: disassemble_data
arguments: data_label: D73
type: string
name: disassemble_data
arguments: data_label: D108
type: string
name: disassemble_data
arguments: data_label: D47
type: string
name: disassemble_data
arguments: data_label: D62
type: string
name: disassemble_data
arguments: data_label: D84
type: string
name: disassemble_data
arguments: data_label: D49
type: string
name: disassemble_data
arguments: data_label: D67
type: string
name: disassemble_data
arguments: data_label: D135
type: string
name: disassemble_data
arguments: data_label: D77
type: string

tool: D66: subsystem

tool: D73: /sys/subsystem/

tool: D108: /sys/bus/

tool: D47: /sys/class/

tool: D62: module

tool: D84: /sys/module/

tool: D49: drivers

tool: D67: /drivers/

tool: D135: /devices/

tool: D77: /

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);
}
```