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

```asm
<process_path_component>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  mov    %rdx,%r13
  push   %r12
  mov    %r8d,%r12d
  push   %rbx
  mov    %ecx,%ebx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  mov    D2(%rip),%rax
  mov    %rsp,%rcx
  mov    (%rax),%r15d
  lea    0x1(%r15),%edx
  movslq %edx,%rdx
  add    $0xf,%rdx
  mov    %rdx,%rax
  and    $0xfffffffffffff000,%rdx
  sub    %rdx,%rcx
  and    $0xfffffffffffffff0,%rax
  cmp    %rcx,%rsp
  je     L210
L14:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L14
L210:
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  jne    L91
  mov    %rsp,-0x48(%rbp)
  test   %rsi,%rsi
  jne    L3
L187:
  test   %ebx,%ebx
  je     L263
L11:
  mov    %r13,%rax
L55:
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  jne    L29
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopl   0x0(%rax)
L3:
  cmp    $0x1,%rsi
  je     L213
  cmp    $0x2,%rsi
  jne    L10
  cmpb   $0x2e,(%rdi)
  je     L53
L10:
  mov    %rsi,%rdx
  mov    %rdi,%rsi
  mov    %r13,%rdi
  call   <append_path_component@plt>
  test   %eax,%eax
  je     L64
  lea    -0x3c(%rbp),%r14
  mov    %r13,%rdi
  mov    %r14,%rsi
  call   <lstat@plt>
  test   %rax,%rax
  jns    L262
L104:
  test   %ebx,%ebx
  je     L64
  mov    D33(%rip),%rax
  mov    D50(%rip),%rdx
  mov    (%rax),%rax
  cmp    %rax,(%rdx)
  je     L11
L64:
  xor    %eax,%eax
  jmp    L55
  nopl   0x0(%rax)
L91:
  orq    $0x0,-0x8(%rsp,%rax,1)
  mov    %rsp,-0x48(%rbp)
  test   %rsi,%rsi
  jne    L3
  jmp    L187
  nopl   0x0(%rax)
L262:
  mov    -0x3c(%rbp),%edi
  call   <S_ISLNK@plt>
  test   %rax,%rax
  jne    L94
L230:
  test   %ebx,%ebx
  jne    L11
  mov    -0x3c(%rbp),%edi
  call   <S_ISDIR@plt>
  test   %eax,%eax
  jne    L11
  mov    D25(%rip),%rax
  mov    (%rax),%rdx
  mov    D50(%rip),%rax
  mov    %rdx,(%rax)
  xor    %eax,%eax
  jmp    L55
  nopl   0x0(%rax)
L53:
  cmpb   $0x2e,0x1(%rdi)
  jne    L10
  mov    %r13,%rdi
  call   <remove_last_path_component@plt>
  jmp    L55
  nopw   0x0(%rax,%rax,1)
L213:
  cmpb   $0x2e,(%rdi)
  jne    L10
  jmp    L11
  xchg   %ax,%ax
L263:
  mov    D33(%rip),%rax
  mov    (%rax),%rdx
  mov    D50(%rip),%rax
  mov    %rdx,(%rax)
  xor    %eax,%eax
  jmp    L55
  nopl   0x0(%rax,%rax,1)
L94:
  mov    %r15d,%edx
  mov    -0x48(%rbp),%r15
  mov    %r13,%rdi
  mov    %r15,%rsi
  call   <readlink@plt>
  mov    %r13,%rdi
  movb   $0x0,(%r15,%rax,1)
  call   <remove_last_path_component@plt>
  lea    -0x1(%r12),%edx
  mov    %r13,%rsi
  mov    %r15,%rdi
  call   <realpath_recurse@plt>
  test   %eax,%eax
  je     L64
  mov    %r14,%rsi
  mov    %r13,%rdi
  call   <lstat@plt>
  test   %rax,%rax
  jns    L230
  jmp    L104
L29:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
char *process_path_component(const char *component, size_t component_length, char *resolved_name, int last_part, int max_depth) {
  char readlink_buffer[PATH_MAX + 1];
  ssize_t readlink_buffer_length;
  struct stat stat_buffer;
  if (!component_length) {
    if (last_part)
      return resolved_name;
    else {
      errno = ENOENT;
      return NULL;
    }
  }
  if (component_length == 1 && component[0] == '.')
    return resolved_name;
  if (component_length == 2 && component[0] == '.' && component[1] == '.')
    return remove_last_path_component(resolved_name);
  if (!append_path_component(resolved_name, component, component_length))
    return NULL;
  if (lstat(resolved_name, &stat_buffer) < 0) {
    if (last_part && errno == ENOENT)
      return resolved_name;
    else
      return NULL;
  }
  if (S_ISLNK(stat_buffer.st_mode)) {
    readlink_buffer_length = readlink(resolved_name, readlink_buffer, sizeof(readlink_buffer) - 1);
    if (readlink_buffer_length < 0)
      return NULL;
    readlink_buffer[readlink_buffer_length] = 0;
    remove_last_path_component(resolved_name);
    if (!realpath_recurse(readlink_buffer, resolved_name, max_depth - 1))
      return NULL;
    if (lstat(resolved_name, &stat_buffer) < 0) {
      if (last_part && errno == ENOENT)
        return resolved_name;
      else
        return NULL;
    }
  }
  if (!last_part && !S_ISDIR(stat_buffer.st_mode)) {
    errno = ENOTDIR;
    return NULL;
  }
  return resolved_name;
}
```