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

```asm
<nis_destroygroup>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  test   %rdi,%rdi
  je     L31
  cmpb   $0x0,(%rdi)
  mov    %rdi,%r12
  jne    L59
L31:
  mov    D3(%rip),%rax
  mov    (%rax),%r12d
L94:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L26
  lea    -0x28(%rbp),%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L59:
  call   <strlen@plt>
  mov    %rsp,%rsi
  mov    %rsp,%rbx
  lea    0x41(%rax),%rdx
  mov    %rdx,%rcx
  and    $0xfffffffffffff000,%rdx
  and    $0xfffffffffffffff0,%rcx
  sub    %rdx,%rsi
L39:
  cmp    %rsi,%rsp
  je     L119
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L39
  nopw   0x0(%rax,%rax,1)
L119:
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  jne    L4
L129:
  lea    0x3(%rax),%rsi
  add    $0x12,%rax
  mov    %rsp,%rcx
  mov    %rsp,%r13
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L141
L99:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L99
L141:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L13
  orq    $0x0,-0x8(%rsp,%rdx,1)
L13:
  lea    0xf(%rsi),%rax
  mov    %rsp,%rcx
  mov    %rsp,%r8
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L134
L8:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L8
L134:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L123
  orq    $0x0,-0x8(%rsp,%rdx,1)
L123:
  lea    -0x1(%rsi),%r15d
  mov    %r12,%rdi
  mov    %r8,%rsi
  mov    %r15d,%edx
  call   <nis_leaf_of_r@plt>
  mov    %r13,%rdi
  mov    %rax,%rsi
  call   <stpcpy@plt>
  mov    %rsp,%rsi
  mov    %r15d,%edx
  mov    %r12,%rdi
  mov    %rax,%r14
  movabs $0x5f7370756f72672e,%rax
  mov    %rax,(%r14)
  movl   $0x726964,0x8(%r14)
  call   <nis_domain_of_r@plt>
  mov    %rax,%rsi
  test   %rax,%rax
  je     L106
  cmpb   $0x0,(%rax)
  jne    L153
L106:
  xor    %esi,%esi
  mov    %r13,%rdi
  call   <nis_remove@plt>
  mov    %rax,%r13
  mov    %rax,%rdi
  call   <NIS_RES_STATUS@plt>
  mov    %r13,%rdi
  mov    %eax,%r12d
  call   <nis_freeresult@plt>
  mov    %rbx,%rsp
  jmp    L94
  xchg   %ax,%ax
L4:
  orq    $0x0,-0x8(%rsp,%rcx,1)
  jmp    L129
  nopl   0x0(%rax,%rax,1)
L153:
  movb   $0x2e,0xb(%r14)
  lea    0xc(%r14),%rdi
  call   <strcpy@plt>
  jmp    L106
L26:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
nis_error nis_destroygroup(const_nis_name group) {
  if (group != NULL && group[0] != '\0') {
    size_t grouplen = strlen(group);
    char buf[grouplen + 50];
    char leafbuf[grouplen + 3];
    char domainbuf[grouplen + 3];
    nis_error status;
    nis_result *res;
    char *cp, *cp2;
    cp = stpcpy(buf, nis_leaf_of_r(group, leafbuf, sizeof(leafbuf) - 1));
    cp = stpcpy(cp, ".groups_dir");
    cp2 = nis_domain_of_r(group, domainbuf, sizeof(domainbuf) - 1);
    if (cp2 != NULL && cp2[0] != '\0') {
      *cp++ = '.';
      stpcpy(cp, cp2);
    }
    res = nis_remove(buf, NULL);
    status = NIS_RES_STATUS(res);
    nis_freeresult(res);
    return status;
  } else
    return NIS_FAIL;
}
```