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

```asm
<sysfs_node_read>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x100,%rsp
  mov    %rdi,-0xf8(%rbp)
  mov    %rsi,-0x100(%rbp)
  mov    %rdx,-0xa0(%rbp)
  mov    %rcx,-0x98(%rbp)
  mov    %r8,-0x90(%rbp)
  mov    %r9,-0x88(%rbp)
  test   %al,%al
  je     L120
  movaps %xmm0,-0x80(%rbp)
  movaps %xmm1,-0x70(%rbp)
  movaps %xmm2,-0x60(%rbp)
  movaps %xmm3,-0x50(%rbp)
  movaps %xmm4,-0x40(%rbp)
  movaps %xmm5,-0x30(%rbp)
  movaps %xmm6,-0x20(%rbp)
  movaps %xmm7,-0x10(%rbp)
L120:
  mov    %fs:0x28,%rax
  mov    %rax,-0xb8(%rbp)
  xor    %eax,%eax
  mov    -0x100(%rbp),%rdx
  mov    -0xe4(%rbp),%eax
  mov    %rdx,%rsi
  mov    %eax,%edi
  call   <va_start@plt>
  mov    -0xe4(%rbp),%edx
  mov    -0x100(%rbp),%rcx
  lea    -0xd8(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <vasprintf@plt>
  mov    %eax,-0xe0(%rbp)
  mov    -0xe4(%rbp),%eax
  mov    %eax,%edi
  call   <va_end@plt>
  cmpl   $0x0,-0xe0(%rbp)
  jns    L0
  mov    $0xffffffff,%eax
  jmp    L47
L0:
  mov    -0xd8(%rbp),%rax
  mov    %rax,%rdi
  call   <sysfs_read@plt>
  mov    %rax,-0xc0(%rbp)
  mov    -0xd8(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  cmpq   $0x0,-0xc0(%rbp)
  jne    L137
  mov    $0xffffffff,%eax
  jmp    L47
L137:
  mov    -0xc0(%rbp),%rax
  mov    %rax,-0xc8(%rbp)
L70:
  lea    -0xd0(%rbp),%rcx
  mov    -0xc8(%rbp),%rax
  mov    $0x0,%edx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strtol@plt>
  mov    %eax,-0xdc(%rbp)
  mov    -0xd0(%rbp),%rax
  cmp    %rax,-0xc8(%rbp)
  jne    L158
  mov    $0xffffffff,%eax
  jmp    L47
L158:
  cmpl   $0x0,-0xdc(%rbp)
  jns    L38
  mov    $0xfffffffe,%eax
  jmp    L47
L38:
  mov    $0x0,%eax
  call   <numa_num_task_nodes@plt>
  cmp    %eax,-0xdc(%rbp)
  jl     L159
  mov    $0xffffffff,%eax
  jmp    L47
L159:
  mov    -0xdc(%rbp),%edx
  mov    -0xf8(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <numa_bitmask_setbit@plt>
  mov    -0xd0(%rbp),%rax
  mov    %rax,-0xc8(%rbp)
  jmp    L46
L149:
  addq   $0x1,-0xc8(%rbp)
L46:
  mov    -0xc8(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L149
  mov    -0xc8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2c,%al
  je     L149
  mov    -0xc8(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L70
  mov    -0xc0(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  mov    $0x0,%eax
L47:
  mov    -0xb8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L150
  call   <__stack_chk_fail@plt>
L150:
  leave
  ret
```

assistant: ```c
__attribute__((visibility("hidden"))) int sysfs_node_read(struct bitmask *mask, char *fmt, ...) {
  int n;
  va_list ap;
  char *p, *fn, *m, *end;
  int num;
  va_start(ap, fmt);
  n = vasprintf(&fn, fmt, ap);
  va_end(ap);
  if (n < 0)
    return -1;
  p = sysfs_read(fn);
  free(fn);
  if (!p)
    return -1;
  m = p;
  do {
    num = strtol(m, &end, 0);
    if (m == end)
      return -1;
    if (num < 0)
      return -2;
    if (num >= numa_num_task_nodes())
      return -1;
    numa_bitmask_setbit(mask, num);
    m = end;
    while (isspace(*m) || *m == ',')
      m++;
  } while (isdigit(*m));
  free(p);
  return 0;
}
```